CN104063322A - Test method and device based on channel switch - Google Patents

Test method and device based on channel switch Download PDF

Info

Publication number
CN104063322A
CN104063322A CN201410310315.6A CN201410310315A CN104063322A CN 104063322 A CN104063322 A CN 104063322A CN 201410310315 A CN201410310315 A CN 201410310315A CN 104063322 A CN104063322 A CN 104063322A
Authority
CN
China
Prior art keywords
test
signal
signalling channel
index
success
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410310315.6A
Other languages
Chinese (zh)
Inventor
耿佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201410310315.6A priority Critical patent/CN104063322A/en
Publication of CN104063322A publication Critical patent/CN104063322A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a test method and a test device based on channel switch, solves the technical problems that since the manual work requirement is high and the operation is complicated, the operation errors are caused and the efficiency is greatly reduced, and avoids the technical problems that since different test codes are added for different board cards and signal channels, the software development period is prolonged, the software maintenance cost is increased, and the universality is lower. The method comprises the steps that S1, a test script corresponding to a signal channel is loaded, a signal channel is switched, and the test script comprises a test signal; S2, whether the switch is successful is judged according to an identifier of the collected test signal, if yes, a step S3 is executed; S3, an index of the collected test signal is tested under the signal channel.

Description

A kind of method of testing and device switching based on passage
Technical field
The present invention relates to technical field of automation, relate in particular to a kind of method of testing and device switching based on passage.
Background technology
In field of embedded technology, whole software embeds and the last integrated board out of circuit cable need to carry out to it job specification test of each side, the overall package that the final batch production of ability enters electronic product.For example, for TV board, need to be by all signals of TV, as multi-media signal carries out whether whole tests meet the demands etc.
Existing board measuring technology, conventionally be divided into two kinds, the one, manual testing, need artificial plug signal, then carry out manual detection for each signalling channel, the 2nd, utilize software automatic test, first need to increase software test code, by sending communications command (remote control, serial ports etc.), be switched to different signalling channels, after dependent instruction sends successfully, host computer carries out this lane testing.
Yet, the above-mentioned board measuring technology of mentioning, not only manual request is high for the former, and complicated operation, easily causes misoperation, simultaneously, efficiency reduces widely, and the latter need to add different test codes for different signalling channels, and software development cycle is increased, software maintenance cost increases, thereby causes versatility lower.
Summary of the invention
The embodiment of the present invention provides a kind of method of testing and device switching based on passage, solved because manual request is high, and complicated operation, the misoperation causing, and the technical matters that reduces widely of efficiency, and avoided owing to adding different test codes for different boards and signalling channel, software development cycle is increased, software maintenance cost increases, thereby causes the technical matters that versatility is lower.
A kind of method of testing of switching based on passage that the embodiment of the present invention provides, comprising:
S1: load the test script corresponding with signalling channel, and be switched to described signalling channel, described test script includes test signal;
S2: judge whether handover success according to the identifier of the described test signal collecting, if so, perform step S3;
S3: under described signalling channel, the index of the described test signal collecting is tested.
Alternatively,
Described step S1 comprises:
Load the test script corresponding with signalling channel, and be switched to described signalling channel;
Control the described signal generator output described test signal consistent with described test script.
Alternatively,
Described step S2 comprises:
Whether the similarity of the image of described test signal that collects of judgement and the image RGB of preset signal within the scope of first threshold, if so, performs step S3;
And/or
Whether the RGB distance of the image of the described test signal that judgement collects is not more than Second Threshold with the image RGB distance of preset signal, if so, performs step S3.
Alternatively,
Described step S2 comprises:
Whether whether the OCR identifier of the described test signal that judgement collects consistent with the character of preset signal, if so, performs step S3.
Alternatively,
Described step S3 comprises:
In the described signalling channel index of described test signal and the consistent number of success of preset desired value collecting that judge, whether meet preset number of success, if so, described test signal test success;
And/or
In the described signalling channel index of described test signal and the consistent frequency of failure of preset desired value collecting that judge, whether be not more than the preset frequency of failure, if so, described test signal test success.
A kind of proving installation switching based on passage providing in the embodiment of the present invention, comprising:
Control module, for loading the test script corresponding with signalling channel, and is switched to described signalling channel, and described test script includes test signal;
Lane testing module, judges whether handover success for the identifier according to the described test signal that collects, if so, trigger pip index test module;
Signal index test module, for testing the index of the described test signal collecting under described signalling channel.
Alternatively,
Described control module comprises:
Loading/switching submodule, for loading the test script corresponding with signalling channel, and is switched to described signalling channel;
Submodule is controlled in output, for controlling the described signal generator output described test signal consistent with described test script.
Alternatively,
Described lane testing module specifically comprises:
First gathers submodule, for gathering the image of described test signal;
The first judgement submodule, for the similarity of image RGB that judges the described image that collects and preset signal whether within the scope of first threshold, if so, trigger pip index test module;
And/or
The second judgement submodule, for judging whether the RGB distance of the described image collecting and the image RGB of preset signal distance are not more than Second Threshold, if so, trigger pip index test module.
Alternatively,
Described lane testing module specifically comprises:
Second gathers submodule, for gathering the OCR identifier of described test signal;
The 3rd judgement submodule, whether whether consistent with the character of preset signal for judging the described OCR identifier collecting, if so, trigger pip index test module.
Alternatively,
Described signal index test module specifically comprises:
The 3rd gathers submodule, for gather the index of described test signal under described signalling channel;
The first test submodule, for judging whether the described index collecting meets preset number of success with the consistent number of success of preset desired value, if so, described test signal test success;
And/or
The second test submodule, for judging whether the described index collecting is not more than the preset frequency of failure with the consistent frequency of failure of preset desired value, if so, described test signal test success.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
The embodiment of the present invention provides a kind of method of testing and device switching based on passage, and wherein, method comprises: S1: load the test script corresponding with signalling channel, and be switched to signalling channel, test script includes test signal; S2: judge whether handover success according to the identifier of the test signal collecting, if so, perform step S3; S3: under signalling channel, the index of the test signal collecting is tested.In the present embodiment, by loading the pre-stored good test script corresponding with signalling channel, and be switched to signalling channel, just can judge whether handover success of different signalling channels according to the identifier of the different test signal collecting, again each index of this signal under different signalling channels is tested, not only solved because manual request is high, and complicated operation, the misoperation causing, and the technical matters that reduces widely of efficiency, and avoided owing to adding different test codes for different boards and signalling channel, software development cycle is increased, software maintenance cost increases, thereby cause the technical matters that versatility is lower.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of an embodiment of a kind of method of testing of switching based on passage that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of another embodiment of a kind of method of testing of switching based on passage that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of another embodiment of a kind of method of testing of switching based on passage that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of another embodiment of a kind of method of testing of switching based on passage that Fig. 4 provides for the embodiment of the present invention;
The structural representation of an embodiment of a kind of proving installation switching based on passage that Fig. 5 provides for the embodiment of the present invention;
The structural representation of another embodiment of a kind of proving installation switching based on passage that Fig. 6 provides for the embodiment of the present invention;
The structural representation of another embodiment of a kind of proving installation switching based on passage that Fig. 7 provides for the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of method of testing and device switching based on passage, solved because manual request is high, and complicated operation, the misoperation causing, and the technical matters that reduces widely of efficiency, and avoided owing to adding different test codes for different boards and signalling channel, software development cycle is increased, software maintenance cost increases, thereby causes the technical matters that versatility is lower.
LVDS, Low Voltage Differential Signaling, is a kind of technology of Low Voltage Differential Signaling interface.
CVBS, i.e. video aberration input interface.
HDMI, HDMI (High Definition Multimedia Interface) (English: High Definition Multimedia Interface, HDMI) be a kind of digitized video/audio interface technology, comprising CEC, (ConsumerElectronics Control), a kind of communication protocol being based upon on HDMI, ARC, i.e. audio return function.
VGA (Video Graphics Array) is Video Graphics Array.
DVI (Digital Visual Interface), i.e. digital visual interface.
OCR (Optical Character Recognition, optical character identification) refer to that electronic equipment (for example scanner or digital camera) checks the character of printing on paper, by detecting its shape of dark, bright mode decision, then with character identifying method, shape is translated into the process of computword.
RGB, it is a kind of color standard, by variation and their stacks each other of red (R), green (G), blue (B) three Color Channels are obtained to color miscellaneous, RGB is the color that represents three passages of red, green, blue, this standard almost comprised mankind eyesights can perception all colours, be to use at present one of the widest color system.
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiment, but not whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, an embodiment of a kind of method of testing of switching based on passage that the embodiment of the present invention provides comprises:
S1: load the test script corresponding with signalling channel, and be switched to signalling channel;
In the present embodiment, when need to be to the integrated board out of built-in field, for example, when TV board carries out integrated testability, first, need to power to board, simultaneously, load the test script corresponding with signalling channel, and be switched to signalling channel, it should be noted that, the test script of aforementioned loading can be a plurality of, the aforementioned signalling channel being switched to can be to be the corresponding signalling channel of one of them test script in a plurality of test scripts of opening, be understandable that, except the signalling channel that this is switched to, the corresponding signalling channel of other test script is in closed condition.
Be understandable that, aforesaid test script includes test signal, the HDMI signal of multi-media signal for example, and VGA signal, DVI signals etc. specifically do not limit herein.
S2: judge whether handover success according to the identifier of the test signal collecting, if so, perform step S3, if not, perform step the switching of the signalling channel in S1;
When loading the test script corresponding with signalling channel, and after being switched to signalling channel, need to judge whether handover success according to the identifier of the test signal collecting, if so, perform step S3, if not, perform step the switching of the signalling channel in S1, be understandable that, again the switch step of executive signal passage, should be noted that, aforesaid collecting test signal can be to gather by LVDS and/or CVBS.
It should be noted that, the identifier of aforesaid test signal can be the identifier arranging in the fixed position of the corresponding image of exporting of signal in advance.
Be understandable that, according to the identifier of the test signal collecting, judge whether that the detailed process of handover success, by being described in detail, just repeats no more herein in follow-up embodiment.
S3: under signalling channel, the index of the test signal collecting is tested.
In the present embodiment, after the identifier judgement handover success of the test signal collecting, under signalling channel, the index of the test signal collecting is tested, be understandable that, the index test of aforesaid test signal can be for example under HDMI signalling channel, the index parameter of the CEC function of test HDMI signal, and/or the index parameter of ARC function, or under VGA signalling channel, the index parameter all over the screen of test VGA signal pattern etc. specifically do not limit herein.
It should be noted that, the index of aforesaid test signal is tested, and can also be to collecting the voltage under current signalling channel, sound, the indexs such as communication protocol are further tested, and determine that the index of awaiting board card under this signal meets the requirements, and specifically do not limit herein.
In the present embodiment, by loading the pre-stored good test script corresponding with signalling channel, and be switched to signalling channel, just can judge whether handover success of different signalling channels according to the identifier of the different test signal collecting, again each index of this signal under different signalling channels is tested, not only solved because manual request is high, and complicated operation, institute causes obtaining misoperation, and the technical matters that reduces widely of efficiency, and avoided owing to adding different test codes for different signalling channels, software development cycle is increased, software maintenance cost increases, thereby cause the technical matters that versatility is lower.
The process that is the method for testing to switching based on passage is above described in detail, to the identifier of the test signal collecting be judged whether to the process of handover success is described in detail below, in actual applications, the process that judges whether handover success has multiple, describes respectively below.
One, RGB similarity;
Refer to Fig. 2, another embodiment of a kind of method of testing of switching based on passage that the embodiment of the present invention provides comprises:
201, the loading test script corresponding with signalling channel, and be switched to signalling channel;
In the present embodiment, when need to be to the integrated board out of built-in field, for example, when TV board carries out integrated testability, first, need to power to board, simultaneously, load the test script corresponding with signalling channel, and be switched to signalling channel, it should be noted that, the test script of aforementioned loading can be a plurality of, the aforementioned signalling channel being switched to can be that the corresponding signalling channel of one of them test script in a plurality of test scripts is opening, except this signalling channel being switched to, the corresponding signalling channel of other test script is in closed condition.
Be understandable that, aforesaid test script includes test signal, the HDMI signal of multi-media signal for example, and VGA signal, DVI signals etc. specifically do not limit herein.
202, the control signal generator output test signal consistent with test script;
When loading the test script corresponding with signalling channel, and after being switched to signalling channel, need the control signal generator output test signal consistent with test script.
203, the similarity of the image of test signal that collects of judgement and the image RGB of preset signal, whether within the scope of first threshold, if so, performs step 204, if not, performs step the switching of the signalling channel in 201;
After control signal generator is exported the test signal consistent with test script, need the similarity of the image of test signal that judgement collects and the image RGB of preset signal whether within the scope of first threshold, if, perform step 204, if not, perform step the switching of the signalling channel in 201, be understandable that, again the switch step of executive signal passage.
It should be noted that, the image of aforesaid test signal can be in advance at the corresponding image of exporting of signal, be understandable that, the contrast of the image of aforesaid image preset signal comprises the color lump identifier of specific region, the shape matching of ad-hoc location, the comparison of full figure, for example, a certain fixed bit on the signal pattern of the test signal output collecting is equipped with the corresponding identifier of this test signal, for example there is blue color lump at the middle part of the HDMI signal pattern of output, the image rgb pixel of the standard of the rgb pixel of this blueness color lump and pre-stored HDMI signal is carried out to the similarity contrast of the rgb pixel of blue color lump, or will include the rgb pixel of whole figure of this blueness color lump and the image rgb pixel of the standard of pre-stored HDMI signal carries out the contrast of similarity, if similarity is in 90% to 100% scope, perform step 204.
Should be noted that, aforesaid collecting test signal can be to gather by LVDS and/or CVBS.
204, in signalling channel, judge that and whether the consistent number of success of preset desired value meets preset number of success to the index of test signal collecting and/or whether the frequency of failure is not more than the preset frequency of failure, if, perform step 205, if not, test result is unsuccessful;
In the present embodiment, the similarity of the image of test signal that collects of judgement and the image RGB of preset signal within the scope of first threshold after, under the aforesaid signalling channel being switched to, whether the index of the test signal collecting is met to preset number of success with the consistent number of success of preset desired value and/or whether the frequency of failure is not more than the preset frequency of failure, if, perform step 205, if not, test result is unsuccessful.
Be understandable that, under the signalling channel being switched to, whether the index of the test signal collecting and the consistent number of success of preset desired value being met to preset number of success can be for example under HDMI signalling channel, repeatedly test the index parameter of the CEC function of HDMI signal, and/or the index parameter of ARC function, or under VGA signalling channel, repeatedly test the index parameter all over the screen of VGA signal pattern etc., index parameter with the CEC function of preset HDMI signal, and/or the index parameter of ARC function, or whether the consistent number of success of the standard index values such as index parameter all over the screen of preset VGA signal pattern meets preset number of success, twice number of success for example, or double successful number of times etc., whether the frequency of failure is not more than the preset frequency of failure, such as 30 frequency of failures etc., specifically do not limit herein, if, perform step 205, if not, test result is unsuccessful.
205, test signal test success;
After the index of the test signal collecting being met to preset number of success with the consistent number of success of preset desired value under the signalling channel being switched to, board is for each function and the index test success of this test signal.
It should be noted that, the index of aforesaid test signal is tested, and can also be to collecting the voltage under current signalling channel, sound, the indexs such as communication protocol are further tested, and determine that the index of awaiting board card under this signal meets the requirements, and specifically do not limit herein.
In the present embodiment, by loading the pre-stored good test script corresponding with signalling channel, and be switched to signalling channel, just can judge that the similarity of the image of the test signal collecting and the image RGB of preset signal is whether within the scope of first threshold, to determine whether handover success of different signalling channels, again each index of this signal under different signalling channels is tested, and when test number of success/frequency of failure and preset number of success/preset frequency of failure contrast, after satisfying condition, the test signal of board success, not only solved because manual request is high, and complicated operation, the misoperation causing, and the technical matters that reduces widely of efficiency, and avoided owing to adding different test codes for different signalling channels, software development cycle is increased, software maintenance cost increases, thereby cause the technical matters that versatility is lower, and each index of this signal under different signalling channels is tested, and the design when test number of success/frequency of failure and preset number of success/preset frequency of failure contrast, not flase drop and accuracy under repeatedly testing have further been guaranteed.
Two, RGB distance;
Refer to Fig. 3, another embodiment of a kind of method of testing of switching based on passage that the embodiment of the present invention provides comprises:
301, the loading test script corresponding with signalling channel, and be switched to signalling channel;
In the present embodiment, when need to be to the integrated board out of built-in field, for example, when TV board carries out integrated testability, first, need to power to board, simultaneously, load the test script corresponding with signalling channel, and be switched to signalling channel, it should be noted that, the test script of aforementioned loading can be a plurality of, the aforementioned signalling channel being switched to can be that the corresponding signalling channel of one of them test script in a plurality of test scripts is opening, except this signalling channel being switched to, the corresponding signalling channel of other test script is in closed condition.
Be understandable that, aforesaid test script includes test signal, the HDMI signal of multi-media signal for example, and VGA signal, DVI signals etc. specifically do not limit herein.
302, the control signal generator output test signal consistent with test script;
When loading the test script corresponding with signalling channel, and after being switched to signalling channel, need the control signal generator output test signal consistent with test script.
Whether the RGB distance of the image of the test signal that 303, judgement collects is not more than Second Threshold with the image RGB distance of preset signal, if so, performs step 304, if not, performs step the switching of the signalling channel in 301;
After control signal generator is exported the test signal consistent with test script, need to judge whether the RGB distance of image of the test signal collecting and the image RGB distance of preset signal are not more than Second Threshold, if, perform step 304, if not, perform step the switching of the signalling channel in 301, be understandable that, again the switch step of executive signal passage.
It should be noted that, the image of aforesaid test signal can be in advance at the corresponding image of exporting of signal, be understandable that, the contrast of the image of aforesaid image preset signal comprises the color lump identifier of specific region, the shape matching of ad-hoc location, the comparison of full figure, for example, a certain fixed bit on the signal pattern of the test signal output collecting is equipped with the corresponding identifier of this test signal, for example there is blue color lump at the middle part of the HDMI signal pattern of output, by the RGB distance of this blueness color lump, for example the rgb pixel of blue color lump is that the 00255 image rgb pixel that includes blue color lump with the standard of pre-stored HDMI signal is 00245, according to Predistribution Algorithm, as the computing method of standard deviation, carry out obtaining of RGB distance, if contrast is not more than Second Threshold, perform step 304, if not, perform step the switching of the signalling channel in 301.
Should be noted that, aforesaid collecting test signal can be to gather by LVDS and/or CVBS.
304, in signalling channel, judge that and whether the consistent number of success of preset desired value meets preset number of success to the index of test signal collecting and/or whether the frequency of failure is not more than the preset frequency of failure, if, perform step 305, if not, test result is unsuccessful;
In the present embodiment, after the RGB distance of the image of the test signal that judgement collects is not more than Second Threshold with the image RGB distance of preset signal, under the aforesaid signalling channel being switched to, whether the index of the test signal collecting is met to preset number of success with the consistent number of success of preset desired value, if, perform step 305, if not, test result is unsuccessful.
Be understandable that, under the signalling channel being switched to, whether the index of the test signal collecting and the consistent number of success of preset desired value being met to preset number of success can be for example under HDMI signalling channel, repeatedly test the index parameter of the CEC function of HDMI signal, and/or the index parameter of ARC function, or under VGA signalling channel, repeatedly test the index parameter all over the screen of VGA signal pattern etc., index parameter with the CEC function of preset HDMI signal, and/or the index parameter of ARC function, or whether the consistent number of success of the standard index values such as index parameter all over the screen of preset VGA signal pattern meets preset number of success, twice number of success for example, or double successful number of times etc., whether the frequency of failure is not more than the preset frequency of failure, such as 30 frequency of failures etc., specifically do not limit herein, if, perform step 305, if not, test result is unsuccessful.
305, test signal test success;
After the index of the test signal collecting being met to preset number of success with the consistent number of success of preset desired value under the signalling channel being switched to, board is for each function and the index test success of this test signal.
It should be noted that, the index of aforesaid test signal is tested, and can also be to collecting the voltage under current signalling channel, sound, the indexs such as communication protocol are further tested, and determine that the index of awaiting board card under this signal meets the requirements, and specifically do not limit herein.
In the present embodiment, by loading the pre-stored good test script corresponding with signalling channel, and be switched to signalling channel, the RGB distance of image and the image RGB distance of preset signal that just can judge the test signal collecting are not more than Second Threshold, to determine whether handover success of different signalling channels, again each index of this signal under different signalling channels is tested, and when test number of success/frequency of failure and preset number of success/preset frequency of failure contrast, after satisfying condition, the test signal of board success, not only solved because manual request is high, and complicated operation, institute causes obtaining misoperation, and the technical matters that reduces widely of efficiency, and avoided owing to adding different test codes for different signalling channels, software development cycle is increased, software maintenance cost increases, thereby cause the technical matters that versatility is lower, and each index of this signal under different signalling channels is tested, and the design when test number of success/frequency of failure and preset number of success/preset frequency of failure contrast, not flase drop and accuracy under repeatedly testing have further been guaranteed.
Three, OCR character;
Refer to Fig. 4, another embodiment of a kind of method of testing of switching based on passage that the embodiment of the present invention provides comprises:
401, the loading test script corresponding with signalling channel, and be switched to signalling channel;
In the present embodiment, when need to be to the integrated board out of built-in field, for example, when TV board carries out integrated testability, first, need to power to board, simultaneously, load the test script corresponding with signalling channel, and be switched to signalling channel, it should be noted that, the test script of aforementioned loading can be a plurality of, the aforementioned signalling channel being switched to can be that the corresponding signalling channel of one of them test script in a plurality of test scripts is opening, except this signalling channel being switched to, the corresponding signalling channel of other test script is in closed condition.
Be understandable that, aforesaid test script includes test signal, the HDMI signal of multi-media signal for example, and VGA signal, DVI signals etc. specifically do not limit herein.
402, the control signal generator output test signal consistent with test script;
When loading the test script corresponding with signalling channel, and after being switched to signalling channel, need the control signal generator output test signal consistent with test script.
Whether whether the OCR identifier of the test signal that 403, judgement collects consistent with the character of preset signal, if so, performs step 404, if not, performs step the switching of the signalling channel in 401;
After control signal generator is exported the test signal consistent with test script, need to judge that whether whether the OCR identifier of the test signal collecting consistent with the character of preset signal, if, perform step 404, if not, perform step the switching of the signalling channel in 401, be understandable that, again the switch step of executive signal passage.
It should be noted that, the OCR identifier of aforesaid test signal can be the OCR identifier arranging in the fixed position of the corresponding image of exporting of signal in advance, for example, a certain fixed bit on the signal pattern of the test signal output collecting is equipped with the corresponding OCR identifier of this test signal, for example there is " HDMI " character at the middle part of the HDMI signal pattern of output, " HDMI " character and the standard of pre-stored HDMI signal include corresponding OCR identifier for example " HDMI " character contrast whether two characters are consistent, if, perform step 404, if not, perform step the switching of the signalling channel in 401.
Should be noted that, aforesaid collecting test signal can be to gather by LVDS and/or CVBS.
404, in signalling channel, judge that and whether the consistent number of success of preset desired value meets preset number of success to the index of test signal collecting and/or whether the frequency of failure is not more than the preset frequency of failure, if, perform step 405, if not, test result is unsuccessful;
In the present embodiment, after whether the OCR identifier of the test signal that collects of judgement is consistent with the character of preset signal, under the aforesaid signalling channel being switched to, whether the index of the test signal collecting is met to preset number of success with the consistent number of success of preset desired value, if, perform step 405, if not, test result is unsuccessful.
Be understandable that, under the signalling channel being switched to, whether the index of the test signal collecting and the consistent number of success of preset desired value being met to preset number of success can be for example under HDMI signalling channel, repeatedly test the index parameter of the CEC function of HDMI signal, and/or the index parameter of ARC function, or under VGA signalling channel, repeatedly test the index parameter all over the screen of VGA signal pattern etc., index parameter with the CEC function of preset HDMI signal, and/or the index parameter of ARC function, or whether the consistent number of success of the standard index values such as index parameter all over the screen of preset VGA signal pattern meets preset number of success, twice number of success for example, or double successful number of times etc., whether the frequency of failure is not more than the preset frequency of failure, such as 30 frequency of failures etc., specifically do not limit herein, if, perform step 405, if not, test result is unsuccessful.
405, test signal test success;
After the index of the test signal collecting being met to preset number of success with the consistent number of success of preset desired value under the signalling channel being switched to, board is for each function and the index test success of this test signal.
It should be noted that, the index of aforesaid test signal is tested, and can also be to collecting the voltage under current signalling channel, sound, the indexs such as communication protocol are further tested, and determine that the index of awaiting board card under this signal meets the requirements, and specifically do not limit herein.
In the present embodiment, by loading the pre-stored good test script corresponding with signalling channel, and be switched to signalling channel, whether the OCR identifier that just can judge the test signal collecting is consistent with the character of preset signal, to determine whether handover success of different signalling channels, again each index of this signal under different signalling channels is tested, and when test number of success/frequency of failure and preset number of success/preset frequency of failure contrast, after satisfying condition, the test signal of board success, not only solved because manual request is high, and complicated operation, institute causes obtaining misoperation, and the technical matters that reduces widely of efficiency, and avoided owing to adding different test codes for different signalling channels, software development cycle is increased, software maintenance cost increases, thereby cause the technical matters that versatility is lower, and each index of this signal under different signalling channels is tested, and the design when test number of success/frequency of failure and preset number of success/preset frequency of failure contrast, not flase drop and accuracy under repeatedly testing have further been guaranteed.
Refer to Fig. 5, an embodiment of a kind of proving installation switching based on passage that the embodiment of the present invention provides comprises:
Control module 501, for loading the test script corresponding with signalling channel, and is switched to signalling channel, and test script includes test signal;
Lane testing module 502, judges whether handover success for the identifier according to the test signal that collects, if so, trigger pip index test module 503;
Signal index test module 503, for testing the index of the test signal collecting under signalling channel.
In the present embodiment, by control module 501, load the pre-stored good test script corresponding with signalling channel, and be switched to signalling channel, lane testing module 502 just can judge whether handover success of different signalling channels according to the identifier of the different test signal collecting, signal index test module 503 is tested each index of this signal under different signalling channels again, not only solved because manual request is high, and complicated operation, institute causes obtaining misoperation, and the technical matters that reduces widely of efficiency, and avoided owing to adding different test codes for different signalling channels, software development cycle is increased, software maintenance cost increases, thereby cause the technical matters that versatility is lower.
Each module that is the proving installation to switching based on passage is above described in detail, by gathering submodule and the first/bis-to first of lane testing module, judge that submodule is described in detail below, refer to Fig. 6, another embodiment of a kind of proving installation switching based on passage that the embodiment of the present invention provides comprises:
Control module 601, for loading the test script corresponding with signalling channel, and is switched to signalling channel, and test script includes test signal;
Wherein, control module 601 specifically comprises:
Loading/switching submodule 6011, for loading the test script corresponding with signalling channel, and is switched to signalling channel;
Submodule 6012 is controlled in output, for the control signal generator output test signal consistent with test script.
Lane testing module 602, judges whether handover success for the identifier according to the test signal that collects, if so, trigger pip index test module 603;
Wherein, lane testing module 602 specifically comprises:
First gathers submodule 6021, for the image of collecting test signal;
The first judgement submodule 6022, for the similarity of image RGB that judges the image that collects and preset signal whether within the scope of first threshold, if so, trigger pip index test module;
And/or
The second judgement submodule 6023, for judging whether the RGB distance of the image collecting and the image RGB of preset signal distance are not more than Second Threshold, if so, trigger pip index test module.
Signal index test module 603, for testing the index of the test signal collecting under signalling channel.
Wherein, signal index test module 603 specifically comprises:
The 3rd gathers submodule 6031, for the index of collecting test signal under signalling channel;
The first test submodule 6032, for judging whether the index collecting meets preset number of success with the consistent number of success of preset desired value, if so, test signal test success;
And/or
The second test submodule 6033, for judging whether the index collecting is not more than the preset frequency of failure with the consistent frequency of failure of preset desired value, if so, test signal test success.
In the present embodiment, by loading/switching submodule 6011, load the pre-stored good test script corresponding with signalling channel, and be switched to signalling channel, first judges that similarity that submodule 6022 just can judge the image of the test signal collecting and the image RGB of preset signal is whether within the scope of first threshold, or the RGB distance of image and the image RGB distance of preset signal of the second test signal of collecting of judgement submodule 6023 judgement are not more than Second Threshold, to determine whether handover success of different signalling channels, the first test submodule 6032 and/or the second test submodule 6033 are tested each index of this signal under different signalling channels again, and when test number of success/frequency of failure and preset number of success/preset frequency of failure contrast, after satisfying condition, the test signal of board success, not only solved because manual request is high, and complicated operation, institute causes obtaining misoperation, and the technical matters that reduces widely of efficiency, and avoided owing to adding different test codes for different signalling channels, software development cycle is increased, software maintenance cost increases, thereby cause the technical matters that versatility is lower, and each index of this signal under different signalling channels is tested, and the design when test number of success/frequency of failure and preset number of success/preset frequency of failure contrast, not flase drop and accuracy under repeatedly testing have further been guaranteed.
To first of lane testing module, to gather submodule and the first/bis-to judge that submodule is described in detail above, to be described in detail the second collection submodule and the 3rd judgement submodule below, refer to Fig. 7, another embodiment of a kind of proving installation switching based on passage that the embodiment of the present invention provides comprises:
Control module 701, for loading the test script corresponding with signalling channel, and is switched to signalling channel, and test script includes test signal;
Wherein, control module 701 specifically comprises:
Loading/switching submodule 7011, for loading the test script corresponding with signalling channel, and is switched to signalling channel;
Submodule 7012 is controlled in output, for the control signal generator output test signal consistent with test script.
Lane testing module 702, judges whether handover success for the identifier according to the test signal that collects, if so, trigger pip index test module 703;
Wherein, lane testing module 702 specifically comprises:
Second gathers submodule 7021, for the OCR identifier of collecting test signal;
The 3rd judgement submodule 7022, whether whether consistent with the character of preset signal for judging the OCR identifier collecting, if so, trigger pip index test module.
Signal index test module 703, for testing the index of the test signal collecting under signalling channel.
Wherein, signal index test module 703 specifically comprises:
The 3rd gathers submodule 7031, for the index of collecting test signal under signalling channel;
The first test submodule 7032, for judging whether the index collecting meets preset number of success with the consistent number of success of preset desired value, if so, test signal test success;
And/or
The second test submodule 7033, for judging whether the index collecting is not more than the preset frequency of failure with the consistent frequency of failure of preset desired value, if so, test signal test success.
In the present embodiment, by loading/switching submodule 7011, load the pre-stored good test script corresponding with signalling channel, and be switched to signalling channel, the 3rd judges that submodule 7022 just can judge that whether the OCR identifier collecting is consistent with the character of preset signal, to determine whether handover success of different signalling channels, the first test submodule 7032 and/or the second test submodule 7033 are tested each index of this signal under different signalling channels again, and when test number of success/frequency of failure and preset number of success/preset frequency of failure contrast, after satisfying condition, the test signal of board success, not only solved because manual request is high, and complicated operation, institute causes obtaining misoperation, and the technical matters that reduces widely of efficiency, and avoided owing to adding different test codes for different signalling channels, software development cycle is increased, software maintenance cost increases, thereby cause the technical matters that versatility is lower, and each index of this signal under different signalling channels is tested, and the design when test number of success/frequency of failure and preset number of success/preset frequency of failure contrast, not flase drop and accuracy under repeatedly testing have further been guaranteed.
Those skilled in the art can be well understood to, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
The above, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a method of testing of switching based on passage, is characterized in that, comprising:
S1: load the test script corresponding with signalling channel, and be switched to described signalling channel, described test script includes test signal;
S2: judge whether handover success according to the identifier of the described test signal collecting, if so, perform step S3;
S3: under described signalling channel, the index of the described test signal collecting is tested.
2. method of testing according to claim 1, is characterized in that, described step S1 comprises:
Load the test script corresponding with signalling channel, and be switched to described signalling channel;
Control the described signal generator output described test signal consistent with described test script.
3. method of testing according to claim 1, is characterized in that, described step S2 comprises:
Whether the similarity of the image of described test signal that collects of judgement and the image RGB of preset signal within the scope of first threshold, if so, performs step S3;
And/or
Whether the RGB distance of the image of the described test signal that judgement collects is not more than Second Threshold with the image RGB distance of preset signal, if so, performs step S3.
4. method of testing according to claim 1, is characterized in that, described step S2 comprises:
Whether whether the OCR identifier of the described test signal that judgement collects consistent with the character of preset signal, if so, performs step S3.
5. method of testing according to claim 1, is characterized in that, described step S3 comprises:
In the described signalling channel index of described test signal and the consistent number of success of preset desired value collecting that judge, whether meet preset number of success, if so, described test signal test success;
And/or
In the described signalling channel index of described test signal and the consistent frequency of failure of preset desired value collecting that judge, whether be not more than the preset frequency of failure, if so, described test signal test success.
6. the proving installation switching based on passage, is characterized in that, comprising:
Control module, for loading the test script corresponding with signalling channel, and is switched to described signalling channel, and described test script includes test signal;
Lane testing module, judges whether handover success for the identifier according to the described test signal that collects, if so, trigger pip index test module;
Signal index test module, for testing the index of the described test signal collecting under described signalling channel.
7. the proving installation switching based on passage according to claim 6, is characterized in that, described control module comprises:
Loading/switching submodule, for loading the test script corresponding with signalling channel, and is switched to described signalling channel;
Submodule is controlled in output, for controlling the described signal generator output described test signal consistent with described test script.
8. the proving installation switching based on passage according to claim 6, is characterized in that, described lane testing module specifically comprises:
First gathers submodule, for gathering the image of described test signal;
The first judgement submodule, for the similarity of image RGB that judges the described image that collects and preset signal whether within the scope of first threshold, if so, trigger pip index test module;
And/or
The second judgement submodule, for judging whether the RGB distance of the described image collecting and the image RGB of preset signal distance are not more than Second Threshold, if so, trigger pip index test module.
9. the proving installation switching based on passage according to claim 6, is characterized in that, described lane testing module specifically comprises:
Second gathers submodule, for gathering the OCR identifier of described test signal;
The 3rd judgement submodule, whether whether consistent with the character of preset signal for judging the described OCR identifier collecting, if so, trigger pip index test module.
10. the proving installation switching based on passage according to claim 6, is characterized in that, described signal index test module specifically comprises:
The 3rd gathers submodule, for gather the index of described test signal under described signalling channel;
The first test submodule, for judging whether the described index collecting meets preset number of success with the consistent number of success of preset desired value, if so, described test signal test success;
And/or
The second test submodule, for judging whether the described index collecting is not more than the preset frequency of failure with the consistent frequency of failure of preset desired value, if so, described test signal test success.
CN201410310315.6A 2014-06-30 2014-06-30 Test method and device based on channel switch Pending CN104063322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410310315.6A CN104063322A (en) 2014-06-30 2014-06-30 Test method and device based on channel switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410310315.6A CN104063322A (en) 2014-06-30 2014-06-30 Test method and device based on channel switch

