Forum 2005-2010 (read only)
Syntax & Programs
Topic: TTYUSB Problem
(Read 914 times)
Apr 03, 2008, 09:20 am
Hi everybody !!
I have a strange problem.
I have a program which is talking to arduino by TTYUSB which is working when I have just upload the program to the arduino (with the arduino software), it's working working very well.
But If I reboot, I try to configure the TTYUSO with this :
stty -F /dev/ttyUSB0 cs8 9600 ignbrk -brkint -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts
I try to launch the program : not working :/
I launch screen : screen /dev/ttyUSB0 9600
I stop screen, launch the program : it's working.
What's wrong with my configuration ??
Re: TTYUSB Problem
Apr 03, 2008, 09:32 am
try stty 9600 raw ignbrk < /dev/ttyUSB0
add -hup if you don't want the arduino to reset when you open the port, otherwise wait a second or two after opening before trying to communicate.
Also note that the bootloader runs at 19200 baud.