LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Re: Serial port

[ILUG] Re: Serial port

Frank Duignan frank.duignan at gmail.com
Wed Apr 5 10:06:18 IST 2006


Silly me - 0xff is not a BREAK however the trick still stands and has
saved my bacon in the past.

On 4/4/06, Brian Foster <blf at blf.utvinternet.ie> wrote:
>   | Date: Tue, 4 Apr 2006 21:11:40 +0100
>   | From: "Frank Duignan" <frank.duignan at gmail.com>
>   |
>   | I've generally found sending a break character (0xff) is good at sorting
>   | out this sort of first byte synchronization issue i.e transmit 0xff
> before
>   | sending your real data.  The other end should dump the break if its uart
>   | is worth its salt
>
>  NO.  _if_ the peer's UART is "worth its salt",
>  it will not be confused by a (series of) 0xFF
>  or 0x00 octets, as that is not a true BREAK.
>  IIRC, a true BREAK is all lines clamped low for
>  at least ¼ second.  that should not be confused
>  with a valid octet by any UART "worth its salt",
>
>  nowadays, to send a true BREAK, use tcsendbreak(3).
>
>  _however_, I do agree that some(/many?) UARTs are
>  fooled by this trick (and I have used it myself).
>
>  I suspect Pádraig's earlier guess, that CLOCAL is
>  not set, is perhaps more relevant?
>
>  then there's the problem of what really happens if
>  the peer decides there is an incoming BREAK.  some,
>  such as Solaris (viz a very recent thread), throw the
>  system into the boot monitor, which is sometimes a
>  disaster.  others, as Frank suggest, more-or-less
>  resynch, which is perhaps what is wanted/needed here.
>  (there are other possibilities.)   but it is worth a
>  try, albeit it does not "work" will all equipment at
>  all times.
>
> cheers (hoping I haven't made too many mistakes,
> as I just had a very nice French dinner with, of
> course, a very nice French vin!....),
> 	-bl(*hic*)f-
> --
> Experienced (20+ yrs) kernel/software Eng: | Brian Foster   Montpellier,
>  • Unix, embedded, &tc;  • Linux;  • doc;  | blf at utvinternet.ie   FRANCE
>  • IDL, automated testing, process, &tc.   |  Stop E$$o (ExxonMobile)!
> Résumé (CV) http://www.blf.utvinternet.ie  |     http://www.stopesso.com
> --
> Irish Linux Users' Group mailing list
> Email: ilug at linux.ie
> Options (including unsubscribe) here:
> http://mail.linux.ie/mailman/listinfo/ilug
>
>



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell