View Full Version : XBee Help

07-07-2009, 12:46 AM
I have searched through this fourm to look at the XBee topics, and found some good information, but I still can not get them to work. Breakdown, I have set them both up for 64 bit addressing DH to SH of other and DL to SL of other, put FFFF for ATMY to diable 16 bit addressing on both, and still nothing. This is my basic code to test them. Any ideas? Thanks

xb : "XBee_Object"
'gps : "GPS_IO_mini"
debug : "FullDuplexSerialPlus"
_XINFREQ = 5_000_000

'byte sats, gpsheading, speed
'long latitude, longitude, altitude

PUB main
XB.AT_Init ' Initialize for fast AT command use - 5 second delay to perform
PUB SendXB | i
repeat i from 1 to 100
waitcnt(1_000_000_0 + cnt)


07-09-2009, 10:45 AM
Is there a tutorial on XBee for the prop. I have tried everything that I could think of.


07-09-2009, 02:02 PM
If you are just trying to use them for serial com, setup the xbee with free software download from digi called X-CTU. Once you configure the device using that you can use them as regular serial link. Only issue is that you need to be able to connect your xbee to your computer, I use a usb adapter. I don't set mine up with code from the micro, so I unfortunately I won't be of any help in that matter. Anyways good luck!

07-11-2009, 09:03 PM
Was my fault correct pins were not connected to the xbee module, But a new question arises normally when I use this

debug.Str(String(27, "[2J"))
debug.Str(String(27, 91, 50, 74))

·it doesnt clear the screen.


Mike Green
07-11-2009, 09:35 PM
As far as the FullDuplexSerial driver and the xBee is concerned, the strings you're sending are just data. They have no special meaning. They're just delivered to the PC on the other end. Whatever program you're running there has to know how to interpret them for clearing the screen.

07-11-2009, 10:21 PM
Thanks Mike, I just decided to test it with parallax serial terminal, and I figured it out.