Shop OBEX P1 Docs P2 Docs Learn Events
Xbee configuration question — Parallax Forums

Xbee configuration question

mhamen3mhamen3 Posts: 69
edited 2012-11-29 11:23 in Accessories
Hi,

I'm trying to get two props to communicate via xbee and I'm wondering about the xbee configuration. If the xbees are both set to their default configuration they should be able to communicate in transparent mode without changing the configuration right? So if I use the X-CTU software to restore both then plug them into my boards I should be able to send and receive signals like this:

**********************************************************
on Transmitter side
**********************************************************
PUB Transmitter
  XB.start(XB_Rx, XB_Tx, 0, Baud)
  Repeat
    XB.dec(1234)

***********************************************************
on receiving side
***********************************************************
PUB Receiver  |   Data
  XB.start(XB_Rx, XB_Tx, 0, Baud)
  Repeat
    Data = XB.RxDec

Am I correct in thinking that I don't need any configuration for transparent communcation in order for one prop to send 1234 to the other?

Comments

  • davejamesdavejames Posts: 4,047
    edited 2012-11-28 13:27
    Hi mhamen3,

    Double posts are a Forum no-no:
    http://forums.parallax.com/showthread.php?134682-Forum-Guidelines

    The sister post in the Propeller forum has been removed.
  • mhamen3mhamen3 Posts: 69
    edited 2012-11-28 13:31
    Sorry DaveJames
  • RforbesRforbes Posts: 281
    edited 2012-11-28 14:14
    mhamen3-
    PUB Transmitter 
     XB.start(XB_Rx, XB_Tx, 0, Baud)   
     Repeat     
        XB.dec(1234)
        XB.CR
    

    Adding the "xb.cr" in your transmitter code should fix you up. Oh, and also fix your receiver code:
     Data = XB.RxDec
    
    should be
    Data:= XB.RxDec
    
  • Tracy AllenTracy Allen Posts: 6,658
    edited 2012-11-29 08:24
    Just checking, do you have the series 1 (802.15.4) XBees, or series 2 (ZB, Zigbee)? What you say about functionality out of the box is true for the former, not the latter.
  • mhamen3mhamen3 Posts: 69
    edited 2012-11-29 11:23
    Thanks for the responses guys. Excuse the typos in the code, I was just trying to show a quick example. An earlier posting showing the full code for each proved too long for people to bother with. I was just questioning whether they were good to go out of the box. Thanks for the answer, Tracy.

    I got the xbees successfully transferring data and printing to the PST yesterday.
Sign In or Register to comment.