You are currently viewing 新功能发布 | TSMaster诊断功能之基础诊断配置

New Feature Release | TSMaster Diagnostics Basic Diagnostics Configuration

overviewPreface
This module contains the BasicDiagnostic parameter and the CombinedService, which is used for commands that are completely independent of each other, and for commands that must be combined with multiple commands to be completed.

A. Add Remove Service command

Mouse over the service command that needs to be added and removed, right-click to expand it, and select whether the service needs to be added and removed, as shown in the following figure:

B. Configuring BasicDiagnostic service parameters

Session Control, for example, contains the configuration of the following parameters.

[1] Configure service name: Users can configure a service name that is easy to understand and manage.

[2] Is Function ID: Whether this diagnostic service uses Functional ID to send diagnostic request.

[3] Select the sub-service type: For example, DiagnosticSessionType in Session Control contains session types as shown above.

[4] Byte order of parameter list: Motorola and Intel byte order are supported.

[5] Parameter list: Diagnostic services can be sent to the ECU under test with parameters in addition to the diagnostic ID and sub-service type ID. the parameter list contains a list of parameters for request and answer frames, which is configured as shown below, and the user can choose to add/delete various types of parameters.

Among them, the service ID and sub-service type ID, such as the DiagnosticSessionType parameter inside SessionControl, are mandatory, while the parameter list is optional.

After modifying the configuration, the top of the interface will display the actual diagnostic message in real time, as shown in the figure below. After completing the configuration as shown below, the service message to be sent by the diagnostic instrument is: [10 02 xx xx xx xx]: xx means that the parameter is variable, which is determined according to the actual data filled in by the user; and the affirmative response message that the diagnostic instrument is going to receive is [50 02 xx].

Diagnostic service parameters:

The Diagnostics module parameters support 7 data types. These include: UInt, Int, Single, Double, HexArray, Ascii and SystemVar.

[1] UInt: Unsigned integer, its data length must be less than 32bits, and is a multiple of 8, can be 8,16,24,32bits.

[2] Int: signed plastic, its data length must be less than 32bits, and a multiple of 8, can be 8,16,24,32bits.

【3】 Single: Single-precision floating-point number, data length is fixed 32bits. user directly input and output floating-point data.

【4】 Double: single precision floating point number, data length is fixed 64bits. user directly input and output floating point data.

【5】 Hex Array: Hexadecimal array, data length is a multiple of 8. The input data satisfies the 16 prohibition data type.

[6] ASCII: ASCII string, data length is a multiple of 8. Input data is an array of ASCII characters, converted to hexadecimal and sent.

【7】 SystemVar: system variable, data length is a multiple of 8. TSMaster system variable can support Uint, Int, Single, Double, UintArray, DoubleArray, HexArray, String and other data types. The specific data type is determined by the definition of the system variable itself.

For the effect of converting the above seven types of input data and the actual byte data sent, see the following section: Inputting Calibration Parameters.

C. Configuring CombinedServices messages

Download File:

Combination of services currently only supports the download file service, if the user has other combination of needs, you can feedback to Shanghai TOSUN Technology, reasonable demand can be added to the software as a standard service module.

[1] Configure the name of the service

[2] The checksum algorithm for selecting a file for CRC, about which more details will be given later.

TSMaster supports loading Hex, S19, Mot and Bin files. After loading, the file contains information such as paragraph, address, length, etc. See the bottom of the interface.

[4] Delete the executable file

[5] Open hex viewer. TSMaster has a built-in executable file viewer editor, TSHexViewer, as shown in the following figure, which allows users to view the details of the loaded Hex file.

[6] Select the parameter type of the TransferExit(0x37) command.

Checksum:

In the process of program download, in order to ensure the integrity of the data, it is necessary to introduce Checksum algorithm to verify the integrity and validity of the data.TSMaster Diagnostic Module's conformity service introduces the mainstream CRC algorithm for checking. Its selection box is shown in the following figure:
After the user selects the specified algorithm, the diagnostic module calculates the Checksum value of the executable file, including the Checksum value of each block of the executable file as well as the Checksum value of the file as a whole, as shown in the following figure:
After calculating the Checksum values for each Block and for the program as a whole, the values are further registered to the system variables as shown below:
TSMaster's diagnostic module can directly take system variables as parameters. Take the diagnostic command, commonly used to check the validity of the executable file as an example, at this time you can configure the following RoutineControl command, you can realize the validity of the file check, as shown below:

Loads a Binary data file:

Hex, S19 file format is with data start address and length, but for Binary type binary file, he does not have the data start address, therefore, when loading the Binary data file, the user needs to manually enter the length of the data start address segment, as shown below:
When loading Binary, the software will automatically pop up the start address setting form as shown in the above figure. The address format is hexadecimal and the address range is [0x00000000,0xFFFFFFFF], users can set the address within this range and click to confirm. If you choose to cancel, then use the default address address 0x00000000. set the address and loaded as shown in the figure below:
As you can see, the Binary file now has the starting address of the data segment.

D. Synchronization to the console

After completing the above configuration operation, click the Synchronize button on the upper left of the interface to synchronize the above configuration to the Diagnostic Console console module, in preparation for the next specific diagnostic operation. As shown below:

发表回复