
1. Protocol Introduction
1.1. FF 03 10 0B 00 01 E4 D6
| Address code | Instruction code | Register address | Communication data | CRC Verification code |
| 1Byte | 1Byte | 2Byte | nByte | 2Byte |
1.2. Address code
The communication address of the smart panel , Address range: 1~42 ( 0x01 ~0x2A) , 255 For broadcasting addresses (0xFF) .
1.3. Command code list
| Instruction code | Description |
| 0x03 | Read panel data |
| 0x06 | Modify panel data |
| 0x10 | Set multiple register address parameters |
1.4. CRC Verification algorithm
Modbus Protocol standard verification algorithm.
1.5. Panel control instructions
1.5.1. Modify the communication address of the panel
| Register address | Description |
| 0x1000 | Address range 0x01~0x2A , The factory default is: 0x01. |
Example of instruction:
| postal address 0x01 Change to 0x02 |
| 01 06 10 00 00 02 0C CB |
| Change the mailing address to 0x01 (Broadcast mode) |
| FF 06 10 00 00 01 59 14 |
1.5.2. Set panel working mode
| Register address | Description |
| 0x1003 | The default value is 0x0000 |
| Register bits | meaning |
| Bit15~Bit6 | retain , Fixed as 0 |
| Bit5 | Release the button to actively send dataBit5 =1 And Bit2 =1: Enable proactive sendingBit5 =0: Prohibit active sending |
| Bit4 | retain , Fixed as 0 |
| Bit3 | Set the button backlight to turn off with a delayBit3 =1: Key 10 No action within seconds , The backlight automatically turns offBit3 =0: The button backlight is always on |
| Bit2 | Press the button to actively send dataBit2 =1: Enable proactive sending , Active sending modeBit2 =0: Prohibit active sending , Master-slave polling mode , The host sends instructions to read key values |
| Bit1 | retain , Fixed as 0 |
| Bit0 | Set demonstration modeBit0 =1: Demonstration mode , Press the button to control the backlight to turn on and off , Mainly used for demonstrating functional effectsBit0 =0: Normal Mode , From RCU Send instructions to control the backlight to turn on and off |
Example of instruction:
| Demonstration mode , Button not actively sending , The backlight is always on |
| 01 06 10 03 00 01 BC CA |
| Demonstration mode , Press the button to send actively , Release the button and do not actively send , The backlight is always on |
| 01 06 10 03 00 05 BD 09 |
| Demonstration mode , Press and release the button to actively send , The backlight is always on |
| 01 06 10 03 00 25 BC D1 |
| Normal mode , Button not actively sending , The backlight is always on |
| 01 06 10 03 00 00 7D 0A |
| Normal mode , Press the button to send actively , Release the button and do not actively send , The backlight is always on |
| 01 06 10 03 00 04 7C C9 |
| Normal mode , Press and release the button to actively send , The backlight is always on |
| 01 06 10 03 00 24 7D 11 |
| Normal mode , Button not actively sending , Backlight delay 10 Instantly extinguished |
| 01 06 10 03 00 08 7C CC |
| Normal mode , Press the button to send actively , Release the button and do not actively send , Backlight delay 10 Instantly extinguished |
| 01 06 10 03 00 0C 7D 0F |
| Normal mode , Press and release the button to actively send , Backlight delay 10 Instantly extinguished |
| 01 06 10 03 00 2C 7C D7 |
1.5.3. Control backlight and button lights
| Register address | Description |
| 0x1008 | The backlight and button lights of the panel are controlled in real-time by setting the value of this register |
| Register bits | meaning |
| Bit15~Bit9 | retain |
| Bit8 | Control the backlightBit8 =1: The backlight lights of all buttons on the panel are onBit8 =0: The backlight of all buttons on the panel is turned off |
| Bit7 | Control buttons 8 indicator lightBit7 =1: Key 8 The indicator light is on , Key 8 The backlight is turned offBit7 =0: Key 8 The indicator light is off |
| Bit6 | Control buttons 7 indicator lightBit6 =1: Key 7 The indicator light is on , Key 7 Backlight offBit6 =0: Key 7 The indicator light is off |
| Bit5 | Control buttons 6 indicator lightBit5 =1: Key 6 The indicator light is on , Key 6 The backlight is turned offBit5 =0: Key 6 The indicator light is off |
| Bit4 | Control buttons 5 indicator lightBit4 =1: Key 5 The indicator light is on , Key 5 The backlight is turned offBit4 =0: Key 5 The indicator light is off |
| Bit3 | Control buttons 4 indicator lightBit3 =1: Key 4 The indicator light is on , Key 4 The backlight is turned offBit3 =0: Key 4 The indicator light is off |
| Bit2 | Control buttons 3 indicator lightBit2 =1: Key 3 The indicator light is on , Key 3 The backlight is turned offBit2 =0: Key 3 The indicator light is off |
| Bit1 | Control buttons 2 indicator lightBit1 =1: Key 2 The indicator light is on , Key 2 The backlight is turned offBit1 =0: Key 2 The indicator light is off |
| Bit0 | Control buttons 1 indicator lightBit0 =1: Key 1 The indicator light is on , Key 1 The backlight is turned offBit0 =0: Key 1 The indicator light is off |
Example of instruction:
| All button indicator lights and backlight lights turn off |
| 01 06 10 08 00 00 0C C8 |
| All button indicator lights turn off , All button backlight lights are on |
| 01 06 10 08 01 00 0D 58 |
| Key 1 The indicator light is on , The backlight of other buttons lights up |
| 01 06 10 08 01 01 CC 98 |
| Key 1 The indicator light is on , Other key indicator lights and all key backlight lights turn off |
| 01 06 10 08 00 01 CD 08 |
1.5.4. Read key values of keys
| Register address | Description |
| 0x100B | Read the real-time key value of the specified key through this register |
| Register bits | meaning |
| Bit15~Bit8 | Absolute key value of keys , Calculation formula : Absolute key value = (Panel address - 1) * 6 + Button number |
| Bit7 | Key 8 Key valueBit7 =1: Key 8 Press downBit7 =0: Key 8 release |
| Bit6 | Key 7 Key valueBit6 =1: Key 7 Press downBit6 =0: Key 7 release |
| Bit5 | Key 6 Key valueBit5 =1: Key 6 Press downBit5 =0: Key 6 release |
| Bit4 | Key 5 Key valueBit4 =1: Key 5 Press downBit4 =0: Key 5 release |
| Bit3 | Key 4 Key valueBit3 =1: Key 4 Press downBit3 =0: Key 4 release |
| Bit2 | Key 3 Key valueBit2 =1: Key 3 Press downBit2 =0: Key 3 release |
| Bit1 | Key 2 Key valueBit1 =1: Key 2 Press downBit1 =0: Key 2 release |
| Bit0 | Key 1 Key valueBit0 =1: Key 1 Press downBit0 =0: Key 1 release |
Attention:
1, Master-slave polling mode(0x1003 Register Bit2 =0) , Release the button 2 In seconds , Key value register automatically resets to zero , After the host sends a read command , Key value The register will also be reset to zero.
2, Active sending mode(0x1003 Register Bit2 =1) , Immediately send key value data and reset the key value register to zero after pressing the button.
3, The host sends a broadcast command (address: 0xFF)when reading key values , only working in master-slave polling mode and key release 2 panel reply within seconds , other panels no reply.
command example: read key value:
| send 1 press return | |||
| not press return | 01 03 10 0B 00 01 F1 08 | read key value | 01 03 00 02 01 01 24 5A |
| broadcast mode | 01 03 00 02 00 00 E4 0A | ||
| send 1 press return (not press return) | |||
| read button status | FF 03 10 0B 00 01 E4 D6 | register address | 01 03 00 02 01 01 24 5A |
| description | key |
1.5.5. status value
| off | on |
| 0x1310 | long press flag 1 pressed for more than seconds0x00: key stuck flag0x01: long press for more than minutes0x02: key value reset , automatic recovery detection after key release 2 note0xFF: after the host sends a read command , automatically reset key value register 1 key , 0x100B status value , function as abovekey : status value , function as above 0x100B. |
| 0x1311 | function 2 Same as above , buttons |
| 0x1312 | status values 3 functions as above , buttons |
| 0x1313 | status values 4 functions as above , Same function as above |
| 0x1314 | button 5 status value , Same function as above |
| 0x1315 | Key 6 Status value , Same function as above |
| 0x1316 | Key 7 Status value , Same function as above |
| 0x1317 | Key 8 Status value , Same function as above |
Example of instruction:
| Read button 1 The state of | |||
| send out | 01 03 13 10 00 01 81 4B | Press to return | 01 03 00 01 00 01 D5 CA |
| Not pressed to return | 01 03 00 01 00 00 14 0A | ||
| Long press to return | 01 03 00 01 00 02 95 CB | ||
| Stuck return | 01 03 00 01 00 FF 54 4A | ||
| Read button 1 To 8 The state of | |||
| send out | 01 03 13 10 00 08 41 4D | Not pressed to return | 01 03 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 DA 4C |
Leave a Reply