A kind of method, apparatus and system controlling multi-bus interface data stimuli
Technical field
This application involves communication and emulation testing technical fields, more particularly to a kind of control multi-bus interface data stimuli
Method, apparatus and system.
Background technique
In communication interface emulation testing field, the data for each bus interface being located on different I/O interface boards are swashed
Encouraging is a common test function, however, being directed to the test of complication system, multiple buses on different I/O interface boards
The function logic relationship for needing to have certain between interface, it is therefore desirable to multiple bus interface carry out unified data stimuli,
And then guarantee the timing and logical relation of each bus interface data excitation.
In the prior art, the data stimuli process to multiple bus interface is usually realized by following two mode:
1) an I/O interface board, is managed by an excitation software, so that passing through each excitation software realization pair
The data stimuli process of each bus interface on corresponding I/O interface board, but during being somebody's turn to do, often due to respectively
It is completely independent, causes it cannot be guaranteed that being located on different I/O interface boards between excitation software corresponding with each I/O interface board
The timing and logical relation of data stimuli between each bus interface.
2) all I/O interface boards, are managed by an excitation software, this method mainly passes through an excitation software
The data stimuli process to each bus interface on all I/O interface boards is realized, in this process, although excitation software can
To send message to each I/O interface board respectively with certain timing and logical relation, and controls I O board card and bottom is called to drive
It is dynamic, the transmission process to message is completed by respective bus interface, still, excitation software in this method send every time it is next
Before message to corresponding I/O interface board, the message for being required to return until I O board card corresponding with a upper message sends knot
Fruit, and I/O interface board is calling bottom layer driving completion to need the regular hour to the transmission process of message, therefore, such method
It often leads to bus interface and finally realizes that the deviation of data stimuli is larger and the time delay of each bus interface has accumulative effect.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of method, apparatus and system for controlling multi-bus interface data stimuli,
Guarantee the timing of data stimuli during carrying out data stimuli to each bus interface to realize and logical relation and avoid
The deviation of bus interface data excitation and the time delay of each bus interface add up effect.
To achieve the goals above, technical solution provided by the embodiments of the present application is as follows:
A method of control multi-bus interface data stimuli, comprising:
The input information of user is responded, total excitation information corresponding with each I/O interface board is generated;
Total excitation information is sent to each I/O interface board, total excitation information is for triggering the I/O interface
Board parses the total excitation information received, obtains excitation information corresponding with the I/O interface board, the excitation information
It is encoded including excited message, excitation timing corresponding with the excited message and bus interface;
The excitation request of user's input is responded, while sending excitation instruction to each I/O interface board.
Preferably, the input information of the response user, generates total excitation information corresponding with each I/O interface board, packet
It includes:
The the first input information for responding user, generates total excited message corresponding with each I/O interface board;
The the second input information for responding user is generated using total excited message corresponding with each I/O interface board
Total excitation information corresponding with each I/O interface board.
A kind of device controlling multi-bus interface data stimuli, comprising: total excitation information generation unit, control unit and
Excitation instruction transmission unit, wherein
Total excitation information generation unit generates and each I/O interface board pair for responding the input information of user
The total excitation information answered;
Described control unit, for total excitation information to be sent to each I/O interface board, total excitation information
The total excitation information received is parsed for triggering the I/O interface board, is obtained corresponding with the I/O interface board sharp
Information is encouraged, which includes excited message, excitation timing corresponding with the excited message and bus interface coding;
The excitation instruction transmission unit for responding the excitation request of user's input, while sending excitation instruction to each
A I/O interface board.
Preferably, total excitation information generation unit includes: that total excited message generation unit and total excitation information are raw
At subelement, wherein
Total excited message generation unit generates and each I/O interface plate for responding the first input information of user
Block corresponding total excited message;
Total excitation information generates subelement, for responding the second input information of user, utilizes described and each IO
The corresponding total excited message of interface board generates total excitation information corresponding with each I/O interface board.
A method of control multi-bus interface data stimuli, comprising:
I/O interface board receives total excitation information, and therefrom parsing obtains excitation information corresponding with this I/O interface board, should
Excitation information includes excited message, excitation timing corresponding with the excited message and bus interface coding;
The instruction of I/O interface board responsing excitation, calls corresponding with this I/O interface board bus interface process, with execute with
Lower process:
Start timer corresponding with this I/O interface board;
When the timer present timing result matches the excitation timing, determination is corresponding with bus interface coding
Bus interface send the excited message and by the bus interface.
Preferably, further includes: with preset first frequency, judge whether the timer present timing result matches
The excitation timing.
Preferably, the preset first frequency is less than each excitation timing corresponding with the I/O interface board
In minimum value.
A kind of device controlling multi-bus interface data stimuli, comprising:
Resolution unit obtains and this I/O interface board for parsing from the received total excitation information of the I/O interface board
Corresponding excitation information, the excitation information include excited message, excitation timing corresponding with the excited message and bus interface
Coding;
Bus interface process call unit is instructed for responsing excitation, and bus corresponding with this I/O interface board is called to connect
Mouth process, to execute following procedure:
Start timer corresponding with this I/O interface board;
When the timer present timing result matches the excitation timing, determination is corresponding with bus interface coding
Bus interface send the excited message and by the bus interface.
Preferably, further includes: judging unit, wherein
The judging unit, for whether judging the timer present timing result with preset first frequency
Match the excitation timing.
A kind of system controlling multi-bus interface data stimuli, including server and multiple I/O interface boards,
The server generates total excitation letter corresponding with each I/O interface board for responding the input information of user
Breath;Total excitation information is sent to each I/O interface board, total excitation information is for triggering the I/O interface board
The total excitation information received is parsed, excitation information corresponding with the I/O interface board is obtained, which includes
Excited message, excitation timing corresponding with the excited message and bus interface coding;The excitation request of user's input is responded, together
When send excitation instruction to each I/O interface board;
The I/O interface board receives total excitation information, and therefrom parsing obtains excitation letter corresponding with this I/O interface board
Breath, the excitation information include excited message, excitation timing corresponding with the excited message and bus interface coding;I/O interface plate
The instruction of card responsing excitation, calls bus interface process corresponding with this I/O interface board, to execute following procedure: starting and this IO
The corresponding timer of interface board;It is determining and described total when the timer present timing result matches the excitation timing
Line interface encodes corresponding bus interface, and by the bus interface, sends the excited message.
The application provides a kind of method, apparatus and system for controlling multi-bus interface data stimuli, by triggering I/O interface
Board parses the total excitation information received to obtain excitation information corresponding with the I/O interface board, and unified send is swashed
It encourages instruction and is called corresponding with this I/O interface board to each I/O interface board so that I/O interface board responsing excitation instructs
Bus interface process, completes the transmission process to excited message in excitation information, and the application passes through by each I/O interface board solution
Analysis obtains corresponding excitation information, and unification sends excitation instruction to each I/O interface board, so that each I/O interface
Board calls corresponding bus interface process to complete the transmission process to excited message in excitation information, and then realizes to each
During a bus interface carries out data stimuli, guarantees the timing of data stimuli and logical relation and avoid bus interface data
The time delay of the deviation of excitation and each bus interface adds up effect.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in application, for those of ordinary skill in the art, without creative efforts,
It is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of method flow diagram for control multi-bus interface data stimuli that the embodiment of the present application one provides;
Fig. 2 is a kind of structural representation of the device for control multi-bus interface data stimuli that the embodiment of the present application one provides
Figure;
Fig. 3 is the method flow diagram for another control multi-bus interface data stimuli that the embodiment of the present application one provides;
Fig. 4 is the structural representation of the device for another control multi-bus interface data stimuli that the embodiment of the present application one provides
Figure.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation
Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common
The application protection all should belong in technical staff's every other embodiment obtained without making creative work
Range.
Embodiment one:
Fig. 1 is a kind of method flow diagram for control multi-bus interface data stimuli that the embodiment of the present application one provides.
As shown in Figure 1, this method comprises:
S101, the input information for responding user generate total excitation information corresponding with each I/O interface board.
In the embodiment of the present application, the method for the control multi-bus interface data stimuli is mainly by control multi-bus interface
The device of data stimuli is completed, and in the embodiment of the present application (the embodiment of the present application and control multi-bus interface shown in FIG. 1
The method of data stimuli is corresponding) in, it is preferred that the device of the control multi-bus interface data stimuli is excitation software.
In the embodiment of the present application, the input information of user is responded first, is generated corresponding with each I/O interface board total
Excitation information, and preferred, the process are as follows: respond user the first input information (it is preferred, the first input information be with it is each
The corresponding total excited message information of a I/O interface board, include: in total excited message information respectively with each I/O interface board
Corresponding excited message information), generate total excited message (preferred, total excited message corresponding with each I/O interface board
In include excited message corresponding with each I/O interface board respectively);And then respond the second input information of user (preferably,
The second input information is that excitation timing corresponding with each excited message and bus interface encode respectively), using this with it is each
The corresponding total excited message of a I/O interface board, generates total excitation information corresponding with each I/O interface board.
In the embodiment of the present application, it is preferred that include corresponding with each I/O interface board respectively in total excitation information
Excitation information, and the quantity of excitation information corresponding with each I/O interface board is depending on the input information of user, and each
It include excited message, excitation timing corresponding with the excited message and bus interface coding in excitation information, and preferred,
Motivating timing is the time interval opened apart from timer.
S102, total excitation information is sent to each I/O interface board, total excitation information is for triggering I/O interface board pair
The total excitation information received is parsed, and excitation information corresponding with the I/O interface board is obtained.
In the embodiment of the present application, in the excitation information corresponding with each I/O interface board respectively in total excitation information
Corresponding board mark is carried, and board mark uniquely corresponds to an I/O interface board.
In the embodiment of the present application, after generating total excitation information, which is sent to each I/O interface plate
On card, which parses the total excitation information received for triggering I/O interface board, after being parsed
Total excitation information includes multiple excitation informations for carrying board mark, the I/O interface in total excitation information after parsing here
Board analytically after total excitation information in obtain board and identify corresponding with I/O interface board excitation information, the excitation information
It is encoded including excited message, excitation timing corresponding with the excited message and bus interface.
The excitation request that S103, response user input, while excitation instruction is sent to each I/O interface board.
In the embodiment of the present application, when total excitation information is sent to each I/O interface board, and by each I/O interface plate
Card parses it after obtaining corresponding excitation information, can also respond the excitation request of user's input, while sending excitation instruction
To each I/O interface board.
Fig. 2 is a kind of structural representation of the device for control multi-bus interface data stimuli that the embodiment of the present application one provides
Figure.
The device for the control multi-bus interface data stimuli that Fig. 2 is provided is that the control multibus provided for above-mentioned Fig. 1 connects
What the method for mouth data stimuli provided.
As shown in Fig. 2, the device of the control multi-bus interface data stimuli includes: total excitation information generation unit 1, control
Unit 2 and excitation instruction transmission unit 3, wherein
Total excitation information generation unit 1 generates corresponding with each I/O interface board for responding the input information of user
Total excitation information.
In the embodiment of the present application, which includes total excited message generation unit and always swashs
It encourages information and generates subelement.
In the embodiment of the present application, total excited message generation unit is generated for responding the first input information of user
Total excited message corresponding with each I/O interface board.
Total excitation information generates subelement and is connected with total excited message generation unit, for responding the second input of user
Information generates total excitation letter corresponding with each I/O interface board using total excited message corresponding with each I/O interface board
Breath.
Control unit 2 is connected with total excitation information generation unit 1, for total excitation information to be sent to each I/O interface
Board, total excitation information parse the total excitation information received for triggering I/O interface board, obtain and the I/O interface
The corresponding excitation information of board, the excitation information include excited message, excitation timing corresponding with the excited message and bus
Interface coding.
Excitation instruction transmission unit 3 is connected with control unit 2, for responding the excitation request of user's input, sends out simultaneously
Send excitation instruction to each I/O interface board.
Fig. 3 is the method flow diagram for another control multi-bus interface data stimuli that the embodiment of the present application one provides.
As shown in figure 3, this method comprises:
S201, I/O interface board receive total excitation information, and therefrom parsing obtains excitation letter corresponding with this I/O interface board
Breath.
The method of control multi-bus interface data stimuli as shown in Figure 3 provided by the embodiments of the present application is applied to each IO
Interface board.
In the embodiment of the present application, it after I/O interface board receives total excitation information, can be triggered by total excitation information,
And then total excitation information that this is received is parsed, excitation information corresponding with this I/O interface board is obtained, and preferred,
The excitation information includes excited message, excitation timing corresponding with the excited message and bus interface coding.
S202, the instruction of I/O interface board responsing excitation, call bus interface process corresponding with this I/O interface board, to hold
Row following procedure: starting timer corresponding with this I/O interface board;When timer present timing result matches excitation timing,
It determines bus interface corresponding with bus interface coding, and by the bus interface, sends excited message.
In the embodiment of the present application, which parses the total excitation information received, obtains and this IO
After the corresponding excitation information of interface board, the excitation instruction received can also be responded, is called corresponding with this I/O interface board
Bus interface process, to execute following procedure:
1, start timer corresponding with this I/O interface board.
In the embodiment of the present application, it is preferred that I/O interface board responds the excitation instruction received, calls and this I/O interface
The corresponding bus interface process of board, and then start timer corresponding with this I/O interface board and start timing.
2, when timer present timing result matches excitation timing, determine that bus corresponding with bus interface coding connects
Mouthful, and by the bus interface, send excited message.
In the embodiment of the present application, it is preferred that when the timing result of timer corresponding with this I/O interface board, with this IO
When excitation timing in the excitation information that interface board parses is identical, then when determining first in the excitation information with the excitation
The corresponding excited message of sequence and bus interface corresponding with excited message coding, and then encoded using with the bus interface
Corresponding bus interface sends the excited message.
Further, in the method for controlling multi-bus interface data stimuli as provided by Fig. 3, further includes: with preparatory
The first frequency of setting, judges whether timer present timing result matches excitation timing.
In the embodiment of the present application, it is preferred that with preset first frequency, judgement connects I/O interface board with the IO
Whether the timing result of the corresponding timer of oralia card matches the excitation in the excitation information parsed in this I/O interface board
Timing.
And in the embodiment of the present application, which is less than corresponding with the I/O interface board each sharp
The minimum value in timing is encouraged, to guarantee accurately judge each excitation timing corresponding with the I/O interface board and timing knot
Whether fruit matches.
Fig. 4 is the structural representation of the device for another control multi-bus interface data stimuli that the embodiment of the present application one provides
Figure.
The device for the control multi-bus interface data stimuli that Fig. 4 is provided is that the control multibus provided for above-mentioned Fig. 3 connects
What the method for mouth data stimuli provided.
As shown in figure 4, the device of the control multi-bus interface data stimuli include: resolution unit 1 and bus interface into
Journey call unit 2, wherein
Resolution unit 1 obtains and this I/O interface board pair for parsing from the received total excitation information of I/O interface board
The excitation information answered, the excitation information include that excited message, excitation timing corresponding with the excited message and bus interface are compiled
Code.
Bus interface process call unit 2 is connected with resolution unit 1, instructs for responsing excitation, and calling connects with this IO
The corresponding bus interface process of oralia card, to execute following procedure:
Start timer corresponding with this I/O interface board;
When timer present timing result matches excitation timing, bus interface corresponding with bus interface coding is determined,
And by the bus interface, excited message is sent.
Further, in the device of control multi-bus interface data stimuli as shown in Figure 4 provided by the embodiments of the present application
In, further includes:
Judging unit, the judging unit are connected with bus interface process call unit 2, for preset first
Frequency, judges whether timer present timing result matches excitation timing.
The application provides a kind of method and device for controlling multi-bus interface data stimuli, by triggering I/O interface board pair
The total excitation information received is parsed to obtain excitation information corresponding with the I/O interface board, and unified transmission excitation instruction
Bus corresponding with this I/O interface board is called to connect to each I/O interface board so that I/O interface board responsing excitation instructs
Mouth process, completes the transmission process to excited message in excitation information, the application by each I/O interface board by being parsed to obtain
Corresponding excitation information, and unification sends excitation instruction to each I/O interface board, so that each I/O interface board tune
The transmission process to excited message in excitation information is completed with corresponding bus interface process, and then is realized to each bus
Interface carry out data stimuli during, guarantee data stimuli timing and logical relation and avoid bus interface data motivate
The time delay of deviation and each bus interface adds up effect.
Embodiment two:
The embodiment of the present application two provide it is a kind of control multi-bus interface data stimuli system, the system include server and
Multiple I/O interface boards, wherein
Server generates total excitation information corresponding with each I/O interface board for responding the input information of user;It will
Total excitation information is sent to each I/O interface board, and total excitation information, which is used to trigger I/O interface board, believes the total excitation received
Breath is parsed, and excitation information corresponding with the I/O interface board is obtained, which includes excited message and the excitation report
The corresponding excitation timing of text and bus interface coding;The excitation request of user's input is responded, while sending excitation instruction to each
A I/O interface board.
I/O interface board receives total excitation information, and therefrom parsing obtains excitation information corresponding with this I/O interface board, should
Excitation information includes excited message, excitation timing corresponding with the excited message and bus interface coding;I/O interface board is rung
Excitation instruction is answered, bus interface process corresponding with this I/O interface board is called, to execute following procedure: starting and this I/O interface
The corresponding timer of board;When timer present timing result matches excitation timing, determination is corresponding with bus interface coding
Bus interface, and by the bus interface, send excited message.
The application provides a kind of system for controlling multi-bus interface data stimuli, which includes that server and multiple IO connect
Oralia card, each I/O interface board parses to obtain corresponding excitation information in the system, and is swashed by unified send of server
Instruction is encouraged to each I/O interface board, so that each I/O interface board calls corresponding bus interface process to complete to excitation
The transmission process of excited message in information, and then realize during carrying out data stimuli to each bus interface, guarantee data
The timing and logical relation of excitation simultaneously avoid the deviation of bus interface data excitation and the time delay of each bus interface from adding up
Effect.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part
It is bright.
The above is only the preferred embodiment of the application, make skilled artisans appreciate that or realization the application.It is right
A variety of modifications of these embodiments will be apparent to one skilled in the art, general original as defined herein
Reason can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application will not
Be intended to be limited to the embodiments shown herein, and be to fit to it is consistent with the principles and novel features disclosed in this article most
Wide range.