How to test Xbee TX & RX?

Xbee projects like the adapter, xbee tutorials, tweetawatt/wattcher, etc. purchased at Adafruit

Moderators: adafruit_support_bill, adafruit

How to test Xbee TX & RX?

Postby JamesH » Thu Jul 28, 2011 4:01 pm

I bought 2 xbee adapters from adafruit, and 2 xbee pros from mouser. Everything is soldered, and assembled. Using hyperterminal, I can ping the main menu of the xbee, but cannot enter command mode, so not big deal.

So, I loaded X-CTU, and connect the FTDI cable to the adapter for the xbee. It takes 5 or 6 tries to get the program to connect to the xbee. I try checking the API box, somtimes that works, sometimes not. It takes 5 or 6 more tries to read the configuration of the module. I changed the PAN ID to 3331, save configuration.

The Range test tab only says Timeout with data.... something like that. I was reading on digi's site that there is a way to ping other xbees, anyone have experience with this?

I loaded the "Hellow World", Goodnight Moon" sketch to arduino. The only thing that gets displayed in the serial box is "Goodnight Moon", and nothing else. If I switch the TX and RX wires, I get the same, plus a bunch of jumbled stuff, and thats it.

I tried setting up two adruinos with the same program, and I never see the RSSI led light up thats its sending or receiving anything. The ASC led it on, I have tested that power is going to the xbee. Digi documentation doesn't have practical applications, and I have had a difficult time finding information. Any troubleshooting ideas? Thanks
JamesH
 
Posts: 8
Joined: Thu Jun 30, 2011 2:35 pm

Re: How to test Xbee TX & RX?

Postby adafruit_support_bill » Thu Jul 28, 2011 4:23 pm

If you post photos of the front & back of the adapter boards we can check for any assembly problems.
User avatar
adafruit_support_bill
 
Posts: 15962
Joined: Sat Feb 07, 2009 9:11 am

Re: How to test Xbee TX & RX?

Postby JamesH » Fri Jul 29, 2011 8:24 am

Here are the pics of the assemblies. I didn't have my regulat camera, so I had to use my phones camera. Hopefully its not too blurry.
Attachments
xbee3.jpg
Back
xbee3.jpg (268.63 KiB) Viewed 3084 times
xbee2.jpg
Front
xbee2.jpg (274.83 KiB) Viewed 3084 times
xbee1.jpg
Xbee and Adapter
xbee1.jpg (252.8 KiB) Viewed 3084 times
JamesH
 
Posts: 8
Joined: Thu Jun 30, 2011 2:35 pm

Re: How to test Xbee TX & RX?

Postby adafruit_support_bill » Fri Jul 29, 2011 8:44 am

Does the XBee behave the same way plugged into either adapter? Or are most of the communication problems associated with one adapter?
User avatar
adafruit_support_bill
 
Posts: 15962
Joined: Sat Feb 07, 2009 9:11 am

Re: How to test Xbee TX & RX?

Postby JamesH » Fri Jul 29, 2011 8:50 am

Both xbees are acting the same. I tried swapping adapters, and the xbees, the the problems are consistient.
JamesH
 
Posts: 8
Joined: Thu Jun 30, 2011 2:35 pm

Re: How to test Xbee TX & RX?

Postby adafruit_support_bill » Fri Jul 29, 2011 10:39 am

Probably not an adapter problem then. The soldering looks OK.

If I switch the TX and RX wires, I get the same, plus a bunch of jumbled stuff, and thats it.

Can you post an example of the 'jumbled stuff". Could be a baud-rate mismatch.
User avatar
adafruit_support_bill
 
Posts: 15962
Joined: Sat Feb 07, 2009 9:11 am

Re: How to test Xbee TX & RX?

Postby JamesH » Fri Jul 29, 2011 3:26 pm

Here is a screen shot of what I get in Hyperterminal. I checked the baud rate in X-CTU, and its set for 9600. I know these xbees are designed to run much faster (115200?). WIll they have difficulty talking at low speeds?
Attachments
xbee4.jpg
Hyperterminal screenshot
xbee4.jpg (43.35 KiB) Viewed 3065 times
JamesH
 
