Author Topic: Installing insteon and X10  (Read 11591 times)

williammanda

  • Veteran
  • ***
  • Posts: 73
    • View Profile
Installing insteon and X10
« on: August 05, 2008, 05:26:45 am »
I started on installing my insteon / X10 installation using the 2412S PLM and varying insteon / X10 devices. First I used ddamron's tutorial and had to make judgement call:

 Adding a Code Group

        * Click 'Edit Ruby Codes' ( loads Edit Ruby Codes Popup)

            * In the field to the LEFT of 'Create new group', type in 'Insteon PLM'
            * click 'Create new group'

b4 is broken have to run sql manually to add new group close 'Edit Ruby codes' page. Look at 'Edit Device Template' popup page and note Device_Category and Manufacturer you will need to set them in sql code below

INSERT INTO InfraredGroup (FK_DeviceCategory,FK_Manufacturer,Description,FK_CommMethod,psc_id,psc_batch,psc_user,psc_frozen,psc_mod,psc_restrict) VALUES (Device_Category,Manufacturer,"Insteon PLM",2,NULL,NULL,NULL,NULL,NULL,NULL);

run this sql and reload 'Edit Ruby codes' page and you should see 'Insteon PLM' in 'Uses Group/Codeset'

            * If the 'Uses Group/Codeset' does not change to 'Insteon PLM', repeat the previous 2 steps again.
            * Once the 'Uses Group/Codeset' says 'Insteon PLM' Check 'Discoverable Interfaces'
            * Check 'Ruby Internal Commands'
            * click Update

Well the "Insteon PLM" did show up correctly, so I didn't have to do the sql change. I'm not sure if this has any effect on the installation.

Then I continued on with the tutorial and tried out the 2412S PLM interface, using the follow log. I got three errors, two of which were from 141 & 161, which according to tschak shouldn't be used used with the interface (the interface wouldn't start). I decided to remove the code for both entries and I got what I think is a working system. See below:

/var/log/pluto/80_Generic_Serial_Device.log

(***):SndIns:Queue:10
(***):out:02 6B 40 Length:3
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:0
(***):SndIns:Queue:10
(***):out:02 6B 40 Length:3
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Third attempt, Failing Command!
(***):in RemoveCurrentCommand
(***):Current Command:{"Parameter1"=>"40", "Command"=>"SetCfg"}
01   08/04/08 23:11:48.248      Error while calling method: Cannot call class method: cmd_351
error: can't convert nil into String, line: 1457
backtrace:
   in: (eval): 1457
   from (eval):1457:in `+'
   from (eval):1457:in `removecurrentcommand'
   from (eval):41:in `cmd_351'
   from (eval):1457
 <0x42804950>
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:0
(***):SndIns:Queue:10
(***):out:02 6B 40 Length:3
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:0
(***):SndIns:Queue:10
(***):out:02 6B 40 Length:3
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Third attempt, Failing Command!
(***):in RemoveCurrentCommand
(***):Current Command:{"Parameter1"=>"40", "Command"=>"SetCfg"}
01   08/04/08 23:12:07.295      Error while calling method: Cannot call class method: cmd_351
error: can't convert nil into String, line: 1457
backtrace:
   in: (eval): 1457
   from (eval):1457:in `+'
   from (eval):1457:in `removecurrentcommand'
   from (eval):41:in `cmd_351'
   from (eval):1457
 <0x42804950>

The system seems to be sending out three requests for feedback then timing out (I only have a X10 WS467 light switch connected).

So I decided to test the system further, setup a X10 switch to turn off / on. I used the lights and setup a light switch manually for the X10 switch. Refer to the picture:

file:///home/linuxmce/Desktop/3.png

This doesn't seem to work, everytime I select off, I get this in the follow log:

