CN102023922B - System and method for testing automotive electronic diagnostic software - Google Patents

System and method for testing automotive electronic diagnostic software Download PDF

Info

Publication number
CN102023922B
CN102023922B CN201010609675A CN201010609675A CN102023922B CN 102023922 B CN102023922 B CN 102023922B CN 201010609675 A CN201010609675 A CN 201010609675A CN 201010609675 A CN201010609675 A CN 201010609675A CN 102023922 B CN102023922 B CN 102023922B
Authority
CN
China
Prior art keywords
module
diagnostic
ecu
data
communication
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.)
Expired - Fee Related
Application number
CN201010609675A
Other languages
Chinese (zh)
Other versions
CN102023922A (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.)
Chongqing Enfeisi Software Co Ltd
Original Assignee
Chongqing Enfeisi Software Co 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 Chongqing Enfeisi Software Co Ltd filed Critical Chongqing Enfeisi Software Co Ltd
Priority to CN201010609675A priority Critical patent/CN102023922B/en
Publication of CN102023922A publication Critical patent/CN102023922A/en
Application granted granted Critical
Publication of CN102023922B publication Critical patent/CN102023922B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a system and method for testing automotive electronic diagnostic software, which is characterized in that the system comprises a diagnostic Tester packet, an electronic control unit (ECU) model platform and a communication interface, wherein the diagnostic Tester packet comprises a display/analysis module, a sending/receiving information module, a bus information monitoring module and a Tester communication module; the ECU model platform comprises a simulation ECU application module, a simulation ECU system module, a diagnostic module, a storage module and a platform communication module; the communication interface is used for connecting the diagnostic Tester with the ECU model platform, and converting communication buses with different types into consistent communication buses for transmitting the communication information; and the sending/receiving information module sends a diagnostic service request and receives a diagnostic service response by the Tester communication module, and transmits diagnostic service request data and diagnostic service response data to the display/analysis module. By using the system and method for testing the automotive electronic diagnostic software, the diagnostic software can be diagnosed and tested at any time, thus reducing the workload of developers and greatly improving development efficiency.

Description

