迅鸣物联网文档

迅鸣物联网文档


串口(485)控制指令

注意事项:

1、多控板连接DTU时,供电插头必须接多控板,开锁电源只从锁控板取电。 2、开锁检测未使用中断,因此指令开锁可正常触发消息,手动开锁不能触发消息。关锁采用中断,可正常触发消息。手动开锁只能等到设备同步指令上报时发现。

配置

  • 波特率 115200
  • 停止位 1
  • 校验位 None

开1节点全部锁

发送:

comm,01,001011ff00000001

接收:

comm,01,001011ffffff0052

查询节点信息

发送:

comm,01,0000000000000000

接收:

节点信息返回
comm,01,000001180301015a

重启节点

发送:

comm,01,010000000000003D

接收:

无返回

修改节点编号

发送:

comm,01,020000020000007D

接收:

无返回

查询节点1-1号锁状态

发送:

sync,01,01101100000000D7

接收:

sync,01,10110f01,011011110004005b

Crc生产工具:

CRC-8/MAXIM

地址: https://crccalc.com/

控制开

开-节点1-全部锁

comm,01,001011ff00000001
comm,01,001011ffffff0052 (注意状态、crc)回复4B(开关状态,1位在前)1B(crc)

开-节点1-全部LED

comm,01,001002ff00000033
comm,01,001002e000000091 (注意状态、crc)回复4B(开关状态,1位在前)1B(crc)

开-节点1-1号锁

comm,01,0110111100000060
comm,01,01101111000200f1(注意开锁次数、crc会变)回复1B(当前锁槽位|开关状态)2B(总次数)1B(0)1B(crc)

comm,01,0210111100000027
comm,01,031011110000001A
comm,01,04101111000000A9
comm,01,0510111100000094
comm,01,06101111000000D3
comm,01,07101111000000EE
comm,01,08101111000000AC
comm,01,0910111100000091
comm,01,0a101111000000D6
comm,01,0b101111000000EB
comm,01,0c10111100000058
comm,01,0d10111100000065
comm,01,0e10111100000022
comm,01,0f1011110000001F
comm,01,10101111000000A6
comm,01,111011110000009B
comm,01,12101111000000DC
comm,01,13101111000000E1
comm,01,1410111100000052
comm,01,151011110000006F
comm,01,1610111100000028
comm,01,1710111100000015
comm,01,1810111100000057

开-节点1-1号LED

comm,01,0110021100000052
comm,01,0110021100000052 (注意开LED次数、crc会变)

控制关

查询/控制

查询-节点信息

comm,01,0000000000000000
comm,01,000000180301015a (1B 锁数量,1B led数量,1B 硬件版本,1B软件版本 ,1B crc)

重启-节点1

comm,01,010000000000003D
无返回

查询/同步

查询-节点1-1号锁状态

sync,01,01101100000000D7
sync,01,10110f01,011011110004005b

查询-节点1-所有锁状态

sync,01,00101100000000EA
sync,01,10110f01,001011ffffff0052

查询-节点1-所有LED状态

sync,01,00100200000000D8
sync,01,10020f01,00100200000000d8

查询-节点1-所有设备

sync,01,0000000000000000
sync,01,10110f01,0110111100000060 (注意开x次数、crc会变)
sync,01,10110f01,0210111100000027
sync,01,10110f01,031011110000001a
sync,01,10110f01,04101111000000a9
sync,01,10110f01,0510111100000094
sync,01,10110f01,06101111000000d3
sync,01,10110f01,07101111000000ee
sync,01,10110f01,08101111000000ac
sync,01,10110f01,0910111100000091
sync,01,10110f01,0a101111000000d6
sync,01,10110f01,0b101111000000eb
sync,01,10110f01,0c10111100000058
sync,01,10110f01,0d10111100000065
sync,01,10110f01,0e10111100000022
sync,01,10110f01,0f1011110000001f
sync,01,10110f01,10101111000000a6
sync,01,10110f01,111011110000009b
sync,01,10110f01,12101111000000dc
sync,01,10110f01,13101111000000e1
sync,01,10110f01,1410111100000052
sync,01,10110f01,151011110000006f
sync,01,10110f01,1610111100000028
sync,01,10110f01,1710111100000015
sync,01,10110f01,1810111100000057
sync,01,10020f01,01100210000000dd
sync,01,10020f01,021002100000009a
sync,01,10020f01,03100210000000a7

页面列表

ITEM_HTML