Difference between revisions of "Axivity WAX3"
From Hackstrich
(Created page with "The WAX3 is a wireless accelerometer that talks MiWi over 802.15.4. Source code/schematics/etc. are available at [http://code.google.com/p/openmovement/ Open Movement's Google C...") |
|||
Line 37: | Line 37: | ||
| 2 | | 2 | ||
| Accelerometer Info | | Accelerometer Info | ||
− | | Top two bits is G-range, next two bits is format (0=10-bit raw -> 3x10-bit + 2, 2=signed 16-bit), lowest four bits is the rate code: frequency = 3200 / (1 << (15-(n & 0x0f))) | + | | Top two bits is G-range, next two bits is format (0=10-bit raw -> 3x10-bit + 2, 2=signed 16-bit), lowest four bits is the rate code: frequency = 3200 / (1 << (15-(n & 0x0f)))<br>00=±16g, 01=±8g, 10=±4g, 11=±2g |
|- | |- | ||
| 9 | | 9 |
Revision as of 02:46, 25 January 2014
The WAX3 is a wireless accelerometer that talks MiWi over 802.15.4. Source code/schematics/etc. are available at Open Movement's Google Code
Start Byte | Length (bytes) | Description | Format |
---|---|---|---|
0 | 1 | Report Type | Always 0x12 = USER_REPORT_TYPE |
1 | 1 | Report ID | Always 0x78 (ASCII 'x') |
2 | 2 | Device ID | |
4 | 1 | Device Status | Bit 0 = battery warning, bits 1-7 = reserved |
5 | 2 | Analog Sample | Top 6 bits are measurement info, bottom 10 are measurement |
7 | 2 | Accelerometer Info | Top two bits is G-range, next two bits is format (0=10-bit raw -> 3x10-bit + 2, 2=signed 16-bit), lowest four bits is the rate code: frequency = 3200 / (1 << (15-(n & 0x0f))) 00=±16g, 01=±8g, 10=±4g, 11=±2g |
9 | 2 | Sample Sequence Number | Resets on sleep |
11 | 1 | Number of samples left to transmit after this packet | 0xFF = 255 or more |
12 | 1 | Number of samples in this packet | |
13 | ??? | Sample Data |