The test macro of automotive electronics diagnostic software and method
Technical field
The present invention relates to automotive electronics embedded software test field, particularly relate to the test macro and the method for a kind of automotive electronics diagnostic software.
Background technology
At present, the vehicle diagnosis detection system all is applied to the ECU fault diagnosis, and in the stage of developing diagnostic software; Test this diagnostic software and whether meet service request in the diagnosing protocol, domestic existing public technology scheme has two kinds, and first kind is to need actual ECU operational diagnostics software; Again it is tested; The method advantage is under the hardware environment of actual ECU, to test, and makes that the levels of precision of test is very high, but the ECU running status is regulated difficulty relatively; The test process of diagnostic software is complicated, so inefficiency; Second kind is pure software simulation ECU node; Operational diagnostics software; Again it is tested, the method advantage be simulation ECU node convenient and swift, adjust running status easily, the test process of diagnostic software is relatively easy; But because the non-reality of ECU node, can cause the test levels of precision of diagnostic software not high enough.In view of the shortcoming of existing two kinds of methods, the present invention proposes a kind of testing scheme of automotive electronics diagnostic software of the ISO of meeting 14229 agreements, is a kind of diagnostic software testing scheme based on half ECU model platform in kind.
Summary of the invention
Technical matters to be solved by this invention one of is to provide a kind of test macro of automotive electronics diagnostic software of the ISO of meeting 14229 agreements, is used for solving the levels of precision and the efficient problem of disharmony of prior art automobile ECU diagnostic software test.
Technical matters to be solved by this invention be two provide a kind of automotive electronics diagnostic software of the ISO of meeting 14229 agreements method of testing.Be used for solving the levels of precision and the efficient problem of disharmony of the test of prior art automobile ECU diagnostic software.
According to a kind of technical scheme of the present invention, the test macro of a kind of automotive electronics diagnostic software is characterized in that this system comprises: diagnosis Tester, ECU model platform and communication interface;
Said diagnosis Tester comprises demonstration/analysis module, transmission/reception information module, bus message monitoring module and Tester communication module;
Said ECU model platform comprises simulation ECU application program module, simulation ECU environment module, diagnostic module, memory module and platform communication module;
Said communication interface is used for connection diagnostic Tester and ECU model platform, and converts the inhomogeneity communication bus to consistent communication bus, transport communication information;
Said transmission/reception information module sends the Diagnosis Service request and receives the Diagnosis Service response through the Tester communication module, and Diagnosis Service request msg and Diagnosis Service response data is passed to demonstration/analysis module handle;
Said bus message monitoring module passes through the data on the Tester communication module monitoring communications interface, and data is issued demonstration/analysis module handle;
Said demonstration/analysis module is analyzed the data that receive and is shown, for test, observation, analysis;
Said Tester communication module: when the Tester communication module receives the data that transmission/reception information module or bus message monitoring module send; With data-switching is the standard traffic data; Again the standard traffic data are sent to communication interface; When the Tester communication module receives from data that communication interface transmits; The data-switching that communication interface is transmitted is the data that transmission/reception information module or bus message monitoring module can be used, and the data after will changing again are sent to transmission/reception information module or bus message monitoring module;
Said diagnostic module: when diagnostic module did not receive from Diagnosis Service request that platform communication module transmits, by the operation of simulation ECU application program module designated program, when breaking down, diagnostic module was deposited memory module to failure message; When diagnostic module receives the Diagnosis Service request, carry out Diagnosis Service, and export corresponding Diagnosis Service and respond platform communication module, simultaneously, diagnostic module provides service and interface to simulation ECU application program module and simulation ECU environment module;
Said simulation ECU environment module: receive the state parameter of the simulation ECU of simulation ECU application program module output, accomplish the ECU state configuration, the required simulation ECU environment of diagnostic module operation is set;
Said simulation ECU application program module: the ECU state that combination needs, the state parameter of exporting simulation ECU arrives simulation ECU environment module, and specifies and adjust the operational mode of diagnostic module;
Said memory module: receive and store the failure message of diagnostic module output, its memory block can be wiped by diagnostic module; To platform communication module interface is provided, platform communication module can be extracted required failure message through function interface;
Said platform communication module: when receiving from data that diagnostic module or memory module transmit; With this data-switching is the standard traffic data; Redispatch to communication interface; When platform communication module received from data that communication interface transmits, the data-switching that communication interface is transmitted was the data that diagnostic module or memory module can be used, and redispatches to diagnostic module or memory module.
A kind of preferred version according to the test macro of automotive electronics of the present invention diagnostic software; Said transmission/reception information module also provides function interface to the Tester communication module; When transmission/reception information module need send data; Call Tester communication module respective function interface, data are passed to the Tester communication module handle; When transmission/reception information module need receive data, the respective function interface was called by the Tester communication module, and transmission/reception information module receives the data from the Tester communication module;
201 pairs of demonstration/analysis modules 203 of transmission/reception information module provide function interface, no matter it is to send data, still receive data, all call demonstration/analysis module respective function interface, data are passed to demonstration/analysis module 203 handle.
A kind of preferred version according to the test macro of automotive electronics of the present invention diagnostic software; Said bus message monitoring module also provides function interface to the Tester communication module; After the bus message monitoring module starts; Call Tester communication module respective function interface, in real time the communication data of monitoring and diagnosis Tester and ECU model platform;
The bus message monitoring module also provides function interface to demonstration/analysis module, and this bus message monitoring module calls demonstration/analysis module respective function interface after starting, and the bus message monitoring module is passed to demonstration/analysis module with the data that monitor and handled.
According to another technical scheme of the present invention, the method for testing of a kind of automotive electronics diagnostic software is characterized in that this method of testing comprises:
Be used for diagnosing Tester to be connected with the ECU model platform through communication interface, thereby form the step of a test macro: said diagnosis Tester comprises demonstration/analysis module, transmission/reception information module, bus message monitoring module and Tester communication module; Said ECU model platform comprises simulation ECU application program module, simulation ECU environment module, diagnostic module, memory module and platform communication module;
Be used to start the step of ECU model platform;
Be used to specify and adjust the running environment of diagnostic module and the step of pattern: operation simulation ECU application program module; Simulation ECU application program module will be simulated the state parameter of ECU and pass to simulation ECU environment module, and specify and adjust the running environment and the pattern of diagnostic module;
Be used to accomplish the step of the state configuration of simulating ECU: move said simulation ECU environment module, receive the state parameter of the simulation ECU of simulation ECU application program module output, accomplish the ECU state configuration, diagnostic module is set moves required simulation ECU environment;
Be used to judge whether diagnostic module receives the step from the Diagnosis Service request of communication interface:
When diagnostic module did not receive the Diagnosis Service request, diagnostic module moved by simulation ECU application program module designated program, and deposits a failure message that occurs in the memory module, and Tester reads, tests for diagnosis;
When diagnostic module received the Diagnosis Service request, diagnostic module was carried out Diagnosis Service, and returned diagnostic response and give communication interface, and Tester reads, tests for diagnosis;
Be used to start the step of diagnosis Tester;
Be used to move the step of bus message monitoring module: the bus message monitoring module is implemented communication interface is monitored in real time through the Tester communication module, and Monitoring Data is passed to demonstration/analysis module handle, and accomplishes up to testing service;
Be used to send/receive the step that information module sends the Diagnosis Service request: transmission/reception information module sends the Diagnosis Service request to communication interface through the Tester communication module, redispatches to the ECU model platform through communication interface;
Being used for transmission/reception information module passes to demonstration/analysis module with the Diagnosis Service request msg and carries out processed steps;
Be used for when transmission/reception information module receives the diagnostic response data from communication interface, the diagnostic response data being passed to the step of demonstration/analysis module;
Be used to show/analysis module compares, analyzes the data that receive, and draws test result, and recorded steps.
According to a kind of preferred version of the method for testing of automotive electronics of the present invention diagnostic software, this method comprises and is used to judge that test is the manual test or the step of test automatically.
A kind of preferred version according to the method for testing of automotive electronics of the present invention diagnostic software; This method comprises and being used under automatic test pattern; Judge whether to travel through all diagnostic modes of simulation ECU; And under every kind of diagnostic mode of simulation ECU, the step of all Diagnosis Service tests of traversal standard agreement.
Compared with prior art, the test macro of automotive electronics of the present invention diagnostic software and the useful technique effect of method:
Can solve levels of precision and test, the development efficiency problem of disharmony of the test of automobile ECU diagnostic software in the prior art; The present invention is in the automobile ECU diagnostic software development stage; Can carry out diagnostic test to diagnostic software at any time; Reduce developer's workload, can ensure the levels of precision of diagnostic software test, can improve test, the development efficiency of automobile ECU diagnostic software again.
Describe the present invention below in conjunction with accompanying drawing and specific embodiment, but not as to qualification of the present invention.
Description of drawings
Fig. 1 is a diagnostic software of the present invention test system structure synoptic diagram;
Fig. 2 is a diagnostic software of the present invention method of testing schematic flow sheet.
Fig. 3 is diagnosis operational mode type of the present invention and transformational relation synoptic diagram.
Embodiment
Below in conjunction with accompanying drawing and embodiment technical scheme of the present invention is made further more detailed description.
As shown in Figure 1, be diagnostic software of the present invention test system structure synoptic diagram.The test macro of a kind of automotive electronics diagnostic software, this system by: diagnosis Tester200, ECU model platform 100 and communication interface 300 constitute; Wherein:
Said diagnosis Tester200 comprises demonstration/analysis module 203, transmission/reception information module 201, bus message monitoring module 202 and Tester communication module 204;
Said ECU model platform 100 comprises simulation ECU application program module 102, simulation ECU environment module 103, diagnostic module 101, memory module 104 and platform communication module 105;
Said communication interface 300 is used for connection diagnostic Tester200 and ECU model platform 100, and converts the inhomogeneity communication bus to consistent communication bus, and during conversion, data mode changes, but the data message content can not change;
Transport communication information;
Said transmission/reception information module 201 is sent the Diagnosis Service requests and is received the Diagnosis Service response through Tester communication module 204, and Diagnosis Service request msg and Diagnosis Service response data is passed to demonstration/analysis module 203 handle; In specific embodiment, transmission/reception information module 201 is by standard language written program piece, can manually initiate a Diagnosis Service request arbitrarily, also can send all Diagnosis Service requests automatically item by item; And; Transmission/reception information module 201 also provides function interface to Tester communication module 204; When transmission/reception information module 201 needs to send data, call Tester communication module 204 respective function interfaces, data are passed to Tester communication module 204 handle; When transmission/reception information module 201 needed to receive data, the respective function interface was called by Tester communication module 204, the data that transmission/reception information module 201 receives from Tester communication module 204;
201 pairs of demonstration/analysis modules 203 of transmission/reception information module provide function interface; No matter be that transmission/reception information module 201 sends data; Still transmission/reception information module 201 receives data; All call demonstration/analysis module 203 respective function interfaces, data are passed to demonstration/analysis module 203 handle;
The data that said bus message monitoring module 202 passes through on the Tester communication module 204 monitoring communications interfaces 300, and data are issued demonstration/analysis module 203 handle;
Bus message monitoring module 202 is by standard language written program piece; 202 pairs of Tester communication modules 204 of bus message monitoring module provide function interface; After this bus message monitoring module 202 starts; Call Tester communication module 204 respective function interfaces, in real time the communication data of monitoring and diagnosis Tester 200 and ECU model platform 100;
Bus message monitoring module 202 also provides function interface to demonstration/analysis module 203, after this bus message monitoring module 202 starts, calls demonstration/analysis module 203 respective function interfaces, the data that monitor is passed to demonstration/analysis module 203 handle;
The data message that said demonstration/analysis module 203 receives from transmissions/receptions information module 201, bus message monitoring module 202 is analyzed and is shown the data that receive, for test, observation, analysis;
Said Tester communication module 204: when Tester communication module 204 receives the data that transmission/reception information module 201 or bus message monitoring module 202 send; With data-switching is the standard traffic data; Again the standard traffic data are sent to communication interface 300; When Tester communication module 204 receives from data that communication interface 300 transmits; The data-switching that communication interface 300 is transmitted is the data that transmission/reception information module 201 or bus message monitoring module 202 can be used, and the data after will changing again are sent to transmission/reception information module 201 or bus message monitoring module 202;
Said diagnostic module 101 is a diagnostic software to be measured: when diagnostic module 101 does not receive from Diagnosis Service request that platform communication module 105 transmits; By the operation of simulation ECU application program module 102 designated program; When breaking down, diagnostic module 101 is deposited memory module 104 to failure message; When diagnostic module 101 receives from Diagnosis Service request that platform communication module 105 transmits; Carry out Diagnosis Service; And export corresponding Diagnosis Service and respond platform communication module 105; Simultaneously, 101 pairs of simulations of diagnostic module ECU application program module 102 provides service and interface with simulation ECU environment module 103, so that the running environment and the operational mode of adjustment diagnostic module; Simultaneously, 101 pairs of memory modules 104 of diagnostic module provide interface, for the storage data; Diagnostic module 101 also provides interface to platform communication module 105, when receiving the Diagnosis Service request and replying the Diagnosis Service response, calls the respective function interface, reaches communicating requirement;
Said simulation ECU environment module 103: receive the state parameter of the simulation ECU of simulation ECU application program module 102 outputs, accomplish the ECU state configuration, the required simulation ECU environment of diagnostic module 101 operations is set; 103 pairs of diagnostic modules 101 of simulation ECU environment module provide interface; Simultaneously; 103 pairs of simulations of simulation ECU environment module ECU application program module 102 provides interface; So that simulation ECU application program module 102 through corresponding interface, is simulated the transmission of ECU state parameter to simulation ECU environment module 103;
Said simulation ECU application program module 102: the ECU state that combination needs; The state parameter of output simulation ECU is to simulation ECU environment module 103; And specify and the operational mode of adjustment diagnostic module 101, call the program of diagnostic module 101, promptly call diagnostic software to be measured program; 102 pairs of simulations of simulation ECU application program module ECU environment module 103 provides interface with diagnostic module 101;
Said memory module 104: receive the failure message of diagnostic module 101 outputs, the failure message of storage also can be wiped by diagnostic module 101; Send to platform communication module 105; To platform communication module 105 interface is provided, so that communication interface is extracted canned data through platform communication module 105;
Said platform communication module 105: when receiving from data that diagnostic module 101 or memory module 104 transmit; With this data-switching is the standard traffic data; Redispatch to communication interface 300; When platform communication module 105 received from data that communication interface 300 transmits, the data-switching that communication interface 300 is transmitted was the data that diagnostic module 101 or memory module 104 can be used, and redispatches to diagnostic module 101 or memory module 104; 105 pairs of memory modules 104 of platform communication module provide interface, so that extract the data message of memory module.
The method of testing of a kind of automotive electronics diagnostic software is characterized in that this method of testing comprises:
Be used for diagnosing Tester200 to be connected with ECU model platform 100 through communication interface 300, thereby form the step of a test macro: said diagnosis Tester200 comprises demonstration/analysis module 203, transmission/reception information module 201, bus message monitoring module 202 and Tester communication module 204; Said ECU model platform 100 comprises simulation ECU application program module 102, simulation ECU environment module 103, diagnostic module 101, memory module 104 and platform communication module 105;
Be used to start the step of ECU model platform 100;
Be used to specify and adjust the running environment of diagnostic module 101 and the step of pattern: operation simulation ECU application program module 102; The state parameter that simulation ECU application program module 102 will be simulated ECU is passed to simulation ECU environment module 103, and specifies and adjust the running environment and the pattern of diagnostic module 101;
Be used to accomplish the step of the state configuration of simulating ECU: move said simulation ECU environment module 103; Receive the state parameter of the simulation ECU of simulation ECU application program module 102 outputs; Accomplish the ECU state configuration, the required simulation ECU environment of diagnostic module 101 operations is set;
Be used to judge whether diagnostic module 101 receives the step from the Diagnosis Service request of communication interface 300:
When diagnostic module 101 did not receive the Diagnosis Service request, diagnostic module 101 moved by simulation ECU application program module 102 designated program, and deposits a failure message that occurs in the memory module 104, and Tester reads, tests for diagnosis;
When diagnostic module 101 received the Diagnosis Service request, diagnostic module 101 was carried out Diagnosis Service, and returned diagnostic response and give communication interface 300, and Tester200 reads, tests for diagnosis;
Be used to start the step of diagnosis Tester200;
Be used to move the step of bus message monitoring module 202: bus message monitoring module 202 is implemented communication interface 300 is monitored in real time through Tester communication module 204; And Monitoring Data is passed to demonstration/analysis module 203 handle, accomplish up to testing service;
Be used to send/receive the step that information module 201 sends the Diagnosis Service request: transmission/reception information module 201 sends the Diagnosis Service request to communication interface 300 through Tester communication module 204, redispatches to ECU model platform 100 through communication interface 300;
Being used for transmission/reception information module 201 passes to demonstration/analysis module 203 with the Diagnosis Service request msg and carries out processed steps;
Be used for when transmission/reception information module 201 receives the diagnostic response data from communication interface 300, the diagnostic response data being passed to the step of demonstration/analysis module 203;
Be used to show/203 pairs of data that receive of analysis module compare, analyze, and draw test result, and recorded steps;
Be used to judge that test is manual test or the step of testing automatically;
Be used under automatic test pattern, judge whether to travel through all diagnostic modes of simulation ECU, and under every kind of diagnostic mode of simulation ECU, the step of all Diagnosis Service tests of traversal standard agreement.
As shown in Figure 2, be diagnostic software of the present invention method of testing schematic flow sheet.Below in conjunction with the method for testing of Fig. 2, it is following to describe realization flow:
Step S101; At first will diagnose Tester200 to be connected with ECU model platform 100 through communication interface 300, thereby form the step of a test macro: said diagnosis Tester200 comprises demonstration/analysis module 203, transmission/reception information module 201, bus message monitoring module 202 and Tester communication module 204; Said ECU model platform 100 comprises simulation ECU application program module 102, simulation ECU environment module 103, diagnostic module 101, memory module 104 and platform communication module 105; Start ECU model platform 100;
Step S102, operation simulation ECU application program module 102,
Step S103; Accomplish the state configuration of simulation ECU: move said simulation ECU environment module 103; Receive the state parameter of the simulation ECU of simulation ECU application program module 102 outputs, accomplish the ECU state configuration, the required simulation ECU environment of diagnostic module 101 operations is set;
In specific embodiment, can adopt following computer source program: ECU_Environment_Function (Type _ Parameter1, Status _ Parameter2 ...)
Parameter Type _ Parameter1 in this ECU_Environment_Function modularity function of/*, Status _ Parameter2 ... by simulation ECU application passes */
{
…….
Periph_Init (void) // peripheral hardware initialization function
ECU_Type_Init (Type _ Parameter1 ...) // ECU type initialization function
ECU_Status_Init (Status _ Parameter2 ...) // ECU state initialization function
SET_Diagnostic_Mode () // diagnostic mode is provided with function
……
}
Step S104, the operational mode of appointment and adjustment diagnostic module 101: the state parameter that simulation ECU application program module 102 will be simulated ECU is passed to simulation ECU environment module 103, and specifies and adjust the operational mode of diagnostic module 101;
Does step S105 judge that diagnostic module 101 receives the Diagnosis Service request from communication interface 300?
When diagnostic module 101 does not receive the Diagnosis Service request, carry out step S108, when diagnostic module 101 receives the Diagnosis Service request, carry out step S106,
Step S106, diagnostic module 101 is carried out Diagnosis Service;
Step S107, diagnostic module 101 return Diagnosis Service and respond to communication interface 300, and Tester200 reads, tests for diagnosis, and carries out step S302;
Step S108, diagnostic module 101 is by the operation of simulation ECU application program module 102 designated program;
Step S109, diagnostic software to be measured operation when wrong, failure message appears in diagnostic software to be measured, and is deposited a failure message that occurs in the memory module 104, and Tester reads, tests for diagnosis; And carry out step S302;
Step S302; Communication interface 300 receives by next Diagnosis Service response data and the failure message of platform communication module 105 transmission, and outputs to Tester communication module 204, outputs to transmission/reception information module 201 through Tester communication module 204; Get into step S210 then; Simultaneously, Tester communication module 204 is passed to bus message monitoring module 202 with data, gets into step S203;
Step S210 after transmission/reception information module 201 receives Diagnosis Service response data and failure message, reaches demonstration/analysis module 203 with data and handles, and gets into step S208;
Step S201 starts diagnosis Tester, promptly diagnoses the Tester electrifying startup;
Step S202 starts test procedure, and gets into step S203 and step S204;
Step S203, operation bus message monitoring module 202, the monitoring communication data, and Monitoring Data is passed to demonstration/analysis module 203 handle, get into step S209 then;
Step S204, transmission/reception information module 201 judge that used test is manual test or test automatically, if manual test, then method of testing jumps to step S216, if test automatically, then method of testing jumps to step S205;
Step S205 starts the acquiescence Diagnosis Service, and promptly transmission/reception information module 201 Diagnosis Service are set to the acquiescence item;
Step S206, transmission/reception information module 201 set the Diagnosis Service content according to the information among step S216 or the step S217, and send the Diagnosis Service request to Tester communication module 204; And the Diagnosis Service request msg is reached demonstration/analysis module handle; Get into step S207 and S301;
Step S207 after demonstration/analysis module 203 receives the Diagnosis Service request msg, will show, and observe for the tester, and get into step S211;
Step S208 after demonstration/analysis module 203 receives the Diagnosis Service response data, illustrates digital display come, and observes for the tester, and gets into step S211;
Step S209, demonstration/analysis module 203 after receiving the Monitoring Data of bus message monitoring module 202 outputs come out data presentation, observe for the tester, and get into step S211;
Step S211, demonstration/analysis module 203 compares/analyze, and notes data according to the Monitoring Data of Diagnosis Service request msg, Diagnosis Service response data and 202 outputs of bus message monitoring module;
Step S212, transmission/reception information module 201 judge that once more test is manual test or test automatically, if manual test, then method of testing jumps to step S214, if test automatically, then method of testing jumps to S213;
Step S213, transmission/reception information module 201 judge whether test travels through all Diagnosis Service of simulation ECU, and under every kind of diagnostic mode of simulation ECU, all Diagnosis Service tests of traversal standard agreement; If travel through all Diagnosis Service, then method of testing jumps to step S214, if do not travel through all Diagnosis Service, then method of testing jumps to S217;
Step S214, transmission/reception information module 201 judge whether to need to switch diagnostic mode, switch diagnostic mode if desired, get into step S110 and step S215, if do not need to switch diagnostic mode, then jump to step S401 again.
Step S110 switches and diagnoses operational mode, and the switching of diagnosis operational mode is accomplished by diagnosis redirect service, after the switching diagnosis operational mode, returns step S104; Wherein, diagnosis operational mode type and transformational relation are seen Fig. 3;
In specific embodiment, can adopt following computer source program:
Switch_Diagnostic_Mode(Variable1,?Variable2,…)
{......
Switch (variable)
Case 1: // diagnosis default mode
If redirect condition 1 ... // switch to the diagnosis mode of extension
Elseif redirect condition 2 ... // switch to the diagnosis programming mode
}?break;
Case 2: // diagnosis mode of extension
If redirect condition 3 ... // switch to the diagnosis default mode
Elseif redirect condition 4 ... // switch to the diagnosis programming mode
}?break;
Case 3: // diagnosis programming mode
If redirect condition 5 ... // switch to the diagnosis default mode
Elseif redirect condition 6 ... // switch to the diagnosis mode of extension
}?break;
……
SEND_Diagnostic_Instruction(Parameter1,Parameter2,...)
// diagnostic module is initiated the diagnostic mode jump instruction
}
Step S215, diagnosis Tester200 get into and wait for initiation Diagnosis Service state, when having only the Diagnosis Service of initiation, just get into step S204;
Step S216, tester be according to the Diagnosis Service content, manual editing's Diagnosis Service, and after editor accomplishes, execution in step S206 again;
Step S217, through the automatic diagnosis service routine, the automatic switchover Diagnosis Service forwards step S206 to after the completion;
Step S301; Communication interface 300 receives by the next Diagnosis Service request msg of Tester communication module 204 transmission, and outputs to platform communication module 105, outputs to diagnostic module 101 through platform communication module 105; Get into step S105 then; Simultaneously, Tester communication module 204 is passed to bus message monitoring module 202 with the Diagnosis Service request msg, gets into step S203;
Step S401, EOT.
The invention provides a kind of test macro and the method for testing of realization thereof of automotive electronics diagnostic software of the ISO of meeting 14229 agreements; Be a kind of diagnostic software test macro and method of testing based on half ECU model platform in kind; Can solve levels of precision and test, the development efficiency problem of disharmony of the test of automobile ECU diagnostic software in the prior art; The levels of precision of diagnostic software test can be ensured, the test of automobile ECU diagnostic software, development efficiency can be improved again.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (6)

1. the test macro of an automotive electronics diagnostic software is characterized in that, this system comprises: diagnosis Tester (200), ECU model platform (100) and communication interface (300);
Said diagnosis Tester (200) comprises demonstration/analysis module (203), transmission/reception information module (201), bus message monitoring module (202) and Tester communication module (204);
Said ECU model platform (100) comprises simulation ECU application program module (102), simulation ECU environment module (103), diagnostic module (101), memory module (104) and platform communication module (105);
Said communication interface (300) is used for connection diagnostic Tester (200) and ECU model platform (100), and converts the inhomogeneity communication bus to consistent communication bus, transport communication information;
Said transmission/reception information module (201) sends the Diagnosis Service request and receives the Diagnosis Service response through Tester communication module (204), and Diagnosis Service request msg and Diagnosis Service response data is passed to demonstration/analysis module (203) handle;
Said bus message monitoring module (202) passes through the data on Tester communication module (204) the monitoring communications interface (300), and data is issued demonstration/analysis module (203) handle;
Said demonstration/analysis module (203) receives the data message from transmissions/receptions information module (201), bus message monitoring module (202), the data that receive is analyzed and is shown, for test, observation, analysis;
Said Tester communication module (204): when Tester communication module (204) receives the data that transmission/reception information module (201) or bus message monitoring module (202) send; With data-switching is the standard traffic data; Again the standard traffic data are sent to communication interface (300); When Tester communication module (204) receives from data that communication interface (300) transmits; The data-switching that communication interface (300) is transmitted is transmission/reception information module (201) or the available data of bus message monitoring module (202), and the data after will changing again are sent to transmission/reception information module (201) or bus message monitoring module (202);
Said diagnostic module (101): when diagnostic module (101) does not receive from Diagnosis Service request that platform communication module (105) transmits; By the operation of simulation ECU application program module (102) designated program; When breaking down, diagnostic module (101) is deposited memory module (104) to failure message; When diagnostic module (101) receives from Diagnosis Service request that platform communication module (105) transmits; Carry out Diagnosis Service; And export corresponding Diagnosis Service and respond platform communication module (105); Simultaneously, diagnostic module (101) provides service and interface to simulation ECU application program module (102) and simulation ECU environment module (103);
Said simulation ECU environment module (103): receive the state parameter of the simulation ECU of simulation ECU application program module (102) output, accomplish the ECU state configuration, the required simulation ECU environment of diagnostic module (101) operation is set;
Said simulation ECU application program module (102): the ECU state that combination needs; The state parameter of output simulation ECU is to simulation ECU environment module (103); And the operational mode of appointment and adjustment diagnostic module (101), call the program of diagnostic module (101);
Said memory module (104): receive and store the failure message of diagnostic module (101) output, its memory block can be wiped by diagnostic module (101); To platform communication module (105) interface is provided, platform communication module (105) can be extracted required failure message through function interface;
Said platform communication module (105): when receiving from data that diagnostic module (101) or memory module (104) transmit; With this data-switching is the standard traffic data; Redispatch to communication interface (300); When platform communication module (105) receives from data that communication interface (300) transmits; The data-switching that communication interface (300) is transmitted is diagnostic module (101) or the available data of memory module (104), redispatches to diagnostic module (101) or memory module (104).
2. the test macro of automotive electronics according to claim 1 diagnostic software is characterized in that:
Transmission/reception information module (201) also provides function interface to Tester communication module (204); When transmission/reception information module (201) needs to send data; Call Tester communication module (204) respective function interface, data are passed to Tester communication module (204) handle; When transmission/reception information module (201) needed to receive data, the respective function interface was called by Tester communication module (204), and transmission/reception information module (201) receives the data from Tester communication module (204);
Transmission/reception information module (201) provides function interface to demonstration/analysis module (203); No matter be that transmission/reception information module (201) sends data; Still transmission/reception information module 201 receives data; All call demonstration/analysis module (203) respective function interface, data are passed to demonstration/analysis module (203) handle.
3. the test macro of automotive electronics according to claim 1 and 2 diagnostic software; It is characterized in that: bus message monitoring module (202) also provides function interface to Tester communication module (204); After bus message monitoring module (202) starts; Call Tester communication module (204) respective function interface, in real time the communication data of monitoring and diagnosis Tester (200) and ECU model platform (100);
Bus message monitoring module (202) also provides function interface to demonstration/analysis module (203); After this bus message monitoring module (202) starts; Call demonstration/analysis module (203) respective function interface, bus message monitoring module (202) is passed to demonstration/analysis module (203) with the data that monitor and is handled.
4. the method for testing of an automotive electronics diagnostic software is characterized in that, this method of testing comprises:
Be used for diagnosing Tester (200) to be connected with ECU model platform (100) through communication interface (300), thereby form the step of a test macro: said diagnosis Tester (200) comprises demonstration/analysis module (203), transmission/reception information module (201), bus message monitoring module (202) and Tester communication module (204); Said ECU model platform (100) comprises simulation ECU application program module (102), simulation ECU environment module (103), diagnostic module (101), memory module (104) and platform communication module (105);
Be used to start the step of ECU model platform (100);
Be used for specifying and the running environment of adjustment diagnostic module (101) and the step of pattern: operation simulation ECU application program module (102); Simulation ECU application program module (102) will be simulated the state parameter of ECU and pass to simulation ECU environment module (103), and specify and adjust the running environment and the pattern of diagnostic module (101);
Be used to accomplish the step of the state configuration of simulating ECU: move said simulation ECU environment module (103); Receive the state parameter of the simulation ECU of simulation ECU application program module (102) output; Accomplish the ECU state configuration, the required simulation ECU environment of diagnostic module (101) operation is set;
Be used to judge whether diagnostic module (101) receives the step from the Diagnosis Service request of communication interface (300):
When diagnostic module (101) does not receive the Diagnosis Service request; Diagnostic module (101) is by the operation of simulation ECU application program module (102) designated program; And deposit a failure message that occurs in the memory module (104), Tester reads, tests for diagnosis;
When diagnostic module (101) received the Diagnosis Service request, diagnostic module (101) was carried out Diagnosis Service, and returned diagnostic response and give communication interface (300), read, tested for diagnosis Tester (200);
Be used for starting the step of diagnosis Tester (200);
Be used to move the step of bus message monitoring module (202): bus message monitoring module (202) is implemented communication interface (300) monitoring in real time through Tester communication module (204); And Monitoring Data is passed to demonstration/analysis module (203) handle, accomplish up to testing service;
Be used for the step that transmission/reception information module (201) sends the Diagnosis Service request: transmission/reception information module (201) sends the Diagnosis Service request to communication interface (300) through Tester communication module (204), redispatches to ECU model platform (100) through communication interface (300);
Being used for transmission/reception information module (201) passes to demonstration/analysis module (203) with the Diagnosis Service request msg and carries out processed steps;
Be used for when transmission/reception information module (201) receives the diagnostic response data from communication interface (300), the diagnostic response data being passed to the step of demonstration/analysis module (203);
Be used for demonstration/analysis module (203) data that receive are compared, analyze, draw test result, and recorded steps.
5. the method for testing of automotive electronics according to claim 4 diagnostic software is characterized in that: this method comprises and is used to judge that test is the manual test or the step of test automatically.
6. the method for testing of automotive electronics according to claim 5 diagnostic software; It is characterized in that: this method comprises and being used under automatic test pattern; Judge whether to travel through all diagnostic modes of simulation ECU; And under every kind of diagnostic mode of simulation ECU, the step of all Diagnosis Service tests of traversal standard agreement.
CN201010609675A 2010-12-28 2010-12-28 System and method for testing automotive electronic diagnostic software Expired - Fee Related CN102023922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010609675A CN102023922B (en) 2010-12-28 2010-12-28 System and method for testing automotive electronic diagnostic software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010609675A CN102023922B (en) 2010-12-28 2010-12-28 System and method for testing automotive electronic diagnostic software

