Shop OBEX P1 Docs P2 Docs Learn Events
XBee Help — Parallax Forums

XBee Help

bboy8012bboy8012 Posts: 153
edited 2009-07-11 15:21 in Propeller 1
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)

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

Comments

  • bboy8012bboy8012 Posts: 153
    edited 2009-07-09 03:45
    Is there a tutorial on XBee for the prop. I have tried everything that I could think of.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • electric550electric550 Posts: 122
    edited 2009-07-09 07:02
    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!
  • bboy8012bboy8012 Posts: 153
    edited 2009-07-11 14:03
    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, "[noparse][[/noparse]2J"))
    debug.Str(String(27, 91, 50, 74))
    

    ·it doesnt clear the screen.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • Mike GreenMike Green Posts: 23,101
    edited 2009-07-11 14:35
    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.
  • bboy8012bboy8012 Posts: 153
    edited 2009-07-11 15:21
    Thanks Mike, I just decided to test it with parallax serial terminal, and I figured it out.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sign In or Register to comment.