我有一个 master & slaves 设置,其中奴隶也只在说话时响应。我可以窥探和记录现有的主/从对话。我有一个额外的从设备,我想与之进行对话,但到目前为止失败得很惨。我怀疑每个设备都有自己唯一的 ID,但不知道我额外的从设备 ID 是什么。
我从逻辑分析仪和值得研究的天数中了解到的:
- 消息以 0x10 开头
- 在消息结束之前是一个 2 字节的 CRC-16/MCRF4XX,小端(感谢:reveng!)
- 消息以 0x1003 结尾
怀疑:
- 第一个字节是消息类型标识符,我已经观察到了大约 12 种基于此的独特消息类型。基于此的每个消息“类型”具有相同的长度。
- 第二个字节可能???是目标设备 ID ???。基于这种怀疑,我取了前 20 条唯一消息,将 255 个不同的 ID 插入到这个字节中,并发送了每个消息(正确打包为 start + data + crc + end)——它没有响应任何一个。
启动期间来自总线的数据样本,我删除了 start、crc 和 end 字节:
0xff020300010400
0x09510000
0xff01030002ffff
0xff020300013c03
0x01000000
0x350d0000
0xff01030002ffff
0xff020300020200
0x02007400...big packet with lots of text from a slave A...
0x340d7400...big packet with lots of text from a/the master?...
0xff010300010000
0xff020300010800
0x09510000
0xff01030003ffff
0xff020300030200
0x02007400...big packet with lots of text from a slave A... (exactly the same as prior 2 big packets)
0x340d7400...big packet with lots of text from the master or yet a third slave?... (exactly the same as prior 2 big packets)
0x0952040000000080
0xff010300010000
0xff02030001101000
0x09510000
0xff01030004ffff
0xff020300040200
0x02007400...big packet with lots of text from a slave B...
0x340d7400...big packet with lots of text from the master or yet a third slave?...
0x0952040000000080
0xff010300010000
0xff020300012000
0x09510000
0xff01030005ffff
0xff020300050200
0x02007400...big packet with lots of text from a slave B... (exactly the same as prior 2 big packets)
0x340d7400...big packet with lots of text from the master or yet a third slave?... (exactly the same as prior 2 big packets)
0x0952040000000080
0xff010300010000
0xff020300010400
0x09510000
0xff01030002ffff
0xff020300020200
0x0952040000000080