CN106053098A - Automobile simulation method and device, and automobile test simulation system - Google Patents

Automobile simulation method and device, and automobile test simulation system Download PDF

Info

Publication number
CN106053098A
CN106053098A CN201610584718.9A CN201610584718A CN106053098A CN 106053098 A CN106053098 A CN 106053098A CN 201610584718 A CN201610584718 A CN 201610584718A CN 106053098 A CN106053098 A CN 106053098A
Authority
CN
China
Prior art keywords
test
order
industrial computer
data
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.)
Granted
Application number
CN201610584718.9A
Other languages
Chinese (zh)
Other versions
CN106053098B (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

Abstract

The present invention discloses an automobile simulation method and device, and an automobile test simulation system. The method comprises: receiving a test command from a test industrial personal computer, wherein the test command includes an automobile test command or a chassis dynamometer industrial personal computer command; if the automobile test command is received, executing a simulation step, and if the chassis dynamometer industrial personal computer command is received, executing a chassis dynamometer simulation step; performing a diagnosis simulation step including simulating each electric unit of the automobile to execute the diagnosis response message returned back by the corresponding diagnosis function or simulating the control response message returned back by executing the automobile test command according to the automobile test command, and returning back corresponding message to the rest industrial personal computer or controlling the response message; and performing a drum simulation step including returning back corresponding chassis dynamometer data according to the chassis dynamometer industrial personal computer command, and returning back the chassis dynamometer data to the test industrial personal computer. Various required signals are supplied to the test system GATS for debugging so as to accelerate the debugging work of the GATS.

Description

A kind of simulative automobile method, device and automotive test analog systems
Technical field
The present invention relates to automobile correlative technology field, particularly a kind of simulative automobile method, device and automotive test simulation System.
Background technology
Existing all sample cars are verified, learn and tested is all that the experiment vehicle by trial-production carries out object authentication, tool The means of testing of body is to be placed in rotary drum test equipment by real experiment vehicle, then uses general general assembly to test system (General Assembly Test System, GATS) sends test command to experiment vehicle, and such as diagnosis request, control carry Show, by obtain experiment vehicle returned diagnostic response, driver according to prompting perform operation rear vehicle return control The drum dynamometer data of response and industrial computer Real-time Collection are as test result.
Above-mentioned test mode needs the experiment vehicle of entity, and its testing time length, experimental cost are high.
Summary of the invention
Based on this, it is necessary to need the experiment vehicle of entity for existing test mode, cause testing time length, reality Test the technical problem that cost is high, it is provided that a kind of simulative automobile method, device and automotive test analog systems.
The present invention provides a kind of simulative automobile method, including:
Order receiving step, including: receiving the test command of self-test industrial computer, described test command includes that automobile is surveyed Examination order or drum dynamometer industrial computer order;
Judge step, including: if receiving described automotive test order, then perform diagnosis simulation steps, if received To drum dynamometer industrial computer order, then perform rotary drum simulation steps;
Diagnosis simulation steps, including: each electronic control unit of simulated automotive performs corresponding according to described automotive test order The diagnostic response message that returned of diagnostic function or simulation perform the control response that described automotive test order returned and disappear Breath, returns described diagnosis corresponding message or described control response message to described test industrial computer;
Rotary drum simulation steps, including: return corresponding drum test number of units according to described drum dynamometer industrial computer order According to, return described drum dynamometer data to described test industrial computer.
The present invention provides a kind of simulative automobile device, including:
Order receiver module, is used for: receiving the test command of self-test industrial computer, described test command includes that automobile is surveyed Examination order or drum dynamometer industrial computer order;
Judge module, is used for: if receiving described automotive test order, then perform diagnosis analog module, if received To drum dynamometer industrial computer order, then perform rotary drum analog module;
Diagnosis analog module, is used for: each electronic control unit of simulated automotive performs corresponding according to described automotive test order The diagnostic response message that returned of diagnostic function or simulation perform the control response that described automotive test order returned and disappear Breath, returns described diagnosis corresponding message or described control response message to described test industrial computer;
Rotary drum analog module, is used for: return corresponding drum test number of units according to described drum dynamometer industrial computer order According to, return described drum dynamometer data to described test industrial computer.
The present invention provides a kind of automotive test analog systems, including: test industrial computer, foregoing simulative automobile dress Put, car bus interface transducer and serial converter, described simulative automobile device passes through described car bus interface transducer Communicating to connect with the car bus interface of described test industrial computer, described simulative automobile device passes through described serial converter and institute The serial communication stating test industrial computer connects, and described test industrial computer sends automotive test by described car bus interface and orders Making, receive diagnostic response message and receive control response message, described test industrial computer sends rotary drum by described serial ports and tries Test platform industrial computer order and receive drum dynamometer data.
The simulative automobile scheme of the present invention, each electronic control unit of simulated automotive performs phase according to described automotive test order Diagnostic response message or simulation that the diagnostic function answered is returned perform the control response that described automotive test order is returned Message, returns described diagnosis corresponding message or described control response message, or rotary drum simulation steps to described test industrial computer, Including: return corresponding drum dynamometer data according to described drum dynamometer industrial computer order, return to described test industrial computer Return described drum dynamometer data, provide various signals required when 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 driving The operation that the person of sailing is done according to prompting, and the drum dynamometer data of industrial computer Real-time Collection, thus accelerate software debugging mistake Journey, the most time saving and energy saving economical and efficient again.
Accompanying drawing explanation
Fig. 1 is the workflow diagram of the present invention a kind of simulative automobile method;
Fig. 2 is the construction module figure of the present invention a kind of simulative automobile device;
Fig. 3 is the construction module figure of the present invention a kind of automotive test analog systems.
Detailed description of the invention
The present invention will be further described in detail with specific embodiment below in conjunction with the accompanying drawings.
It is illustrated in figure 1 the workflow diagram of the present invention a kind of simulative automobile method, including:
Step S101, including: receiving the test command of self-test industrial computer, described test command includes that automotive test is ordered Order or drum dynamometer industrial computer order;
Step S102, including: if receiving described automotive test order, then performing step S103, turning if received Drum testing stand industrial computer order, then perform step S104;
Step S103, including: each electronic control unit of simulated automotive performs to examine accordingly according to described automotive test order Diagnostic response message or simulation that disconnected function is returned perform the control response message that described automotive test order is returned, to Described test industrial computer returns described diagnosis corresponding message or described control response message;
Step S104, including: return corresponding drum dynamometer data according to described drum dynamometer industrial computer order, to Described test industrial computer returns described drum dynamometer data.
Step S101 receives test command from test industrial computer GATS, and then step S102 judges, if vapour Car test command, then the diagnostic function or the simulation that perform step S103 simulated automotive ECU perform to order return to control response and disappear Breath, this function is simulated automotive static test (Simulation on SVT, SSVT), if drum dynamometer industrial computer life Order, then perform step S104 and directly return the drum dynamometer data of correspondence, and this function is the precious gram rotary drum industrial computer of simulation (Simulation on BP, SBP).
By step S103 and step S104 simulation test vehicle and test equipment, allow the test program of test industrial computer (Design Verification Test, DVT) can be carried out in the case of not having real vehicle.Simultaneously, moreover it is possible to simulating vehicle lacks Falling into, DVT test program is revised in test.Can pass through diagnosing protocol self-defined ECU module, multiple ECU of simulation can add simultaneously Carry, unload and preserve.Specifically, generate and amendment ini database file by arranging module, according to the lattice that each agreement is corresponding Formula amendment and interpolation data base, this database file content determines protocol type, ECU module and each bar that this 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.Can load with self-defining communication protocol, Unloading and preservation, can load during communication simultaneously, unload several communication protocol.Can be with Keyboard Control, accelerator open degree, brake pedal Position, PRNDL gear, clutch position.Specifically, accelerator open degree, brake pedal position, PRNDL gear, clutch position All feed back with corresponding pid value inside ECU etc. information, by corresponding PID in user's interface keyboard amendment ini data base Value, simulates the above signal data controlled on real vehicle.Can be with customizing keyboard and the position of corresponding analog device thereof, button rings Increment change should be produced, and change the digital quantity of corresponding DPID.Specifically, by arranging control in user interface, Yong Hujian In dish button and ini data base, pid value obtains corresponding relation, realizes the position of customizing keyboard machine correspondence analog device.Its Middle DPID is the combination of the self-defining PID of ECU, and the essence of amendment DPID is as amendment PID.The speed of 4 wheels of display, adds Speed, accelerator open degree, brake pedal position, PRNDL gear, clutch position.Concrete, by the display control of user interface The PID such as wheel speed in part, with ini data base, acceleration, accelerator open degree, brake pedal position, PRNDL gear, clutch position Value is associated, it is achieved show the status information of above-mentioned simulation control in real time.Generation DTC can be simulated, can open with unrestricted choice Close all the sensors for simulating vehicle fault.Concrete, when some fault occurs in vehicle, DTC can be produced and be stored in automobile ECU internal memory, test industrial computer can read this code by reading code instruction.In analog systems, if reading code order in ini data base Arranging DTC in corresponding data, when testing industrial computer and sending reading code instruction, the DTC in ini data base is read and quilt Test industrial computer shows.
The property indices of vehicle and floor data can be real-time transmitted to each ECU, and come the most anti-by a large amount of pid values Feedback, test industrial computer, by constantly reading the pid value of automobile ECU, judges that automobile indices is the most normal.Analog systems By amendment pid value, come whether validation test program can correctly read data, and send the prompting that reports an error when data exception, from And in the case of there is no vehicle, test program is carried out debug.
The present invention provides various signals required when debugging for test system GATS, to accelerate the debugging efforts of GATS. The operation that the diagnostic function of each ECU of simulated object automobile and driver are done according to prompting, and the turning of industrial computer Real-time Collection Drum testing stand data, thus accelerate software debugging process, the most time saving and energy saving economical and efficient again.
Wherein in an embodiment, described step S103, specifically include:
Resolve described automotive test order, determine the type of described automotive test order;
If the type of described automotive test order is request command, then from request command, parse electronics control to be asked Unit processed and treat request type, obtains electronic control unit to be asked about treating request type from the data base pre-saved Corresponding response value, as diagnostic response message, returns described diagnostic response message to described test industrial computer;
If the type of described automotive test order is control command, then according to controlling prompting reading control sequence number, according to Described control sequence number reads and controls content, if described control content is for arranging numerical control, then from the number of described control content According to section obtains numerical value to be written and electronic control unit to be written, in the simulation array of described electronic control unit to be written Write described numerical value to be written, if described control content is for sending message, then obtain from the data segment of described control content Information to be sent and automobile bus to be sent mark, using described information to be sent as controlling response message, to described to be sent Automobile bus indicated by automobile bus mark sends described control response message.
During a common vehicle detection, detection equipment sends various instruction to vehicle ECU, and ECU is according to vehicle Actual condition and internal logic, feed back data according to given protocol form, and detection equipment is carried out into one according to this feedback data Step interactive correspondence, or make the judgement of test result.
In the present embodiment, first set up a data source ini file, in this data source, included by bus identification information Communication stitch (determining any bar physical bus), CAN ID (determining the communication data with which ECU) and SID order, corresponding Unique ECU feedback data.This data source can be converted from historical test data text obtained by the module that arranges of program, or It is manually entered.Then the instruction sent according to test industrial computer, obtains the feedback data of correspondence from text data library inquiry, and Send out this data to test industrial computer, thus realize simulating vehicle ECU.
Wherein, numerical value is set and refers to that testing industrial computer sends DID value in the corresponding command rewriting ECU to ECU.DID value is needing Can read by tested industrial computer when of wanting, such as car identification code in age VIN, the information such as ECU Part No..It addition, a control disappears Breath, contains bus identification information (using that bus in order to determining), CAN ID (which ECU in order to determine in bus) And specifically control content information, send to this bus from test industrial computer after packing, certain corresponding to this CAN ID in this bus After individual ECU receives this control message, by this bus to test industrial computer feedback control response message, including normally receiving or Refusal performs.
SID i.e. service identifiers (Service Identifier), has different definition in different agreements.Wherein, exist SID conventional in GMLAN (General Motors in vehicle Local Area Network) agreement is as follows:
Diagnosis Service function SID
Remove DTC 04
Enter diagnostic mode 10
Read static data 1A
Return normal mode 20
Read single dynamic data PID 22
Definition dynamic data group DPID 2C
Write static data 3B
Link keeps order 3E
Read dynamic data group DPID AA
ECU control instruction AE
Specifically, comprise the steps:
Read data: from data base reading numerical values to internal memory.
Receive request: receive the request command from GATS.
Resolve command: resolve control command according to GMW3110, KWP2000 analysis request order with 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
Configuration communication interface parameters
Call " reception data thread " by hardware acceptance data
Call " transmission data function " and send data by hardware
END PROCEDURE
(2), SSVT runs the PDL language description of module control analytical capabilities
PROCEDURE runs module and controls analytical capabilities
Control sequence number/* TIPS_01=01:XXX-> 01 is read according to controlling prompting
Control command/* 01-> CONTROL_01=PID* is read ... * PID*MSG* ... * MSG according to controlling sequence number
IF control command contains PID/* and arranges numerical value order
Read data segment, determine ECU or PID numerical value
PID numerical value is write in corresponding ECU data group
END IF
IF control command contains MSG/* and sends information order
Read data segment, determine CANid or MSG numerical value
MSG numerical value is write in corresponding CANid data set
Cycle of calling sends message threads and sends message
END IF
END PROCEDURE
(3), SSVT runs the PDL language description of module request analytical capabilities (GMLAN)
PROCEDURE runs module request and resolves (GMLAN) function
From system read requests message
/ * the 1 step: resolve (2 kinds) according to request type
IF CANid=$ 101
Functional request (Functional Request)
ELSE
Point-to-point request (Point to Point Request)
END IF
/ * the 2 step: resolve (4 kinds) 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)
Resolve further according to SID
END IF
/ * the 3 step: resolve (20 kinds) according to COS
According to data such as SEED, FLAG, DID, DPID and the PID in ECU reading internal memory
DO CASE
CASE SID=$ 04/* (ClearDiagnosticInformation Service)
Parse a response value
……
CASE SID=$ AA/* (ReadDataByPacketIdentifier Service)
IF sub-function=$ 00/ $ 01
Parse a response value
ELSE/*sbu-function=$ 02/ $ 03/ $ 04
Call " periodic response thread "
END IF
CASE SID=$ AE/* (Device Control Service)
Parse a response value
END CASE
/ * the 4 step: determine corresponding type of message (2 kinds)
IF SID=$ A9/ $ AA/* (Unacknowledged Segmented Data Transfer)
UUDT value in internal memory is read according to ECU
ELSE/*(Unacknowledged Unsegmented Data Transfer)
USDT value in internal memory is read according to ECU
END IF
Response message is sent toward system
END PROCEDURE
(4), SSVT runs module request and resolves the PDL language description of (KWP2000) function
PROCEDURE runs module request and resolves (KWP2000) function
A structure received is read from system
/ * the 1 step: obtained asking the head (three bytes) of message by request message structure body
The front two of source address (CString)=head data (long);
Two, the centre of destination address (CString)=head data (long);
Latter two of form (the CString)=head data (long) of head;
The form of head (CString)=source address (CString)+destination address (the CString)+head of request message (CString);
/ * the 2 step: obtained the data of this structure by request message structure body array
IF 0==M1.ArbIDOrHeader
SRequestFlag=0/* represents that sRequest is unkitted and completes complete, continues during message next time
ELSE IF 0==(UINT) M1.MessagePieceID
The data of this structure eight byte or less than eight bytes are write sRequest
SRequestFlag=1/*sRequest filling is complete
ELSE IF 1==(UINT) M1.MessagePieceID
According to capitiform formula be 80 or other, it is judged that represent the byte location of data word joint number and read
The data of this structure are write sRequest
Arrange sRequestFlag=0/* to represent that sRequest is unkitted and complete complete, continue during message next time
ELSE IF nLength > 8* (UINT) M1.MessagePieceID/* illustrates that this structure is not last knot Structure body
Eight byte datas of this structure are continued into sRequest
Arrange sRequestFlag=0/* to represent that sRequest is unkitted and complete complete, continue during message next time
ELSE/* this be last structure
The data of structure are continued into sRequest
SRequestFlag=1/*sRequest filling is complete
END IF
IF sRequestFlag=0
Return system reads next structure
ELSE
Remove request message error detection code
Obtain asking the data segment of message
/ * the 3 step: analysis request message data, provides response message data
ECU, SID is read from request message sRequest
According to ECU and SID analysis request message data, provide response data
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)
A response value is given 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)
A response value is given by internal storage data
Data writing operation is performed by agreement and request
……
CASE SID=0x81/* (Start Communication Service)
A response value is given by internal storage data
……
CASE SID=0x82/* (Stop Communication Service)
Program directly gives a secondary response fixed value
END CASE
/ * the 4 step: determine the head of response message according to the head of request message and the data of 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 targets of messages 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
Writing head and the byte number of head
Number for all structures finished writing
/ * the 6 step: send response message Array for structural body to system
The Array for structural body that previous step has been numbered is sent to system
END PROCEDURE
Wherein in an embodiment, described step S104, specifically include:
Resolve described drum dynamometer industrial computer order, from the data base pre-saved, obtain described drum dynamometer work The drum dynamometer data that control machine order is corresponding, return described drum dynamometer data to described test industrial computer.
The present embodiment implements SBP function.Its algorithm is specific as follows:
PROCEDURE runs module request and resolves (RS232/GM Gen3) function
/ * the 1 step: from serial ports read requests message
Call the reading serial ports function that the API utilizing PComm to set up writes
Data one the CString variable sRequestMessage of write that will read
/ * the 2 step: analysis request message, provides response message
Mode, Message of this message is read from request message sRequestMessage
According to Mode and Message analysis request message, provide response message
DO CASE
CASE Mode=0x01
A response value is parsed by internal storage data
……
CASE Mode=0x04
Directly give a response value
……
CASE Mode=0x06
A response value 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: be sent to response message specify serial ports
Call the serial ports function of writing utilizing the API of PComm assembly to write and send sResponseMessage
END PROCEDURE
Wherein in an embodiment, described automotive test order is received by car bus interface, described drum test Platform industrial computer order is received by serial ports, and described diagnostic response order is sent by car bus interface, described drum dynamometer Data are sent by serial ports.
It is illustrated in figure 2 the construction module figure of the present invention a kind of simulative automobile device, including:
Order receiver module 201, is used for: receiving the test command of self-test industrial computer, described test command includes vapour Car test command or drum dynamometer industrial computer order;
Judge module 202, is used for: if receiving described automotive test order, then perform diagnosis analog module, if connect Receive drum dynamometer industrial computer order, then perform rotary drum analog module;
Diagnosis analog module 203, is used for: each electronic control unit of simulated automotive performs phase according to described automotive test order Diagnostic response message or simulation that the diagnostic function answered is returned perform the control response that described automotive test order is returned Message, returns described diagnosis corresponding message or described control response message to described test industrial computer;
Rotary drum analog module 204, is used for: return corresponding drum dynamometer according to described drum dynamometer industrial computer order Data, return described drum dynamometer data to described test industrial computer.
Wherein in an embodiment, described diagnosis analog module, specifically include:
Resolve described automotive test order, determine the type of described automotive test order;
If the type of described automotive test order is request command, then from request command, parse electronics control to be asked Unit processed and treat request type, obtains electronic control unit to be asked about treating request type from the data base pre-saved Corresponding response value, as diagnostic response message, returns described diagnostic response message to described test industrial computer;
If the type of described automotive test order is control command, then according to controlling prompting reading control sequence number, according to Described control sequence number reads and controls content, if described control content is for arranging numerical control, then from the number of described control content According to section obtains numerical value to be written and electronic control unit to be written, in the simulation array of described electronic control unit to be written Write described numerical value to be written, if described control content is for sending message, then obtain from the data segment of described control content Information to be sent and automobile bus to be sent mark, using described information to be sent as controlling response message, to described to be sent Automobile bus indicated by automobile bus mark sends described control response message.
Wherein in an embodiment, described rotary drum analog module, specifically include:
Resolve described drum dynamometer industrial computer order, from the data base pre-saved, obtain described drum dynamometer work The drum dynamometer data that control machine order is corresponding, return described drum dynamometer data to described test industrial computer.
Wherein in an embodiment, described automotive test order is received by car bus interface, described drum test Platform industrial computer order is received by serial ports, and described diagnostic response order is sent by car bus interface, described drum dynamometer Data are sent by serial ports.
It is illustrated in figure 3 the construction module figure of the present invention a kind of automotive test analog systems, including: test industrial computer 31, Foregoing simulative automobile device 32, car bus interface transducer 33 and serial converter 34, described simulative automobile device 32 are communicated to connect by the car bus interface of described car bus interface transducer 33 with described test industrial computer 31, described vapour Car analog 32 is connected by the serial communication of described serial converter 34 with described test industrial computer 31, described test industry control Machine 31 sends automotive test order, reception diagnostic response message and reception control response by described car bus interface and disappears Breath, described test industrial computer 31 sends drum dynamometer industrial computer order by described serial ports and receives drum test number of units According to.
As highly preferred embodiment of the present invention, wherein hardware uses ODBII Adapter to change as car bus interface Device 33, uses RS232/USB Converter as serial converter 34, connects vapour by neoVI FIRE as communication hardware Car EBI transducer 33 and simulative automobile device 32, simulative automobile device 32 uses industrial computer to realize, and by 12V 60W The equipment such as communication hardware are powered by DC source.
The simulative automobile device 32 design on software is as follows:
1. interface
User interface: arranging, run and preservation etc. is placed on toolbar, display is placed on main interface.
External interface: connect analog systems SSVT and test system GATS by neoVI FIRE;Led to by RS232 serial ports Letter connection analog systems SBP and GATS.
Internal interface: SSVT realizes arranging, preserving dialog box and realize operation function by calling dynamic link library (DLL); Without DLL in SBP, only realize the operation function of rotary drum industrial computer.
2. functional module
System is divided into two softwares to realize function: SSVT (simulated automotive static test) and SBP (the precious gram rotary drum of simulation Industrial computer).
Wherein, SSVT software has following 4 functional modules
Module is set: realize automatically changing out ini database file and amendment inin database file content from snp file Function.
Run module: realize the reading data of system, receive the merit of the process data such as request, resolve command and transmission response Energy.
Display module: realize the function that various information shows in real time.
Preserve module: realize the function that the data of transmitting-receiving in running are preserved.
Wherein " RUN " module realizes major function, and " setting ", " display " and " preservation " module realizes miscellaneous function.
SBP software only runs module, it is achieved the reading data of system, reception request, resolve command and transmission response etc. Process the function of data.
3. Program Realizing Method:
System uses Microsoft Visual C++6.0 MFC based on dialog box application program to realize.SSVT software Dynamic link library Dialog.DLL is used to realize arranging and preserving functions of modules respectively;Ports.DLL realizes running the number of module According to transmission-receiving function;Parse.DLL realizes running the data parsing function of module.Display module is directly real in SSVT mastery routine Existing.SBP software only one of which mastery routine, it is achieved be equivalent to interface module and run the function of module.The ini file of SBP is arranged Can realize with the Dialog.DLL of SSVT with amendment.
3.1 arrange module design
3.1.1 program description
Modular program is set primarily to realize automatically changing out ini database file and amendment ini literary composition from snp file The function of part content, i.e. translation function and amendment function.Translation function is only limited to the automobile using GMLAN (CAN) bus Just can use during diagnosis data simulation;Amendment function then can be used for the write operation of the ini file content of all vehicles and rotary drum.
3.1.2 function:
Conversion is set: automatically change out ini database file according to the ECU module title of input snp file name.
Amendment is set: arrange fault, the data-base content after amendment conversion and the new ECU module of interpolation.
3.1.3 algorithm:
1, SSVT arranges the PDL language description of module translation function algorithm
PROCEDURE arranges module translation function
/ * now runs and cannot start
Write TIPS, CONTROL data in Control [000_00]/* TIPS_01=XX, Control_01=XX
WHILE
Read an ECU title, be converted to CANid_NETid form
Write USDT, in UUDT, SEED, SID data to ECU [CANid_NETid]
END WHILE
WHILE
Read an ECU title, be converted to CANid_NETid form
Open snp file
Write DID, in DPID, PID, SEED data to ECU [CANid_NETid]
Close closed file
END WHILE
END PROCEDURE
2, SSVT arranges the PDL language description of module amendment function algorithm
PROCEDURE arranges module amendment function
/ * now runs and cannot start
IF have input new database-name
Update database-name
END IF
IF have input new ECU title
Update the title of ECU
END IF
The content of IF Control or ECU changes
New content is write in file according to ECU title
END IF
END PROCEDURE
3.2 run module design
3.2.1 program description:
SSVT runs the program of module primarily to realize the reading data of system, receive request, resolve command and send out Response etc. is sent to process the function of data.
SBP software realizes the reading data of drum dynamometer system, receives the process such as request, resolve command and transmission response The function of data, its function realizes in SBP mastery routine.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, but also Therefore the restriction to the scope of the claims of the present invention can not 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, it is also possible to make some deformation and improvement, these broadly fall into the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (9)

1. a simulative automobile method, it is characterised in that including:
Order receiving step, including: receiving the test command of self-test industrial computer, described test command includes that automotive test is ordered Order or drum dynamometer industrial computer order;
Judge step, including: if receiving described automotive test order, then performing diagnosis simulation steps, turning if received Drum testing stand industrial computer order, then perform rotary drum simulation steps;
Diagnosis simulation steps, including: each electronic control unit of simulated automotive performs to examine accordingly according to described automotive test order Diagnostic response message or simulation that disconnected function is returned perform the control response message that described automotive test order is returned, to Described test industrial computer returns described diagnosis corresponding message or described control response message;
Rotary drum simulation steps, including: return corresponding drum dynamometer data according to described drum dynamometer industrial computer order, to Described test industrial computer returns described drum dynamometer data.
Simulative automobile method the most according to claim 1, it is characterised in that described diagnosis simulation steps, specifically includes:
Resolve described automotive test order, determine the type of described automotive test order;
If the type of described automotive test order is request command, then from request command, parse Electronic Control list to be asked Unit and treat request type, obtain from the data base pre-saved electronic control unit ask about treat request type correspondence Response value as diagnostic response message, return described diagnostic response message to described test industrial computer;
If the type of described automotive test order is control command, then according to controlling prompting reading control sequence number, according to described Control sequence number and read control content, if described control content is for arranging numerical control, then from the data segment of described control content Middle acquisition numerical value to be written and electronic control unit to be written, write in the simulation array of described electronic control unit to be written Described numerical value to be written, if described control content is for sending message, then obtains pending from the data segment of described control content Deliver letters breath and automobile bus to be sent mark, will described information to be sent as control response message, to described automobile to be sent Automobile bus indicated by bus ID sends described control response message.
Simulative automobile method the most according to claim 1, it is characterised in that described rotary drum simulation steps, specifically includes:
Resolve described drum dynamometer industrial computer order, from the data base pre-saved, obtain described drum dynamometer industrial computer The drum dynamometer data that order is corresponding, return described drum dynamometer data to described test industrial computer.
4. according to the simulative automobile method described in any one of claims 1 to 3, it is characterised in that described automotive test order is led to Crossing car bus interface to receive, described drum dynamometer industrial computer order is received by serial ports, and described diagnostic response order is passed through Car bus interface sends, and described drum dynamometer data are sent by serial ports.
5. a simulative automobile device, it is characterised in that including:
Order receiver module, is used for: receiving the test command of self-test industrial computer, described test command includes that automotive test is ordered Order or drum dynamometer industrial computer order;
Judge module, is used for: if receiving described automotive test order, then performing diagnosis analog module, turning if received Drum testing stand industrial computer order, then perform rotary drum analog module;
Diagnosis analog module, is used for: each electronic control unit of simulated automotive performs to examine accordingly according to described automotive test order Diagnostic response message or simulation that disconnected function is returned perform the control response message that described automotive test order is returned, to Described test industrial computer returns described diagnosis corresponding message or described control response message;
Rotary drum analog module, is used for: return corresponding drum dynamometer data according to described drum dynamometer industrial computer order, to Described test industrial computer returns described drum dynamometer data.
Simulative automobile device the most according to claim 5, it is characterised in that described diagnosis analog module, specifically includes:
Resolve described automotive test order, determine the type of described automotive test order;
If the type of described automotive test order is request command, then from request command, parse Electronic Control list to be asked Unit and treat request type, obtain from the data base pre-saved electronic control unit ask about treat request type correspondence Response value as diagnostic response message, return described diagnostic response message to described test industrial computer;
If the type of described automotive test order is control command, then according to controlling prompting reading control sequence number, according to described Control sequence number and read control content, if described control content is for arranging numerical control, then from the data segment of described control content Middle acquisition numerical value to be written and electronic control unit to be written, write in the simulation array of described electronic control unit to be written Described numerical value to be written, if described control content is for sending message, then obtains pending from the data segment of described control content Deliver letters breath and automobile bus to be sent mark, will described information to be sent as control response message, to described automobile to be sent Automobile bus indicated by bus ID sends described control response message.
Simulative automobile device the most according to claim 5, it is characterised in that described rotary drum analog module, specifically includes:
Resolve described drum dynamometer industrial computer order, from the data base pre-saved, obtain described drum dynamometer industrial computer The drum dynamometer data that order is corresponding, return described drum dynamometer data to described test industrial computer.
8. according to the simulative automobile device described in any one of claim 5~7, it is characterised in that described automotive test order is led to Crossing car bus interface to receive, described drum dynamometer industrial computer order is received by serial ports, and described diagnostic response order is passed through Car bus interface sends, and described drum dynamometer data are sent by serial ports.
9. an automotive test analog systems, it is characterised in that including: test industrial computer, such as any one of claim 5~8 institute Simulative automobile device, car bus interface transducer and the serial converter stated, described simulative automobile device passes through described automobile EBI transducer communicates to connect with the car bus interface of described test industrial computer, and described simulative automobile device is by described Serial converter is connected with the serial communication of described test industrial computer, and described test industrial computer is sent out by described car bus interface Sending automotive test order, receive diagnostic response message and receive control response message, described test industrial computer passes through described string Mouth transmission drum dynamometer industrial 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 true CN106053098A (en) 2016-10-26
CN106053098B 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)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107024926A (en) * 2017-06-13 2017-08-08 安徽省爱夫卡电子科技有限公司 The simulation system and its analogy method of a kind of automobile ECU
CN107577215A (en) * 2017-07-31 2018-01-12 芜湖宏景电子股份有限公司 A kind of test system of simulated automotive electronic unit CAN functions
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
CN111459616A (en) * 2020-04-02 2020-07-28 北京牛电信息技术有限责任公司 Test method, device, equipment and storage medium
CN111858319A (en) * 2020-07-02 2020-10-30 天筑科技股份有限公司 Method and device for testing monitoring unit
CN112559317A (en) * 2019-09-26 2021-03-26 通用电气公司 Interface accessory of test device
CN113835406A (en) * 2020-06-08 2021-12-24 上海汽车集团股份有限公司 Test platform and test method for testing fuel filling management system controller
CN114074697A (en) * 2020-08-12 2022-02-22 比亚迪股份有限公司 Fep simulator, industrial personal computer and rail transit comprehensive monitoring simulation system
US11295560B2 (en) 2018-08-01 2022-04-05 Ford Global Technologies, Llc Cloud-managed validation and execution for diagnostic requests
CN116224976A (en) * 2023-05-08 2023-06-06 北京集度科技有限公司 Test method and device
CN111459616B (en) * 2020-04-02 2024-04-23 北京牛电信息技术有限责任公司 Test method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090037044A1 (en) * 2007-08-03 2009-02-05 Denso Corporation Electronic control system and method for vehicle diagnosis
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090037044A1 (en) * 2007-08-03 2009-02-05 Denso Corporation Electronic control system and method for vehicle diagnosis
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总线的汽车静态测试仪高效调试", 《汽车工程学报》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107024926A (en) * 2017-06-13 2017-08-08 安徽省爱夫卡电子科技有限公司 The simulation system and its analogy method of a kind of automobile ECU
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
CN112559317A (en) * 2019-09-26 2021-03-26 通用电气公司 Interface accessory of test device
CN111459616A (en) * 2020-04-02 2020-07-28 北京牛电信息技术有限责任公司 Test method, device, equipment and storage medium
CN111459616B (en) * 2020-04-02 2024-04-23 北京牛电信息技术有限责任公司 Test method, device, equipment and storage medium
CN113835406A (en) * 2020-06-08 2021-12-24 上海汽车集团股份有限公司 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
CN111858319A (en) * 2020-07-02 2020-10-30 天筑科技股份有限公司 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
CN116224976A (en) * 2023-05-08 2023-06-06 北京集度科技有限公司 Test method and device
CN116224976B (en) * 2023-05-08 2023-08-25 北京集度科技有限公司 Test method and device

Also Published As

Publication number Publication date
CN106053098B (en) 2018-05-08

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
US7869985B2 (en) 3D vehicle simulator system and simulation method for ECU embedded system
US9201764B2 (en) Method and device for creating and testing a control unit program
CN107450354B (en) Interface simulation system of train control vehicle-mounted equipment and train control data testing method
CN108255152B (en) vehicle diagnosis method, diagnosis box and computer readable storage medium
CN102779089B (en) Automobile ECU key Simulation Methods and system thereof and verification method
CN109614704A (en) A kind of ADAS automatization test system and method
KR101742536B1 (en) Running performance test server, test system having the same, testing method using the same
CN101266492A (en) Vehicle diagnostic device calibration software configuration administrative system and method
CN109918302B (en) Vehicle-mounted automatic testing method and device, vehicle-mounted multimedia system and automobile
CN104160259B (en) Communication simulation system, communication simulation method and vehicle communication device
CN109472061A (en) A kind of reusable simulation and verification platform and emulation verification method
MXPA05009235A (en) User adaptive automated pre-trip inspection system.
CN108037720A (en) A kind of vehicle checking method, device and vehicle diagnostic equipment
CN110233768A (en) CAN bus test macro and CAN bus test method based on UDS
CN103364204B (en) The diagnosis of Vehicular intelligent sensor
CN113189970A (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
WO2021109476A1 (en) Ecu for activating testmode of real vehicle phy under in-vehicle ethernet architecture, and system
CN113821440B (en) VxWorks application software testing method, system and simulator
KR101690280B1 (en) Running performance test server, test system having the same, testing method using the same
Skruch et al. Model-Based Testing in Embedded Automotive Systems.
US11232045B2 (en) Computer-implemented method for integrating at least one signal value into a virtual control unit
CN113885476B (en) Vehicle diagnosis method and related device

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