PDA

View Full Version : XBee Help



bboy8012
07-07-2009, 01: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


OBJ
xb : "XBee_Object"
'gps : "GPS_IO_mini"
debug : "FullDuplexSerialPlus"
CON
_CLKMODE = XTAL1 + PLL16X
_XINFREQ = 5_000_000

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

PUB main
XB.start(7,6,0,9600)
XB.AT_Init ' Initialize for fast AT command use - 5 second delay to perform
'checkND
SendXB
PUB SendXB | i
repeat i from 1 to 100
xb.tx(i)
waitcnt(1_000_000_0 + cnt)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

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

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

electric550
07-09-2009, 03: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!

bboy8012
07-11-2009, 10: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, 10: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.

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

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