Pages: [1]   Go Down
Author Topic: TTYUSB Problem  (Read 627 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ??
Logged

Australia
Offline Offline
Jr. Member
**
Karma: 0
Posts: 63
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: