AppBee and XBee issues
I'm having a pretty straight forward issues and kind of puzzled as to how to get around it.
I purchased an AppBee and an Xbee module because I wanted to setup wireless communication my BOE-BOT
and the computer. I have setup everything per the instructions in the PDF file provided on the AppBee website
but I still can't get any communication between them.
Both Xbee Modules are the same these are the following modules that I'm using
http://www.sparkfun.com/commerce/product_info.php?products_id=8742
This is the USB to Xbee board that I'm using
http://www.sparkfun.com/commerce/product_info.php?products_id=8687
Lastly is the AppBee board for the BOE.
I have these two modules setup to communicate through an SSC-32 board so I'm pretty sure there setup properly.
Not sure where to go from here any help would be greatly appreciated. If theirs any other info needed I will gladly
provide it.
I purchased an AppBee and an Xbee module because I wanted to setup wireless communication my BOE-BOT
and the computer. I have setup everything per the instructions in the PDF file provided on the AppBee website
but I still can't get any communication between them.
Both Xbee Modules are the same these are the following modules that I'm using
http://www.sparkfun.com/commerce/product_info.php?products_id=8742
This is the USB to Xbee board that I'm using
http://www.sparkfun.com/commerce/product_info.php?products_id=8687
Lastly is the AppBee board for the BOE.
I have these two modules setup to communicate through an SSC-32 board so I'm pretty sure there setup properly.
Not sure where to go from here any help would be greatly appreciated. If theirs any other info needed I will gladly
provide it.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Post Edited (Franklin) : 2/20/2009 4:32:46 AM GMT
As far as the code I haven't used anything other then some of the simple programs that have been introduced in the BOE-Bot manual.
I'm still very new to the BS2 so if there was a specific program to run I didn't know.
Other then trying to run a program I was using the Basic Stamp Editors Identify feature to try and see if there was a connection and
no go on that.
You stated that "All of them are configured the same as well."
As Franklin said, at least one Xbee has to be configured as a coordinator and the others as router/endusers.
The coordinator is usually attached to the PC.
You might also want to review the instructions that I have attached below.
Just a thought.
Regards,
TCIII
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If you are going to send·a Robot·to save the world, you·better make sure it likes it the way it is!
Post Edited (Tom C) : 2/20/2009 12:38:48 PM GMT
I wonder if the "SSC32 board" is the problem. What is that? You should be able to just connect to one XBee through the USB/XBee board, and communicate through a terminal program (either a standalone or the XCTU software, which includes a terminal program). If you can use either of those pieces of software to get the XBee to respond to "+++" and commands like "ATMY", then you're fine on that end. Make sure you're using the right Baud rate and so on. Then connecting the other XBee to a Stamp as per the Selmaware instructions .pdf and running the programs there should get you the appropriate characters on your terminal window.
When you run a program on the Stamp that's supposed to transmit, does the red TX led on the AppBee light up? If there's an led on the receiver XBee's board, does that light up in response?
The SSC-32 board is a servo control board that also uses a serial connection, which I replaced by using two Xbees.
http://www.lynxmotion.com/Product.aspx?productID=395&CategoryID=52
I'm not currently using that in this loop I was just mentioned it so that everyone would know that I have gotten two Xbees to
communicate together.
When I plug the AppBee into the BOE board and turn it on the RX red light does turn on. But when I try to transmit something from the
computer nothing happens.
Iv gone in and checked that the Baudrate is set the same on both ends which is 115200 per the Xbee Spec.
When I try to run a program from the Basic Stamp Editor nothing happens all I get is No Basic Stamp found.
Are you trying to download (or is it upload? whatever...) a program to the Stamp on the BOE? I don't think that's going to work, for reasons that I'm sure someone else will explain (someone who understands them*). If you're simply trying to send data, I'd suggest a much slower Baudrate. If you're using a BS2, for example, the Stamp manual says something about even 9600 being kinda 'iffy' due to the lack of a buffer. If you're just controlling a robot, a slow speed should be fine.
* See Mike Green's message below. That's what I would have said, if I'd known what I was talking about.
Post Edited (sylvie369) : 2/20/2009 10:22:06 PM GMT
I have even tried setting the baud rate to 9600 and nothing. Still getting no Basic stamp found.
I basically got this setup in hopes of removing the USB tether at least that's what I thought this would do.
You MAY be able to program the BOE from the XBee if you find another way to transmit (ignore the fact the thing attached isn't reporting to be a BS2 chip), and use a low enough Baud rate. That would likely mean writing something custom or modifying something open source. It could be a much larger task than you were expecting.
A solution that might work for your purposes would be write/use something like FEMTO-Basic (which is for the Propeller, but something like it could be created in PBasic).
You can't use a wireless link to download to a Stamp. The timing is too tight for it to work. The xBee (and Bluetooth) packetize their data. Then assemble bits and pieces of messages into a buffer. When the buffer is full or a specified timeout occurs, the buffer gets transmitted. The receiver parcels the data out as needed. This works pretty well and mostly appears as if you have a wired serial connection between the two ends, but the timing is off a little, enough to cause errors if you try to do a download. The only fix for it is to have a smart receiver that receives the whole program to be downloaded, then pretends to be a PC to your Stamp. This was done once for a Bluetooth interface that Parallax sold for a while, but is no longer available.
So what exactly can I still get out of this AppBee Board? Not sure what to do with it now as it
doesn't do what I originally thought it would do.
The tether is only needed while programming. Once it's out and about, the XBee can be used to send "turn left" "turn right" etc. given you write your program to read in the instructions and execute them. Moreover, XBee is two way communication, so you can get feedback from the bot.
What was your original idea? There may still be a way of doing it.
and thought it would be nifty to visually see the difference in distance as you change the pulse width as opposed to making markings on the wheels
like indicated in the book. Uploading programs to the BS2 wirelessly would have been nice.
Ultimately what I would like to do at some point is use the BOE-BOT as a basic platform which I can build on top of and eventually control remotely.
The AppBee seemed like a perfect solution to this. But it looks like I didn't do quiet enough research into it. I'm still very new at this especially the
BS2.
You can do exactly what you wanted to do with the hardware you already have, and more elegantly than your original plan. I assume that the program you have that changes pulsewidth through the Debug window doesn't reload a new program each time you want to change it, right? You do the same thing, but using a terminal window and XBees.
Store the pulse widths in variable, then run a loop like the following psuedo code:
Then open hyperterm (insalled as part of Windows) and start typeing in servo values.
Actually, you can even reuse the code you already have with minor ajustments. Just be sure to use hyperterm or other serial terminal program to talk to BOE instead of trying to upload using the Basic Stamp tool.
I don't seem to have hyperterm installed on my machine (Vista 64). Does the debug terminal
work for this at all or is that no go as well?
Thanks a ton for all the help from everyone!