Publications (2)

Publication Number Publication Date
CN102023922A CN102023922A (en) 2011-04-20
CN102023922B true CN102023922B (en) 2012-09-26

Family

ID=43865242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010609675A Expired - Fee Related CN102023922B (en) 2010-12-28 2010-12-28 System and method for testing automotive electronic diagnostic software

Country Status (1)

Country Link
CN (1) CN102023922B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142678A (en) * 2013-05-06 2014-11-12 帝斯贝思数字信号处理和控制工程有限公司 Test device for testing a virtual electronic control unit

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736615B (en) * 2012-03-31 2014-08-13 深圳市元征科技股份有限公司 Vehicle failure diagnosis method
CN102707710A (en) * 2012-06-01 2012-10-03 浙江吉利汽车研究院有限公司杭州分公司 Diagnosis function verification method and system for automobile electronic control unit
CN102798833B (en) * 2012-08-23 2015-01-07 浙江吉利汽车研究院有限公司杭州分公司 Automatic test system and method for diagnosis instrument
CN103412562B (en) * 2013-08-21 2016-08-10 中国第一汽车股份有限公司 Automotive universal Diagnostic Test Set
CN103558847A (en) * 2013-11-13 2014-02-05 上汽通用五菱汽车股份有限公司 Simple tester for testing electrical performance of vehicle control unit of new energy automobile and method using same
CN105527958B (en) * 2015-12-03 2018-06-26 深圳市欧克勒亚科技有限公司 A kind of diagnostic data throat floater analysis method
CN106053098B (en) * 2016-07-22 2018-05-08 上汽通用汽车有限公司 A kind of simulative automobile method, apparatus and automotive test simulation system
CN107024926B (en) * 2017-06-13 2024-01-05 安徽省爱夫卡电子科技有限公司 Simulation system and simulation method of automobile ECU
CN107491061B (en) * 2017-08-31 2019-09-03 中国第一汽车股份有限公司 A kind of the network automatically test macro and its method of commercial vehicle OBD diagnostic device
CN109460353A (en) * 2018-09-30 2019-03-12 惠州市德赛西威汽车电子股份有限公司 UDS auto-check system
CN109470490B (en) * 2018-10-15 2020-09-08 宁波吉利汽车研究开发有限公司 Vehicle off-line detection system and vehicle detection system
CN109560994A (en) * 2018-12-21 2019-04-02 北京雄信息科技有限公司 Automobile fault diagnostic apparatus detection system and detection method
CN109995872A (en) * 2019-04-09 2019-07-09 上海星融汽车科技有限公司 Vehicle communication analogy method
CN112462727A (en) * 2019-09-09 2021-03-09 广州汽车集团股份有限公司 Vehicle-mounted part testing method and device
CN112147983B (en) * 2020-09-27 2022-01-04 深圳市元征科技股份有限公司 Vehicle diagnosis method and device, electronic equipment and storage medium
CN112632702A (en) * 2020-12-22 2021-04-09 广州瑞修得信息科技有限公司 Vehicle protocol diagnostic tool detection method and device
CN113093710B (en) * 2021-04-09 2022-07-19 深圳市道通科技股份有限公司 Bus data analysis method, device and equipment and automobile diagnosis system
CN113608518B (en) * 2021-07-23 2022-12-27 深圳市元征科技股份有限公司 Data generation method, device, terminal equipment and medium
CN116224976B (en) * 2023-05-08 2023-08-25 北京集度科技有限公司 Test method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178600A (en) * 2007-10-08 2008-05-14 天津市优耐特汽车电控技术服务有限公司 Car engine synthesis analyzer automatic testing and analyzing system based on network
CN101882108A (en) * 2010-06-30 2010-11-10 三一重机有限公司 Embedded software automatic test system and method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006024006A (en) * 2004-07-08 2006-01-26 Denso Corp Test case generation device, test case generation program, model base development program, device and program for diagnosing validity of source code generation, and method for developing model base

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178600A (en) * 2007-10-08 2008-05-14 天津市优耐特汽车电控技术服务有限公司 Car engine synthesis analyzer automatic testing and analyzing system based on network
CN101882108A (en) * 2010-06-30 2010-11-10 三一重机有限公司 Embedded software automatic test system and method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142678A (en) * 2013-05-06 2014-11-12 帝斯贝思数字信号处理和控制工程有限公司 Test device for testing a virtual electronic control unit
US9766607B2 (en) 2013-05-06 2017-09-19 Dspace Digital Signal Processing And Control Engineering Gmbh Test device for testing a virtual electronic control unit
US9864355B2 (en) 2013-05-06 2018-01-09 Dspace Digital Signal Processing And Control Engineering Gmbh Test device for testing a virtual electronic control unit

