more G-Labs products

Author Topic: CM15PRO - worked with HG but not working of late  (Read 6290 times)

October 18, 2015, 11:58:01 PM
Reply #15

JerryR

  • *
  • Information
  • Newbie
  • Posts: 20
Hi Pete,

Thanks for the replies. I suppose it is possible that the CM15 is having problems that have just developed but odd that it worked for such a long time with no issues.  I wish someone was on here who could comment about the specific errors I am seeing from the x10lib.

2015-10-18 16:53:17.7482 Error System.Exception: Submit Async Write Failed.
  at XTenLib.Drivers.CM15.WriteData (System.Byte[] bytesToSend) [0x00000] in <filename unknown>:0
  at XTenLib.Drivers.CM15.Open () [0x00000] in <filename unknown>:0

Perhaps there isn't much to say beyond the fact that it is having I/O errors but I'm just wondering if anyone else has encountered this. I have found that sometimes if I re-power the CM15 after leaving it off for a minute, the interface will come up for a while with no errors. I will try to set something up with my Windows Pc as you suggested and see how long it will run continuously without failing under Windows.

I have tried the connection directly to the RPi but also through the hub. I can't really say I see too much difference in terms of how long it works before it fails. I really hate to purchase another CM15a until I know for absolutely sure that it is a hardware problem with my existing interface. I wonder if anyone has found a better inter face to use other than the CM15 since they are rather pricey.

Thanks again for the replies. I'll see what I can do with the Windows test.

Jerry

October 19, 2015, 04:36:59 PM
Reply #16

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
That's where testing in Windows would help.  I'd also recommend trying AHP again to see if it works correctly.  If both Windows and AHP work, it must be something with the RPi configuration.

October 19, 2015, 08:27:56 PM
Reply #17

petediscrete

  • ****
  • Information
  • Sr. Member
  • Posts: 220
Does sound a little like a failing circuit in the CM15Pro. Typical failures like dry solder joints, resistor failure or failing IC chips give these intermittent symptoms. It may be easier and cheaper in man hour terms to buy a replacement unless you feel confident enough to dismantle the unit and test it with a meter.

October 31, 2015, 08:34:30 PM
Reply #18

chrispazz

  • **
  • Information
  • Jr. Member
  • Posts: 38
I have the same problem with last 1.1 beta, CM15 pro running in a Raspberry PI, so no CM15Pro or windows problem....

October 31, 2015, 10:26:15 PM
Reply #19

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
I reverted some new code. In the new code I used .net45 "Task" and "CancellationToken". It seems that either I am not using this new stuff properly, or it has bad performances on small computers.
The new code XTenLib was running ok on my bananapi, but I could see occasional I/O error reported in the log. Now after reverting the code I don't see this I/O error anymore, so hopefully this code will fix your issue as well.
Please test by replacing the attacched XTenLib.dll in the homegenie/lib/mig folder. Be sure not to have an XTenLib.dll placed in the main homegenie folder.

g.
« Last Edit: October 31, 2015, 10:34:12 PM by Gene »

October 31, 2015, 11:04:10 PM
Reply #20

chrispazz

  • **
  • Information
  • Jr. Member
  • Posts: 38
Hi Gene, thank you for your evening help :)

Still not working....
Here are the logs:

2015-10-31 23:01:54.0684 Warn Interface I/O error
2015-10-31 23:01:54.0737 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.On/null/ [CLOSED AFTER 0.009 seconds]
2015-10-31 23:01:54.2448 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.On/null/ [OPEN]
2015-10-31 23:01:54.2478 Debug 04-6D
2015-10-31 23:01:54.2485 Warn Interface I/O error
2015-10-31 23:01:54.2485 Debug 06-62
2015-10-31 23:01:54.2496 Warn Interface I/O error
2015-10-31 23:01:54.2542 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.On/null/ [CLOSED AFTER 0.009 seconds]
2015-10-31 23:01:55.0418 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.Off/null/ [OPEN]
2015-10-31 23:01:55.0483 Debug 04-6D
2015-10-31 23:01:55.0490 Warn Interface I/O error
2015-10-31 23:01:55.0497 Debug 06-63
2015-10-31 23:01:55.0504 Warn Interface I/O error
2015-10-31 23:01:55.0518 Info HomeAutomation.X10   A8   -   Status.Level   0
2015-10-31 23:01:55.0672 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.Off/null/ [CLOSED AFTER 0.025 seconds]
2015-10-31 23:01:55.2223 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.Off/null/ [OPEN]
2015-10-31 23:01:55.2253 Debug 04-6D
2015-10-31 23:01:55.2297 Warn Interface I/O error
2015-10-31 23:01:55.2297 Debug 06-63
2015-10-31 23:01:55.2323 Warn Interface I/O error
2015-10-31 23:01:55.2337 Info HomeAutomation.X10   A8   -   Status.Level   0
2015-10-31 23:01:55.2485 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.Off/null/ [CLOSED AFTER 0.026 seconds]
2015-10-31 23:01:56.3360 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.On/null/ [OPEN]
2015-10-31 23:01:56.3387 Debug 04-6D
2015-10-31 23:01:56.3394 Warn Interface I/O error
2015-10-31 23:01:56.3394 Debug 06-62
2015-10-31 23:01:56.3406 Warn Interface I/O error
2015-10-31 23:01:56.3417 Info HomeAutomation.X10   A8   -   Status.Level   1
2015-10-31 23:01:56.3571 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.On/null/ [CLOSED AFTER 0.021 seconds]
2015-10-31 23:01:56.4825 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.On/null/ [OPEN]

