MEGAsquirt A place to collectively sort out this megasquirt gizmo

MS3 Pro CAN Id's for Generic Sensor Inputs

Thread Tools
 
Search this Thread
 
Old 05-06-2021, 04:00 PM
  #1  
Junior Member
Thread Starter
 
MX5RACER's Avatar
 
Join Date: Dec 2008
Location: Ft. Lauderdale, FL
Posts: 315
Total Cats: 9
Default 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?
MX5RACER is offline  
Old 05-06-2021, 04:08 PM
  #2  
Elite Member
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

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?

deezums is offline  
Old 05-06-2021, 08:01 PM
  #3  
Junior Member
Thread Starter
 
MX5RACER's Avatar
 
Join Date: Dec 2008
Location: Ft. Lauderdale, FL
Posts: 315
Total Cats: 9
Default

I will verify and report back. Thanks for the confirnation.
MX5RACER is offline  
Old 05-07-2021, 08:14 AM
  #4  
All-round "Good Guy"
 
Lokiel's Avatar
 
Join Date: Dec 2009
Location: Brisbane, AUSTRALIA
Posts: 994
Total Cats: 245
Default

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)





Last edited by Lokiel; 05-07-2021 at 08:28 AM.
Lokiel is offline  
Old 05-08-2021, 01:00 PM
  #5  
Junior Member
Thread Starter
 
MX5RACER's Avatar
 
Join Date: Dec 2008
Location: Ft. Lauderdale, FL
Posts: 315
Total Cats: 9
Default

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.
MX5RACER is offline  
Old 02-07-2022, 11:05 AM
  #6  
Junior Member
 
stevos555's Avatar
 
Join Date: Nov 2016
Location: Chicago
Posts: 496
Total Cats: -8
Default

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?
stevos555 is offline  
Old 02-07-2022, 06:07 PM
  #7  
All-round "Good Guy"
 
Lokiel's Avatar
 
Join Date: Dec 2009
Location: Brisbane, AUSTRALIA
Posts: 994
Total Cats: 245
Default

Originally Posted by stevos555
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.
Lokiel is offline  
Old 02-07-2022, 06:11 PM
  #8  
Junior Member
 
stevos555's Avatar
 
Join Date: Nov 2016
Location: Chicago
Posts: 496
Total Cats: -8
Default

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.
stevos555 is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
simongabriel
MEGAsquirt
8
01-11-2017 03:06 PM
patsmx5
MEGAsquirt
5
04-21-2015 02:01 PM
skidude
MEGAsquirt
16
11-20-2012 05:07 PM



Quick Reply: MS3 Pro CAN Id's for Generic Sensor Inputs



All times are GMT -4. The time now is 03:57 AM.