CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

a 2 wire implementation

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ZZX
Guest







a 2 wire implementation
PostPosted: Thu Apr 05, 2007 12:04 am     Reply with quote

HI all,

I was going to implement to wire communication link, and thought of RS-485 as an option but the common ground will add a 3rd wire in it. Can anybody suggest a pure 2 wire long (4000 ft or more) easy implementation.

Regards,
ZZX
jbmiller



Joined: 07 Oct 2006
Posts: 73
Location: Greensville,Ontario

View user's profile Send private message

2 wire long communications
PostPosted: Thu Apr 05, 2007 5:29 am     Reply with quote

You can use a version of what I've had for about 25 years. Single wire,using leased Bell lines, over 25 miles . Not as hard as you think. Simply put have the host pump data into a HV diff opamp feeding the 'commline'. Slaves listen for their address and data. If it's them, ground the commline with an HV transistor. It's up to you to create the format of the signalling.
In my case it's never been hacked,kinda hard when it's a 3 state,22bit data stream,interlaced,bidirectional system referenced to Mother Earth. Impervious to lightning,welders,etc. Using the second line from Bell gives a backup line and ability to isolate 'lost' remotes due to wires being cut.
jay
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Thu Apr 05, 2007 5:27 pm     Reply with quote

Why do you need a common ground? It's a differential signal and should not require a common ground.

I have more than 7300 feet of half duplex rs485 running here with just two wires...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Apr 05, 2007 6:02 pm     Reply with quote

The RS-485 spec says in Figure 2 (on page 2):
Quote:

NOTE: Third conductor not required if earth
reference provided in each using equipment.

http://tscm.com/rs-485.pdf
Does your installation do that ? (I'm just curious).
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Thu Apr 05, 2007 7:50 pm     Reply with quote

Hi PCM,
I assume you're asking me that.

Yes, almost all my 19 transceiver locations have earth grounding, in part to help guard against static. These are variations of water pipe, electrical conduit or copper ground rod, power source ground etc. as required for the location.

I do have two locations without any type of true earth ground to speak of and, so far I have had no node comm failures on either of the two in the three years since installation. One is a node on the top of a 25 ft weather sensor mast where I expected nearby lightning strikes to be a problem for comms but none so far... To this node I am connecting four wires, two for DC and two for the rs485.

One other note, I use 9600 baud rather than a much higher frequency to minimize stray capacitance issues.
ZZX
Guest







PostPosted: Thu Apr 05, 2007 11:41 pm     Reply with quote

So, you mean i "can" place my two transceivers on a 1 km twisted pair, with or without true individual grounds.
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Fri Apr 06, 2007 7:06 am     Reply with quote

It should work. Make sure to have the proper termination resistors and wire twist.

I was very careful to get wire that met the RS485 "twists per foot" impedence requirements. I contacted my Belden distributor to get their recommendations on which wire to use. Telephone wire was definitely not acceptable but CAT 5 (what I am using) is an excellent choice.

Also, as PCM brought up, the earth ground for the circuits on either end, as indicated in the spec, will always help.

Figure 9 at the below link is the configuration I am using for my network.
http://www.maxim-ic.com/appnotes.cfm/appnote_number/763/

I am using the Maxim 1480/1490 15KV ESD rated, isolated drivers to protect my equipment.

All that being said, if you will need to run special wire for this link anyway, why are you limited to two wires? With four wires you can up the speed and use full duplex. Just curious...
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Fri Apr 06, 2007 7:42 am     Reply with quote

The only reason you need a ground in an RS485 system is to make sure the differential signals are within the common mode range of the receivers. If a node is really hanging in mid air or somehow deprived of contact to an electrical ground you can put a resistive divider across the A & B lines and "ground" the node to the middle. When receiving the node ground will be within 2.5V of the transmitter ground so the spec is met. When transmitting the node drivers will overwhelm the resistor divider, so it does no harm. Make the divider resistance much higher than the line impedance (like 1K + 1K) so it does not cause impedance problems.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group