Publications (1)

Publication Number Publication Date
CN104063322A true CN104063322A (en) 2014-09-24

Family

ID=51551044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410310315.6A Pending CN104063322A (en) 2014-06-30 2014-06-30 Test method and device based on channel switch

Country Status (1)

Country Link
CN (1) CN104063322A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105676109A (en) * 2016-01-08 2016-06-15 青岛海信电器股份有限公司 Main board testing method and device
CN106872813A (en) * 2015-12-10 2017-06-20 中国船舶工业系统工程研究院 A kind of test equipment universal signal method of testing
CN106899846A (en) * 2017-02-23 2017-06-27 广州视源电子科技股份有限公司 Board method of testing, apparatus and system
CN110543331A (en) * 2018-05-29 2019-12-06 南京大学 test program plagiarism detection method based on test code segment similarity
CN110896473A (en) * 2019-07-12 2020-03-20 研祥智能科技股份有限公司 Detection method and system for display interface switching function
CN111404779A (en) * 2020-03-12 2020-07-10 深圳市吉祥腾达科技有限公司 Method, device and system for testing role switching of router nodes
CN113270058A (en) * 2021-07-21 2021-08-17 广州朗国电子科技股份有限公司 Fault detection method, medium, product and system for spliced screen

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106872813A (en) * 2015-12-10 2017-06-20 中国船舶工业系统工程研究院 A kind of test equipment universal signal method of testing
CN105676109A (en) * 2016-01-08 2016-06-15 青岛海信电器股份有限公司 Main board testing method and device
CN105676109B (en) * 2016-01-08 2019-08-02 青岛海信电器股份有限公司 A kind of motherboard test method and equipment
CN106899846A (en) * 2017-02-23 2017-06-27 广州视源电子科技股份有限公司 Board method of testing, apparatus and system
CN110543331A (en) * 2018-05-29 2019-12-06 南京大学 test program plagiarism detection method based on test code segment similarity
CN110543331B (en) * 2018-05-29 2021-07-06 南京大学 Test program plagiarism detection method based on test code segment similarity
CN110896473A (en) * 2019-07-12 2020-03-20 研祥智能科技股份有限公司 Detection method and system for display interface switching function
CN111404779A (en) * 2020-03-12 2020-07-10 深圳市吉祥腾达科技有限公司 Method, device and system for testing role switching of router nodes
CN113270058A (en) * 2021-07-21 2021-08-17 广州朗国电子科技股份有限公司 Fault detection method, medium, product and system for spliced screen
CN113270058B (en) * 2021-07-21 2021-12-03 广州朗国电子科技股份有限公司 Fault detection method, medium, product and system for spliced screen
WO2023000928A1 (en) * 2021-07-21 2023-01-26 广州朗国电子科技股份有限公司 Fault detection method for tiled screen, and medium, product and system

Similar Documents

Publication Publication Date Title
CN104063322A (en) Test method and device based on channel switch
US9953552B2 (en) LED display unit board, LED display screen control card and LED display screen system
CN107103867B (en) Display control card detection method and device, detection system and production line
CN102087336B (en) Method and system for detecting video/audio signal circuit board
CN103067736B (en) Automatic test system based on character recognition
CN106887257B (en) Multi-smart-card testing system and method
CN102316356B (en) Device and method for testing HDMI (high-definition multimedia interface) function of television (TV)
CN105467295A (en) Test system of electronic chip, method and apparatus thereof
CN103929676A (en) Method for testing function of smart television board card in remote-control mode and smart television board card
CN107452305A (en) A kind of current sensing means detected for screen, system and method
CN108196721B (en) Touch display device and firmware setting method thereof
CN105163113B (en) HDMI test fixture and method of testing
KR102545072B1 (en) System including a plurality of display apparatus and control method thereof
CN105208379A (en) Method and equipment for detecting video port
CN205334925U (en) Display panel and display device
CN105676109A (en) Main board testing method and device
CN103035186B (en) Display device and driving method thereof
CN101639508B (en) Detection circuit and display
CN105975299B (en) Channel switching device and burning data detection, data burning method and system
CN104133175A (en) Key testing method
CN104332129A (en) Spliced unit data returning method, spliced unit and spliced displayer
CN110632420B (en) RTC (real time clock) module testing method and device and multi-module automatic testing method and device for Android equipment production
CN101299315B (en) Test system for display panel
CN103957381A (en) Data transmission device, method and system
KR101552826B1 (en) Test system for fail of display pane

Legal Events

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

Application publication date: 20140924