I’m still chasing this problem with /dev/ttS0 not working at all and /dev/ttyUSB0 runs for awhile and then quits. I’m suspecting it is the settings on the port that are causing the troubles since using the exact same computer but running Windows works fine. In previous trouble shooting we noted that a high baud rate was assigned to either port. Using the STTY command I can set the baud rate to 2400 but I still have nothing working on /dev/ttyS0 and eventually failure on /dev/ttyUSB0. I have 3 different desktop PCs all running Linux Mint 9.3 and all have the exact same problem. Runing WD 10.37 308.
TTY not working.
/dev/ttyS0 does not output
The program loads but no data is present in the program.
don@don-P43T-ES3G:~$ stty -F /dev/ttyS0
speed 2400 baud; line = 0;
intr = ; quit = ; erase = ; kill = ; eof = ;
start = ; stop = ; susp = ; rprnt = ;
werase = ; lnext = ; discard = ; min = 0; time = 9;
-brkint -imaxbel
-opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke
don@don-P43T-ES3G:~$
devttyUSB0 does output but gives errors and stops working.
on@don-P43T-ES3G:~$ dmesg | grep tty
[ 0.107356] printk: console [tty0] enabled
[ 1.197311] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 15.537583] usb 5-1: pl2303 converter now attached to ttyUSB0
[89630.950170] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[113544.594358] usb 5-1: pl2303 converter now attached to ttyUSB0
don@don-P43T-ES3G:~$ ls -l /dev/ttyUSB0
crwxrwxrwx 1 root dialout 188, 0 Apr 20 03:10 /dev/ttyUSB0
don@don-P43T-ES3G:~$ stty -F /dev/ttyUSB0
speed 2400 baud; line = 0;
-brkint -imaxbel
don@don-P43T-ES3G:~$ cd Desktop/wdisplay
don@don-P43T-ES3G:~/Desktop/wdisplay$ sudo ./weatherdisplay
Loading the system using devttyUSB0
The debugger shows.
Loaded all time records
Loaded units
com port port handle /dev/ttyUSB0 14
#connected OK to com port /dev/ttyUSB0 14
set the comport OK to speed 2400
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
stage 1 2310 OK
Loading the program
don@don-P43T-ES3G:~$ cd Desktop/wdisplay
don@don-P43T-ES3G:~/Desktop/wdisplay$ sudo ./weatherdisplay
Starting
Loaded main form
Loaded internet form
Loaded graph form
Loaded settings form
Loaded control form
Loaded view form
Loaded weather station type
Loaded user daily report
Loaded com port
Loaded timer1
Loaded log settingd
Loaded graph setup
Loaded uv/solar
Loaded ws2000
Loaded extra sensor graph
Loaded daily hi/lo
Loaded metar
Loaded new graph
Loaded large display
Loaded dials
Loaded weather dials
Loaded sun moon
Loaded sensor list
Loaded trends
Loaded sun moon images
Loaded moon
Loaded summary
Loaded extra metars
Loaded 3D graph
Loaded energy
Loaded new rain chart
Doing mainform formcreate
Setting program location to: /home/don/Documents/wdisplay/
Creating ini files
Writing exit to ftp ini file
Setting up graph axis
Initiating variables
Setting conditions strings
Finished doing mainform form create
showing mainform
done form broadcast create
hiding splash screen
setting up graphs
finished showing mainform
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
Now the program is up and running and producing data.
It produced over 8,000 entiries and then died.
Terminal shows
ser_read error Resource temporarily unavailable
ser_read error Resource temporarily unavailable
Restoring the tty configuration
wmr300decodemac: no process found
wmr200decodemac: no process found
wmr100decodemac: no process found
acuritedecodemac: no process found
fineoffsetdecodemac: no process found
cronweatherflow: no process found
cronftpreal: no process found
cronrapid: no process found
usbreaderirox: no process found
usbreader: no process found
crongw1000: no process found
Terminated
don@don-P43T-ES3G:~/Desktop/wdisplay$ Runtime error 217 at 00000000008410CF