/var/log/pluto/80_Generic_Serial_Device.log

   from (eval):41:in `cmd_351'
   from (eval):1457
 <0x42804950>
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:0
(***):SndIns:Queue:10
(***):out:02 6B 40 Length:3
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:0
(***):SndIns:Queue:10
(***):out:02 6B 40 Length:3
05   08/04/08 23:22:36.373      GSDMessageTranslator isCmdImplemented = false <0x42003950>
05   08/04/08 23:22:36.373      #### Pre-Process Queue = 1 <0x42003950>
05   08/04/08 23:22:36.412      _QueueProc Pre - 193 : 0 <0x40800950>
05   08/04/08 23:22:36.412      GSD-Sleep Pre 193 : 0 <0x40800950>
05   08/04/08 23:22:36.412      Process Queue = 1 <0x40800950>
(***):------dce--- cmdID:193, cmdFrom:0, cmdTo:101, cmdType:1, Priority:1
(***):------dce--- X10 DEVICE!!!
(***):DeviceID=A2
(***):X10 Byte1:6E
(***):X-----------SndIns: Waiting for response to:SetCfg
(***):X-----------SndIns: Current Queue Length:12
(***):From:101
(***):current State:0
(***):Wanted State:0
(***):ReportStatus: device:101 Status:0
05   08/04/08 23:22:36.547      GSD-Sleep Post 193 : 0 <0x40800950>
05   08/04/08 23:22:36.547      _QueueProc Post - 193 : 0 <0x40800950>
(***):receive timeout=1
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:0
(***):SndIns:Queue:12
(***):out:02 6B 40 Length:3
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:0
(***):SndIns:Queue:12
(***):out:02 6B 40 Length:3
(***):receive timeout=1

It shows that it is sending out a command to turn off A2 but it doesn't. So at this point I'm stuck. Not sure what to do next. Any feed back would apprecaited.
Thanks


cesarscav

  • Veteran
  • ***
  • Posts: 55
    • View Profile
Re: Installing insteon and X10
« Reply #1 on: September 04, 2008, 09:56:57 pm »
williammanda,
Did you have any luck in sending commands out?
I'm having a similar problem as far I can see.

I followed the wiki. exactly as you mentioned.
then quick reload  like 3 times until all devices where detected and when I try to send an on or off command from the web admin nothing happens.
 in the log only shows this: (at the exact moment that I send the command)
On command :
05   09/04/08 15:43:19.343      GSDMessageTranslator isCmdImplemented = false <0x42003950>
05   09/04/08 15:43:19.345      #### Pre-Process Queue = 1 <0x42003950>
05   09/04/08 15:43:19.358      _QueueProc Pre - 192 : 0 <0x40800950>
05   09/04/08 15:43:19.358      GSD-Sleep Pre 192 : 0 <0x40800950>
05   09/04/08 15:43:19.358      Process Queue = 1 <0x40800950>
05   09/04/08 15:43:19.498      GSD-Sleep Post 192 : 0 <0x40800950>
05   09/04/08 15:43:19.498      _QueueProc Post - 192 : 0 <0x40800950>
Off command :

05   09/04/08 15:43:37.816      GSDMessageTranslator isCmdImplemented = false <0x42003950>
05   09/04/08 15:43:37.820      #### Pre-Process Queue = 1 <0x42003950>
05   09/04/08 15:43:37.829      _QueueProc Pre - 193 : 0 <0x40800950>
05   09/04/08 15:43:37.829      GSD-Sleep Pre 193 : 0 <0x40800950>
05   09/04/08 15:43:37.829      Process Queue = 1 <0x40800950>
05   09/04/08 15:43:37.929      GSD-Sleep Post 193 : 0 <0x40800950>
05   09/04/08 15:43:37.929      _QueueProc Post - 193 : 0 <0x40800950>

My configuration is like this

PLM 2412s (connected to USB - Serial Adapter, I also tried connecting to a GC100 serial port)
2 switches (one 2876SB the other 2476S)
LMCE 7.10 RC2 AMD 64
Followed ddamron How to at http://wiki.linuxmce.org/index.php/Insteon_-_Setting_Up_PLM_Template
I tested the PLM and switches with a win program and they worked

If some one can give us some hints I'll appreciate it.

Thanks

Cesar


JQE

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Installing insteon and X10
« Reply #2 on: September 10, 2008, 03:01:31 pm »
I don't have my logs with me, but mine is functioning exactly as williammanda's is.

What i have found is that sometimes it will find my lights switch, it will turn it on, then it will remove itself. I also get an error in code group 351 reading the database_delta.

I will add the logs tonight, as i am at work now, but i followed the Wiki through more than once and it just won't work for me.


cesarscav

  • Veteran
  • ***
  • Posts: 55
    • View Profile
Re: Installing insteon and X10
« Reply #3 on: September 11, 2008, 02:28:46 am »
JQE,
After some pain I have it working. Please paste your logs to see if I can give you a hand.

Cesar

williammanda

  • Veteran
  • ***
  • Posts: 73
    • View Profile
Re: Installing insteon and X10
« Reply #4 on: September 11, 2008, 04:16:45 am »
JQE,
After some pain I have it working. Please paste your logs to see if I can give you a hand.

Cesar

Do you have any clue what I can do to solve my problem?
Thanks

05   09/10/08 22:15:13.654      GSDMessageTranslator isCmdImplemented = false <0x42003950>
05   09/10/08 22:15:13.655      #### Pre-Process Queue = 1 <0x42003950>
05   09/10/08 22:15:13.666      _QueueProc Pre - 193 : 0 <0x40800950>
05   09/10/08 22:15:13.666      GSD-Sleep Pre 193 : 0 <0x40800950>
05   09/10/08 22:15:13.666      Process Queue = 1 <0x40800950>
(***):------dce--- cmdID:193, cmdFrom:0, cmdTo:41, cmdType:1, Priority:1
(***):------dce--- X10 DEVICE!!!
(***):DeviceID=A2
(***):X10 Byte1:6E
(***):X-----------SndIns: Waiting for response to:SetCfg
(***):X-----------SndIns: Current Queue Length:10
(***):From:41
(***):current State:100
(***):Wanted State:0
(***):ReportStatus: device:41 Status:0
05   09/10/08 22:15:13.855      GSD-Sleep Post 193 : 0 <0x40800950>
05   09/10/08 22:15:13.855      _QueueProc Post - 193 : 0 <0x40800950>
05   09/10/08 22:15:13.856      GSDMessageTranslator isCmdImplemented = false <0x42003950>
05   09/10/08 22:15:13.857      #### Pre-Process Queue = 1 <0x42003950>
05   09/10/08 22:15:13.914      _QueueProc Pre - 193 : 0 <0x40800950>
05   09/10/08 22:15:13.914      GSD-Sleep Pre 193 : 0 <0x40800950>
05   09/10/08 22:15:13.914      Process Queue = 1 <0x40800950>
(***):------dce--- cmdID:193, cmdFrom:41, cmdTo:41, cmdType:1, Priority:1
(***):Detected Command sent to Self!
05   09/10/08 22:15:14.074      GSD-Sleep Post 193 : 0 <0x40800950>
05   09/10/08 22:15:14.074      _QueueProc Post - 193 : 0 <0x40800950>
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:0
(***):SndIns:Queue:10
(***):out:02 6B 40 Length:3

cesarscav

  • Veteran
  • ***
  • Posts: 55
    • View Profile
Re: Installing insteon and X10
« Reply #5 on: September 11, 2008, 07:20:47 am »
what kind of switch are you using?
Did you link at least one device to the PLM?
Are the PLM and the devices on the same phase of your electrical circuit?

I'm using PLM 2412S and 3 insteon wall switches.

in one of my attempts I had a similar problem.
First I had no linked the plm and the devises. Non of the switches were recognized by the system.
Later when I link them (push the set button on the plm for 10 sec, led should blink, then push the top switch button until the PLM stop blinking) they were recognized by the system but every time I restart the router they disappear. The problem is that the first time the driver boots it looks for devices on the internal plm data base, when it boots again it tries to find the devises by ping them or something similar to a ping, if they are not found it tries to delete them from the data base. In my case I think it was caused by the poor communication between the PLM and the devises I solved by changing the electrical outlet that I was using (had to use a extension cord to put it as far as possible from the computer)
Once I chage the plm outlet the
Quote
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
desappear from the logs and the devices stay on the system

hope this helps you.
Let me know if you have any questions.

Cesar

JQE

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Installing insteon and X10
« Reply #6 on: September 11, 2008, 02:27:35 pm »
I don't have it accessible from work yet, should be in the next day or two and i am getting closer.

Last night i had it working properly, my lights worked and all was good. Then it removed my X10 lights.. then a few hours later it removed the rest of my lights. It seems when i add anything X10 it just removes everything.

Also it seems to get into a loop trying to delete the X10 device. Erroring out because it doesn't have 3 parameters. What do you enter for the port number for x10 devices? Just the device id correct? Like A5?

I did not link the PLM to the decive. i will try that tonight. and i will also try the extension cord thing, i thought about that before... does a PLM work plugged into an extension cord?

williammanda

  • Veteran
  • ***
  • Posts: 73
    • View Profile
Re: Installing insteon and X10
« Reply #7 on: September 11, 2008, 02:52:20 pm »
what kind of switch are you using?
X10 WS467 ( I think)

Quote
Did you link at least one device to the PLM?
Yes just the x10 switch.

Quote
Are the PLM and the devices on the same phase of your electrical circuit?
Yes on the same circuit.

Quote
I'm using PLM 2412S and 3 insteon wall switches.

in one of my attempts I had a similar problem.
First I had no linked the plm and the devises. Non of the switches were recognized by the system.
Later when I link them (push the set button on the plm for 10 sec, led should blink, then push the top switch button until the PLM stop blinking) they were recognized by the system but every time I restart the router they disappear. The problem is that the first time the driver boots it looks for devices on the internal plm data base, when it boots again it tries to find the devises by ping them or something similar to a ping, if they are not found it tries to delete them from the data base. In my case I think it was caused by the poor communication between the PLM and the devises I solved by changing the electrical outlet that I was using (had to use a extension cord to put it as far as possible from the computer)
Once I chage the plm outlet the
Quote
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
desappear from the logs and the devices stay on the system

hope this helps you.
Let me know if you have any questions.

Cesar

Ok...I didn't realize that the plm button had to be depressed. Also I will try the extention cord.
Also I'm using a serial to usb convertor. Did anyone change the setup for the plm to accommodate this? or does it matter?
Thanks

williammanda

  • Veteran
  • ***
  • Posts: 73
    • View Profile
Re: Installing insteon and X10
« Reply #8 on: September 12, 2008, 02:51:07 am »
I pressed and held the button on the PLM and the led stayed on solid. I also used and extension cord connected on the same circuit and I get the same result:

(***):Current Command:0
(***):SndIns:Queue:18
(***):out:02 6B 40 Length:3
(***):receive timeout=1
05   09/11/08 20:36:51.036      GSDMessageTranslator isCmdImplemented = false <0x42003950>
05   09/11/08 20:36:51.038      #### Pre-Process Queue = 1 <0x42003950>
05   09/11/08 20:36:51.041      _QueueProc Pre - 193 : 0 <0x40800950>
05   09/11/08 20:36:51.041      GSD-Sleep Pre 193 : 0 <0x40800950>
05   09/11/08 20:36:51.041      Process Queue = 1 <0x40800950>
(***):------dce--- cmdID:193, cmdFrom:0, cmdTo:41, cmdType:1, Priority:1
(***):------dce--- X10 DEVICE!!!
(***):DeviceID=A2
(***):X10 Byte1:6E
(***):X-----------SndIns: Waiting for response to:SetCfg
(***):X-----------SndIns: Current Queue Length:20
(***):From:41
(***):current State:100
(***):Wanted State:0
(***):ReportStatus: device:41 Status:0
05   09/11/08 20:36:51.188      GSDMessageTranslator isCmdImplemented = false <0x42003950>
05   09/11/08 20:36:51.189      #### Pre-Process Queue = 1 <0x42003950>
05   09/11/08 20:36:51.189      GSD-Sleep Post 193 : 0 <0x40800950>
05   09/11/08 20:36:51.189      _QueueProc Post - 193 : 0 <0x40800950>
05   09/11/08 20:36:51.189      _QueueProc Pre - 193 : 0 <0x40800950>
05   09/11/08 20:36:51.189      GSD-Sleep Pre 193 : 0 <0x40800950>
05   09/11/08 20:36:51.190      Process Queue = 1 <0x40800950>
(***):------dce--- cmdID:193, cmdFrom:41, cmdTo:41, cmdType:1, Priority:1
(***):Detected Command sent to Self!
05   09/11/08 20:36:51.193      GSD-Sleep Post 193 : 0 <0x40800950>
05   09/11/08 20:36:51.193      _QueueProc Post - 193 : 0 <0x40800950>
(***):receive timeout=2
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:0
(***):SndIns:Queue:20
(***):out:02 6B 40 Length:3
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying

Did everyone follow this step in the setup instructions?

 Adding a Code Group

        * Click 'Edit Ruby Codes' ( loads Edit Ruby Codes Popup)

            * In the field to the LEFT of 'Create new group', type in 'Insteon PLM'
            * click 'Create new group'

b4 is broken have to run sql manually to add new group close 'Edit Ruby codes' page. Look at 'Edit Device Template' popup page and note Device_Category and Manufacturer you will need to set them in sql code below

INSERT INTO InfraredGroup (FK_DeviceCategory,FK_Manufacturer,Description,FK_CommMethod,psc_id,psc_batch,psc_user,psc_frozen,psc_mod,psc_restrict) VALUES (Device_Category,Manufacturer,"Insteon PLM",2,NULL,NULL,NULL,NULL,NULL,NULL);

run this sql and reload 'Edit Ruby codes' page and you should see 'Insteon PLM' in 'Uses Group/Codeset'

            * If the 'Uses Group/Codeset' does not change to 'Insteon PLM', repeat the previous 2 steps again.
            * Once the 'Uses Group/Codeset' says 'Insteon PLM' Check 'Discoverable Interfaces'
            * Check 'Ruby Internal Commands'
            * click Update


When I did this:

            * In the field to the LEFT of 'Create new group', type in 'Insteon PLM'
            * click 'Create new group

The 'Uses Group/Codeset' said 'Insteon PLM' and I didn't edit the sql. Is this ok?
Thanks

williammanda

  • Veteran
  • ***
  • Posts: 73
    • View Profile
Re: Installing insteon and X10
« Reply #9 on: September 12, 2008, 03:09:06 am »
I just tried something....I unplugged the AC from the PLM and the follow log still keeps giving me the same data as I posted earlier....is this normal? Or is this a possible problem of communication with the X10 light switch?
Thanks

JQE

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Installing insteon and X10
« Reply #10 on: September 12, 2008, 03:52:47 am »
OK this is what is happening for me.. and here is the log.

Code: [Select]
/var/log/pluto/37_Generic_Serial_Device.log(***):sendGetNext ACKED
(***):LnkData Message Received
(***):{"Parameter1"=>"02", "Parameter2"=>"57", "Parameter3"=>"E2", "Parameter4"=>"01", "Parameter5"=>"A5", "Response"=>"LnkData", "Parameter6"=>"00", "Parameter7"=>"00", "Parameter10"=>"FF", "Parameter8"=>"01", "Parameter9"=>"01"}
(***):FOUND X10 DEVICE!!!
(***):record Flags:E2
(***):Controller
(***):Insteon ID:A5, Group:01
(***):Command Completed.
(***):SndIns:Queue:3
(***):out:02 6A Length:2
(***):IN:02 6A 15 Length:3
(***):sendGetNext NACKED
(***):Command Completed.
(***):Entered CheckChildRecordsinPLM
(***):Record: = 0D.71.C5 Group:01
(***):checking to see if it needs to be added as a child...
(***):ExistsinChild:InsteonID:0D.71.C5
(***):ExistsinChild result:TRUE
(***):Record: = 0D.70.E6 Group:01
(***):checking to see if it needs to be added as a child...
(***):ExistsinChild:InsteonID:0D.70.E6
(***):ExistsinChild result:TRUE
(***):Record: = A5.00.00 Group:01
(***):checking to see if it needs to be added as a child...
(***):ExistsinChild:InsteonID:A5.00.00
(***):ExistsinChild result:FALSE
(***):A5.00.00 needs to be added to the child database
(***):addtochild Routne called
(***):Adding A5.00.00 to the child database...
(***):Child is Insteon
(***):PING Sent!
(***):0D.71.C5 exists in PLM
(***):0D.70.E6 exists in PLM
(***):0D.70.E6 exists in PLM
(***):0D.70.E6 exists in PLM
(***):0D.71.C5 exists in PLM
(***):A5.00.00 exists in PLM
(***):A5 needs to be added to PLM
(***):Adding A5 to the PLM database...
(***):SndIns:Queue:4
(***):out:02 6F 40 C2 01 A5 00 00 01 01 FF Length:11
(***):X-----------SndIns: Waiting for response to:MngLnk
(***):X-----------SndIns: Current Queue Length:4
(***):IN:02 6F 40 C2 01 A5 00 00 01 01 FF 15 Length:12
(***):MngLnk => NACK
(***):Command Completed.
(***):SndIns:Queue:3
(***):out:02 62 0D 71 C5 0F 19 00 Length:8
(***):IN:02 62 0D 71 C5 0F 19 00 06 Length:9
(***):IN:02 50 0D 71 C5 0E DB 5D 2B 00 00 Length:11
(***):Command Completed.
(***):Processing 0x19 Status Report
(***):Database Delta=00
(***):Configuration is:00
(***):From:38
(***):current State:
(***):Wanted State:0
(***):ReportStatus: device:38 Status:0
(***):SndIns:Queue:2
05 09/11/08 20:49:35.392 GSDMessageTranslator isCmdImplemented = false <0x42003950>
05 09/11/08 20:49:35.397 #### Pre-Process Queue = 1 <0x42003950>
05 09/11/08 20:49:35.434 _QueueProc Pre - 193 : 0 <0x40800950>
05 09/11/08 20:49:35.434 GSD-Sleep Pre 193 : 0 <0x40800950>
05 09/11/08 20:49:35.434 Process Queue = 1 <0x40800950>
(***):out:02 62 0D 70 E6 0F 19 00 Length:8
(***):------dce--- cmdID:193, cmdFrom:38, cmdTo:38, cmdType:1, Priority:1
(***):Detected Command sent to Self!
05 09/11/08 20:49:35.534 GSD-Sleep Post 193 : 0 <0x40800950>
05 09/11/08 20:49:35.534 _QueueProc Post - 193 : 0 <0x40800950>
(***):IN:02 62 0D 70 E6 0F 19 00 06 Length:9
(***):IN:02 50 0D 70 E6 0E DB 5D 2B 00 00 Length:11
(***):Command Completed.
(***):Processing 0x19 Status Report
(***):Database Delta=00
(***):Configuration is:00
(***):From:39
(***):current State:
(***):Wanted State:0
(***):ReportStatus: device:39 Status:0
(***):SndIns:Queue:1
05 09/11/08 20:49:36.388 GSDMessageTranslator isCmdImplemented = false <0x42003950>
05 09/11/08 20:49:36.389 #### Pre-Process Queue = 1 <0x42003950>
05 09/11/08 20:49:36.430 _QueueProc Pre - 193 : 0 <0x40800950>
05 09/11/08 20:49:36.430 GSD-Sleep Pre 193 : 0 <0x40800950>
05 09/11/08 20:49:36.430 Process Queue = 1 <0x40800950>
(***):out:02 62 A5 00 00 0F 10 00 Length:8
(***):------dce--- cmdID:193, cmdFrom:39, cmdTo:39, cmdType:1, Priority:1
(***):Detected Command sent to Self!
05 09/11/08 20:49:36.527 GSD-Sleep Post 193 : 0 <0x40800950>
05 09/11/08 20:49:36.527 _QueueProc Post - 193 : 0 <0x40800950>
(***):IN:02 62 A5 00 00 0F 10 00 06 Length:9
(***):Got PING ACK
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:1
(***):SndIns:Queue:1
(***):out:02 62 A5 00 00 0F 10 00 Length:8
(***):IN:02 62 A5 00 00 0F 10 00 06 Length:9
(***):Got PING ACK
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:1
(***):SndIns:Queue:1
(***):out:02 62 A5 00 00 0F 10 00 Length:8
(***):IN:02 62 A5 00 00 0F 10 00 06 Length:9
(***):Got PING ACK
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Third attempt, Failing Command!
(***):in RemoveCurrentCommand
(***):Current Command:{"Parameter1"=>"A5", "Parameter2"=>"00", "Parameter3"=>"00", "Parameter4"=>"0F", "Command"=>"InsStdMsg", "Parameter5"=>"10", "Parameter6"=>"00"}
(***):ID=A5.00.00
(***):Removing A5.00.00 from child database
(***):Removing from plm
(***):DEBUG:45 32 30 31 41 35 30 30 30 30 30 31 30 31 46 46 Length:16
(***):Found Record, Deleting
(***):{"Parameter1"=>"80", "Parameter2"=>"E2", "Parameter3"=>"01", "Parameter4"=>"A5", "Command"=>"MngLnk", "Parameter5"=>"00", "Parameter6"=>"00", "Parameter7"=>"01", "Parameter8"=>"01", "Parameter9"=>"FF"}
(***):Command Completed.
(***):SndIns:Queue:1
(***):out:02 6F 80 E2 01 A5 00 00 01 01 FF Length:11
(***):IN:02 6F 80 E2 01 A5 00 00 01 01 FF 06 Length:12
(***):MngLnk => ACK
(***):Command Completed.
(***):Queue Empty.
(***):RERUN=TRUE, RESTARTING
(***):SndIns:Queue:1
(***):out:02 62 0D 71 C5 0F 19 00 Length:8
(***):X-----------SndIns: Waiting for response to:SndIns
(***):X-----------SndIns: Current Queue Length:2
(***):X10 does not report status
(***):X-----------SndIns: Waiting for response to:SndIns
(***):X-----------SndIns: Current Queue Length:2
(***):IN:02 62 0D 71 C5 0F 19 00 06 Length:9
(***):IN:02 50 0D 71 C5 0E DB 5D 2B 00 00 Length:11
(***):Command Completed.
(***):Processing 0x19 Status Report
(***):Database Delta=00
(***):Configuration is:00
(***):From:38
(***):current State:0
(***):Wanted State:0
(***):ReportStatus: device:38 Status:0
(***):SndIns:Queue:1
(***):out:02 62 0D 70 E6 0F 19 00 Length:8
(***):IN:02 62 0D 70 E6 0F 19 00 06 Length:9
(***):IN:02 50 0D 70 E6 0E DB 5D 2B 00 00 Length:11
(***):Command Completed.
(***):Processing 0x19 Status Report
(***):Database Delta=00
(***):Configuration is:00
(***):From:39
(***):current State:0
(***):Wanted State:0
(***):ReportStatus: device:39 Status:0
(***):Queue Empty.
(***):RERUN Not needed
(***):Reporting Child Devices
(***):Child:0D.71.C5
(***):Config:["01012700********", "A2010D70E6FE1F00", "E2010D70E6FE1F00"]
(***):Child:0D.70.E6
(***):Config:["01012700********", "E2010D71C5FE1F00"]
(***):Child:A5
(***):Config:["****************"]
(***):0D.71.C5 38
0D.70.E6 38
A5 0
05 09/11/08 20:50:07.711 GSDMessageTranslator isCmdImplemented = false <0x42003950>
05 09/11/08 20:50:07.712 #### Pre-Process Queue = 1 <0x42003950>
05 09/11/08 20:50:07.743 _QueueProc Pre - 192 : 0 <0x40800950>
05 09/11/08 20:50:07.743 GSD-Sleep Pre 192 : 0 <0x40800950>
05 09/11/08 20:50:07.743 Process Queue = 1 <0x40800950>
(***):------dce--- cmdID:192, cmdFrom:0, cmdTo:40, cmdType:1, Priority:1
(***):Processing ON command
(***):------dce--- X10 DEVICE!!!
(***):DeviceID=A5
(***):X10 Byte1:61
(***):SndIns:Queue:2
(***):out:02 63 61 00 Length:4
(***):From:40
(***):current State:
(***):Wanted State:100
(***):ReportStatus: device:40 Status:100
05 09/11/08 20:50:07.905 GSDMessageTranslator isCmdImplemented = false <0x42003950>
05 09/11/08 20:50:07.906 #### Pre-Process Queue = 1 <0x42003950>
05 09/11/08 20:50:07.906 GSDMessageTranslator isCmdImplemented = false <0x42003950>
05 09/11/08 20:50:07.907 GSD-Sleep Post 192 : 0 <0x40800950>
05 09/11/08 20:50:07.907 _QueueProc Post - 192 : 0 <0x40800950>
05 09/11/08 20:50:07.908 #### Pre-Process Queue = 2 <0x42003950>
05 09/11/08 20:50:07.908 GSDMessageTranslator isCmdImplemented = false <0x42003950>
05 09/11/08 20:50:07.909 #### Pre-Process Queue = 3 <0x42003950>
05 09/11/08 20:50:07.909 _QueueProc Pre - 193 : 0 <0x40800950>
05 09/11/08 20:50:07.909 GSD-Sleep Pre 193 : 0 <0x40800950>
05 09/11/08 20:50:07.909 Process Queue = 1 <0x40800950>
(***):------dce--- cmdID:193, cmdFrom:40, cmdTo:40, cmdType:1, Priority:1
(***):Detected Command sent to Self!
05 09/11/08 20:50:07.911 GSD-Sleep Post 193 : 0 <0x40800950>
05 09/11/08 20:50:07.911 _QueueProc Post - 193 : 0 <0x40800950>
05 09/11/08 20:50:07.911 _QueueProc Pre - 192 : 0 <0x40800950>
05 09/11/08 20:50:07.911 GSD-Sleep Pre 192 : 0 <0x40800950>
05 09/11/08 20:50:07.911 Process Queue = 1 <0x40800950>
(***):------dce--- cmdID:192, cmdFrom:40, cmdTo:40, cmdType:1, Priority:1
(***):Detected Command sent to Self!
05 09/11/08 20:50:07.915 GSD-Sleep Post 192 : 0 <0x40800950>
05 09/11/08 20:50:07.915 _QueueProc Post - 192 : 0 <0x40800950>
05 09/11/08 20:50:07.915 _QueueProc Pre - 184 : 0 <0x40800950>
05 09/11/08 20:50:07.915 GSD-Sleep Pre 184 : 0 <0x40800950>
05 09/11/08 20:50:07.915 Process Queue = 1 <0x40800950>
(***):------dce--- cmdID:184, cmdFrom:40, cmdTo:40, cmdType:1, Priority:1
(***):Detected Command sent to Self!
05 09/11/08 20:50:07.919 GSD-Sleep Post 184 : 0 <0x40800950>
05 09/11/08 20:50:07.919 _QueueProc Post - 184 : 0 <0x40800950>
(***):IN:02 63 61 00 06 Length:5
(***):Response detected for SndX10
(***):X10 Command Successfull
(***):Command Completed.
(***):SndIns:Queue:1
(***):out:02 63 62 80 Length:4
(***):IN:15 Length:1
(***):The PLM stopped responding
(***):Please unplug it, and plug it back in
(***):and do a quick reload router.
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:0
(***):SndIns:Queue:1
(***):out:02 63 62 80 Length:4
(***):IN:02 63 62 80 06 Length:5
(***):Response detected for SndX10
(***):X10 Command Successfull
(***):Command Completed.
(***):Queue Empty.
(***):RERUN Not needed
(***):report not needed

i would like to point out that the X10 light never turned on. I have 2 Insteon switches that work A.O.K now that i moved the PLM to a different power node.

JQE

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Installing insteon and X10
« Reply #11 on: September 13, 2008, 09:52:20 pm »
Bump...

SO insteon lights work 100% now.

X10 lights work until a reload and then they remove themselves from LinuxMCE.

I am thinking of adding my firecracker and using bottle rocket for the X10 stuff, and that will solve my issue i think.. anyways.. if anyone can help me get X10 working through my PLM that would be great.

williammanda

  • Veteran
  • ***
  • Posts: 73
    • View Profile
Re: Installing insteon and X10
« Reply #12 on: September 21, 2008, 01:34:48 am »
I got a few Insteon light switches 2466DW. I went back through and deleted my X10 light switches and changed the "COM Port on PC" to pciXXXXX. I the follow log posted this:

 (***):receive timeout=3
(***):Third attempt, Failing Command!
(***):in RemoveCurrentCommand
(***):Current Command:{"Parameter1"=>"A2", "Parameter2"=>"00", "Parameter3"=>"00", "Parameter4"=>"0F", "Command"=>"InsStdMsg", "Parameter5"=>"10", "Parameter6"=>"00"}
(***):ID=A2.00.00
(***):Removing A2.00.00 from child database
(***):Removing from plm
(***):DEBUG:45 32 30 31 41 32 30 30 30 30 30 31 30 31 46 46 Length:16
(***):Found Record, Deleting
(***):{"Parameter1"=>"80", "Parameter2"=>"E2", "Parameter3"=>"01", "Parameter4"=>"A2", "Command"=>"MngLnk", "Parameter5"=>"00", "Parameter6"=>"00", "Parameter7"=>"01", "Parameter8"=>"01", "Parameter9"=>"FF"}
(***):Command Completed.
(***):SndIns:Queue:1
(***):out:02 6F 80 E2 01 A2 00 00 01 01 FF Length:11
(***):IN:02 6F 80 E2 01 A2 00 00 01 01 FF 06 Length:12
(***):MngLnk => ACK
(***):Command Completed.
(***):Queue Empty.
(***):RERUN=TRUE, RESTARTING
(***):Queue Empty.
(***):RERUN Not needed
(***):Reporting Child Devices
(***):

Then I got this on the follow log:

 (***):SndIns:Queue:1
(***):out:02 69 Length:2
(***):IN:02 69 15 Length:3
(***):GetLnk NACKED
(***):Command Completed.
(***):Entered CheckChildRecordsinPLM
(***):Queue Empty.
(***):RERUN Not needed
(***):Reporting Child Devices
(***):

Then to double check I changed the "COM Port on PC" back to /dev/ttyS0 and I got this same as before, wasn't communicating. I then changed the "COM Port on PC" back to the pci setting and I get this on the follow log:

 (***):Command Stalled!  resetting and retrying
(***):Current Command:0
(***):SndIns:Queue:3
(***):out:02 62 00 00 00 0F 19 00 Length:8
(***):IN:02 62 00 00 00 0F 19 00 06 Length:9
(***):receive timeout=1
(***):receive timeout=2
(***):receive timeout=3
(***):Command Stalled!  resetting and retrying
(***):Current Command:25
(***):SndIns:Queue:3
(***):out:02 62 00 00 00 0F 19 00 Length:8
(***):IN:02 62 00 00 00 0F 19 00 06 Length:9

JQE what do you have in your setup for the "COM Port on PC"? Also please post as much info about how you got Insteon to work.
Would it be possible to link up in the forum Linuxmce, and go over the settings?
Thanks


JQE

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Installing insteon and X10
« Reply #13 on: September 22, 2008, 12:06:14 am »
Sorry i haven't been around things are nuts around here.

SO for my linuxmce Insteon setup i have a PLM hooked up with an extension cord to a power outlet. I have 1 insteon light switch linked to it.

I only have 2 lights switches.

I found once i got the system to boot up and run without errors i added the lights in manually, watched the logs until it ends and reports the child devices then restart the router.

I kept doing this until all my switches were in and had configuration showing.

The other key is if you are showing a lot of time outs then unplug your PLM from the wall and plug it back in then reboot the core (not restart) then it seems to work.

I still can't get X10 to work though, as i have only 1 serial port. So i am going to try to put my X10 firecracker on my media director and see if that works.

golgoj4

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1193
  • hrumpf!
    • View Profile
    • Mah Website
Re: Installing insteon and X10
« Reply #14 on: September 23, 2008, 05:30:55 pm »
i get this just trying to get it running

Failed loading code: Error loading code:
error: (eval):2364: compile error
(eval):43: Invalid char `\302' in expression
(eval):43: Invalid char `\240' in expression
(eval):44: Invalid char `\302' in expression
(eval):44: Invalid char `\240' in expression, line: 2364


And what are these commands you had to remove? I dont see them referenced anywhere...
Linuxmce - Where everyone is never wrong, but we are always behind xbmc in the media / ui department.