LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-28-2010, 08:18 PM   #1
Jvan_ca
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Rep: Reputation: 0
Prowler weather station connected via USB. Ubuntu 9.10 doesn't recognise it


I have a Prowler weather station connected via USB. Ubuntu does not recognize this. I am wanting to work with the data on the weather station on my computer.
I would assume that the problem lies within 1941:8021 Dream Link USB Missile Launcher.

Could you please assist.

Thank you in advance for any advice that you might have.

Joel

Terminal readout is:
user@user-laptop:~$ lsusb
Bus 005 Device 002: ID 1941:8021 Dream Link USB Missile Launcher
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 05ca:1837 Ricoh Co., Ltd Visual Communication Camera VGP-VCC4 [R5U870]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
user@user-laptop:~$ mount | grep ^/dev
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
joel@joel-laptop:~$ dmesg|tail -40
[ 16.859344] iwlagn 0000:06:00.0: loaded firmware version 228.61.2.24
[ 17.074072] Registered led device: iwl-phy0::radio
[ 17.074093] Registered led device: iwl-phy0::assoc
[ 17.074113] Registered led device: iwl-phy0::RX
[ 17.074131] Registered led device: iwl-phy0::TX
[ 17.101154] pcmcia_socket pcmcia_socket0: cs: IO port probe 0x100-0x3af: clean.
[ 17.103261] pcmcia_socket pcmcia_socket0: cs: IO port probe 0x3e0-0x4ff: excluding 0x4d0-0x4d7
[ 17.104167] pcmcia_socket pcmcia_socket0: cs: IO port probe 0x820-0x8ff: clean.
[ 17.104906] pcmcia_socket pcmcia_socket0: cs: IO port probe 0xc00-0xcf7: clean.
[ 17.105837] pcmcia_socket pcmcia_socket0: cs: IO port probe 0xa00-0xaff: clean.
[ 17.127813] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 17.205177] usbcore: deregistering interface driver uvcvideo
[ 17.273992] Linux video capture interface: v2.00
[ 17.276604] uvcvideo: Found UVC 1.00 device <unnamed> (05ca:1837)
[ 17.279214] input: UVC Camera (05ca:1837) as /devices/pci0000:00/0000:00:1a.7/usb1/1-2/1-2:1.0/input/input11
[ 17.279258] usbcore: registered new interface driver uvcvideo
[ 17.279261] USB Video Class driver (v0.1.0)
[ 17.312044] usbcore: deregistering interface driver uvcvideo
[ 17.380712] Linux video capture interface: v2.00
[ 17.383355] uvcvideo: Found UVC 1.00 device <unnamed> (05ca:1837)
[ 17.384064] input: UVC Camera (05ca:1837) as /devices/pci0000:00/0000:00:1a.7/usb1/1-2/1-2:1.0/input/input12
[ 17.384109] usbcore: registered new interface driver uvcvideo
[ 17.384113] USB Video Class driver (v0.1.0)
[ 19.330603] usbcam: registering driver r5u870 0.11.3
[ 19.330635] usbcore: registered new interface driver r5u870
[ 19.458233] ppdev: user-space parallel port driver
[ 42.351517] wlan0: authenticate with AP 00:14:6c:4e:72:72
[ 42.353264] wlan0: authenticated
[ 42.353267] wlan0: associate with AP 00:14:6c:4e:72:72
[ 42.356081] wlan0: RX AssocResp from 00:14:6c:4e:72:72 (capab=0x431 status=0 aid=2)
[ 42.356083] wlan0: associated
[ 42.378038] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 53.068699] wlan0: no IPv6 routers present
[ 436.000777] CE: hpet increasing min_delta_ns to 15000 nsec
[ 483.913077] usb 5-1: new low speed USB device using uhci_hcd and address 2
[ 484.101151] usb 5-1: configuration #1 chosen from 1 choice
[ 484.173837] usbcore: registered new interface driver hiddev
[ 484.212067] generic-usb 0003:1941:8021.0001: hiddev96,hidraw0: USB HID v1.00 Device [HID 1941:8021] on usb-0000:00:1d.0-1/input0
[ 484.212105] usbcore: registered new interface driver usbhid
[ 484.212111] usbhid: v2.6:USB HID core driver
user@user-laptop:~$
 
