CN104158913B - A kind of test method of display interfaces - Google Patents

A kind of test method of display interfaces Download PDF

Info

Publication number
CN104158913B
CN104158913B CN201410455386.5A CN201410455386A CN104158913B CN 104158913 B CN104158913 B CN 104158913B CN 201410455386 A CN201410455386 A CN 201410455386A CN 104158913 B CN104158913 B CN 104158913B
Authority
CN
China
Prior art keywords
test
signal
display
mvb
tested
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.)
Active
Application number
CN201410455386.5A
Other languages
Chinese (zh)
Other versions
CN104158913A (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.)
Zhuzhou CRRC Times Electric Co Ltd
Original Assignee
Zhuzhou CSR Times Electric 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 Zhuzhou CSR Times Electric Co Ltd filed Critical Zhuzhou CSR Times Electric Co Ltd
Priority to CN201410455386.5A priority Critical patent/CN104158913B/en
Publication of CN104158913A publication Critical patent/CN104158913A/en
Application granted granted Critical
Publication of CN104158913B publication Critical patent/CN104158913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of test method of display interfaces provided by the present application, test-run a machine is accompanied to generate test signal by external, and it is transmitted by the communication network for accompanying test-run a machine to be connected with display, after display receives test signal, the test signal for meeting communication network transmission format is converted to and meets display MVB bus transformat, independent of true MVB bus, due to accompanying test-run a machine to generate test signal corresponding with MVB, its test process is similar with the display reception signal of MVB format, the corresponding data source header of all variables is found without staff and carries out the complex operations such as assignment, detection cycle is short, accuracy is higher.It and can be arbitrary external connection apparatus due to accompanying test-run a machine, communication network can use common network, as long as having corresponding interface in display, without being modified display device structure, be conducive to promote.

Description

