site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Share Topic
Posting?
Post a:
Post a:
Links: ·Forum FAQ ·Attitude Adjustment ·Linux docs ·DistroWatch ·OPLM
AuthorAll Replies


leibold
Premium,MVM
join:2002-07-09
Sunnyvale, CA
kudos:6
Reviews:
·SONIC.NET

reply to dlsauers

Re: BASH script serial input

said by dlsauers:

I have things working with dd and nuking its extraneous output off to /dev/null land...but it seems to miss data at points due to dd or seomthing else and thats an issue,

You put the dd command into a loop and keep opening and closing the serial device. It is no surprise that this causes you to loose data.
Make sure that you keep the serial device open ( Maxo See Profile showed an example of how to do a loop that keeps the serial port open).

As for the "one line it keeps over writing" there is apparently a difference in end-of-line handling between the old and new adapter. You may be able to compensate by using the stty options icrnl and -inlcr to convert carriage returns into new lines (line feed).
--
Got some spare cpu cycles ? Join Team Helix or Team Starfire!

Saturday, 25-May 03:22:28 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 13.5 years online © 1999-2013 dslreports.com.
Most commented news this week
Hot Topics