Page 2 of 3

Re: Lack of updates

Posted: Mon 27 Nov 2017 12:31 pm
by richard_newberry
Hi Steve, I hope you're enjoying France compared to the shetland island alot warmer?

Back to the post, What version is CumulusMX is using out of the usb library? CumulusMX using an old version of usb library thats why its not compatible with the newer Mono versions past 4.0.5 ?

Re: Lack of updates

Posted: Mon 27 Nov 2017 1:17 pm
by richard_newberry
Steve has it got something to do with the file within CumulusMX called HidSharp.dll

Re: Lack of updates

Posted: Mon 27 Nov 2017 1:26 pm
by steve
I’m pretty sure MX is using the latest version of hidsharp, it’s just that hidsharp has not been updated for a long time.

Enjoying France very much, but about to move into Spain tomorrow, to give that a try.

Re: Lack of updates

Posted: Mon 27 Nov 2017 1:31 pm
by richard_newberry
Hi Steve,

Spain hey. I take it you got a mobile home then if you're travelling about so much?

Can't CumulusMX use another usb library if HIDSharp hasn't been updated in a while?

Re: Lack of updates

Posted: Mon 27 Nov 2017 1:51 pm
by richard_newberry
I have notified the people who update HIDSharp. If it does get updated do we update the HIDSharp.dll so we can update Mono on our usb devices????

Re: Lack of updates

Posted: Mon 27 Nov 2017 2:16 pm
by steve
Yes, we have a motorhome.

Changing to another library, even if a suitable one existed, would require extensive changes to MX.

Hidsharp is open source, so “the people who update it” means anyone and everyone. It’s highly unlikely that the original author would do it himself. I don’t know whether an updated dll would work as a drop-in or whether it would require a rebuild of MX, or perhaps even some changes to MX.

Re: Lack of updates

Posted: Mon 27 Nov 2017 2:23 pm
by richard_newberry
So from my understanding is libudev1 isn't compatible and Mono 4.6.2 which comes with debian stretch so we need to have a older version for it to work with CumulusMX but if we updated HIDSharp we wouldn't have any problems?

Re: Lack of updates

Posted: Mon 27 Nov 2017 2:36 pm
by steve
That’s the theory, but software compatibility is rarely straightforward.

Re: Lack of updates

Posted: Mon 27 Nov 2017 9:04 pm
by richard_newberry
I have a reply.

Hello Richard,

The version I am using internally for my own projects has supported both libudev.so.0 and libudev.so.1 for about 6 months now. If I get some time this weekend maybe I can publish it.
What do you mean about lib and lib64? Mono should be choosing the correct library directory in that respect.

Thanks for letting me know about this!
James

Re: Lack of updates

Posted: Mon 27 Nov 2017 9:14 pm
by steve
That's good news - maybe the newer version will fix the other compatibility issues along with the libudev1 support.

Re: Lack of updates

Posted: Mon 27 Nov 2017 9:43 pm
by richard_newberry
I only asked nicely :P

I gave him links to the forum so he can look at what people are saying about mono and gotta install libudev0 instead of libudev1

I do have to say it's not your fault but i can honestly say on behalf of the other folks it'll be good to get the compatibility issues sorted out. its getting really frustrating now.

Re: Lack of updates

Posted: Mon 27 Nov 2017 9:44 pm
by richard_newberry
Can you tell me the problem with Mono with the lib or the lib64 so i can email him the full correct version of things please Steve, When you get a minute spare ofcourse.

Re: Lack of updates

Posted: Tue 28 Nov 2017 4:20 pm
by steve
Sorry, I don’t know what the problem is with Mono, and I don’t know anything about a lib or lib64 problem.

All I know is that with some versions of Mono USB stations don’t get detected, and with some versions of Mono some people get a ‘method not found’ exception, but I don’t know why that is.

Re: Lack of updates

Posted: Tue 28 Nov 2017 9:10 pm
by richard_newberry
Hmm. Well, the newer version of HIDSharp is not entirely compatible with the old version, so the software using it would need to be updated. What are the details of the Method Not Found exception, out of curiosity?

If you just want libudev1 to work using the same software, you can create a symlink from libudev0 to libudev1. There's nothing meaningfully different between the two, so it will work.

Hope this helps,

James

What can i tell him about the Not Found exception??

Re: Lack of updates

Posted: Tue 28 Nov 2017 9:34 pm
by steve
System.MissingMethodException: Method 'Mono.Unix.Native.Syscall.uname' not found.
at System.RuntimeType.InvokeMember (System.String name, System.Reflection.BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) [0x008a0] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Type.InvokeMember (System.String name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args, System.Globalization.CultureInfo culture) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at HidSharp.Platform.Linux.NativeMethods.uname (System.String& sysname, System.String& release, System.String& machine) [0x00047] in <ae7920a0f15c43d292a5cc3a2fd0a936>:0
at HidSharp.Platform.Linux.NativeMethods.uname (System.String& sysname, System.Version& release, System.String& machine) [0x00004] in <ae7920a0f15c43d292a5cc3a2fd0a936>:0
at HidSharp.Platform.Linux.LinuxHidManager.get_IsSupported () [0x00002] in <ae7920a0f15c43d292a5cc3a2fd0a936>:0