Also Published As

Publication number Publication date
CN102023922A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
CN102023922B (en) System and method for testing automotive electronic diagnostic software
CN104483959A (en) Fault simulation and test system
US10153957B2 (en) Fault diagnosis method, device, and fault diagnosis system
CN101478449B (en) Protocol automatic test method and system thereof
CN101847118B (en) Automatic test system
CN102141962A (en) Safety distributed test framework system and test method thereof
CN103941240B (en) A kind of detection method of the extension set detecting device that communicates based on radar system
CN108121326A (en) A kind of fault diagnosis method and system
CN103913728B (en) A kind of method of testing based on portable radar comprehensive tester
CN106330483A (en) Information acquiring method, client device and server device
CN102620746B (en) Navigator testing system
CN102750143B (en) Based on the DSP development approach that MATLAB com component calls
KR100794130B1 (en) Automatic Function Testing Equipment for Application Software and Additional Service of Mobile Communication Terminal
CN114257470A (en) Vehicle Bluetooth function test system and test method
CN104468279A (en) Routing protocol interaction testing method and tool
CN102201877B (en) Method and apparatus for testing air interface of TTCN (Testing and Test Control Notation)-3-based digital interphone
CN107733743B (en) Method and system for realizing automatic test of Ethernet bus data
KR20130063866A (en) Diagonosis system for m2m device and the method thereof
CN103576667A (en) Main control panel test method, device and system
CN115951596A (en) Real vehicle signal simulation method and vehicle signal interaction system
CN105243015B (en) Method and system for automatically testing software
CN113886274A (en) Stability testing method, device, equipment and storage medium for Internet of vehicles terminal
CN112380121A (en) Automatic testing method and system for Internet of things equipment
CN105044552A (en) Fault diagnosis method, system and device for distribution network automation system
CN109960238B (en) Automatic test system and method for vehicle diagnostic instrument

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120926

Termination date: 20171228