more G-Labs products

Author Topic: CM15A PRO USB RPI  (Read 2357 times)

September 05, 2014, 02:24:35 PM
Read 2357 times

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
Hy there,

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

Thanks

September 05, 2014, 04:53:20 PM
Reply #1

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
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.

September 05, 2014, 07:21:59 PM
Reply #2

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
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

September 05, 2014, 07:28:02 PM
Reply #3

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I don't think you can rum mochad and HG with both accessing the CM15 at the same time.

September 05, 2014, 07:29:36 PM
Reply #4

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
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

September 05, 2014, 07:35:08 PM
Reply #5

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Maybe try restarting the system before launching HG?

September 05, 2014, 07:36:34 PM
Reply #6

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
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...

September 05, 2014, 11:21:52 PM
Reply #7

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
HG keeps trying to connect, so if you unplug the usb and then reconnect it will start working again without a restart.