Notices
RX-8 Racing Want to discuss autocrossing, road-racing and drag racing the RX-8? Bring it here. This is NOT a kills/street racing forum.

S1 CAN PIDs

Thread Tools
 
Search this Thread
 
Rate Thread
 
Old 06-04-2019, 08:39 AM
  #26  
Registered
 
SportRotary's Avatar
 
Join Date: Aug 2010
Location: Asheville, NC
Posts: 33
Likes: 0
Received 5 Likes on 5 Posts
Originally Posted by Mr. Pockets
Steering angle has got to be available via CAN.
It's in the link I shared originally, just need someone with a DSC car to confirm it.

In racecapture format, steering angle in degrees should be (CAN ID, Offset(length), formula):
1242, 0(2), x1 /10 +(-3277)

Individual wheelspeeds that I'm logging are: (these come directly from the non-DSC ABS unit, I assume the DSC unit has the same IDs and scale. Also the formula is for km/h)


Brake on/off is listed in a couple of places; 0x190 and 0x205. Looks like it should read 64 when the brake is on, and 0 when the brake is off. So in racecapture format it would be one or both of the following (CAN ID, Offset(length), formula):
400, 2(1), x1 /64 -0
517, 2(1), x1 /64 -0
Old 06-04-2019, 09:36 AM
  #27  
Registered
 
Mr. Pockets's Avatar
 
Join Date: Mar 2008
Location: Champaign, IL
Posts: 491
Received 10 Likes on 8 Posts
Originally Posted by SportRotary
It's in the link I shared originally, just need someone with a DSC car to confirm it.

In racecapture format, steering angle in degrees should be (CAN ID, Offset(length), formula):
1242, 0(2), x1 /10 +(-3277)

Individual wheelspeeds that I'm logging are: (these come directly from the non-DSC ABS unit, I assume the DSC unit has the same IDs and scale. Also the formula is for km/h)


Brake on/off is listed in a couple of places; 0x190 and 0x205. Looks like it should read 64 when the brake is on, and 0 when the brake is off. So in racecapture format it would be one or both of the following (CAN ID, Offset(length), formula):
400, 2(1), x1 /64 -0
517, 2(1), x1 /64 -0
I ask this because I'm a dummy, not because I'm being a smartass:

If the PIDs are the same between the DSC and non-DSC, then why are your CAN IDs different? Or am I logging an entirely different 'wheel speed' somehow? Honestly, I don't know. A vendor set up my PIDs for me because I couldn't figure it out.
Old 06-04-2019, 10:31 AM
  #28  
Registered
 
SportRotary's Avatar
 
Join Date: Aug 2010
Location: Asheville, NC
Posts: 33
Likes: 0
Received 5 Likes on 5 Posts
Originally Posted by Mr. Pockets
I ask this because I'm a dummy, not because I'm being a smartass:

