forked from matprophet/subduino
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubduinoRealCanDefs_v10.xml
More file actions
65 lines (60 loc) · 5.12 KB
/
SubduinoRealCanDefs_v10.xml
File metadata and controls
65 lines (60 loc) · 5.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="utf-8"?>
<!-- RealDash CAN XML description file, version 2 Requires RealDash version 1.5.8 or newer -->
<RealDashCAN version="2">
<!-- baseId [optional] is added to each frame canId. -->
<!-- frames baseId="3200" -->
<frames>
<!-- PARAMETERS FOR 'frame' -->
<!-- 'id' can identifier (= baseId + id). Use 0x prefix to enter id as hexadesimal value. For example <frame id="3200"> is equal to <frame id="0x0c80"> -->
<!-- 'writeInterval' if present, this CAN frame is written to CAN bus in this interval (milliseconds) -->
<!-- 'endianess' the endianess of all frame values (big | little [default]). This is only valid if value 'length' parameter is set to at least 2 bytes. -->
<frame id="3200">
<!-- PARAMETERS FOR 'value' -->
<!-- 'targetId' links value to RealDash input, see RealDash manuals www for a complete list -->
<!-- OR -->
<!-- 'name' links value to RealDash input, input appears in 'ECU Specific' input category -->
<!-- 'units' is used for post calculations, "F", "mph", "psi", "bit" which need to be specified for dashboard conversions to work properly -->
<!-- 'offset' byte offset of the value in frame -->
<!-- 'length' value length in bytes -->
<!-- 'startbit' the index of the first bit of the value -->
<!-- 'bitcount' number of bits used by the value -->
<!-- 'endianess' the endianess of value (big | little [default]). This is only valid if 'length' parameter is set to at least 2 bytes. -->
<!-- 'rangeMin' and 'rangeMax' if 'name' is used instead of 'targetId', this is the recommended value range in RealDash editor -->
<!-- 'initialValue' if this parameter is present, its value is written to CAN after connection has been made to the CAN bus -->
<!-- 'conversion' if omitted, value is read 'as-is'. Otherwise variables 'B0', 'B1', 'B2', 'B3', 'V' and 'ID#' can be used within conversion formula, for example;
conversion="V/10" - result is incoming value / 10
conversion="B0+15*(B1-43)" - result is 'first byte + 15 * (second byte - 43)
conversion="V+ID200-74.3" - result is incoming value + 'Body Electronics->Gear' - 74.3 -->
<!-- From RealDash version 1.6.6, 'conversionABC' is an option to 'conversion' and uses A,B,C,...AA,AB,AC,...,etc format to distinquish the veriables on the reply.
This makes it easier to convert the Equation from other apps.
Example: conversion="B0+15*(B1-43)" and conversionABC="A+15*(B-43)" are the same -->
<value targetId="37" units="RPM" offset="0" length="2" conversion="V/4"></value> <!-- RPMs in slots 0 and 1-->
<value targetId="160" units=" " offset="2" length="1" conversion="V*1"></value> <!-- Left Blinker in slot 2 -->
<value targetId="161" units=" " offset="3" length="1" conversion="V*1"></value> <!-- Right Blinker in Slot 3-->
<value targetId="270" units="%" offset="4" length="1" conversion="(V-128)*0.145"></value> <!-- MRP in Slot 4 -->
<value targetId="64" units="MPH" offset="5" length="1" conversion="(V)*0.621371192"></value> <!-- Speed in Slot 5 -->
<value targetId="14" units="F" offset="6" length="1" conversion="(V-40)*1.8+32"></value> <!-- Coolant Temp in Slot 6 -->
</frame>
<frame id="3201">
<value targetId="12" units="V" offset="0" length="1" conversion="(V*0.08)"></value> <!-- Volts in slot 0 -->
<value targetId="27" units="F" offset="1" length="1" conversion="(V-40)*1.8+32"></value> <!-- IAT in slot 1 -->
<value targetId="171" units="MPH" offset="2" length="1" conversion="V*0.621371192"></value> <!-- Cruise Speed in slot 2 -->
<value targetId="0" units=" " offset="3" length="1" conversion="(V/128)*14.7"></value> <!-- AFR in slot 3 -->
<value targetId="170" units=" " offset="4" length="1" conversion="(V*0.02)*20"></value> <!-- Fuel Level in slot 4 -->
<value targetId="140" units=" " offset="5" length="1" conversion="V+1"></value> <!-- Trans Gear in slot 5 -->
<value targetId="169" units=" " offset="6" length="1" conversion="V*1"></value> <!-- Cruise Light in slot 6 -->
</frame>
<frame id="3202">
<value targetId="310" units="Miles" offset="0" length="2" conversion="(V*1.242)"></value> <!-- Odometer in slots 0 and 1 -->
<value targetId="65" units="" offset="2" length="1" conversion="(V*1)"></value> <!-- Check Engine Light in slot 2 -->
<value targetId="30" units="g/s" offset="3" length="2" conversion="V/100"></value> <!-- MAF in slots 3 and 4 -->
<value targetId="31" units="psig" offset="5" length="1" conversion="V*0.1451"></value> <!-- MAP in slot 5 -->
<value targetId="38" units="deg" offset="6" length="1" conversion="(V-128)/2"></value> <!-- Ignition Timing in slot 6 -->
</frame>
<frame id="3203">
<value targetID="157" units=" " offset="0" length="1" conversion="V*1"></value> <!-- Hi Beams in slot 0 -->
<value targetId="164" units="" offset="1" length="1" conversion="V*1"></value> <!-- Parking Brake in slot 1 -->
<value targetId="151" units="" offset="2" lenght="1" conversion="V*(100/1023)"></value> <!-- Oil Pressure in slot 2-->
</frame>
</frames>
</RealDashCAN>