Re: [Ftdi-usb-sio-devel] Long delay between break signal and first data bytes
Brought to you by:
bryder
|
From: Peter K. <pet...@we...> - 2008-10-27 11:20:27
|
Bill,
I tried tcsendbreak with a value of 1 (and other non zero) which
resulted in no break beeing sent at all.
The problem here is, that the protocoll on the bus I am talking to does
not allow a delay longer than a character after the break. Whatever I
tried, it always caused a long break.
I even build a smal circuit that pulls the BUS Tx Signal to ground by
using RTS. The interesting behaviour then is:
TX ~~~,___,~~~~~~~||||
RTS ~~~,___,~~~~~~
|<-.?.->|
Delay of about 50ms betwen raise of RTS and first data byte. The code
does not implement any delays except for the RTS.
Not sure what this means? Is there anything in addition that I missed in
programming the FTDI Driver?
Thanks for your patience. Peter
Bill Ryder wrote:
> Did you try tcsendbreak with a set value rather than 0?
>
> By default it may wait up to 500ms even though data isn't being sent
for 500ms
>
> You can check it with strace -T yourTestProgram - you'll see the
duration of tcsendbreak in <>'s in the output.
>
|