Miata Turbo Forum - Boost cars, acquire cats.

Miata Turbo Forum - Boost cars, acquire cats. (https://www.miataturbo.net/)
-   MSPNP (https://www.miataturbo.net/mspnp-55/)
-   -   CAN Bus Termination: AEM to MS3 (https://www.miataturbo.net/mspnp-55/can-bus-termination-aem-ms3-98098/)

irodd 09-20-2018 12:29 PM

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".

irodd 09-21-2018 10:49 AM

Matt Cramer please help

from AEM
30-0300 manual:

https://cimg3.ibsrv.net/gimg/www.mia...1609c995c5.jpg

SpartanSV 09-21-2018 11:38 AM

You don't need the resistor.

boileralum 09-21-2018 11:45 AM

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.

irodd 09-21-2018 12:41 PM


Originally Posted by SpartanSV (Post 1502796)
You don't need the resistor.

Thank you Spartan!
Do you know the reason why the resistor is not needed?

SpartanSV 09-21-2018 12:47 PM


Originally Posted by irodd (Post 1502804)
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.

afm 09-21-2018 12:55 PM

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

irodd 09-21-2018 01:02 PM

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.

hi_im_sean 09-21-2018 03:29 PM

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.

irodd 09-21-2018 04:10 PM

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".

Jesse99James 10-31-2021 06:38 PM

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!

deezums 10-31-2021 06:57 PM

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.

https://cdn10.bigcommerce.com/s-7f2g...g?t=1457537025

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.

Jesse99James 10-31-2021 08:35 PM

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?

deezums 10-31-2021 09:15 PM

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.

Jesse99James 11-01-2021 07:25 AM

"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

deezums 11-01-2021 09:30 AM

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.

MetalMuffins 11-01-2021 11:43 AM

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.

deezums 11-01-2021 03:53 PM

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.

https://www.tek.com/-/media/sites/de...al-quality.jpg

The upper image is an unterminated canbus network, while the lower has proper termination.

Jesse99James 11-01-2021 07:52 PM

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. :sad2: I know I don't want SMD. LOL

jetskibruce 11-01-2021 10:19 PM

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.


All times are GMT -4. The time now is 03:17 PM.


© 2024 MH Sub I, LLC dba Internet Brands