CN102043717A - 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
CN102043717A
CN102043717A CN 201010609192 CN201010609192A CN102043717A CN 102043717 A CN102043717 A CN 102043717A CN 201010609192 CN201010609192 CN 201010609192 CN 201010609192 A CN201010609192 A CN 201010609192A CN 102043717 A CN102043717 A CN 102043717A
Authority
CN
China
Prior art keywords
test
target
driver module
verification platform
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 201010609192
Other languages
Chinese (zh)
Other versions
CN102043717B (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

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 software, 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 software, 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 software; and the protocol service test analysis software 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 the exploitation of whole software funtion part 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 one step of back 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 system development efficient so greatly, extend system development cycle as demarcating and the exploitation and the test job of Diagnosis Service module.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 often can't be finished the perfect testing authentication work of each assembly of system, also is unfavorable for the performance boost and the quality assurance of product.The exploitation of module of one step of back may make the assembly of developing previously do over again, and more may cause the exploitation again 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 software, CCP protocol service storehouse, communication wire road, target test and verification platform, communication layers;
Described test node Tester is used to move protocol service test analysis software, service testing analysis software related command and operation carry on an agreement, finish the function of Test Host, realize the 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 to provide the CCP of standard to demarcate services request and associated responses service, for the software transfer of described protocol service test analysis based on the CCP protocol development;
Described protocol service test analysis software 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 to finish the physical link between test node Tester and the target test and verification platform, if there is different types of communication bus when connecting, be that described test node Tester does not support target test and verification platform regulation bus communication, then described communication wire road should comprise a communication protocols converter;
Described target test and verification platform is used to move measured target and demarcates driver module; The target test and verification platform comprises communication layers and Bootstrap Loading measured target and demarcates driver module and download and be programmed into driver module among the local ROM;
Described driver module support measured target demarcation driver module is downloaded to be programmed on the target test and verification platform automatically and is moved;
Described communication layers is used to described test node Tester that basic communication service function is provided; Test node Tester connects by communication layers, communication wire road and described target test and verification platform;
Described communication layers is used to described target test and verification platform that basic communication service function is provided, and described target test and verification platform connects by communication layers, 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 test and 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 the software transfer of described protocol service test analysis, described protocol service test analysis software transfer User Defined service library is finished the test of User Defined service.
Described automotive electronics calibration software driver module test macro can also carry out and finish the testing service of user oneself setting according to the User Defined service library.
 
A preferred version according to a kind of automotive electronics calibration software driver module test macro of the present invention, described Bootstrap Loading measured target is demarcated driver module, and 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 test and 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, and carry out step of connecting by communication wire road and target test and verification platform to the target test and verification platform;
Be used for the connection request that target test and verification platform acceptance test node Tester sends, and carry out step of connecting by communication wire road and test node Tester;
Be used to judge the whether step of successful connection of test node Tester and target test and verification platform;
Be used to judge whether to download the step that measured target is demarcated driver module again;
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 test and verification platform; And to target test and verification platform transmission measured target demarcation driver module;
Be used for the target test and 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, utilizing start-up loading district (11) bootloader and FLASH programming driver module then 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, the step that the indicating target test and verification platform starts and the operation measured target is demarcated driver module to the target test and verification platform;
Be used for test node Tester and send a message object CRO, require to demarcate driver module foundation and demarcate step of connecting with measured target to the target test and verification platform;
Be used for the message object CRO that target test and verification platform acceptance test node Tester issues, reply message object DTO message, set up with test node Tester and demarcate step of connecting to test node Tester;
Be used for test node Tester and call CCP protocol service storehouse, round-robin sends to the step that measured target is demarcated driver module with the information on services traversal of listing in the CCP protocol service storehouse;
Be used for the message object CRO that target test and verification platform acceptance 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 handled, 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 to be provided with the step that Object Descriptor table DAQ-ODT tabulates and send Object Descriptor table DAQ-ODT tabulation configuration information to the target test and verification platform;
Be used for the Object Descriptor table DAQ-ODT tabulation configuration information that target test and verification platform acceptance test node Tester sends, and according to the Object Descriptor table DAQ-ODT tabulation configuration information that receives, the step that tabulation is provided with to Object Descriptor table DAQ-ODT;
Be used for the target test and 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 test and verification platform and upload the step of DAQ-ODT tabulation to test node Tester;
The step that is used for the DAQ-ODT tabulation that test node Tester receiving target test and verification platform uploads.
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 test and verification platform function, and on the target test and verification platform, make up the data field simulation by the nominal data piece, the true environment of demarcating of simulation; Simultaneously, the protocol service testing software also supports the self-defined demarcation service library of invoke user except can testing authentication meeting the demarcating module of CCP protocol service among the present invention, and the checking User Defined is demarcated and realized; The present invention is supported in and allows a plurality of target test and verification platforms under the situation of having only a test node Tester and moved test, and their modes by bus addressing or network communication mode carry out the reception and registration of the mutual and detecting information of calibration information; 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 security and the 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 driver module 5 download synoptic diagram automatically;
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 test and 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 software 4, communication layers 6A, 6B, communication wire road 12, target test and verification platform 7; Wherein
Described test node Tester1 is used to move protocol service test analysis software 4, service testing analysis software 4 related commands and operation carry on an agreement, finish the function of Test Host, realize the 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 software 4, communication layers 6A, measured target are demarcated driver module 5;
Described CCP protocol service storehouse 2 is used to provide 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 software 4;
User Defined service library 3 is used to provide user-defined testing service request and associated responses service, calls for described protocol service test analysis software 4;
Described protocol service test analysis software 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 software 4 invoke user is finished the test of User Defined service; Protocol service test analysis software 4 is demarcated driver module 5 logics by communication layers 6A with the measured target on running on target test and verification platform 7 and is connected, and it is mutual to carry out calibration information;
Described communication wire road 12 is used to finish between test node Tester1 and the target test and verification platform 7 sets up physical link, test node Tester1 be connected with target test and verification platform 7 by communication layers 6A, communication wire road 12 and communication layers 6B and link data mutual; Communication layers shielding lower floor communication wire road detail is for the upper strata provides unified, standard communication API; If exist different types of communication bus, promptly described test node Tester1 not to support target test and verification platform 7 regulation bus communications when connecting, 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 test and verification platform 7 variety classes communication bus protocols.
Described target test and verification platform 7 is used to move measured target and demarcates driver module 5; Target test and verification platform 7 comprises communication layers 6B and Bootstrap Loading measured target and demarcates driver module 5 and download and be programmed into driver module among the local ROM; Fig. 3 is that measured target of the present invention is demarcated driver module 5 download synoptic diagram automatically.
Wherein, described Bootstrap Loading measured target is demarcated driver module 5, and 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 test and 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 test and verification platform 7 demarcates driver module 5, described 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 communication layers 6A is used to described test node Tester1 that basic communication service function is provided;
Described communication layers 6B is used to described target test and verification platform 7 that basic communication service function is provided.
The present invention is supported in and allows a plurality of target test and verification platforms 7 under the situation of having only a test node Tester1 by the operation test, and their modes by bus addressing or network communication mode carry out the reception and registration of the mutual and detecting information of calibration information.
In specific embodiment, target test and verification platform 7 specifically comprises: special function zones 8, structure data field 9, application space 10, start-up loading district 11, communication layers 6B;
It is the bootloader program that start-up loading district 11 is used to deposit 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 to deposit 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 basic initialize routine, program run transfer, clock timed sequence module, to arrange the hardware environment of test procedure operation;
Make up data field 9, be used to store the various supplemental characteristics as demarcating, the demarcation reference template of these supplemental characteristics and test node Tester1 inside is consistent; 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.
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, and carry out step of connecting by communication wire road 12 and target test and verification platform 7 to target test and verification platform 7;
Be used for the connection request that target test and verification platform 7 acceptance test node Tester1 send, and carry out step of connecting with test node Tester1 by communication wire road 12;
Be used to judge the whether step of successful connection of test node Tester1 and target test and verification platform 7;
Be used to judge whether to download the step that measured target is demarcated driver module 5 again;
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 test and verification platform 7; And to target test and verification platform 7 transmission measured targets demarcation driver modules 5;
Be used for target test and verification platform 7 and receive measured target demarcation driver module 5, 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, utilizing start-up loading district 11bootloader and FLASH programming driver module then 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, the step that indicating target test and verification platform 7 starts and the operation measured target is demarcated driver module 5 to target test and verification platform 7;
Be used for test node Tester1 and send a message object CRO, require to demarcate driver module 5 foundation and demarcate step of connecting with measured target to target test and verification platform 7;
Be used for the message object CRO that target test and verification platform 7 acceptance test node Tester1 issue, reply message object DTO message, set up with test node Tester1 and demarcate step of connecting to test node Tester1;
Be used for test node Tester1 and call CCP protocol service storehouse 2, round-robin sends to the step that measured target is demarcated driver module 5 with the information on services traversal of listing in the CCP protocol service storehouse 2;
Be used for the message object CRO that target test and verification platform 7 acceptance test node Tester1 issue, corresponding step of demarcating service is provided;
Be used to be provided with the step that Object Descriptor table DAQ-ODT tabulates and send Object Descriptor table DAQ-ODT tabulation configuration informations to target test and verification platform 7;
Be used for the Object Descriptor table DAQ-ODT tabulation configuration information that target test and verification platform 7 acceptance test node Tester1 send, and according to the Object Descriptor table DAQ-ODT tabulation configuration information that receives, the step that tabulation is provided with to Object Descriptor table DAQ-ODT;
Be used for target test and 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 test and verification platform 7 and upload the step of DAQ-ODT tabulation to test node Tester1;
The step that is used for the DAQ-ODT tabulation that test node Tester1 receiving target test and verification platform 7 uploads;
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 handled, 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 test and verification platform 7, and connects by communication wire road 12;
Step S502 judges whether successful connection of test node Tester1 and target test and verification platform 7, if successful connection, shows the relevant information of connection status and target test and verification platform 7 nodes, enters 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 to download again measured target and demarcate driver module 5, demarcate driver module 5 if need download measured target again, test node Tester1 sends the down loading updating order that measured target is demarcated driver module 5 to target test and verification platform 7; And to target test and verification platform 7 transmission measured targets demarcation driver modules 5; Do not demarcate driver module 5 if do not need to download again measured target, forward step S506 to;
Step S505 reads the information that target test and verification platform 7 returns, and judges and whether downloads success, if download successfully, then enters step S506, gets nowhere if download, and forwards step S503 to;
Step S506 sends instruction to target test and 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 test and verification platform 7, requires to demarcate driver module 5 foundation demarcation with measured target and is connected;
Step S508 judges and demarcates to connect whether set up success, if foundation is unsuccessful, forward step S503 to; If set up successfully, the judgment data drainage pattern is DAT pattern or Polling pattern, if data acquisition scheme is the DAT pattern, enters step S509, if data acquisition scheme is the Polling pattern, enters 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, round-robin sends to measured target with the information on services traversal of listing in the CCP protocol service storehouse 2 and demarcates driver module 5; Simultaneously, enter step S513;
Step S511 is provided with 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 step S513 simultaneously;
Step S513 notes message object DTO information or DAQ-DTO information that the measured target demarcation driver module 5 that at every turn receives postbacks, stores 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 handles 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[]); // query pattern sends the CRO data down
_ _ Polling_DTO (﹠amp; REV_ACK); // query pattern receives DTO order rreturn value down
j?=?check_ACK(&REV_ACK);
if(j!=0)
{
DTO_DATA (); The data parsing of // response message
}
}
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 sign indicating number and DAQ-ODT tabulation number, by _ _ DAQ_CRO () returns number and gives variable x
for(y=0;y<x;y++)
{__DAQ_DTO(&REV_ACK);
z?=?check_ACK(&REV_ACK);
if(z!=0)
{ DTO_DATA (); The data parsing of // response message, it is tabulated corresponding to ODT
}
}
return?1;
}
As shown in Figure 5, be target test and verification platform flowchart of the present invention.Describe the target test and verification platform in detail in conjunction with Fig. 2,3,4 and carry out implementation procedure, concrete steps are as follows:
Step S601, the connection request that target test and verification platform 7 acceptance test node Tester1 send, and connect by communication wire road 12;
Step S602 judges whether successful connection of target test and 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 downloading measured target demarcation driver module 5 is again arranged, if do not need to download again, forward step S606 to, demarcate driver module 5 if need download measured target again, target test and 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 complete successfully, if programming gets nowhere, then forwards step S603 to;
Step S606, reset object test and verification platform 7 runs application, starts and operation measured target demarcation driver module 5;
Step S607, the CRO message of the CCP standard commands CONNECT that acceptance 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 as if demarcating connection, then forwards step S603 to; If demarcate successful connection, the judgment data drainage pattern is DAQ pattern or Polling pattern, if data acquisition scheme is the DAQ pattern, enters step S609, if data acquisition scheme is the Polling pattern, enters step S611;
Step S609, the message object CRO that acceptance test node Tester1 issues provides the corresponding service of demarcating;
Step S610 responds corresponding message object DTO; When postback demarcate message object DTO and finish after, return step S609, continue to receive message object CRO, carry out respective service;
Step S611, the Object Descriptor table DAQ tabulation configuration information that acceptance test node Tester1 sends;
Step S612, according to the Object Descriptor table DAQ tabulation configuration information that receives, tabulation is provided with 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 demarcating.
Wherein: ECU: electronic control unit;
CCP: based on the demarcation agreement of CAN;
CRO: main equipment sends to the message object of slave unit;
DTO: slave unit sends to the message object of main 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 be implemented in the concurrent development of realizing each modular assembly in the automotive electronics ECU embedded software developing process, be typically the 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; 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. automotive electronics calibration software driver module test macro, test node Tester(1), protocol service test analysis software (4), CCP protocol service storehouse (2), communication wire road (12), target test and verification platform (7), communication layers (6A, 6B) it is characterized in that described test macro comprises:;
Described test node Tester(1) is used to move protocol service test analysis software (4), service testing analysis software (4) related command and operation carry on an agreement, finish the function of Test Host, realize the 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 to provide 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 software (4);
Described protocol service test analysis software (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 to finish test node Tester(1) and target test and 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 test and verification platform (7) regulation bus communication, then described communication wire road (12) should comprise a communication protocols converter (13);
Described target test and verification platform (7) is used to move measured target and demarcates driver module (5); Target test and verification platform (7) comprises communication layers (6B) and Bootstrap Loading measured target and demarcates driver module (5) and download and be programmed into driver module among the local ROM;
Described driver module is supported measured target to demarcate driver module (5) download automatically and is programmed into upward operation of target test and verification platform (7);
Described communication layers (6A) is used to described test node Tester(1) basic communication service function is provided; Test node Tester(1) connects with described target test and verification platform (7) by communication layers (6B), communication wire road (12);
Described communication layers (6B) is used to described target test and verification platform (7) that basic communication service function is provided, and described target test and verification platform (7) is by communication layers (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, it is characterized in that: described communication protocols converter (13) is used for described test node Tester(1) with the conversion of target test and 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 software (4), the self-defined service library of described protocol service test analysis software (4) invoke user (3) is finished the test of User Defined service.
4. a kind of automotive electronics calibration software driver module test macro according to claim 3, it is characterized in that: described Bootstrap Loading measured target is demarcated driver module (5), and 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 test and 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 cured to storer.
5. 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 test and verification platform (7), and carry out step of connecting by communication wire road (12) and target test and verification platform (7);
Be used for target test and verification platform (7) acceptance test node Tester(1) connection request that sends, and by communication wire road (12) and test node Tester(1) carry out step of connecting;
Be used to judge test node Tester(1) with target test and verification platform (7) step of successful connection whether;
Be used to judge whether to download the step that measured target is demarcated driver module (5) again;
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 test and verification platform (7); And to target test and verification platform (7) transmission measured target demarcation driver module (5);
Be used for target test and verification platform (7) and receive measured target demarcation driver module (5), 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, utilizing start-up loading district (11) bootloader and FLASH programming driver module then 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 test and 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 test and verification platform (7), require to demarcate driver module (5) foundation and demarcate step of connecting with measured target;
Be used for target test and verification platform (7) acceptance 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 step of connecting;
Be used for test node Tester(1) call CCP protocol service storehouse (2), round-robin sends to the step that measured target is demarcated driver module (5) with the information on services traversal of listing in the CCP protocol service storehouse (2);
Be used for target test and verification platform (7) acceptance 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 handled, show the step of measured target demarcation driver module (5) test result.
6. a kind of automotive electronics calibration software driver module method of testing according to claim 5 is characterized in that described method of testing also comprises:
Be used to be provided with the step that Object Descriptor table DAQ-ODT tabulates and send Object Descriptor table DAQ-ODT tabulation configuration information to target test and verification platform (7);
Be used for target test and verification platform (7) acceptance 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 is provided with to Object Descriptor table DAQ-ODT;
Be used for target test and 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 test and 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 true CN102043717A (en) 2011-05-04
CN102043717B 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)

Cited By (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
CN107861874A (en) * 2017-11-10 2018-03-30 宁波普瑞均胜汽车电子有限公司 Full-automatic vehicle electronics test system
CN109426237A (en) * 2017-08-29 2019-03-05 长城汽车股份有限公司 A kind of hardware-in―the-loop test method and apparatus of electronic control unit ECU
CN113422706A (en) * 2021-06-18 2021-09-21 上海怿星电子科技有限公司 Method and vehicle for detecting consistency of network protocol stack

Citations (4)

* 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
US20080154811A1 (en) * 2006-12-21 2008-06-26 Caterpillar Inc. Method and system for verifying virtual sensors
CN101414188A (en) * 2008-12-03 2009-04-22 重庆邮电大学 Automobile ABS ECU on-line calibration system and method based on CCP protocol

Patent Citations (4)

* 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
US20080154811A1 (en) * 2006-12-21 2008-06-26 Caterpillar Inc. Method and system for verifying virtual sensors
CN101414188A (en) * 2008-12-03 2009-04-22 重庆邮电大学 Automobile ABS ECU on-line calibration system and method based on CCP protocol

Non-Patent Citations (2)

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

Cited By (6)

* 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
CN109426237A (en) * 2017-08-29 2019-03-05 长城汽车股份有限公司 A kind of hardware-in―the-loop test method and apparatus of electronic control unit ECU
CN107861874A (en) * 2017-11-10 2018-03-30 宁波普瑞均胜汽车电子有限公司 Full-automatic vehicle electronics test system
CN107861874B (en) * 2017-11-10 2024-04-19 宁波普瑞均胜汽车电子有限公司 Full-automatic automobile electronic equipment testing system
CN113422706A (en) * 2021-06-18 2021-09-21 上海怿星电子科技有限公司 Method and vehicle for detecting consistency of network protocol stack
CN113422706B (en) * 2021-06-18 2022-11-25 上海怿星电子科技有限公司 Method and vehicle for detecting consistency of network protocol stack

Also Published As

Publication number Publication date
CN102043717B (en) 2013-04-10

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
US10942728B2 (en) Deploying device campaign updates to IoT devices
CN102043717B (en) Testing system and testing method of driver module of automobile electronic calibration software
CN113672441B (en) Method and device for testing intelligent equipment
CN106648563B (en) Dependency decoupling processing method and device for shared module in application program
CN101000550A (en) Remote on-line reconfiguration method of embedded system
CN112631803A (en) Intelligent contract calling method, device, server and storage medium for block chain
CN116257438A (en) Updating method of interface test case and related equipment
CN108694121B (en) Automatic testing method, device and system
KR101478903B1 (en) Service providing method and system for processing information of node based on profile of node in instance hosting environment
EP2594096B1 (en) Method and apparatus for updating a user terminal
KR20140121533A (en) Method and system for providing service based on profile according to node property in instance hosting environment
CN111817878A (en) Networking method and device of intelligent equipment and cloud server
CN110413423A (en) Data processing method, relevant apparatus, equipment and storage medium
CN114461337A (en) Cloud simulation system and method, electronic equipment and storage medium
CN114003250A (en) Software deployment method and device
CN116701004A (en) Cloud function development method, device, electronic device and storage medium
CN114185557A (en) Software product deployment method, device, medium and electronic equipment
CN106445599A (en) Application program upgrading method and upgrading device and terminal
US20210176641A1 (en) Device Enrollment using Serialized Application
US20210203733A1 (en) Automated Constrained Datamodel Provisioning Procedure
CN110188021A (en) A kind of automated testing method of server
TWM468695U (en) Cloud connection monitoring system for processing equipment
CN117592118A (en) Apple development certificate management method and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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