cloudy

Author Topic: WD stopped working after recent Intrepid update  (Read 3967 times)

0 Members and 1 Guest are viewing this topic.

Offline n7dq

  • Posts: 530
  • Windsor, CO
    • Windsor, CO - Weather -- N7DQ
Re: WD stopped working after recent Intrepid update
« Reply #30 on: February 11, 2009, 12:32:11 AM »
You have some work to do then.  You will probably need to find the source for logserial, download, compile and install; fedora uses packages -- I do not know about Ubuntu.  I Googled "linux  logserial.tar.gz" and was able to find the source as the first hit.

With statserial and stty you need to point to the device -- /dev/ttyS0 for com1.  Your output only shows the current console, unless you did as follows:

stty /dev/ttyS0

statserial /dev/ttyS0

Linux is not like Windows and requires effort on your part.  You need to read the man pages and documentation.  My recommendation, make sure you can access the serial port from the system, this may require you to go to a Ubuntu forum for help if you do not know much about Ubuntu and there may be others that use Ubuntu here that can help.   

Did you change the permissions as I suggested previously in this thread?

Mike - N7DQ
Mike - N7DQ
----------------------------
http://www.n7dq.com/weather
CWOP: AT059
WeatherUnderground: KCOWINDS8
[

Offline dunbrokin

  • Posts: 259
  • Otago
Re: WD stopped working after recent Intrepid update
« Reply #31 on: February 12, 2009, 05:37:32 AM »
pj@PJKING:~/Desktop/logserial-0.4.2$ make
gcc  -O3 -m486 -Wall -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS   -c -o logserial.o logserial.c
cc1: error: unrecognized command line option "-m486"
make: *** [logserial.o] Error 1


Will see if I can find another way of logging the serial port.

I did change the permissioning as you suggested but made no difference.

pj@PJKING:~$ ls -l /dev/ttyS*
crwxrwxrwx 1 root dialout 4, 64 2009-02-10 21:20 /dev/ttyS0
crwxrwxrwx 1 root dialout 4, 65 2009-02-10 21:20 /dev/ttyS1
crwxrwxrwx 1 root dialout 4, 66 2009-02-10 21:20 /dev/ttyS2
crwxrwxrwx 1 root dialout 4, 67 2009-02-10 21:20 /dev/ttyS3
pj@PJKING:~$
« Last Edit: February 12, 2009, 05:46:11 AM by dunbrokin »
Ubuntu is computer speak for defenestration.

Offline dunbrokin

  • Posts: 259
  • Otago
Re: WD stopped working after recent Intrepid update
« Reply #32 on: February 12, 2009, 05:41:15 AM »


stty /dev/ttyS0

statserial /dev/ttyS0


Device: /dev/ttyS0

Signal  Pin  Pin  Direction  Status  Full
Name    (25) (9)  (computer)         Name
-----   ---  ---  ---------  ------  -----
FG       1    -      -           -   Frame Ground
TxD      2    3      out         -   Transmit Data
RxD      3    2      in          -   Receive  Data
RTS      4    7      out         1   Request To Send
CTS      5    8      in          0   Clear To Send
DSR      6    6      in          0   Data Set Ready
GND      7    5      -           -   Signal Ground
DCD      8    1      in          0   Data Carrier Detect
DTR     20    4      out         1   Data Terminal Ready
RI      22    9      in          0   Ring Indicator

Ubuntu is computer speak for defenestration.

Offline n7dq

  • Posts: 530
  • Windsor, CO
    • Windsor, CO - Weather -- N7DQ
Re: WD stopped working after recent Intrepid update
« Reply #33 on: February 12, 2009, 03:35:33 PM »
Quote
pj@PJKING:~/Desktop/logserial-0.4.2$ make
gcc  -O3 -m486 -Wall -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS   -c -o logserial.o logserial.c
cc1: error: unrecognized command line option "-m486"
make: *** [logserial.o] Error 1

I edited the Makefile and removed the '-m486' option:

Code: [Select]
#OPTIMIZE= -O3 -m486 -Wall -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS
OPTIMIZE= -O3 -Wall -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS

As I mentioned, Linux at these levels is not for the faint of heart.  Here is my run as root after the compile.

Code: [Select]
[09:33:14][root@murdock:/home/mbates/logserial-0.4.2]$ ./logserial -t /dev/ttyS0 -s 19200
Successfully opened /dev/ttyS0. Start loging.
LOOm�u�;���������������@���������
                                 ï¿½%
                                   ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½2     ï¿½ï¿½
H�LOOm�u�;���������������@���������
                                   ï¿½%
                                     ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½2   ï¿½ï¿½
H�^CGot signal 2. Closing communication port
[09:33:21][root@murdock:/home/mbates/logserial-0.4.2]$


This shows me as root that I am getting information from the serial port.  Note: You should be careful when running this when WD is running as it could cause problems.

Mike - N7DQ
Mike - N7DQ
----------------------------
http://www.n7dq.com/weather
CWOP: AT059
WeatherUnderground: KCOWINDS8
[

Offline dunbrokin

  • Posts: 259
  • Otago
Re: WD stopped working after recent Intrepid update
« Reply #34 on: February 12, 2009, 07:56:45 PM »
pj@PJKING:~/Desktop/logserial-0.4.2$ make
gcc  -O3 -Wall -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS   -c -o logserial.o logserial.c
logserial.c: In function ‘main’:
logserial.c:344: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
logserial.c:348: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
gcc  -O3 -Wall -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS   -c -o sysdep1.o sysdep1.c
gcc  -O3 -Wall -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS -o logserial logserial.o sysdep1.o

So got that little problem sorted - thank you....but

pj@PJKING:~/Desktop/logserial-0.4.2$ sudo logserial -t /dev/ttyS0 -s 19200
sudo: logserial: command not found
Ubuntu is computer speak for defenestration.

Offline n7dq

  • Posts: 530
  • Windsor, CO
    • Windsor, CO - Weather -- N7DQ
Re: WD stopped working after recent Intrepid update
« Reply #35 on: February 12, 2009, 08:10:14 PM »
Depending on where you compiled logserial you may need to  use the full path for the executable.

sudo /home/mbates/logserial-0.4.2/logserial -t /dev/ttyS0 -s 19200

The assumption is the logserial executable is in the directory /home/mbates/logserial-0.4.2 and that you are using com 1 and the speed of the port is 19200 baud.

Mike - N7DQ
Mike - N7DQ
----------------------------
http://www.n7dq.com/weather
CWOP: AT059
WeatherUnderground: KCOWINDS8
[

Offline dunbrokin

  • Posts: 259
  • Otago
Re: WD stopped working after recent Intrepid update
« Reply #36 on: February 12, 2009, 08:31:41 PM »
Thanks for that......

However there seems to be a big problem......

pj@PJKING:~$ sudo Desktop/logserial-0.4.2/logserial -t /dev/ttyS0 -s 19200
[sudo] password for pj:
Successfully opened /dev/ttyS0. Start loging.


no information comes through.
Ubuntu is computer speak for defenestration.

Offline n7dq

  • Posts: 530
  • Windsor, CO
    • Windsor, CO - Weather -- N7DQ
Re: WD stopped working after recent Intrepid update
« Reply #37 on: February 12, 2009, 08:46:57 PM »
So no data coming through means you might be pointing to the wrong port, have the device plugged into wrong port or something wrong with the connection to the weather station.  Try pointing to /dev/ttyS1 first with logserial, next validate that you have a good connection to the weather station, maybe move the connector on the back of the computer to another serial port.  If you have another computer running windows try that with the windows version, make sure there is nothing wrong with the weather station and connection.

This is a debugging/troubleshooting exercise, think about what could be wrong and try one thing at time to try to fix it. 

Mike - N7DQ
Mike - N7DQ
----------------------------
http://www.n7dq.com/weather
CWOP: AT059
WeatherUnderground: KCOWINDS8
[

Offline dunbrokin

  • Posts: 259
  • Otago
Re: WD stopped working after recent Intrepid update
« Reply #38 on: February 12, 2009, 09:48:47 PM »
Thanks for your help.....I got it to work.....not sure what the problem was really.....

I just redid the setup again and clicked on the Just fetch3600 (no HeavyWeather) button - at least that is what I think was the reason for it working again.....
Ubuntu is computer speak for defenestration.

Offline n7dq

  • Posts: 530
  • Windsor, CO
    • Windsor, CO - Weather -- N7DQ
Re: WD stopped working after recent Intrepid update
« Reply #39 on: February 12, 2009, 10:06:42 PM »
Congrats.

Good Luck.

Mike - N7DQ
Mike - N7DQ
----------------------------
http://www.n7dq.com/weather
CWOP: AT059
WeatherUnderground: KCOWINDS8
[

 

cumulus