Skip to content

Instantly share code, notes, and snippets.

@rizal-azalli
Last active April 29, 2021 12:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rizal-azalli/b5b7af16187f2f4d731f to your computer and use it in GitHub Desktop.
Save rizal-azalli/b5b7af16187f2f4d731f to your computer and use it in GitHub Desktop.
OBD Command Code for Mitsubishi ECU & 1GDSM
;******************************************************************
;*
;* OBD interface queries, commands
;*
;* Codes from $00 to $3d: Regular queries, return the value of the
;* variables showed in obdTable located below,
;* see each variable definition... First value in table
;* correspond to obd query code $00, increases by 1
;* for each table value
;*
;* Codes from $3e to $3f: Converted to $3d, see that obd code
;*
;* Codes from $40 to $c9: Returns what is stored in that ram address
;*
;* Codes from $ca to $ca:: Erase all fault codes and returns $00 if
;* engine not rotating. If engine is rotating, all
;* actuators/injector commands are reset and $ff
;* is returned.
;*
;* Codes from $cb to $f0: Returns what is stored in that ram address
;*
;* Codes from $f1 to $fc: Injector/actuators commands, returns $ff if
;* successfull
;*
;* $f1: Activate boost control solenoid
;* $f2: Unused in code
;* $f3: Activate egr solemoid
;* $f4: Activate fuel pressure solenoid
;* $f5: Activate purge solenoid
;* $f6: Turn on fuel pump
;* $f7: Disable injector #6 (inoperative in code)
;* $f8: Disable injector #5 (inoperative in code)
;* $f9: Disable injector #4
;* $fa: Disable injector #3
;* $fb: Disable injector #2
;* $fc: Disable injector #1
;*
;* Codes from $f1 to $ff: Special queries
;*
;* $fd: Serial link test, returns $b5 (E931) or $b7 (E932)
;* $fe: resistor strapping low word from t_strap3
;* $ff: resistor strapping high word from t_strap3
;*
;******************************************************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment