Author Topic: Does running multiple CAN buses in the same cat5 cable sound like a bad idea?  (Read 1265 times)

0 Members and 1 Guest are viewing this topic.

Offline e100Topic starter

  • Frequent Contributor
  • **
  • Posts: 566
Currently I have a CAN bus running at 20k baud that collects data from multiple sensors. Would adding adding a second CAN bus to talk to another bunch of sensors at a faster rate (using another 3 wires) be likely to cause problems?.  The two busses would have their own ground return wires, and they would only be connected together at the power supply.
 

Offline capt bullshot

  • Super Contributor
  • ***
  • Posts: 3033
  • Country: de
    • Mostly useless stuff, but nice to have: wunderkis.de
should work
Safety devices hinder evolution
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21681
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Ground return?  Presumably, on the other remaining pairs?

Just mind that you'll get a little noise / impedance between those.  That is, between the different pairs in the cable.  Nothing CAN can't handle, by a long shot, if it's wired up in the usual way. ;D

The pairs themselves should be quite good: the twist rates are different just for this sort of reason.  Other CAN buses will be jealous of the red carpet you're putting it on here. :P

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline schmitt trigger

  • Super Contributor
  • ***
  • Posts: 2222
  • Country: mx
Theory says it should work but I would still perform a simple experiment:

Run data thru one of the CAN lines, while monitoring the other in recessive state.

With a dual channel scope you should trigger from the active channel. That way, any noise that is synchronized to it you'll know is the crosstalk.
 

Offline max_torque

  • Super Contributor
  • ***
  • Posts: 1282
  • Country: gb
    • bitdynamics
As long as you run each bus through the correct pair of cables (ie the ones twisted together) then i'm sure oyu won't have an issue, especially down at just 20kbaud.

CAN gets bundled up, un shielded in much worse conditions than those existing in a Cat5 cable with CAN running on the other cables!

I guess you can't just up the baud rate, because that's the easiest option to get a higher throughput?
 

Offline linux-works

  • Super Contributor
  • ***
  • Posts: 1999
  • Country: us
    • netstuff
20k baud does not sound very fast (cars often are at 500kb).

it should work.  I'd run a test to see if any checksum errors are seen or if you get any NAKs.  try various traffic patterns using a traffic generator to see if crosstalk becomes a real issue.

but 20k is quite slow, so that's not very hard to do.

for fun, I'd try various combos of can-h and can-L on the pairs of wires; perhaps running some 'out of phase' (so to speak) may be beneficial.  testing will show.


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf