DATA_MOVE_TO_TILT_POSITION (0x19)
This is a six-byte command (Sync, Lamp address, command, position LSB,
Position MSB, CRC). The position value is 12 bits and gives a resolution of
0.1 degrees. The most significant byte (sent last) comprises the top 5 bits.
The most significant bit (bit 4
– 0b0000x000) determines whether the tilt angle
is positive (tilted up relative to straight ahead) or negative (tilted down relative
to straight ahead). Bit 4 set to 1 indicates angle is tilt up. The remaining bits
will increment as the lamp moves from centre. The least significant byte
comprises the lower 7 bits of the value with the most significant bit set to zero.
As an example, a value of 0x0A followed by 0x08 would indicate an angle 1
degree up of centre. 0x0A = 10 but resolution is 0.1 degrees so divide integer
value by 10 to give 1.0 degrees. A value of 0x64 followed by 0x00 would
indicate a value of 10 degrees down of centre.
DATA_LAMP_ON (0x1A)
This is a four-byte command (Sync, Lamp address, command, CRC). The
lamp will switch on when this code is received.
DATA_LAMP_OFF (0x1B)
This is a four-byte command (Sync, Lamp address, command, CRC). The
lamp will switch off when this code is received.
DATA_RECORD (0x0D)
This is a four-byte command (Sync, Lamp address, command, CRC). The
lamp will start recording motion and lamp on / off data when this code is
received.
DATA_PLAY (0x0E)
This is a four-byte command (Sync, Lamp address, command, CRC). The
lamp will start playing back a previously recorded sequence when this code is
received.
DATA_REQUEST_LAMP_STATUS (0x1E)
This is a four-byte command (Sync, Lamp address, command, CRC). When
the interface receives this command, there is a 10mS delay then the interface
will switch to transmit and send 13 bytes as detailed below.
1. Sync (FF)
2. Lamp Address with bit 7 set - range 0x90-0xA8
3. Pan Position LSB (Same format as pan position command above)
4. Pan Position MSB
5. Tilt Position LSB (Same format as tilt position command above)
6. Tilt Position MSB
7. Lamp Status
Bit 0 - Lamp on
Bit 1 - Pan Limit reached
Bit 2 - Tilt Limit reached
Bit 3 - Lamp Recording
Bit 4 - Lamp Playing
Bit 5 - Lamp Overheated (not currently implemented)
Bit 6 - Lamp moving to home