下面是源码中的一些解释
* 2. The messages here are similar to those used in the DecaRanging ARM application (shipped with EVK1000 kit). They comply with the IEEE
* 802.15.4 standard MAC data frame encoding and they are following the ISO/IEC:24730-62:2013 standard. The messages used are:
* - a poll message sent by the initiator to trigger the ranging exchange.
* - a response message sent by the responder allowing the initiator to go on with the process
* - a final message sent by the initiator to complete the exchange and provide all information needed by the responder to compute the
* time-of-flight (distance) estimate.
* The first 10 bytes of those frame are common and are composed of the following fields:
* - byte 0/1: frame control (0x8841 to indicate a data frame using 16-bit addressing).
* - byte 2: sequence number, incremented for each new frame.
* - byte 3/4: PAN ID (0xDECA).
* - byte 5/6: destination address, see NOTE 3 below.
* - byte 7/8: source address, see NOTE 3 below.
* - byte 9: function code (specific values to indicate which message it is in the ranging process).
* The remaining bytes are specific to each message as follows:
* Poll message:
* - no more data
* Response message:
* - byte 10: activity code (0x02 to tell the initiator to go on with the ranging exchange).
* - byte 11/12: activity parameter, not used for activity code 0x02.
* Final message:
* - byte 10 -> 13: poll message transmission timestamp.
* - byte 14 -> 17: response message reception timestamp.
* - byte 18 -> 21: final message transmission timestamp.
* All messages end with a 2-byte checksum automatically set by DW1000. 第0/1字节是模块的地址,这个是不能变的 第2个字节 上面的解释是序列号,每一帧增加,但是我看源码中把他做为基站的地址或者标签的地址。 第三个字节是PANID,这个不明白0xDECA是什么?源码也是没有按照这个发送,好像也是占用第三个字节存放什么信息 5,6,7,8的这个字符是自定义的吗?只要源地址,目的地址配对即可是吗? 最重要的是第9字节,上面解释是功能码,这个功能码也是自定义的吧
我看手册上的功能码和源码的也不一样 (, 下载次数: 1723)