
Weather Station Demonstration
MC1322x SMAC Demonstration Application User’s Guide, Rev. 1.3
9-8
Freescale Semiconductor
9.3.3
Data Packet Structure
The Weather Station PC application displays various weather related levels and values and also displays
the received frames at the bottom of the main window. As shown in
Figure 9-7
, the bottom of the main
window shows the data packet sent by the Sensor Node to the Network Node. The data packet is divided
into fifteen bytes of information with a header and a tail. However, the tail (the last byte) is not displayed.
Figure 9-11
shows the data structure details.
Figure 9-11. Weather Station Data Frame Structure
9.3.4
Loading a Pre-existing Log File
This section describes how to load and run a pre-existing log file. To load and run a pre-existing log file,
perform the following tasks:
1. Launch the Weather Station PC application. The Weather Station main window appears as shown
in
Figure 9-7
.
2. Click on File -> Load. The Load file window appears as shown in
Figure 9-12
.
3. Navigate to the Weather Station folder and highlight the
Log.txt
file.
4. Click the Open button.
Figure 9-12. Load File Window
Network
Network Node Data
Bytes 1-2
Date/Time
Device
Info
Operating Channel
Sequence Number
Sensor Node Data
Bytes 3-4
Bytes 5-6
(2 bytes)
(11 bytes)
Wind
Direction
(0-360°)
Bytes 7-8
Wind
Speed
(n.n)
Bytes 9-10
Air
Pressure
(n.n)
Bytes 11-12
Temperature
Battery
Voltage
Bytes 13-14 Byte 15
Battery
Yes/No
(n.n)