CN102043717B - Testing system and testing method of driver module of automobile electronic calibration software - Google Patents

Testing system and testing method of driver module of automobile electronic calibration software Download PDF

Info

Publication number
CN102043717B
CN102043717B CN 201010609192 CN201010609192A CN102043717B CN 102043717 B CN102043717 B CN 102043717B CN 201010609192 CN201010609192 CN 201010609192 CN 201010609192 A CN201010609192 A CN 201010609192A CN 102043717 B CN102043717 B CN 102043717B
Authority
CN
China
Prior art keywords
test
driver module
verification platform
target detection
test node
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
CN 201010609192
Other languages
Chinese (zh)
Other versions
CN102043717A (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 CN 201010609192 priority Critical patent/CN102043717B/en
Publication of CN102043717A publication Critical patent/CN102043717A/en
Application granted granted Critical
Publication of CN102043717B publication Critical patent/CN102043717B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a testing system of a driver module of automobile electronic calibration software. The testing system is characterized by comprising a test node Tester, protocol service test analysis unit, a CAN calibration protocol (CCP) protocol service library, a communication link line, a target test verification platform and a communication layer, wherein the test node Tester is used for operating the protocol service test analysis software, executing related commands and operations of the protocol service test analysis unit relative order and operation, finishing functions of a test host, realizing receiving and sending of test data and commands, providing test status display, and displaying the test data and related analysis results; the CCP protocol service library is developed on the basis of a CCP protocol and is used for providing standard CCP calibration service requests and related response services, and is invoked by the protocol service test analysis unit; and the protocol service test analysis unit invokes the CCP protocol service library to finish related service requests and responses specified in the CCP protocol service library, and provide analysis processing results.

Description

Automotive electronics calibration software driver module test macro and method
Technical field
The present invention relates to automotive electronics ECU development field, particularly relate to a kind of automotive electronics calibration software driver module test macro and method of the CCP of meeting protocol specification.
Background technology
In current automotive electronics ECU exploitation, an ECU embedded software often comprises: basic function, communication and network service function, system calibrating, diagnosis, test function service, program updates function.After in the performance history of present ECU embedded software, often whole software function Part Development being finished, carry out whole test and checking work, whole performance history is developed and is tested according to the order of custom, and the exploitation of a rear step module must be waited for after the function of back is finished and just can carry out.And the exploitation of basic function and communications network service must be finished and by after the test, just can carry out having reduced so greatly system development efficient as demarcating and exploitation and the test job of diagnosis service module, lengthen system development cycle.Simultaneously, the independence of each module can't be guaranteed in the system, has increased system's chain effect that each module interdepends and brings.Such exploitation, perfect testing authentication work that often can't each assembly of completion system also is unfavorable for performance boost and the quality assurance of product.The exploitation of a rear step module may make the assembly of developing previously do over again, and more may cause the again exploitation of former step modules, thereby cause the waste of a large amount of time and efforts.Therefore, such exploitation can cause a large amount of resources and waste of time, is unfavorable for improving system development efficient, is unfavorable for reducing the development time and saves cost.
Summary of the invention
One of technical matters to be solved by this invention provides a kind of automotive electronics calibration software driver module test macro.
Two of technical matters to be solved by this invention provides a kind of automotive electronics calibration software driver module method of testing.
According to a kind of technical scheme of the present invention, a kind of automotive electronics calibration software driver module test macro, it is characterized in that, described test macro comprises: test node Tester, protocol service test analysis unit, CCP protocol service storehouse, communication wire road, target detection verification platform, the first communication layers, second communication floor;
Described test node Tester is used for operation protocol service test analysis unit, service testing analytic unit related command and operation carry on an agreement, finish the function of Test Host, realize reception and the transmission of test data and order, provide test mode to show, test data and correlation analysis result are shown;
Described CCP protocol service storehouse is used for providing the CCP of standard to demarcate services request and associated responses service, for described protocol service test analysis cell call based on the CCP protocol development;
Described protocol service test analysis unit by calling described CCP protocol service storehouse, is finished the related service request of stipulating in the CCP protocol service storehouse and is replied, and carries out analyzing and processing to replying, and analysis processing result is provided;
Described communication wire road is used for finishing the physical link between test node Tester and the target detection verification platform, if there is different types of communication bus when connecting, be that described test node Tester does not support target detection verification platform regulation bus communication, then described communication wire road should comprise a communication protocols converter;
Described target detection verification platform is used for the operation measured target and demarcates driver module; The target detection verification platform comprises second communication layer and guiding and loads measured target and demarcate driver module and download and be programmed into driver module among the local ROM;
Described guiding loads measured target and demarcates driver module (5) and download and be programmed into driver module among the local ROM and support measured target to demarcate driver module to download to be programmed on the target detection verification platform automatically and move;
Described the first communication layers is used to described test node Tester that basic communication service function is provided; Test node Tester connects by the first communication layers, communication wire road and second communication floor and described target detection verification platform;
Described second communication layer is used to described target detection verification platform that basic communication service function is provided, and described target detection verification platform connects by second communication floor, communication wire road and described test node Tester.
Described automotive electronics calibration software driver module test macro can be finished the demarcation test that meets the CCP protocol service.
According to a preferred version of a kind of automotive electronics calibration software driver module test macro of the present invention, described communication protocols converter is used for the conversion of described test node Tester and target detection verification platform variety classes communication bus protocol.
A preferred version according to a kind of automotive electronics calibration software driver module test macro of the present invention, described test macro also comprises the User Defined service library, user-defined testing service, add in the User Defined service library, for described protocol service test analysis cell call, described protocol service test analysis cell call User Defined service library, the test of the self-defined service of completing user.
Described automotive electronics calibration software driver module test macro can also according to the User Defined service library, carry out the testing service of setting with completing user oneself.
A preferred version according to a kind of automotive electronics calibration software driver module test macro of the present invention, described guiding loads measured target and demarcates driver module to download and be programmed into driver module among the local ROM be the one section code that is present in fixed area on the storer of described target detection verification platform, and this driver module comprises a program designation module and a FLASH programming driver module;
Described program designation module is usually said bootloader program, is used for the initiating hardware environment, loads particular functional application;
Described FLASH programming driver module is FLASH Driver, is used for flash memory, and the designated program module is downloaded the assigned address that is programmed into storer.
According to another kind of technical scheme of the present invention, a kind of automotive electronics calibration software driver module method of testing is characterized in that, described method of testing comprises:
Be used for test node Tester and send connection request to the target detection verification platform, and the step that is connected with the target detection verification platform by the communication wire road;
Be used for the target detection verification platform and receive the connection request that test node Tester sends, and the step that is connected with test node Tester by the communication wire road;
Be used for judging the whether step of successful connection of test node Tester and target detection verification platform;
Be used for judging whether again to download the step that measured target is demarcated driver module;
Again download measured target when needs and demarcate driver module, test node Tester sends the down loading updating order that measured target is demarcated driver module to the target detection verification platform; And to target detection verification platform transmission measured target demarcation driver module;
Be used for the target detection verification platform and receive measured target demarcation driver module, described program designation module booting enters system's specific service state-automated programming pattern, and be that FLASH Driver is loaded in the storer and moves with the FLASH driver module of programming, then utilizing start-up loading district (11) bootloader and FLASH programming driver module is that FLASH Driver demarcates the step that driver module is cured to the assigned address of storer with measured target;
Be used for test node Tester and send instruction to the target detection verification platform, the step that the indicating target test and verification platform starts and the operation measured target is demarcated driver module;
Be used for test node Tester and send a message object CRO to the target detection verification platform, require to demarcate driver module foundation with measured target and demarcate the step that is connected;
Be used for the target detection verification platform and receive the message object CRO that test node Tester issues, reply message object DTO message to test node Tester, set up with test node Tester and demarcate the step that is connected;
Be used for test node Tester and call CCP protocol service storehouse, the information on services traversal with listing in the CCP protocol service storehouse of circulation sends to the step that measured target is demarcated driver module;
Be used for the target detection verification platform and receive the message object CRO that test node Tester issues, corresponding step of demarcating service is provided;
Be used for test node Tester the measured target that receives is demarcated the step that information that driver module returns and calibrating parameters template compare;
Be used for test node Tester comparison information is processed, show the step of measured target demarcation driver module test result.
According to a preferred version of a kind of automotive electronics calibration software driver module method of testing of the present invention, described method of testing also comprises:
Be used for the step that test node Tester1 arranges Object Descriptor table DAQ-ODT tabulation and sends Object Descriptor table DAQ-ODT tabulation configuration information to the target detection verification platform;
Be used for the target detection verification platform and receive the Object Descriptor table DAQ-ODT tabulation configuration information that test node Tester sends, and according to the Object Descriptor table DAQ-ODT tabulation configuration information that receives, the step that tabulation arranges to Object Descriptor table DAQ-ODT;
Be used for the target detection verification platform and fill the step of DAQ-ODT tabulation according to the simulated calibration target data in Object Descriptor table DAQ-ODT tabulation configuration information and the structure data field;
Be used for the target detection verification platform and upload the step of DAQ-ODT tabulation to test node Tester;
The step that the DAQ-ODT that uploads for test node Tester receiving target test and verification platform tabulates.
Compared with prior art, a kind of automotive electronics calibration software driver module test macro of the present invention and method have following main useful technique effect: this test macro has the tested demarcation driver module of automatic download to target detection verification platform function, and make up the data field simulation by the nominal data piece at the target detection verification platform, Reality simulation is demarcated environment; Simultaneously, the self-defined demarcation service library of invoke user is also supported except can testing authentication meeting the demarcating module of CCP protocol service in protocol service test analysis unit among the present invention, and the self-defined demarcation of authentication of users realizes; The present invention is supported in and has allowed a plurality of target detection verification platforms to be moved test in the situation of only having a test node Tester, the reception and registration that they demarcate information interaction and detecting information by mode or the network communication mode of bus addressing; The present invention can carry out the functional test checking of assembly module before system development is finished, improved the efficient of automotive electronics ECU embedded software developing and the safety and reliability of software module.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is the illustrative view of functional configuration of test macro of the present invention;
Fig. 2 is that measured target of the present invention is demarcated automatically download schematic diagram of driver module 5;
Fig. 3 is that measured target of the present invention is demarcated driver module 5 test execution state transition diagrams;
Fig. 4 is the flowchart of test node Tester1 of the present invention;
Fig. 5 is the flowchart of target detection verification platform 7 of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments technical scheme of the present invention is made further more detailed description.
Referring to Fig. 1, a kind of automotive electronics calibration software driver module test macro is made of test node Tester1, CCP protocol service storehouse 2, User Defined service library 3, protocol service test analysis unit 4, the first communication layers 6A, second communication floor 6B, communication wire road 12, target detection verification platform 7; Wherein
Described test node Tester1 is used for operation protocol service test analysis unit 4, service testing analytic unit 4 related commands and operation carry on an agreement, finish the function of Test Host, realize reception and the transmission of test data and order, provide test mode to show, test data and correlation analysis result are shown; The program that operates on the test node Tester1 comprises: the download handler that CCP protocol service storehouse 2, User Defined service library 3, protocol service test analysis unit 4, the first communication layers 6A, measured target are demarcated driver module 5;
Described CCP protocol service storehouse 2 is used for providing the CCP of standard to demarcate services request and associated responses service based on the CCP protocol development, calls for described protocol service test analysis unit 4;
User Defined service library 3 is used for providing user-defined testing service request and associated responses service, calls for described protocol service test analysis unit 4;
Described protocol service test analysis unit 4 by calling described CCP protocol service storehouse 2, is finished in the CCP protocol service storehouse 2 the related service request of regulation and is replied, and carries out analyzing and processing to replying, and analysis processing result is provided; Simultaneously, the self-defined service library 3 of protocol service test analysis unit 4 invoke user, the test of the self-defined service of completing user; Protocol service test analysis unit 4 is demarcated driver module 5 logics by the first communication layers 6A with the measured target on running on target detection verification platform 7 and is connected, and demarcates information interaction;
Described communication wire road 12 is used for finishing between test node Tester1 and the target detection verification platform 7 setting up physical link, test node Tester1 be connected with target detection verification platform 7 by the first communication layers 6A, communication wire road 12 and second communication floor 6B and link data mutual; Communication layers shielding lower floor communication wire road detail is for the upper strata provides communication interface API unified, standard; If have different types of communication bus when connecting, namely described test node Tester1 does not support target detection verification platform 7 regulation bus communications, and then described communication wire road 12 should comprise a communication protocols converter 13; Wherein, described communication protocols converter 13 is used for the conversion of described test node Tester1 and target detection verification platform 7 variety classes communication bus protocols.
Described target detection verification platform 7 is used for the operation measured target and demarcates driver module 5; Target detection verification platform 7 comprises second communication layer 6B and guiding loads the driver module that measured target demarcation driver module 5 is downloaded and is programmed among the local ROM; Fig. 3 is that measured target of the present invention is demarcated automatically download schematic diagram of driver module 5.
Wherein, described guiding loads measured target and demarcates driver module 5 to download and be programmed into driver module among the local ROM be the one section code that is present in fixed area on the storer of described target detection verification platform 7, and this driver module comprises a program designation module and a FLASH programming driver module;
Described program designation module is usually said bootloader program, is used for the initiating hardware environment, loads particular functional application;
Described FLASH programming driver module is FLASH Driver, is used for flash memory, and the designated program module is downloaded the assigned address that is programmed into storer.
When receiving measured target, described target detection verification platform 7 demarcates driver module 5, the program designation module booting enters system's specific service state-automated programming pattern, calling described FLASH programming driver module is FLASH Driver, measured target is demarcated the ad-hoc location that driver module 5 is cured to application space 10, after downloading successfully, resetting system, the measured target that reruns is demarcated driver module 5, waits for that described test node Tester1 demarcates checking.
Described the first communication layers 6A is used to described test node Tester1 that basic communication service function is provided;
Described second communication layer 6B is used to described target detection verification platform 7 that basic communication service function is provided.
The present invention is supported in and has allowed a plurality of target detection verification platforms 7 by operation test, the reception and registration that they demarcate information interaction and detecting information by mode or the network communication mode of bus addressing in the situation of only having a test node Tester1.
In specific embodiment, target detection verification platform 7 specifically comprises: special function zones 8, structure data field 9, application space 10, start-up loading district 11, second communication floor 6B;
It is the bootloader program that start-up loading district 11 is used for depositing the program designation module, is used for the initiating hardware environment, loads particular functional application;
It is FLASH Driver that special function zones 8 is used for depositing FLASH programming driver module, is used for flash memory, and the designated program module is downloaded the assigned address that is programmed into storer;
Application space 10 is solidified with and comprises that basic initialize routine, program operation are transferred, the clock timing program module, to arrange the hardware environment of test procedure operation;
Make up data field 9, be used for storage as the various supplemental characteristics of demarcating, the demarcation reference template of these supplemental characteristics and test node Tester1 inside is consistent; The address that this is regional and data message will become to be demarcated the ODT tabulation that reference template works under the DAQ-DTO pattern and fills foundation.
Such as Fig. 2 to Fig. 5, electronics calibration software driver module method of testing, described method of testing comprises:
Be used for test node Tester1 and send connection request to target detection verification platform 7, and the step that is connected with target detection verification platform 7 by communication wire road 12;
Be used for target detection verification platform 7 and receive the connection request that test node Tester1 send, and the step that is connected with test node Tester1 by communication wire road 12;
Be used for judging the whether step of successful connection of test node Tester1 and target detection verification platform 7;
Be used for judging whether again to download the step that measured target is demarcated driver module 5;
Again download measured target when needs and demarcate driver module 5, test node Tester1 sends the down loading updating order that measured target is demarcated driver module 5 to target detection verification platform 7; And to target detection verification platform 7 transmission measured targets demarcation driver modules 5;
Be used for target detection verification platform 7 and receive measured target demarcation driver module 5, the program designation module booting enters system's specific service state-automated programming pattern, and be that FLASH Driver is loaded in the storer and moves with the FLASH driver module of programming, then utilizing start-up loading district 11bootloader and FLASH programming driver module is that FLASH Driver demarcates the step that driver module 5 is cured to the assigned address of storer with measured target;
Be used for test node Tester1 and send instruction to target detection verification platform 7, the step that indicating target test and verification platform 7 starts and the operation measured target is demarcated driver module 5;
Be used for test node Tester1 and send a message object CRO to target detection verification platform 7, require to demarcate driver module 5 foundation with measured target and demarcate the step that is connected;
Be used for target detection verification platform 7 and receive the message object CRO that test node Tester1 issues, reply message object DTO message to test node Tester1, set up with test node Tester1 and demarcate the step that is connected;
Be used for test node Tester1 and call CCP protocol service storehouse 2, the information on services traversal with listing in the CCP protocol service storehouse 2 of circulation sends to the step that measured target is demarcated driver module 5;
Be used for target detection verification platform 7 and receive the message object CRO that test node Tester1 issues, corresponding step of demarcating service is provided;
Be used for the step that test node Tester1 arranges Object Descriptor table DAQ-ODT tabulation and sends Object Descriptor table DAQ-ODT tabulation configuration information to target detection verification platform 7;
Be used for target detection verification platform 7 and receive the Object Descriptor table DAQ-ODT tabulation configuration information that test node Tester1 sends, and according to the Object Descriptor table DAQ-ODT tabulation configuration information that receives, the step that tabulation arranges to Object Descriptor table DAQ-ODT;
Be used for target detection verification platform 7 and fill the step of DAQ-ODT tabulation according to the simulated calibration target data in Object Descriptor table DAQ-ODT tabulation configuration information and the structure data field;
Be used for target detection verification platform 7 and upload the step of DAQ-ODT tabulation to test node Tester1;
The step that the DAQ-ODT that uploads for test node Tester1 receiving target test and verification platform 7 tabulates;
Be used for test node Tester1 the measured target that receives is demarcated the step that information that driver module 5 returns and calibrating parameters template compare;
Be used for test node Tester1 comparison information is processed, show the step of measured target demarcation driver module 5 test results.
Demarcating driver module test execution flow process below in conjunction with the measured target among Fig. 2, the 3 couples of Fig. 4,5 specifically describes as follows:
As shown in Figure 5, be test node Tester end flowchart of the present invention, to describe test node Tester end in conjunction with Fig. 2,3,4 and carry out implementation procedure, concrete steps are as follows:
Step S501, test node Tester1 sends connection request to target detection verification platform 7, and connects by communication wire road 12;
Step S502 judges whether successful connection of test node Tester1 and target detection verification platform 7, if successful connection shows the relevant information of connection status and target detection verification platform 7 nodes to enter step S504; If can't connect, then forward step S503 to;
Step S503, the unusual reception forwards step S501 to and reconnects;
Step S504, judge whether again to download measured target and demarcate driver module 5, demarcate driver module 5 if need to again download measured target, test node Tester1 sends the down loading updating order that measured target is demarcated driver module 5 to target detection verification platform 7; And to target detection verification platform 7 transmission measured targets demarcation driver modules 5; Do not demarcate driver module 5 if do not need again to download measured target, forward step S506 to;
Step S505 reads the information that target detection verification platform 7 returns, and determines whether and downloads successfully, if download successfully, then enters step S506, if download unsuccessfully, forwards step S503 to;
Step S506 sends instruction to target detection verification platform 7, and indicating target test and verification platform 7 starts and the operation measured target is demarcated driver module 5;
Step S507 utilizes CCP standard commands CONNECT, and test node Tester1 sends a message object CRO to target detection verification platform 7, requires to demarcate driver module 5 foundation demarcation with measured target and is connected;
Whether step S508 judge to demarcate connects and to be successfully established, if set up unsuccessfully, forwards step S503 to; If be successfully established, judge that data acquisition scheme is DAT pattern or Polling pattern, if data acquisition scheme is the DAT pattern, enter step S509, if data acquisition scheme is the Polling pattern, enter step S511;
Step S509, test node Tester1 demarcates driver module 5 to measured target and sends a message object CRO, and this message object CRO is the information on services of listing in the CCP protocol service storehouse 2;
Step S510 receives measured target and demarcates the message object DTO information that driver module 5 postbacks; Return step S509, call CCP protocol service storehouse 2, the information on services traversal with listing in the CCP protocol service storehouse 2 of circulation sends to measured target and demarcates driver module 5; Simultaneously, enter step S513;
Step S511 arranges Object Descriptor table DAQ-ODT tabulation;
Step S512 receives from measured target and demarcates the message object DAQ-DTO information that driver module 5 returns continuously, enters simultaneously step S513;
Step S513, message object DTO information or DAQ-DTO information recording/that the measured target demarcation driver module 5 that at every turn receives is postbacked get off, and store assigned address into;
Step S514, the calibrating parameters template among the read test node Tester1;
Step S515 demarcates DTO information that driver module 5 returns with the measured target that receives or the calibrating parameters template among DAQ-DTO information and the step S514 compares;
Step S516 processes comparison information, shows measured target demarcation driver module 5 test results.
As follows is the subprogram source code signal of step S509-S510, S511-S512, and code is finished query pattern (Polling) and the basic implementation method of DAQ pattern:
Wherein: the execution function prototype that under the query pattern is step S509-S510:
Int _ _ Polling_Model (Uint16_t n, Uint8_t Send_CRO[]) // calibration system inquiry mode of operation
{ int i,j;
for(i=0;i<n;i++)
The Polling_CRO of { _ _ (Send_CRO[]); Send the CRO data under the // query pattern
_ _ Polling_DTO (﹠amp; REV_ACK); Receive DTO order rreturn value under the // query pattern
j = check_ACK(&REV_ACK);
if(j!=0)
{
DTO_DATA (); // response message Data Analysis
}
}
return 1;
}
Be the execution function prototype of step S511-S512 under the DAQ pattern:
Int _ _ DAQ_Model (Uint8_t Send_CRO[]) // calibration system DAQ mode of operation
{ int x,y,z;
X=_ _ DAQ_CRO (Send_CRO[]); //Send_CRO[] should comprise: use DAQ mode command code and DAQ-ODT tabulation number, by _ _ DAQ_CRO () returns number to variable x
for(y=0;y<x;y++)
{__DAQ_DTO(&REV_ACK);
z = check_ACK(&REV_ACK);
if(z!=0)
{ DTO_DATA (); // response message Data Analysis, it is tabulated corresponding to ODT
}
}
return 1;
}
As shown in Figure 5, be target detection verification platform flowchart of the present invention.Describe the target detection verification platform in detail in conjunction with Fig. 2,3,4 and carry out implementation procedure, concrete steps are as follows:
Step S601, target detection verification platform 7 receives the connection request that test node Tester1 sends, and connects by communication wire road 12;
Step S602 judges whether successful connection of target detection verification platform 7 and test node Tester1, if successful connection enters step S604; If can't connect, then forward step S603 to;
After step S602 finishes, then enter step S604,
Step S603, the unusual reception forwards step S601 to and reconnects.
Step S604, detect test node Tester1 whether the order of again downloading measured target demarcation driver module 5 is arranged, again do not download if do not need, forward step S606 to, demarcate driver module 5 if need to again download measured target, target detection verification platform 7 receives measured targets and demarcates driver modules 5, and described program designation module booting enters system's specific service state-automated programming pattern, and is that FLASH Driver is loaded in the storer and moves with the FLASH driver module of programming; Utilizing start-up loading district 11bootloader and FLASH programming driver module is that FLASH Driver demarcates the assigned address that driver module 5 is cured to storer with measured target; Specific implementation as shown in Figure 3.
Step S605 judges whether curing is successful, then enters step S606 if be successfully completed, if it is unsuccessful to programme, then forwards step S603 to;
Step S606, the target detection verification platform 7 that resets runs application, starts and operation measured target demarcation driver module 5;
Step S607, the CRO message of the CCP standard commands CONNECT that reception test node Tester1 issues is replied the DTO message to test node Tester1, sets up to demarcate with test node Tester1 to be connected;
Step S608 judges whether demarcation connects successful, and is unsuccessful if demarcation connects, and then forwards step S603 to; If the demarcation successful connection judges that data acquisition scheme is DAQ pattern or Polling pattern, if data acquisition scheme is the DAQ pattern, enter step S609, if data acquisition scheme is the Polling pattern, enter step S611;
Step S609 receives the message object CRO that test node Tester1 issues, and the corresponding service of demarcating is provided;
Step S610 responds corresponding message object DTO; When postback demarcate message object DTO and finish after, return step S609, continue receipt message object CRO, carry out respective service;
Step S611 receives the Object Descriptor table DAQ tabulation configuration information that test node Tester1 sends;
Step S612, according to the Object Descriptor table DAQ tabulation configuration information that receives, tabulation arranges to Object Descriptor table DAQ;
Step S613 fills the ODT tabulation according to the simulated calibration target data in Object Descriptor table DAQ tabulation configuration information and the structure data field;
Step S614 uploads the DAQ-ODT message continuously, finishes until demarcate.
Wherein: ECU: electronic control unit;
CCP: based on the demarcation agreement of CAN;
CRO: main equipment sends to the message object from equipment;
DTO: the message object that sends to main equipment from equipment;
DAQ: data acquisition scheme;
ODT: Object Descriptor table;
Polling pattern: query pattern;
DAQ-DTO: data acquisition scheme is replied DTO;
Object Descriptor table under the DAQ-ODT:DAQ pattern.
The invention provides a kind of automotive electronics calibration software driver module test macro and method of the CCP of meeting protocol specification, can realize in automotive electronics ECU embedded software developing process, realizing the concurrent development of each modular assembly, be typically exploitation and the test job of calibrating function driver module, save time and resource, and keep the demarcation driver module of exploitation to have higher compatibility and reliability.
Certainly; the present invention also can have other various embodiments; in the situation that do not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (5)

1. automotive electronics calibration software driver module test macro, test node Tester(1), protocol service test analysis unit (4), CCP protocol service storehouse (2), communication wire road (12), target detection verification platform (7), the first communication layers (6A), second communication floor (6B) it is characterized in that, described test macro comprises:;
Described test node Tester(1) is used for carrying on an agreement service testing analytic unit (4) related command and operation, finish the function of Test Host, realize reception and the transmission of test data and order, provide test mode to show, test data and correlation analysis result are shown;
Described CCP protocol service storehouse (2) is used for providing the CCP of standard to demarcate services request and associated responses service based on the CCP protocol development, calls for described protocol service test analysis unit (4);
Described protocol service test analysis unit (4) by calling described CCP protocol service storehouse (2), is finished the related service request of regulation in the CCP protocol service storehouse (2) and is replied, and carries out analyzing and processing to replying, and analysis processing result is provided;
Described communication wire road (12) is used for finishing test node Tester(1) and target detection verification platform (7) between physical link, if there is different types of communication bus when connecting, be described test node Tester(1) do not support target detection verification platform (7) regulation bus communication, then described communication wire road (12) should comprise a communication protocols converter (13);
Described target detection verification platform (7) is used for the operation measured target and demarcates driver module (5); Target detection verification platform (7) comprises second communication layer (6B) and guiding and loads measured target and demarcate driver module (5) and download and be programmed into driver module among the local ROM;
The driver module that described guiding loading measured target demarcation driver module (5) is downloaded and is programmed among the local ROM supports automatically download of measured target demarcation driver module (5) to be programmed into upward operation of target detection verification platform (7);
Described the first communication layers (6A) is used to described test node Tester(1) basic communication service function is provided; Test node Tester(1) connects by the first communication layers (6A), communication wire road (12) and second communication floor (6B) and described target detection verification platform (7);
Described second communication layer (6B) is used to described target detection verification platform (7) that basic communication service function is provided, and described target detection verification platform (7) is by second communication floor (6B), communication wire road (12) and described test node Tester(1) connect.
2. a kind of automotive electronics calibration software driver module test macro according to claim 1 is characterized in that: described communication protocols converter (13) is used for described test node Tester(1) with the conversion of target detection verification platform (7) variety classes communication bus protocol.
3. a kind of automotive electronics calibration software driver module test macro according to claim 1 and 2, it is characterized in that: described test macro also comprises User Defined service library (3), user-defined testing service, add in the User Defined service library (3), call for described protocol service test analysis unit (4), the self-defined service library of described protocol service test analysis unit (4) invoke user (3), the test of the self-defined service of completing user.
4. an automotive electronics calibration software driver module method of testing is characterized in that, described method of testing comprises:
Be used for test node Tester(1) send connection request to target detection verification platform (7), and the step that is connected with target detection verification platform (7) by communication wire road (12);
Be used for target detection verification platform (7) and receive test node Tester(1) connection request that sends, and by communication wire road (12) and test node Tester(1) step that is connected;
Be used for judging test node Tester(1) and target detection verification platform (7) step of successful connection whether;
Be used for judging whether again to download the step that measured target is demarcated driver module (5);
Again download measured target when needs and demarcate driver module (5), test node Tester(1) send the down loading updating order that measured target is demarcated driver module (5) to target detection verification platform (7); And to target detection verification platform (7) transmission measured target demarcation driver module (5);
Be used for target detection verification platform (7) and receive measured target demarcation driver module (5), the program designation module booting enters system's specific service state-automated programming pattern, and be that FLASH Driver is loaded in the storer and moves with the FLASH driver module of programming, then utilizing start-up loading district (11) bootloader and FLASH programming driver module is that FLASH Driver demarcates the step that driver module (5) is cured to the assigned address of storer with measured target;
Be used for test node Tester(1) send instruction to target detection verification platform (7), the step that indicating target test and verification platform (7) starts and the operation measured target is demarcated driver module (5);
Be used for test node Tester(1) send a message object CRO to target detection verification platform (7), require to demarcate driver module (5) foundation with measured target and demarcate the step that is connected;
Be used for target detection verification platform (7) and receive test node Tester(1) the message object CRO that issues, to test node Tester(1) reply message object DTO message, with test node Tester(1) set up and demarcate the step that is connected;
Be used for test node Tester(1) call CCP protocol service storehouse (2), the information on services traversal with listing in the CCP protocol service storehouse (2) of circulation sends to the step that measured target is demarcated driver module (5);
Be used for target detection verification platform (7) and receive test node Tester(1) the message object CRO that issues, corresponding step of demarcating service is provided;
Be used for test node Tester(1) measured target that receives is demarcated the step that information that driver module (5) returns and calibrating parameters template compare;
Be used for test node Tester(1) comparison information is processed, show the step of measured target demarcation driver module (5) test result.
5. a kind of automotive electronics calibration software driver module method of testing according to claim 4 is characterized in that, described method of testing also comprises:
Be used for test node Tester(1) step from Object Descriptor table DAQ-ODT tabulation configuration information to target detection verification platform (7) that Object Descriptor table DAQ-ODT tabulation is set and sends;
Be used for target detection verification platform (7) and receive test node Tester(1) the Object Descriptor table DAQ-ODT tabulation configuration information that sends, and according to the Object Descriptor table DAQ-ODT tabulation configuration information that receives, the step that tabulation arranges to Object Descriptor table DAQ-ODT;
Be used for target detection verification platform (7) and fill the step of DAQ-ODT tabulation according to the simulated calibration target data in Object Descriptor table DAQ-ODT tabulation configuration information and the structure data field;
Be used for target detection verification platform (7) to test node Tester(1) upload the step of DAQ-ODT tabulation;
Be used for test node Tester(1) step of receiving target test and verification platform (7) the DAQ-ODT tabulation of uploading.
CN 201010609192 2010-12-28 2010-12-28 Testing system and testing method of driver module of automobile electronic calibration software Expired - Fee Related CN102043717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010609192 CN102043717B (en) 2010-12-28 2010-12-28 Testing system and testing method of driver module of automobile electronic calibration software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010609192 CN102043717B (en) 2010-12-28 2010-12-28 Testing system and testing method of driver module of automobile electronic calibration software

Publications (2)

Publication Number Publication Date
CN102043717A CN102043717A (en) 2011-05-04
CN102043717B true CN102043717B (en) 2013-04-10

Family

ID=43909868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010609192 Expired - Fee Related CN102043717B (en) 2010-12-28 2010-12-28 Testing system and testing method of driver module of automobile electronic calibration software

Country Status (1)

Country Link
CN (1) CN102043717B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104483878A (en) * 2014-12-09 2015-04-01 中国航空工业集团公司第六三一研究所 Communication transmission method for calibration tool
CN109426237B (en) * 2017-08-29 2021-01-01 长城汽车股份有限公司 Hardware-in-loop test method and device for Electronic Control Unit (ECU)
CN107861874B (en) * 2017-11-10 2024-04-19 宁波普瑞均胜汽车电子有限公司 Full-automatic automobile electronic equipment testing system
CN113422706B (en) * 2021-06-18 2022-11-25 上海怿星电子科技有限公司 Method and vehicle for detecting consistency of network protocol stack

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1562654A (en) * 2004-03-26 2005-01-12 清华大学 Method for calibrating controller of electric automobile in mixing motive power based on CCP protocol
CN1747472A (en) * 2005-10-17 2006-03-15 浙江大学 Universal embedded marker and marking method based on CCP
CN101414188A (en) * 2008-12-03 2009-04-22 重庆邮电大学 Automobile ABS ECU on-line calibration system and method based on CCP protocol

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080154811A1 (en) * 2006-12-21 2008-06-26 Caterpillar Inc. Method and system for verifying virtual sensors

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1562654A (en) * 2004-03-26 2005-01-12 清华大学 Method for calibrating controller of electric automobile in mixing motive power based on CCP protocol
CN1747472A (en) * 2005-10-17 2006-03-15 浙江大学 Universal embedded marker and marking method based on CCP
CN101414188A (en) * 2008-12-03 2009-04-22 重庆邮电大学 Automobile ABS ECU on-line calibration system and method based on CCP protocol

Non-Patent Citations (8)

* Cited by examiner, † Cited by third party
Title
冯辉宗 *
岑明 *
张彧 *
张艳.电控发动机自动优化标定系统的研究.《柴油机》.2005,第27卷(第2期),全文. *
李国岫 *
李彩芬 *
甘海云.基于CCP协议汽车电控单元标定系统的设计.《车用发动机》.2007,(第3期),全文. *
虞育松 *

Also Published As

Publication number Publication date
CN102043717A (en) 2011-05-04

Similar Documents

Publication Publication Date Title
CN1747472B (en) Universal embedded marker and marking method based on CCP
US8627311B2 (en) Systems, methods, and apparatus to deploy software
CN104090800B (en) The installation method of vehicle terminal software
US7747995B2 (en) Method and system for controlling software version updates
US9489187B2 (en) Adaptive deployment of applications for mobile devices
CN113672441B (en) Method and device for testing intelligent equipment
CN102043717B (en) Testing system and testing method of driver module of automobile electronic calibration software
CN104461897A (en) Application program test method and device
CN107832065A (en) Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
CN112954040B (en) Method, system, device and storage medium for embedding application release server
CN112351471A (en) Method for accessing device to gateway, gateway device and computer readable storage medium
CN116257438A (en) Updating method of interface test case and related equipment
CN112241311A (en) Firmware simulation method and device, electronic equipment and readable storage medium
CN116775079A (en) Vehicle part refreshing method and device, electronic equipment and storage medium
EP2445171B1 (en) File transfer protocol client and implementing method thereof
CN113794602A (en) Equipment testing method and device, terminal equipment and storage medium
CN111817878A (en) Networking method and device of intelligent equipment and cloud server
CN109960657B (en) Test environment deployment method and related device
CN101197959B (en) Terminal control method, system and equipment
CN116436794A (en) OPC real-time data integration and control method based on Internet of things model
CN110688130A (en) Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment
CN116225418A (en) System and method for rapidly developing automobile controller software
CN114003250A (en) Software deployment method and device
CN114461337A (en) Cloud simulation system and method, electronic equipment and storage medium
CN114185557A (en) Software product deployment method, device, medium and electronic equipment

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: 20130410

Termination date: 20171228