ArduinoGeneral

Xbee USB Adapter V2.0 direct Arduino connection TX not working.

userHead chad 2013-02-10 08:43:33 6087 Views3 Replies
I have 2 Xbee USB Adapters and 2 XBees (series 1)

First connection is a Mac mini -> USB cable -> Xbee USB adapter -> Xbee
Second connection is arduino nano -> Xbee USB adapter -> Xbee

I can send commands from the computer to the arduino just fine.
The problem is that i am having trouble sending commands back from the arduino to the computer.

The sketch uses the hardware serial command: Serial.println(command);
I tried preceding it with a delay(50); and it didn't make a difference.
The sketch echos the commands just fine using the arduino serial monitor.

The communication works fine both ways when unhooking the arduino and using a usb connection + arduino serial port monitor on the second connection.

It's wired up Arduino RX0 - > Adapter RX, Arduino TX1 -> Adapter TX, common ground, common 5v power.

I tried my Diecimila to see if there was a problem with the nano and got the same results.

[img]http://members.iowatelecom.net/cmdeut/connection.jpg[/img]

I'm wondering if anyone could guide me in the right direction.
2013-02-24 16:44:49 I finally figured it out. :D I ended up resetting the XBees to the defaults and then NOT using X-CTU. I used coolterm and AT commands through the DFRobot USB adapters to adjust the settings.

Below are some pics of my project.. It's a  remote web controlled robot with an IR enabled video feed. I have a nodejs server using express/serialport/socket.io running on a Mac mini to provide the web controls. The server has a usb connection to the DFRobot USB Adapter hosting the XBee pro. On the robot is the other USB Adapter and XBee connected to an Arduino nano.

[img]http://members.iowatelecom.net/cmdeut/robot1.jpg[/img]

[img]http://members.iowatelecom.net/cmdeut/robot2.jpg[/img]

userHeadPic chad
2013-02-22 22:26:49 Hi,

Please try to plug your adapter v2.0 to the computer via the Mini USB to test if it works properly.
Look forward to your reply!

Best
userHeadPic Lauren
2013-02-22 20:15:04 OK, so I ended up thinking the one of the XBees might be bad and I didn't like the range of the one-way communication that I was getting so I bought 2 XBee Pro S1 RPSMA modules.

Apparently they were not pre-configured and I am having trouble getting X-CTU to see them using the dfrobot USB Adapter V2.0. So.. I then went to Radio Shack and picked up a Seeed Studio XBee Shield v1.2. With that, X-CTU can see them only when I check enable API. I cant seem to enable any settings to get X-CTU to see them through either of the dfrobot USB Adapters. Does anyone know what function set do I need to choose for XBP24? I tried the default 802.15.4 and the USB adapter ones but that didn't seem to work. maybe its not even the functionset setting,  this is getting frustrating and expensive.. :-[ someone please help.
userHeadPic chad