6
« 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