Can't send X10 commands above address 10

Message
Author
volfan6415
Posts: 175
Joined: Sun Jun 08, 2014 9:24 am

Can't send X10 commands above address 10

#1 Post by volfan6415 » Fri Jun 05, 2015 6:47 am

I can't send x10 commands to devices that are above ten for example A11 - A16

I am getting the following errors in the log file:

06-05 09:42:26.00 ERROR OSAE.Insteon.Insteon Error ProcessCommand - Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: startIndex
06-05 09:42:26.00 DEBUG OSAE.Insteon.Insteon SEND: a1.. OFF 0
06-05 09:42:26.00 ERROR OSAE.Insteon.Insteon Error ProcessCommand - Index and length must refer to a location within the string. Parameter name: length
06-05 09:42:17.02 ERROR OSAE.Insteon.Insteon Error ProcessCommand - Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: startIndex
06-05 09:42:17.02 DEBUG OSAE.Insteon.Insteon SEND: a1.. ON 0
06-05 09:42:17.02 ERROR OSAE.Insteon.Insteon Error ProcessCommand - Index and length must refer to a location within the string. Parameter name: length
06-05 09:41:52.05 ERROR OSAE.Insteon.Insteon Error ProcessCommand - Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: startIndex
06-05 09:41:52.05 DEBUG OSAE.Insteon.Insteon SEND: a1.. ON 0
06-05 09:41:52.05 ERROR OSAE.Insteon.Insteon Error ProcessCommand - Index and length must refer to a location within the string. Parameter name: length

Commands A1-10 work as they should. I am also having problems where the ON commands are received but the Off commands are not. However, i think this is noise related, i am trying to troubleshoot to isolate the noise problem and i think i have it narrowed down to my compact CFL lights. Whats weird is that I am been running these lights for almost 2 years in my x-10 setup with no issues. Its only in the last few days that I have started to have inconsistencies where i cant send on commands but can't always send off commands. Then there are some times where no commands get through, and others where everything works as it should.

Automate
Posts: 1691
Joined: Sat Dec 11, 2010 1:44 pm
Location: US

Re: Can't send X10 commands above address 10

#2 Post by Automate » Fri Jun 05, 2015 10:33 am

Which version of the Insteon plugin are you using?

volfan6415
Posts: 175
Joined: Sun Jun 08, 2014 9:24 am

Re: Can't send X10 commands above address 10

#3 Post by volfan6415 » Fri Jun 05, 2015 10:52 am

I am using the version on the website which is .4.4 i think.

So i downloaded the source from GIT and looking through it i think I found where the error might have been. on line 1100 the code attempts to process as insteon addresses the following:

If method.Address.Length > 2 then

thus I think it was processing anything above A9 as an insteon address hence why it was failing. I changed the 2 to a 3 and now my code seems to be working.

Zach

volfan6415
Posts: 175
Joined: Sun Jun 08, 2014 9:24 am

Re: Can't send X10 commands above address 10

#4 Post by volfan6415 » Fri Jun 05, 2015 10:53 am

When i say working OSA and the PLM are now doing what they are supposed to be doing. I still need to track down and eliminate all of the electrical noise in my system.

volfan6415
Posts: 175
Joined: Sun Jun 08, 2014 9:24 am

Re: Can't send X10 commands above address 10

#5 Post by volfan6415 » Fri Jun 05, 2015 10:57 am

Ok, not to spam my own thread.... but now the states aren't properly being set once the objects method fires.... here is the insteon log file.....

06-05 13:56:42.00 DEBUG OSAE.Insteon.Insteon RECV X10: 06 (send Acknowledged)
06-05 13:56:42.00 DEBUG OSAE.Insteon.Insteon RECV X10: A On
06-05 13:56:41.09 DEBUG OSAE.Insteon.Insteon PLM Echo: 02 63 62 80 06
06-05 13:56:41.09 DEBUG OSAE.Insteon.Insteon RECV: HEX (0x063, 0x062, 0x080) DEC (99, 98, 128)
06-05 13:56:41.09 DEBUG OSAE.Insteon.Insteon Object: Ceiling Fan Light State set to: ON
06-05 13:56:41.09 DEBUG OSAE.Insteon.Insteon SEND: 2, 99, 98, 128
06-05 13:56:41.08 DEBUG OSAE.Insteon.Insteon RECV X10: 06 (send Acknowledged)
06-05 13:56:41.08 DEBUG OSAE.Insteon.Insteon A1
06-05 13:56:41.08 DEBUG OSAE.Insteon.Insteon PLM Echo: 02 63 66 00 06
06-05 13:56:41.08 DEBUG OSAE.Insteon.Insteon RECV: HEX (0x063, 0x066, 0x000) DEC (99, 102, 0)
06-05 13:56:41.04 DEBUG OSAE.Insteon.Insteon SEND: 2, 99, 102, 0
06-05 13:56:41.04 INFO OSAE.Insteon.Insteon Sending X10: A1 ON

but the state of the fan doesn't change from off to on?

volfan6415
Posts: 175
Joined: Sun Jun 08, 2014 9:24 am

Re: Can't send X10 commands above address 10

#6 Post by volfan6415 » Fri Jun 05, 2015 11:06 am

Ok so the state changing seems to be related to the method call not logging the event. When i changed ownership of the x10 object type to the cm15a plugin the corresponding events were logged and the state changed.

Is there something in the insteon code that would be blocking the logging of the corresponding events?

volfan6415
Posts: 175
Joined: Sun Jun 08, 2014 9:24 am

Re: Can't send X10 commands above address 10

#7 Post by volfan6415 » Fri Jun 05, 2015 7:20 pm

Also still having problems with the off command ... I can send the on command to all devices but can't send the off command

volfan6415
Posts: 175
Joined: Sun Jun 08, 2014 9:24 am

Re: Can't send X10 commands above address 10

#8 Post by volfan6415 » Sat Jun 06, 2015 7:15 am

Ok so more troubleshooting today, the problem with the OFF commands i think is with the insteon plugin code. I downloaded houselinc and after some finddling with that program was able to have my modem detected and can successfully turn all x10 devices on and off...

One problem I had with houselinc that I am not sure if it is related is that apparantly there is a new firmware version of the 2413U that I had to add to a deviecs.xml file before houselinc would detect my modem.

So there must be something with the off command that the OSA insteon plugin is not quite sending right.

volfan6415
Posts: 175
Joined: Sun Jun 08, 2014 9:24 am

Re: Can't send X10 commands above address 10

#9 Post by volfan6415 » Sat Jun 06, 2015 1:58 pm

OK i think i am talking to myself here... but going to keep posting in case this helps someone else.... also I think these changes need to be made to the official insteon plugin so that the distributed version can be fixed....

But the reason that the plugin wasn't sending the OFF command was because there was another typo in line 1201

SerialPLM.Write(data, 0, 4)


should be


SerialPLM.Write(x10data, 0, 4)


I have made this change on the version running on my system and everything is now working as it should.

Zach

volfan6415
Posts: 175
Joined: Sun Jun 08, 2014 9:24 am

Re: Can't send X10 commands above address 10

#10 Post by volfan6415 » Sat Jun 06, 2015 2:04 pm

I am still having a problem where the insteon plugin is not setting the states properly.... now off to try and debug that.... any help here would be appreciated.

Zach

Post Reply