A kind of test method of display interfaces
Technical field
The present invention relates to train apparatus fields, and more specifically, it relates to a kind of test methods of display interfaces.
Background technique
Display is the important sub- equipment of one in train network control system, in order to guarantee the safety fortune of display Row, needs to test display interfaces.
The content that display is shown is to be generated by GWM (Gate Way Module, gateway module), and pass through MVB The display of the data of (Multifunction Vehicle Bus, multifunctional vehicle bus) transmission, display depends on the MVB Data.
In order to make the test of display interfaces independent of the MVB data, lead to shadow when MVB bus failure to prevent The test result of display interfaces is rung, general use tests display interfaces from survey method, detailed process are as follows: first find out boundary Amount to be tested is needed in face, then finds out corresponding code segment in a program, carries out assignment operation for the data source of the variable, Then in display interfaces, check whether the data of display are satisfactory data.
But need to find institute when data all in the main interface of display are tested using this method The part display logic for having the corresponding data source header of variable, and carrying out assignment, while being related to, needs to make pressure processing.Therefore, When the data shown in main interface are more, and logic to be treated is very more, will lead to programmer need to spend it is more Time handles data and logic, during data and logical process, it is understood that there may be the undissolved feelings of test data Condition, such as situations such as the pressure of logic is not cancelled after test, and the assignment of data is not cancelled.The generation of the mistake, and be journey The test of sequence brings new BUG.So long using this method detection cycle, accuracy is lower.
Summary of the invention
In view of this, solving in the prior art the present invention provides a kind of test method of display interfaces to display The detection cycle of device Interface detection is long, the low problem of accuracy.
To achieve the above object, the invention provides the following technical scheme:
A kind of test method of display interfaces, the method are applied to tested display, and the tested display has Double-unit traction controller interface and the first communications network interface, this method comprises:
Test signal is received by first communications network interface, the test signal is by accompanying test-run a machine to generate and send;
According to preset transformation rule, the test signal resolution is converted into MVB format;
Test signal according to MVB format tests the tested display interface.
Above-mentioned method, it is preferred that according to preset transformation rule, the test signal resolution is converted into MVB format It specifically includes:
The test signal is unpacked;
According to the MVB data format and preset data content agreement, obtained data information will be unpacked and be converted to MVB Format.
Above-mentioned method, it is preferred that before the reception test signal, further includes:
Test starting order is received, the test starting order is by accompanying test-run a machine to generate and send;
According to the test starting order, controls the tested display and enter test pattern.
Above-mentioned method, it is preferred that be preset in the tested display corresponding with first communications network interface First storage region, it is described according to the test starting order, it controls the tested display and enters test pattern and include:
According to the test starting order, determine that the communications network interface is receiver port;
It determines first area, the signal received by first communications network interface is stored to firstth area Domain.
Above-mentioned method, it is preferred that after tested display described in the test signal test according to MVB format, further includes:
Test is received to cease and desist order;
It ceases and desist order according to the test, controls the tested display and enter operating mode, connect by the MVB interface Receive the MVB signal that GWM is sent.
Above-mentioned method, it is preferred that the second memory block corresponding with the MVB interface is preset in the tested display Domain, it is described to cease and desist order according to the test, it controls the tested display and enters operating mode and include:
It ceases and desist order according to the test, determines that the MVB interface is receiver port;
Determine the second storage region, by by the MVB interface to signal store to the second area.
A kind of test method of display interfaces, the method is applied to accompany test-run a machine, described that test-run a machine is accompanied to have the second communication Network interface, this method comprises:
According to data to be tested, test signal is generated;
The test signal is sent to tested display by second communications network interface.
Above-mentioned method, it is preferred that described according to data to be tested, generating test signal includes:
Preset address configuration file is analyzed, data address is obtained;
According to the data to be tested and preset data content agreement, test information is generated;
By the data address and the test signal group packet, test signal is obtained.
Above-mentioned method, it is preferred that it is described according to data to be tested, it generates before testing signal, further includes:
Test starting signal is received, the test starting signal is raw in the start-up operation accompanied in test-run a machine according to user At;
Test starting order is generated according to the test starting signal;
The test starting order is sent to tested display by second communications network interface.
Above-mentioned method, it is preferred that the test signal is sent to tested display by second communications network interface After device, further includes:
Test stop signal is received, the test stop signal is raw in the start-up operation accompanied in test-run a machine according to user At;
Test is generated according to the test stop signal to cease and desist order;
The test is ceased and desisted order, tested display is sent to by second communications network interface.
It can be seen via above technical scheme that compared with prior art, the present invention provides a kind of surveys of display interfaces Method for testing, this method are applied in tested display, which there is double-unit traction controller interface and first to lead to Communication network interface, this method comprises: receiving test signal by first communications network interface, the test signal is by accompanying examination Machine generates and sends;According to preset transformation rule, the test signal resolution is converted into MVB format;According to MVB format Test signal tests the tested display interface.Using this method, test-run a machine is accompanied to generate test signal by external, And transmitted by the communication network for accompanying test-run a machine to be connected with display, after display receives test signal, it will meet The test signal of communication network transmission format, which is converted to, meets display MVB bus transformat, total independent of true MVB Line, due to accompanying test-run a machine to generate test signal corresponding with MVB, test process is similar with the display reception signal of MVB format, The corresponding data source header of all variables is found without staff and carries out the complex operations such as assignment, and detection cycle is short, accurately It spends higher.It and can be arbitrary external connection apparatus due to accompanying test-run a machine, communication network can use common network, only It wants that there is corresponding interface in display, without being modified display device structure, is conducive to promote.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, 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 embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of Communication topology figure of the test method of display interfaces provided by the present application;
Fig. 2 is a kind of flow chart of the test method embodiment 1 of display interfaces provided by the present application;
Fig. 3 is a kind of flow chart of the test method embodiment 2 of display interfaces provided by the present application;
Fig. 4 is that a kind of data packet of test method embodiment 2 of display interfaces provided by the present application unpacks figure;
Fig. 5 is a kind of flow chart of the test method embodiment 3 of display interfaces provided by the present application;
Fig. 6 is a kind of flow chart of the test method embodiment 4 of display interfaces provided by the present application;
Fig. 7 is a kind of flow chart of the test method embodiment 5 of display interfaces provided by the present application;
Fig. 8 is a kind of specific flow chart of the 5 step S701 of test method embodiment of display interfaces provided by the present application;
Fig. 9 is a kind of flow chart of the test method embodiment 6 of display interfaces provided by the present application;
Figure 10 is a kind of flow chart of the test method embodiment 7 of display interfaces provided by the present application.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
A kind of test method of display interfaces provided by the present application is applied to tested display and accompanies test-run a machine, such as Fig. 1 institute The Communication topology figure shown, tested display 101 and accompanying are connected between test-run a machine 102 using communication network 103, the tested display Device and the information between test-run a machine is accompanied to be transmitted by the communication network.
As shown in Fig. 2, a kind of flow chart of the test method embodiment 1 of display interfaces provided by the present application, this method Applied to tested display, wherein the tested display has MVB interface and communications network interface.
This method is realized by following steps:
Step S201: test signal is received by first communications network interface;
Wherein, the test signal is by accompanying test-run a machine to generate, and by the tested display and accompanies the communication network between test-run a machine It is sent to the tested display.
Specifically, first communications network interface and tested display and accompany the communication network between test-run a machine consistent, for example, When the communication network is Ethernet, which is Ethernet data interface;When the communication network is that piece is total When line, then first communications network interface is piece bus data interface;When the communication network is 485 bus, then this is first logical Communication network interface is 485 bus data interfaces.
Wherein, the test signal be data format corresponding with the communication network transmission format, due to the communication network with MVB bus is different, then the data format is different from MVB format.
In specific implementation, which can be set according to the first communications network interface type in tested display It sets, which is not limited to provide in the present embodiment two kinds, can also be other types.
Step S202: according to preset transformation rule, the test signal resolution is converted into MVB format;
Wherein, which is the data format for meeting communication network transmission format, and tested display interface display Content is the signal of MVB format, and to realize the test to tested display interface, the test signal for needing to receive is converted to MVB format.
Specifically, being preset with format transformation rule in tested display, incited somebody to action according to the format transformation rule, the test signal It is converted into meeting the MVB format signal of tested display interface detection requirement.It is done in detail in specific conversion process subsequent embodiment It describes in detail bright, is repeated no more in the present embodiment.
Step S203: the test signal according to MVB format tests the tested display interface.
Wherein, it by the conversion in step S202, is carried out in tested display interface according to the test signal of the MVB format It has been shown that,
Specifically, being surveyed according to information such as the parameters carried in the test signal to data in the main interface of display Examination.The test process with by MVB transmission data, show that content is similar in the main interface to control display in the prior art, The present embodiment does not repeat them here.
To sum up, the test method of a kind of display interfaces provided in this embodiment, this method are applied in tested display, Using this method, test-run a machine is accompanied to generate test signal by external, and pass through the communication network for accompanying test-run a machine to be connected with display It is transmitted, after display receives test signal, the test signal for meeting communication network transmission format is converted to and is met Display MVB bus transformat, independent of true MVB bus, due to accompanying test-run a machine to generate test letter corresponding with MVB Number, test process is similar with the display reception signal of MVB format, and the corresponding number of all variables is found without staff According to source and the complex operations such as assignment are carried out, detection cycle is short, and accuracy is higher.It and can be arbitrary outer due to accompanying test-run a machine Portion connect equipment, communication network can use common network, as long as in display have corresponding interface, without pair Display device structure is modified, and is conducive to promote.
As shown in figure 3, a kind of flow chart of the test method embodiment 2 of display interfaces provided by the present application, this method It is realized by following steps:
Step S301: test signal is received by first communications network interface;
Wherein, the step S201 in mono- embodiment 1 of step S301 is consistent, and this embodiment is not repeated.
Step S302: the test signal is unpacked;
Wherein, which is to transmit in the form of data packet in a communication network, after receiving the test signal, It needs to unpack the test signal, to obtain the data information wherein carried.
Specifically, unpacking obtained content may include: packet header, data information etc..
Step S303: according to the MVB data format and preset data content agreement, the data information that unpacking is obtained Be converted to MVB format;
Wherein, which is to send the tested display of the test signal accompanied test-run a machine and receive the test signal Agreement between device, specifically, the data content agreement is the meaning that the specific address in the MVB address slice of both sides' agreement represents Deng as 0X40040 represents contact net voltage.
Specifically, data packet as shown in Figure 4 unpacks figure, wherein 401 indicate the data test signal for accompanying test-run a machine to send Packet, 402 indicate to unpack obtained data content.Data packet unpacks to obtain address to be 0X40040 and 0X40080, wherein if The first character of the address 0x40040 indicates network pressure, and in terms of the data in Fig. 4, this value is 0x0001, i.e., network pressure value is 1V, from If Ethernet parses data, it is only necessary to identify address 0x40040, subsequent data are using the address as the number of initial address According to.And the data of the address slice are defined in data content agreement, for example define the first of 0x40040 initial address A word indicates network pressure, second byte representation speed.
It should be noted that initial address is only defined in data content agreement, without determining all information Justice.
In specific implementation, the data content agreement can be preset in tested display, can also for by test believe Number carrying is sent in the tested display, in the application with no restrictions to the source of the data content agreement.
In the present embodiment, the data content structure unpacked is consistent with MVB data structure, then turns without carrying out format It changes.
In actual implementation, since various data content formats are indefinite, when the data content structure and MVB number that its unpacking obtains It is inconsistent according to structure, then it is formatted, keeps its structure consistent with MVB data structure.
Step S304: the test signal according to MVB format tests the tested display interface.
Wherein, step S304 is consistent with the step S203 in embodiment 1, and this embodiment is not repeated.
To sum up, in the test method that a kind of display interfaces are provided in the present embodiment, this according to preset transformation rule, The test signal resolution is converted to MVB format to specifically include: the test signal is unpacked;According to the MVB number According to format and preset data content agreement, obtained data information will be unpacked and be converted to MVB format.Using this method, docking The test signal for meeting communication network received is converted, and is obtained MVB format signal needed for display shows content, is guaranteed While not using MVB bus, the test to display interfaces is realized, so that the test of display interfaces is independent of this MVB bus.
As shown in figure 5, a kind of flow chart of the test method embodiment 3 of display interfaces provided by the present application, this method It is realized by following steps:
Step S501: test starting order is received;
Wherein, the test starting order is by accompanying test-run a machine to generate and send.
Specifically, the test starting order accompanies test-run a machine by the tested display by this and accompanies the communication network between test-run a machine It is sent to the tested display.
It should be noted that since there are two types of interfaces for setting in tested display: MVB interface and communications network interface, and The two interfaces are in normal connection status, and therefore, which can pass through the MVB of MVB interface GWM transmission simultaneously Signal, and the test starting order for accompanying test-run a machine to pass through communication network transmission.
Step S502: it according to the test starting order, controls the tested display and enters test pattern;
Wherein, the first storage region corresponding with the first communications network interface is preset in tested display.
Wherein, after receiving the test starting order, control tested display enters test pattern, by accompanying examination with this First communications network interface of the connected communication network cooperation of machine receives test signal, and no longer operates to MVB interface, real Tested display is showed and test mode is switched to by normal operating conditions.
Then step S502 is specifically included: according to the test starting order, determining that the communications network interface connects for signal Receiving end mouth;It determines first storage region, the signal received by first communications network interface is stored to described First area.
In specific implementation, this no longer operates MVB interface can be for no longer by MVB interface GWM transmission MVB signal, or abandon storing MVB signal into its corresponding second area.
Step S503: test signal is received by first communications network interface;
Step S504: according to preset transformation rule, the test signal resolution is converted into MVB format;
Step S505: the test signal according to MVB format tests the tested display interface.
Wherein, step S503-505 is consistent with the step S201-203 in embodiment 1, and the present embodiment does not repeat them here.
To sum up, it in a kind of test method of display interfaces provided in this embodiment, before receiving test signal, also wraps It includes: receiving test starting order, the test starting order is by accompanying test-run a machine to generate and send;According to the test starting order, It controls the tested display and enters test pattern.Using this method, test is initially entered after receiving test starting order Mode realizes the process that tested display is switched to test mode by normal operating conditions, ensure that the test process is controllable.
As shown in fig. 6, a kind of flow chart of the test method embodiment 4 of display interfaces provided by the present application, this method It is realized by following steps:
Step S601: test signal is received by first communications network interface;
Step S602: according to preset transformation rule, the test signal resolution is converted into MVB format;
Step S603: the test signal according to MVB format tests the tested display interface;
Wherein, step S601-603 is consistent with the step S201-203 in embodiment 1, and the present embodiment does not repeat them here.
Step S604: it receives test and ceases and desist order;
Wherein, the test is ceased and desisted order by accompanying test-run a machine to generate and send.
Test-run a machine is accompanied by the tested display by this and accompanies the communication network between test-run a machine specifically, the test is ceased and desisted order It is sent to the tested display.
It should be noted that cannot MVB data be received or be deposited when tested display is in test pattern Therefore storage can only receive test by tested display and communications network interface and cease and desist order, and be ceased and desisted order according to the test Carry out subsequent stopping test response.
Step S605: it ceases and desist order according to the test, controls the tested display and enter operating mode, by described The MVB signal that MVB interface GWM is sent.
Wherein, the second storage region corresponding with the MVB interface is preset in tested display.
Wherein, after receiving the test and ceasing and desisting order, control tested display exits test pattern and enters Working mould Formula receives content of the MVB signal for display interfaces by the MVB bus being connected with by GWM and shows.
Certainly, due in tested display MVB interface and communications network interface be in normal connection status, the quilt Surveying display can be simultaneously by the MVB signal of MVB interface GWM transmission, and test-run a machine is accompanied to pass through communication network transmission Other signals.
Then step S605 is specifically included: being ceased and desisted order according to the test, is determined that the MVB interface is signal receiving end Mouthful;Determine the second storage region, by by the MVB interface to signal store to the second area.
To sum up, in a kind of test method of display interfaces provided in this embodiment, the test signal according to MVB format is surveyed After trying the tested display, further includes: receive test and cease and desist order;It ceases and desist order according to the test, controls the quilt It surveys display and enters operating mode, the MVB signal sent by the MVB interface GWM.Using this method, receiving It tests backed off after random test pattern of ceasing and desisting order and enters operating mode, realizing tested display can normal work by test mode switching The process for making state ensure that the test process is controllable.
Test method with a kind of above-mentioned display interfaces applied to tested display is correspondingly, the application also provides Test method applied to a kind of display interfaces for accompanying test-run a machine, this accompanies test-run a machine to have the second communications network interface.This accompanies examination Machine is the electronic equipment that can generate test signal, can be specifically the electronics such as desktop computer, notebook, tablet computer, mobile phone Equipment.
As shown in fig. 7, a kind of flow chart of the test method embodiment 5 of display interfaces provided by the present application, this method It is realized by following steps:
Step S701: according to data to be tested, test signal is generated;
Wherein, this accompanies test-run a machine according to the data to be tested in the display to be tested, generates corresponding with the data to be tested Test signal.
Wherein, the corresponding information of data to be tested is carried in the test signal.
The specific implementation flow chart of step S701 as shown in Figure 8, comprising:
Step S801: preset address configuration file is analyzed, data address is obtained;
Wherein, this, which is accompanied, is preset with address configuration file in test-run a machine, the configuration file structure is as shown in table 1 below.
1 configuration file structure of table
Address Length (byte)
0x40040 32 bytes
0x40080 32 bytes
Wherein, address in the configuration file structure, the address for each address slice that expression is MVB, i.e. data address.
Wherein, the address in MVB signal can determine according to the data address, and then can be in information in the MVB Hold.
Step S802: according to the data to be tested and preset data content agreement, test information is generated;
Wherein, which is to send the tested display of the test signal accompanied test-run a machine and receive the test signal Agreement between device, specifically, the data content agreement is the meaning that the specific address in the MVB address slice of both sides' agreement represents Deng as 0X40040 represents contact net voltage.
Specifically, the data to be tested be visual information, as in display screen page some put location information or its His parameter information.
Specifically, the data to be tested are converted to machine recognizable test according to the preset data content agreement Information.
Step S803: by the data address and the test signal group packet, test signal is obtained.
Wherein, the test information group packet that will be generated in the data address analyzed in step S801 and step S802, obtains To the test signal for meeting communication network transmission requirement.
Step S702: the test signal is sent to tested display by second communications network interface.
Wherein, this accompanies test-run a machine to have the second communications network interface, and the of second communications network interface and tested display One communications network interface is connected by communication network.
To sum up, the test method of a kind of display interfaces provided in this embodiment, this method are applied to accompany test-run a machine, this accompanies examination Machine has the second communications network interface, this method comprises: generating test signal according to data to be tested;It is logical by described second Communication network interface sends the test signal to tested display.Using this method, by accompanying test-run a machine to generate test signal, and lead to It crosses the communication network for accompanying test-run a machine to be connected with display to be transmitted, so that display receives test letter by communication network Number, then the display can be converted to the test signal for meeting communication network transmission format according to preset data content agreement Meet display MVB bus transformat, so that the test method of the display interfaces is independent of true MVB bus, by In accompanying test-run a machine to generate test signal corresponding with MVB, test process is similar with the display reception signal of MVB format, is not necessarily to Staff finds the corresponding data source header of all variables and carries out the complex operations such as assignment, and detection cycle is short, accuracy compared with It is high.It and can be arbitrary external connection apparatus due to accompanying test-run a machine, communication network can use common network, as long as aobvious Showing has corresponding interface in device, without being modified display device structure, be conducive to promote.
As shown in figure 9, a kind of flow chart of the test method embodiment 6 of display interfaces provided by the present application, this method It is realized by following steps:
Step S901: test starting signal is received;
Wherein, the test starting signal is generated according to user in the start-up operation accompanied in test-run a machine.
Start-up operation key is preset in test-run a machine specifically, accompanying, user generates test and open in the start-up operation button operation Dynamic signal.
It should be noted that the test starting signal in the present embodiment is that user is accompanying test-run a machine operation to generate, but does not limit It can also be to be generated after the ready signal for receiving tested display transmission according to the ready signal in specific implementation in this.
Step S902: test starting order is generated according to the test starting signal;
Wherein, which is the signal locally generated, meets the call format for accompanying test-run a machine local.
Wherein, which is the tested identifiable order of display, and the test starting order meets Communication network transmission call format.
Specifically, being generated matched with communication network transmission call format according to the test starting signal that local reception is arrived Test starting order.
Step S903: the test starting order is sent to tested display by second communications network interface;
Wherein, this accompanies normal connection communication network between test-run a machine and tested display, this accompanies test-run a machine to connect by second network Mouth connection communication network.
Specifically, the test starting order accompanies test-run a machine by the tested display by this and accompanies the communication network between test-run a machine It is sent to the tested display.
The test starting order enters test pattern for controlling tested display so that the tested display by with this First communications network interface of the communication network cooperation for accompanying test-run a machine connected receives test signal, and no longer grasps to MVB interface Make, realizes tested display by normal operating conditions and be switched to test mode.
Step S904: according to data to be tested, test signal is generated;
Step S905: the test signal is sent to tested display by second communications network interface.
Wherein, step S904-905 is consistent with the step S701-702 in embodiment 5, and this embodiment is not repeated.
To sum up, in the test method for present embodiments providing a kind of display interfaces, this generates and surveys according to data to be tested Before trial signal, further includes: receive test starting signal, the test starting signal accompanies opening in test-run a machine described according to user Dynamic operation generates;Test starting order is generated according to the test starting signal;The test starting order is passed through described the Two communications network interfaces are sent to tested display.The test starting order enters test pattern for controlling tested display, It realizes control tested display and test mode is switched to by normal operating conditions.
As shown in Figure 10, the flow chart of the test method embodiment 7 of a kind of display interfaces provided by the present application, this method It is realized by following steps:
Step S1001: according to data to be tested, test signal is generated;
Step S1002: the test signal is sent to tested display by second communications network interface;
Wherein, step S1001-1002 is consistent with the step S701-702 in embodiment 5, and this embodiment is not repeated.
Step S1003: test stop signal is received;
Wherein, the test stop signal is generated according to user in the start-up operation accompanied in test-run a machine.
Key is stopped operation specifically, accompanying and being preset in test-run a machine, user stops operation button operation at this, generates test and stops Stop signal.
It should be noted that the test stop signal in the present embodiment is that user is accompanying test-run a machine operation to generate, but does not limit It can also be to be generated after the fault-signal for receiving tested display transmission according to the fault-signal in specific implementation in this.
Step S1004: test is generated according to the test stop signal and is ceased and desisted order;
Wherein, which is the signal locally generated, meets the call format for accompanying test-run a machine local.
Wherein, which ceases and desist order to be tested the identifiable order of display, and the test is ceased and desisted order and met Communication network transmission call format.
Specifically, being generated matched with communication network transmission call format according to the test stop signal that local reception is arrived Test is ceased and desisted order.
Step S1005: the test is ceased and desisted order, tested display is sent to by second communications network interface.
Wherein, this accompanies normal connection communication network between test-run a machine and tested display, this accompanies test-run a machine to connect by second network Mouth connection communication network.
Test-run a machine is accompanied by the tested display by this and accompanies the communication network between test-run a machine specifically, the test is ceased and desisted order It is sent to the tested display.
The test, which is ceased and desisted order, to be exited test pattern for controlling tested display and enters operating mode, so that this is tested aobvious Show that device receives test signal by the first communications network interface cooperated with the communication network for accompanying test-run a machine to be connected, continues to MVB Interface is operated, and is realized tested display by test mode and is switched to normal operating conditions.
To sum up, it in the test method for present embodiments providing a kind of display interfaces, is connect by second communication network After mouthful sending the test signal to tested display, further includes: receive and test stop signal, the test stop signal according to It is generated according to user in the start-up operation accompanied in test-run a machine;Test is generated according to the test stop signal to cease and desist order;By institute It states test and ceases and desist order and tested display is sent to by second communications network interface.The test is ceased and desisted order for controlling Tested display exits test pattern and enters operating mode, and shape can be worked normally by realizing tested display by test mode switching The process of state ensure that the test process is controllable.
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.The device provided for embodiment For, since it is corresponding with the method that embodiment provides, so being described relatively simple, related place is said referring to method part It is bright.
To the above description of provided embodiment, enable those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and principle provided in this article and features of novelty phase one The widest scope of cause.

