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
Software Design
Wireless Sensing Triple Axis Reference design, Rev. 0.9
38 Freescale Semiconductor
5.3 ZSTAR RF protocol
The ZSTAR demo uses very simple protocol to transfer the accelerometer, button and calibration data
between the Sensor Board and the USB stick over the RF medium. The protocol is built on top of SMAC
(Simple Media Access Controller) drivers that are available for the MC13191 transceivers family. The
protocol is bidirectional allowing the set up of independent connections amongst numerous pairs of
ZSTAR demos.
All data is transferred in so-called Zpackets. This protocol is primarily targeted at simple demo purposes,
allowing a fast transfer of the accelerometer data in short packets with minimum overheads and with
minimum battery loads (most of the receive windows eliminated, short transmit packets, etc.).
5.3.1 Zpacket format
The ZSTAR Zpacket is contained inside the MC13191 standard packet structure, which is consistent with
the IEEE 802.15.4 Standard. The SMAC library transparently adds a 16 bit Packet control field (see
chapter 7.2.1.1 of IEEE 802.15.4 Standard specifications) to differentiate packets from ZigBee and other
standards.
The Zpacket becomes a payload data for the SMAC standard packet and contains the following fields:
• Network number
• RX strength
• Zcommand
• Zdata
Figure 5-1Zpacket format
Preamble SFD FLI
Payload Data
FCS
MC13191 Packet Structure
SFD (Start of Frame Delimiter)
FLI (Frame Length Indicator)
FCS (Frame Check Sequence)
Network number
RX
strength
Zcommand Zdata
ZSTAR Zpacket Structure
Packet control
SMAC payload
SMAC Packet Structure
field