CN101867504A - Method and device for testing consistency of automation fieldbus - Google Patents

Method and device for testing consistency of automation fieldbus Download PDF

Info

Publication number
CN101867504A
CN101867504A CN 201010205511 CN201010205511A CN101867504A CN 101867504 A CN101867504 A CN 101867504A CN 201010205511 CN201010205511 CN 201010205511 CN 201010205511 A CN201010205511 A CN 201010205511A CN 101867504 A CN101867504 A CN 101867504A
Authority
CN
China
Prior art keywords
test
tested
agreement
request
data
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.)
Pending
Application number
CN 201010205511
Other languages
Chinese (zh)
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.)
ZHONGKONG SCIENCE AND TECHNOLOGY GROUP Co Ltd
Zhejiang University ZJU
Supcon Group Co Ltd
Original Assignee
ZHONGKONG SCIENCE AND TECHNOLOGY GROUP Co Ltd
Zhejiang University ZJU
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 ZHONGKONG SCIENCE AND TECHNOLOGY GROUP Co Ltd, Zhejiang University ZJU filed Critical ZHONGKONG SCIENCE AND TECHNOLOGY GROUP Co Ltd
Priority to CN 201010205511 priority Critical patent/CN101867504A/en
Publication of CN101867504A publication Critical patent/CN101867504A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for testing the consistency of an automation fieldbus. The method comprises the following steps of: generating a test item according to the test requirement; reading the test item, and testing the tested protocol implementation according to the test item; and generating a test result, and judging whether the test result meets the test requirement defined by the tested protocol in the automation fieldbus, wherein if the test result meets the test requirement, the automation fieldbus meets the requirement on consistency, and if the test result does not meet the test requirement, the automation fieldbus does not meet the requirement on consistency. The method and the device of the invention have the advantages of realizing the consistency test on the automation fieldbus by carrying out consistency test and detection on the tested protocol implementation of each development unit and then obtaining whether the implementation method of the tested protocol which realizes a certain automation fieldbus standard meets the consistency of the automation fieldbus.

Description

