ECUsim 2000 ECUsim 5100 Programming Manual PRELIMINARY
ECUsim 2000/5100 Information contained in this document is subject to change without notice. Trademarks are property of their respective owners. Copyright © 2013 OBD Solutions. All rights reserved. 2 of 13 www.obdsol.
Programming Manual Table of Contents 1.0 Introduction .................................................................................................................................................................. 4 2.0 Commands .................................................................................................................................................................... 4 2.1 Command Summary .......................................................................................
ECUsim 2000/5100 1.0 Introduction ECUsim 2000 and 5100 are software-configurable, stand-alone benchtop OBD simulators. Internally, the objects (ECUs, DTCs, PIDs, and Freeze Frames) are created dynamically at runtime, and stored in RAM. Consequently, objects can be created and deleted at will, but are lost after a software reset, or when power is removed.
Programming Manual DRA ecu_id, fault_set, dtc Add permanent DTC ● ● DRDA ecu_id, fault_set Delete all permanent DTCs ● ● DSA ecu_id, fault_set, dtc Add stored DTC ● ● DSDA ecu_id, fault_set Delete all stored DTCs ● ● P U Table 3 – ECU Commands Command Description S E ecu_id, on|off Set ECU on or off ● ● EA ecu_id Add new ECU ● ● EAF ecu_id, functional_addr Set functional address ● ● EAP ecu_id, physical_addr Set physical address ● ● EAPA ecu_id, protocol, physical_addr,
ECUsim 2000/5100 Table 5 – PID Commands Command Description PA ecu_id, pid_number, pid_data P U Add PID ● ● PAUDC ecu_id, on|off Auto update DTC count in PID 01 on or off ● ● PAUMS ecu_id, on|off Auto update MIL status in PID 01 on or off ● ● PAUS ecu_id, on|off Auto update supported PIDs on or off ● ● PD ecu_id, pid_num Delete PID ● ● PSD ecu_id, pid_num, pid_data, [offset] Set PID data ● ● 6 of 13 www.obdsol.
Programming Manual 2.2 General ECUsim Commands SF on|off Turn “Fault” mode on or off. Fault mode is off by default. Protocol # SOMM on|off Turn OBD bus monitoring on or off. OBD monitoring is on by default. SOMMT on|off Turn timestamp printing on or off. Timestamps are on by default. SOMT header, data Transmit OBD message. The message will be sent over the active protocol set by the SP command.
ECUsim 2000/5100 2.4 ECU Commands E ecu_id, on|off Enable/disable specified ECU. This allows the user to quickly remove an ECU from OBD communication, without affecting the ECU’s properties. User still has the ability to change the attributes of disabled ECUs (set VIN, add DTCs and PIDs, etc). EA ecu_id Add an ECU. This command creates a blank ECU.
Programming Manual FTD ecu_id, fault_set, frame_num Delete the DTC in the specified freeze frame. FPD ecu_id, fault_set, frame_num, pid_num Delete the specified PID FT ecu_id, fault_set, frame_num, dtc Set a specified frame’s DTC. This command is used to change an existing DTC (created by the FDA command). FPSD ecu_id, fault_set, frame_num, pid_num, pid_data Set the PID data for the specified freeze frame.
ECUsim 2000/5100 3.0 Event Messages Status message, indicates that a Fault Event was generated via the ‘Fault’ button press, or a software command. ECUsim is waiting for the OBD tester to start the 5baud ISO 9141 or ISO 14230 initialization sequence. ECUsim is waiting for the OBD tester to start the fast ISO 14230 initialization sequence. <5 BAUD INIT: OK> Detected a successful 5 baud initialization sequence.
Programming Manual 5.0 Examples 5.1 Creating a Basic ECU In this example, we will create a basic custom ECU. This ECU will use the J1850 PWM protocol and support one PID (RPM). Notes: After any reset, the simulator automatically creates default ECUs. Therefore, the first step is to delete the default ECUs. The knobs are assigned to the first three ECUs (IDs $0, $1, and $2). We want to set the RPM to a fixed value, therefore we will use the next available ID ($3).
ECUsim 2000/5100 >0100 request supported PIDs in the $01-$20 range 41 6B 10 41 00 00 18 00 01 95 >0120 request supported PIDs in the $21-$40 range 41 6B 10 41 20 00 02 00 00 5E Notice that the PAUS command encoded the existing PID ($0C), as well as the new PIDs. 5.3 Adding DTCs ECUs can have stored, pending, and permanent DTCs. A given DTC can be added to either a “no fault” or “fault” fault set. A “fault” event is generated when the user presses the “FAULT” button, or enters the SF on command.
Programming Manual Appendix A: Revision History Revision B (April 29, 2013) Fixed header and footer alignments Renamed this document to ecusim-pm.pdf Revision A (April 23, 2013) Initial release of this document Appendix B: Contact Information OBD Solutions 1819 W Rose Garden Ln Ste 3 Phoenix, AZ 85027 United States Phone: Fax: Email: Web: +1 623.434.5506 +1 623.321.1628 sales@obdsol.com www.obdsol.com ECUSIMPMB www.obdsol.