On 12/31/14 23:14, Isaac Dunham wrote: > On Wed, Dec 31, 2014 at 10:19:47PM -0600, Rob Landley wrote: >> I've used netcat -f /dev/ttyUSB0 as a terminal, the netcat help points >> out you need to use stty first to set up the terminal: >> >> Use "stty 115200 -F /dev/ttyS0 && stty raw -echo -ctlecho" with >> netcat -f to connect to a serial port. >> >> On my todo list is gluing the two of those together into a nanoterm but >> I need to cleanup and promote stty first and that command is... complicated. >> >> Um, correction. Looks like I need to implement it. (Not in pending. >> might be in ashwini's patch pile...) > > To save you the trouble of looking: > I haven't seen an stty patch (that was actually my complaint about reset).
stty isn't hard, it's just long. Lemme rephrase that: stty has 8 gazillion config options that aren't always obvious how to implement. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/stty.html The entire historical unix layer is one of those things that evolved from teletype machines with 6 bit serial interfaces driving a daisy wheel (_5_ bit serial back in the 1930's, they had a shift code between two pages, yes really: http://www.textfiles.com/bitsavers/pdf/teletype/144_Model15_Descr_Feb31.pdf ). For most of toybox all I really care about is "raw mode vs cooked mode", but stty has to flip all the switches individually... It's on the todo list. > HTH, > Isaac Dunham Rob _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
