CN106053098B - A kind of simulative automobile method, apparatus and automotive test simulation system - Google Patents

A kind of simulative automobile method, apparatus and automotive test simulation system Download PDF

Info

Publication number
CN106053098B
CN106053098B CN201610584718.9A CN201610584718A CN106053098B CN 106053098 B CN106053098 B CN 106053098B CN 201610584718 A CN201610584718 A CN 201610584718A CN 106053098 B CN106053098 B CN 106053098B
Authority
CN
China
Prior art keywords
test
personal computer
industrial personal
order
response message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610584718.9A
Other languages
Chinese (zh)
Other versions
CN106053098A (en
Inventor
王天军
叶则南
刘敏
王超逸
周洋
席宇峰
周杰
陆佶鹏
毛晨轩
殷伟智
丁国栋
褚艳春
陈铭军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SAIC General Motors Corp Ltd
Original Assignee
SAIC General Motors Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SAIC General Motors Corp Ltd filed Critical SAIC General Motors Corp Ltd
Priority to CN201610584718.9A priority Critical patent/CN106053098B/en
Publication of CN106053098A publication Critical patent/CN106053098A/en
Application granted granted Critical
Publication of CN106053098B publication Critical patent/CN106053098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M17/00Testing of vehicles
    • G01M17/007Wheeled or endless-tracked vehicles

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention, which discloses a kind of simulative automobile method, apparatus and system, method, to be included:The test command for carrying out self-test industrial personal computer is received, test command includes automotive test order or drum dynamometer industrial personal computer order;If receiving automotive test order, diagnosis simulation steps are performed, if receiving drum dynamometer industrial personal computer order, perform rotary drum simulation steps;Simulation steps are diagnosed, including:The diagnostic response message or simulation that each electronic control unit of simulated automotive is returned according to the corresponding diagnostic function of automotive test order execution perform the control response message that automotive test order is returned, and are returned to test industrial personal computer and diagnose corresponding message or control response message;Rotary drum simulation steps, including:Corresponding drum dynamometer data are returned to according to the order of drum dynamometer industrial personal computer, drum dynamometer data are returned to test industrial personal computer.Required various signals when the present invention provides debugging for test system GATS, to accelerate the debugging efforts of GATS.

Description

A kind of simulative automobile method, apparatus and automotive test simulation system
Technical field
The present invention relates to automobile correlative technology field, particularly a kind of simulative automobile method, apparatus and automotive test simulation System.
Background technology
Existing all sample car verification, study and tests are all to carry out object authentication, tool by the experiment vehicle of trial-production The means of testing of body is that real experiment vehicle is placed in rotary drum test equipment, then using general general assembly test system (General Assembly Test System, GATS) sends test command to experiment vehicle, such as diagnosis request, control carry Show, by obtaining the diagnostic response tested vehicle and returned, driver performs the control for operating rear vehicle and returning according to prompting The drum dynamometer data that response and industrial personal computer gather in real time are as test result.
Above-mentioned test mode needs the experiment vehicle of entity, its testing time length, experimental cost are high.
The content of the invention
Based on this, it is necessary to the experiment vehicle of entity is needed for existing test mode, causes the testing time long, real Test technical problem of high cost, there is provided a kind of simulative automobile method, apparatus and automotive test simulation system.
The present invention provides a kind of simulative automobile method, including:
Order receiving step, including:The test command for carrying out self-test industrial personal computer is received, the test command is surveyed including automobile Examination order or drum dynamometer industrial personal computer order;
Judgment step, including:If receiving the automotive test order, diagnosis simulation steps are performed, if received To drum dynamometer industrial personal computer order, then rotary drum simulation steps are performed;
Simulation steps are diagnosed, including:Each electronic control unit of simulated automotive performs corresponding according to the automotive test order The diagnostic response message that is returned of diagnostic function or simulation perform the control response that the automotive test order is returned and disappear Breath, the diagnostic response message or the control response message are returned to the test industrial personal computer;
Rotary drum simulation steps, including:Corresponding drum test number of units is returned to according to the drum dynamometer industrial personal computer order According to the test industrial personal computer return drum dynamometer data.
The present invention provides a kind of simulative automobile device, including:
Order receiver module, is used for:The test command for carrying out self-test industrial personal computer is received, the test command is surveyed including automobile Examination order or drum dynamometer industrial personal computer order;
Judgment module, is used for:If receiving the automotive test order, diagnosis analog module is performed, if received To drum dynamometer industrial personal computer order, then rotary drum analog module is performed;
Analog module is diagnosed, is used for:Each electronic control unit of simulated automotive performs corresponding according to the automotive test order The diagnostic response message that is returned of diagnostic function or simulation perform the control response that the automotive test order is returned and disappear Breath, the diagnostic response message or the control response message are returned to the test industrial personal computer;
Rotary drum analog module, is used for:Corresponding drum test number of units is returned to according to the drum dynamometer industrial personal computer order According to the test industrial personal computer return drum dynamometer data.
The present invention provides a kind of automotive test simulation system, including:Test industrial personal computer, foregoing simulative automobile dress Put, car bus interface converter and serial converter, the simulative automobile device pass through the car bus interface converter Communicated to connect with the car bus interface of the test industrial personal computer, the simulative automobile device passes through the serial converter and institute The serial communication connection of test industrial personal computer is stated, the test industrial personal computer sends automotive test by the car bus interface and orders Make, receive diagnostic response message and receive control response message, the test industrial personal computer sends rotary drum by the serial ports and tries Test the order of platform industrial personal computer and receive drum dynamometer data.
The simulative automobile scheme of the present invention, each electronic control unit of simulated automotive perform phase according to the automotive test order The diagnostic response message or simulation that the diagnostic function answered is returned perform the control response that the automotive test order is returned Message, the diagnostic response message or the control response message, or rotary drum simulation steps are returned to the test industrial personal computer, Including:Corresponding drum dynamometer data are returned to according to the drum dynamometer industrial personal computer order, are returned to the test industrial personal computer The drum dynamometer data are returned, required various signals when providing debugging for test system GATS, to accelerate the tune of GATS Trial work is made.The diagnostic function of each electronic control unit of simulated object automobile (Electronic Control Unit, ECU) and drive The person of sailing is according to done operation, and the drum dynamometer data that industrial personal computer gathers in real time are prompted, so as to accelerate software debugging mistake Journey, i.e., time saving and energy saving and economical and efficient.
Brief description of the drawings
Fig. 1 is a kind of work flow diagram of simulative automobile method of the present invention;
Fig. 2 is a kind of construction module figure of simulative automobile device of the present invention;
Fig. 3 is a kind of construction module figure of automotive test simulation system of the present invention.
Embodiment
The present invention will be further described in detail with specific embodiment below in conjunction with the accompanying drawings.
It is as shown in Figure 1 a kind of work flow diagram of simulative automobile method of the present invention, including:
Step S101, including:The test command for carrying out self-test industrial personal computer is received, the test command is ordered including automotive test Order or drum dynamometer industrial personal computer order;
Step S102, including:If receiving the automotive test order, step S103 is performed, is turned if received Drum testing stand industrial personal computer order, then perform step S104;
Step S103, including:Each electronic control unit of simulated automotive is performed according to the automotive test order and examined accordingly The diagnostic response message or simulation that disconnected function is returned perform the control response message that the automotive test order is returned, to The test industrial personal computer returns to the diagnostic response message or the control response message;
Step S104, including:Corresponding drum dynamometer data are returned to according to the drum dynamometer industrial personal computer order, to The test industrial personal computer returns to the drum dynamometer data.
Step S101 receives test command from test industrial personal computer GATS, and then step S102 is judged, if vapour Car test command, then perform the diagnostic function of step S103 simulated automotives ECU or simulation performs order return control response and disappears Breath, which is simulated automotive static test (Simulation on SVT, SSVT), if drum dynamometer industrial personal computer is ordered Order, then perform step S104 and directly return to corresponding drum dynamometer data, which is the precious gram rotary drum industrial personal computer of simulation (Simulation on BP, SBP).
By step S103 and step S104 simulation tests vehicle and test equipment, the test program of test industrial personal computer is allowed (Design Verification Test, DVT) can be carried out in the case of no real vehicle.At the same time, moreover it is possible to which simulating vehicle lacks Fall into, DVT test programs are corrected in test.It can be added at the same time by the self-defined ECU modules of diagnosing protocol, multiple ECU of simulation Carry, unloading and preservation.Specifically, generate by setup module and change ini database files, according to the corresponding lattice of each agreement Formula is changed and interpolation data storehouse, the database file content determine protocol type, ECU modules and each bar that the system is loaded Feedback data corresponding to test command.Preferably, three kinds of communication protocols (ISO14230, J1850, ISO15765) can be simulated Communication, support due operator scheme, and retain the expansion interface of communication protocol.It can be loaded with self-defining communication protocol, Unloading and preserve, when communication can load at the same time, unload several communication protocols.Can be with Keyboard Control, accelerator open degree, brake pedal Position, PRNDL gears, clutch position.Specifically, accelerator open degree, brake pedal position, PRNDL gears, clutch position All fed back, changed by user's interface keyboard corresponding in ini databases with corresponding pid value inside ECU etc. information Pid value, to simulate the above signal data on control real vehicle.It can be pressed with the position of customizing keyboard and its corresponding analog device Key response produces increment change, and changes the digital quantity of corresponding DPID.Specifically, by setting control in user interface, using Pid value obtains correspondence in family keyboard and ini databases, to realize that customizing keyboard machine corresponds to the position of analog device Put.Wherein DPID is the combination of the customized PID of ECU, changes the essence of DPID as modification PID.Show the speed of 4 wheels Degree, acceleration, accelerator open degree, brake pedal position, PRNDL gears, clutch position.Specifically, pass through the aobvious of user interface Show control, with the wheel speed in ini databases, acceleration, accelerator open degree, brake pedal position, PRNDL gears, clutch position It is associated Deng pid value, realizes the status information of the above-mentioned simulation control of real-time display.Generation error code can be simulated, can be free Selecting switch all the sensors are used for simulating vehicle failure.Specifically, when some failures occurs in vehicle, error code storage can be produced In automobile ECU memory, test industrial personal computer can be instructed by reading code and read the code.In simulation system, if being read in ini databases Error code is set in code order corresponding data, when test industrial personal computer sends reading code instruction, the error code in ini databases is read Go out and be tested industrial personal computer to show.
The property indices and floor data of vehicle can be real-time transmitted to each ECU, and anti-come dynamic by a large amount of pid values Feedback, test industrial personal computer is by constantly reading the pid value of automobile ECU, to judge whether automobile indices are normal.Simulation system is led to Modification pid value is crossed, comes whether validation test program can correctly read data, and the prompting that reports an error is sent in data exception, so that In the case of no vehicle, debug is carried out to test program.
Required various signals when the present invention provides debugging for test system GATS, to accelerate the debugging efforts of GATS. The diagnostic function of each ECU of simulated object automobile and driver are according to the done operation of prompting, and turn that industrial personal computer gathers in real time Drum testing stand data, so that accelerate software debugging process, i.e., time saving and energy saving and economical and efficient.
In one of the embodiments, the step S103, specifically includes:
The automotive test order is parsed, determines the type of the automotive test order;
If the type of the automotive test order is request command, electronics control to be asked is parsed from request command Unit processed and treat request type, electronic control unit to be asked is obtained from the database pre-saved on treating request type Corresponding response returns to the diagnostic response message as diagnostic response message to the test industrial personal computer;
If the type of the automotive test order is ordered in order to control, prompted to read control sequence number according to control, according to The control sequence number reads control content, if the control content is setting Numerical Control, from the number of the control content According to obtaining numerical value to be written and electronic control unit to be written in section, into the simulation array of the electronic control unit to be written The numerical value to be written is write, if the control content obtains to send message from the data segment of the control content Information to be sent and automobile bus to be sent mark, using the information to be sent as control response message, to described to be sent The indicated automobile bus of automobile bus mark sends the control response message.
During a common vehicle detection, detection device sends various instructions to vehicle ECU, and ECU is according to vehicle Actual condition and internal logic, feed back data according to given protocol form, and detection device is according to the feedback data into advancing one Interactive correspondence is walked, or makes the judgement of test result.
In the present embodiment, a data source ini file is first established, in the data source, according to included by bus identification information Communication stitch (any bar physical bus determined), the CAN ID communication data of which ECU (determine with) and SID orders, it is right Answer unique ECU feedback data.The data source can be converted from historical test data text by the setup module of program and obtained, or Person is manually entered.Then the instruction sent according to test industrial personal computer, corresponding feedback data is obtained from text data library inquiry, and The data are sent out to test industrial personal computer, so as to fulfill simulating vehicle ECU.
Wherein, numerical value is set to refer to that test industrial personal computer sends DID values in the corresponding command rewriting ECU to ECU.DID values are needing Industrial personal computer reading, such as the information such as car age identification code VIN, ECU Part No. can be tested when wanting.In addition, a control disappears Breath, contains bus identification information (to determine to use that bus), CAN ID (which ECU in bus determined) And specific control content information, sent after packing from test industrial personal computer to the bus, certain in the bus corresponding to the CAN ID After a ECU receives the control message, by the bus to test industrial personal computer feedback control response message, including normally receive or Refusal performs.
SID, that is, service identifiers (Service Identifier), there is different definition in different agreements.Wherein, exist Common SID is as follows in GMLAN (General Motors in vehicle Local Area Network) agreement:
Diagnostic service function SID
Remove error code 04
Into diagnostic mode 10
Read static data 1A
Return to normal mode 20
Read single dynamic data PID 22
Define dynamic data group DPID 2C
Write static data 3B
Link keeps order 3E
Read dynamic data group DPID AA
ECU control instructions AE
Specifically, include the following steps:
Read data:From database reading numerical values to memory.
Receive request:Receive the request command from GATS.
Resolve command:Control command is parsed according to the order of GMW3110, KWP2000 analysis request and according to control format.
Send response:Send the response message calculated.
Its algorithm is as follows:
(1), SSVT runs the PDL language description of module communication interface function
PROCEDURE runs module communication interface function
Configure communication interface parameters
" reception data thread " is called to pass through hardware acceptance data
" transmission data function " is called to send data by hardware
END PROCEDURE
(2), SSVT runs the PDL language description of module control analytical capabilities
PROCEDURE operation module control analytical capabilities
Prompted to read control sequence number/* TIPS_01=01 according to control:XXX->01
Control command/* 01- are read according to control sequence number>CONTROL_01=PID* ... * PID*MSG* ... * MSG
IF control commands contain PID/* and set numerical value order
Data segment is read, determines ECU or PID numerical value
PID numerical value is write in corresponding ECU data group
END IF
IF control commands contain MSG/* and send information order
Data segment is read, determines CANid or MSG numerical value
MSG numerical value is write in corresponding CANid data groups
Call the cycle to send message threads and send message
END IF
END PROCEDURE
(3), SSVT runs the PDL language description of module request analytical capabilities (GMLAN)
PROCEDURE operation module request parsing (GMLAN) functions
From system read requests message
/ * the 1 step:Parsed (2 kinds) according to request type
IF CANid=$ 101
Feature asks (Functional Request)
ELSE
Point-to-point asks (Point to Point Request)
END IF
/ * the 2 step:(4 kinds) are parsed according to the type of frame
IF Data [1]=$ 10/* (First Frame, FF)
Directly transmit $ 30
ELSE IF Data [1]=30/* (Flow Control, FC)
Directly transmit $ 10
ELSE/* (Consecutive Frame, CF and Single Frame, SF)
Further parsed according to SID
END IF
/ * the 3 step:Parsed (20 kinds) according to service type
The data such as SEED, FLAG, DID, DPID and the PID in memory are read according to ECU
DO CASE
CASE SID=$ 04/* (ClearDiagnosticInformation Service)
Parse a response
……
CASE SID=$ AA/* (ReadDataByPacketIdentifier Service)
00/ $ 01 of IF sub-function=$
Parse a response
02/ $ of ELSE/*sbu-function=$, 03/ $ 04
Call " periodic response thread "
END IF
CASE SID=$ AE/* (Device Control Service)
Parse a response
END CASE
/ * the 4 step:Determine corresponding type of message (2 kinds)
IF SID=$ A9/ $ AA/* (Unacknowledged Segmented Data Transfer)
UUDT values in memory are read according to ECU
ELSE/*(Unacknowledged Unsegmented Data Transfer)
USDT values in memory are read according to ECU
END IF
Response message is sent toward system
END PROCEDURE
(4), SSVT runs the PDL language description of module request parsing (KWP2000) function
PROCEDURE operation module request parsing (KWP2000) functions
A received structure is read from system
/ * the 1 step:The head (three bytes) of request message is obtained by request message structure body
The front two of source address (CString)=head data (long);
The centre two of destination address (CString)=head data (long);
Latter two of form (CString)=head data (long) of head;
The form of the head (CString) of request message=source address (CString)+destination address (CString)+head (CString);
/ * the 2 step:The data of the structure are obtained by request message structure body array
IF 0==M1.ArbIDOrHeader
SRequestFlag=0/* represents that sRequest is complete without completing, and comes next time to continue during message
ELSE IF 0==(UINT) M1.MessagePieceID
The data of eight byte of structure or less than eight bytes are write into sRequest
SRequestFlag=1/*sRequest fillings finish
ELSE IF 1==(UINT) M1.MessagePieceID
According to capitiform formula be 80 or other, judge represent data word joint number byte location and reading
The data of the structure are write into sRequest
Set sRequestFlag=0/* to represent that sRequest is complete without completing, come next time to continue during message
ELSE IF nLength>8* (UINT) M1.MessagePieceID/* illustrates that the structure is not last structure Body
Eight byte datas of the structure are continued into sRequest
Set sRequestFlag=0/* to represent that sRequest is complete without completing, come next time to continue during message
ELSE/* this be last structure
The data of structure are continued into sRequest
SRequestFlag=1/*sRequest fillings finish
END IF
IF sRequestFlag=0
Return system reads next structure
ELSE
Remove request message check code
Obtain the data segment of request message
/ * the 3 step:Analysis request message data, provides response message data
ECU, SID are read from request message sRequest
According to ECU and SID analysis request message datas, response data is provided
DO CASE
CASE SID=0x10/* (Start Diagnostic Session Service)
Program directly gives a secondary response fixed value
……
CASE SID=0x21/* (Read Data By Local Identifier Service)
Response is provided by internal storage data
……
CASE SID=0x30/* (Input/Output Control Service)
Program directly gives a secondary response fixed value
Data writing operation is performed by agreement and request
……
CASE SID=0x3B/* (Write Data by Local Identifier Service)
Response is provided by internal storage data
Data writing operation is performed by agreement and request
……
CASE SID=0x81/* (Start Communication Service)
Response is provided by internal storage data
……
CASE SID=0x82/* (Stop Communication Service)
Program directly gives a secondary response fixed value
END CASE
/ * the 4 step:The head of response message is determined according to the data of the head of request message and response message
Calculate the byte number of response message data
The form of response message head is calculated according to response message byte number
Response message source address=request message destination address
Response message destination address=request message source address
The form of the head of response message=response message source address+response message destination address+head
/ * the 5 step:Response message Array for structural body is set
Write structure state
Write NetworkID
Write data and data byte number
The byte number of writing head and head
For all structure numberings finished writing
/ * the 6 step:Response message Array for structural body is sent to system
The numbered Array for structural body of previous step is sent to system
END PROCEDURE
In one of the embodiments, the step S104, specifically includes:
The drum dynamometer industrial personal computer order is parsed, the drum dynamometer work is obtained from the database pre-saved The corresponding drum dynamometer data of control machine order, the drum dynamometer data are returned to the test industrial personal computer.
The present embodiment implements SBP functions.Its algorithm is specific as follows:
PROCEDURE operation module request parsing (RS232/GM Gen3) functions
/ * the 1 step:From serial ports read requests message
Call the reading serial ports function write using the PComm API set up
The data read are write into a CString variables sRequestMessage
/ * the 2 step:Analysis request message, provides response message
Mode, Message of the message are read from request message sRequestMessage
According to Mode and Message analysis request message, response message is provided
DO CASE
CASE Mode=0x01
Response is parsed by internal storage data
……
CASE Mode=0x04
Directly give a response
……
CASE Mode=0x06
Response is parsed by internal storage data
Row data modification operation is internally deposited into according to agreement regulation and request data
……
CASE SID=0x2A
Periodic response data are parsed according to agreement and internal storage data
END CASE
Calculate data word joint number
Calculate LRC check code Check Sum
Generate response message sResponseMessage=ECUid+Mode+Message+Data+Check Sum
/ * the 3 step:Response message is sent to specified serial ports
The serial ports function of writing write using the API of PComm components is called to send sResponseMessage
END PROCEDURE
In one of the embodiments, the automotive test order is received by car bus interface, the drum test Platform industrial personal computer order is received by serial ports, and the diagnostic response message is sent by car bus interface, the drum dynamometer Data are sent by serial ports.
A kind of construction module figure of simulative automobile device of the present invention is illustrated in figure 2, including:
Order receiver module 201, is used for:The test command for carrying out self-test industrial personal computer is received, the test command includes vapour Car test command or drum dynamometer industrial personal computer order;
Judgment module 202, is used for:If receiving the automotive test order, diagnosis analog module is performed, if connect Drum dynamometer industrial personal computer order is received, then performs rotary drum analog module;
Analog module 203 is diagnosed, is used for:Each electronic control unit of simulated automotive performs phase according to the automotive test order The diagnostic response message or simulation that the diagnostic function answered is returned perform the control response that the automotive test order is returned Message, the diagnostic response message or the control response message are returned to the test industrial personal computer;
Rotary drum analog module 204, is used for:Corresponding drum dynamometer is returned to according to the drum dynamometer industrial personal computer order Data, the drum dynamometer data are returned to the test industrial personal computer.
In one of the embodiments, the diagnosis analog module, specifically includes:
The automotive test order is parsed, determines the type of the automotive test order;
If the type of the automotive test order is request command, electronics control to be asked is parsed from request command Unit processed and treat request type, electronic control unit to be asked is obtained from the database pre-saved on treating request type Corresponding response returns to the diagnostic response message as diagnostic response message to the test industrial personal computer;
If the type of the automotive test order is ordered in order to control, prompted to read control sequence number according to control, according to The control sequence number reads control content, if the control content is setting Numerical Control, from the number of the control content According to obtaining numerical value to be written and electronic control unit to be written in section, into the simulation array of the electronic control unit to be written The numerical value to be written is write, if the control content obtains to send message from the data segment of the control content Information to be sent and automobile bus to be sent mark, using the information to be sent as control response message, to described to be sent The indicated automobile bus of automobile bus mark sends the control response message.
In one of the embodiments, the rotary drum analog module, specifically includes:
The drum dynamometer industrial personal computer order is parsed, the drum dynamometer work is obtained from the database pre-saved The corresponding drum dynamometer data of control machine order, the drum dynamometer data are returned to the test industrial personal computer.
In one of the embodiments, the automotive test order is received by car bus interface, the drum test Platform industrial personal computer order is received by serial ports, and the diagnostic response message is sent by car bus interface, the drum dynamometer Data are sent by serial ports.
A kind of construction module figure of automotive test simulation system of the present invention is illustrated in figure 3, including:Test industrial personal computer 31, Foregoing simulative automobile device 32, car bus interface converter 33 and serial converter 34, the simulative automobile device 32 are communicated to connect by the car bus interface of the car bus interface converter 33 and the test industrial personal computer 31, described Simulative automobile device 32 is connected by the serial converter 34 with the serial communication of the test industrial personal computer 31, the test Industrial personal computer 31 sends automotive test order, receives diagnostic response message and receive control by the car bus interface to be rung Message is answered, the test industrial personal computer 31 sends the order of drum dynamometer industrial personal computer by the serial ports and receives drum dynamometer Data.
As highly preferred embodiment of the present invention, wherein hardware is changed using ODBII Adapter as car bus interface Device 33, using RS232/USB Converter as serial converter 34, is used as communication hardware by neoVI FIRE and connects vapour Car bus interface converter 33 and simulative automobile device 32, simulative automobile device 32 is realized using industrial personal computer, and passes through 12V 60W DC power supply is powered the equipment such as communication hardware.
Design of the simulative automobile device 32 on software is as follows:
1. interface
User interface:Setting, operation and preservation etc. are placed on toolbar, and display is placed in main interface.
External interface:Pass through neoVI FIRE connection simulation system SSVT and test system GATS;Led to by RS232 serial ports Believe connection simulation system SBP and GATS.
Internal interface:SSVT is set by calling dynamic link library (DLL) to realize, preserves dialog box and realize operation function; Without DLL in SBP, the operation function of rotary drum industrial personal computer is only realized.
2. function module
System is divided into two softwares to realize function:SSVT (simulated automotive static test) and SBP (the precious gram rotary drums of simulation Industrial personal computer).
Wherein, SSVT softwares have following 4 function modules
Setup module:Realize and go out from snp file automatic conversions in ini database files and modification inin database files The function of appearance.
Run module:Realize the reading data of system, receive request, resolve command and the work(for sending the processing data such as response Energy.
Display module:Realize the function of various information real-time displays.
Preserving module:Realize the function of being preserved to the data received and dispatched in operation.
Wherein " RUN " module realizes major function, and " setting ", " display " and " preservation " module realizes miscellaneous function.
SBP softwares only run module, realize the reading data of system, receive request, resolve command and send response etc. Handle the function of data.
3. Program Realizing Method:
System is realized using MFC application programs of the Microsoft Visual C++6.0 based on dialog box.SSVT softwares Realized and set and preserving module function using dynamic link library Dialog.DLL respectively;Ports.DLL realizes the number of operation module According to transmission-receiving function;Parse.DLL realizes the data analytical capabilities of operation module.Display module is real directly in SSVT main programs It is existing.SBP softwares only have a main program, realize the function equivalent to interface module and operation module.The ini file of SBP is set It can be realized with modification with the Dialog.DLL of SSVT.
3.1 setup modules design
3.1.1 program description
Setup module program goes out ini database files and modification ini texts primarily to realizing from snp file automatic conversions The function of part content, i.e. conversion function and modification function.Conversion function is only limited to the automobile using GMLAN (CAN) bus Just it can be used when diagnostic data emulates;Change the write operation that function then can be used for all vehicles and the ini file content of rotary drum.
3.1.2 function:
Conversion is set:Ini database files are gone out according to the ECU module title automatic conversions of input snp file names.
Modification is set:Failure is set, transformed data-base content is changed and adds new ECU modules.
3.1 .3 algorithms:
1st, the PDL language description of SSVT setup modules conversion function algorithm
PROCEDURE setup module conversion functions
/ * is run at this time to be started
TIPS is write, in CONTROL data to Control [000_00]/* TIPS_01=XX, Control_01=XX
WHILE
An ECU title is read, is converted to CANid_NETid forms
USDT, UUDT, SEED are write, in SID data to ECU [CANid_NETid]
END WHILE
WHILE
An ECU title is read, is converted to CANid_NETid forms
Open snp files
DID, DPID, PID are write, in SEED data to ECU [CANid_NETid]
Close file
END WHILE
END PROCEDURE
2nd, the PDL language description of SSVT setup modules modification function algorithm
PROCEDURE setup modules change function
/ * is run at this time to be started
IF have input new database-name
Update the data library name
END IF
IF have input new ECU titles
Update the title of ECU
END IF
The content of IF Control or ECU change
New content is write into file according to ECU titles
END IF
END PROCEDURE
3.2 operation module designs
3.2.1 program description:
The program of SSVT operation modules is primarily to realizing the reading data of system, receiving request, resolve command and hair Send the function of the processing data such as response.
SBP softwares realize the reading data of drum dynamometer system, receive request, resolve command and send the processing such as response The function of data, its function are realized in SBP main programs.
Embodiment described above only expresses the several embodiments of the present invention, its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (9)

  1. A kind of 1. simulative automobile method, it is characterised in that including:
    Order receiving step, including:The test command for carrying out self-test industrial personal computer is received, the test command is ordered including automotive test Order or drum dynamometer industrial personal computer order;
    Judgment step, including:If receiving the automotive test order, diagnosis simulation steps are performed, are turned if received Drum testing stand industrial personal computer order, then perform rotary drum simulation steps;
    Simulation steps are diagnosed, including:Each electronic control unit of simulated automotive is performed according to the automotive test order and examined accordingly The diagnostic response message or simulation that disconnected function is returned perform the control response message that the automotive test order is returned, to The test industrial personal computer returns to the diagnostic response message or the control response message;
    Rotary drum simulation steps, including:Corresponding drum dynamometer data are returned to according to the drum dynamometer industrial personal computer order, to The test industrial personal computer returns to the drum dynamometer data.
  2. 2. simulative automobile method according to claim 1, it is characterised in that the diagnosis simulation steps, specifically include:
    The automotive test order is parsed, determines the type of the automotive test order;
    If the type of the automotive test order is request command, is parsed from request command and treat that request electronic control is single Member and treat request type, electronic control unit ask is obtained from the database pre-saved on treating request type correspondence Response as diagnostic response message, return to the diagnostic response message to the test industrial personal computer;
    If the type of the automotive test order is ordered in order to control, prompted to read control sequence number according to control, according to described Sequence number is controlled to read control content, if the control content is setting Numerical Control, from the data segment of the control content Middle acquisition numerical value to be written and electronic control unit to be written, write into the simulation array of the electronic control unit to be written The numerical value to be written, if the control content obtains pending to send message from the data segment of the control content Deliver letters breath and automobile bus to be sent mark, using the information to be sent as control response message, to the automobile to be sent Automobile bus indicated by bus ID sends the control response message.
  3. 3. simulative automobile method according to claim 1, it is characterised in that the rotary drum simulation steps, specifically include:
    The drum dynamometer industrial personal computer order is parsed, the drum dynamometer industrial personal computer is obtained from the database pre-saved Corresponding drum dynamometer data are ordered, the drum dynamometer data are returned to the test industrial personal computer.
  4. 4. according to claims 1 to 3 any one of them simulative automobile method, it is characterised in that the automotive test order is led to Car bus interface reception is crossed, the drum dynamometer industrial personal computer order is received by serial ports, and the diagnostic response message passes through Car bus interface is sent, and the drum dynamometer data are sent by serial ports.
  5. A kind of 5. simulative automobile device, it is characterised in that including:
    Order receiver module, is used for:The test command for carrying out self-test industrial personal computer is received, the test command is ordered including automotive test Order or drum dynamometer industrial personal computer order;
    Judgment module, is used for:If receiving the automotive test order, diagnosis analog module is performed, is turned if received Drum testing stand industrial personal computer order, then perform rotary drum analog module;
    Analog module is diagnosed, is used for:Each electronic control unit of simulated automotive is performed according to the automotive test order and examined accordingly The diagnostic response message or simulation that disconnected function is returned perform the control response message that the automotive test order is returned, to The test industrial personal computer returns to the diagnostic response message or the control response message;
    Rotary drum analog module, is used for:Corresponding drum dynamometer data are returned to according to the drum dynamometer industrial personal computer order, to The test industrial personal computer returns to the drum dynamometer data.
  6. 6. simulative automobile device according to claim 5, it is characterised in that the diagnosis analog module, specifically includes:
    The automotive test order is parsed, determines the type of the automotive test order;
    If the type of the automotive test order is request command, is parsed from request command and treat that request electronic control is single Member and treat request type, electronic control unit ask is obtained from the database pre-saved on treating request type correspondence Response as diagnostic response message, return to the diagnostic response message to the test industrial personal computer;
    If the type of the automotive test order is ordered in order to control, prompted to read control sequence number according to control, according to described Sequence number is controlled to read control content, if the control content is setting Numerical Control, from the data segment of the control content Middle acquisition numerical value to be written and electronic control unit to be written, write into the simulation array of the electronic control unit to be written The numerical value to be written, if the control content obtains pending to send message from the data segment of the control content Deliver letters breath and automobile bus to be sent mark, using the information to be sent as control response message, to the automobile to be sent Automobile bus indicated by bus ID sends the control response message.
  7. 7. simulative automobile device according to claim 5, it is characterised in that the rotary drum analog module, specifically includes:
    The drum dynamometer industrial personal computer order is parsed, the drum dynamometer industrial personal computer is obtained from the database pre-saved Corresponding drum dynamometer data are ordered, the drum dynamometer data are returned to the test industrial personal computer.
  8. 8. according to claim 5~7 any one of them simulative automobile device, it is characterised in that the automotive test order is led to Car bus interface reception is crossed, the drum dynamometer industrial personal computer order is received by serial ports, and the diagnostic response message passes through Car bus interface is sent, and the drum dynamometer data are sent by serial ports.
  9. A kind of 9. automotive test simulation system, it is characterised in that including:Test industrial personal computer, such as any one of claim 5~8 institute Simulative automobile device, car bus interface converter and the serial converter stated, the simulative automobile device pass through the automobile Bus interface converter and the car bus interface of the test industrial personal computer communicate to connect, and the simulative automobile device passes through described Serial converter is connected with the serial communication of the test industrial personal computer, and the test industrial personal computer is sent out by the car bus interface Automotive test order is sent, receive diagnostic response message and receives control response message, the test industrial personal computer passes through the string Mouth transmission drum dynamometer industrial personal computer order and reception drum dynamometer data.
CN201610584718.9A 2016-07-22 2016-07-22 A kind of simulative automobile method, apparatus and automotive test simulation system Active CN106053098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610584718.9A CN106053098B (en) 2016-07-22 2016-07-22 A kind of simulative automobile method, apparatus and automotive test simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610584718.9A CN106053098B (en) 2016-07-22 2016-07-22 A kind of simulative automobile method, apparatus and automotive test simulation system

Publications (2)

Publication Number Publication Date
CN106053098A CN106053098A (en) 2016-10-26
CN106053098B true CN106053098B (en) 2018-05-08

Family

ID=57416817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610584718.9A Active CN106053098B (en) 2016-07-22 2016-07-22 A kind of simulative automobile method, apparatus and automotive test simulation system

Country Status (1)

Country Link
CN (1) CN106053098B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107024926B (en) * 2017-06-13 2024-01-05 安徽省爱夫卡电子科技有限公司 Simulation system and simulation method of automobile ECU
CN107577215A (en) * 2017-07-31 2018-01-12 芜湖宏景电子股份有限公司 A kind of test system of simulated automotive electronic unit CAN functions
US11295560B2 (en) 2018-08-01 2022-04-05 Ford Global Technologies, Llc Cloud-managed validation and execution for diagnostic requests
CN109782748A (en) * 2019-03-19 2019-05-21 广州瑞修得信息科技有限公司 A kind of fault data simulation method for generation and device
CN110262451A (en) * 2019-06-17 2019-09-20 爱驰汽车有限公司 A kind of simulating vehicle fault testing method and device
US11561873B2 (en) * 2019-09-26 2023-01-24 General Electric Company Test equipment interface add-on having a production support equipment module and a selectively removable test support equipment module
CN111459616B (en) * 2020-04-02 2024-04-23 北京牛电信息技术有限责任公司 Test method, device, equipment and storage medium
CN113835406B (en) * 2020-06-08 2024-05-03 上海汽车集团股份有限公司 Test platform and test method for testing fuel filling management system controller
CN111858319B (en) * 2020-07-02 2021-12-10 天筑科技股份有限公司 Method and device for testing monitoring unit
CN114074697A (en) * 2020-08-12 2022-02-22 比亚迪股份有限公司 Fep simulator, industrial personal computer and rail transit comprehensive monitoring simulation system
CN116224976B (en) * 2023-05-08 2023-08-25 北京集度科技有限公司 Test method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023922A (en) * 2010-12-28 2011-04-20 重庆恩菲斯软件有限公司 System and method for testing automotive electronic diagnostic software
CN102231079A (en) * 2011-05-19 2011-11-02 同济大学 Method for testing vehicular electric control system based on real vehicle running state dynamic real-time playback
CN103293008A (en) * 2013-06-27 2013-09-11 长城汽车股份有限公司 Automobile diagnosing device
CN104483959A (en) * 2014-11-04 2015-04-01 普华基础软件股份有限公司 Fault simulation and test system
CN105224447A (en) * 2014-06-11 2016-01-06 联创汽车电子有限公司 Engine controller software diagnosis module test method and test macro
CN105573296A (en) * 2016-01-15 2016-05-11 上海汽车变速器有限公司 Hardware-in-loop-based automation test system for automobile diagnosis, and method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2026288A3 (en) * 2007-08-03 2010-11-24 Denso Corporation Electronic control system and method for vehicle diagnosis

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023922A (en) * 2010-12-28 2011-04-20 重庆恩菲斯软件有限公司 System and method for testing automotive electronic diagnostic software
CN102231079A (en) * 2011-05-19 2011-11-02 同济大学 Method for testing vehicular electric control system based on real vehicle running state dynamic real-time playback
CN103293008A (en) * 2013-06-27 2013-09-11 长城汽车股份有限公司 Automobile diagnosing device
CN105224447A (en) * 2014-06-11 2016-01-06 联创汽车电子有限公司 Engine controller software diagnosis module test method and test macro
CN104483959A (en) * 2014-11-04 2015-04-01 普华基础软件股份有限公司 Fault simulation and test system
CN105573296A (en) * 2016-01-15 2016-05-11 上海汽车变速器有限公司 Hardware-in-loop-based automation test system for automobile diagnosis, and method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于K总线的汽车静态测试仪高效调试;王明非等;《汽车工程学报》;20120331;第2卷(第2期);第113-120页 *

Also Published As

Publication number Publication date
CN106053098A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106053098B (en) A kind of simulative automobile method, apparatus and automotive test simulation system
CN107135210B (en) Automobile simulation communication protocol analyzer and analysis method thereof
US9009013B2 (en) Method and device for verification of an automation system
US7275184B2 (en) Software verification method for control units and verification system
CN107450354B (en) Interface simulation system of train control vehicle-mounted equipment and train control data testing method
US20070287135A1 (en) 3d vehicle simulator system and simulation method for ecu embedded system
CN113189970B (en) Hardware-in-loop automatic test method and system of CAN bus controller and storage medium
KR101209069B1 (en) Debuggging Apparatus For CAN Communication Diagnosis Device
CN107256014A (en) A kind of vehicle automated diagnostic tester system based on automatic editor's cycle tests
Skruch et al. Model-Based Testing in Embedded Automotive Systems.
CN211403232U (en) Hardware-in-loop test system of vehicle control unit
CN201673405U (en) Device used for testing electronic control system of automobile
CN201812197U (en) Device for testing automobile electronic control system
CN201229233Y (en) Automatic test and analysis system for automobile engine synthesis analyzer based on network
CN110843705A (en) Vehicle-mounted CAN bus monitoring system
CN111142497A (en) Test system and method for vehicle-mounted application software
CN115185258A (en) HIL simulation test system and method suitable for vehicle control unit
CN201673404U (en) Testing device of automobile electronic control system
Martinus et al. Virtual test driving hardware-independent integration of series software
CN111448562A (en) Analog diagnosis method, device and readable storage medium
CN201945883U (en) Testing device of automotive electronic control system
CN117973076B (en) Simulation system and method based on virtual-real coupling
Lopes et al. Use of HIL Simulation Applied to Verification of Automotive Fuel Level Indicator During Refueling Process
CN114415629A (en) Bench test method for upgrading precondition of automobile remote upgrading
CN201909993U (en) Test device of automotive electronic control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant