Parallax Serial Terminal and cycle the power to your
circuit. You should see the Propeller boot up and start
looking for a ZigBee Home Automation network to join as
shown in Figure 10. The two letter hex codes are what the
XBee’s AI (Association Indication) parameter is reporting.
Table 5 is from page 148 of the XBee/XBee-PRO ZB SMT
RF Modules documentation and it details the two letter
hex codes. What you should see
are the hex numbers 0xFF and
0x23 repeated over and over.
The XBee radio will look for
a network to join that matches its
security settings. Every time you
see “FF” displayed on the screen, it is searching on a new
channel; “ 23” means it found a valid coordinator but it is
not allowing it to join at this time. To allow our device to
join, we have to open the network for joining.
Proceed to the next step to join the Smart Things
Step 4) Connect to SmartThings.
If you haven’t set up your Smart Things hub and
downloaded their smartphone app, you need to do
From your smartphone, open the Smart Things
app (Figure 11) and go to the Marketplace; scroll
until you see “Connect New Device” as shown in
Figure 12. Tap on “Connect New Device” to tell
Smart Things to open the network and let new devices
join. After a few minutes, you should see the WeMo
Bulb pop up on the bottom part of your
smartphone’s screen (Figure 12). We are
impersonating that device and you can tap to
configure it and change its name to “My LED” or just
tap “Done” to accept the defaults.
Back on your Parallax Serial Terminal screen, you
will notice that ZigBee packets are starting to flow as
shown in Figure 13. Your device has joined the
Smart Things Home Automation network and now
can be controlled with your smartphone.
Find your WeMo Bulb or, in our case, “My LED”
in your things listing from the dashboard, and tap on
the icon to turn the LED on and off.
42 January 2016
0x00 Successfully formed or joined a network. (Coordinators form a network; routers and end devices join a network.)
0x21 Scan found no PA.
0x22 Scan found no valid PANs based on current SC and ID settings.
0x23 Valid coordinator or routers found, but they are not allowing joining (NJ expired).
0x24 No joinable beacons were found.
0x25 Unexpected state; node should not be attempting to join at this time.
0x27 Node joining attempt failed (typically due to incompatible security settings).
0x2A Coordinator start attempt failed 0x2B — checking for an existing coordinator.
0x2C Attempt to leave the network failed 0xAB — attempted to join a device that did not respond.
0xAC Secure join error — network security key received unsecured.
0xAD Secure join error — network security key not received.
0xAF Secure join error — joining device does not have the right preconfigured link key.
0xFF Scanning for a ZigBee network (routers and end devices).