/dev/ttyS0 not working and /dev/ttyUSB0 Stops working

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

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

← this means that WD is actually exiting itself for some reason .

I’m still chasing this trouble and I still think it is directly related to the settings on my TTY ports. On the Linux computer that you are running can you do an stty -F /dev/ttyXXX and see what your output is. Mine shows as
don@don-P43T-ES3G:~$ stty -F /dev/ttyUSB0
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

its not all that clear to me what the exact problem is
I think its that consolewd is closing after a certain amount of time?
if you could be clear and precise and provide as much info as possible
(because as Wim would say, we are not mind readers)

Just answer my question on what you get on a system that is running Weather display on a Linux system, I already did the print out in the beginning of when the program runs and what I see when it dies. Since I use the same model of MOBO in 3 different computers I’m not sure if there is something missing in the TTY settings. Therefore once again I will ask . Just do an stty -F /dev/ttyS0 or /dev/ttyUSB0 and show what you get for an output.

it would be good if you could clarify if the problem is that the program is closing by itself after a certain amount of time?
its not all that clear to me

Repeating again.

I’m still chasing this problem with /dev/ttS0 not working at all and /dev/ttyUSB0 runs for awhile and then quits.

On all 3 computers This is what I see for /dev/ttyS0 and it does not work via Linux but rebooting to my Win 7 hard drive and the output works fine so it’s not a hardware trouble.

don@don-P43-ES3G:~$ dmesg | grep tty
[ 0.179675] printk: console [tty0] enabled
[ 1.498884] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A

stty -F /dev/ttyS0 shows
root@don-P43-ES3G:/home/don# stty -F /dev/ttyS0
speed 9600 baud; line = 0;
-brkint -imaxbel
root@don-P43-ES3G:/home/don#
That port does not connect at all so let’s start with a computer that in fact the TTY port working on a Linux operating system works. If it works on yours then get a print out on the port and paste it here. Note that upon a restart the /dev/tty ports go back to their default settings which is controlled by the PC interfacing with the software.