Automation field bus conformance test method and tester
Technical field
The present invention relates to the automation field bus technical field, more particularly, relate to a kind of automation field bus conformance test method and tester.
Background technology
Use popularization and the application of Ethernet EPA (Ethernet forPlant Automation) with factory automation along with first standard for Fieldbus of China.Whether satisfy the regulation of EPA standard and the requirement of authority file according to the EPA product that detects third party producer, the EPA communication stack of third party producer has been proposed to carry out uniformity test.
Yet now domestic certification work to standard for Fieldbus does not seldom more have a kind of detection method of uniformity test of automation field bus.
Summary of the invention
In view of this, the invention provides a kind of automation field bus conformance test method and tester, to realize to the conforming test of automation field bus.
Concrete, the technical scheme of proposition is as follows:
A kind of automation field bus conformance test method comprises:
Generate test item according to test request;
Read described test item, tested agreement is realized testing according to described test item;
Generate test result, judge whether this test result meets the test request of tested protocol definition in the automation field bus, if then satisfy coherence request; If not, then do not satisfy coherence request.
Preferably, described test request by: check basic communication index that described tested agreement realizes, time precision, protocol stack system information storehouse and protocol status management, surveyed the defined scheduling mode of automation field bus agreement and whether be achieved and meet consistency, check that perhaps described tested agreement realizes the user data that is transmitted, whether carried out the processing of protocol layer, and user data is offered client layer by protocol requirement by the tested protocol requirement of tested automation field bus.
Preferably, described test item is divided into the service of confirmation and non-confirmation service by the requirement of testing service response.
Preferably, the system information storehouse and the protocol status management of the basic communication index that realizes by the described tested agreement of inspection when described test request, time precision, protocol stack, surveyed whether the defined scheduling mode of automation field bus agreement is achieved and when meeting consistency, described tested agreement realization is tested and judged whether test result satisfies coherence request and be:
Generate test command according to test item;
Send test command to tested agreement and realize, and receive the message that tested agreement realizes output;
Analyze described message and obtain test result, judge whether described test result meets the test request of tested protocol definition in the automation field bus agreement, if then satisfy coherence request; If not, then do not satisfy coherence request.
Preferably,, whether carried out the processing of protocol layer, and when be valid data, carried out and also comprise before operating according to test request generation test item by being surveyed agreement by automation field bus when checking that described tested agreement realizes the user's data that offers:
The code of test agent to described tested agreement realizes in the interpolation, finishes the described test agent that goes up and docks with the interface that tested agreement realizes.
Preferably, finish described go up test agent and the interface of tested agreement realization dock after, this method also comprises:
Test described upward test agent interface and tested agreement and realize whether transfer of data is correct between the interface, if, then carry out according to test request and generate the test item operation, if not, then withdraw from.
Preferably, check that described tested agreement realizes the user data that is transmitted, whether carried out the processing of protocol layer by the tested protocol requirement of tested automation field bus, and user data is offered the test request of client layer by protocol requirement, be divided into: test described tested agreement and realize sending disposal ability after the ability of user data and the described tested agreement of test realize receiving tested request message.
Preferably, when test request is realized sending the ability of user data for the described tested agreement of test, described tested agreement is realized testing and judging whether test result satisfies coherence request and be:
Generate test packet according to described test item, obtain test instruction after will described test packet handling, and transmission and the corresponding data of described test instruction are to described tested agreement realization;
Monitor the message that sends after described tested agreement realization processing and the corresponding data of described test instruction, whether the result of analyzing described tested agreement realization meets the test request of tested protocol definition in the automation field bus, if then satisfy coherence request; If not, then do not satisfy coherence request.
Preferably, described test packet is handled obtained test instruction and be:
Described test packet is sent to described tested agreement realizes, carry out protocol layer by it and handle, and the upper layer data that sends described protocol layer obtains test instruction to the described test agent that goes up by its upper layer data of analyzing described protocol layer.
Preferably, when described test request is realized receiving the disposal ability of tested request message for the tested agreement of test, described tested agreement is realized testing and judging whether test result satisfies coherence request and be:
Generate test packet according to described test item, and send it to described tested agreement and realize, carrying out protocol layer by it handles, satisfy when pre-conditioned, the upper layer data of this protocol layer is sent to the described test agent that goes up, by its storage and according to the upper layer data of the described protocol layer of type of process of described test packet;
The instruction message is obtained in transmission, obtains to be stored in the described data that go up test agent, and itself and described test packet are compared, if comparison result is identical, then satisfies coherence request, otherwise, do not satisfy coherence request.
Preferably, describedly pre-conditionedly be: satisfy the requirement of tested agreement with the corresponding protocol layer of described test packet.
Preferably, the described test agent that goes up is handled the upper layer data of described protocol layer and is:
When described test packet is the confirmation service, the described upper layer data generation response data that goes up test agent according to described protocol layer, and transmit it to described tested agreement realization, carry out the data validity judgement by it, when satisfying validity, with its transmission.
Preferably, also comprise before the generation test packet: sending controling instruction is controlled it and is carried out initialization and parameter setting to the described test agent that goes up.
Preferably, judging whether this test result meets also comprises before the test request of tested protocol definition in the automation field bus and adopts mistake immunoassay method that described tested agreement is realized testing.
A kind of automation field bus uniformity test device comprises:
The test item generation unit is used for generating test item according to test request;
Test cell is used to read described test item, according to described test item tested agreement is realized testing and generating test result;
The consistency judging unit is used to judge whether test result meets the test request of automation field bus definition, if then satisfy coherence request; If not, then do not satisfy coherence request.
Preferably, described test cell comprises: check basic communication index that described tested agreement realizes, time precision, protocol stack system information storehouse and protocol status management, whether the defined scheduling mode of automation field bus agreement of surveying is achieved and meet conforming first test cell, and, check that described tested agreement realizes the user data that is transmitted, whether carried out the processing of protocol layer, and user data has been offered client layer second test cell and last test agent by protocol requirement by the tested protocol requirement of tested automation field bus.
Preferably, the described test agent that goes up comprises: body and be arranged at basic service interface, testing service interface on the body, wherein:
Described basic service interface is used to transmit described test instruction and the test data between test agent and the realization of tested agreement that go up;
Described testing service interface is used for providing interface to every kind of test item, realizes carrying out data interaction with described tested agreement.
From above-mentioned technical scheme as can be seen, the present invention realizes carrying out uniformity test by the tested agreement to each exploitation unit and detects, and then obtain the consistency criterion that tested agreement realizes whether the realization of certain automation field bus standard is met this automation field bus, realized uniformity test to automation field bus.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of the disclosed a kind of automation field bus conformance test method of the embodiment of the invention;
Fig. 2 is the schematic diagram of the disclosed a kind of automation field bus uniformity test device of the embodiment of the invention;
Fig. 3 is the schematic diagram of the disclosed a kind of automation field bus uniformity test device of another embodiment of the present invention;
Fig. 4 is the sequential chart that the tested agreement of the disclosed test of the embodiment of the invention realizes sending data capability;
Fig. 5 is the sequential chart that the tested agreement of the disclosed test of the embodiment of the invention realizes the disposal ability of the tested request message of processing;
Fig. 6 is the disclosed schematic diagram of going up test agent of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention discloses a kind of automation field bus conformance test method, to realize to the conforming test of automation field bus.
Described automation field bus conformance test method as shown in Figure 1, comprises step:
S1, generate test item according to test request;
Concrete, uniformity test to the tested agreement realization of difference, can form different test requests, concrete, described test request can be divided into two aspects, and first aspect refers to, check the basic communication index that described tested agreement realizes, time precision, whether the management of the system information storehouse of protocol stack and protocol status is perhaps surveyed the defined scheduling mode of automation field bus agreement and is achieved and meets consistency; Second aspect refers to, checks that whether described tested agreement realizes the user data that is transmitted, carried out the processing of protocol layer by the tested protocol requirement of tested automation field bus, and by protocol requirement user data is offered client layer.
And according to the test item that different test requests is filled in out, the requirement that responds according to testing service is divided into the service of confirmation and non-confirmation service.
S2, read described test item, tested agreement is realized testing according to described test item;
Wherein, agreement realizes specifically being meant the product that generates according to described automation field bus, because this automation field bus is divided into various protocols, corresponding just the generation has various protocols to realize, and just can be referred to as tested agreement realization to the product under the contract in requisition for test.
S3, generation test result judge whether test result meets the test request of tested protocol definition in the automation field bus, if, be step S4 then, satisfy coherence request; If not, then be step S5, do not satisfy coherence request.
Concrete, include a plurality of content measurements in the described test item, when testing each content measurement, all can obtain a test result, judge whether to satisfy the uniformity test requirement.After executing all content measurements, the test result according to each content measurement draws final evaluation again, and promptly when all content measurements all satisfied uniformity test and require, final test result promptly met consistency.
The embodiment of the invention also discloses a kind of automation field bus uniformity test device, described tested agreement is realized testing, this tester comprises as shown in Figure 2: test item generation unit 101, test cell 102 and consistency judging unit 103, wherein:
Test item generation unit 101 is used for generating test item according to test request;
Test cell 102 is used to read described test item, according to described test item tested agreement is realized testing and generating test result;
Consistency judging unit 103 is used to judge whether test result meets the test request of automation field bus definition, if then satisfy coherence request; If not, then do not satisfy coherence request.
Concrete, can pass through words input mode input test requirement by the staff, specifically can input to the static document that tested agreement realizes, except that comprising test request, can also include the essential information that tested agreement realizes in this static document.
The static document that tested agreement realizes when fill in finish after, can begin to test, import the static document that described tested agreement realizes, but the generation test set is chosen test item, at this moment, test item generation unit 101 just can generate test item.
And, difference according to test request, described test cell can be divided into: check the basic communication index that described tested agreement realizes, time precision, the system information storehouse of protocol stack and protocol status management, whether the defined scheduling mode of automation field bus agreement of surveying is achieved and meets conforming first test cell, and, check that described tested agreement realizes the user data that is transmitted, whether carried out the processing of protocol layer, and user data has been offered second test cell and the last test agent of client layer by protocol requirement by the tested protocol requirement of tested automation field bus.Wherein: first test cell and second test cell can be same test cell, also can be in tester different test cells.
Below described automation field bus conformance test method is described.
When described test request is the content of first aspect, only need tester can finish the uniformity test that described tested agreement is realized.This uniformity test process is: tester is according to the content of test item, sending test command realizes in tested agreement, and receive tested agreement and realize the message that produces, tester judges whether described test result meets the test request of tested protocol definition in the automation field bus agreement, if then satisfy coherence request; If not, then do not satisfy coherence request.
When described test request was the content of second aspect, as shown in Figure 3, tester need be formed test macro with last test agent, and cooperating is finished the uniformity test that described tested agreement realizes.Concrete, last test agent 104 is finished the uniformity test operation jointly with the test cell 102 of tester.
At this moment, the test that confirms service is made up of four aspects:
Test tested agreement and realize sending the ability that confirms the service request data,
Test the ability of tested agreement realization confirmation of receipt service request data,
Test the ability that tested agreement realizes that the confirmation of receipt service is just responding,
Test the ability of tested agreement realization confirmation of receipt service Negative Acknowledgment.
The test of non-confirmation service is made up of two aspects:
Test the ability of the non-confirmation service request data of tested agreement realization transmission,
Test the ability of the non-confirmation service request data of tested agreement realization reception.
Above-mentioned content measurement should carry out combined test by the part that different agreements is chosen wherein.
And, being embodied as transmission data or deal with data according to the tested agreement of test, method of testing has difference.
When testing tested agreement when realizing sending data capability, test process as shown in Figure 4, for:
Tester generates test packet according to described test request, and sends described test packet and the realization of tested agreement; Tested agreement realizes receiving described test packet, resolves protocol layer corresponding with it, and its upper layer data is sent in test agent 104; Last test agent 104 draws and resolves test instruction by analyzing described upper layer data, sends with corresponding data of described test instruction and tested agreement and realizes; Tested agreement realizes handling the described and corresponding data of test instruction according to the requirement of tested agreement; Tester is by monitoring the message that tested agreement realization is sent on the network, and then analyze the test request whether result that tested agreement realizes meets tested protocol definition in the automation field bus, finally judge whether consistent with the tested agreement of automation field bus.
Specifically, described tested agreement realizes handling the described and corresponding data of test instruction, if be somebody's turn to do and the requirement of the corresponding data fit protocol processes of test instruction, then form protocol massages and sends, otherwise do not send message.
If in said process, faulty operation occurs if agency's test 104 is realized or gone up to tester, tested agreement, the direct uniformity test of the current content measurement of end then carries out the uniformity test of next content measurement.
When testing tested agreement when realizing handling the disposal ability of tested request message, test process as shown in Figure 5, for:
Tester generates test packet according to described test request, and send described test packet and tested agreement and realize, tested agreement realizes receiving described test packet, and by tested protocol analysis protocol layer corresponding with it, if do not meet tested protocol requirement, tested agreement realizes producing Negative Acknowledgment or abandoning described test packet, if meet tested protocol requirement, then the upper layer data with described protocol layer is sent in test agent 104.Last test agent 104 receives and stores the upper layer data of described protocol layer, and it is analyzed, judge the type of described test packet, if described test packet is for confirming the request message of service, then produce response data and be sent to tested agreement and realize, otherwise then do not carry out any operation.Tested agreement realizes receiving described response data and according to the protocol specification of the described service for checking credentials of correspondence it is carried out validity check, if satisfy validity, then described response data is sent to tester place network, is directly obtained by tester.Tester sends and obtains the message of instruction, transmits in last test agent 104 after tested agreement realizes receiving, and last agency's test 104 data with storage are sent in tester.Data that the last test agent 104 that tester receives by contrast is stored and the initial test packet that sends if both are identical, then satisfy coherence request, otherwise, do not satisfy coherence request.
Equally, if in said process, realize or go up agency's test 104 as if tester, tested agreement and faulty operation occurs, then directly finish this uniformity test process.
When described test request is the content of second aspect, when tester carries out uniformity test, promptly before tester sends test packet, under send instructions and last test agent 104, last test agent 104 is carried out initializing set, and wherein, described instruction comprises: initialization directive and parameter instruction.Initialization directive makes test agent 104 systems be in the test predetermined state, prepares for carrying out uniformity test; Parameter instruction is set and gone up test agent 104 in uniformity test, and according to the instruction that tester sends, the operation of execution is exemplified as: the just response that test agent 104 sends according to tester is gone up in the parameter instruction control that tester issues, and carries out the Negative Acknowledgment operation.
In the disclosed test process of foregoing, be and adopt the regular path method of testing to test, its process is:
When described test request is the content of first aspect, promptly only need tester that tested agreement is realized testing.Tester sends test packet and realizes to tested agreement, and begins to monitor network, obtains message that tested agreement realization sends and message is analyzed, and draws test result.In the regular path test, if tested realization can be sent predetermined message, or the message performance characteristic of this test in a period of time meets the test expection requirement of tested agreement regulation, and then test is passed through.
The robustness of realizing for the tested agreement of strengthening tested agreement or verify its authenticity can be at the mistake immunoassay that finish regular path test back increase.The mistake immunoassay is that tested agreement is not offered some clarification on, but a kind of error detection of the error situation that may run in actual use, as data length and real data do not match, data length is correct and data field free of data etc. may cause tested agreement to realize the test that the situation of operation exception is carried out.The mistake immunity provides the tested agreement of more detections to realize conforming test verification point with tested agreement in addition, prevents from that tested realization is logical to finish the regular path test, but fails to meet the deficiency of tested agreement defined operation.
Be specially: tester sends test packet and realizes to tested agreement, and begins to monitor the message on the network, and tested corresponding regular path message testing main points with this case do not sent in tested realization in a period of time, and then test is passed through; If sent corresponding message, represent that then tested agreement realizes not meeting protocol requirement in the inner realization that is implemented in this test item, test is not passed through.
When described test request is the content of second aspect, promptly tester and last test agent co-operation are finished the uniformity test work that tested agreement is realized, adopt the regular path method of testing to carry out test process to be:
Tester sends test packet, and tested agreement realizes receiving and by the requirement deal with data of surveys agreement, gives test agent 104 data of last layer more after tested agreement realization processing.Last test agent 104 executing instruction operations, or sending the interface of request msg by common test service passes data and realize for tested agreement after tested agreement realizes receiving data, send by the requirement deal with data of tested agreement.The message that last test agent 104 is monitored on the network, when the test data message of receiving expection, and data are errorless, and then test is passed through.
Identical with the regular path test, adopt mistake immunoassay method to test and be divided into two kinds, its process is respectively:
Whether (1) tester transmission test packet, and the special packet that begins to monitor on the network occurs, and tested agreement realizes receiving test packet, handles by the survey protocol requirement.After estimating in the design of case that tested agreement realizes receiving this test packet,, will not submit to data to give the upper-layer user, should abandon or do other processing,, then be considered as not meeting consistency if continue to submit data to last layer more because of a certain reason is not inconsistent tested protocol requirement.Tester is sending test packet, in a period of time, does not receive that tested agreement realizes sending tested corresponding regular path message testing main points with this case, represents that then tested agreement realizes that this processing is normal, and test is passed through; Otherwise test is not passed through.If will strengthen this test, do not receive the measured data bag at a period of time build-in test device, tester can go to obtain the data of test agent 104 storages, judge thus whether go up test agent 104 in this test has received the test data that tested agreement realization is uploaded, if the gained data be sky, show that then this test passes through; If detected other data, the processing that then tested agreement realizes makes mistakes, and test can not be passed through.
Whether (2) tester transmission test packet, and the special packet that begins to monitor on the network occurs, and tested agreement realizes receiving test packet, handles by the survey protocol requirement.After estimating in the design of case that tested agreement realizes receiving this test packet, submit to data to give last test agent 104.Last test agent 104 executing instruction operations or sending request msg passes data and realize for tested agreement.Tested agreement realizes receiving after the data by tested protocol requirement deal with data.The data that this moment, tested agreement realization received in the design of case can not be finished the data transmission because of existing certain not to be inconsistent the protocol requirement of surveying.Tester is sending test packet, in a period of time, does not receive that the data of the measured data bag that tested agreement realization is sent represent that then tested agreement realizes that this processing is normal, and test is passed through, otherwise test is not passed through.If will strengthen this test, do not receive the measured data bag at tester, tester can go to obtain the data of test agent 104 storages, judge thus whether go up test agent in the test has this time received the test data that tested agreement realization is uploaded, if the gained data are empty, showing then that tested agreement realizes failing uploads data and gives last test agent, and test is not passed through; If detect the test data of expection, the processing that then tested agreement realizes is correct, and test is passed through.
Concrete, only need to change the setting that described tested agreement realizes, can carry out above-mentioned mistake immunoassay method uniformity test.
Before carrying out above-mentioned test, need foundation to go up getting in touch of test agent and the realization of tested agreement, be specially: the code that will go up test agent 104 adds tested agreement to be realized, adopt protocol definition method of service or other modes, the interface that tested agreement is realized docks with the interface of last test agent 104.
Generally speaking, last test agent 104 and tested agreement realize the form butt joint by service primitive, for carrying out smoothly of guaranteeing to test, specifically to guarantee the normal of two kinds of basic service items, that is: (1) tested agreement realizes normally transmitting data and gives last test agent 104, and (2) tested agreement realizes obtaining normally the data of test agent 104.Need be before uniformity test, test agent 104 interfaces are gone up in test in advance and tested agreement realizes whether transfer of data is smooth and easy between the interface, if, then begin to test, if not, then directly withdraw from.
After having guaranteed above-mentioned two basic service entrys, then carry out the common test interface butt joint of tested agreement realization and last test agent 104.Wherein, tested agreement realizes and the common test Interface design of last test agent 104 is docked with convenient, and simple and easy is basic principle, and interface docks in the mode of service primitive equally, i.e. the transmission of various data is carried out in the mode of service primitive.And each tested service entry will have an interface of going up test agent 104 and dock with it.When test is carried out, the test of every kind of service will have separate data channels.
Below last test agent 104 is described.
According to foregoing, go up test agent 104 as shown in Figure 6, comprise body 1041 and be arranged at basic service interface 1042, testing service interface 1043 on the body 1041.Wherein, basic service interface 1042 is that tested agreement realizes being used to provide test agent 104 to receive and the interface that sends test packet, is used to transmit test instruction and test data between the realization of test agent 104 and tested agreement.Testing service interface 1043 is that tested agreement realizes docking the interface that is used to test with the corresponding with service of last test agent 104.
Concrete, tested agreement realizes transmitting data to after the last test agent 104 by basic service interface 1042, the different test instruction of last test agent 104 identifications is pressed predefined action and is handled, its instruction roughly comprises: go up initialization, the test parameter of test agent 104 setting, obtain the test data of storage, wherein, obtain the test data of storage, test agent 104 can be sent the data of being stored by basic service interface 1042 and give tested agreement realization in the requirement.
Whether before tested agreement is realized carrying out uniformity test, it is smooth and easy with the transfer of data that tested agreement realizes to adopt the said method test to go up test agent 104.
And, tested agreement realizes corresponding with the testing service interface 1042 of last test agent 104, contain a plurality of tested service interfaces, can be divided into the service of confirmation and non-confirmation service owing to tested agreement realized the test item of the testing protocol consistency that carries out, so described tested service interface is divided into confirmation service interface and non-confirmation service interface.
According to the type difference of test item, the processing procedure that last test agent 104 and tested agreement realize is difference to some extent, and is specific as follows:
Certain confirms the ability of service request messages for the tested agreement of test realizes transmission when last test agent 104 recognition data, and last test agent 104 produces request msg, and gives tested agreement and realize handling transmission.At this moment, last test agent 104 is not preserved the data that tested agreement realizes transmission.
When recognizing data, last test agent 104 realizes receiving the ability that certain confirms service message for the tested agreement of test, the data that 104 preservations of last test agent are uploaded also produce response data and give tested agreement and realize forming response message, wait for that simultaneously tester obtains data.
When last test agent 104 recognizes data is the ability that is sent certain non-confirmation service request messages by tested agreement realization of testing, and last test agent 104 produces request msgs, and gives tested agreement realization processing transmission.
When last test agent 104 recognizes the disposal ability of data for the non-confirmation service message of test tested agreement realization reception, then preserve the data that receive and wait for that tester obtains data.
The detailed process of its test, identical with Fig. 4 with the disclosed content of Fig. 5, repeat no more herein.
Below the conformance test method of for example tested agreement being realized describes, and in this example, test request is the event class service with the application class access entity.
The event class service has comprised three services: event notice service, event notice are confirmed service and are changed the event condition monitor service.Wherein, the event notice service is non-confirmation service, and event notice is confirmed service and changed the event condition monitor service for confirming service.
In the disclosed content of present embodiment is tester 102 and last test agent 104 fellowship uniformity tests.
1, event notice service testing (non-confirmation service)
Test purpose: test tested agreement and realize whether correctly sending and receive the event notice service message.
Test process can be divided into for three steps, and the first step realizes whether correctly sending the event notice service message for the tested agreement of test, and second and third step is for realizing whether correctly receiving the event notice service message for the tested agreement of test.
The first step: tester sends one and goes up test agent 104 orders, and feasible upward test agent 104 is called tested agreement and realized that interface sends the event notice request message of a special parameter.Tester receive this service request post analysis special parameter wherein whether with last test agent 104 consult consistent.The content that the operating process that it is concrete such as the present invention are shown in Figure 4.
Second step: tester sends the event notice request message of a special parameter, and last test agent 104 after receiving this service request messages stores special parameter wherein.
The 3rd step: tester sends upward test agent 104 orders, makes that going up test agent 104 returns the special parameter of storing in second step by reading response message.After tester receives that this reads the service response message, analyze wherein with special parameter whether with last test agent 104 consult consistent.The content that the operating process that it is concrete such as the present invention are shown in Figure 5.
2, event notice is confirmed service testing (confirming service)
Test purpose: test tested agreement realizes whether correctly sending and receiving event notice affirmation service, event notice is confirmed positive respond services and the service of event notice affirmation Negative Acknowledgment.
Test process was divided into for four steps, and equally, first two steps are for testing the transmitting capacity of going up test agent, and as shown in Figure 4, what back two pacings tried is the receiving ability of last test agent, as shown in Figure 5.
The first step: tester sends upward test agent 104 orders, makes that going up test agent 104 calls the event notice affirmation service request messages that tested agreement realizes sending a special parameter.Tester receive this service request post analysis special parameter wherein whether with last test agent 104 consult consistent.Return the response message of this service simultaneously.Special parameter in the last test agent 104 memory response messages.
Second step: tester sends goes up test agent 104 orders, makes that going up test agent 104 returns the special parameter of storing in the first step by reading response message.After tester receives that this reads the service response message, analyze wherein with special parameter whether consistent with the parameter that tester sends.
The 3rd step: tester sends the event notice of a special parameter and confirms service request messages, and last test agent 104 after receiving this service request messages stores special parameter wherein.Return the response message of this service simultaneously.After tester is received this response message, analyze wherein special parameter whether with last test agent 104 consult consistent.
The 4th step: tester sends upward test agent 104 orders, makes that going up test agent 104 returns the special parameter of storing in the 3rd step by reading response message.After tester receives that this reads the service response message, analyze wherein with special parameter whether consistent with the parameter that tester sends.
Annotate: four steps of the first step to the can be a circulation, can set twice of loop test as requested.In the circulation, all response messages are positive response message for the first time; In the circulation, all response messages are the Negative Acknowledgment message for the second time.
3, change the event condition monitor service, confirm that with event notice service testing is identical, repeat no more herein.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined herein General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.