Claims (9)

1. a kind of test method of display interfaces, which is characterized in that the method is applied to tested display, described tested aobvious Show that device has double-unit traction controller interface and the first communications network interface, this method comprises:
Test signal is received by first communications network interface, the test signal is by accompanying test-run a machine to generate and send;
According to preset transformation rule, the test signal resolution is converted into MVB format;
Test signal according to MVB format tests the tested display interface;
Wherein, described according to preset transformation rule, the test signal resolution is converted into MVB format and is specifically included:
The test signal is unpacked;
According to the MVB data format and preset data content agreement, obtained data information will be unpacked and be converted to MVB lattice Formula, the data content agreement are only defined initial address, and the data content agreement is pre-set at described tested aobvious Show in device, or is sent in the tested display by test signal carrying.
2. the method according to claim 1, wherein before reception test signal, further includes:
Test starting order is received, the test starting order is by accompanying test-run a machine to generate and send;
According to the test starting order, controls the tested display and enter test pattern.
3. according to the method described in claim 2, being communicated it is characterized in that, being preset in the tested display with described first Corresponding first storage region of network interface, it is described according to the test starting order, it controls the tested display and enters survey Die trial formula includes:
According to the test starting order, determine that the communications network interface is receiver port;
It determines first area, the signal received by first communications network interface is stored to the first area.
4. the method according to claim 1, wherein being tested described in test signal test according to MVB format aobvious After showing device, further includes:
Test is received to cease and desist order;
It ceases and desist order according to the test, controls the tested display and enter operating mode, pass through the MVB interface net Close the MVB signal that module GWM is sent.
5. according to the method described in claim 4, it is characterized in that, being preset in the tested display and the MVB interface Corresponding second storage region, it is described to cease and desist order according to the test, it controls the tested display and enters operating mode packet It includes:
It ceases and desist order according to the test, determines that the MVB interface is receiver port;
Determine the second storage region, by by the MVB interface to signal store to second storage region.
6. a kind of test method of display interfaces, which is characterized in that the method is applied to accompany test-run a machine, described that test-run a machine is accompanied to have Second communications network interface, this method comprises:
According to data to be tested, test signal is generated;
The test signal is sent to tested display, so that the tested display pair by second communications network interface The test signal is handled as follows:
According to preset transformation rule, the test signal resolution is converted into MVB format;
Test signal according to MVB format tests the tested display interface;
Wherein, described according to preset transformation rule, the test signal resolution is converted into MVB format and is specifically included:
The test signal is unpacked;
According to the MVB data format and preset data content agreement, obtained data information will be unpacked and be converted to MVB lattice Formula, the data content agreement are only defined initial address, and the data content agreement is pre-set at described tested aobvious Show in device, or is sent in the tested display by test signal carrying.
7. according to the method described in claim 6, generating test signal includes: it is characterized in that, described according to data to be tested
Preset address configuration file is analyzed, data address is obtained;
According to the data to be tested and preset data content agreement, test information is generated;
By the data address and the test signal group packet, test signal is obtained.
8. according to the method described in claim 6, it is characterized in that, described according to data to be tested, before generating test signal, Further include:
Test starting signal is received, the test starting signal is generated according to user in the start-up operation accompanied in test-run a machine;
Test starting order is generated according to the test starting signal;
The test starting order is sent to tested display by second communications network interface.
9. according to the method described in claim 6, it is characterized in that, sending the test by second communications network interface After signal to tested display, further includes:
Test stop signal is received, the test stop signal is generated according to user in the start-up operation accompanied in test-run a machine;
Test is generated according to the test stop signal to cease and desist order;
The test is ceased and desisted order, tested display is sent to by second communications network interface.
CN201410455386.5A 2014-09-09 2014-09-09 A kind of test method of display interfaces Active CN104158913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410455386.5A CN104158913B (en) 2014-09-09 2014-09-09 A kind of test method of display interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410455386.5A CN104158913B (en) 2014-09-09 2014-09-09 A kind of test method of display interfaces

