MSPNP MSPNP specific Megasquirt related discussion.

CAN Bus Termination: AEM to MS3

Thread Tools
 
Search this Thread
 
Old 09-20-2018, 12:29 PM
  #1  
Junior Member
Thread Starter
iTrader: (4)
 
irodd's Avatar
 
Join Date: Apr 2014
Location: Toronto, Canada
Posts: 173
Total Cats: 16
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 05:19 PM.
irodd is offline  
Old 09-21-2018, 10:49 AM
  #2  
Junior Member
Thread Starter
iTrader: (4)
 
irodd's Avatar
 
Join Date: Apr 2014
Location: Toronto, Canada
Posts: 173
Total Cats: 16
Default

Matt Cramer please help

from AEM
30-0300 manual:

irodd is offline  
Old 09-21-2018, 11:38 AM
  #3  
Senior Member
 
SpartanSV's Avatar
 
Join Date: Apr 2017
Location: Greeley, CO
Posts: 1,225
Total Cats: 164
Default

You don't need the resistor.
SpartanSV is offline  
Old 09-21-2018, 11:45 AM
  #4  
Senior Member
iTrader: (8)
 
boileralum's Avatar
 
Join Date: Mar 2006
Location: Indianapolis, IN
Posts: 1,105
Total Cats: 229
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.
boileralum is offline  
Old 09-21-2018, 12:41 PM
  #5  
Junior Member
Thread Starter
iTrader: (4)
 
irodd's Avatar
 
Join Date: Apr 2014
Location: Toronto, Canada
Posts: 173
Total Cats: 16
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?
irodd is offline  
Old 09-21-2018, 12:47 PM
  #6  
Senior Member
 
SpartanSV's Avatar
 
Join Date: Apr 2017
Location: Greeley, CO
Posts: 1,225
Total Cats: 164
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.
SpartanSV is offline  
Old 09-21-2018, 12:55 PM
  #7  
afm
Senior Member
iTrader: (3)
 
afm's Avatar
 
Join Date: Nov 2015
Location: Berkeley, CA
Posts: 981
Total Cats: 508
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
afm is offline  
Old 09-21-2018, 01:02 PM
  #8  
Junior Member
Thread Starter
iTrader: (4)
 
irodd's Avatar
 
Join Date: Apr 2014
Location: Toronto, Canada
Posts: 173
Total Cats: 16
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.
irodd is offline  
Old 09-21-2018, 03:29 PM
  #9  
SadFab CEO
iTrader: (3)
 
hi_im_sean's Avatar
 
Join Date: Sep 2012
Location: your mom's house phoenix, AZ
Posts: 4,560
Total Cats: 1,142
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.
hi_im_sean is offline  
Old 09-21-2018, 04:10 PM
  #10  
Junior Member
Thread Starter
iTrader: (4)
 
irodd's Avatar
 
Join Date: Apr 2014
Location: Toronto, Canada
Posts: 173
Total Cats: 16
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 05:19 PM.
irodd is offline  
Old 10-31-2021, 06:38 PM
  #11  
Junior Member
 
Jesse99James's Avatar
 
Join Date: Jun 2010
Location: Minneapolis, MN
Posts: 247
Total Cats: 37
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!
Jesse99James is offline  
Old 10-31-2021, 06:57 PM
  #12  
Elite Member
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
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.
deezums is offline  
Old 10-31-2021, 08:35 PM
  #13  
Junior Member
 
Jesse99James's Avatar
 
Join Date: Jun 2010
Location: Minneapolis, MN
Posts: 247
Total Cats: 37
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?
Jesse99James is offline  
Old 10-31-2021, 09:15 PM
  #14  
Elite Member
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
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.
deezums is offline  
Old 11-01-2021, 07:25 AM
  #15  
Junior Member
 
Jesse99James's Avatar
 
Join Date: Jun 2010
Location: Minneapolis, MN
Posts: 247
Total Cats: 37
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
Jesse99James is offline  
Old 11-01-2021, 09:30 AM
  #16  
Elite Member
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
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.
deezums is offline  
Old 11-01-2021, 11:43 AM
  #17  
Junior Member
iTrader: (1)
 
MetalMuffins's Avatar
 
Join Date: Feb 2016
Location: Halifax, NS
Posts: 251
Total Cats: 34
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.
MetalMuffins is offline  
Old 11-01-2021, 03:53 PM
  #18  
Elite Member
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
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.
deezums is offline  
Old 11-01-2021, 07:52 PM
  #19  
Junior Member
 
Jesse99James's Avatar
 
Join Date: Jun 2010
Location: Minneapolis, MN
Posts: 247
Total Cats: 37
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 08:47 PM. Reason: change of plans...
Jesse99James is offline  
Old 11-01-2021, 10:19 PM
  #20  
Newb
 
jetskibruce's Avatar
 
Join Date: May 2011
Location: TampaBay FL
Posts: 38
Total Cats: 2
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.
jetskibruce is offline  
Reply
Leave a poscat -1 Leave a negcat


Quick Reply: CAN Bus Termination: AEM to MS3



All times are GMT -4. The time now is 11:26 PM.