Claims (17)

1. an automation field bus conformance test method is characterized in that, comprising:
Generate test item according to test request;
Read described test item, tested agreement is realized testing according to described test item;
Generate test result, judge whether this test result meets the test request of tested protocol definition in the automation field bus, if then satisfy coherence request; If not, then do not satisfy coherence request.
2. method according to claim 1, it is characterized in that, described test request by: check basic communication index that described tested agreement realizes, time precision, protocol stack system information storehouse and protocol status management, surveyed the defined scheduling mode of automation field bus agreement and whether be achieved and meet consistency, check that perhaps described tested agreement realizes the user data that is transmitted, whether carried out the processing of protocol layer, and user data is offered client layer by protocol requirement by the tested protocol requirement of tested automation field bus.
3. method according to claim 1 is characterized in that, described test item is divided into the service of confirmation and non-confirmation service by the requirement of testing service response.
4. method according to claim 2, it is characterized in that, the system information storehouse and the protocol status management of the basic communication index that realizes by the described tested agreement of inspection when described test request, time precision, protocol stack, surveyed whether the defined scheduling mode of automation field bus agreement is achieved and when meeting consistency, described tested agreement realization is tested and judged whether test result satisfies coherence request and be:
Generate test command according to test item;
Send test command to tested agreement and realize, and receive the message that tested agreement realizes output;
Analyze described message and obtain test result, judge whether described test result meets the test request of tested protocol definition in the automation field bus agreement, if then satisfy coherence request; If not, then do not satisfy coherence request.
5. method according to claim 2, it is characterized in that, when checking that described tested agreement realizes the user's data that offers, whether carried out the processing of protocol layer by being surveyed agreement by automation field bus, and when being valid data, carrying out and also comprise before generating the test item operation according to test request:
The code of test agent to described tested agreement realizes in the interpolation, finishes the described test agent that goes up and docks with the interface that tested agreement realizes.
6. method according to claim 5 is characterized in that, finish described go up test agent and the interface of tested agreement realization dock after, this method also comprises:
Test described upward test agent interface and tested agreement and realize whether transfer of data is correct between the interface, if, then carry out according to test request and generate the test item operation, if not, then withdraw from.
7. method according to claim 5, it is characterized in that, check that described tested agreement realizes the user data that is transmitted, whether carried out the processing of protocol layer by the tested protocol requirement of tested automation field bus, and user data is offered the test request of client layer by protocol requirement, be divided into: test described tested agreement and realize sending disposal ability after the ability of user data and the described tested agreement of test realize receiving tested request message.
8. method according to claim 7 is characterized in that, when test request is realized sending the ability of user data for the described tested agreement of test, described tested agreement is realized testing and judging whether test result satisfies coherence request and be:
Generate test packet according to described test item, and obtain test instruction after will described test packet handling, and transmission and the corresponding data of described test instruction are to described tested agreement realization;
Monitor the message that sends after described tested agreement realization processing and the corresponding data of described test instruction, whether the result of analyzing described tested agreement realization meets the test request of tested protocol definition in the automation field bus, if then satisfy coherence request; If not, then do not satisfy coherence request.
9. method according to claim 8 is characterized in that, described test packet is handled obtaining test instruction and be:
Described test packet is sent to described tested agreement realizes, carry out protocol layer by it and handle, and the upper layer data that sends described protocol layer obtains test instruction to the described test agent that goes up by its upper layer data of analyzing described protocol layer.
10. method according to claim 7, it is characterized in that, when described test request is realized receiving the disposal ability of tested request message for the tested agreement of test, described tested agreement is realized testing and judging whether test result satisfies coherence request and be:
Generate test packet according to described test item, and send it to described tested agreement and realize, carrying out protocol layer by it handles, satisfy when pre-conditioned, the upper layer data of this protocol layer is sent to the described test agent that goes up, by its storage and according to the upper layer data of the described protocol layer of type of process of described test packet;
The instruction message is obtained in transmission, obtains to be stored in the described data that go up test agent, and itself and described test packet are compared, if comparison result is identical, then satisfies coherence request, otherwise, do not satisfy coherence request.
11. method according to claim 10 is characterized in that, describedly pre-conditionedly is: satisfy the requirement of tested agreement with the corresponding protocol layer of described test packet.
12. method according to claim 10 is characterized in that, the upper layer data that described upward test agent is handled described protocol layer is:
When described test packet is the confirmation service, the described upper layer data generation response data that goes up test agent according to described protocol layer, and transmit it to described tested agreement realization, carry out the data validity judgement by it, when satisfying validity, with its transmission.
13. according to Claim 8 or 10 described methods, it is characterized in that, generate and also comprise that two sending controling instructions to the described test agent that goes up, control it and carry out initialization and parameter setting before the test packet.
14. method according to claim 1 is characterized in that, judges whether this test result meets also to comprise before the test request of tested protocol definition in the automation field bus and adopt mistake immunoassay method that described tested agreement is realized testing.
15. an automation field bus uniformity test device is characterized in that, comprising:
The test item generation unit is used for generating test item according to test request;
Test cell is used to read described test item, according to described test item tested agreement is realized testing and generating test result;
The consistency judging unit is used to judge whether test result meets the test request of automation field bus definition, if then satisfy coherence request; If not, then do not satisfy coherence request.
16. tester according to claim 15, it is characterized in that, described test cell comprises: check the basic communication index that described tested agreement realizes, time precision, the system information storehouse of protocol stack and protocol status management, whether the defined scheduling mode of automation field bus agreement of surveying is achieved and meets conforming first test cell, and, check that described tested agreement realizes the user data that is transmitted, whether carried out the processing of protocol layer, and user data has been offered second test cell and the last test agent of client layer by protocol requirement by the tested protocol requirement of tested automation field bus.
17. tester according to claim 16 is characterized in that, the described test agent that goes up comprises: body and be arranged at basic service interface, testing service interface on the body, wherein:
Described basic service interface is used to transmit described test instruction and the test data between test agent and the realization of tested agreement that go up;
Described testing service interface is used for providing interface to every kind of test item, realizes carrying out data interaction with described tested agreement.
CN 201010205511 2010-06-17 2010-06-17 Method and device for testing consistency of automation fieldbus Pending CN101867504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010205511 CN101867504A (en) 2010-06-17 2010-06-17 Method and device for testing consistency of automation fieldbus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010205511 CN101867504A (en) 2010-06-17 2010-06-17 Method and device for testing consistency of automation fieldbus

