Hey guys.
So I have an Xbee, and I'd like to send it data over UART from two different sources. The first is a microcontroller, the second is a USB connection to my computer (I'm using a FT232RL as the USB-->UART interface for the computer hookup). Both sources should be able to transmit data to the Xbee over UART.
My circuit, more or less (i left out a lot, but you get the idea), looks like this:
If I disconnect the TXD and RXD lines from the microcontroller and try to send the Xbee data over UART from the computer using the FT232RL, it works perfectly. The data sends to the Xbee and all is well.
However, the problem arises when both the TXD and RXD lines are connected from both sources to the Xbee at the same time, as shown in the diagram above. When I connect both sources, the microcontroller seems to work properly, but the FT232RL does not. The microcontroller can still send it's data to the Xbee correctly. But the FT232RL can't seem to send data to the Xbee; it just doesn't seem to work.
EDIT: according to this http://www.sparkfun.com/tutorials/224 it seems like I must have some kind of "bus contention" going on, but I'm not sure how to solve it. The comments try to explain a work-around, but I don't really get it.
Please help =)
So I have an Xbee, and I'd like to send it data over UART from two different sources. The first is a microcontroller, the second is a USB connection to my computer (I'm using a FT232RL as the USB-->UART interface for the computer hookup). Both sources should be able to transmit data to the Xbee over UART.
My circuit, more or less (i left out a lot, but you get the idea), looks like this:
If I disconnect the TXD and RXD lines from the microcontroller and try to send the Xbee data over UART from the computer using the FT232RL, it works perfectly. The data sends to the Xbee and all is well.
However, the problem arises when both the TXD and RXD lines are connected from both sources to the Xbee at the same time, as shown in the diagram above. When I connect both sources, the microcontroller seems to work properly, but the FT232RL does not. The microcontroller can still send it's data to the Xbee correctly. But the FT232RL can't seem to send data to the Xbee; it just doesn't seem to work.
EDIT: according to this http://www.sparkfun.com/tutorials/224 it seems like I must have some kind of "bus contention" going on, but I'm not sure how to solve it. The comments try to explain a work-around, but I don't really get it.
Please help =)
Last edited: