0.1.2 • Published 8 years ago

obd2 v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

node-obd2

Vehicle communication and data parsing with OBD-II connector.

INSTALLATION

$ npm install obd2 --save

USAGE

See sample files in "example" direction. Need for example project:

$ npm install express
$ npm install socket.io

WARNING

Beta package, does not suggested for stable use! Stable version 1.x soon.

TESTS

  • Integrated "fake serial"
  • Usb connection ( ELM327 v1.4b )
  • Ford focus 2008 ( CAN 11 bit 500kb )
  • Bluetooth connection ( ELM327 v1.? )
  • Included example

DOCUMENTATION

Source documentation find here.

ROADMAP

  • DTC read
  • DTC clear
  • FREEZE mode read

MODE and PID Support

MODEPIDByteDescriptionMinMaxUnitSlug name
01004PIDs supported 00-20BITpidsupp0
01014Monitor status since DTCs clearedBITdtc_cnt
01022DTC that caused required freeze frame data storageBITdtcfrzf
01032Fuel system 1 and 2 statusBITfuelsys
01041Calculated LOAD Value0100%load_pct
01051Engine Coolant Temperature-40215°Ctemp
01061Short Term Fuel Trim - Bank 1,3-10099.22%shrtft13
01071Long Term Fuel Trim - Bank 1,3-10099.22%longft13
01081Short Term Fuel Trim - Bank 2,4-10099.22%shrtft24
01091Long Term Fuel Trim - Bank 2,4-10099.22%longft24
010A1Fuel Rail Pressure (gauge)0765kPafrp
010B1Intake Manifold Absolute Pressure0255kPamap
010C2Engine RPM016383.75r/mrpm
010D1Vehicle Speed Sensor0255km/hvss
010E1Ignition Timing Advance for #1 Cylinder-6463.5°sparkadv
010F1Intake Air Temperature-40215°Ciat
01102Air Flow Rate from Mass Air Flow Sensor0655.35g/smaf
01111Absolute Throttle Position0100%throttlepos
01121Commanded Secondary Air StatusBITair_stat
0113
0114
0115
0116
0117
0118
0119
011A
011B
011C1OBD requirements to which vehicle is designedBITobdsup
011D
011E
011F2Time Since Engine Start065535secruntm
01204PIDs supported 21-40BITpidsupp2
01212Distance Travelled While MIL is Activated065535kmmil_dist
01222Fuel Rail Pressure relative to manifold vacuum05177.265kPafrpm
01232Fuel Rail Pressure (diesel)0655350kPafrpd
0124
0125
0126
0127
0128
0129
012A
012B
012C1Commanded EGR0100%edr_pct
012D1EGR Error-10099.2%egr_err
012E1Commanded Evaporative Purge0100%eavp_pct
012F1Fuel Level Input0100%fuellevel
01301Number of warm-ups since diagnostic trouble codes cleared0255pcswarm_ups
01312Distance since diagnostic trouble codes cleared065535kmclr_dist
01322Evap System Vapour Pressure-81928192Paevap_vp
01331Barometric Pressure0255kPabaro
0134
0135
0136
0137
0138
0139
013A
013B
013C2Catalyst Temperature Bank 1 / Sensor 1-406513.5°Ccatemp11
013D2Catalyst Temperature Bank 2 / Sensor 1-416513.6°Ccatemp21
013E2Catalyst Temperature Bank 1 / Sensor 2-426513.7°Ccatemp12
013F2Catalyst Temperature Bank 2 / Sensor 2-436513.8°Ccatemp22
01404PIDs supported 41-60BITpidsupp4
01414Monitor status this driving cycleBITmonitorstatus
01422Control module voltage065535Vvpwr
01432Absolute Load Value025700%load_abs
01442Fuel/air Commanded Equivalence Ratio02(ratio)lambda
01451Relative Throttle Position0100%throttlerel
01461Ambient air temperature-40215°Cambient
01471Absolute Throttle Position B0100%throttleposb
01481Absolute Throttle Position C0100%throttleposc
01491Accelerator Pedal Position D0100%accpedald
014A1Accelerator Pedal Position E0100%accpedale
014B1Accelerator Pedal Position F0100%accpedalf
014C1Commanded Throttle Actuator Control0100%tac_pct
014D2Time run by the engine while MIL activated065525minmil_time
014E2Time since diagnostic trouble codes cleared065525minclr_time
014F
0150
01511Fuel TypeBITfuel_type
01521Ethanol fuel %0100%alch_pct
01532Absolute Evap system Vapor Pressure0327.675kPaevap_press_abs
01542Evap system vapor pressure-3276732768Paevap_press
0155
0156
0157
0158
0159
015A1Relative accelerator pedal position0100%accpedal_pos
015B1Hybrid battery pack remaining life0100%hybridbatt
015C1Engine oil temperature-40210°Coiltemp
015D2Fuel injection timing-210.00301.992°fuelinjection
015E2Engine fuel rate03212.75L/hfuelrate
015F
01604PIDs supported 61-80BITpidsupp6
01611Driver's demand engine percent torque-125125%demand_pct
01621Actual engine percent torque-125125%torque_pct
01632Engine reference torque065535Nmtorque
0164
0165
0166
0167
0168
0169
016A
016B
016C
016D
016E
016F
0170
0171
0172
0173
0174
0175
0176
0177
0178
0179
017A
017B
017C
017D
017E
017F
01804PIDs supported 81-A0BITpidsupp8
0181
0182
0183
0184
0185
0186
0187
01A04PIDs supported A1-C0BITpidsuppa
01C04PIDs supported C1-E0BITpidsuppc
01C3
01C4
036Requested DTCBITrequestdtc
04Clear Trouble Codes (Clear engine light)cleardtc