Page 2 of 4

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 2:19 pm
by steve
Could you please tell me what version of mono you have, and whether it includes Mono.Posix, and what kernel version you are running?

Please also paste the output from the attached updated test program.

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 2:30 pm
by Spider-Vice
Mono:

Code: Select all

Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen
Kernel:

Code: Select all

Linux 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:30:01 UTC 2014 i686 i686 i686 GNU/Linux
No idea on how to check whether I have Mono.Posix or not. :oops: I do have its DLL on /usr/lib/mono/4.5/


New USB test:

Code: Select all

sysname=Linux release=3.13.0 machine=i686
System.DllNotFoundException: libudev.so.0
  at (wrapper managed-to-native) HidSharp.Platform.Linux.NativeMethods:udev_new ()
  at HidSharp.Platform.Linux.LinuxHidManager.get_IsSupported () [0x00000] in <filename unknown>:0 
Not supported
Complete device list (took 386 ms to get 0 devices):

Opening HID class device...
Failed to open device.

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 2:36 pm
by steve
Aha. So you need to install package libudev-dev at a guess.

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 2:42 pm
by mcrossley
Is this any help? Running 32 bit programs on 64 bit Linux can cause this error...

http://stackoverflow.com/questions/2115 ... file-no-su

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 2:52 pm
by Spider-Vice
Unfortunately I still have the same error after installing libudev-dev.

@Mark: My Linux Mint is 32-bit.

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 2:56 pm
by steve
Perhaps you have libudev.so.1 rather than libudev.so.0 - Google suggests this is a common problem. Possibly resolved by installing package libudev0.

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 3:05 pm
by Spider-Vice
Followed this (http://www.unixmen.com/resolve-libudev0 ... ntu-13-04/) advice and the USB test app now detects something!

Code: Select all

sysname=Linux release=3.13.0 machine=i686
Complete device list (took 605 ms to get 1 devices):
(unnamed) (VID 6465, PID 32801, version 266)

Opening HID class device...

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

The operating system name for this device is:
  /sys/devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/0003:1941:8021.0001/hidraw/hidraw0

Device opened successfully
Press a key to exit...
And according to diags, it has successfuly recognised the FO station and it is working successfully now! :D

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 3:11 pm
by steve
I'm pleased you have it working, but the instructions in that link are a bit scary - you're apparently installing a package from a dropbox account? Is there no official source?

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 3:30 pm
by Spider-Vice
Yeah, I know, but apparently it is indeed the real libdev0 package, it's just an older version. There probably is a way to add an official repository though.

Edit: Official Ubuntu link: http://www.ubuntuupdates.org/package/co ... s/libudev0 The download links are from Ubuntu's servers. (security.ubuntu.com)

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 3:57 pm
by mcrossley
does "apt-get install libudev0" not work? On my Pi (Debian) it says it is already the latest version.

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 4:05 pm
by Spider-Vice
It said something about being located in a different source and didn't download it.

Re: Fine Offset + Linux Mint

Posted: Tue 13 Jan 2015 8:18 pm
by Buford T. Justice
steve wrote:Could you please unzip the attached on your Linux system, then change to the directory in a command window and type:

mono HidSharp.Test.exe

and paste the output here.
mono HidSharp.Test.exe
Complete device list (took 77 ms to get 0 devices):

Opening HID class device...
Failed to open device.

I also installed libudev-dev but that didn't work.

I THINK I FIXED IT!!!

https://cumulus.hosiene.co.uk/viewtopic.p ... 13#p107913

In Ubuntu and it's derivatives for 14.04 Trusty Tahr, in both /lib/x86_64-linux-gnu and /lib/i386-linux-gnu there is a link file called libudev.so.1 which links to libudev.so.1.3.5. I decided the hell with it and made another link file in both locations called libudev.so.0 by right-clicking on libudev.so.1.3.5, making a link, and then renaming the link file. I fired up CMX and data is being displayed. IT'S ALIVE!!!

Re: Fine Offset + Linux Mint

Posted: Sat 31 Jan 2015 12:57 am
by Hunter362
I was having the same exact problem, CMX ran fine on a laptop that was *upgraded* from Ubuntu 13 to 14.04
libudev.so.0 is not available in 14.04, but must have been installed sometime prior, thus CMX ran fine on my laptop.
So following Bufords post I did the same,

cd /lib/x86_64-linux-gnu/
sudo ln -sf libudev.so.1 libudev.so.0

And she works!! To clarify, CMX started fine, but could not find the Fine Offset station.

Also could not get CMX to run using mono 2.10.8.1 Ubuntu 12.04
Running on Ubuntu 14.4 with mono 3.2.8

I'll keep checking posts, just got excited that I finally got it working and displaying!
Question, in Cumulus 1 you have the option to copy the files to the web directory rather than ftping them, I want to run this on the same machine
thats hosting my website, I don't see that copy option in CMX

Re: Fine Offset + Linux Mint

Posted: Sat 31 Jan 2015 8:51 am
by steve
Hunter362 wrote:Question, in Cumulus 1 you have the option to copy the files to the web directory rather than ftping them, I want to run this on the same machine
thats hosting my website, I don't see that copy option in CMX
It's exactly the same in MX, you put a file name in the 'remote' box and don't tick 'ftp'. Where is the option that you think is missing?

Re: Fine Offset + Linux Mint

Posted: Sat 31 Jan 2015 3:14 pm
by mcrossley
Hunter362 wrote:cd /lib/x86_64-linux-gnu/
sudo ln -sf libudev.so.1 libudev.so.0
I did read somewhere in my Googling on this when it first came up that libudev0 and libudev1 are not the same beast (hence the different names :roll:) and whilst creating a cross link may work for some things, it may break others, and is generally considered a bad idea.