Publications (2)

Publication Number Publication Date
CN104158913A CN104158913A (en) 2014-11-19
CN104158913B true CN104158913B (en) 2019-03-12

Family

ID=51884318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410455386.5A Active CN104158913B (en) 2014-09-09 2014-09-09 A kind of test method of display interfaces

Country Status (1)

Country Link
CN (1) CN104158913B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104925097A (en) * 2015-07-03 2015-09-23 南车株洲电力机车研究所有限公司 Train display communication test system and method
CN105302115B (en) * 2015-11-05 2018-04-10 株洲南车时代电气股份有限公司 Train network application layer control software automated testing method
CN112249088B (en) * 2019-07-22 2022-09-09 中车株洲电力机车研究所有限公司 Method for mutual diagnosis and data synchronization of double-display system, double-display system and train
CN112061176A (en) * 2020-09-18 2020-12-11 株洲中车时代电气股份有限公司 Remote control method for train display

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2814425Y (en) * 2005-09-01 2006-09-06 比亚迪股份有限公司 Liquid crystal display device module testing system
CN1889494A (en) * 2006-06-26 2007-01-03 株洲南车时代电气股份有限公司 Multi-bus automobile communication control module based on TCN
CN102564776A (en) * 2010-12-21 2012-07-11 中国北车集团大连机车研究所有限公司 Test system for engine driver display unit
CN104700756A (en) * 2013-12-10 2015-06-10 北车大连电力牵引研发中心有限公司 Display screen communication testing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2814425Y (en) * 2005-09-01 2006-09-06 比亚迪股份有限公司 Liquid crystal display device module testing system
CN1889494A (en) * 2006-06-26 2007-01-03 株洲南车时代电气股份有限公司 Multi-bus automobile communication control module based on TCN
CN102564776A (en) * 2010-12-21 2012-07-11 中国北车集团大连机车研究所有限公司 Test system for engine driver display unit
CN104700756A (en) * 2013-12-10 2015-06-10 北车大连电力牵引研发中心有限公司 Display screen communication testing device

