This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
doc:lps:tdoa3:protocol [2018-05-02 13:45] kristoffer |
doc:lps:tdoa3:protocol [2018-05-02 14:38] kristoffer |
||
---|---|---|---|
Line 26: | Line 26: | ||
There is only one packet format. | There is only one packet format. | ||
- | <code c> | + | <ditaa> |
- | typedef struct { | + | |
- | | + | Packet |
- | | + | |
- | uint16_t distance; | + | |
- | uint32_t rxTimeStamp; | + | |
- | } __attribute__((packed)) remoteAnchorData_t; | + | |
- | typedef struct { | + | 7 bytes |
- | | + | < |
- | uint8_t seq; // The sequence number of this packet | + | 8 bits 8 bits 32 bits 8 bits |
- | uint32_t | + | < |
+ | +--------+--------+-------------+-------------+ | ||
+ | Header | ||
+ | +--------+--------+-------------+-------------+ | ||
- | uint8_t remoteCount; | + | |
- | | + | 6 or 8 bytes |
- | } __attribute__((packed)) rangePacket3_t; | + | < |
- | </ | + | 8 bits 1 bit 7 bits |
+ | < | ||
+ | +--------+-------------+--------+-------------+--------------+ | ||
+ | Remote anchor data: | | ||
+ | +--------+-------------+--------+-------------+--------------+ | ||
+ | </ditaa> | ||
+ | |||
+ | * **Header** | ||
+ | * **type:** 0x30 | ||
+ | * **seq:** the sequence number of this packet 0 - 127 | ||
+ | * **txTimeStamp: | ||
+ | * **remoteCount: | ||
+ | | ||
+ | * **id:** the id of the remote anchor | ||
+ | * **hasDistance: | ||
+ | * **seq:** sequence number of latest packet received from the remote anchor 0 - 127 | ||
+ | * **rxTimeStamp: | ||
+ | * **distance: | ||
===== Tag implementation ===== | ===== Tag implementation ===== |