ginigma said:
Did you work on the communications? It seems more stable to me. Actually a lot more stable.
I did add a re-try to the send message function so that if it fails, it will re-try up to 2 more times. That's probably what made the difference.
ginigma said:
The KPL Configuration was read with a few errors, but it loaded.
Is it getting the "Bogus message" or "Extended message" errors or something else? The first two seem to be caused by corrupted data coming from the PLC, If it is something else, It might just need more re-tries.
ginigma said:
The ControLinc Configuration (nice feature! Except for the X-10 stuff, see below) read fine. All I changed was to check the “Light Dimmed†checkbox and I got the foIllowing errors (9 times) in the console window
I don't know how I missed that. I must of changed something and forgot to re-test it. It's an easy fix and a harmless error.
ginigma said:
and then the following dialog box popped up: Warning: Unplug and re-plug ControLinc for changes to take effect! which I believe is fine.
Yeah, you have to pull the power on the controlinc for the changes to take effect. There's a INSTEON command that tells the device to re-read it's configuration but only the KeypadLincs implemented (go figure).
ginigma said:
On a personal note, unless you have X-10 devices that you want to control, I would keep this an “Insteon only†app. I wouldn’t add any X-10 control features. But that’s just me.
I do have a couple of X10 devices still but I don't really need to control them. I put that in because the dialog box seemed a little empty with only the beep and light controls
See below in red for descriptions of the fields.
ginigma said:
Code:
./link -m
PLC ID: 00.d7.ab Firmware version 2c
2006-03-25 23:27:55: ** 00.00.01 -> 06.04.d2 0xcf OFF 0 group broadcast
2006-03-25 23:27:55: rr 00.00.01 -> 06.04.d2 0xc7 OFF 0 group broadcast
2006-03-25 23:27:55: ** 03.04.18 -> 06.04.d2 0x45 OFF 1 group
2006-03-25 23:27:55: rr 06.04.d2 -> 03.04.18 0xe1 OFF 255 ack group broadcast
2006-03-25 23:27:56: ** 03.04.19 -> 06.04.d2 0x45 OFF 1 group
2006-03-25 23:27:56: rr 06.04.d2 -> 03.04.19 0xe5 OFF 255 ack group broadcast
Timestamp
** = first time message
rr = repeated message
?? = unknown by me
From device
To device
Message flag byte
command byte
command data byte
parsed message type flags
ginigma said:
Code:
./link -f 00.d7.ab
PLC ID: 00.d7.ab Firmware version 2c
00.d7.ab: SLV group(1) 0x00 0x00 0x00
This option will list the PLC's link database. When given a device id, it will search for entries with that device id, you might want to try it with the 'all' argument. The return values are:
device id
SLV = responder record
MST = controller record
group(n) = group number (0-255)
3 link data bytes.
ginigma said:
Code:
./link -q 03.04.19
PLC ID: 00.d7.ab Firmware version 2c
FAMILY-Ceiling Lights (03.04.19) returned 0xffffffff
device name
(device id)
device type
device firmware revision
However, the 'return 0xffffffff' indicates that it didn't work. I haven't updated the ping command to use the new and improved message code so that's probably why. I"ll look into it and see if I can make it work again.
This version also allows the PLC to be a group controller and a group responder. But I havent' tested that functionallity yet.