October 31, 2015, 11:11:41 PM
Reply #21

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
I am afraid I dunno where the problem is then... anyway can you try showing log of the following transaction:

- disable interface and wait 5 seconds
- enable interface
- switch something on and off

which model is your CM15? US or EU?

g.

October 31, 2015, 11:22:53 PM
Reply #22

chrispazz

  • **
  • Information
  • Jr. Member
  • Posts: 38
My CM15 is EU.
I have installed 1.1 without restoring previous configuration so it is a fresh instance.

here is the log:

2015-10-31 23:17:41.8847 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/MIGService.Interfaces/Media.CameraInput/Options.Get/Configuration// [OPEN]
2015-10-31 23:17:41.9224 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/MIGService.Interfaces/Protocols.UPnP/IsEnabled.Get/// [OPEN]
2015-10-31 23:17:41.9708 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/MIGService.Interfaces/Protocols.UPnP/IsEnabled.Get/// [CLOSED AFTER 0.048 seconds]
2015-10-31 23:17:41.9502 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/MIGService.Interfaces/HomeAutomation.W800RF/Options.Get/Port// [OPEN]
2015-10-31 23:17:41.9979 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/MIGService.Interfaces/HomeAutomation.W800RF/Options.Get/Port// [CLOSED AFTER 0.048 seconds]
2015-10-31 23:17:44.4462 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [CLOSED AFTER 0.006 seconds]
2015-10-31 23:17:44.4403 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [OPEN]
2015-10-31 23:17:44.2207 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/MIGService.Interfaces/HomeAutomation.X10/IsEnabled.Set/0// [OPEN]
2015-10-31 23:17:44.2223 Debug Disabling Interface HomeAutomation.X10
2015-10-31 23:17:45.4128 Info MIGService.Interfaces   HomeAutomation.X10   MIG Interface   Status.IsEnabled   0
2015-10-31 23:17:45.6440 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [CLOSED AFTER 0.019 seconds]
2015-10-31 23:17:45.6248 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [OPEN]
2015-10-31 23:17:47.2880 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/MIGService.Interfaces/HomeAutomation.X10/IsEnabled.Set/0// [CLOSED AFTER 3.067 seconds]
2015-10-31 23:17:54.5969 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [OPEN]
2015-10-31 23:17:54.6028 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [CLOSED AFTER 0.006 seconds]
2015-10-31 23:18:03.9497 Info HomeAutomation.PhilipsHue   1   -   Meter.Watts   0.0
2015-10-31 23:18:03.9737 Info HomeAutomation.PhilipsHue   2   -   Meter.Watts   0.0
2015-10-31 23:18:03.9903 Info HomeAutomation.PhilipsHue   3   -   Meter.Watts   0.0
2015-10-31 23:18:04.6067 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [CLOSED AFTER 0.006 seconds]
2015-10-31 23:18:04.6003 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [OPEN]
2015-10-31 23:18:05.3556 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/MIGService.Interfaces/HomeAutomation.X10/IsEnabled.Set/1// [OPEN]
2015-10-31 23:18:05.3572 Debug Enabling Interface HomeAutomation.X10
2015-10-31 23:18:05.3590 Info HomeAutomation.X10
2015-10-31 23:18:05.4070 Error System.Exception: Submit Async Write Failed.
at XTenLib.Drivers.CM15.WriteData (System.Byte[] bytesToSend) [0x00000] in <filename unknown>:0
at XTenLib.Drivers.CM15.Open () [0x00000] in <filename unknown>:0
2015-10-31 23:18:05.4092 Info MIGService.Interfaces   HomeAutomation.X10   MIG Interface   Status.IsEnabled   1
2015-10-31 23:18:05.6267 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [CLOSED AFTER 0.015 seconds]
2015-10-31 23:18:05.6118 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [OPEN]
2015-10-31 23:18:05.8612 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/MIGService.Interfaces/HomeAutomation.X10/IsEnabled.Set/1// [CLOSED AFTER 0.506 seconds]
2015-10-31 23:18:10.4575 Error System.Exception: Submit Async Write Failed.
at XTenLib.Drivers.CM15.WriteData (System.Byte[] bytesToSend) [0x00000] in <filename unknown>:0
at XTenLib.Drivers.CM15.Open () [0x00000] in <filename unknown>:0
2015-10-31 23:18:12.7176 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Automation/Macro.GetDelay/ [CLOSED AFTER 0.005 seconds]
2015-10-31 23:18:12.7128 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Automation/Macro.GetDelay/ [OPEN]
2015-10-31 23:18:12.8069 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Groups.List/Control/ [CLOSED AFTER 0.083 seconds]
2015-10-31 23:18:12.7236 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Groups.List/Control/ [OPEN]
2015-10-31 23:18:13.3464 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Modules.List/ [CLOSED AFTER 0.284 seconds]
2015-10-31 23:18:13.0619 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Modules.List/ [OPEN]
2015-10-31 23:18:13.3590 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Automation/Programs.List/ [OPEN]
2015-10-31 23:18:14.0103 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Automation/Programs.List/ [CLOSED AFTER 0.651 seconds]
2015-10-31 23:18:14.5157 Error System.Exception: Submit Async Write Failed.
at XTenLib.Drivers.CM15.WriteData (System.Byte[] bytesToSend) [0x00000] in <filename unknown>:0
at XTenLib.Drivers.CM15.Open () [0x00000] in <filename unknown>:0
2015-10-31 23:18:14.6108 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [CLOSED AFTER 0.006 seconds]
2015-10-31 23:18:14.6047 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [OPEN]
2015-10-31 23:18:19.7320 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.On/null/ [OPEN]
2015-10-31 23:18:19.7346 Debug 04-6D
2015-10-31 23:18:19.7571 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.On/null/ [CLOSED AFTER 0.025 seconds]
2015-10-31 23:18:19.7366 Info HomeAutomation.X10   A8   -   Status.Level   1
2015-10-31 23:18:19.7354 Warn Interface I/O error
2015-10-31 23:18:19.7354 Debug 06-62
2015-10-31 23:18:19.7346 Warn Interface I/O error
2015-10-31 23:18:20.5575 Error System.Exception: Submit Async Write Failed.
at XTenLib.Drivers.CM15.WriteData (System.Byte[] bytesToSend) [0x00000] in <filename unknown>:0
at XTenLib.Drivers.CM15.Open () [0x00000] in <filename unknown>:0
2015-10-31 23:18:24.5886 Error System.Exception: Submit Async Write Failed.
at XTenLib.Drivers.CM15.WriteData (System.Byte[] bytesToSend) [0x00000] in <filename unknown>:0
at XTenLib.Drivers.CM15.Open () [0x00000] in <filename unknown>:0
2015-10-31 23:18:24.6413 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [CLOSED AFTER 0.04 seconds]
2015-10-31 23:18:24.6010 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.HomeGenie/Config/Interfaces.List/ [OPEN]
2015-10-31 23:18:25.4984 Info HomeAutomation.EnergyMonitor   1   Virtual Module   EnergyMonitor.KwLoad   0.007
2015-10-31 23:18:25.5136 Info HomeAutomation.EnergyMonitor   1   Virtual Module   EnergyMonitor.WattLoad   7.240
2015-10-31 23:18:25.5204 Info HomeAutomation.EnergyMonitor   1   Virtual Module   EnergyMonitor.OperatingDevices   1
2015-10-31 23:18:25.5362 Info HomeAutomation.EnergyMonitor   1   Virtual Module   EnergyMonitor.OperatingLights   0
2015-10-31 23:18:25.5428 Info HomeAutomation.EnergyMonitor   1   Virtual Module   EnergyMonitor.OperatingSwitches   1
2015-10-31 23:18:28.6457 Error System.Exception: Submit Async Write Failed.
at XTenLib.Drivers.CM15.WriteData (System.Byte[] bytesToSend) [0x00000] in <filename unknown>:0
at XTenLib.Drivers.CM15.Open () [0x00000] in <filename unknown>:0
2015-10-31 23:18:29.6172 Info WebServiceGateway   192.168.1.110   HTTP   GET   200 /api/HomeAutomation.X10/A8/Control.Off/null/ [CLOSED AFTER 0.029 seconds]
2015-10-31 23:18:29.5976 Info HomeAutomation.X10   A8   -   Status.Level   0
2015-10-31 23:18:29.5961 Error System.Exception: Submit Async Write Failed.
at XTenLib.Drivers.CM15.WriteData (System.Byte[

October 31, 2015, 11:45:36 PM
Reply #23

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
chris what mono version are you running?
mono --version
your CM15 is same as mine, so I don't see any reason why it shouldn't work.

November 01, 2015, 12:54:19 AM
Reply #24

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Also check libusb version. This is my config:
Code: [Select]
bananapi@lemaker ~ $ dpkg -l | grep libusb
ii  libusb-0.1-4:armhf                                          2:0.1.12-20+nmu1                        armhf        userspace USB programming library
ii  libusb-1.0-0:armhf                                          2:1.0.11-1                              armhf        userspace USB programming library
ii  libusb-1.0-0-dev                                            2:1.0.11-1                              armhf        userspace USB programming library development files
bananapi@lemaker ~ $ mono --version
Mono JIT compiler version 4.0.4 (Stable 4.0.4.1/5ab4c0d Tue Aug 25 23:45:14 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. [url=http://www.mono-project.com]www.mono-project.com[/url]
TLS:           __thread
SIGSEGV:       normal
Notifications: epoll
Architecture:  armel,vfp+hard
Disabled:      none
Misc:          softdebug
LLVM:          supported, not enabled.
GC:            sgen


November 01, 2015, 03:36:47 AM
Reply #25

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I'm running mono 3.2.8 and the same versions of libusb.

November 01, 2015, 11:57:18 AM
Reply #26

emerich

  • ***
  • Information
  • Full Member
  • Posts: 73
Hi,
i'm having the same problems with CM15Pro. Help would be very appreciated.

br. Christian

November 01, 2015, 01:49:42 PM
Reply #27

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
I am not able to reproduce the issue, so I can't help unless you provide a sistematic way of hitting this issue.
I also wanted to test on a old Raspberry Pi model A, where I had r492 installed.
With 492 no problems and also doing a fresh install of latest r499 no issues at all (both using the XTenLib.dll from r499 package and the one attacched to the previous message).

This is the configuration of my old RPi:
Code: [Select]
pi@raspberrypi ~ $ mono --version
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4+rpi1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. [url=http://www.mono-project.com]www.mono-project.com[/url]
TLS:           __thread
SIGSEGV:       normal
Notifications: epoll
Architecture:  armel,vfp+hard
Disabled:      none
Misc:          softdebug
LLVM:          supported, not enabled.
GC:            sgen
pi@raspberrypi ~ $ dpkg -l | grep libusb
ii  libusb-0.1-4:armhf                                          2:0.1.12-20+nmu1                        armhf        userspace USB programming library
ii  libusb-1.0-0:armhf                                          2:1.0.11-1                              armhf        userspace USB programming library
ii  libusb-1.0-0-dev                                            2:1.0.11-1                              armhf        userspace USB programming library development files
ii  libusbmuxd1                                                 1.0.7-2                                 armhf        USB multiplexor daemon for iPhone and iPod Touch devices - library
pi@raspberrypi ~ $

Good luck!
g.

November 01, 2015, 05:48:06 PM
Reply #28

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I tried to use a XTenLib.dll from 493 but apparently it's not compatible as it gives errors on load and doesn't function.

November 01, 2015, 06:30:25 PM
Reply #29

chrispazz

  • **
  • Information
  • Jr. Member
  • Posts: 38
Hi Gene,

pi@raspberrypi ~ $ mono --version
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4+rpi1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
   TLS:           __thread
   SIGSEGV:       normal
   Notifications: epoll
   Architecture:  armel,vfp+hard
   Disabled:      none
   Misc:          softdebug
   LLVM:          supported, not enabled.
   GC:            sgen

pi@raspberrypi ~ $ dpkg -l | grep libusb
ii  libusb-0.1-4:armhf                                          2:0.1.12-20+nmu1                        armhf        userspace USB programming library
ii  libusb-1.0-0:armhf                                          2:1.0.11-1                              armhf        userspace USB programming library
ii  libusb-1.0-0-dev                                            2:1.0.11-1                              armhf        userspace USB programming library development files
ii  libusbmuxd1                                                 1.0.7-2                                 armhf        USB multiplexor daemon for iPhone and iPod Touch devices - library


I can try again from scratch if you need.
Only tell me which Raspbian image to use.

Thank you
Chris