User guide
BB2-7040 User Guide – Rev. 1.2 Page 55
Appendix D Gateway Setup Quick Start
There are just a couple of settings that need to be made to the ZigBee radio in the BB2-7040 to get started. One is to set
the PAN ID, and the other is to set the sleep period.
The BB2-7040 is shipped with its ZigBee radio set as a coordinator, and with PAN ID set to 0, which means it will
automatically pick a random PAN ID at power-up.
To set the PAN ID to a chosen fixed ID, go to the ZigBee Diagnostics tab set, and select Local API. Enter the command:
/ID 00 00 00 00 00 00 12 34
if you want the PAN ID to be hex 1234 (for example). The PAN ID is 8 bytes, and these are entered in the API command
window as 1 or 2 digit hex numbers separated by spaces.
After setting the PAN ID, send the /WR command to save this ID to non-volatile memory.
You will never see actually “OK” come back as noted in the command set document. What you will get is the API
equivalent, which will be the ASCII code for the command, followed by a byte of 00 if all is well. The last byte will be
an error code if it did not execute right. You need to click the Check button to see the reply at least some of the time
(most of the time on the Remote API page).
Status codes for XBee endpoint devices using API mode are as follows:
00 No error
01 Error (unspecified)
02 Invalid Command
03 Invalid Parameter
04 Remote command transmission failed.
ZigBee devices that are set to the same PAN ID as your BB2-7040, or are set to "join any" PAN, will associate
themselves with the the BB2-7040. To see what devices are known to the BB2-7040, go to the Node List tab, click
Discover, followed by Refresh a time or two (after brief delay). The addresses of the nodes will be listed (after some
longer delay if sleep periods are set long).
Important note about sleep period:
Use the /SP command to set the sleep period to a value at least as large as the longest period set in any sensor (or
endpoint). The coordinator never sleeps, but needs to know the sleep period used by endpoints so that the router knows
how long to wait for a reply from the endpoint. If you get errors, in particular error code 04 in a reply, it may indicate the
/SP setting is shorter than the endpoint's /SP setting. If the suggested setting of /SP 01 F4 has been used on an endpoint,
then /SP 01 F4 should be issued to the local radio via the Local API page. After using /SP, use the /WR command to
make the setting persistent.