User Manual

Software Design
ZSTAR3 Reference Design Manual, Rev. 0.1
5-32 Freescale Semiconductor
Preliminary
Pr
e
l
i
m
i
n
a
ry
A fully detailed description of the SMAC is in the SMAC Reference Manual (SMACRM.pdf), available
together with SMAC source code.
5.2.2.1 New targets add to SMAC
Modification of SMAC for individual application are done by targets files that exact defines all pins and
peripheries. For ZSTAR3 project purposes has been added to SMAC three new targets:
MC1319XZSTAR_USB.c/h - these files describes Original ZSTAR USB Stick board
ZSTAR_SENSOR.c/h - these files describes Original ZSTAR and ZSTAR3 Sensor board
MC1321XZSTAR2.c/h - these files describes ZSTAR3 Sensor board
5.2.2.2 New functions add to SMAC
Original SMAC doesn’t has implemented any advanced transceiver time operations as for example delayed
trasmit / receive and others. On these functionalities is based ZSTAR3 RF protocol and thus had to be
implemented. List of new functions in SMAC mac layer:
UINT32 MLMEGetActualTime(void) - function return actual value of free run main counter in
modem
UINT32 MLMEGetTimeStamp(void) - function return time value of last received message
UINT32 MLMEComputeDelay(UINT32 u32StartTime, UINT32 u32Delay) - function compute
new time with delay
UINT8 MLMEDelayTransceiver(UINT32 u32Time, UINT32 u32TimeOut, tTxPacket
*psPacket,tRxPacket *psRxPacket, UINT8 u8mode) - main new function. This function provides
delayed transmit, received with timeout, doze modes and general time interrupt
5.3 ZSTAR3 RF Protocol
ZSTAR3 uses a simple time based protocol for an RF transfer of information between Sensor Boards and
USB receiver. ZSTRA2 RF protocol use simple star topology of communication net with one master point
(USB Stick) and slaves(Sensor Boards). Protocol provides time slots up to 16 sensors. Main data load
contents acceleration (X, Y and Z axis) and basic status data. The protocol is built on top of modified 5.2,
“SMAC (Simple Media Access Controller) drivers that are available for the MC1319x and MC1321x
transceivers family. The protocol is bidirectional allowing the set up of independent connections for a
many of ZSTAR3 demos together in one RF space.
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 ZSTAR3 RF protocol features
Based on modified Freescale SMAC library
Star network topology
One coordinator of network (master)