Bugs in PLCBUS polling

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
User avatar
vdoucet
Starting Member
Starting Member
Posts: 20
Joined: Sat Nov 13, 2010 3:01 pm
Location: Pau, France

Bugs in PLCBUS polling

Post by vdoucet »

Hi Ron,
I think we have two bugs in the polling procedure / status update according to polling procedure

(1) Altough I did not check in depth, but it seems that the polling gets execueted only on the last "home code" (A, B, ...): for instance I have two devices with A home code (A01 and A02) and eight devices with B home code (B01 through B08). Here is the corresponding log when the polling is executed:

Code: Select all

2011/02/12 11:56:34 [PLCBUS] < 02 06 FA 10 1C 00 00 1C B6 
2011/02/12 11:56:34 [PLCBUS] < 02 06 FA 10 1C 00 FF 40 93 Addr: B01 Cmd: GET_ALL_ID_PULSE Data1: 00 Data2: FF GET ALL ID PULSE UNITS: 00000000 11111111
2011/02/12 11:56:34 [PLCBUS] > 02 05 FA 10 1D 00 00 03
2011/02/12 11:56:34 [PLCBUS] > 02 05 FA 10 1D 00 00 03
2011/02/12 11:56:34 [PLCBUS] < 02 06 FA 10 1D 00 00 1C B5 
2011/02/12 11:56:35 [PLCBUS] < 02 06 FA 10 1D 00 00 40 91 Addr: B01 Cmd: GET_ONLY_ON_ID_PULSE Data1: 00 Data2: 00 GET ONLY ON ID PULSE UNITS ON: 00000000 00000000
2011/02/12 11:56:35 [PLCBUS] B01 - Off
2011/02/12 11:56:35 [PLCBUS] B02 - Off
2011/02/12 11:56:35 [PLCBUS] B03 - Off
2011/02/12 11:56:35 [PLCBUS] B04 - Off
2011/02/12 11:56:35 [PLCBUS] B05 - Off
2011/02/12 11:56:35 [PLCBUS] B06 - Off
2011/02/12 11:56:35 [PLCBUS] B07 - Off
2011/02/12 11:56:35 [PLCBUS] B08 - Off
(2) I added a new device with adress B09. Then the polling procedure started to report a missing device B11:

Code: Select all

2011/02/12 15:36:34 [PLCBUS] < 02 06 FA 10 1C 01 FF 40 92 Addr: B01 Cmd: GET_ALL_ID_PULSE Data1: 01 Data2: FF GET ALL ID PULSE UNITS: 00000001 11111111
2011/02/12 15:36:34 [PLCBUS] > 02 05 FA 10 1D 00 00 03
2011/02/12 15:36:34 [PLCBUS] > 02 05 FA 10 1D 00 00 03
2011/02/12 15:36:34 [PLCBUS] < 02 06 FA 10 1D 00 00 1C B5 
2011/02/12 15:36:35 [PLCBUS] < 02 06 FA 10 1D 01 00 40 90 Addr: B01 Cmd: GET_ONLY_ON_ID_PULSE Data1: 01 Data2: 00 GET ONLY ON ID PULSE UNITS ON: 00000001 00000000
2011/02/12 15:36:35 [PLCBUS] B01 - Off
2011/02/12 15:36:35 [PLCBUS] B02 - On
2011/02/12 15:36:35 [PLCBUS] B03 - Off
2011/02/12 15:36:35 [PLCBUS] B06 - Off
2011/02/12 15:36:35 [PLCBUS] B07 - Off
2011/02/12 15:36:35 [PLCBUS] B08 - Off
2011/02/12 15:36:35 [PLCBUS] B11 - Off
2011/02/12 15:36:35 [Devices] Device 'PLCBUS Module' with address 'B11' and interface 'PLCBUS Interface' not found!
As you can see, B04 and B05 have disappeared, B09 does not exist and B11 is reported while it does not exists.
I changed the device address to A03 and everything went back to "normal".
Ubuntu 10.10 + Domotiga 0.1.194 + Gambas 2.21
Interface PLCBUS II-T PLC1141 G+ (USB) ; 2x PLCBUS2-R PLC2268HX2 ; 2x PLCBUS II-R PLC2267-H ; 1x PLCBUS II-R PLC2267-K
Oregon Scientific (7x THN132ES, 3x THGN132ES, 1x PCR800)
RFXCOM (USB ; firmware 20)
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Bugs in PLCBUS polling

Post by RDNZL »

I think I have fixed the bug with the missing B devices when polling, can you try latest revision?
I don't have that many PLCBUS devices ;-)

I'm still looking at the polling of more than one home address failing, it must be something very stupid :roll:
Regards, Ron.
Post Reply

Return to “DomotiGa Forum”