Results 1 to 9 of 9

Thread: Weather Station - Which port is this ?

  1. #1
    Join Date
    Dec 2007
    Location
    Shepperton, UK.
    Beans
    2,489
    Distro
    Ubuntu Development Release

    Weather Station - Which port is this ?

    I want to try to use a La Crosse weather station with Ubuntu and am having a few basic problems. The weather station is connected to the PC via a serial to USB adapter. If I connect it I get the following in terminal:
    Code:
    $ lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 010: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
    Bus 002 Device 009: ID 04b8:0005 Seiko Epson Corp. Stylus D88+
    Bus 002 Device 007: ID 0001:0000 Fry's Electronics 
    Bus 002 Device 002: ID 046d:c512 Logitech, Inc. LX-700 Cordless Desktop Receiver
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Which port is the one highlighted ? (in the form /dev/ttyUSB0)
    How can I determine that the Weather Station is sending info to my PC ?
    Intel E5700 G41 8Gb Xubuntu 13.10, Ubuntu 13.4, WinXP.
    Revo R3610 Win7 Pro, Ubuntu 13.04

    Absolute Beginners Compiz-fusion wiki Local Weather

  2. #2
    Join Date
    Mar 2009
    Beans
    31

    Re: Weather Station - Which port is this ?

    How many /dev/ttyUSBx do you have?

    If you only have one(probably, if you only have that USB devices plugged), it's that. Not sure if this is a answer for your question.

    You can start opening the serial port with "cu" or "minicom"

    For cu:

    sudo apt-get install cu
    cu -l /dev/ttyUSB0 -s 9600(if that is the speed)

    Then you should start seeing data if it streams by default. Otherwise you may need to query it with some command. Check the manual.

    (quick tip: to exit cu enter "~.")

    Regards

  3. #3
    Join Date
    Dec 2007
    Location
    Shepperton, UK.
    Beans
    2,489
    Distro
    Ubuntu Development Release

    Re: Weather Station - Which port is this ?

    Thanks for the reply. Unfortunately cu just comes up with
    Code:
    $ cu -l /dev/ttyUSB0 -s 9600
    Connected.
    and nothing else. Other ports up to ttyUSB6 display that the 'line is in use'.
    I've found that this is set up and shown in /var/log/messages.
    It looks as if I'm not getting any data through.
    Intel E5700 G41 8Gb Xubuntu 13.10, Ubuntu 13.4, WinXP.
    Revo R3610 Win7 Pro, Ubuntu 13.04

    Absolute Beginners Compiz-fusion wiki Local Weather

  4. #4
    Join Date
    Mar 2009
    Beans
    31

    Re: Weather Station - Which port is this ?

    What is the output of "ls /dev/ttyUSB*" when you have the station plugged and unplugged?

    Have you read the manual? The last station I used(vaisala), I needed to configure several things.

  5. #5
    Join Date
    Dec 2007
    Location
    Shepperton, UK.
    Beans
    2,489
    Distro
    Ubuntu Development Release

    Re: Weather Station - Which port is this ?

    The output when plugged in
    Code:
    $ ls /dev/ttyUSB0
    /dev/ttyUSB0
    When unplugged
    Code:
    $ ls /dev/ttyUSB0
    ls: cannot access /dev/ttyUSB0: No such file or directory
    This relates to the USB to serial interface and not to connecting or disconnecting the weather station itself (as that has no effect). I know the interface works fine in Windows XP.
    The output from /var/log/messages
    Code:
    Mar 20 14:30:14 kevin-dt1b kernel: [16912.829020] usb 2-6: new full speed USB device using ohci_hcd and address 11
    Mar 20 14:30:14 kevin-dt1b kernel: [16913.042867] usb 2-6: configuration #1 chosen from 1 choice
    Mar 20 14:30:14 kevin-dt1b kernel: [16913.044147] pl2303 2-6:1.0: pl2303 converter detected
    Mar 20 14:30:15 kevin-dt1b kernel: [16913.077189] usb 2-6: pl2303 converter now attached to ttyUSB0
    Mar 20 14:30:53 kevin-dt1b kernel: [16951.272274] usb 2-6: USB disconnect, address 11
    Mar 20 14:30:53 kevin-dt1b kernel: [16951.274614] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
    Mar 20 14:30:53 kevin-dt1b kernel: [16951.274631] pl2303 2-6:1.0: device disconnected
    The weather station is a La Crosse WS2350. The manual doesn't have details on how to install software in Linux, only Windows, but I know that running the WS2350 is possible with Ubuntu.
    Last edited by Kevbert; March 20th, 2010 at 03:41 PM.
    Intel E5700 G41 8Gb Xubuntu 13.10, Ubuntu 13.4, WinXP.
    Revo R3610 Win7 Pro, Ubuntu 13.04

    Absolute Beginners Compiz-fusion wiki Local Weather

  6. #6
    Join Date
    Mar 2009
    Beans
    31

    Re: Weather Station - Which port is this ?

    I wrote "ls /dev/ttyUSB*" not "ls /dev/ttyUSB0".

    I wonder where all that serial ports(ttyUSB1-6) come from...

    Anyway, what software do you want to install? You can look for some compatible software, or start checking the serial port interface commands? The manual should explain all that.
    Then try to enter that commands with cu.

  7. #7
    Join Date
    Dec 2007
    Location
    Shepperton, UK.
    Beans
    2,489
    Distro
    Ubuntu Development Release

    Re: Weather Station - Which port is this ?

    Code:
    $ ls /dev/ttyUSB*
    /dev/ttyUSB0
    So just one ttyUSB...
    Which manual ? The manual that came with the WS is pretty basic and specifically for WinXP/Win2000.
    Can you recommend any software for Ubuntu that you've had success with ?
    Intel E5700 G41 8Gb Xubuntu 13.10, Ubuntu 13.4, WinXP.
    Revo R3610 Win7 Pro, Ubuntu 13.04

    Absolute Beginners Compiz-fusion wiki Local Weather

  8. #8
    Join Date
    Mar 2009
    Beans
    31

    Re: Weather Station - Which port is this ?

    I went to check and in fact it doesn't explain anything about PC connection.
    I used a weather station but only with a script to save data...I can't help on finding software.


    I see you have 3 options:
    Ask the manufacturer about the spec and develop your own software for whatever you need.
    Spy the communication in a windows PC and learn the protocol.
    Google "La crosse linux".

    Regards

  9. #9
    Join Date
    Dec 2007
    Location
    Shepperton, UK.
    Beans
    2,489
    Distro
    Ubuntu Development Release

    Re: Weather Station - Which port is this ?

    Thanks for the help. I'll have to persist in trying to get either Open2300 or wview working.
    Intel E5700 G41 8Gb Xubuntu 13.10, Ubuntu 13.4, WinXP.
    Revo R3610 Win7 Pro, Ubuntu 13.04

    Absolute Beginners Compiz-fusion wiki Local Weather

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •