CN106789399A - A kind of method of testing, apparatus and system - Google Patents

A kind of method of testing, apparatus and system Download PDF

Info

Publication number
CN106789399A
CN106789399A CN201611062134.1A CN201611062134A CN106789399A CN 106789399 A CN106789399 A CN 106789399A CN 201611062134 A CN201611062134 A CN 201611062134A CN 106789399 A CN106789399 A CN 106789399A
Authority
CN
China
Prior art keywords
stimulus messages
response message
general purpose
purpose processing
processing block
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
CN201611062134.1A
Other languages
Chinese (zh)
Other versions
CN106789399B (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.)
CHENGDU CHENGDIAN GUANGXIN TECHNOLOGY Co Ltd
Original Assignee
CHENGDU CHENGDIAN GUANGXIN TECHNOLOGY 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 CHENGDU CHENGDIAN GUANGXIN TECHNOLOGY Co Ltd filed Critical CHENGDU CHENGDIAN GUANGXIN TECHNOLOGY Co Ltd
Priority to CN201611062134.1A priority Critical patent/CN106789399B/en
Publication of CN106789399A publication Critical patent/CN106789399A/en
Application granted granted Critical
Publication of CN106789399B publication Critical patent/CN106789399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Tests Of Electronic Circuits (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to avionics field, in particular to a kind of method of testing, apparatus and system.The method of testing includes:Response user operates and sends stimulus messages to the switch, and the stimulus messages for making the switch to receive are sent to target general purpose processing block, and the stimulus messages include the destination address of target general purpose processing block;The response message that the switch is obtained from the target general purpose processing block is received, the response message is generated by the target general purpose processing block according to the stimulus messages;And judge whether the response message is identical with the stimulus messages, and judge that the target general purpose processing block is fully functional if identical, and generate another stimulus messages to test another general purpose processing block, if differing, stop test.By the method for testing, the complexity of test is also reduced while reducing testing cost.

Description

A kind of method of testing, apparatus and system
Technical field
The present invention relates to avionics field, in particular to a kind of method of testing, apparatus and system.
Background technology
Avionics system experienced from discrete, evolution from association type to composite type.At present, integrated avionics System uses the framework of synthesization.In integrated avionics system, comprehensive core processor (Integrated Core Processo, ICP) be system core, carry each task of avionics system distributed treatment work, determine aviation electronics Whether system can normally be run.ICP it is main by interconnect general purpose processing block (General Processing Project, GPP) constitute, GPP can load different application programs according to mission requirements, distribute different process tasks, ICP by interface with The equipment such as the sensor front end of outside non-universal, winged control, navigation, aobvious control are connected, realize the communication of ICP and external equipment, complete Data processing and system information integrated treatment requirement to external equipment.Software for Design to avionics system, develop and test Card all be unable to do without ICP.Therefore, the test to ICP is particularly important.Under normal circumstances, the test of ICP needs to carry out each GPP Checking, and each GPP is required for an external test terminal, causes external testing terminal quantity excessive, high cost, and not Controlled with the testing process between test terminal complicated.
The content of the invention
In view of this, it is an object of the invention to provide a kind of method of testing, apparatus and system, to solve the above problems.
To achieve the above object, the embodiment of the present invention is adopted the following technical scheme that:
A kind of method of testing, is applied to the test terminal communicated with comprehensive core processor by switch, institute Stating comprehensive core processor includes multiple general purpose processing blocks, and the method for testing includes:
Response user operates and sends stimulus messages to the switch, makes the switch described sharp by what is received Encourage message and be sent to target general purpose processing block, the stimulus messages include the destination address of target general purpose processing block;
The response message that the switch is obtained from the target general purpose processing block is received, the response message is by institute Target general purpose processing block is stated to be generated according to the stimulus messages;And
Judge whether the response message is identical with the stimulus messages, the target general procedure mould is judged if identical Block is fully functional, and generates another stimulus messages another general purpose processing block is tested, if differing, stops test.
Further, before the response user operates the step of sending stimulus messages to the switch, the side Method also includes:
Response user's operation, generation and the user corresponding stimulus messages of operation;
The stimulus messages are encapsulated as FC frames;
The stimulus messages that FC frames will be encapsulated as are converted to optical signal and are sent to the switch from electric signal.
Further, be stored with multiple test processes logics in the test terminal, response user operation, generation with The step of user operates corresponding stimulus messages, including:
Response user's operation, searches test processes logic corresponding with user operation;
Stimulus messages are generated according to the test processes logic.
Further, it is described reception switch from the target general purpose processing block obtain response message the step of it Afterwards, it is described to judge whether the response message is identical with the stimulus messages, the target general procedure mould is judged if identical Block is fully functional, and generates another stimulus messages another general purpose processing block is tested, if differing, stops test Before step, methods described also includes:
The response message is converted into electric signal from optical signal;
The response message to FC frame formats is decapsulated.
Another embodiment of the present invention provides a kind of test device, is applied to by switch and comprehensive core The test terminal of reason machine communication, the comprehensive core processor includes multiple general purpose processing blocks, and the test device includes swashing Encourage message transmission module, response message receiver module and judge module;
The stimulus messages sending module is operated to switch transmission stimulus messages for responding user, is made described The stimulus messages that switch will be received are sent to target general purpose processing block, and the stimulus messages include that target is general The destination address of processing module;
The response message receiver module is used to receive what the switch was obtained from the target general purpose processing block Response message, the response message is generated by the target general purpose processing block according to the stimulus messages;
The judge module judges institute for judging whether the response message is identical with the stimulus messages if identical State target general purpose processing block fully functional.
Further, the test device also includes stimulus messages generation submodule, stimulus messages encapsulation submodule and swashs Encourage message transform subblock;
The stimulus messages generation submodule is used to respond user's operation, generates excitation corresponding with user operation and disappears Breath;
The stimulus messages encapsulation submodule is used to for the stimulus messages to be encapsulated as FC frames;
The stimulus messages that the stimulus messages transform subblock is used to be encapsulated as FC frames are converted to optical signal from electric signal And it is sent to the switch.
Further, be stored with multiple test processes logics in the test terminal, and the stimulus messages generate submodule Including logical program searching unit and stimulus messages generation unit;
The logical program searching unit is used to respond user's operation, searches and the user corresponding test processes of operation Logic;
Stimulus messages generation unit is used to generate stimulus messages according to the test processes logic.
Further, the test device also includes response message modular converter and response message decapsulation module;
The response message modular converter is used to for the response message to be converted to electric signal from optical signal;
The response message decapsulation module is used to decapsulate the response message of FC frame formats.
Another embodiment of the present invention provides a kind of test system, and the test system includes switch, comprehensive core Multiple general purpose processing blocks and above-mentioned test device of processor, wherein:
The switch is used to receive the stimulus messages that the test device sends, and the stimulus messages are sent into mesh Mark general purpose processing block, the switch is additionally operable to receive disappearing according to the excitation for the target general purpose processing block transmission The response message of generation is ceased, and is sent to the test device;
The target general purpose processing block is used to receive the stimulus messages, is swashed with described according to stimulus messages generation The corresponding response message of message is encouraged, and the response message is sent to switch;
The test device is used to send stimulus messages and receives the response message that the switch sends, and judges institute State response message whether identical with the stimulus messages, judge that the target general purpose processing block is fully functional if identical, and Generate another stimulus messages to test another general purpose processing block, if differing, stop test.
Further, the switch includes first message transmitting-receiving port, the second messaging portal and Path Recognition Module, second messaging portal includes multiple and described second messaging portal with the general purpose processing block one by one Correspondence;
The first message transmitting-receiving port is used to receive the stimulus messages that the test device sends, and the first message is received Originator mouth is additionally operable to for the response message generated according to the stimulus messages to be sent to the test device;
Multiple second messaging portals are used to send the stimulus messages that first message transmitting-receiving port receives Its corresponding general purpose processing block is given, multiple second messaging portals are additionally operable to receive and are given birth to according to the stimulus messages Into response message;
The Path Recognition module is used for the destination address of the target general purpose processing block included according to the stimulus messages, The stimulus messages are made to be sent to the second messaging portal corresponding with the target general purpose processing block.
Method of testing provided in an embodiment of the present invention, apparatus and system, by the switch to target general procedure Module sends stimulus messages, and receives the response message that the switch is obtained from the target general purpose processing block, judges Whether the response message is identical with the stimulus messages, judges that the target general purpose processing block is fully functional if identical, And generate another stimulus messages another general purpose processing block is tested, if differing, stop test, so it is capable of achieving Multiple general purpose processing blocks are tested by a test terminal, test is also reduced while reducing testing cost Complexity.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the block diagram of test terminal provided in an embodiment of the present invention.
Fig. 2 is a kind of schematic flow sheet of method of testing provided in an embodiment of the present invention.
Fig. 3 is the sub-step schematic flow sheet of step S100 in Fig. 2.
Fig. 4 is the sub-step schematic flow sheet of sub-step S110 in Fig. 3.
Fig. 5 is a kind of another schematic flow sheet of method of testing provided in an embodiment of the present invention.
Fig. 6 is a kind of structured flowchart of test device provided in an embodiment of the present invention.
Icon:10- test terminals;100- test devices;110- stimulus messages sending modules;111- stimulus messages generation Module;1111- logical program searching units;1112- stimulus messages generation units;112- stimulus messages encapsulate submodule;113- Stimulus messages transform subblock;120- response message receiver modules;130- judge modules;140- response message modular converters; 150- response message decapsulation modules;200- memories;300- storage controls;400- processors;500- Peripheral Interfaces;600- Input-output unit.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Present invention implementation generally described and illustrated in accompanying drawing herein The component of example can be arranged and designed with a variety of configurations.
Therefore, the detailed description of embodiments of the invention below to providing in the accompanying drawings is not intended to limit claimed The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiment in the present invention, this area is common The every other embodiment that technical staff is obtained under the premise of creative work is not made, belongs to the model of present invention protection Enclose.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then it need not be further defined and explained in subsequent accompanying drawing.
Fig. 1 is referred to, the test terminal 10 includes test device 100, memory 200, storage control 300, treatment Device 400, Peripheral Interface 500 and input-output unit 600.
The memory 200, storage control 300, processor 400, Peripheral Interface 500 and input-output unit 600 Each element is directly or indirectly electrically connected with each other, to realize the transmission or interaction of signal.For example, these elements mutually it Between can realize being electrically connected with by one or more communication bus or holding wire.The test device 100 can including at least one Software function module during the memory 200 is stored in the form of the software or firmware (firmware).The processor 400 For performing the executable module stored in memory 200, such as software function module or meter that described test device 100 includes Calculation machine program.
Wherein, memory 200 may be, but not limited to, random-access memory (Random Access memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 200 is used for storage program, and the processor 400 performs described program, this hair after execute instruction is received The method of the flow definition disclosed in bright embodiment any embodiment can apply in processor 400, or by processor 400 realize.
Processor 400 is probably a kind of IC chip, the disposal ability with signal.Above-mentioned processor 400 can be with It is general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc..Can also be digital signal processor (DSP), application specific integrated circuit (ASIC), It is ready-made programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hard Part component.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.General processor Can be microprocessor or the processor 400 can also be any conventional processor 400 etc..
Various input/output devices are coupled to processor 400 and memory 200 by the Peripheral Interface 500.At some In embodiment, Peripheral Interface 500, processor 400 and storage control 300 can be realized in one single chip.Other one In a little examples, they can be realized by independent chip respectively.
It is appreciated that the structure shown in Fig. 1 be only illustrate, the test terminal 10 can also include than shown in Fig. 1 more Many or less components, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can use hardware, software Or its combination is realized.
Fig. 2 is referred to, a kind of method of testing is the embodiment of the invention provides, the method for testing is applied to above-mentioned test end 10 are held, and above-mentioned test terminal 10 can be communicated by switch with ICP.The ICP includes multiple GPP, below will be to Fig. 2 Shown idiographic flow and step is described in detail.
Step S100, response user operates and sends stimulus messages to the switch, the switch will be received To the stimulus messages be sent to target GPP, the stimulus messages include the destination address of target GPP.
In the present embodiment, each described GPP has unique address, and each stimulus messages includes and a ground of GPP Location, i.e., described stimulus messages are corresponded with the GPP, are gone out according to inquiry judging by the destination address corresponding GPP。
Additionally, multiple target GPP operation choosings can be included using the test terminal 10 of the method for testing described in the present embodiment Item can also include a target GPP option of operation.It should be noted that the target GPP option of operation is used for selection target GPP.When the test terminal 10 includes multiple target GPP option of operation, alternatively, each described target GPP option of operation Can be corresponding with a GPP, i.e., user is generated by selecting one of target GPP option of operation for testing and the target The stimulus messages of the corresponding GPP of GPP option of operation.In order to further reduce the complexity of test, it is preferable that apply this reality Applying the test terminal 10 of method of testing described in example includes a target GPP option of operation, target GPP option of operation with wherein One GPP is corresponding, i.e., when the switch has detected test request, sent and the GPP to the switch Corresponding stimulus messages, the stimulus messages for making the switch to receive are sent to the GPP.
Step S200, receives the response message that the switch is obtained from the target GPP, and the response message is by institute Target GPP is stated to be generated according to the stimulus messages.
Step S300, judges whether the response message is identical with the stimulus messages, and the target is judged if identical GPP is fully functional, and generates another stimulus messages another GPP is tested, if differing, stops test.
By step S300, when the stimulus messages of the response message and the generation response message are identical, Then judge that the target GPP is fully functional and next target GPP is tested, above procedure will be circulated and performed repeatedly, until Occur just stopping testing when the response message is differed with the stimulus messages of the generation response message.
It should be noted that judge that the response message is identical with the stimulus messages in the test device 100, and it is raw During being tested another GPP into another stimulus messages, another stimulus messages can be randomly choosed, it is also possible to be pressed Preset order table is selected.
Fig. 3 is referred to, the step S100 can include step S110, step S120 and the sub-steps of step S130 tri-, It is described in detail below.
Step S110, response user's operation, generation and the user corresponding stimulus messages of operation.
When the test terminal 10 of the method for testing described in application the present embodiment includes multiple target GPP option of operation, institute Stating stimulus messages can one by one generate according to user's operation.In the present embodiment, in order to further reduce the complexity of test, The test terminal 10 includes a target GPP option of operation, that is, when responding user's operation, the test device 100 is generated One stimulus messages, for testing GPP corresponding with the stimulus messages.When the GPP test complete and judge its it is fully functional it Afterwards, the test device 100 will automatically generate another stimulus messages, for testing next GPP.
The stimulus messages are encapsulated as FC frames by step S120.
Because the peripheral communication interface of ICP supports FC agreements, so being filled the stimulus messages are sent into described exchange , it is necessary to the stimulus messages are encapsulated as into FC frames when putting.It should be noted that in step S120, the stimulus messages can also Peripheral communication interface type according to ICP is encapsulated as other data modes.If additionally, ICP includes bluetooth transceiver, the excitation Message can also be transmitted by bluetooth, if ICP supports near-field communication, the stimulus messages can also be entered by near-field communication Row transmission.
Step S130, the stimulus messages that will be encapsulated as FC frames are converted to optical signal and are sent to the exchange dress from electric signal Put.
Fig. 4 is referred to, further, the step S110 can include step S111 and the sub-steps of step S112 two, It is described in detail below.
Step S111, response user's operation, searches test processes logic corresponding with user operation.
In the present embodiment, the test processes logic is the program code for generating the stimulus messages.
Step S112, stimulus messages are generated according to the test processes logic.
Fig. 5 is referred to, in the present embodiment, after the step S200, before the step 300, methods described may be used also Including step S400 and step S500, to be described in detail below.
Step S400, electric signal is converted to by the response message from optical signal.
Step S500, the response message to FC frame formats is decapsulated.
In the present embodiment, the step S400 is the inverse step of the step S130, and the step S500 is the step The inverse step of S120, i.e., when the peripheral communication interface of the ICP supports other communication types, the step S400 and step S500 can also be other message processing procedures.
Fig. 6 is referred to, the embodiment of the present invention additionally provides a kind of test device 100, and the test device 100 is applied to energy The test terminal 10 for enough being communicated with ICP by switch, the ICP includes multiple GPP, and the test device 100 includes swashing Encourage message transmission module 110, response message receiver module 120 and judge module 130.
The stimulus messages sending module 110 is operated to switch transmission stimulus messages for responding user, is made The stimulus messages that the switch will be received are sent to target GPP, and the stimulus messages include the purpose of target GPP Address.That is, the step S100 can be performed by the stimulus messages sending module 110.
The response message receiver module 120 disappears for receiving the response that the switch is obtained from the target GPP Breath, the response message is generated by the target GPP according to the stimulus messages.That is, the step S200 can be by described Response message receiver module 120 is performed.
The judge module 130 is used to judge whether the response message is identical with the stimulus messages, sentences if identical The fixed target GPP is fully functional.That is, the step S300 can be performed by the judge module 130.
Specifically, the stimulus messages sending module 110 includes stimulus messages generation submodule 111, stimulus messages encapsulation Submodule 112 and stimulus messages transform subblock 113.
The stimulus messages generation submodule 111 is used to respond user's operation, generates corresponding with user operation sharp Encourage message.That is, the step S110 can generate submodule 111 to perform by the stimulus messages.
The stimulus messages encapsulation submodule 112 is used to for the stimulus messages to be encapsulated as FC frames.That is, the step S120 can encapsulate submodule 112 to perform by the stimulus messages.
The stimulus messages that the stimulus messages transform subblock 113 is used to be encapsulated as FC frames are converted to light letter from electric signal Number and be sent to the switch.That is, the step S130 can be held by the stimulus messages transform subblock 113 OK.
Further, be stored with multiple test processes logics in the test terminal, and the stimulus messages generate submodule 111 include logical program searching unit 1111 and stimulus messages generation unit 1112.
The logical program searching unit 1111 is used to respond user's operation, searches and the user corresponding test of operation Treatment logic.That is, the step S111 can be performed by the logical program searching unit 1111.
Stimulus messages generation unit 1112 is used to generate stimulus messages according to the test processes logic.That is, the step Rapid S112 can be performed by the stimulus messages generation unit 1112.
Test device 100 described in the present embodiment also includes that response message modular converter 140 and response message deblocking are die-filling Block 150.
The response message modular converter 140 is used to for the response message to be converted to electric signal from optical signal.That is, institute Stating step S140 can be performed by the response message modular converter 140.
The response message decapsulation module 150 is used to decapsulate the response message of FC frame formats.That is, The step S150 can be performed by the response message decapsulation module 150.
The embodiment of the present invention additionally provides a kind of test system, and the test system includes switch, the multiple of ICP GPP and above-mentioned test device 100, wherein:
The switch is used to receive the stimulus messages of the transmission of the test device 100, and the stimulus messages are sent Target GPP is given, the response generated according to the stimulus messages that the switch is additionally operable to receive the target GPP transmissions disappears Breath, and send to the test device.Alternatively, the switch can also be provided for the detection that is in communication with each other between GPP Bridge.
The target GPP is used to receive the stimulus messages, according to stimulus messages generation and the stimulus messages pair The response message answered, and the response message is sent to switch.
The test device is used to send stimulus messages and receives the response message that the switch sends, and judges institute State response message whether identical with the stimulus messages, judge that the target general purpose processing block is fully functional if identical, and Generate another stimulus messages to test another general purpose processing block, if differing, stop test.
In the present embodiment, the switch includes that first message transmitting-receiving port, the second messaging portal and path are known Other module, second messaging portal includes that multiple and described second messaging portal is corresponded with the GPP.
The first message transmitting-receiving port is used to receive the stimulus messages of the transmission of the test device 100, and described first disappears Breath transmitting-receiving port is additionally operable to for the response message generated according to the stimulus messages to be sent to the test device 100.
Multiple second messaging portals are used to send the stimulus messages that first message transmitting-receiving port receives Its corresponding GPP is given, multiple second messaging portals are additionally operable to receive the response generated according to the stimulus messages Message.
The Path Recognition module is used for the destination address of the target GPP included according to the stimulus messages, makes described sharp Encourage message and be sent to the second messaging portal corresponding with the target GPP.
Specifically, the Path Recognition module includes the allocation list for configuring message pathway.Describe for convenience, The first message transmitting-receiving port for defining the switch is A, and second messaging portal is B1、B2……Bn, it is described GPP includes GPP1、GPP2……GPPn, wherein GPP1Address be C1, GPP2Address be C2, GPPnAddress be Cn,.Address C1With the second messaging portal B1Correspondence, address C2With the second messaging portal B2Correspondence, address CnWith the second information receiving and transmitting Port BnCorrespondence.By above-mentioned setting, after the stimulus messages are received from port A, the destination of the stimulus messages is extracted Location, can judge to receive and dispatch port with the second of the destination address, for example, when the excitation for receiving disappears according to the allocation list The destination address of breath is address C2When, by the stimulus messages from the described second transmitting-receiving port B2Send.
In sum, method of testing provided in an embodiment of the present invention, apparatus and system, by the switch to target GPP sends stimulus messages, and receives the response message that the switch is obtained from the target GPP, judges that the response disappears Whether breath is identical with the stimulus messages, judges that the target GPP is fully functional if identical, and generate another stimulus messages pair Another GPP is tested, if differing, stops test, so is capable of achieving to enter by a multiple GPP of test terminal 10 pairs Row test, also reduces the complexity of test while reducing testing cost.
In embodiment provided herein, it should be understood that disclosed device, method and system, it is also possible to logical Other modes are crossed to realize.Device embodiment described above is only schematical, for example, flow chart and frame in accompanying drawing Figure shows devices in accordance with embodiments of the present invention, the architectural framework in the cards of method and computer program product, work( Can and operate.At this point, each square frame in flow chart or block diagram can represent one the one of module, program segment or code Point, a part for the module, program segment or code is used for the executable of the logic function that realization specifies comprising one or more Instruction.It should also be noted that in some are as the implementation replaced, the function of being marked in square frame can also be with different from attached The order marked in figure occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they also may be used sometimes To perform in the opposite order, this is depending on involved function.It is also noted that each in block diagram and/or flow chart The combination of the square frame in square frame and block diagram and/or flow chart, can with perform the function of regulation or the special of action based on The system of hardware is realized, or can be realized with the combination of computer instruction with specialized hardware.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row His property is included, so that process, method, article or equipment including a series of key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or equipment institute are intrinsic Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including institute Also there is other identical element in process, method, article or the equipment of stating key element.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing It is further defined and is explained.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of method of testing, it is characterised in that be applied to the survey communicated with comprehensive core processor by switch Examination terminal, the comprehensive core processor includes multiple general purpose processing blocks, and the method for testing includes:
Response user operates and sends stimulus messages to the switch, and the excitation for making the switch to receive disappears Breath is sent to target general purpose processing block, and the stimulus messages include the destination address of target general purpose processing block;
The response message that the switch is obtained from the target general purpose processing block is received, the response message is by the mesh Mark general purpose processing block is generated according to the stimulus messages;And
Judge whether the response message is identical with the stimulus messages, the target general purpose processing block work(is judged if identical Can be complete, and generate another stimulus messages another general purpose processing block is tested, if differing, stop test.
2. method of testing according to claim 1, it is characterised in that the response user operates and sent out to the switch The step of sending stimulus messages, including:
Response user's operation, generation and the user corresponding stimulus messages of operation;
The stimulus messages are encapsulated as FC frames;
The stimulus messages that FC frames will be encapsulated as are converted to optical signal and are sent to the switch from electric signal.
3. method of testing according to claim 2, it is characterised in that be stored with multiple test processes in the test terminal Logic, the response user operation, generates the step of operating corresponding stimulus messages with the user, including:
Response user's operation, searches test processes logic corresponding with user operation;
Stimulus messages are generated according to the test processes logic.
4. method of testing according to claim 2, it is characterised in that the reception switch from the target it is general from It is described to judge whether the response message is identical with the stimulus messages after the step of reason module obtains response message, if phase It is same then judge that the target general purpose processing block is fully functional, and generate another stimulus messages another general purpose processing block is carried out Test, if differing, before stopping the step of testing, methods described also includes:
The response message is converted into electric signal from optical signal;
The response message to FC frame formats is decapsulated.
5. a kind of test device, it is characterised in that be applied to the survey communicated with comprehensive core processor by switch Examination terminal, the comprehensive core processor includes multiple general purpose processing blocks, and the test device includes that stimulus messages send mould Block, response message receiver module and judge module;
The stimulus messages sending module is operated to switch transmission stimulus messages for responding user, makes the exchange The stimulus messages that device will be received are sent to target general purpose processing block, and the stimulus messages include target general procedure The destination address of module;
The response message receiver module is used to receive the response that the switch is obtained from the target general purpose processing block Message, the response message is generated by the target general purpose processing block according to the stimulus messages;
The judge module judges the mesh for judging whether the response message is identical with the stimulus messages if identical Mark general purpose processing block is fully functional.
6. test device according to claim 5, it is characterised in that the stimulus messages sending module includes stimulus messages Generation submodule, stimulus messages encapsulation submodule and stimulus messages transform subblock;
The stimulus messages generation submodule is used to respond user's operation, generation and the user corresponding stimulus messages of operation;
The stimulus messages encapsulation submodule is used to for the stimulus messages to be encapsulated as FC frames;
The stimulus messages transform subblock is used to being encapsulated as the stimulus messages of FC frames, and to be converted to optical signal from electric signal concurrent Give the switch.
7. test device according to claim 6, it is characterised in that be stored with multiple test processes in the test terminal Logic, the stimulus messages generation submodule includes logical program searching unit and stimulus messages generation unit;
The logical program searching unit is used to respond user's operation, and lookup is patrolled with the user corresponding test processes of operation Volume;
Stimulus messages generation unit is used to generate stimulus messages according to the test processes logic.
8. test device according to claim 6, it is characterised in that the test device also includes response message modulus of conversion Block and response message decapsulation module;
The response message modular converter is used to for the response message to be converted to electric signal from optical signal;
The response message decapsulation module is used to decapsulate the response message of FC frame formats.
9. a kind of test system, it is characterised in that the test system includes that switch, the multiple of comprehensive core processor lead to With the test device described in processing module and claim 5~8 any one, wherein:
The switch is used to receive the stimulus messages that the test device sends, and the stimulus messages is sent into target and is led to With processing module, the switch is additionally operable to receive that the target general purpose processing block sends is given birth to according to the stimulus messages Into response message, and send to the test device;
The target general purpose processing block is used to receive the stimulus messages, is disappeared with the excitation according to stimulus messages generation Corresponding response message is ceased, and the response message is sent to switch;
The test device is used to send stimulus messages and receives the response message that the switch sends, and judges the sound Answer message whether identical with the stimulus messages, judge that the target general purpose processing block is fully functional if identical, and generate Another stimulus messages are tested another general purpose processing block, if differing, stop test.
10. test system according to claim 9, it is characterised in that the switch includes first message sending and receiving end Mouth, the second messaging portal and Path Recognition module, second messaging portal include multiple and described second message Transmitting-receiving port corresponds with the general purpose processing block;
The first message transmitting-receiving port is used to receive the stimulus messages that the test device sends, the first message sending and receiving end Mouth is additionally operable to for the response message generated according to the stimulus messages to be sent to the test device;
Multiple second messaging portals be used for by the stimulus messages that first message transmitting-receiving port receives be sent to Its corresponding general purpose processing block, multiple second messaging portals are additionally operable to receive what is generated according to the stimulus messages Response message;
The Path Recognition module is used for the destination address of the target general purpose processing block included according to the stimulus messages, makes institute State stimulus messages and be sent to the second messaging portal corresponding with the target general purpose processing block.
CN201611062134.1A 2016-11-28 2016-11-28 Test method, device and system Active CN106789399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611062134.1A CN106789399B (en) 2016-11-28 2016-11-28 Test method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611062134.1A CN106789399B (en) 2016-11-28 2016-11-28 Test method, device and system

Publications (2)

Publication Number Publication Date
CN106789399A true CN106789399A (en) 2017-05-31
CN106789399B CN106789399B (en) 2020-06-26

Family

ID=58912722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611062134.1A Active CN106789399B (en) 2016-11-28 2016-11-28 Test method, device and system

Country Status (1)

Country Link
CN (1) CN106789399B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500255A (en) * 2008-02-03 2009-08-05 中国移动通信集团公司 Mobile terminal test method and system
CN102420714A (en) * 2011-08-29 2012-04-18 展讯通信(上海)有限公司 Test managing method, test managing system master control center and test managing system
CN104461900A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 User interface testing method, center control server, test terminal and system
CN105372536A (en) * 2015-12-07 2016-03-02 成都锐能科技有限公司 Aviation electronic universal test platform
WO2016161017A1 (en) * 2015-03-31 2016-10-06 Ruckus Wireless, Inc. Virtual device with internet protocol security tunnel

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500255A (en) * 2008-02-03 2009-08-05 中国移动通信集团公司 Mobile terminal test method and system
CN102420714A (en) * 2011-08-29 2012-04-18 展讯通信(上海)有限公司 Test managing method, test managing system master control center and test managing system
CN104461900A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 User interface testing method, center control server, test terminal and system
WO2016161017A1 (en) * 2015-03-31 2016-10-06 Ruckus Wireless, Inc. Virtual device with internet protocol security tunnel
CN105372536A (en) * 2015-12-07 2016-03-02 成都锐能科技有限公司 Aviation electronic universal test platform

Also Published As

Publication number Publication date
CN106789399B (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN107145140A (en) Vehicle-mounted electronic control unit CAN interface Auto-Test System and its method of testing
CN103294047B (en) For diagnosing the method and system of vehicle
CN104865948B (en) A kind of automobile controller automatic diagnostic device and method
CN104899085B (en) A kind of data processing method and device
CN106603581B (en) Test method and device supporting multiple communication protocols
CN108303969B (en) Automatic testing device for vehicle-mounted ECU
CN105991709A (en) Cloud desktop account number management method and apparatus thereof
CN109726108B (en) Front-end code testing method, device, system and medium based on analog data
CN108446193A (en) A kind of serial ports test system and method
CN107529207A (en) Network communication method and device
CN114089713A (en) Communication method based on UDS, ECU and upper computer
CN111163052B (en) Method, device, medium and electronic equipment for connecting Internet of things platform
CN106445751A (en) Debugging board, debugging system and debugging method
CN108053174A (en) Scene edit methods and system
CN106789399A (en) A kind of method of testing, apparatus and system
CN115951973B (en) Model processing method, device, terminal equipment and storage medium
CN110995780A (en) API calling method and device, storage medium and electronic equipment
Iglesias et al. Enabling powerful GUIs in ISOBUS networks by transparent data compression
CN108713199A (en) Right management method, system, mobile terminal, shared charging equipment and server
CN112069078A (en) ESA interface pressure testing method, device, testing equipment and storage medium
CN112433900A (en) Method, system, device and storage medium for chip verification
CN109842684A (en) Measure control method, apparatus and system
CN110060393A (en) Outbound control method, smartwatch and mobile terminal based on electronics riding information
CN114487758B (en) Test method and test system for semiconductor equipment
CN104865945B (en) The method and apparatus tested the electronic control unit in automobile

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant