coordinator
Router 1
Router 2
- ATNR
--> set the CH,channel
--> set the PAN ID
manual talble6-03. Networking Commands
Bit(Channel) 0(0x0B) -> ATCH B
0000 0000 0000 0001
pick a channel same as with PAN ID
send command("NI", "**_COORDINATOR"); -> name changed
send command("D1", byte(0x3)); -> digital pin setup
API - Application Programming Interface
ARDUINO CODE
Serial.available()>0
PROCESSING CODE
port.available()>0
int lengthMSB = port.read(); // high byte for length of packet
int lengthLSB = port.read(); // low byte for length of packet
int lengthTotal = (lengthMSB <<8) + lengthLSB; // bit shift and add for total
checksum
-> simple check to detect errors
0xFF = 255
API Identifier 0x8A
Sleep:
ATSM
ATSP : sleep period
ATST : time before sleep
ex) ATSM5, SP64, ST 14---> will wake up pin 9 high, and also every 1 sec.(1000ms) for 20ms
with micro controller -> set the one pin to detect signal to wake up xbee
without the micro controller -> set the sleep time to give interval period continuously to send radio signal
Wednesday, November 7, 2007
11072007 class
Posted by
Sun
at
9:46 AM
1 comments
Wednesday, October 24, 2007
Sleeping the XBee
ATSM
1: pin hibernate, <10uA, 13.2 ms wakeup, users pin 9
2: pin foze, <50uA, 2ms wakeup
3:
4: cyclic sleep, also < 50uA, 2ms wakeup, module must be idle
5: cyclic sleep with pin wakeup
ATSP:Sleep period(*10ms)
ATST:Time before Sleep(*1ms)
Posted by
Sun
at
12:01 PM
0
comments
Advanced AT Commands
ATWR : Write to firmware
ATRE : Factory settings REset
ATVR : Version
ATNI : Node Identifier
ATND : Node Discover
ATDN : Destination Node selection
ATDB : Signal strength in DB (RSSI)
ATGT : Guard Time
ATCT : Command mode Timeout
ATCH : set and read CHannel
ATBD : set and read BaUd rate
ATAP : set API mode
Posted by
Sun
at
11:48 AM
0
comments
Wednesday, October 17, 2007
Tuesday, October 2, 2007
Rock Paper Scissors
Arduino code for Rock Paper Scissors
http://itp.nyu.edu/~jsl398/xbee/Rock_Paper_final3.zip
Posted by
Sun
at
4:56 PM
0
comments
