Page 1 of 1

FineOffset Station not found!

Posted: Sun 20 Dec 2015 9:21 am
by Luciano_SR
Guys,

I`ve already searched for a solution on the forum but all other topics covering the Station not found issue didn`t help.

I`m running a desktop computer (not a Pi2) with Lubuntu 15.10 just for this weather station (used to run Win7, trying to get rid of MS).

Tested CumulusMX on windows and worked like a charm, moving to Linux I`m getting the following:
/CumulusMX$ sudo mono CumulusMX.exe

Current culture: English (United States)
Serial: DF705AC8BBB3890EFE82D2E7131FBB24
Cumulus MX v.3.0.0 build 3036
Today.ini = data/today.ini
Last update=2015-12-20T07:18:51
Fine Offset station not found
Cumulus running at: http://*:8998/
(Replace * with any IP address on this machine, or localhost)
Starting web socket server on port 8002
12/20/2015 7:18:51 AM
Type Ctrl-C to terminate
Station is listed as a connected device:
lsusb
Bus 004 Device 004: ID 1058:1021 Western Digital Technologies, Inc. Elements Desktop (WDBAAU)
Bus 004 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 004: ID 04ca:3006 Lite-On Technology Corp.
Bus 003 Device 005: ID 1941:8021 Dream Link WH1080 Weather Station / USB Missile Launcher
Bus 003 Device 003: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
And this is Mono`s version:
mono -V
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu4)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. http://www.mono-project.com
So.... any thoughts?

Re: FineOffset Station not found!

Posted: Sun 20 Dec 2015 9:40 am
by steve
Do you have libudev0 installed? This is often the cause of this - it's mentioned several times in other threads.

Re: FineOffset Station not found!

Posted: Sun 20 Dec 2015 10:04 am
by Luciano_SR
steve,

If this is it, yes:

Code: Select all

~$ sudo apt-get install libudev0*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libudev-dev' for regex 'libudev0*'
Note, selecting 'libudev1' for regex 'libudev0*'
libudev1 is already the newest version.
The following NEW packages will be installed:
  libudev-dev
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 19,0 kB of archives.
After this operation, 156 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
I`m running on 64-bit. Maybe is this the issue? Want something for me to help debugging?

Many thanks!

Re: FineOffset Station not found!

Posted: Sun 20 Dec 2015 10:35 am
by steve
It looks like you have libudev1 not libudev0. What does "dpkg -s libudev0" show?

Re: FineOffset Station not found!

Posted: Sun 20 Dec 2015 11:00 am
by Luciano_SR
Yes, you're right, I didn't have libudev0 installed.

Forced installation as it is not available as a package on Lubuntu 15.10 (I don't know the details).
After installing from http://mirrors.kernel.org/ubuntu/pool/m ... _amd64.deb I got the following when dpkg -s:

Code: Select all

$ sudo dpkg -s libudev0
Package: libudev0
Status: install ok installed
Priority: important
Section: admin
Installed-Size: 200
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: same
Source: udev
Version: 175-0ubuntu9
Depends: libc6 (>= 2.8)
Pre-Depends: multiarch-support
Description: udev library
 libudev provides a set of functions for accessing the udev database
 and querying sysfs.
Homepage: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
But still getting Fine Offset Station not found...

Re: FineOffset Station not found!

Posted: Sun 20 Dec 2015 11:09 am
by steve
In this recent thread, someone got their station to be detected by moving it to a different USB port - have you tried that?

https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=14635

If that doesn't help, download the test program that I attached in that thread and follow the instructions I gave there.

Re: FineOffset Station not found!

Posted: Sun 20 Dec 2015 11:15 am
by Luciano_SR
steve,
First of all, thanks for all the attention. This is incredible!!

So, I did try to use different USB ports, and no sucess from that.

Running your test software, we get the following (looks like it is able to open the station):

Code: Select all

$ sudo mono HidSharp.Test.exe
sysname=Linux release=4.2.0 machine=x86_64
Complete device list (took 369 ms to get 4 devices):
Microsoft Microsoft® 2.4GHz Transceiver v8.0 (VID 1118, PID 1861, version 512)
Microsoft Microsoft® 2.4GHz Transceiver v8.0 (VID 1118, PID 1861, version 512)
Microsoft Microsoft® 2.4GHz Transceiver v8.0 (VID 1118, PID 1861, version 512)
(unnamed) (VID 6465, PID 32801, version 266)

Opening Fine Offset station
Found Fine Offset station

Max Lengths:
  Input:   9
  Output:  9
  Feature: 0

The operating system name for this device is:
  /sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:1941:8021.0004/hidraw/hidraw3

stream opened successfully
Opening Oregon Scientific station
Oregon Scientific station not found
Press a key to exit...

Re: FineOffset Station not found!

Posted: Sun 20 Dec 2015 11:17 am
by steve
That's very odd, then - the code in that test program is exactly the same as in Cumulus.

Re: FineOffset Station not found!

Posted: Sun 20 Dec 2015 12:20 pm
by Luciano_SR
Yeah... Let me know if you have any other idea. I can even open my computer for remote access if you wish (but we'll need to set details in private, obviously).

So I'll remain using Windows until we solve this.

Many thanks for you time and patience! Have a nice Sunday!

Re: FineOffset Station not found!

Posted: Sun 20 Dec 2015 1:28 pm
by steve
You could try replacing the Hidsharp.dll in MX with the one from the test program. It should be exactly the same (apart from the debug messages I added), but who knows. The only thing the test program does which MX doesn't, is to enumerate the devices first. Again, that shouldn't make any difference.

Perhaps someone else using Ubuntu could suggest something.

Re: FineOffset Station not found!

Posted: Sun 20 Dec 2015 1:37 pm
by Luciano_SR
steve.....

Doesn't make sense, but it worked!!!! :clap: :clap: :clap:

Code: Select all

$ sudo mono CumulusMX.exe
Current culture: English (United States)
Serial: DF705AC8BBB3890EFE82D2E7131FBB24
Cumulus MX v.3.0.0 build 3036
Today.ini = data/today.ini
Last update=2015-12-20T10:46:44
sysname=Linux release=4.2.0 machine=x86_64
Fine Offset station found
Connected to station
Cumulus running at: http://*:8998/
(Replace * with any IP address on this machine, or localhost)
Starting web socket server on port 8002
12/20/2015 11:35:59 AM
Type Ctrl-C to terminate
Now I'm up and running on Lubuntu!!

Re: FineOffset Station not found!

Posted: Sun 20 Dec 2015 1:43 pm
by steve
OK, thanks. I'll switch back to distributing the version of the Hidsharp.dll I build myself rather than the pre-built version.