Page 1 of 1

Bugs in PLCBUS polling

Posted: Sun Feb 13, 2011 9:01 am
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".

Re: Bugs in PLCBUS polling

Posted: Mon Feb 14, 2011 9:14 pm
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: