MSPNP MSPNP specific Megasquirt related discussion.

CAN Bus Termination: AEM to MS3

Thread Tools
 
Search this Thread
 
Old 09-20-2018 | 01:29 PM
  #1  
irodd's Avatar
Thread Starter
Junior Member
iTrader: (4)
 
Joined: Apr 2014
Posts: 173
Total Cats: 16
From: Toronto, Canada
Default CAN Bus Termination: AEM to MS3

Gentlemen,
Should I use 120Ohm resistor in parallel with AEM 30-0300 X-Series AFR Gauge connected to MS3Pro PNP to terminate CAN bus?
Please advise

Update:
I have received an answer from Matt Cramer, DIY support:
"The MS3Pro has a 120 ohm resistor at its end. It looks like you'll need to put one on the AEM unit as well.
Matt Cramer.DIYAutoTune Support".

Last edited by irodd; 09-22-2018 at 06:19 PM.
Old 09-21-2018 | 11:49 AM
  #2  
irodd's Avatar
Thread Starter
Junior Member
iTrader: (4)
 
Joined: Apr 2014
Posts: 173
Total Cats: 16
From: Toronto, Canada
Default

Matt Cramer please help

from AEM
30-0300 manual:

Old 09-21-2018 | 12:38 PM
  #3  
SpartanSV's Avatar
Senior Member
 
Joined: Apr 2017
Posts: 1,232
Total Cats: 169
From: Greeley, CO
Default

You don't need the resistor.
Old 09-21-2018 | 12:45 PM
  #4  
boileralum's Avatar
Senior Member
iTrader: (8)
 
Joined: Mar 2006
Posts: 1,108
Total Cats: 233
From: Indianapolis, IN
Default

I read that as needing the 120 Ohm terminating resistor since there is not one internally. Not quite apples to apples, but I am installing an AIM MXS Strada to my MSPNPPro, and I needed to enable the internal 120 Ohm resistor in the software for the MXS.
Old 09-21-2018 | 01:41 PM
  #5  
irodd's Avatar
Thread Starter
Junior Member
iTrader: (4)
 
Joined: Apr 2014
Posts: 173
Total Cats: 16
From: Toronto, Canada
Default

Originally Posted by SpartanSV
You don't need the resistor.
Thank you Spartan!
Do you know the reason why the resistor is not needed?
Old 09-21-2018 | 01:47 PM
  #6  
SpartanSV's Avatar
Senior Member
 
Joined: Apr 2017
Posts: 1,232
Total Cats: 169
From: Greeley, CO
Default

Originally Posted by irodd
Thank you Spartan!
Do you know the reason why the resistor is not needed?
Nope. All I know is that I didn't use one when connecting that exact wideband to my MS3x which is essentially a MS3pro. There's been some discussion lately about running that wideband on the MS3pro and none of those guys mentioned a resistor either.
Old 09-21-2018 | 01:55 PM
  #7  
afm's Avatar
afm
Senior Member
iTrader: (3)
 
Joined: Nov 2015
Posts: 983
Total Cats: 508
From: Berkeley, CA
Default

You should add the resistor. It might work without the resistor, but there should be a resistor. You can even buy nice connectorized 120 Ohm termination resistors so you don’t have to mess with soldering stuff into your harness.

DTM termination resistor for $5
Old 09-21-2018 | 02:02 PM
  #8  
irodd's Avatar
Thread Starter
Junior Member
iTrader: (4)
 
Joined: Apr 2014
Posts: 173
Total Cats: 16
From: Toronto, Canada
Default

I have it connected without termination resistor too, and it is still working.
but I believe the termination in CAN Bus networks is for signal quality (and some other reasons).
From my SAAB Can bus expirience - there were lot of bricked ECUs during reflashing via can bus without termination resistor.
Old 09-21-2018 | 04:29 PM
  #9  
hi_im_sean's Avatar
SadFab CEO
iTrader: (3)
 
Joined: Sep 2012
Posts: 4,560
Total Cats: 1,142
From: your mom's house phoenix, AZ
Default

That's exactly what its for, signal quality. It keeps the end of the CAN run from becoming an antenna, and makes the input impedances play nicely with whatever buffer or I/O chip is in the CAN equipment.
Old 09-21-2018 | 05:10 PM
  #10  
irodd's Avatar
Thread Starter
Junior Member
iTrader: (4)
 
Joined: Apr 2014
Posts: 173
Total Cats: 16
From: Toronto, Canada
Default

I have received an answer from Matt Cramer, DIY support:
"The MS3Pro has a 120 ohm resistor at its end. It looks like you'll need to put one on the AEM unit as well.
Matt Cramer.DIYAutoTune Support".

Last edited by irodd; 09-22-2018 at 06:19 PM.
Old 10-31-2021 | 07:38 PM
  #11  
Jesse99James's Avatar
Junior Member
 
Joined: Jun 2010
Posts: 259
Total Cats: 41
From: Minneapolis, MN
Default

I know this is old and I've searched all over but am still confused as to exactly where a terminating resistor needs to be placed. My two AEM UEGO canbus wires attach directly to the MS3Pro wires at the options connector. Matt said the MS3 has a 120 Ohm resistor so... is that not the end of the run? AEM to MS3 w/ terminating resistor?

Thanks!
Old 10-31-2021 | 07:57 PM
  #12  
deezums's Avatar
Elite Member
iTrader: (3)
 
Joined: May 2014
Posts: 3,146
Total Cats: 201
From: Kansas
Default

Think of canbus like a loop, broken at each end by the terminating resistor.

The very first and the very last thing connected to the network needs the terminating resistor. ECUs typically have a terminating resistor built in, whereas gauges do not.



Canbus is a differential signal, the state of each wire is important for determining a zero or a one. Without the termination, signals can reflect and cause issues determining those states. I say can, because it's not going to be an issue on a very short run or at lower baudrates. There are also restrictions on stub lengths, too.

When a bus is properly terminated you should be able to measure the resistance between CANL and CANH, and it should be about 60 ohms. Not always though, I use dual P mosfets for MCU toggleable termination. If you've got something that lets you set termination in software this test might not work.
Old 10-31-2021 | 09:35 PM
  #13  
Jesse99James's Avatar
Junior Member
 
Joined: Jun 2010
Posts: 259
Total Cats: 41
From: Minneapolis, MN
Default

I apologize if my answer sounds rude, I don't mean it to be...so according to AEM and Matt, an X-series UEGO owner installation onto an NA/NB Miata (NC?) needs to cut open the outer insulation to access the wires near the inline controller or gauge and add a terminating resistor across the Canbus wires? Doesn't that put the controller/gauge outside the resistor unless you add wire to each and terminate across those added wires...or does it not matter since it's all parallel? There is no canbus network and nobody has really answered the question as to how to properly accomplish the task. This thread came closest but still not quite there. Maybe I'll email AEM directly, best from the horse's mouth, right?
Old 10-31-2021 | 10:15 PM
  #14  
deezums's Avatar
Elite Member
iTrader: (3)
 
Joined: May 2014
Posts: 3,146
Total Cats: 201
From: Kansas
Default

The resistor can be outside the gauge or sensor, there's no electrical difference between that and a stub like Node B in the pic above. You could imagine moving Node X's connection on the bus to the very ends of the resistor on the right, wouldn't change a thing in function electrically.

You would not want the terminating resistor more than the longest allowable stub length away from the gauge.
Old 11-01-2021 | 08:25 AM
  #15  
Jesse99James's Avatar
Junior Member
 
Joined: Jun 2010
Posts: 259
Total Cats: 41
From: Minneapolis, MN
Default

"longest allowable stub length" What? You're talking to somebody with a Master's Degree in Violin Performance and not quite an associate degree in computer programming from 20+ years ago. I searched quickly this morning and might ask my mechanical engineering brother that designed fuse panels and wire harnesses over the last decade but he hadn't even heard/read about PID controllers so...

I have the AEM X-series guage controller (30-0300) installed in my '04 MSM. I recently purchased the inline controller so I can replace the gauge and tuck the controller up under the dash as I get closer to being properly tuned. I don't want a flashy gauge attracting attention from boy racers and thieves and it's difficult to read with the top down. I'll use MSDroid with my phone mounted at the central vents when I want to monitor AFR and other data. I am concerned about signal quality thus my questions about how/where to install the resistor. I guess I'll open the outer wire sleeve as close as I can to the controller to access the canbus wires. Then solder a resistor across them or two wires to slightly extend out from the wire cover so I can more easily insulate everything. Soldering is fine but I'd rather not totally cut the canbus wires. I don't want to cause more problems that I'm solving and many say it works fine, as does mine, without any resistor on the AEM side of the wire run.

Thanks
Old 11-01-2021 | 10:30 AM
  #16  
deezums's Avatar
Elite Member
iTrader: (3)
 
Joined: May 2014
Posts: 3,146
Total Cats: 201
From: Kansas
Default