Publications (1)

Publication Number Publication Date
CN101867504A true CN101867504A (en) 2010-10-20

Family

ID=42959076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010205511 Pending CN101867504A (en) 2010-06-17 2010-06-17 Method and device for testing consistency of automation fieldbus

Country Status (1)

Country Link
CN (1) CN101867504A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238048A (en) * 2011-07-19 2011-11-09 大唐移动通信设备有限公司 Protocol consistency testing method and system
CN102801571A (en) * 2011-05-26 2012-11-28 上海固泰科技有限公司 FlexRay bus physical layer test method
CN103560932A (en) * 2013-11-05 2014-02-05 重庆邮电大学 Wireless sensor network remote protocol conformance testing system and method
CN103888323A (en) * 2014-04-22 2014-06-25 株洲南车时代电气股份有限公司 Ethernet equipment first-operation behavior consistency testing method and device
CN108365995A (en) * 2018-03-19 2018-08-03 天筑科技股份有限公司 The test system and method for monitoring unit in network-based communication base station room
CN109195172A (en) * 2018-07-27 2019-01-11 闻泰通讯股份有限公司 Radio frequency test method, device, test equipment and storage medium
CN114721887A (en) * 2022-03-21 2022-07-08 东风汽车集团股份有限公司 Automatic testing method for vehicle production line
CN114978973A (en) * 2022-05-18 2022-08-30 宁畅信息产业(北京)有限公司 Communication interface testing method, device, testing machine and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567218A (en) * 2003-06-18 2005-01-19 英业达股份有限公司 Testing system capable of adjusting pressure test parameter in real time and method thereof
CN1697407A (en) * 2005-06-30 2005-11-16 信息产业部电信传输研究所 Implementation method and system for testing consistency of border gateway protocol of supporting IPv6
CN1750487A (en) * 2005-10-21 2006-03-22 重庆邮电学院 System and method for detecting EPA protocol consistency
CN1777125A (en) * 2005-10-21 2006-05-24 重庆邮电学院 Method for realizing executable test set in EPA protocol conformance test
CN101098200A (en) * 2006-06-27 2008-01-02 中兴通讯股份有限公司 Method for implementing customizable test procedure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567218A (en) * 2003-06-18 2005-01-19 英业达股份有限公司 Testing system capable of adjusting pressure test parameter in real time and method thereof
CN1697407A (en) * 2005-06-30 2005-11-16 信息产业部电信传输研究所 Implementation method and system for testing consistency of border gateway protocol of supporting IPv6
CN1750487A (en) * 2005-10-21 2006-03-22 重庆邮电学院 System and method for detecting EPA protocol consistency
CN1777125A (en) * 2005-10-21 2006-05-24 重庆邮电学院 Method for realizing executable test set in EPA protocol conformance test
CN101098200A (en) * 2006-06-27 2008-01-02 中兴通讯股份有限公司 Method for implementing customizable test procedure

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《电子质量》 20020630 郑耿,贾永乐 现场总线的一致性测试和互操作性测试 , 2 *
《自动化仪表》 20050930 冯冬芹,俞海斌,金建祥,褚健 EPA实时以太网与标准化 , 2 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801571A (en) * 2011-05-26 2012-11-28 上海固泰科技有限公司 FlexRay bus physical layer test method
CN102238048B (en) * 2011-07-19 2015-06-03 大唐移动通信设备有限公司 Protocol consistency testing method and system
CN102238048A (en) * 2011-07-19 2011-11-09 大唐移动通信设备有限公司 Protocol consistency testing method and system
CN103560932A (en) * 2013-11-05 2014-02-05 重庆邮电大学 Wireless sensor network remote protocol conformance testing system and method
CN103560932B (en) * 2013-11-05 2017-02-08 重庆邮电大学 Wireless sensor network remote protocol conformance testing system and method
CN103888323B (en) * 2014-04-22 2018-09-04 株洲南车时代电气股份有限公司 A kind of ethernet device just operation action conformance test method and device
CN103888323A (en) * 2014-04-22 2014-06-25 株洲南车时代电气股份有限公司 Ethernet equipment first-operation behavior consistency testing method and device
CN108365995A (en) * 2018-03-19 2018-08-03 天筑科技股份有限公司 The test system and method for monitoring unit in network-based communication base station room
CN109195172A (en) * 2018-07-27 2019-01-11 闻泰通讯股份有限公司 Radio frequency test method, device, test equipment and storage medium
CN114721887A (en) * 2022-03-21 2022-07-08 东风汽车集团股份有限公司 Automatic testing method for vehicle production line
CN114721887B (en) * 2022-03-21 2024-04-05 东风汽车集团股份有限公司 Automatic testing method for vehicle-mounted machine production line
CN114978973A (en) * 2022-05-18 2022-08-30 宁畅信息产业(北京)有限公司 Communication interface testing method, device, testing machine and storage medium
CN114978973B (en) * 2022-05-18 2023-05-09 宁畅信息产业(北京)有限公司 Communication interface testing method and device, testing machine and storage medium

