Miata Turbo Forum - Boost cars, acquire cats.

Miata Turbo Forum - Boost cars, acquire cats. (https://www.miataturbo.net/)
-   MEGAsquirt (https://www.miataturbo.net/megasquirt-18/)
-   -   MS3 Pro CAN Id's for Generic Sensor Inputs (https://www.miataturbo.net/megasquirt-18/ms3-pro-can-ids-generic-sensor-inputs-105161/)

MX5RACER 05-06-2021 04:00 PM

MS3 Pro CAN Id's for Generic Sensor Inputs
 
I am having an issue getting the correct CAN ID's for Generic Sensor input 1 and 2. I brought the oil pressure into Analog input 2 and set it up as generic sensor 2 with plans to use Analog input 1 as oil temp. I looked up the setting in the Megasquirt manuals and it looks like the real time broadcasting should be ID: 1533, Offset 3, Length 2, *1/10+0, but these values did not work. I reached out to DIYAutotune to ask them what the broadcast ID's were, and they gave the following settings ID: 1515, Offset 2 with no length or equation notes. Going from what I can see in the documentation, this is from the simplified Dash broadcasting, but I need the realtime broadcasting for my RaceCapture Pi Dash. Further in the documentation it talks about the realtime numbers and using a base number of 1520, group 13, offset in group 2 and size 2, which I would think would be ID 1533, offset 2, length 2, but this did not work.

Does anyone have the correct CAN settings for the generic sensor inputs?

deezums 05-06-2021 04:08 PM

The base broadcast address is 1520 by default. Generic sensors start on broadcast 13, so 1520 + 13 = 1533 or 0x5FD. All of them are two bytes, so generic sensor 1 is bytes 0-1 of 5FD. Sensor 2 is 2-3 on the same, 1535/0x5FF bites 6-7 is sensor 12.

I do not know why it would not work when configured as such. You do have it broadcasting all packets, right?


MX5RACER 05-06-2021 08:01 PM

I will verify and report back. Thanks for the confirnation.

Lokiel 05-07-2021 08:14 AM

You need to configure the data to be real-time broadcasted - only broadcast what's needed, otherwise you're flooding the CAN bus for no reason.

Have you done the following?

1. Configure Generic Sensor Inputs

Advanced Engine -> Generic Sensor Inputs
Sensors 1-8:
01: Analog in 1 FieldName:Oil Temperature Transformation:GM Calibration <-- assuming GM sensor
02: Analog In 2 Field Name:Oil Pressure Transformation:Linear 0Vvalue:-18.7 5Vvalue:168.8 <-- these are my Honeywell sensor values

2. Configure Realtime CAN data broadcasting

CAN bus/Testmodes -> CAN Realtime Data Broadcasting
Enable realtime data broadcasting over CAN:On
Base message identifier(decimal):1520 <-- this is the base broadcast address for MS data (Messsage ID 1520 contains NumSecondsEcuPoweredOn,PW1,PW2,RPM)

There are 4x pages of real-time data that can be broadcast, the other 3 can be accessed via
CAN bus/Testmodes -> CAN Realtime Data Broadcasting 2,3,4.

To broadcast generic sensor 1 and 2 data (configured as Input Sensor 1 and 2 above in Step 1):

13. sensors 1,2,3,4:5Hz <-- broadcast these values 5x per sec in CAN message ID=1520+13=1533; message contains 4x 2-byte values, sensor 1,2, 3 and 4 (sensor 3 and 4 values are not valid unless you've defined then in Step 1 above)

To realtime-broadcast other values, change their broadcast rates from "Off" to what makes sense (eg. 10Hz for positions if you have a 10Hz GPS, 1Hz for slow-changing data)

https://cimg1.ibsrv.net/gimg/www.mia...46d208c0a8.png



MX5RACER 05-08-2021 01:00 PM

None of the settings are working. I have everything enabled and I am getting values, but the values I am getting are not making any sense. If I am getting 30psi in TunerStudio, the CAN data shows something the 900 range.

stevos555 02-07-2022 11:05 AM

Did you ever figure out your issue?

@lokiel question - does it matter where analog sensors are wired into MS3 PNP ? I assume Analog 2 input cannot be broadcasted via CAN?

Lokiel 02-07-2022 06:07 PM


Originally Posted by stevos555 (Post 1617024)
Did you ever figure out your issue?

@lokiel question - does it matter where analog sensors are wired into MS3 PNP ? I assume Analog 2 input cannot be broadcasted via CAN?

"does it matter where analog sensors are wired into MS3 PNP ?":
Yes, they must be wired to a MS3 sensor input pin and sensor ground pin (temperature sensors don't care which is +ve).
You can solder wires directly to to the MS3 board's sensor input pads but then you need to ensure they won't rip off - use the plug pins.
The temperature sensor will also need a pull-up resistor (use 2490ohm if you're using a GM sensor since that's what the MS assumes in its calibration tables).
5V sensors will also require a 5V input which the MS3 pins provide.
If you've disconnected your MAF sensor, you can use that pin as input for another sensor.

"I assume Analog 2 input cannot be broadcasted via CAN?"
Why would you assume this?
My example IS using Analog2.
I use Analog2.

stevos555 02-07-2022 06:11 PM

Thanks - so my analog 2 options port is now setup for fuel pressure sensor. I was slightly confused why i can see analog 2 assignment under generic sensors but not under custom channel setup .. then i came across your post and now thinking that i can assign real time broadcasting and select the sensor 1 as my analog 2 input pin and broadcast over CAN to a CAN gauge once I get one.


All times are GMT -4. The time now is 02:28 AM.


© 2024 MH Sub I, LLC dba Internet Brands