Old 01-29-2010, 12:58 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
From what I'm reading on the net (via Google) either your weather station is hardcoded with the incorrect USB ID, or the kernel code (or Ubuntu USB database) is miscoded, and that USB ID is being seen as USB Missile Launcher

Chances are good that the thing will not work properly, if at all, unless we can find a patch that fixes the wrong USB ID. Do you happen to have any software for the weather station? Linux software? EDIT - found the software download. (but is it Win or Lin?)

If I find more on this, I'll post it.

PS - Has this weather station ever worked for you on Linux, or is this a first attempt?

Sasha

Last edited by GrapefruiTgirl; 01-29-2010 at 01:03 AM.
 
Old 01-30-2010, 07:51 PM   #3
Jvan_ca
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Update

Thanks for the response.

I did receive software for this application, however it is windows based, but installs very well and works through wine.

The software is called "Easy Weather". Would there be a USB driver located on this CD, and if so, where might I find it?

I originally attempted to try a solution at: https://answers.launchpad.net/ubuntu/+question/97541
but to no luck couldn't figure out a section to work around the USB issue.

This is a first attempt for me and would love to be able to correct the USB issue.

Joel
 
Old 01-30-2010, 11:20 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Glad you got it working with Wine for the time being, as you might have to stick with that if there is no Linux software for the device. I too noticed that the software available online was for Windows only. So, even if the USB ID gets sorted out, there's still the issue of "no software for Linux".

As for USB drivers, for the most part, the Linux kernel has the USB part of it built in; the only condition(s) for the device to work right, is that the USB device ID (abcf:defg) is correctly identified by the kernel, and that the kernel has a driver, if necessary, for the device.

Other threads I have read about this device, which I found by Google, had situations similar to yours: either the USB device was wrongly identified (as a missile launcher) or there was a lack of software to run the device.

I already came across the link you posted above too on the Ubuntu site.
I also came to another thread or mailing list somewhere, where another owner (or maybe you??) of this weather station was in contact with the Linux kernel USB maintainers, and had IIRC filed a bug about the wrong USB ID. I'm not sure what if anything came of that, but you might do some heavy-duty googling to see if you can find this, and if you cannot determine if anything is ongoing with the kernel developers about this, maybe file a bug report of your own, to the USB maintainers.

Sorry I don't really know what to do further, at this point

Sasha
 
Old 05-14-2010, 02:59 AM   #5
frankv
LQ Newbie
 
Registered: May 2010
Posts: 7

Rep: Reputation: 0
Did this get resolved?

I'm running Ubuntu 10, and trying to connect to a "Scientific Sales" weather station WS1093 (complete with Chinglish manual). I'm trying to get the suggested software (Cumulus) to work with it via Wine. But I'm seeing exactly the same thing -- same manufacturer ID and missile launcher ID.

Hoping one of you guys 3 months ahead of me figured it out!

Last edited by frankv; 05-14-2010 at 03:03 AM.
 
Old 05-16-2010, 08:59 AM   #6
Jvan_ca
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Prowler weather station

Unfortunately, I have not found a solution yet for correcting this problem. The only advice was to dual-boot and use Windows to load the weather station device.

Please post if you have any success to let us all know how to fix this issue.

Joel
 
Old 05-25-2010, 03:20 AM   #7
frankv
LQ Newbie
 
Registered: May 2010
Posts: 7

Rep: Reputation: 0
Thumbs up

Hi Joel,

Googling round the Net suggests that 1941:8021 is more common for a weather station than a missile launcher!

http://www.jim-easterbrook.me.uk/weather/ has good links.

The C source code at http://meteolinger.lowlevel.cz/anonsvn/driver/wwsr.c works.

You need to link it with the v0.1 (NOT v1.0) libusb library. e.g.

gcc -o wssr wssr.c /usr/lib/libusb.so

See also http://meteolinger.lowlevel.cz/tracker/wiki

Frank
 
Old 05-28-2010, 06:19 PM   #8
Jvan_ca
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks Frank for all of the great info.

I still consider myself a bit of a newbie with Ubuntu, though I hate the word.

I've installed GCC and gone to all of the sites, but just can't connect the dots. Could you perhaps fill me in on exactly what you did to get it working, and if you're using Ubuntu/Linux, what weather software you're working with?

Joel
 
Old 05-29-2010, 04:52 PM   #9
frankv
LQ Newbie
 
