×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

CAN vs RS485 in high RF Envronments

CAN vs RS485 in high RF Envronments

CAN vs RS485 in high RF Envronments

(OP)
Hi,

I am trying to decide which interface to use - CAN or RS-485.   The bus will be within a high power (50kW) broadcast transmitter operating in the AM band (500 - 1800 kHz).  My main concern is the noise immunity of either standard.   Any comments or suggestions you might have to sway me either way would be helpful.  If this issue has been dealt with in a previous post please direct me to it.

Thanks

RE: CAN vs RS485 in high RF Envronments

What kind of signal do you want to send on the line ?
Frequency range, distance, error rate ?

If just inside, I would use fiber optics...

<nbucska@pcperipherals.com>

RE: CAN vs RS485 in high RF Envronments

(OP)
Just normal serial data up to 38.4 kpbs

Thanks

RE: CAN vs RS485 in high RF Envronments

(OP)
Sorry, max length of say 100 feet

RE: CAN vs RS485 in high RF Envronments

I agree with nbucska and would personally recommend fibre-optic cabling as the most robust interconnection system in this sort of noise environment.

If you want to use conventional cabling, apart from the obvious point of using fully shielded cabling, you would be advised to mount the various circuitry which will generate/use the data in totally screened boxes or compartments. The connectors should be of the type that have in-built filters in the pins so that minimal r.f gets into any of the screened boxes. Ideally you should use opto-isolators as well, to prevent ground loops between screened sections.

RE: CAN vs RS485 in high RF Envronments

cont ...
about the shielded box: The shield/connector GND must not be connected inside the box but to the outside for even
a 1/2 inch wire inside can act as a coupling loop and bring
the HF into the box...

You may want to add filter. So it can be done but I think
you will spend many times on labor what you save on the fiber parts.

<nbucska@pcperipherals.com>

RE: CAN vs RS485 in high RF Envronments

(OP)
OK, thanks guys.  I hadn't considered fibers.

RE: CAN vs RS485 in high RF Envronments

If you go with regular cabling, there is not too much difference between CAN and RS485 regarding noise immunity, it is more a matter of convenience.
Both use twisted pair and differential drivers (CAN over fiber is possible, btw.)

CAN has the protocol handling already built into the CAN engine of your micro. With RS485 you would need to define your own protocol and error handling in software, therefore CAN is a lot more convenient. It uses a 16bit CRC over the max. 8 byte long message. Of course, if you implement your own protocol in RS485 you can have 128byte messages with 32bit CRC or whatever you desire, it is just more work.

Just try CAN with completely optoisolated nodes and shielded twisted pair and proper grounding structure.

Use a CANalazyer (e.g.Kvaser) to check for errorneous messages, otherwise you won't know how good the connection is. CAN is a very robust protocol, and the CAN engine tries a number of times to get the message through. The first indication of a problem is an inexplicable connection slowness.



RE: CAN vs RS485 in high RF Envronments

(OP)
Thanks VolkerR.  Actually what we are looking at doing is a bit of a fiddle.   We are going to use our own protocol either way.  We are trying to decide which to use based purely on the merits of the electrical interface of each.  So I guess that is actually the question I am asking.  

RE: CAN vs RS485 in high RF Envronments

In that case, it doesn't really matter.
The main differences between a CAN and a RS485 transceiver:

The CAN transceiver works like a RS485 transceiver, just with a dominant '0' and a recessive '1' state. The RS485 transceiver has both states dominant, therefore only one transceiver at a time is allowed to transmit, which results in the typical RS485 master/slave bus configuration. CAN is a multi-master protocol.

(Dominant means that a transceiver is forcing the line to a certain state; any attempt of changing the state before the transceiver releases the line means short circuiting it, which is obviously not good.)

Theoretically, you can use CAN transceivers for RS485 networks (just don't mix RS485 and CAN transceivers on the same line). Likewise, you can create your own recessive/dominant bits with a RS485 transceiver, by tieing the TX line to the desired state and using the TX_enable line for signal transmission, e.g what the National DS36277 does for J1708 communication.

If you use RS485, be aware that you will have to implement all the low level protocol stuff in software, e.g.
- creating data packets from raw data,
- implementing a CRC (not a checksum) with a tested polynomal
- re-requesting errorneous data
- error handling

RS485 will also limit you to a master/slave protocol, i.e. one computer in your network will be the master that polls all the other nodes.

How many nodes will your system have?

If it is just a point to point connection between two computers, then you are actually looking for RS422, not RS485.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close