AEM Infinity CAN channel mapping script

Discussions on CAN mapping for ECUs, sensors, PDMs, and more.
kijones
Posts: 32
Joined: Thu Jul 27, 2017 3:21 pm
Location: Colorado

Post by kijones »

It is connected to CAN 1

brentp
Site Admin
Posts: 6275
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

So the first CAN bus. That seems to correlate with the '0' you have in the script as well - you must be using the default script, as-is.

As you can see, the script seems to show that it's not receiving any data at all.

You might want to double check the connections and the settings in the AEM system to verify it's broadcasting correctly.

It also looks like it's setting the baud rate to 500K - is termination is enabled? How about if termination is disabled?

Are the AEM and the RCP the only two devices on that CAN bus?

You said you had a separate script that was correctly mapping the data - does that still work?
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

kijones
Posts: 32
Joined: Thu Jul 27, 2017 3:21 pm
Location: Colorado

Post by kijones »

Termination was enabled

AEM and RCP are directly tied together and the only thing on the CAN network

The script I used was this one:
https://wiki.autosportlabs.com/AEM_Infinity_6H

I reset the firmware, then loaded the script for the AEM and the can channels in the script work again, with both termination enabled and disabled.
Attachments
Capture.JPG
Capture.JPG (85.72 KiB) Viewed 2236 times

kijones
Posts: 32
Joined: Thu Jul 27, 2017 3:21 pm
Location: Colorado

Post by kijones »

well not sure how to explain it but it all works, except steering.. which may just be an issue with the way the OEM BMW steering angle sensor is with the AEM.

I reset firmware, then ran known good script and those few channels started.

Then i tried to turn on the custom channels but the overlapping channels were making the data fluctuate badly.

I the reloaded the firmware, made sure to clear script and turned on all my custom channels again... and boom. They all showed up and are working.

Not sure how, but I will take it.
Attachments
Capture.JPG
Capture.JPG (118.38 KiB) Viewed 2235 times

brentp
Site Admin
Posts: 6275
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Glad it seems to be working. Are you using the E46 style steering angle sensor? Is that feeding directly into the same CAN bus that the AEM is using?
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

kijones
Posts: 32
Joined: Thu Jul 27, 2017 3:21 pm
Location: Colorado

Post by kijones »

Yes, using the OEM Sensor + The plug and play adapter for the AEM infinity.

brentp
Site Admin
Posts: 6275
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

What's the plug and play adapter ? Is that for the steering angle sensor?

kijones
Posts: 32
Joined: Thu Jul 27, 2017 3:21 pm
Location: Colorado

Post by kijones »

No, the plug and play adapter is for the whole ECU harness, so there is 0 wiring for the AEM install.

IT is a specific AEM INfinity also that is made to support all the OEM BMW CAN functions.
Attachments
30-3510.jpg
30-3510.jpg (135.38 KiB) Viewed 2225 times

brentp
Site Admin
Posts: 6275
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Thanks, that's helpful :)
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

kijones
Posts: 32
Joined: Thu Jul 27, 2017 3:21 pm
Location: Colorado

Post by kijones »

LOL, makes it easier to visualise.

So, i hooked the laptop up to AEM, and opened thier tuning software and was able to verify that AEM in fact can see the stock steering senor and it is working.

Here are the screenshots from AEM, in the PDF it lists it as a 2 bit data length with 2 offset in the table. This says it is a 24bit offset with length 16. I tried using the bit mode enabled to selsct the 24(16) for the steering angle sensor but got nothing. Do i need a mask or othr offset for this type of data?
Attachments
AEM1.jpg
AEM1.jpg (215.38 KiB) Viewed 2222 times
AEM2.jpg
AEM2.jpg (160.11 KiB) Viewed 2222 times
AEM3.jpg
AEM3.jpg (195.3 KiB) Viewed 2222 times

kijones
Posts: 32
Joined: Thu Jul 27, 2017 3:21 pm
Location: Colorado

Post by kijones »

Brent,

any thoughts on how to set up the steering angle sensor with this info from AEM?

Feel like I am missing something...

kijones
Posts: 32
Joined: Thu Jul 27, 2017 3:21 pm
Location: Colorado

Post by kijones »

Update:

Got confirmation that for the e46 M3, the AEM Infinity does not output the steering angle data to the CAN.

The AEM can see the info from the stock sensor, but just does not output. I have asked to see if it is possible to add it as an output for he e46. I'll update when i have an answer.

brentp
Site Admin
Posts: 6275
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Can you simply tap into the E46 steering angle sensor data directly? That's how we do it with the standard integration.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

kijones
Posts: 32
Joined: Thu Jul 27, 2017 3:21 pm
Location: Colorado

Post by kijones »

I suppose I could manually tap it and then add it into one of the analog sensor inputs in the RCP.

Is that what you were thinking?

brentp
Site Admin
Posts: 6275
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

If you're using an E46 steering angle sensor then the output is CAN bus. If you're using something else that outputs an analog signal, then you could tap into that directly, as you described.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Post Reply