User Manual
Table Of Contents
- Revision History
- Table of Contents
- Chapter 1 Introduction
- Chapter 2 Wireless Sensing Triple Axis Reference design introduction
- Chapter 3 Sensor Board description
- 3.1 Board overview
- 3.2 A/D conversion of XYZ levels
- 3.3 Power management
- 3.4 ZSTAR Sensor Board hardware overview
- 3.4.1 Analog connections
- 3.4.2 g-select connections
- 3.4.3 BDM (Background Debug Mode) connections
- 3.4.4 Sensor Board schematics
- 3.4.5 Button connections
- 3.4.6 MC13191 to MC9S08QG8 microcontroller interface
- 3.4.7 MC13191 RF interface
- 3.4.8 Clocking options of MC9S08QG8
- 3.4.9 LED indicators connections
- 3.4.10 Power supply
- 3.5 Bill of Materials
- Chapter 4 USB stick board description
- Chapter 5 Software Design
- 5.1 Introduction
- 5.2 SMAC (Simple Media Access Controller)
- 5.3 ZSTAR RF protocol
- 5.4 STAR protocol and ZSTAR extensions (over USB)
- 5.5 Bootloader
- Chapter 6 Application Setup
- Appendix A References
ZSTAR RF protocol
Wireless Sensing Triple Axis Reference design, Rev. 0.9
Freescale Semiconductor 39
5.3.1.1 Network number
The network number is randomly generated at the beginning of the connection between the USB stick
and the Sensor Board. It is used to determine between various connections. Packets with different
Network numbers are simply ignored.
This field is 16 bits long.
5.3.1.2 RX strength
This field reports the strength of the last received packet on the other end of the connection. This value
simply tells us how well the other side receives ‘our packets’. This can be used by transmission power
management functions to change the transmission power if the other party receives packets with enough
strength.
The values reported are retrieved using the MLMELinkQuality() SMAC primitive.
This field is 8 bits long.
5.3.1.3 Zcommand
The ZSTAR demo protocol uses a few simple commands to establish and maintain the data flow between
the Sensor Board and USB stick.
The command is carried in Zcommand field and is 8 bits long. The commands are defined as listed in
Table 5-1.
5.3.1.4 Zdata
The Zdata field follows the Zcommand field and may be empty if the actual command doesn’t require any
additional data. The data format is dependent on the Zcommand. A detailed description is in the next
chapter.
Table 5-1ZSTAR Zcommand List
ZCommand
ZCommand
code
Direction Zdata
ZSTAR_BROADCAST
‘B’ (0x42) USB stick to Sensor Board none
ZSTAR_ACK
‘A’ {0x41) USB stick to Sensor Board none
ZSTAR_CALIB
‘K’ (0x4B) USB stick to Sensor Board calibration data to Sensor Board
ZSTAR_STATUS
‘S’ (0x53) USB stick to Sensor Board g-range selection data to Sensor Board
ZSTAR_CONNECT
‘C’ (0x43) Sensor Board to USB stick calibration data from Sensor Board
ZSTAR_DATA
‘D’ (0x44) Sensor Board to USB stick
accelerometer values,
button levels,
g-range selection