tracking:reader
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tracking:reader [2012/04/25 23:37] – [packet format] correct type byte to be hex sec | tracking:reader [2012/09/04 18:11] (current) – sec | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ===== Replacement ===== | ===== Replacement ===== | ||
| - | We use r0kets as readers. Their sensitivity is worse and they are very directional, | + | We sometimes |
| ==== Current version ==== | ==== Current version ==== | ||
| bridge firmware flashed on r0ket, packet dump read via USB serial and sent on with a small script. | bridge firmware flashed on r0ket, packet dump read via USB serial and sent on with a small script. | ||
| - | * e.g. [[https:// | + | * e.g. [[https:// |
| + | * or a compiled version of [[https:// | ||
| ====== packet format ====== | ====== packet format ====== | ||
| Line 26: | Line 27: | ||
| | 0x01 | ::: | ::: | | | 0x01 | ::: | ::: | | ||
| | 0x02 | proto | BEACONLOG_SIGHTING == 1 | | | 0x02 | proto | BEACONLOG_SIGHTING == 1 | | ||
| - | | 0x03 | interface | 0 or 1 for official reader, 0 always | + | | 0x03 | interface | 0 or 1 on official reader, 0 always |
| | 0x04 | readerid | needs to be added to src/ | | 0x04 | readerid | needs to be added to src/ | ||
| | 0x05 | ::: | ::: | | | 0x05 | ::: | ::: | | ||
| Line 39: | Line 40: | ||
| | 0x0e | ::: | ::: | | | 0x0e | ::: | ::: | | ||
| | 0x0f | ::: | ::: | | | 0x0f | ::: | ::: | | ||
| + | |||
| + | this is followed by the raw packet as captured by the rf interface. | ||
| For the reference, the openbeacon packet format looks like this: | For the reference, the openbeacon packet format looks like this: | ||
| Line 46: | Line 49: | ||
| | **byte** | **name** | **description** | | | **byte** | **name** | **description** | | ||
| | 0x00 | len | length of the packet (usually 16) | | | 0x00 | len | length of the packet (usually 16) | | ||
| - | | 0x01 | type | openbeacon | + | | 0x01 | type | openbeacon |
| | 0x02 | button | sputnik " | | 0x02 | button | sputnik " | ||
| - | | 0x03 | strength | 0x00 / 0x55 / 0xaa / 0xff (low to high) rf sending | + | | 0x03 | strength | 0x00 / 0x55 / 0xaa / 0xff (low to high) rf sending |
| | 0x04 | idx | monotonically increading sequence. Original sputnik dies after 0xffffffff | | | 0x04 | idx | monotonically increading sequence. Original sputnik dies after 0xffffffff | | ||
| | 0x05 | ::: | ::: | | | 0x05 | ::: | ::: | | ||
| Line 85: | Line 88: | ||
| fi | fi | ||
| </ | </ | ||
| + | |||
| + | Our reader implementation also send a heartbeat packet every second. This packet has the standard reader header, but the last 16 bytes are just: | ||
| + | |||
| + | | **byte** | **name** | **description** | | ||
| + | | 0x00 | type | RFBPROTO_READER_ANNOUNCE (22) | | ||
| + | | 0x01 | unused | 0x0 | | ||
| + | | ... | ::: | ::: | | ||
| + | | 0x0d | ::: | ::: | | ||
| + | | 0x0e | crc | ccitt16(bytes[0x0-0xd]) | | ||
| + | | 0x0f | ::: | ::: | | ||
tracking/reader.1335389835.txt.gz · Last modified: by sec
