Torque

Forums

Forums

converting xgauge c...
 
Notifications
Clear all

converting xgauge codes

6 Posts
3 Users
0 Reactions
981 Views
(@crater)
Posts: 17
Eminent Member
Topic starter
 

I found some codes for xgauges for a scan gauge and I wonder how you convert these into custom pids?which info goes where?

Fuel Level (Percent)
TXD: 07E022303E
RXF: 04620530063E
RXD: 3008
MTH: 00010001FF9C
NAM: FLV

 
Posted : 18/08/2011 3:31 pm
(@dr2005k)
Posts: 149
Estimable Member
 

Here is a guide Aberk made a while back I can't find the link in the forum but I had copied it for reference.

-Road_Wx
---
Aberks guide to converting SCII to Torque
This tutorial references the following 2 PDFs;
http://www.scangauge.com/support/pdfs/XGAUGE.pdf
http://www.scangauge.com/support/pdfs/XGaugeCoding.pdf
We need to fill in the following fields on Torque
OBD2 PID
Long Name
Short Name
Min Value
Max Value
Scale Factor
Unit Type
Equation
with the following from SGII
GAUGE
TXD
RXF
RXD
MTH
NAM
NOTES
As we go through the tutorial I will use the following for an example
Engine Oil Temperature 07E0221310 046245130610 3010 00090005F05F EOT Degrees F
OBD2 PID
This field comes from the TXD of the SGII file. There are 2 flavors, CAN (controller Area Network) and the rest of the older OBD2 protocols. If it is CAN, you want to use all the characters after “07DF” or “07E0”. If it is “07E1”, then Torque will likely not work for this gauge as the ELM327 may need specific instructions to communicate the transmission control module.
For all the other protocols, you want to use all the characters after the “F1”.
Our example: 221310
Long Name
Take this value from the GAUGE field
Our example: Engine Oil Temperature
Short Name
Take this value from the NAM field
Our Example: EOT
MIN/MAX
These are really determined by the data you are gathering and can be set up after you have your equation. Torque does a pretty good job of rescaling gauges if the data over steps the range.
Scale Factor
I always leave this as 1 because we can scale in the equation if we need to. However, SGII may do some prescaling that you should be aware of before you implement your equation.
Unit Type
Take this value for the notes field
Our example: F
Equation
Now for the most complicated part.
First look at the RXD field. Don’t worry about the first 2 characters. If the second 2 characters are “08”, then you have 1 byte of data and you will only need an “A” in your equation. If the second 2 characters are “10”, then you have 2 bytes of data and you will need to start off your equation like ((A*256)+B). Don’t ask why. This isn’t a lesson in hexadecimal.
Our example: “10”-> ((A*256)+B)
Now look at the MTH field. It is separated in 3 sections. It may look like this 00090005F05F. The first 4 characters (0009 in our example) are the multiplier. These values are in hex so you must convert them to decimal. Open up the windows calculator and makes sure it is set to scientific view. Click the hex circle and enter in the first 4 characters. Then click the decimal circle. The value displayed is what you want to use in torque. Repeat this step for the second 4 characters (0005 in our example) and you will have the divisor. The final four are the trickiest. If you have an F,E,D,C,B,A,9,8 as the first character as we do in our example, then this will be a negative number. To calculate this use windows calculator and set it to HEX. Enter the value and click XOR and enter “FFFE”. Click “=”, then click the decimal circle and you will see what value you have to subtract from the equation. If there isn’t, then we will be adding this value. And you proceed the same as with the multiply and divide to the value. The last for digits for the MTH piece are “0000? which means “+0?.
Our example: 9/5-4001
The final thing to pay attn to is the RXF field. Which may look like 046245130610. Pay close attn to 0462->4-5130610. If you see a 4 here, then your data must be multiplied by 100. If you see an 8, then your data must be multiplied by 10. If it is 0, then don’t worry about this part.
Our example: *100
Final equation: ((A*256)+B)*100*(9/5)-4001
This is only a guide and not a bible. If you can’t get data for a PID it can me two things, you entered it wrong or your car doesn’t support it. Just b/c your car as a certain sensor it does NOT mean your vehicle will support the PID to get that data.
---

 
Posted : 18/08/2011 6:07 pm
 Core
(@core)
Posts: 24
Eminent Member
 

Seems that PDFs are not valid

 
Posted : 19/08/2011 2:54 pm
(@dr2005k)
Posts: 149
Estimable Member
 

Try this site for xgauge codes.

http://www.scangauge.com/support/x-gauge-commands/

Road_wx

 
Posted : 19/08/2011 6:22 pm
 Core
(@core)
Posts: 24
Eminent Member
 

Thanks.
But there is no data for Knocks 🙁

 
Posted : 19/08/2011 9:49 pm
(@crater)
Posts: 17
Eminent Member
Topic starter
 

Found some more XGauge codes, but the I suppose its a header of the txd is 0751, which wasn't listed. It also seems as though they are using rxd differently since the txd is identical for the 4 values I found, which are tire pressure. The difference in them all is the rxd, which is 3008, 3808, 4008 and 4808. Any additional guidance on converting these???

 
Posted : 21/09/2011 10:07 pm
Share:

  Follow me on twitter