7.3.1. The controller of interface of the personal computer to onboard system of self-diagnostics of OBD II under protocols of the SAE standards (PWM and VPW) and ISO 9141-2
|
To the VPW standard models of production of the GM company meet, the PWM standard - Ford, ISO 9141-2 - Asian and European models. |
General data
The considered device represents the microcontroller executed on KMOP (CMOS) technology.
|
NOT controller is intended connections to onboard systems of self-diagnostics of the first generation (OBD I)! |
The device carries out a role of the elementary scanner and is intended for reading of diagnostic codes and data of the OBD II system (engine turns, temperature of cooling liquid and the soaked-up air, load characteristics, a consumption of the air coming to the engine, etc.) within the SAE J1979 standard via the tire of any execution (PWM, VPW and ISO 9141-2).
Main destination
For connection to the computer (RS) of rather 3-wire wire, connection to the diagnostic socket is carried out by a 6-wire wire. Supply voltage moves on the controller via the 16-contact diagnostic OBD socket. The schematic diagram of the controller is submitted on an illustration.
Schematic diagram of the controller of interface of RS to the OBD II system
|
|
Recommendations about application
PERFORMANCE ORDER |
|
|
General principles of data exchange
|
If opposite is not stipulated especially, all numbers are given in a 16-richny format (hex), the decimal format is designated by dec tag. |
Data exchange goes on three-wire consecutive connection, without application of initsializatsionny exchange of office messages (handshaking). The device wiretaps the channel on existence of messages, executes the accepted commands and transfers results to the personal computer (PC) then immediately comes back to the listening mode. The data entering the controller and proceeding from it are organized in the form of a chain of the bytes which are consistently going one after another, first of which is control. Usually control byte represents the number from 0 to 15 dec (or 0-F hex) describing the number of the information bytes following further. So, for example, the 3-byte team will look as follows: 03 (control byte), 1st byte, 2nd byte, 3rd byte. The similar format is used as for the entering teams on poll of onboard system of self-diagnostics, and for the outgoing messages containing the requested information. It is necessary to notice that in control byte only four younger bits are used, - the senior bits are reserved under some special teams and PC at initialization of connection with the controller and coordination of the protocol of data transmission can be used, and also the controller for control of errors of transfer. In particular, in case of a mistake by transfer, the controller makes installation of the senior meaning bit (MSB) of control byte in unit. By successful transfer all four senior bits are established in zero.
|
There are separate exceptions to the rules of use of control byte. |
Initialization of the controller and onboard system of self-diagnostics
To start data exchange of PC has to make installation of connection with the controller, then initialize the controller and the channel of data of OBD II.
Connection installation
After connection of the controller to PC and the diagnostic OBD socket its initialization for the purpose of prevention of the "lags" connected with noise in consecutive lines has to be made in case their connection was made before inclusion of power supply of the controller. The simplest check of activity of the interface is at the same time made. First of all the one-byte signal of 20 (hex) perceived by the controller as the command for connection installation is sent. In reply the controller instead of control sends the only byte of FF hex (255 dec) and passes into a waiting mode of reception of data. Now PC can pass to initialization of the channel of data.
|
This case is one of the few when the controller does not use control byte. |
Initialization
PERFORMANCE ORDER |
|||||
|
Data exchange order
Functioning of the controller when using protocols of the ISO 9141-2 and SAE family (VPW and PWM) happens according to a little various scenarios.
Exchange under the SAE protocols (VPW and PWM)
PERFORMANCE ORDER |
|
|
Exchange under the ISO 9141-2 protocols
ISO 9141-2 is used by most of Asian and European producers of automotive vehicles. The structure of the formed PC of inquiry a little in what differs from used in the SAE standards with only that difference that the controller does not need information on number of a shot and the relevant information should not be present at a package. Thus, the inquiry always consists of control byte and the chain of the information bytes including checksum following it. As the response message the controller just relays the signals created by the onboard processor. The control byte in the response message is absent therefore PC perceives the arriving information continuously until the chain is not interrupted by the pause 55 milliseconds long reporting about end of information package. Thus, the response message can consist of one or more shots according to requirements of the SAE J1979 Specifications. The controller does not make the analysis of shots, does not reject not diagnostic shots, etc. PC has to make by own forces processing of the arriving data with the purpose of exarticulation of separate shots by the analysis of heading bytes.
|
Responses to the majority of inquiries consist of the only shot. |
The modifications made in the interface controllers of the latests version
The main differences of process of data transmission under the SAE and ISO 9141 protocols, characteristic of the interface controllers of the latests version, and also a data transmission order under the ISO 14230 protocol are given below:
a) ISO 9141: The address byte is added;
b) ISO 9141: Return not of one, but both key bytes is carried out (the additional byte comes back also in the SAE modes, however here it is not used);
c) Support of the ISO 14230 protocol is added.
|
All information bytes are transferred in a 16-richny format. The symbol XX means the uncertain, reserved or unknown byte. |
Connection installation
The order of installation of connection did not change:
Sending: 20
Reception: FF
Choice of the protocol
The following scheme is applied:
VPW:
Sending: 41, 00
Reception: 02, 01, XX
PWM:
Sending: 41, 01
Reception: 02, 01, XX
ISO 9141:
Sending: 42, 02, adr, where: adr - address byte (usually 33 hex)
Reception: 02, K1, K2,
where: K1, K2 - key bytes of ISO
Or: 82, XX, XX (error of initialization of ISO 9141)
ISO 14230 (bystry initialization):
Sending: 46, 03, R1, R2, R3, R4, R5, where: R1 ÷R5 - the message on the beginning of request of ISO 14230 on connection installation, usually R1 ÷ R5 = C1, 33, F1, 81, 66
Reception: S1, S2, … … …, where S1, S2, … … … - the message on the beginning of the response of ISO 14230 to connection installation
|
More than one ECU can consistently be transferred. As the answer the negative code of the answer can be used. |
Typical affirmative answer looks as follows: S1, S2 … …. = 83, F1, 10, S1, E9, 8F, BD
ISO 14230 (slow initialization):
Similar to ISO 9141
Remarks and comments
- If use of the controller for data transmission only on any to one is planned or to two of protocols, excess components can be excluded (see the scheme). For example, at the organization of the scheme under the VPW (GM) protocol in a wire of connection of the controller to the car only three veins of an electrical wiring (plug 16, 5 and 2) will be required.
- If the PWM protocol is not used, the R4, R6, R7, R8, R9, R10, T1, T2 and D1 elements can be excluded.
- At refusal of exchange under the ISO protocol elements are subject to an exception: R15, R16, R17, R18, R19, R21, T4 and T5.
- The refusal of use of the VPW protocol allows to exclude the following elements: R13, R14, R23, R24, D2, D3 and T3.
- Coal and film resistors with the 5 percent admission of resistance are used.
- Pay attention to lack of the button of emergency reset (RESET), in case of need such reset can be made by a controller detachment from the automobile socket (reset of the interface processor will happen automatically). Restart of the software on PC leads to new initialization of the interface.