 leiboldPremium,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 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! |