Shop OBEX P1 Docs P2 Docs Learn Events
XBee/BasicStamp Initialization time — Parallax Forums

XBee/BasicStamp Initialization time

ccreinhartccreinhart Posts: 7
edited 2012-04-13 20:49 in Accessories
Is it normal behavior for two BOE boards to have to wait about 10 seconds prior to communicating via XBee?
Both BOE boards are configured identically.

BOE w/ BS2 processor, XBee SIP adapter, XBee Series 1

Software is Simple_Byte_Rx.bs2 and Simple_Byte_Tx.bs2 exactly as shown in the documentation for the
SIP board and copied below:

Receiver:
HIGH LED
PAUSE 1000
LOW LED
FREQOUT Buzzer, 200, 3000

' ***************** Main Loop
DO
 SERIN Rx, Baud, [State]      ' Wait for byte and accept
 IF State = 1 THEN            ' Based on value,
    HIGH LED                     ' if 1, Turn on LED
    FREQOUT Buzzer,200,3000      ' Sound buzzer
 ELSE
    LOW LED                      ' if 0, turn off LED
 ENDIF
LOOP


Transmitter
' ***************** Main Loop
DO
 State = PB                  ' Read pushbutton

 SEROUT Tx, Baud,[State]     ' Send pushbutton value as byte
 PAUSE 250                   ' short delay
LOOP

Thanks,

Craig

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2012-04-13 20:49
    I don't know what the initialization time is for the pair of xBees, but I'm not surprised that it may be several seconds. They have to initialize themselves internally. They have to find each other on one of the channels available for them to use, then they have exchange some information with each other. You'd have to check with Digi and the xBee datasheet to see how long this should take.
Sign In or Register to comment.