Page 1 of 1

UART driver

Posted: Mon Jul 14, 2014 12:37 pm
by DGW
Hi Giovanni.
I'm trying to connect PC and STM32F103 using chibios v2.6.5. To communicate using RC422 (full duplex). Packages can go with a request from the PC and from the STM without a request from the PC. I use UART driver. I have a problem. The less time requests from the PC the more timeouts occur. It seems there is an imposing reception and transmission, what to do?
Thanks for the help!

P.s.
Still, the data drive in binary form. The fact that the message was received is determined by the timeout, which will restart for the adoption of each byte (as in modbus rtu).

Re: UART driver

Posted: Mon Jul 14, 2014 3:48 pm
by Giovanni
Hi,

Could explain it in more details? I don't understand the issue at hand. Do you have a state machine of the protocol you are implementing? that would make things more clear.

Giovanni