HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: tinnerdxp on May 22, 2015, 03:31:49 PM

Title: Ubuntu 12.04LTS not detecting Aeon Labs Z-Stick
Post by: tinnerdxp on May 22, 2015, 03:31:49 PM
Hello All,

I have a problem with my Aeon stick NOT being detected on my Ubuntu install. I believe it's either wrong version of Mono or some other problem - but I cannot get all the facts together to debug successfully...

So...
- The box is an AMD Turion based microserver running 64bit Ubuntu 12.04LTS headless.
- The zwave stick gets detected properly:
[532698.033529] cp210x 4-3:1.0: cp210x converter detected
[532698.172210] usb 4-3: reset full-speed USB device number 6 using ohci_hcd
[532698.335564] usb 4-3: cp210x converter now attached to ttyUSB0
[535200.159622] usb 4-3: USB disconnect, device number 6
[535200.160013] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
- I have tried both version of HomeGenie - 484 and 487 using both gdebi and pkgi as I have read somewhere that I might be running old version of Mono...

- I have installed the latest version of Mono using instructions from the Mono project website - problem is I don't know how to tell what versions get used by HomeGenie as the latest version of Mono contain both - v2 and v4 libraries...
- At the moment HomeGenie starts but doesn't detect the stick as the systemconfig.xml never puts anything for zwave port regardless if I put something manually or not. (GUI returns null after enabling zwave support)
- HomeGenie starts BUT reports a problem straight away:
2015-05-22T14:30:13.3167930+01:00   HomeAutomation.HomeGenie   0   HomeGenie service ready   SystemInfo.HttpPort   8081
2015-05-22T14:30:13.5071160+01:00   HomeAutomation.HomeGenie   LoadConfiguration()   Exception has been thrown by the target of an invocation.   Exception.StackTrace     at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo elem) [0x00000] in <filename unknown>:0
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadListElement (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, System.Object list, Boolean canCreateInstance) [0x00000] in <filename unknown>:0
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) [0x00000] in <filename unknown>:0
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot (System.Xml.Serialization.XmlTypeMapping rootMap) [0x00000] in <filename unknown>:0
  at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot () [0x00000] in <filename unknown>:0
  at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader reader) [0x00000] in <filename unknown>:0
2015-05-22T14:30:13.6355140+01:00   HomeGenie.UpdateChecker   0   HomeGenie Update Checker   InstallProgress.Update   STARTED




I have no idea what to do next - Aeon stick is fine - works fine on windows, zwave devices are registered on it - work fine in Windows, I have tried resetting the controller to factory settings, pluging it before starting homegenie or after...
It's either the Mono or some issue with config file - but I don't know what to do next...



Anyone could advise please?
Title: Re: Ubuntu 12.04LTS not detecting Aeon Labs Z-Stick
Post by: tinnerdxp on May 26, 2015, 09:51:15 AM
Anyone? Have I structured the question wrong? Is it too technical? Post too long?
Come on guys - can't believe you all run it on a pie?
Title: Re: Ubuntu 12.04LTS not detecting Aeon Labs Z-Stick
Post by: Gene on May 26, 2015, 10:36:15 AM
you need mono runtime 3.2 or later.

Cheers,
g.
Title: Re: Ubuntu 12.04LTS not detecting Aeon Labs Z-Stick
Post by: tinnerdxp on May 27, 2015, 01:49:22 PM
Cheers - will test tonight and report back.
Title: Re: Ubuntu 12.04LTS not detecting Aeon Labs Z-Stick
Post by: mikeH on May 28, 2015, 01:20:08 AM
I'm running on 14.04 LTS in a VM with no issues. I've also run on RPi2 and quite frankly that thing is amazing for this.
Title: Re: Ubuntu 12.04LTS not detecting Aeon Labs Z-Stick
Post by: tinnerdxp on May 28, 2015, 03:02:21 PM
Thanks guys, apparently I had bits from new mono 4.x and most of the old mono 2.0 installed.
After upgrading the mono-complete package it worked straight away.
Unfortunately upgrade killed my ZFS pool... so have to fix that now. Maybe it's time to upgrade to 14.04LTS

I was considering RP for this - but have a micro server running 24/7 anyway - so no point in having additional "box" running just for zwave stuff.

Thanks again guys.
Title: Re: Ubuntu 12.04LTS not detecting Aeon Labs Z-Stick
Post by: mikeH on June 06, 2015, 10:38:10 PM
You may still want to run an RPi as a second low power HG node.  I haven't done this myself, but I moved from RPi 1 to a 14.04 VM on a server that I was already running.  Using the RPi as the web page driver was too slow (RPi2 was totally fine) but having some old RPi 1 nodes out as sensors or even smart extenders might be really compelling.