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:44] kristoffer |
||
---|---|---|---|
Line 7: | Line 7: | ||
</ | </ | ||
- | |||
- | This page describes the [[doc: | ||
===== System architecture ===== | ===== System architecture ===== | ||
Line 26: | Line 24: | ||
There is only one packet format. | There is only one packet format. | ||
- | <code c> | + | <ditaa> |
- | typedef struct { | + | |
- | | + | Packet |
- | | + | |
- | | + | |
- | | + | 7 bytes |
- | } __attribute__((packed)) remoteAnchorData_t; | + | < |
+ | 8 bits 8 bits | ||
+ | < | ||
+ | +--------+--------+-------------+-------------+ | ||
+ | Header | ||
+ | | ||
- | typedef struct { | + | |
- | uint8_t type; // 0x30 | + | 6 or 8 bytes |
- | | + | < |
- | | + | 8 bits 1 bit 7 bits 32 bits 0 or 16 bits |
+ | < | ||
+ | +--------+-------------+--------+-------------+--------------+ | ||
+ | Remote anchor data: | | ||
+ | | ||
+ | |||
+ | |||
+ | LPP data: TBD | ||
+ | |||
+ | </ditaa> | ||
- | | + | |
- | | + | * **type:** 0x30 |
- | } __attribute__((packed)) rangePacket3_t; | + | * **seq:** the sequence number of this packet 0 - 127 |
- | </ | + | * **txTimeStamp: |
+ | * **remoteCount:** the number of slots in the Remote Anchor Data section that are populated with data, max 8 | ||
+ | | ||
+ | * **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 ===== |