Registered: May 2010
Posts: 7

Rep: Reputation: 0
Hi Joel,

The first thing you need to do is to set up permissions so that users can access the Weatherstation USB device (by default, only root can access it).

Create a file called 39-weather.rules in /etc/udev/rules.d containing the line

SYSFS{idProduct}=="8021", SYSFS{idVendor}=="1941", MODE="660", GROUP="plugdev"

Code:
frank@ubuntu:~$ cd /etc/udev
frank@ubuntu:/etc/udev$ ls
rules.d  udev.conf
frank@ubuntu:/etc/udev$ cd rules.d
frank@ubuntu:/etc/udev/rules.d$ ls
39-weather.rules  70-persistent-cd.rules  70-persistent-net.rules  README
frank@ubuntu:/etc/udev/rules.d$ cat 39-weather.rules 
SYSFS{idProduct}=="8021", SYSFS{idVendor}=="1941", MODE="660", GROUP="plugdev"
frank@ubuntu:/etc/udev/rules.d$
To compile any C source to access it, you also need to install the libusb-dev package. Make sure you install that one, NOT libusb-1.0-0-dev.

Then (assuming you have C source in file wwsr.c) you can open a Terminal window, cd to the directory you've got the file in, paste the line

gcc -o wssr wssr.c /usr/lib/libusb.so

into your Terminal window to compile. If you get any error messages, paste them here and I'll explain.

If there's no error messages, then you can run the program by typing

./wssr

in the Terminal window.

./wssr -a

will display current weather readings.

If you still can't get it to run, and you're running Ubuntu on a 32-bit system, I can send you my executable.

http://forum.pendec.dk/ is a very useful site... sign up there and read the Weatherstation forum... I've put my C source code there.

If you prefer Python, then the pywws Google group is for you. http://code.google.com/p/pywws/
 
Old 06-03-2010, 08:16 PM   #10
Jvan_ca
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Frank,

Here is how far I've gotten.

*****
joel@joel-laptop:~$ cd /etc/udev
joel@joel-laptop:/etc/udev$ ls
rules.d udev.conf
joel@joel-laptop:/etc/udev$ cd rules.d
joel@joel-laptop:/etc/udev/rules.d$ ls
39-weather.rules 70-persistent-net.rules README
70-persistent-cd.rules 90-r5u87x-loader.rules
joel@joel-laptop:/etc/udev/rules.d$ cat 39-weather.rules
SYSFS{idProduct}=="8021", SYSFS{idVendor}=="1941", MODE="660", GROUP="plugdev"
joel@joel-laptop:/etc/udev/rules.d$ gcc -o wssr wssr.c /usr/lib/libusb.so
gcc: wssr.c: No such file or directory
joel@joel-laptop:/etc/udev/rules.d$

*****

Also, here is my lsusb list.

joel@joel-laptop:~$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 1941:8021 Dream Link USB Missile Launcher
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05ca:1837 Ricoh Co., Ltd Visual Communication Camera VGP-VCC4 [R5U870]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Joel
 
Old 06-03-2010, 08:31 PM   #11
Jvan_ca
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Frank,

Ok. I worked with my partner a bit with this again and here's what I've managed. Still not working, but a tiny bit further.

joel@joel-laptop:~$ cd /etc/udev
joel@joel-laptop:/etc/udev$ ls
rules.d udev.conf
joel@joel-laptop:/etc/udev$ cd rules.d
joel@joel-laptop:/etc/udev/rules.d$ ls
39-weather.rules 70-persistent-net.rules README
70-persistent-cd.rules 90-r5u87x-loader.rules
joel@joel-laptop:/etc/udev/rules.d$ cat 39-weather.rules
SYSFS{idProduct}=="8021", SYSFS{idVendor}=="1941", MODE="660", GROUP="plugdev"
joel@joel-laptop:/etc/udev/rules.d$ gcc -o wssr wssr.c /usr/lib/libusb.so
gcc: wssr.c: No such file or directory
joel@joel-laptop:/etc/udev/rules.d$

I do have libusb-dev installed. The versions I had the option to install were 1.0 and 2:0.1.12-14. I installed the 2:0.1.12.14, not the 1.0 version.

Joel
 
Old 06-04-2010, 12:41 AM   #12
sreeharsha.t
Member
 