Similar Documents

Publication Publication Date Title
CN101867504A (en) Method and device for testing consistency of automation fieldbus
CN101297271B (en) Method and system for verifying integrity of untrusted subsystem responses to a request
WO2017000424A1 (en) Protocol detection method and apparatus
CN102148844B (en) Memory leak positioning method, server, client and system
EP1725953A1 (en) Apparatus and method for data consistency validation.
CN110058920A (en) Virtual machine performance detection method and device, electronic equipment, storage medium
CN109815120A (en) Test method, device, computer equipment and the storage medium of application
CN102368711B (en) Communication system facing parallel file system
CN101909013B (en) Information exchange device capable of dynamic configuration
CN101656642A (en) Method, device and system for testing authentication performance of network access equipment
CN104007973A (en) Method and platform for data interaction between systems
CN107040613A (en) A kind of message transmitting method and system
CN101925882A (en) Method of improving replica server performance and replica server system
CN109542834A (en) A kind of method and NC chip of determining NC chip connection error
CN116436540A (en) LED display screen receiving card testing method and device, testing card and storage medium
CN105404543A (en) Simulation machine
CN110059091A (en) Method, apparatus, client, server and the system of index construct
Lee et al. Development of verification and conformance testing tools for a railway signaling communication protocol
Xia et al. A non‐Markovian stochastic Petri net‐based approach to performance evaluation of ontology‐based service composition
US10356198B2 (en) Data transmission between at least one safe producer and at least one safe consumer
CN103812830A (en) Protocol authentication method used for bus slave station equipment
KR101963509B1 (en) Apparatus and method for relaying data between semiconductor equipment and SECS server
CN112069078A (en) ESA interface pressure testing method, device, testing equipment and storage medium
CN108984355A (en) A kind of automated testing method of interface testing
CN109460305A (en) Use-case calling system and method, the first platform and the second platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101020