Setup Xbee with xbib-u board
download driver for xbib-u
so far I haven’t got it working with win7, but here is the instruction for winXP
http://forums.digi.com/support/forum/printthread_thread,938
Config X-CTU
go to modem configuration
Click “read”
all settings other than those listed below should be left at the default value.
usb dongle – controller
ID (PAN ID) – 777
PAN ID should be same for all xbee chips in one kit
MY (source address) – 1
controller address should be 1
CE (coordinator enable) – 1
controller should have coordinator enable bit set
A2 (coordinator association) – 6 (110b)
bit 0 – 0 – no reassign PAN ID
bit 1 – 1 – reassign channel
bit 2 – 1 – allow associate
Click write to write to central device flash
Then repeat these to set up all end devices
hub – end device
ID (PAN ID) – 777
PAN ID should be same for all xbee chips in one kit
DL (destination address low) – 1
should be set to low address byte of controller
MY (source address) – [unique address > 1]
each end device should have a unique address
I used 2 3 4 5
A1 (end device association) – 6 (0110b)
bit 0 – 0 – no reassign PAN ID
bit 1 – 1 – reassign channel
bit 2 – 1 – auto associate
bit 3 – 0 – no poll on wake
Pasted from <http://philetus.code.arc.cmu.edu/index.php?title=Set_parameters_for_zigbee_transceiver_in_each_posey_hub>
connection for xbee
Pin 1 (Vcc) – 3.3V
Pin 2 (UART data out) – connects to RX pin of arduino/serial port
Pin3(UART data in) – connects to TX pin of arduino/serial port
Pin10 (gournd)
Pin15 (associate indicator) – connects through a led and a resistor to ground
For end device, LED is steady when xbee is first plugged in. Once it finds a controller, led begins to flash.
DEBUG
Set up a PC with serial monitor (e.g. realterm) and talks to the controller xbee.
Then connect the end devices to arduino with RX, TX and 3.3V power, plus ground. In the arduino program, use Serial.write to send 1-byte data.
Data should show up in serial monitor.
COMMON MISTAKE
- Things are showing up, but not what i sent.
+ Double check baud rate. xbee has a default rate of 9600. this should be the same as that of the serial terminal.
-nothing shows up.
+make sure the serial port is set up right.
+ on serial/usb converter, lights would flash when data is received. if not, check if RX and TX is reversed.
+ sending char that has a value <30 (?) will not show up
leave a comment