Simple connection with the use of XStick??
elena
Posts: 5
Hi! Please help me! I am a beginner for this XBee.
What I did...
1. Use XBee Wireless Pack.
2. Using this code and connection method.
BASIC Stamp HomeWork Board
' {$STAMP BS2}
' {$PBASIC 2.5}
' Requires remote XBee in loopback mode (DIN connected to DOUT)
Baud CON 84 ' 9600 baud non-inverted
Rx PIN 15 ' XBee DOUT
Tx PIN 14 ' XBee DIN
temp VAR Byte ' Temporary variable
PAUSE 500 ' 1/2 second pause to stabilize
DO
DEBUG CLS, "Type a character: " ' Prompt for character
DEBUGIN temp ' Catch user response
SEROUT Tx, Baud, [temp] ' Send to transmitting XBee
SERIN Rx, Baud, [temp] ' Get echo from receiving XBee
SEROUT 16, Baud, [CR, "You entered: " , temp] ' Display result
PAUSE 1500 ' Wait 1-1/2 seconds
LOOP
3. The problem is here! The example I did is with the use of USB Cable.
If I want to use this simple code, Is it possble to replace the USB cable to XStick ZB AT?
A little modification to the code is fine.
Please help! Thanks A Lot!
What I did...
1. Use XBee Wireless Pack.
2. Using this code and connection method.
BASIC Stamp HomeWork Board
' {$STAMP BS2}
' {$PBASIC 2.5}
' Requires remote XBee in loopback mode (DIN connected to DOUT)
Baud CON 84 ' 9600 baud non-inverted
Rx PIN 15 ' XBee DOUT
Tx PIN 14 ' XBee DIN
temp VAR Byte ' Temporary variable
PAUSE 500 ' 1/2 second pause to stabilize
DO
DEBUG CLS, "Type a character: " ' Prompt for character
DEBUGIN temp ' Catch user response
SEROUT Tx, Baud, [temp] ' Send to transmitting XBee
SERIN Rx, Baud, [temp] ' Get echo from receiving XBee
SEROUT 16, Baud, [CR, "You entered: " , temp] ' Display result
PAUSE 1500 ' Wait 1-1/2 seconds
LOOP
3. The problem is here! The example I did is with the use of USB Cable.
If I want to use this simple code, Is it possble to replace the USB cable to XStick ZB AT?
A little modification to the code is fine.
Please help! Thanks A Lot!
Comments
The XStick ZB and XStick ZB AT also sold by Parallax are compatible only with the XBee Zigbee modules.
Can't you use the module you have with the USB adapter?
The modules can work with the USB Cable. But i want to change the USB Cable to XStick ZB AT.
Do you have solution to let the XStick ZB AT to be communicated to the modules?
2) Buy an XStick 802.15.4 and use it with your existing XBee 802.15.4 modules.
or
1) Buy an XBee Zigbee module and use it with the XStick AB AT.
I recommend that you stay with the 802.15.4 modules until you understand a lot more about the ins and outs. There is no compatibility between the two types of modules. Is a trade-in possible?
I'll try to continue find the solution. Because my teacher know how to connect it. But he want me to find the answer out. The only clue he gave me is the things he gave me.
But anyway, thanks a lot.