Also Published As

Publication number Publication date
CN104158913A (en) 2014-11-19

Similar Documents

Publication Publication Date Title
CN104158913B (en) A kind of test method of display interfaces
CN109788461A (en) Bluetooth dual mode data communication means and device
CN109495870A (en) The method and apparatus of bluetooth test
CN105302750A (en) Interface function configuration method and electronic equipment
CN104053164A (en) Internet-of-things gateway testing system and method
CN108564776A (en) Equipment debugging system, apparatus debugging method and computer storage media
CN102347810B (en) Centralized test system and method of machine room
US20180011467A1 (en) Plc control data generation device, plc control data generation method, and plc control data generation program
CN104092661B (en) The communication means and device of virtual machine serial ports
CN104144212B (en) A kind of virtual desktop image transfer method, apparatus and system
CN103338258A (en) Conference audio equipment management and control method based on cloud technology
CN104536884A (en) Code testing method and device
CN106576106A (en) Method, apparatus and system for exchanging sensor information with middleware
US20160329029A1 (en) Apparatus and method for integrating a smart mobile device and a touch device
CN105744046B (en) A kind of information processing method and electronic equipment
CN107423187A (en) A kind of screen monitor method, apparatus and system
CN101114962A (en) Device and method for exhibiting establishment and termination course of TCP protocol
CN103853473B (en) Information transferring method, device and electronic equipment
CN104360749A (en) Method and device for inputting information through mobile terminal device
CN105578352B (en) A kind of control method that speaker is restarted, device and mobile terminal, speaker and system
CN106372017B (en) A kind of embedded device and serial ports receive-transmit system
CN106484577A (en) AccessPort device and method
CN105553895A (en) Powered device in ethernet, and signal attenuation compensation method and apparatus
CN106161750A (en) A kind of information processing method and electronic equipment
CN205158346U (en) Network scanner

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: The age of 412001 in Hunan Province, Zhuzhou Shifeng District Road No. 169

Patentee after: ZHUZHOU CRRC TIMES ELECTRIC Co.,Ltd.

Address before: The age of 412001 in Hunan Province, Zhuzhou Shifeng District Road No. 169

Patentee before: ZHUZH CSR TIMES ELECTRIC Co.,Ltd.

CP01 Change in the name or title of a patent holder