Re: Problem detecting and reacting to serial break

2010-08-15 Thread Daniel O'Connor
On 15/08/2010, at 23:25, Paul Thornton wrote: > With Linux, it all works as expected - but the linux tcsetattr doesn't > like the nonstandard baud rate either. However, in linux I used > setserial to set a base baud rate of 2400 and a divisor of 96 to get > 250k baud rate. When I run, I have

Re: Problem detecting and reacting to serial break

2010-08-15 Thread Paul Thornton
Paul Thornton wrote: > Ed Schouten wrote: >> * Paul Thornton wrote: >>> I'm using 8.0-RELEASE with uftdi and ucom driving the serial port. >> Somewhat unrelated question: have you ever tried running the this code >> on 7.x? If so, did it work? > > I've just tried this on 7.2-RELEASE (that was the

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Daniel O'Connor
On 15/08/2010, at 9:38, Paul Thornton wrote: > Part of the problem I'm having is that whenever you try and search for > information/docs about this sort of thing, you're transported back in a > time warp to the 1980s where people used serial terminals as the norm > for access and everything seems

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Garrett Cooper
On Sat, Aug 14, 2010 at 5:03 PM, Paul Thornton wrote: > Ed Schouten wrote: >> * Paul Thornton wrote: >>> I'm using 8.0-RELEASE with uftdi and ucom driving the serial port. >> >> Somewhat unrelated question: have you ever tried running the this code >> on 7.x? If so, did it work? > > I've just tri

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Paul Thornton
Daniel O'Connor wrote: > On 15/08/2010, at 3:00, Paul Thornton wrote: >> So according to the documentation, the effect of the break should be to >> flush the input and output buffers, and send a SIGINT to my process. The >> buffer doesn't seem to get flushed, and I don't get sent the SIGINT. > > I

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Paul Thornton
Ed Schouten wrote: > * Paul Thornton wrote: >> I'm using 8.0-RELEASE with uftdi and ucom driving the serial port. > > Somewhat unrelated question: have you ever tried running the this code > on 7.x? If so, did it work? I've just tried this on 7.2-RELEASE (that was the only 7.x CD I could find lu

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Daniel O'Connor
On 15/08/2010, at 3:00, Paul Thornton wrote: > So according to the documentation, the effect of the break should be to > flush the input and output buffers, and send a SIGINT to my process. The > buffer doesn't seem to get flushed, and I don't get sent the SIGINT. It does sounds like it's ignorin

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Ed Schouten
* Paul Thornton wrote: > I'm using 8.0-RELEASE with uftdi and ucom driving the serial port. Somewhat unrelated question: have you ever tried running the this code on 7.x? If so, did it work? -- Ed Schouten WWW: http://80386.nl/ pgp1PRCv6Lq6n.pgp Description: PGP signature

Problem detecting and reacting to serial break

2010-08-14 Thread Paul Thornton
Hi, I'm working on a small piece of code that reads a data stream from the serial port, putting it into a buffer for processing later - for those interested, it is receiving DMX512 lighting control data - but I'm having trouble with the detection of a break condition on the serial line. I'd appre