ATI ASAP3 Implementation User Manual
ATI ASAP3 Implementation User Manual
A7 Serial Interface
ASAP3 (ASAP-MC)
Implementation
User Manual
Public 1
DOC-465-0014
Accurate Technologies Inc.
France: Sweden:
Accurate Technologies SAS Accurate Technologies AB
4 Place Louis Armad (Multiburo) Drakegaton 10
75012 Paris, France SE-401 23 Göteborg
Phone: +33 (0) 1 72 76 26 10 Sweden
Fax: +33 (0) 1 72 76 25 99 Phone: +46 (0) 31-773-7140
Fax: +46 (0) 31-773-7144
Sales: [email protected]
Support: [email protected] Sales: [email protected]
Support: [email protected]
Germany:
Accurate Technologies GmbH & Co KG United Kingdom:
Terminalstrase Mitte 18 Accurate Technologies (UK) Limited
85356 Muenchen, Germany Unit 14, St. George's Tower
Phone: +49 (0) 89 9700-7121 Hatley St George, Cambridgeshire
Fax: +49 (0) 89 9700-7200 SG19 3SH UK
Phone: +44 (0) 1767-652-340
Sales: [email protected] Fax: +44 (0) 1767-652-341
Support: [email protected]
Sales: [email protected]
Japan Support: [email protected]
ATI Worldwide LLC
Shinjuku Mitsuba Building 5f United States:
Nishishinjuku 1-5-11 Accurate Technologies Inc.
Shinjuku-ku, Tokyo 160-0023 47199 Cartier Drive
Phone: +81 3-5325-6222 Wixom, Michigan 48393 U.S.A.
Fax: +81 3-5325-6223 tel: +1 248-848-9200
fax: +1 248-848-9016
Sales: [email protected]
Support: [email protected] Sales: [email protected]
Support: [email protected]
Public 2
DOC-465-0014
Accurate Technologies Inc.
Document Control
Abstract:
User Manual for ASAP3 (ASAP-MC) Implementation
Key words:
VISION Software, ASAP3
Public 3
DOC-465-0014
Accurate Technologies Inc.
Contents
A7 Serial Interface 1
ATI Global Offices and Contact Details 2
Document Control 3
ATI Copyright Information 3
Contents 4
Chapter 1: INTRODUCTION 5
1.1 ASAP3 (ASAP3 - MC) Implementation 6
1.2 ASAP3 Overview 7
1.2.1 ASAP3 System Requirements 7
Chapter 2: CONFIGURING THE ASAP3 9
2.1 Defining The Properties of the ASAP3Host 10
2.1.1 The ASAP3 Device Properties Window 10
Chapter 3: AUTOMATIC ECU CALIBRATION 15
3.1 ASAP3 Interface with VISION 16
3.2 ASAP3 Protocol Implementation 17
3.2.1 Implement Commands 18
3.2.2 ATI Proprietary Commands 33
3.3 Using VISION Recorders with ASAP3 37
Index 38
Record of Revisions 41
Public 4
DOC-465-0014
Accurate Technologies Inc.
Chapter 1: INTRODUCTION
1
Introduction
Public 5
DOC-465-0014
Accurate Technologies Inc.
Note: Arbeitskreis zur Standardisierung von Applikationssystemen (ASAP) has been renamed Association
for Standardization of Automation and Measuring System (ASAM). ASAP and ASAM will be used inter-
changeably in this document. Measurement Calibration and Diagnostics (MCD)3 specifications are still
being modified to include diagnostics as a future feature. Currently ASAP3 protocol follows the ASAP3
V2.1's, which has no documentation or implementation of diagnostics.
Public 6
DOC-465-0014
Accurate Technologies Inc.
Note: Ethernet connection is not an official part of the standard; however, it can be used for test
implementations.
Public 7
DOC-465-0014
Accurate Technologies Inc.
Note: You can also select the computer icon and press F5.
b. Select the appropriate communication port. You can select from RS-232 Serial
Port or TCP/IP.
2. Right-click the communication port and select Add Device from the context menu.
3. Select ASAP3Host.
Public 8
DOC-465-0014
Accurate Technologies Inc.
2
Configuring the
ASAP3
Public 9
DOC-465-0014
Accurate Technologies Inc.
Important: Changes made to the ASAP3Host properties do not take effect until the next time the device
is re-enabled. Therefore, it is currently necessary to disable the device before editing the properties and
re-enable the device after editing the properties.
Note: The Device Properties differs according to the device you are configuring. However, the General tab
is common to all devices in VISION.
Public 10
DOC-465-0014
Accurate Technologies Inc.
The ASAP3Host Device Properties window - General tab contains the following field definitions:
l Device Name - Displays the name of the device. If you accepted the default name, for example,
"ASAP3Host," it will be displayed in this field.
l Change Device Name button - Allows you to change the name of the device.
l Assign to Serial Number - Use this button if the device connected to the computer is not com-
municating properly.
Note: It is possible to have more than one device of a given type on the Device Tree; in this case,
each device name on the VISION Device Tree must be associated with the serial number of the con-
nected hardware. This button should be used to make the association.
Note: Earlier versions of VISION (preceding 2.3) can only function with one device at a time
and that device must be the "0" Destination. The destination number is the Logical Unit
Number (LUN) used for the device in which information is to be retrieved.
Public 11
DOC-465-0014
Accurate Technologies Inc.
The ASAP3Host Device Properties dialog window - Device tab contains the following field definitions:
l Destination - Logical Unit Number (LUN) used for the device in which information is to be retrieved.
l Device - Name of the VISION devices whose data items are being calibrated by ASAP3Host.
l Insert button - Allows you to insert specific devices. This button opens ASAP3 Devices Properties win-
dow.
l Properties button - Allows you define device properties in the ASAP3 Device Properties window. To
set the properties using this window do the following:
1. Go to the ASAP3Host Properties window.
2. Click on the Devices tab.
3. Select a device from the list.
4. Click the properties button. The ASAP3 Device Properties window is displayed.
l Delete button - Deletes one device property setting at a time.
Public 12
DOC-465-0014
Accurate Technologies Inc.
The ASAP3Host Properties dialog window - Serial Port tab contains the following field definitions:
l Baud rate - You can choose from the following baud rates:
l 9600 (the default).
l 19,200.
l 57,600.
l 115,200.
l Send Message ACK's box - Click this box if you require an acknowledge command to be returned.
Public 13
DOC-465-0014
Accurate Technologies Inc.
The ASAP3Host Properties dialog window - TCP/IP Port tab contains the following field definitions:
l Port Number - Port number used for TCP/IP communications. The system defaults this field to 22222.
l Send Message ACK's box - Click this box if you require an acknowledge command to be returned.
Public 14
DOC-465-0014
Accurate Technologies Inc.
3
Automatic ECU
Calibration
Public 15
DOC-465-0014
Accurate Technologies Inc.
Note: Ethernet connection is not an official part of the standard; however, it can be used for test imple-
mentations.
The most important functions of the ASAP3 in VISION are online analysis, offline analysis, printer function,
data management, ECU flash. The function of data acquisition within the ASAP3 MC system is a device specific
solution, it depends on the interface to the ECU (memory emulation, CAN or K-Line), switching to baud rates
higher than 9600 Baud, enables you to get higher performance.
Public 16
DOC-465-0014
Accurate Technologies Inc.
Implement Commands
ACTIVATE RECORDER GET LOOK-UP TABLE VALUE
CHANGE BINARY FILE NAME GET PARAMETER
COPY BINARY FILE GET RECORDER RESULTS
DEFINE DESCRIPTION FILE AND BINARY FILE GET ONLINE VALUE
DEFINE RECORDER PARAMETERS GET RECORDER RESULT HEADER
DEFINE TRIGGER CONDITION GET RECORDER STATUS
EMERGENCY GET USER-DEFINED VALUE
EXIT GET USER-DEFINED VALUE LIST
EXTENDED GET LOOK-UP TABLE IDENTIFY
EXTENDED GET LOOK-UP TABLE VALUE INCREASE LOOK-UP TABLE
EXTENDED GET ONLINE VALUE INIT
EXTENDED GET PARAMETER LOAD RECORDER FILE
EXTENDED GET RECORDER RESULT DATA TYPES PARAMETER FOR VALUE ACQUISITION
EXTENDED GET RECORDER RESULTS PUT LOOK-UP TABLE
EXTENDED INCREASE LOOK-UP TABLE VALUE RESET DEVICE
EXTENDED PARAMETER FOR VALUE ACQUISITION SAVE RECORDER FILE
SELECT DESCRIPTION FILE AND BINARY FILE
EXTENDED PUT LOOK-UP TABLE
SELECT LOOK-UP TABLE
EXTENDED SELECT LOOK-UP TABLE
SET CASE SENSITIVE LABELS
EXTENDED SET LOOK-UP TABLE
SET FORMAT
EXTENDED SET PARAMETER
SET GRAPHIC MODE
GET LOOK-UP TABLE
SET PARAMETER SET LOOK-UP TABLE
SWITCHING OFFLINE/ONLINE
Public 17
DOC-465-0014
Accurate Technologies Inc.
In case an ASAP3 command cannot be executed successfully, an error message is sent. This list shows the
error codes in the error messages.
Public 18
DOC-465-0014
Accurate Technologies Inc.
Note: See "Using VISION Recorders with ASAP3" later in this document.
1 - Activate
2 -Trigger recorder
Recorder State Change table (see "Table 2: Recorder State Change" below) describes how the Activate
Recorder command affects the recorder based on its current state. For a definition of Recorder States, see
"Recorder States" later in this document.
Table 2: Recorder State Change
The following table shows a list explaining the possible reasons why the ACTIVATE RECORDER command
may fail with an ASAP3_OPERATION_FAILED (2) error condition:
Error Code # Typical reasons for failure
ASAP3_OPERATION_FAILED 2 Requested operation on recorder failed. Failure was prob-
ably caused by an invalid trigger condition(s).
Public 19
DOC-465-0014
Accurate Technologies Inc.
The following table shows a list explaining the possible reasons why the COPY BINARY FILE command may
fail with an ASAP3_OPERATION_FAILED (2) error condition.
Error Code # Typical reasons for failure
ASAP3_OPERATION_FAILED 2 l Currently, VISION only supportscopying to LOCA-
TION - file.
l The Strategy and calibration file names can contain the "%dev%" macro.
l The Mode Parameter contains ATI- defined extensions, consequently, the ASAP3- defined default
Mode values are ignored. The Mode parameter can be used to specify ATI VISION specific behavior.
This is done by setting the most significant bit to 1 (0x8000).
l Destination ID's are specified in the ASAP3Host Properties (see "Device Properties"earlier in this doc-
ument).
l If Define Description File and Binary File command fails, the ASAP3 client application should make no
assumptions about the current state of the destination device and retry the command with different
parameter values.
VISION uses the following specific modes, which are a combination of the bit patterns.
Table 1: Define Description File and Binary File Mode Value
Public 20
DOC-465-0014
Accurate Technologies Inc.
0x0008 Remove Cal- Remove the specified Strategy from the device tree. If the Strategy is
ibration not specified, the active one is removed. If the active Strategy is
removed, the device will be taken OFFLINE and no Strategy will be
selected.
0x0800 Enable Device Used to Enable a disabled device. If the device is already enabled, this
setting has no effect. Typically combined with Automatic Flash or
Automatic Download.
0x1000 Require online Used when reading data with get online value. It requires the
device(s) to be online. Otherwise, the command will fail.
0x2000 Skip save When selecting a new calibration, the normal behavior is to save the
current one first. This mode abandons changes done to the cal-
ibration.
0x4000 Reload Reload the calibration from file when selecting the active one. This
will abandon changes and flash/download if necessary.
0x8003 Automatic Upload Add the specified Strategy and/or Calibration to the device tree and
upload the calibration data to this Strategy. If this command fails,
the previously selected Strategy and Calibration will be re-selected, if
applicable.
The following table shows a list explaining the possible reasons why the DEFINE DESCRIPTION FILE AND
BINARY FILE command may fail with an ASAP3_OPERATION_FAILED (2) error condition:
Error Code # Typical reasons for failure
ASAP3_OPERATION_FAILED 2 l Unable to load Strategy or Calibration file.
Public 21
DOC-465-0014
Accurate Technologies Inc.
Recorder Type parameter defines how Scanning Time and Divider Factor parameters are used. For exam-
ple:
If Recorder Type is 0 (zero) l Use a timed interval for recording.
Triggers can be any valid Boolean expression. VISION will attempt to validate the expression before
responding to this command. The following is an example expression:
PCM.Variables.VBAT > 15.0
l Start Delay is used to define a pre-trigger recording buffer.
l Stop Delay us used to define a post-stop-trigger buffer.
The following table shows a list explaining the possible reasons why the DEFINE TRIGGER CONDITION com-
mand may fail with an ASAP3_OPERATION_FAILED (2) error condition:
Error # Typical reasons for failure
ASAP3_OPERATION_FAILED 2 Invalid Trigger expression
Public 22
DOC-465-0014
Accurate Technologies Inc.
3.2.1.7 Emergency
This command causes a modal popup window to be displayed in VISION with the message: "ASAM MCD3
Emergency command notification received!" No other action is taken, and VISION ignores the Event field.
3.2.1.8 Exit
This command is used to indicate the end of a communications session. When VISION receives this com-
mand, it closes the communications context object, removes its internal associations between ASAP3 log-
ical objects and VISION objects, and un-assigns all associated memory. If a communications context was not
initialized with the INIT command, the Exit command is ignored. This command always returns suc-
cessfully.
Public 23
DOC-465-0014
Accurate Technologies Inc.
Public 24
DOC-465-0014
Accurate Technologies Inc.
In this request, the data item names are interpreted such that they may specify data items that may exist in
any data item group for the device.
If the request was to clear the list, this request always returns that it succeeded. If the request was to add
items to the list, this request succeeds if all of the items were added successfully to the list. If any one of
the items could not be found, then none of the items in the request message will be added.
The return data from this command tells the client what DataType should be expected for each data item
added to the list. VISION maintains separate lists for PARAMETER FOR VALUE ACQUISITION and for
EXTENDED PARAMETER FOR VALUE ACQUISITION.
Data Item types that can be acquired include scalar, state variable (returns the underlying numeric value),
data acquisition channel values, CAN Signals, running points for tables, or arrays.
Public 25
DOC-465-0014
Accurate Technologies Inc.
As a reply to this request, VISION returns a unique Map number (handle), as well as the map dimensions
and the map Address. The map address is the lower 16-bits of the address of the map's z-axis. The
returned y-dimension value is always equal to one for 2D tables and 1D arrays. In addition, this command
returns the data types that are used to return values by some of the other Extended Map Manipulation
commands. The Map number returned by this may only be used with the Extended map manipulation
commands.
Public 26
DOC-465-0014
Accurate Technologies Inc.
Public 27
DOC-465-0014
Accurate Technologies Inc.
3.2.1.30 Identify
This command allows the ASAP3Host and VISION to exchange protocol version numbers and system
names. VISION accepts and ignores the information received from the ASAP3Host, and in its reply, it indi-
cates V2.1 (WORD 0x0201) as the protocol version and the string "ATI VISION" as its name
Public 28
DOC-465-0014
Accurate Technologies Inc.
3.2.1.32 INIT
This command causes VISION to initialize a new communications context. A context consists of information
about all of the ASAP3 logical objects that have been created. Logical objects include emulators, lookup
tables, data acquisition lists, and recorders. The INIT command must be called once prior to accessing any
of these logical objects.
Each time this command is called, the current communications context is cleared, regardless of whether
the EXIT command is used.
Public 29
DOC-465-0014
Accurate Technologies Inc.
Data Item types that can be acquired include scalar, state variable (returns the underlying numeric value),
data acquisition channel values, CAN Signals, running points for tables, or arrays.
Public 30
DOC-465-0014
Accurate Technologies Inc.
The Destination selects the VISION device that is associated with this emulator. Destination IDs are spec-
ified in the ASAP3Host Properties (see "Configuring the ASAP3").
When specifying the Strategy and Calibration file names, it is possible to use the macro "%dev%" that is
replaced with the full path of the directory, which stores the device information. For example, one might
specify "%dev%\Strategy1.vst" as the Strategy name string.
If this command fails, the ASAP3 client application should make no assumptions about the current state of
the destination device and retry the command with different parameter values.
This table is a list of possible reasons why this command may file with an ASAP3_OPERATION_FAILED (2)
error condition:
Error # Typcial reasons for failure
ASAP3_OPERATION_FAILED 2 Unable to load Strategy or Calibration file.
Public 31
DOC-465-0014
Accurate Technologies Inc.
0 - ALL
1 - Map
2 -“ Parameter
3 -“ Actual values
Model WORD Specifies what data to return
l When using Model 0 and the Extended commands, VISION returns string values for State Table data
items. An example would be returning "Park", "Reverse" OR "Neutral" instead of 0, 1, 2...
l When using Model 0 and the standard commands, VISION returns the physical values for all data
items.
l When using Model 1, VISION returns the raw (unconverted) data values for all items. The ASAP3 client
should send data values to VISION in raw mode when using Model 1.
l When using Model 2, VISION returns the physical (engineering unit) data values for all items. This is
the default Model.
Public 32
DOC-465-0014
Accurate Technologies Inc.
Public 33
DOC-465-0014
Accurate Technologies Inc.
Important:
Note: For more information regarding the use of VISION recorders and ASAP3, see "Using VISION
Recorders with ASAP3" later in this document.
Public 34
DOC-465-0014
Accurate Technologies Inc.
Public 35
DOC-465-0014
Accurate Technologies Inc.
Public 36
DOC-465-0014
Accurate Technologies Inc.
If you are currently using a traditional ASAP3 recorder, it should call either SELECT_RECORDER or DEFINE_
RECORDER_PARAMETERS with no channels to clear the current recorder setup.
Important: When using a VISION Recorder, the client application should limit its use of ASAP3 recording
related commands to ACTIVATE_RECORDER, SAVE_RECORDER_FILE and SELECT_RECORDER. Use of any
other recorder commands may cause unpredictable results.
Public 37
DOC-465-0014
Accurate Technologies Inc.
Public 38
DOC-465-0014
Accurate Technologies Inc.
Public 39
DOC-465-0014
Accurate Technologies Inc.
Increase Look-Up Table Value, ASAP3 Com- Serial Port Tab, ASAP3 Properties
mand 29 Window 12
INIT, ASAP3 Command 29 Set
Case Sensitive Labels, ASAP3
K Command 31
Format, ASAP3 Command 31
KAM
Graphic Mode, ASAP3 Command 32
Erase, ASAP3 Command 35 Look-Up Table, ASAP3 Command 32
Load, ASAP3 Command 35 Parameter, ASAP3 Command 32
Save, ASAP3 Command 35
Software Requirements 7
Switching Offline/Online, ASAP3
L
Command 32
Load Recorder File, ASAP3 Command 29
T
M
TCP/IP 7
MCD 6
TCP/IP Tab, ASAP3 Properties Window 13
Measurement Calibration and Diagnostics 6
V
P
VISION
Parameter for Value Acquisition, ASAP3 Com-
ASAP3 Interface 16
mand 29
Recorders with ASAP3 37
Poke Look-Up Table, ASAP3 Command 33
VISION Device Tree
Poke Parameter, ASAP3 ATI Proprietary Com-
Add ASAP3 Device 8
mand 34
Properties
ASAP3Host 10
Put Look-Up Table, ASAP3 Command 30
R
Recorder State Change table 19
Reset Device, ASAP3 Command 30
S
Save
Recorder File, ASAP3 Command 30
Select
Description File and Binary File ASAP3 Com-
mand 30
Look-Up Table, ASAP3 Command 31
Recorder, ASAP3 Command 34
Public 40
DOC-465-0014
Accurate Technologies Inc.
Record of Revisions
Date Version VISION Release ECO
September 13, 2005 Version 1.0 New for VISION 2.3
July 4, 2006 Version 1.1 New for VISION 3.0
November 14, 2006 Version 1.2 Updated for VISION 3.2
December 5, 2006 Version 1.3 Updated for VISION 3.2
October 30,2007 Version 2.0 Updated for VISION 3.4 07157
June 13, 2008 Version 2.2 Updated for VISION 3.5 08116
August 22, 2011 Version 2.3 Updated for VISION 3.7 11089
November 29, 2011 Version 2.4 Updated for VISION 3.7.2 11082
Public 41
DOC-465-0014