The ZigBee Evaluation Kit (ZEK) has been developed for evaluation of the ZigBee wireless solution from Amp ed RF. This demo kit utilizes Amp ed RF ZigBee Serial Adapter (AR Zb-121) board with embedded ZigBee module (AR Zb-21), and the zbserial firmware. No additional devices or drivers are required. Contents of ZEK Kit: 1. Two evaluation adapters which consist of a ZigBee Serial Adapter (Zb-121) board, and ZigBee module (Zb-21). 2. Two DB-9 RS232 female to female cables 3. Two 120V AC to 5V DC power adapters 4. zbserial firmware. 5. zbserial programming tool 6. AR Zb-21 data sheet 7. ZbSerial reference guide 8. ZEK Quick Start Guide Figure 1: ZigBee Evaluation Kit (ZEK) Contents Figure 2: ZigBee Adapter Zb-121 and Module Zb-21 The evaluation steps consist of three parts. They are 1) Serial connection setup. 2) ZigBee communication demonstration and 3) zbserial programming demonstration. A user may prepare the following items to successfully finish the evaluation steps. 1. One or two PCs with Windows XP Pro 2. One or two USB to Serial DB-9 RS232 male adapters if user s PCs do not have any RS232 serial ports. Amp ed RF offers the optional USB serial adapters. 3. One or two optional battery packs if the user wants to carry the units to move around. 4. Web access to http://www.ampedrf.com/document.htm to download OKI programming utility tool and zbserial firmware image file Before we start the evaluation steps, please take a look at the Figure 3 and 4. Figure 3 shows the front view of the ZigBee Adapter board Zb-121 which the ZigBee module Zb-21 is embedded on. Figure 4 shows the back view of the ZigBee adaptor which the dip switches are located. 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 1 of 15
Figure 3: The front view of ZigBee adaptor Zb-121. The white dots area is where the Zb- 21 located. Figure 4: The back view of ZigBee adaptor Zb-121. The white dots area is where the four dip switches located. The following are the steps to evaluate Amp ed RF ZigBee wireless solution using ZigBee adapter board ZB-121 and ZigBee module ZB-21. (1) Serial Connection Setup Serial Connection Setup is to establish the connection between your PC and Zbto 121 adapter board which ZigBee device Zb-21 is embedded using Hyper Terminal program. You may issue AT-command of the zbserial firmware control your ZigBee device from your PC. You will learn some basic AT commands of zbserial firmware such as VERS, BAUD, JOIN, DISJ and PTPT. You may also chat between the two ZigBee devices when the two devices are connected. 1. Choose one Zb-121 adapter board as the host device. Examine the four dip switches located at the back of the host adapter. All four dip switches should be set to the ON positions. Refer to Figure 3 and Figure 4. 2. Connect a DB-9 RS232 serial cable from one of PC serial ports to the serial port on the host adapter. Note: If the PC doesn t have a serial port, which many of the latest PCs on the market don t provide, you may install a USB to DB-9 RS232 serial male adapter cable and driver on your PC. 3. Launch the HyperTerminal program from Windows XP on the host PC. Start->Programs->Accessories->Communications->HyperTerminal Note: For Windows Vista user, you may download and install HyperTerminal Private Edition from http://www.hilgraeve.com/htpe/ 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 2 of 15
4. Start a new connection from HyperTerminal program File->New Connection Some HyperTerminal prompts a New Connection window immediately when HyperTerminal is launched. You may open an existing connection if you have one. After opening the existing connection, for example ZBHost, you can setup it by using File->Properties (Step 8) 5. A New Connection window prompts. Input the name in the Enter a name and chose an icon for the connection, for example, ZBHost. Then click OK 6. A Connect To window prompts. 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 3 of 15
Choose the COM port where the serial cable is connecting to the adapter, for example: Using Connection: COM3 Then click OK If you don t know which COM port number that is connected to the adapter, you may find it from Windows Device Manager. 7. A COM3 Properties window prompts. Then choose the following values: Bits per second: 9600 Click OK to close the COM3 Properties window 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 4 of 15
8. Choose proper Properties settings in the HyperTerminal for ZBHost connection. HyperTerminal->File->Properties 9. A ZBHost Properties window prompts. Click Settings tab to open the setting window Click ASCII Setup button An ASCII Setup window prompts, check the following options: ASCII Sending Sending lines ending with line feeds 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 5 of 15
Echo typed characters locally ASCII Receiving Wrap lines that exceeds terminal width Click OK to close the ASCII Setup window Click OK to close the Properties window Now the connection ZBHost-HyperTerminal setup is done. 10. Connect the DC power plug from AC outlet to a power inlet on the adapter. The third LED should be on solid green which indicates that the adapter is powered. The ZBHost-HyperTerminal displays the device MAC address of the ZigBee module which indicates that the ZigBee board is connected to your PC correctly. For example, MAC Address: 0080870000500535 The adapter doesn t have a reset switch. You may un-power/power the DC power at any time if you want to hard reset the device. You can use the AT command RSET to soft reset the device. Now you can enter the following AT commands to test the Serial connection between your PC and the adapter. The AT commands are case insensitive. 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 6 of 15
11. Use AT command to find the current version number of the zbserial firmware. The AT commands are case insensitive. Enter AT command: AT+ZB VERS The HyperTerminal displays: AT-ZB zbserial vx.x 12. Set the baud rate of the serial connection between PC and ZigBee device. Enter AT command: AT+ZB BAUD 4800 The HyperTerminal displays: AT-ZB OK Note: The HyperTerminal may no longer display commands correctly because the baud rate of HyperTerminal is 9600 while the baud rate of the adapter is 4800. You may use the following steps to change the baud rate of the HyperTerminal HyperTerminal->Call->Disconnect HyperTerminal->File->Properties The ZBHost Properties window prompts: Click Connect To->Configure 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 7 of 15
The COM3 Properties Port setting window prompts. Choose new baud rate in the pull down menu: Bits per second: 4800 Click OK to close the COM3 Properties window Click OK to close the ZBHost Properties window You may resume the connection between the HyperTerminal and the adapter: HyperTerminal ->Call Now you may enter an AT command such as AT+ZB VERS to verify the consistent baud rate setting of the serial connection. You may repeat the above steps to change the baud rate back to 9600 bps. 13. Use AT command to soft reset the device. Enter AT command: AT+ZB RSET The HyperTerminal displays: AT-ZB OK 14. The AT command RSET resets the ZigBee radio to its original state, for example, the network is disjoined, any point-to-point, multi-point connections are disconnected. 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 8 of 15
2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 9 of 15
(2) ZigBee Communication Demonstration This part of evaluation demonstrates the ZigBee communication and network capability among ZigBee devices. The current evaluation kit uses two ZigBee devices for cable replacement. ZigBee mesh network features will be demonstrate with more powerful ZigBee modules and firmware to be released from Amp ed RF. 1. Enter the JOIN command from the ZBHost-HyperTerminal to for a host device start a ZigBee network: Enter AT command: AT+ZB JOIN The HyperTerminal displays: AT-ZB C 0X0 This message indicates that the ZBHost device has started a PAN ZigBee network. The device plays the C role, which is the coordinator. The network address of the device is 0x0. 2. Use JOIN command for the remote device to join the ZigBee network from the ZBRemote-HyperTerminal Enter the AT command: AT+ZB JOIN The HyperTerminal displays: AT-ZB R 0X1 This indicates that the remote ZigBee device has joined the network as the child to the host device. It functions as a R, which is the router. The network address is 0X1 3. Use command PTPT to establish a point-to-point connection between the two ZigBee devices from the both ZBHost and ZBRemote HyperTerminals. The order doesn t matter. Assume the ZigBee network has been established after the steps 1 and 2. Enter PTPT command from ZBHost-HyperTerminal: AT+ZB PTPT 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 10 of 15
ZBHost-HyperTerminal displays: AT-ZB PENDING Enter PTPT command from ZBRemote HyperTerminal: AT+ZB PTPT Both HyperTerminals display the message: AT-ZB OK This indicates that the two host and remote ZigBee devices have established a point-to-point connection directly. Type any messages from one HyperTerminal; the other HyperTerminal should display the same messages, for example, Abcdefg1234567890 Hello from ZigBee world! 4. Enter escape sequence from the HyperTerminal to return to the AT command mode. Please not the ^ is the Shift-6 key instead of Ctrl key. Enter escape sequence from ZBRemote HyperTerminal: ^#^$^% HyperTerminal displays: OK 5. Use command UNPT to disconnect the point-to-point connection between the two ZigBee devices from the both ZBHost and ZBRemote Hyper Terminals. The order doesn t matter. Assume the point-to-point connection has been established after the steps 1, 2 and 3. The escape sequence has been applied to return to the local AT command mode for the each device. Enter UNPT command from ZBHost-HyperTerminal: AT+ZB UNPT ZBHost-HyperTerminal displays: AT-ZB PENDING Enter PTPT command from ZBRemote HyperTerminal: 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 11 of 15
AT+ZB UNPT Both Hyper Terminals display the message: AT-ZB OK This indicates that the two host and remote ZigBee devices have disconnected the point-to-point connection. 6. Enter DISJ from the ZBRemote-HyperTerminal to disjoin the remote adapter from the PAN network: Enter AT command: AT+ZB DISJ It may take about 10 seconds to disjoin the ZigBee network in the current evaluation kit. In this case, the HyperTerminal may display AT-ZB PENDING Please wait until the HyperTerminal displays message: AT-ZB OK This indicates that the remote ZigBee device has disjoined the ZigBee network. 7. Enter DISJ from the ZBHost-HyperTerminal, to disjoin the PAN network as well as dissolve the network it created: AT+ZB DISJ HyperTerminal displays message: AT-ZB PENDING AT-ZB OK Device has disjoined the network! This indicates that the host ZigBee device has disjoined the ZigBee network. Because the host device is the Coordinator of the network, it dissolves the network as well. 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 12 of 15
(3) Programming Demonstration: Each ZigBee module from Amp ed RF is pre-programmed. However, a user may upgrade the firmware from a PC using OKI In System Flash Programmer (ISFP) utility. 1. Turn off the power supply to the Zb-121 adapter 2. Turn the dip switch SW2 to OFF, only on the back of the adapter 3. Disconnect any active HyperTerminal connections on the PC 4. Launch the OKI ISFP program from your PC 5. In the Port Configuration area which locates at the right side of the window, Set the Port to the right COM port that the ZigBee device is connected to 6. Choose Baud Rate 38400 7. Click Connect button 8. A Flash Programmer message window prompts. It displays: 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 13 of 15
Apply the DC power, which serves as a reset to the adapter Click OK to close the window. 9. A Flash Programmer message window prompts. It displays: Click OK to close the window. 10. In the Writing/Comparison area, browse the image file of the firmware to program. For example, zbserial_v1.hex Click Write to Flash The status bar at the bottom of the ISFP windows displays Writing data to Flash The programming time is about four minutes depending on image file size. 11. A Flash Programmer message window prompts: 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 14 of 15
Click No to close the window 12. The programming is done. You have upgraded the firmware of the ZigBee device. 13. Click File->Exit to close the OKI ISFP program. 14. Unplug the DC power of the adapter 15. Turn the SW2 to ON position at the back of the adapter 16. Plug in the DC power of the Zb-121 adapter board and the third LED is on solid green. Your evaluation adapter board is ready. 2007 Amp ed RF, Inc. www.ampedrf.com ZEK Quick Start Guide Page 15 of 15