{"id":887,"date":"2022-09-28T14:32:42","date_gmt":"2022-09-28T06:32:42","guid":{"rendered":"https:\/\/www.tosunai.com\/?p=887"},"modified":"2024-03-22T22:03:43","modified_gmt":"2024-03-22T14:03:43","slug":"tsmaster-simulation-diagnostics-details","status":"publish","type":"post","link":"https:\/\/www.tosunai.com\/en\/tsmaster-simulation-diagnostics-details\/","title":{"rendered":"TSMaster diagnostic function detailed explanation"},"content":{"rendered":"
TSMaster is an automotive bus tool chain software launched by TOSUN, which has become one of the most commonly used tools by the majority of automotive engineers, especially automotive electronics engineers. It is a domestic alternative to a very powerful development, simulation and test environment. The majority of engineers should use more diagnostic functions of TSMaster in their work, and we will introduce the specific price of TSMaster diagnostic functions below.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t TSMaster provides diagnostic console basic functions, and users can configure their own sending and answering requests according to their needs. Mainly includes: Bus Type, Channel, Request ID\/Response ID\/Function ID, Request ID Type\/Response ID Type \/Function ID Type, Filled Byte, STMin, BlockSize, FD Max DLC, Max Length.<\/p> The diagnostic transport layer type, CAN\/CANFD\/LIN is currently supported, followed by Ethernet and Flexray, etc. TSMaster currently supports multiple diagnostic modules working online at the same time, and is used here to select which logical channel of the system is used by the current diagnostic module.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t The service layer parameters mainly include S3, P2 time parameters, and the DLL for loading SeedKey. the DLL loading interface is shown in the following figure. By enabling TesterPresenter in the Diagnostic Tp parameter configuration, TSMaster will provide a global switch. This switch allows the user to turn on and off the TesterPresent command directly.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t 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. Place your mouse over the service command that needs to be added and removed, right click to expand it, and select whether you need to add and remove the service. Session Control, for example, contains the configuration of the following parameters.<\/p> (1) Configure the service name: Users can configure a service name that is easy to understand and manage.<\/p> (2) Is Function ID: Whether this diagnostic service uses Function ID to send diagnostic requests.<\/p> (3) Select sub-service type: For example, DiagnosticSessionType in Session Control contains the Session type as shown above.<\/p> (4) Byte order of parameter list: Support Motorola and Intel byte order.<\/p> (5) Parameter list: The diagnostic service 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 the parameter list of request and answer frames, which is configured as shown below, and the user can choose to add\/remove multiple types of parameters.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t (1) Download File: the combination of services currently only supports the download file service, if the user has other combination of demand, you can feedback to us, reasonable demand can be added to the software as a standard service module.<\/p> (2) Checksum: In the process of program download, in order to ensure the integrity of the data, it is necessary to introduce the Checksum algorithm to check the integrity and validity of the data. the mainstream CRC algorithm is introduced in the compliance service of TSMaster diagnostic module for checking.<\/p> (3) Load Binary data file: Hex, S19 file format is internal with data start address and length, but for Binary type binary file, it is not internal with data start address, therefore, when loading Binary data file again, the user needs to manually input the length of the data start address segment.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t TSMaster introduces system variables as parameters into the diagnostic module, which greatly expands the ability of the diagnostic module to interact with other modules' data.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t Users can flexibly configure the diagnostic services in the Diagnostic Console according to their needs. After these diagnostic services are configured, users need to double-click to start the diagnostic service in the Diagnostic Console. However, if you want to start the diagnostic command in the Panel interface, you need to use system variables. External programs can exchange data with TSMaster through system variables.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t TSMaster's automated diagnostic process is not just for a specific application, but for the whole project's diagnostic process management. Users can configure test diagnostic process groups according to the requirements of the complete project, and each group can contain several different diagnostic processes inside, and only contain specific diagnostic steps in one diagnostic process. (1) Basic configuration steps: Select a diagnostic process node in the left management column - In the right edit area, add, delete, edit diagnostic steps - After adding a step, edit the step name - Select the type of the step - Select the step address type, physical address or functional address - Configure detailed diagnostic request packets and answer packets - Configure the waiting time between steps after this step is finished -Configure the error handling method for errors occurring in this step<\/p> (2) Toolbar<\/p> The diagnostic process configuration toolbar is shown in the following figure.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t (3) Type of diagnostic steps<\/p> The test step, in order to increase the flexibility of the diagnostic configuration, designed 5 types to choose from, as shown in the figure below, mainly contains: Normal, SelectConfig, SeedAndKey, DownloadFile, TesterPresent, RoutineControl. through these 5 types, basically covers the Through these five types, basically covers all the mainstream diagnostic process requirements on the market.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\tI. Diagnostic TP parameters configuration<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t1\u3001Transport layer protocol<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
2\u3001Service layer parameters<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
3\u3001TesterPresent
<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
Second, the basic diagnostic configuration<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t1\u3001Add delete service command<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t2\u3001Configure BasicDiagnostic service parameters
<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t3\u3001Configure CombinedServices message
<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t4\u3001Sync to console<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
III. Flexible application of system variables<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
1\u3001System variable associated with Console service
<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
2\u3001External program control diagnosis<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\tIV. Automatic diagnosis process<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
1\u3001Process use case management<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t2\u3001Configuration diagnosis process(<\/font>(UDS Flow)<\/font>
<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t