I'm having issues trying to decode a XBee API packet. I start decoding it, but I'm not sure what my actual analog data should be. Several of them look like:
The doc also says if any of the DIO lines are the first two bytes are the DIO sample. Why do I get "03 FF" or "E8 03" and sometimes "00 00" if I don't have any of the DIO lines active?
Schematic: Lilypad Temperature Sensor (pin S) --> Xbee (pin AD0)
For example using the last packet, assuming the "03" and "FF" are DIO info and ignored, my data would be: '00 00 00 00 03 DB 03 FF' Which is 64685055 in decimal, but it cant be greater than 1023 so I'm lost where my analog data is.
Any help is greatly appreciated trying to find the sensor output.
Also if there is any way to use the x-bee arduino library is helpful, I used the Series1_IoSamples but I get no output on the serial monitor.
Does anyone know what pins should be set for ssRX and ssTX when using this shield
DL = 5678
MY = 1234
P0 = 2
IU = 1
IA = 5678
AP = 2
Remote:
DL = 1234
MY = 5678
DO = 2
IR = 14
IT = 5
AP = 2
I have ATAP=2 for both XBee modules. I set it through the terminal. Does the Enable API and "Use escape characters" have to be checked in X-CTU ? Every time I check them, the setting doesn't seem to stay, even after I write the settings.
I'm starting to think that I don't have my Xbee configured correctly, or maybe that it isn't working properly (possibly I loaded the pin with too high of voltage). I get a serial output from my receiver when I turn on the transmitting Xbee, but I don't see anything that looks like analog data. I'll load up the settings and post them here and then try and change them.
Well, that was awful. I was at least getting something off of the Xbee communication this morning, but after fiddling with some things I get absolutely nothing off of them. I don't know if I fried one or what happened. I can still read/write the settings from the chips if that means anything.
I'm guessing that FF means that it is maxing out the inputs for some reason. But I don't know what the 03 means and I don't know why I'm maxing it out (I have a signal of 0.6V).
I'm just wondering why your sender and receiver are both using broadcast mode. Paired communication (MY on one matches non-zero DL on the other) is faster and more reliable.
Yes please post, I got my project working but I have an arduino at the Tx end as well as at the RX end. Not exactly what you are doing so my code might not work for you...
I have the "data" of the analog pins as "03 FF" ( hexa dec. eq. of 1023) in the data packet. But when I give a low, I am still getting it as "03 FF".
Can anyone help me with this?
I am shorting the Ground with My analog Pin 3 to give a low o/p.
Both the XBees are USB Powered.
Here are my settings:
Co-ordinator : Sensor
Channel - 0 0
Pan ID - 0 0
Destination Add High - 13a200 13a200
D. Add Low - 4049cd27 40631e01
MY ( 16 bit source ) - 0 2345
SH - 13a200 13a200
sl - 40631e01 4049cd27
mac mode - 0 0
retry - 0 0
random delay slots - 0 0
node discover time - 19 19
node discover options - 0 0
cordinator enable - 1 0
scan channels - fffe 1ffe
scan duration - 4 4
end device association - 0 0
co - ord ass - 0 0
associatoin indi - 0 0
aes encryption enable - 0 0
aes encryption key - ky ky
node identifier - CO-ORD SENSOR_1
Power level - 4 4
CCA Threshold - 2c 2c
Sleep mode - 0 0
Time before sleep - 1388 1388
Sleep cycle period - 0 0
Disassociated cylce sleep period - 3e8 3e8
Sleep options - 0 0
Interface Data Rate - 3 3
Parity - 0 0
Packetization Timeout - 3 3
Api Enable - 1 1
Pull - up registers - FF ff
7e - delimiter
00 0a - length from the next byte till the checksum
83 - operating mode
23 45 - 16 bit address
28 - rssi
00 - options
01 - samples
10 - the analog masking of the in out pins
00 - digital mask ?
03 ff - decimal equ. of 1023. analog value.
d9 - checksum
Sorry about disappearing. I go busy trying to get the other parts of the project to work and forgot.
Here's the settings for my receiving XBee:
PAN ID - 3137
DH - 0
DL - 0
MY - 0
SH - 13A200
SL - 407B7712
CD - 1
AI - 0
AES Encryption Key - KY
AP - 1
IA - FFF
DD - 10000
Unfortunately my transmitter is in the middle of the project so I can't get to it easily. I might be taking everything apart early next week and I'll try to remember to get the settings off of it if I do.