Справочник Пользователя для Microchip Technology DM182015-2

Скачать
Страница из 42
8-Bit Wireless Development Kit User’s Guide
DS70654B-page 18
Preliminary
© 2011-2012 Microchip Technology Inc.
For more information on MiWi networking concepts, such as PAN Coordinator, Coordi-
nator and RFD or End Device, refer to the application note, AN1066 “Microchip MiWi 
Wireless Networking Protocol Stack
” (DS01066B). 
This demo highlights the following features:
• Creating a MiWi Network
• MCP9700A Temperature Sensor
• MAC Address EEPROM on the Radio Daughter Boards
• LCD Serial Accessory Board
3.4.1
Creating a MiWi Network
3.4.1.1
TO CREATE A MiWi NETWORK
Follow these steps to create a MiWi Network:
1.
Configure one node as PAN Coordinator (“Create NWK”) and another as 
Coordinator (“Join NWK”). 
2.
Use the Coordinator to join the PAN Coordinator, “8-bit Wireless Development 
Kit” message will be displayed on the LCD after powering the nodes. After a few 
seconds the display changes to: 
• RB0: Create NWK
• RB2: Join NWK
3.4.1.1.1
To Configure the node as PAN Coordinator 
Follow these steps to configure the node as PAN Coordinator
1.
On one node press RB0 push button to create the network. 
After the node is configured as PAN Coordinator, “Created Network 
Successfully” message will be displayed on the LCD. After the device is 
configured as PAN Coordinator, it measures the temperature sensor for every 30 
seconds   (the timer can be modified in the application) and updates the LCD with 
the temperature information in °C (Celsius) and °F (Fahrenheit). The last three 
bytes of the MAC address in HEX format are also displayed on the line two of the 
LCD:
• Local Temp
• 010203: 21C/ 70F
3.4.1.1.2
To Join the network as Coordinator
Follow these steps for joining the network as Coordinator
1.
On the second node press RB2 push button to join the available networks. This 
initiates an active scan command. The available network information will be 
displayed on the LCD:
• RB0: (PC) 010203
• RB2: Addtnl NW-0
2.
Press RB0 to join PAN Coordinator, with the address of  0x010203, created in the 
previous step. 
The LCD displays “Joined Network Successfully” message. After the node is 
successfully joined the PAN Coordinator, it measures the temperature sensor for 
every 30 seconds and broadcasts the information over the network along with its 
MAC Address. The LCD is also updated with the temperature sensor reading:
• Local Temp
• F1F2F3: 20°C/ 68°F