User Manual
Software Design
ZSTAR3 Reference Design Manual, Rev. 0.1
5-34 Freescale Semiconductor
Preliminary
Pr
e
l
i
m
i
n
a
ry
5.3.2.1 Network Number(NetNum)
The network number is save in FLASH memory of each participant with ZSTAR3 RF protocol. The USB
Stick randomly generated it at the first time of lifecycle and it can be changed by command from PC. The
new Sensor board has this number erased from manufacture and it can to update it when it received first
valid packet in ZSTAR3 RF protocol format. Network Number in sensor board can be cleared by pressed
all buttons during wake up sequency of board or it can be changed by command from USB Stick. It is used
to determine between various connections. Packets with different Network numbers are simply ignored.
This field is 16 bits long.
5.3.2.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.2.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 5.3.2.3, “Zcommand field and is 8 bits long. The commands are defined as
listed in Table 5-1., “Original ZSTAR commands Zcommand List, Table 5-2., “ZSTAR3 main commands
Zcommand List, Table 5-3., “ZSTAR3 subcommands Zcommand List.
Table 5-1. Original ZSTAR commands Zcommand List
ZCommand
ZCommand
code
Direction Zdata
ZSTAR_BROADCAST
‘b’ (0x62) USB stick to Sensor Board none
ZSTAR_ACK
‘a’ {0x61) USB stick to Sensor Board none
ZSTAR_CALIB
‘k’ (0x6B) USB stick to Sensor Board calibration data to Sensor Board
ZSTAR_STATUS
‘s’ (0x73) USB stick to Sensor Board g-range selection data to Sensor Board
ZSTAR_CONNECT
‘c’ (0x63) Sensor Board to USB stick calibration data from Sensor Board
ZSTAR_DATA
‘d’ (0x64) Sensor Board to USB stick
accelerometer values,
temperature and bandgap voltage,
button levels,
g-range selection