HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: codedmind on September 05, 2014, 02:24:35 PM

Title: CM15A PRO USB RPI
Post by: codedmind on September 05, 2014, 02:24:35 PM
Hy there,

My x10 cm15a pro isn't working, any way i can debug why?

Thanks
Title: Re: CM15A PRO USB RPI
Post by: bkenobi on September 05, 2014, 04:53:20 PM
You'll have to be a little more specific.  But, as a first blind suggestion, try turning on debugging and check for error messages.  If that doesn't help, try launching HG manually and watch mono output.
Title: Re: CM15A PRO USB RPI
Post by: codedmind on September 05, 2014, 07:21:59 PM
I don't know if the problem is because i have mochad too...

But when i connect the usb i get a lot of this lines on dmesg:
[96577.577655] usb 1-1.2: usbfs: interface 0 claimed by usbfs while 'mono' sets config #1
[96577.579385] usb 1-1.2: usbfs: process 2971 (mono) did not claim interface 0 before use

How can i turn debug on?

Thanks
Title: Re: CM15A PRO USB RPI
Post by: bkenobi on September 05, 2014, 07:28:02 PM
I don't think you can rum mochad and HG with both accessing the CM15 at the same time.
Title: Re: CM15A PRO USB RPI
Post by: codedmind on September 05, 2014, 07:29:36 PM
If i kill mochad, the dmesg lines stops, however no juice...

starting hg manual i get the folling error after try use x10 command
[18:28:03.815657] X10 < 04 19
[18:28:03.850245] X10 ! The object was used after being disposed.
[18:28:03.930441] X10 !   at System.Runtime.InteropServices.SafeHandle.DangerousGetHandle () [0x00000] in <filename unknown>:0
  at LibUsbDotNet.LudnMonoLibUsb.Internal.MonoUsbTransferContext.Fill (IntPtr buffer, Int32 offset, Int32 count, Int32 timeout) [0x00000] in <filename unknown>:0
  at LibUsbDotNet.Main.UsbTransfer.Fill (System.Object buffer, Int32 offset, Int32 count, Int32 timeout) [0x00000] in <filename unknown>:0
  at LibUsbDotNet.Main.UsbEndpointBase.SubmitAsyncTransfer (System.Object buffer, Int32 offset, Int32 length, Int32 timeout, LibUsbDotNet.Main.UsbTransfer& transferContext) [0x00000] in <filename unknown>:0
  at XTenLib.Drivers.CM15.WriteData (System.Byte[] bytesToSend) [0x00000] in <filename unknown>:0
  at XTenLib.XTenManager.SendMessage (System.Byte[] message) [0x00000] in <filename unknown>:0
[18:28:03.989045] X10 < 06 13
[18:28:03.993233] X10 ! The object was used after being disposed.
[18:28:04.004909] X10 !   at System.Runtime.InteropServices.SafeHandle.DangerousGetHandle () [0x00000] in <filename unknown>:0
  at LibUsbDotNet.LudnMonoLibUsb.Internal.MonoUsbTransferContext.Fill (IntPtr buffer, Int32 offset, Int32 count, Int32 timeout) [0x00000] in <filename unknown>:0
  at LibUsbDotNet.Main.UsbTransfer.Fill (System.Object buffer, Int32 offset, Int32 count, Int32 timeout) [0x00000] in <filename unknown>:0
  at LibUsbDotNet.Main.UsbEndpointBase.SubmitAsyncTransfer (System.Object buffer, Int32 offset, Int32 length, Int32 timeout, LibUsbDotNet.Main.UsbTransfer& transferContext) [0x00000] in <filename unknown>:0
  at XTenLib.Drivers.CM15.WriteData (System.Byte[] bytesToSend) [0x00000] in <filename unknown>:0
  at XTenLib.XTenManager.SendMessage (System.Byte[] message) [0x00000] in <filename unknown>:0
2014-09-05T18:28:04.0984840+01:00   MIG.Gateways.WebServiceGateway   192.168.1.145   api/HomeAutomation.HomeGenie/Logging/RealTime.EventStream/   HTTP   GET
2014-09-05T18:28:04.1229030+01:00   HomeAutomation.X10   E6   -   Status.Level   0
Title: Re: CM15A PRO USB RPI
Post by: bkenobi on September 05, 2014, 07:35:08 PM
Maybe try restarting the system before launching HG?
Title: Re: CM15A PRO USB RPI
Post by: codedmind on September 05, 2014, 07:36:34 PM
after las update start working :D

Don't know why... but ok is working, mochad killed like yesterday... today didn't even restart rpi... but is working...
Title: Re: CM15A PRO USB RPI
Post by: bkenobi on September 05, 2014, 11:21:52 PM
HG keeps trying to connect, so if you unplug the usb and then reconnect it will start working again without a restart.