pexpect baudrate and mode settings

2006-09-21 Thread Bryce Bolton
Hi, I've written a short script in pexpect to open the serial port and get 100 bytes. The script does receive a string of garbage, but not the good text seen when I open a minicom terminal and look at ttyS0. I know that the baud rate is wrong, and the other settings (such as 8N1) are unknown to

Re: pexpect baudrate and mode settings

2006-09-21 Thread Bryce Bolton
Hi, I've written a short script in pexpect to open the serial port and get 100 bytes. The script does receive a string of garbage, but not the good text seen when I open a minicom terminal and look at ttyS0. I know that the baud rate is wrong, and the other settings (such as 8N1) are unknown to

Re: pexpect baudrate and mode settings

2006-09-21 Thread Ganesan Rajagopal
Bryce Bolton [EMAIL PROTECTED] writes: In short, setting of critical parameters is unclear under pexpect's documentation, but may be obvious to those more familiar with os.open or other filesystem internals. Try using stty program on Linux to set these parameters before you use pexpect.