Posts: 8
Joined: Thu Jun 30, 2011 2:35 pm


Re: How to test Xbee TX & RX?

Postby JamesH » Mon Aug 01, 2011 7:53 am

9600, 8 bit, no parity, 1 stop bit, no flow control.
JamesH
 
Posts: 8
Joined: Thu Jun 30, 2011 2:35 pm

Re: How to test Xbee TX & RX?

Postby adafruit_support_bill » Mon Aug 01, 2011 8:12 am

Judging from the output, I'd guess that the XBee is talking slower than that. But it is really hard to tell without a scope.

If you run the sketch several times, does the 'garbage' look more-or-less similar? That would tend to indicate a speed mismatch - as opposed to completely random noise.
User avatar
adafruit_support_bill
 
Posts: 15962
Joined: Sat Feb 07, 2009 9:11 am

Re: How to test Xbee TX & RX?

Postby JamesH » Tue Aug 02, 2011 2:51 pm

I talked with Digi's tech support. Apparently, the xbee I got is the "programmable" type. I consulted with them about making it work like a OEM version. Their answer was to put the xbee into bypass mode, and it would work.

When I did this, the jumbled garbage went away. I know I am communication to the terminal in the xbee, so the link between the arduino and the xbee should be correct.

Yet, I am still getting no indication of transmission or receive.

In the modem configutation, I set the PAN ID, but I so not see a area to set an individual serial address to each of the xbees. Am I missing something?
JamesH
 
Posts: 8
Joined: Thu Jun 30, 2011 2:35 pm

Re: How to test Xbee TX & RX?

Postby adafruit_support_bill » Tue Aug 02, 2011 3:31 pm

I set the PAN ID, but I so not see a area to set an individual serial address to each of the xbees.

The 'serial address' is whatever you connect Rx & Tx to.

If there is no RSSI light, then the modules are not talking to each other and you will see nothing on the receiver's serial line.
User avatar
adafruit_support_bill
 
Posts: 15962
Joined: Sat Feb 07, 2009 9:11 am

Re: How to test Xbee TX & RX?

Postby JamesH » Fri Aug 05, 2011 1:37 pm

In the "Hello world", goodnight moon sketch, what is the purpose of setting pin13 for the built in LED? Should the LED blink when transmitting or receiving?
JamesH
 
Posts: 8
Joined: Thu Jun 30, 2011 2:35 pm

Re: How to test Xbee TX & RX?

Postby adafruit_support_bill » Fri Aug 05, 2011 1:43 pm

Pin 13 is not written to elsewhere in the sketch. The PinMode call serves no real purpose.
User avatar
adafruit_support_bill
 
Posts: 15962
Joined: Sat Feb 07, 2009 9:11 am

Re: How to test Xbee TX & RX?

Postby JamesH » Fri Aug 19, 2011 3:25 pm

OK, an update. In order to get these to operate, they need to join a network. The network is established by the Coordinator. The coordinator sets the operating ID numbers of the xbees on the network.

The API mode is enabled, but in the bootloader, set it to bypass mode to make is kinds like OEM mode.

Then using X-CTU, the terminal to enter bypass mode, then the modem configuration settings can be accessed. Next, under the "Function Set" I changed one of the xbees to Cordinator AT, set the PAN ID, etc. One big issue is when the firmware is updated, the xbee resets back to API mode, and the AT paramaters are not send, so you have to do those manually, and wite to xbee again.

After all that, the red led indicating TX is blinking.

New problem, setting the second xbee, the firmware failed, and its bricked. I tried the power up with the reset pin closed to ground, but it does not work correctly because it does into API mode, not command mode for the firmware to write. Any suggestions around the API mode?
JamesH
 
Posts: 8
Joined: Thu Jun 30, 2011 2:35 pm


Return to XBee products from Adafruit

Who is online

Users browsing this forum: No registered users and 0 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]