From: Lawrence H. <gumstix@HariTech.com> - 2008-09-10 20:58:47
|
Just a thought but in most unix's stty does not stick when you change buad rate settings unless the device is held open. There is a utility called setserial that modifies the defaults for the device. Also you could use Dave Hylands sertest program to test the port. I think the link is here: http://websvn.hylands.org/listing.php?repname=Projects&path=%2Fhost%2Fsertest%2F&rev=80&sc=0 Lawrence Torchris wrote: > Hi lance, > > I would like to keep ttyS0 for the console. > > I have had some partial success. I switched from using a null cable to using > a serial cable (the one from Gumstix with the green connector -> > http://gumstix.com/store/catalog/product_info.php?cPath=28&products_id=66&osCsid=c73e7e737265b227d2bdd7eec320c6a7). > > I then did: > > stty -F /dev/ttyS2 speed 9600 > > then > > echo aaa > /dev/ttyS2 > > The LCD did display some garbage, but not "aaa". > > Perhaps I will try hooking that port up to a terminal program and see what I > get. > > regards, > > torchris > > > > > Doddridge, Lance S CIV NSWC Corona, MS32 wrote: > >> It could be a number of things. A few come to mind. >> >> Check the running processes on the gumstix. If you have one that looks >> like this: >> >> /sbin/getty 115200 ttyS0 vt100 >> >> then the ttyS0 serial port is being used by that process and won't be >> available to you. You can prevent the getty from using the ttyS0 serial >> port by commenting out the line in the /etc/inittab file. This still >> doesn't explain why the ttyS2 isn't working. >> >> You may also want to make sure that your Tx and Rx lines aren't crossed, >> you may need a NULL modem adapter. >> >> BTW, I was not able to get the sertest.c to compile with OE bitbake >> either, so I had to make a number of modifications. >> >> >> Lance >> >> >> >> -----Original Message----- >> From: Torchris [mailto:chr...@ro...] >> Sent: Tuesday, September 09, 2008 17:53 >> To: gum...@li... >> Subject: [Gumstix-users] Using consoleLCD serial ports >> >> >> Hello, >> >> I am experimenting with the serial ports on the consoleLCD/Verdex using >> a >> SparkFun serial LCD units >> (http://www.sparkfun.com/commerce/product_info.php?products_id=462) >> which I >> have run through a TTL-RS232 converter. It works like a charm using my >> PC, >> but I can't seem to get it to work with the Gumstix on either ttyS0 or >> ttyS2. It requires 9600 baud 8N1 connection. >> >> 1. Does the Minicom package available via ipkg work? Looks like it >> works, >> but it's not sending any data. >> >> 2. Has anyone been able to get the "sertest.c" demo program compiled >> with >> OE? I have tried to compile this, but OE doesn't like it. >> >> thanks, >> >> torchris >> -- >> View this message in context: >> http://www.nabble.com/Using-consoleLCD-serial-ports-tp19404381p19404381. >> html >> Sent from the Gumstix mailing list archive at Nabble.com. >> >> >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> gumstix-users mailing list >> gum...@li... >> https://lists.sourceforge.net/lists/listinfo/gumstix-users >> >> >> > > |