-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Some DALI command sequences are supposed to be sent as "transactions"; in particular, configuration commands that are sent twice must be sent as transactions. It looks like the DALI USB has some support for this (although not full support, surprisingly).
Example sequences:
158 1493.945513 host 1.10.2 120320030000a50000 Special A500 * INITIALIZE (all) (sent twice)
160 1493.963284 1.10.1 host 12730000a500ffff03 ... and we get
162 1493.990289 1.10.1 host 12730000a500009103 ... two "1273" responses
164 1494.000281 1.10.1 host 127100000000008a03 ... and a final "1271" response
If byte 2 is '0x20' then the command is transmitted twice. We get two '0x73' transmission reports, followed by the final 'no response' report.
9 3.950105 host 1.10.2 125530030000ff2c55 DTR0=0x55 followed by SET SYSTEM FAILURE LEVEL (DTR0) (twice)
11 3.967897 1.10.1 host 12730000a355ffff55 ... A355 (DTR0=0x55) transmission report
13 3.993899 1.10.1 host 12730000ff2c009155 ... FF2C (SET SYSTEM FAILURE LEVEL) transmission report
15 4.020910 1.10.1 host 12730000ff2c009155 ... FF2C (SET SYSTEM FAILURE LEVEL) transmission report (again)
17 4.030894 1.10.1 host 127100000000008a55 ... no response
If byte 2 is 0x30, byte 8 is used to construct a "Set DTR0" command, and then the command supplied in bytes 6–7 is sent twice. Transmission reports are received for all three forward frames, followed by the usual response status. (Annoyingly I was setting DTR0 to 0x55 here, which happened to be the same as the serial number. I have other examples where the serial number is different, however: there's one in issue #2.)
I didn't manage to get masterCONFIGURATOR to do any other transactions. A "QUERY NEXT DEVICE TYPE" sequence is supposed to be done as a transaction, but it doesn't:
634 1497.094771 host 1.10.2 125200030000059900 Query 0599 A2 QUERY DEVICE TYPE
636 1497.117224 1.10.1 host 127300000599009152
638 1497.132264 1.10.1 host 1272000000ff005d52 Answer FF = 255 (0xFF)
640 1497.135044 host 1.10.2 12530003000005a700 Query 05A7 A2 QUERY NEXT DEVICE TYPE
642 1497.158236 1.10.1 host 1273000005a7009153
644 1497.173239 1.10.1 host 127200000001005b53 Answer 01 = 1 (0x01)
646 1497.177923 host 1.10.2 12540003000005a700 Query 05A7 A2 QUERY NEXT DEVICE TYPE
648 1497.199249 1.10.1 host 1273000005a7009154
650 1497.214239 1.10.1 host 127200000006005d54 Answer 06 = 6 (0x06)
652 1497.215556 host 1.10.2 12550003000005a700 Query 05A7 A2 QUERY NEXT DEVICE TYPE
654 1497.240244 1.10.1 host 1273000005a7009155
656 1497.255239 1.10.1 host 1272000000fe005d55 Answer FE = 254 (0xFE)