If the PIDs are the same between the DSC and non-DSC, then why are your CAN IDs different? Or am I logging an entirely different 'wheel speed' somehow? Honestly, I don't know. A vendor set up my PIDs for me because I couldn't figure it out.
The wheel speed PIDs that I listed are the individual wheel speeds that come directly from the ABS unit (CAN ID 1200). The factory ECU takes those values and does some averaging between multiple wheels, and maybe some scaling and smoothing, before sending a 'conditioned' wheel speed back out on a different ID (CAN ID 513). This conditioned wheel speed is what is used for the speedometer and to control the electric power steering. I know this because I had to re-create this conditioned wheel speed and send it out from the racecapture to get my EPS and speedometer to work (I've got an REW swap and no factory ECU).

The individual wheel speeds are really helpful to look at in the data - you can see when you're getting wheel spin, how the diff is working, when you're getting into the ABS under braking, etc.
The following users liked this post:
Mr. Pockets (06-04-2019)
Old 06-04-2019, 11:46 AM
  #29  
Registered
iTrader: (1)
 
blu3dragon's Avatar
 
Join Date: Nov 2012
Posts: 734
Received 30 Likes on 22 Posts
Here's what I am able to log with an AIM solo on a 2004 grand touring (with traction and stability control).
I don't get any data for yaw rate, lat or long acceleration, hence I've crossed those out, but the rest give me valid data. There are more channels I can pick, but again, don't get data for.
The same channels also work for a 2010 s2 sport, except steering angle (I'm assuming that was because it didn't have traction and stability control)

TPS is the most useful to me for driver analysis. Really just seeing where the driver got on the gas and whether there is any lift or not. I would love to get brake pressure as well, but that is not available via the aim solo and I use longitudinal acceleration data as an alternative.

AIRT good to understand track conditions (higher temps result in slower laps as the engine makes less power).
MAF and AFR are helpful for tuning, or just making sure it is running safely (along with ECT).

Fuel level bounces around a lot. I have not found a good use for it, particularly since the car fuel starves in turns way before it is empty.

The following users liked this post:
Mr. Pockets (06-04-2019)
Old 06-04-2019, 12:50 PM
  #30  
Registered
 
Mr. Pockets's Avatar
 
Join Date: Mar 2008
Location: Champaign, IL
Posts: 491
Received 10 Likes on 8 Posts
Originally Posted by SportRotary
The wheel speed PIDs that I listed are the individual wheel speeds that come directly from the ABS unit (CAN ID 1200). The factory ECU takes those values and does some averaging between multiple wheels, and maybe some scaling and smoothing, before sending a 'conditioned' wheel speed back out on a different ID (CAN ID 513). This conditioned wheel speed is what is used for the speedometer and to control the electric power steering. I know this because I had to re-create this conditioned wheel speed and send it out from the racecapture to get my EPS and speedometer to work (I've got an REW swap and no factory ECU).

The individual wheel speeds are really helpful to look at in the data - you can see when you're getting wheel spin, how the diff is working, when you're getting into the ABS under braking, etc.
Yeah, I'll positively be adding individual wheel speed logging to mine. Thank you for sharing that, and for explaining the difference between them and the 'conditioned' speed.
Old 06-04-2019, 12:54 PM
  #31  
Registered
 
Mr. Pockets's Avatar
 
Join Date: Mar 2008
Location: Champaign, IL
Posts: 491
Received 10 Likes on 8 Posts
Originally Posted by blu3dragon
Here's what I am able to log with an AIM solo on a 2004 grand touring (with traction and stability control).
I don't get any data for yaw rate, lat or long acceleration, hence I've crossed those out, but the rest give me valid data. There are more channels I can pick, but again, don't get data for.
The same channels also work for a 2010 s2 sport, except steering angle (I'm assuming that was because it didn't have traction and stability control)

TPS is the most useful to me for driver analysis. Really just seeing where the driver got on the gas and whether there is any lift or not. I would love to get brake pressure as well, but that is not available via the aim solo and I use longitudinal acceleration data as an alternative.

AIRT good to understand track conditions (higher temps result in slower laps as the engine makes less power).
MAF and AFR are helpful for tuning, or just making sure it is running safely (along with ECT).

Fuel level bounces around a lot. I have not found a good use for it, particularly since the car fuel starves in turns way before it is empty.
Honestly, I just want to be able to read fuel level when the car is sitting still, or down a straight. Due to some reclassification I had to do, and by adding aero to the car, it's heavier. I'll probably go back to running it as empty as I can.

I'm sure with some packet sniffing I could find CAN fuel level. I just haven't had the time.

I agree that throttle position is super important. Lat, long and total G are the story. Throttle and brake pressure are the ones telling it. I'll be adding brake pressure to my RaceCapture sometime this season.

Thanks for your input.
Old 06-04-2019, 12:58 PM
  #32  
Registered
Thread Starter
 
RE-Vision's Avatar
 
Join Date: Apr 2018
Location: Los Angeles
Posts: 115
Received 22 Likes on 20 Posts
Wish me luck
Old 06-04-2019, 02:45 PM
  #33  
Registered
Thread Starter
 
RE-Vision's Avatar
 
Join Date: Apr 2018
Location: Los Angeles
Posts: 115
Received 22 Likes on 20 Posts
No go on the brake, but the TPS and RPM and working wonderfully. It's nice to have a real time trace.
Old 06-04-2019, 03:40 PM
  #34  
No respecter of malarkey
iTrader: (25)
 
TeamRX8's Avatar
 
Join Date: Apr 2005
Posts: 26,720
Received 2,008 Likes on 1,637 Posts
I know this works with the NC Miata saddle tank and I bought one for my RX8 to tie in with the AiM Pista dash. I’d have to go back to see what the S1 RX8 ohm limits are

ICM Fuel Sender

.
Old 06-04-2019, 10:48 PM
  #35  
Registered
 
SportRotary's Avatar
 
Join Date: Aug 2010
Location: Asheville, NC
Posts: 33
Likes: 0
Received 5 Likes on 5 Posts
Originally Posted by RE-Vision
No go on the brake, but the TPS and RPM and working wonderfully. It's nice to have a real time trace.
Try this for the brake:



I did some CAN sniffing on my car tonight and found that guy. Works perfectly for me, shows a value of 1 when the brake pedal is pressed, and 0 when it's not. As mentioned, I have a non-DSC car with no factory ECU, so YMMV. I'm surprised that I still have this data without the ECU, so I assume the brake pedal switch is read by the ABS unit directly before being output to CAN.

Also, there is some sensor reading on ID 1072 (has a little bit of noise like a typical sensor reading would). I suspect that this could be fuel level, I'll put some gas in the car while logging this ID and see if it changes sometime.
Old 06-05-2019, 10:47 AM
  #36  
Registered
Thread Starter
 
RE-Vision's Avatar
 
Join Date: Apr 2018
Location: Los Angeles
Posts: 115
Received 22 Likes on 20 Posts
Originally Posted by SportRotary
Try this for the brake:



I did some CAN sniffing on my car tonight and found that guy. Works perfectly for me, shows a value of 1 when the brake pedal is pressed, and 0 when it's not. As mentioned, I have a non-DSC car with no factory ECU, so YMMV. I'm surprised that I still have this data without the ECU, so I assume the brake pedal switch is read by the ABS unit directly before being output to CAN.

Also, there is some sensor reading on ID 1072 (has a little bit of noise like a typical sensor reading would). I suspect that this could be fuel level, I'll put some gas in the car while logging this ID and see if it changes sometime.

I tried this guy this morning - works like a charm. Thanks for doing the dirty work! I can't sniff my canbus because for whatever reason that script gimps my racecapture MK2 track.
Old 06-05-2019, 01:14 PM
  #37  
Registered
 
trackjunkie's Avatar
 
Join Date: Oct 2017
Location: South Central PA
Posts: 611
Received 60 Likes on 45 Posts
Originally Posted by blu3dragon
Here's what I am able to log with an AIM solo on a 2004 grand touring (with traction and stability control).
I don't get any data for yaw rate, lat or long acceleration, hence I've crossed those out, but the rest give me valid data. There are more channels I can pick, but again, don't get data for.
The same channels also work for a 2010 s2 sport, except steering angle (I'm assuming that was because it didn't have traction and stability control)

TPS is the most useful to me for driver analysis. Really just seeing where the driver got on the gas and whether there is any lift or not. I would love to get brake pressure as well, but that is not available via the aim solo and I use longitudinal acceleration data as an alternative.

AIRT good to understand track conditions (higher temps result in slower laps as the engine makes less power).
MAF and AFR are helpful for tuning, or just making sure it is running safely (along with ECT).

Fuel level bounces around a lot. I have not found a good use for it, particularly since the car fuel starves in turns way before it is empty.


what protocol did you use? i have 06 sport with traction and stability control but i couldnt log individual wheel speed with aim solo DL.
Old 06-05-2019, 06:01 PM
  #38  
Registered
 
Mr. Pockets's Avatar
 
Join Date: Mar 2008
Location: Champaign, IL
Posts: 491
Received 10 Likes on 8 Posts
Originally Posted by SportRotary
Try this for the brake:



I did some CAN sniffing on my car tonight and found that guy. Works perfectly for me, shows a value of 1 when the brake pedal is pressed, and 0 when it's not. As mentioned, I have a non-DSC car with no factory ECU, so YMMV. I'm surprised that I still have this data without the ECU, so I assume the brake pedal switch is read by the ABS unit directly before being output to CAN.

Also, there is some sensor reading on ID 1072 (has a little bit of noise like a typical sensor reading would). I suspect that this could be fuel level, I'll put some gas in the car while logging this ID and see if it changes sometime.
I'll give that PID a try.

I noticed you have the sample rate pretty low. At 120mph, you cover 33.5ft in .1s. I'm refining my braking within a pretty narrow window on some tracks, so 10Hz wouldn't be nearly enough. 25Hz is still 13.4ft at 120mph, but I might start there.

Thank you!

Last edited by Mr. Pockets; 06-05-2019 at 06:10 PM.
Old 06-05-2019, 07:33 PM
  #39  
Registered
 
SportRotary's Avatar
 
Join Date: Aug 2010
Location: Asheville, NC
Posts: 33
Likes: 0
Received 5 Likes on 5 Posts
Originally Posted by Mr. Pockets
I'll give that PID a try.

I noticed you have the sample rate pretty low. At 120mph, you cover 33.5ft in .1s. I'm refining my braking within a pretty narrow window on some tracks, so 10Hz wouldn't be nearly enough. 25Hz is still 13.4ft at 120mph, but I might start there.

Thank you!
Good point, I was thinking that an on/off didn't need a fast log rate - but paired with GPS data, it can show the brake initiation point really precisely.

It looks like the ABS unit is sending data from that PID @ 100hz. If I log for around 2 minutes, ID 530 shows up 12000 times. I'll set the racecapture to 50hz, no reason not to I guess.
Old 06-05-2019, 07:54 PM
  #40  
Registered
 
SportRotary's Avatar
 
Join Date: Aug 2010
Location: Asheville, NC
Posts: 33
Likes: 0
Received 5 Likes on 5 Posts
Did some more CAN sniffing tonight and managed to find the fuel level output. I started with the fuel gauge @ 60%, started logging raw CAN data, dumped a 5 gallon can of gas into the car (first dumped ~1.4 gallons, then 1.6, then the last 2 gallons). Then I pasted the CAN data into Excel and filtered out everything but the first two bytes of ID 1072.

Ignore the "bytes 0 and 1 combined" graph. I thought that this was a 2 byte value initially, but it's not.


The scale for fuel level from byte 0 seems to be "full scale." I.E. 1 byte of data can represent a number from 0 to 255. So, it looks like 255 represents a full tank, and I'm assuming 0 represents an empty tank.

I'm not 100% sure what byte 1 is, but I'm going to log it from now on and see what it does. It looks like a delta between the two sides of the fuel tank. So 255 would represent the left side full and the right side empty, 0 would be both sides at the same level. Just a guess right now. It definitely has something to do with the fuel level because it responds to me putting gas in the car.

I put it into racecapture with the following format.

FuelGal is the fuel level from byte 0, I'm confident in that. Confirmed that it's reading 15.98 gallons with this setting as my car sits.
FuelDelta is experimental. Right now I'm treating it as the difference in fuel level between the two sides of the tank; with 100% being one full, one empty, and 0% being both at the same level.

You can change the fuel level scaling to view it in different units or whatever else. Some examples:
Fuel level in %: x100 /255 +0
Fuel mass in lbs: x102.6 /255 +0
Fuel level in liters: x64 /255 +0
Basically just change the multiplier to whatever a full tank is equal to in whatever units you want.

Disclaimer: I only tested it by dumping a bit of fuel into the car in the garage. I haven't confirmed that the scale works when the tank is empty.

Last edited by SportRotary; 06-05-2019 at 10:14 PM. Reason: Learned some more and corrected some errors
The following users liked this post:
Mr. Pockets (06-06-2019)
Old 06-06-2019, 07:38 AM
  #41  
Registered
 
Mr. Pockets's Avatar
 
Join Date: Mar 2008
Location: Champaign, IL
Posts: 491
Received 10 Likes on 8 Posts
This is amazing! Thank you! If it works, it's going to be a huge help to me. Right now fuel level is total guesswork! If I can start to log how much fuel I use per session at each track, I won't pace around wondering if I should put fuel in...and then put in two gallons...and then two more...and the fuel gauge still hasn't moved, so I put in one more, and it goes to 3/4. Dammit!

Does anybody know how to set this custom PID to a dashboard display? It doesn't show up in the list for, say, the tach/predictive timing display I use 99% of the time.

Thank you again!!!
Old 06-06-2019, 08:34 AM
  #42  
Registered
 
SportRotary's Avatar
 
Join Date: Aug 2010
Location: Asheville, NC
Posts: 33
Likes: 0
Received 5 Likes on 5 Posts
Originally Posted by Mr. Pockets
This is amazing! Thank you! If it works, it's going to be a huge help to me. Right now fuel level is total guesswork! If I can start to log how much fuel I use per session at each track, I won't pace around wondering if I should put fuel in...and then put in two gallons...and then two more...and the fuel gauge still hasn't moved, so I put in one more, and it goes to 3/4. Dammit!

Does anybody know how to set this custom PID to a dashboard display? It doesn't show up in the list for, say, the tach/predictive timing display I use 99% of the time.

Thank you again!!!
Yeah I'm pretty excited about this one too. It seems to respond immediately to the fuel level changing, it's not laggy like the OEM gauge, so you should be able to key the car on and watch the fuel level in real time as you dump fuel into the car.
Old 06-06-2019, 08:55 AM
  #43  
Registered
 
Mr. Pockets's Avatar
 
Join Date: Mar 2008
Location: Champaign, IL
Posts: 491
Received 10 Likes on 8 Posts
Originally Posted by SportRotary
Yeah I'm pretty excited about this one too. It seems to respond immediately to the fuel level changing, it's not laggy like the OEM gauge, so you should be able to key the car on and watch the fuel level in real time as you dump fuel into the car.
I was able to try it real quick this morning. I couldn't help it. And it appears to work! Thank you so much! And you're right - it appears to be instantaneous.

But I do want to change it to read tenths, instead of just whole gallons. I was able to get 7.4 to read as 74. Just need to figure out how to get the decimal in the right place. I may be a software developer, but I'm an artist. I am no programmer. :p
Old 06-06-2019, 09:38 AM
  #44  
Registered
 
SportRotary's Avatar
 
Join Date: Aug 2010
Location: Asheville, NC
Posts: 33
Likes: 0
Received 5 Likes on 5 Posts
Originally Posted by Mr. Pockets
I was able to try it real quick this morning. I couldn't help it. And it appears to work! Thank you so much! And you're right - it appears to be instantaneous.

But I do want to change it to read tenths, instead of just whole gallons. I was able to get 7.4 to read as 74. Just need to figure out how to get the decimal in the right place. I may be a software developer, but I'm an artist. I am no programmer. :p
There is a field in the channel setup called "precision" that sets the number of decimal places. I set mine to 2 decimal places.
The following users liked this post:
Mr. Pockets (06-06-2019)
Old 06-06-2019, 04:33 PM
  #45  
Registered
 
Mr. Pockets's Avatar
 
Join Date: Mar 2008
Location: Champaign, IL
Posts: 491
Received 10 Likes on 8 Posts
Originally Posted by SportRotary
There is a field in the channel setup called "precision" that sets the number of decimal places. I set mine to 2 decimal places.
There it is. Thank you!
Old 06-06-2019, 07:30 PM
  #46  
What am I doing here?
 
NotAPreppie's Avatar
 
Join Date: Mar 2006
Location: 2017 Miata RF Launch Edition
Posts: 3,606
Received 649 Likes on 510 Posts
Are you going to tell Brent how to do this since he hasn't been able to figure it out?
Old 06-06-2019, 09:11 PM
  #47  
Registered
 
Mr. Pockets's Avatar
 
Join Date: Mar 2008
Location: Champaign, IL
Posts: 491
Received 10 Likes on 8 Posts
Originally Posted by NotAPreppie
Are you going to tell Brent how to do this since he hasn't been able to figure it out?
What Brent hasn’t been able to figure out is getting OBDII PIDs to work. If we had known how to get fuel level via CAN, we would have just done that.
Old 07-12-2019, 01:38 PM
  #48  
No respecter of malarkey
iTrader: (25)
 
TeamRX8's Avatar
 
Join Date: Apr 2005
Posts: 26,720
Received 2,008 Likes on 1,637 Posts
Does anyone have the individual fuel tank level sensor readings? The fuel level sensor outputs are wired into the dash and are then calculated by the dash display computer into an output for the dash level gauge indicator. I’m pretty sure the ohm output readings for both are on the CanBus though because you can display the current reading of each one on the dash check mode (Check Code 22).
Old 07-15-2019, 09:45 AM
  #49  
Registered
 
SportRotary's Avatar
 
Join Date: Aug 2010
Location: Asheville, NC
Posts: 33
Likes: 0
Received 5 Likes on 5 Posts
Originally Posted by TeamRX8
Does anyone have the individual fuel tank level sensor readings? The fuel level sensor outputs are wired into the dash and are then calculated by the dash display computer into an output for the dash level gauge indicator. I’m pretty sure the ohm output readings for both are on the CanBus though because you can display the current reading of each one on the dash check mode (Check Code 22).
I'm almost positive that the raw sensor readings are at CAN ID 1072, bytes 1 and 2 (byte 0 is the filtered overall fuel level, I.E. the fuel gauge reading). The raw sensor readings in CAN seem to be high when the tank is empty (close to 255) and low when the tank is full (close to 0). I think byte 1 is the drivers side sensor, and byte 2 is the passenger side sensor. I haven't had a chance to do more experimentation with these yet to fully confirm them, but I'm mostly sure that this is how it's reporting those values.
Old 07-15-2019, 10:09 AM
  #50  
No respecter of malarkey
iTrader: (25)
 
TeamRX8's Avatar
 
Join Date: Apr 2005
Posts: 26,720
Received 2,008 Likes on 1,637 Posts
No, that sounds like the overall output reading from the dash display microcomputer to the fuel level gauge. There are two individual ohm readings from each level sensor to the dash display per the Code 22 check mode. The dash reads the two signals, calculates the fuel in each side, then displays a single output to the level gauge. The two level sensor ohm readings might not be on Can, but I was thinking possibly they were since the dash display can indicate each ohm reading individually uding the Check Mode dash display procedure. Honestly it doesn’t matter now. I already figured out how to get what I need using the Iron Canyon Motorsports ICM, which converts the sensor to a 0-5V output. I’m not using the RX8 dash display going forward; AiM Pista dash tied into an Adaptronic modular ECU CanBus. Thanks just the same.


You have already rated this thread Rating: Thread Rating: 1 votes, 5.00 average.

Quick Reply: S1 CAN PIDs



All times are GMT -5. The time now is 12:25 PM.