Passing RS485 bus data between two XBee
KCmax485
Posts: 2
Hi,
I am a model railroader.My train control system uses a RS485 bus to communicate between throttles and the command station.The throttle is used to control
locomotive speed,direction and functions like headlight,bell and horn.The throttle is connected to the RS485 bus using din sockets on the layout and a din plug
on the throttle's wiring harness.
I would like to use two 802.15.4 XBee Series 1 modules to basically stand in for the "A" and "B" wires of the throttle's harness making the throttle wireless.
Here is a link to information regarding the RS485 bus.In the third paragraph there is a link (the word "published" in blue text) that leads to more detailed information.
http://lenzusa.com/1newsite1/XpressnetFAQ.html
My question is can this be done and if so,exactly how do I connect one XBee to the RS485 bus and the other XBee to the throttle.Could it be as simple as
connecting the "A" and "B" to the XBee Tx Data Out and RX Data In.Will it require other components like a MAX 485 chip?
I am guessing that more information will be needed to answer my question.Tell me what it is and I will try to provide it.
Thanks,
Kip
I am a model railroader.My train control system uses a RS485 bus to communicate between throttles and the command station.The throttle is used to control
locomotive speed,direction and functions like headlight,bell and horn.The throttle is connected to the RS485 bus using din sockets on the layout and a din plug
on the throttle's wiring harness.
I would like to use two 802.15.4 XBee Series 1 modules to basically stand in for the "A" and "B" wires of the throttle's harness making the throttle wireless.
Here is a link to information regarding the RS485 bus.In the third paragraph there is a link (the word "published" in blue text) that leads to more detailed information.
http://lenzusa.com/1newsite1/XpressnetFAQ.html
My question is can this be done and if so,exactly how do I connect one XBee to the RS485 bus and the other XBee to the throttle.Could it be as simple as
connecting the "A" and "B" to the XBee Tx Data Out and RX Data In.Will it require other components like a MAX 485 chip?
I am guessing that more information will be needed to answer my question.Tell me what it is and I will try to provide it.
Thanks,
Kip
Comments
A few minutes later....
Found this thread in the Digi forum -- you should have a look.
-- http://www.digi.com/support/forum/5737/xbee-rs485-adapter-802-15-4-pro
Massimo
Missed the point.
Massimo
Very doable if you know how to program. I do it all the time. You don't even need to do A & B. JUst invert the A to B on the receiving side of the line to the proper voltage. The TX enable over a wire or over the air is the same thing. The line is still being held down for the slaves to see. You would of course need a microprocessor on both sides. Not a whole lot of data transfer is taking place thou.
What do you do all the time? As far as I know, a XBee has one transmit line. What's being used to control the enable line?