Registered: Jan 2009
Location: Mumbai, India
Distribution: Fedora 9, 10,11, RHEL 5
Posts: 67

Rep: Reputation: 18
Quote:
Originally Posted by Jvan_ca View Post
Hi Frank,

joel@joel-laptop:/etc/udev/rules.d$ gcc -o wssr wssr.c /usr/lib/libusb.so
gcc: wssr.c: No such file or directory
You are all most there.. you will just need to copy the wssr.c C source code to your home directory before compiling.

Goto:
Download the file to your home directory and compile it as said above

Quote:
gcc -o wssr </path/to/file/wssr.c> /usr/lib/libusb.so
 
1 members found this post helpful.
Old 06-05-2010, 06:20 PM   #13
frankv
LQ Newbie
 
Registered: May 2010
Posts: 7

Rep: Reputation: 0
Hi again Jvan,

It's hard to know just how much a "newbie" (sorry) someone is, so I left out some steps.

First, make sure that you have installed the the libusb library. I did this using the "Synaptic Package Manager"... go to the System menu, choose Applications, then choose Synaptic Package Manager. Put in your 'root' password.

Search for "libusb-0.1" (without the quotes). If it's not already installed (the square is green), then install it.

You need to download the file http://meteolinger.lowlevel.cz/anonsvn/driver/wwsr.c -- probably it will automatically go into your Downloads directory, so you should move it to somewhere more appropriate... I suggest creating a weather directory, and moving it there, as follows

cd ~
mkdir weather
cd weather
cp ~/Downloads/wwsr.c .
gcc -o wssr wssr.c /usr/lib/libusb.so

You should now find a file called wssr in the 'weather' directory. Type

~/weather/wssr

to run it. It will show a help listing. Type

~/weather/wssr -a

to get weather details.
 
Old 06-06-2010, 08:13 PM   #14
Jvan_ca
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Ok, thanks for the help.

Now, I've got the weather information showing up in the terminal, however how do I get it to work with weather software? and do you suggest any software that works well with Ubuntu?

Joel
 
Old 06-20-2010, 10:13 PM   #15
furrie
LQ Newbie
 
Registered: Dec 2001
Location: Yate, Bristol, England, UK
Distribution: CentOS, Ubuntu, FreeBSD
Posts: 23

Rep: Reputation: 15
I have a similar problem...

My device is the one featured here (http://www.maplin.co.uk/module.aspx?moduleno=223254) "USB Wireless Weather Forecaster". It's got "Weather Station - Model: WH1081" on the back...

Prior to installation, I ran "update-usbids" to make sure I have the latest available info.

The following is seen in /var/log/messages upon USB device insertion: -
kernel: [634601.160205] usb 1-4.2.2: new low speed USB device using ehci_hcd and address 8
kernel: [634601.277991] usb 1-4.2.2: configuration #1 chosen from 1 choice
kernel: [634601.285731] generic-usb 0003:1941:8021.0006: hiddev97,hidraw4: USB HID v1.00 Device [HID 1941:8021] on usb-0000:00:1a.7-4.2.2/input0

# lsusb | grep 1941
Bus 001 Device 008: ID 1941:8021 Dream Link USB Missile Launcher

The provided software "EasyWeather" (http://proweatherstation.com/easywea...asyweather.htm) and the oft-recommended software "Cumulus" (http://sandaysoft.com/products/cumulus) both seem to work perfectly within "wine" on my Ubuntu 10.4 Linux and it seems a shame that I can not link the software to the USB device...

Any help or advice would be greatly appreciated!
 
  


Reply

Tags
station, usb, weather



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Wanting to Setup Weather Station Server headlesschicken2511 Linux - Newbie 3 11-04-2009 03:11 PM
Loaded Ubuntu 7.04. Mobile phone connected with cable via usb. Phone is seen, Hec Linux - Newbie 1 02-09-2008 04:46 AM
Getting connected with a ASUS USB, Philips Wireless Base station running Suse 10.1 Rob_scared of Vista Linux - Wireless Networking 0 12-21-2007 09:52 AM
Booting from USB when BIOS does not recognise USB devices zani Linux - General 8 08-21-2007 01:58 PM
test26.s doesn't recognise DVD drive, other kernels won't recognise HDD v@ny@ Slackware - Installation 15 05-31-2007 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration