- plug in two xbees with USB explorer boards
- connect to the xbees via serial terminal emulator
screen /dev/tty.usbserial-A8004xAX 9600
screen /dev/tty.usbserial-A8004YWG 9600
- access xbee configuration via AT commands:
+++ -> should return OK, makes the xbee listen to commands
AT -> should return OK, now we are really sure that the xbee understands commands
ATID -> PAN id, 3332 per default, (xbees send/recieve within same PAN id)
ATBD -> baud rate for wireless transfer, 3 per default, number codes mean:
0 = 1200
1 = 2400
2 = 4800
3 = 9600
4 = 19200
5 = 38400
6 = 57600
7 = 115200
-> AT (check if xbee modem is responding)
<- OK
-> ATBD (get current baud rate as above)
<- 3 (9600)
-> ATBD 4 (set baud rate to 19200)
<- OK
-> ATBD (check again)
<- 4
-> ATWR (write the baud rate change to flash)
<- OK
http://www.ladyada.net/make/xbee/ref.html
No comments:
Post a Comment