Remote Xbee can only receive signals, but can't send them

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

Moderators: adafruit_support_bill, adafruit

Remote Xbee can only receive signals, but can't send them

Postby ktreppendahl » Fri Jul 29, 2011 10:33 am

I've wired up two xbees to arduinos with a pair of adapter kits I bought from this website. I'm using a program called Firefly to communicated to the Arduino, but basically, Firefly writes sketches for Arduino.

Both radios are working- both lights turn on when I plug them into their breadboards, and I have been able to send signals to my remote xbee from the stationary one. I can turn a LED on the remote xbee on by pressing down a pushbutton on my stationary one. However, when I try to read signals from the remote xbee, nothing happens.

Strangely, the remote xbee and stationary xbee are only communicating when I have them wired in this fashion: the stationary xbee (the one connected to my computer) is plugged into the arduino so that the RX on the Xbee lines up with the Rx on the arduino, and the tx on the xbee lines up with the tx on the arduino. The remote xbee, however, has the RX line of the xbee plugged into the TX line of the arduino, and viceversa. If I wire the modules any differently, I can't write signals to the remote xbee at all.

I've also noticed that, on the panel of the stationary arduino, both the TX and RX lights are on. On the panel of the remote arduino, only the TX light is on. When I push the button, the light next to the L symbol on both microcontrollers lights up, as does the LED.
When I press the pushbutton on my remote arduino, nothing happens. No signal is sent. I know it isn't a wiring problem, because when I switch the modules (designate the "stationary" one as the remote one and viceversa), the same problem occurs. I can send signals, I can't read them.

If you have any advice about how to solve this issue, I'd greatly appreciate it. Thank you--
ktreppendahl
 
Posts: 3
Joined: Thu Jul 21, 2011 4:40 pm

Re: Remote Xbee can only receive signals, but can't send them

Postby adafruit_support_bill » Fri Jul 29, 2011 11:06 am

the stationary xbee (the one connected to my computer) is plugged into the arduino so that the RX on the Xbee lines up with the Rx on the arduino


And how are you communicating with the computer? If you are connected via USB, the Rx/Tx lines on the arduino are also in use by the on-board USB/Serial interface.
User avatar
adafruit_support_bill
 
Posts: 16644
Joined: Sat Feb 07, 2009 9:11 am

Re: Remote Xbee can only receive signals, but can't send them

Postby ktreppendahl » Fri Jul 29, 2011 11:17 am

Yes, I am connected via usb. I'm not sure exactly what you're suggesting though. Could you provide a little more explanation?

Thanks
ktreppendahl
 
Posts: 3
Joined: Thu Jul 21, 2011 4:40 pm

Re: Remote Xbee can only receive signals, but can't send them

Postby adafruit_support_bill » Fri Jul 29, 2011 11:54 am

The serial side of the on-board usb/serial converter is connected via the Pins 0 and 1 (Rx & Tx) of the Arduino. If you are using serial communication to the host PC at the same time you are trying to communicate with the XBee, there will be a conflict.

http://arduino.cc/en/Main/ArduinoBoardUno
The ATmega328 provides UART TTL (5V) serial communication, which is available on digital pins 0 (RX) and 1 (TX). An ATmega8U2 on the board channels this serial communication over USB and appears as a virtual com port to software on the computer.
User avatar
adafruit_support_bill
 
Posts: 16644
Joined: Sat Feb 07, 2009 9:11 am

Re: Remote Xbee can only receive signals, but can't send them

Postby ktreppendahl » Fri Jul 29, 2011 2:24 pm

What other ways are there for me to communicate between my pc and my arduino, if not with a usb connection?

Just to be clear: I have a usb connected to my arduino, powering it and communicating with it. The x-bee is connected to that arduino. Another xbee is connected to another arduino that is powered with by lithium batteries.

Thanks again for your help-
ktreppendahl
 
Posts: 3
Joined: Thu Jul 21, 2011 4:40 pm

Re: Remote Xbee can only receive signals, but can't send them

Postby adafruit_support_bill » Fri Jul 29, 2011 4:30 pm

You can communicate on any two digital pins using NewSoftSerial. The example in the XBee tutorial shows how to communicate with the PC and the XBee at the same time:
http://www.ladyada.net/make/xbee/point2point.html
User avatar
adafruit_support_bill
 
Posts: 16644
Joined: Sat Feb 07, 2009 9:11 am


Return to XBee products from Adafruit

Who is online

Users browsing this forum: No registered users and 1 guest

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


New Products [113]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
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[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


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