To keep it simple, some standard somewhere says that your termination resistor should be no more than 0.3M from the transceiver/gauge. Some other standards will say 3M, others say more yet. As you seem to know, in some cases you don't even need it. To get more complex, canbus is self clocking as well as arbitrating between transmitting nodes priority, so propagation delay can desync a node from valid data or possibly crash the whole bus if something tries talking over something else. All that means no valid data is transferred, not much else. Canbus messages have CRCs or error checking, this ain't analog.

To have it proper you should do what you describe, 120 ohm resistor between CANL and CANH, preferably within 0.3M of the gauge.

If you want to get really fancy there are lots of terminating resistor connectors, like this one...

Deutsch 2P DTM 120 Ohm Terminating Resistor

You could track down the socket and terminals, just dual crimp the wires instead of soldering. That's how I've seen some OEM's do.
Old 11-01-2021 | 12:43 PM
  #17  
MetalMuffins's Avatar
Junior Member
iTrader: (1)
 
Joined: Feb 2016
Posts: 251
Total Cats: 34
From: Halifax, NS
Default

Sorry if I'm missing something here but I've got a 99 w/ an MS3Pro, and am running an AEM 30-0300 using CAN. I've just got the CAN H/L wired straight to the board and only had to set the "29bit Megasquirt CAN Enable" to Off to make it work, no resistor aside from what I assume is on the board of the MS3Pro.
Old 11-01-2021 | 04:53 PM
  #18  
deezums's Avatar
Elite Member
iTrader: (3)
 
Joined: May 2014
Posts: 3,146
Total Cats: 201
From: Kansas
Default

If you had anything more complicated than what's probably less than 0.3M of canbus with only two transceivers it might not work. But it does, doesn't make it right, but it is what it is.

Maybe we can get Joe in here to tell us about eye patterns?

https://www.researchgate.net/figure/...fig3_224060363

Canbus "samples" the state of the lines at a fixed percentage usually, if the bus is still ringing it might not capture the proper state. The resistor helps with the ringing, really all there is to it.



The upper image is an unterminated canbus network, while the lower has proper termination.
Old 11-01-2021 | 08:52 PM
  #19  
Jesse99James's Avatar
Junior Member
 
Joined: Jun 2010
Posts: 259
Total Cats: 41
From: Minneapolis, MN
Default

Thank you very much. You've been super helpful. My gauge controller is mounted in the left side of the glove box on a modifed, adjustable mount so I can pivot it down to hide when I'm not using it. I left the wire length long, might have shortened it a little but I'm fairly certain it's at least 1M to the MS3. I'll correct this when I install the inline controller that will replace the gauge. The O2 sensor cable length is very long so it'll be easy to mount the inline controller above the driver's feet with a few wire tires. Then CANH and CANL wires will be as short as possible. Plus, installing a resistor to the controller while it's on a bench is much easier than trying to modify the gauge controller that's already mounted in my car. Now that I think about it, the 30-0300 gauge has two wire harnesses that plug into the back of the gauge. Simply unplug the one with the CANH, CANL, and power/ground wires and you can easily put a resistor very close to the gauge/controller.

Very soon my car will be parked in my garage for Winter season. I'm slowly making progress tuning the MS3 but want to minimize any signal quality issues. It looks like the first link above might be that same terminating resistor but there is a lot more information to work with. I'll try to find a matching connector and crimping sounds better than soldering. I always try to avoid permanently altering wire harnesses going so far as to buy plugs to make jumper harnesses. With the modification on the jumper harness (DRL module for one example), reverting back to the untouched OEM setup is plug and play if the modification is no longer wanted by you or a future owner.

EDIT, I looked and couldn't verify the recommended connector from the datasheet would fit. Visually it didn't look like they'd fit together and I don't see terminal data. The first link to this terminating resistor on Mouser website mentions not having to solder but I don't see how. I guess I'll buy and solder a 120 Ohm resistor in but now I have no clue which type/wattage to buy. I know I don't want SMD. LOL

Last edited by Jesse99James; 11-01-2021 at 09:47 PM. Reason: change of plans...
Old 11-01-2021 | 11:19 PM
  #20  
jetskibruce's Avatar
Newb
 
Joined: May 2011
Posts: 38
Total Cats: 2
From: TampaBay FL
Default

I would recheck the docs, I am running the ms3pnp pro and the AEM on can bus and I think they each have the resistor. It is rock solid, no errors on can bus.
Reply
Leave a poscat -1 Leave a negcat



All times are GMT -4. The time now is 06:21 AM.