CN109803139A - XPON terminal and set-top box Power Cycle test macro and test method - Google Patents
XPON terminal and set-top box Power Cycle test macro and test method Download PDFInfo
- Publication number
- CN109803139A CN109803139A CN201910117361.7A CN201910117361A CN109803139A CN 109803139 A CN109803139 A CN 109803139A CN 201910117361 A CN201910117361 A CN 201910117361A CN 109803139 A CN109803139 A CN 109803139A
- Authority
- CN
- China
- Prior art keywords
- power cycle
- test
- dut
- ping
- xpon
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Maintenance And Management Of Digital Transmission (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a kind of xPON terminals and set-top box Power Cycle test macro and test method, it includes test PC, single-chip microcontroller and automatic switch plate;The test PC is built-in with primary control program, is built-in with SCM program in the single-chip microcontroller;The SCM program realizes that control relay carries out the on-off of AC or DC, and then treats test equipment DUT and carry out switching the problem that scents a hidden danger;The primary control program tested in PC carries out multiple control to the automatic switch plate by communication serial port, realize that control automatic switch plate carries out switching on and shutting down, in addition LAN mouth and WLAN mouthfuls of progress ping packets and statistics and record to the DUT of connection, and control operation are connected to the serial ports of equipment DUT to be tested to record the starting information of DUT.It is tested the present invention has the advantages that controlling two kinds of power on/off modes by SCM program and primary control program and treating test equipment DUT, there is the feature high-efficient, test is accurate and testing cost is low compared to manual testing.
Description
Technical field
The present invention relates to a kind of test macro and test method more particularly to xPON terminals and set-top box Power Cycle
Test macro and test method.
Background technique
Power Cycle test is the starting validity of common consumer electronics product and the means of testing of stability.
It is tested repeatedly during power on/off continuous to product for the starting initialization procedure for being easiest to break down, to
It was found that the design hidden danger unstable because of system caused by the reasons such as electrifying timing sequence is inaccurate, malreduction.
Traditional power cycle test is tested using manually switching on and shutting down, time-consuming and laborious, is tested low with efficiency of research and development
Under.Or tested using automatic switching tool and cannot monitor or record test process, effective number can not be provided to research and development
According to progress case study.
Summary of the invention
The purpose of the present invention is to overcome the shortcomings of the existing technology, provides xPON terminal and set-top box Power Cycle
Test macro and test method solve deficiency existing for existing test method.
The purpose of the present invention is achieved through the following technical solutions: xPON terminal and set-top box Power Cycle test system
System, it includes test PC, single-chip microcontroller and automatic switch plate;The test PC is built-in with primary control program, in the single-chip microcontroller
It is built-in with SCM program;The SCM program realizes that control relay carries out the on-off of AC or DC, and then to be measured
Examination equipment DUT carries out switching the problem that scents a hidden danger;The primary control program in PC is tested by communication serial port to the automatic switch
Plate carries out multiple control, realizes that control automatic switch plate carries out switching on and shutting down, LAN mouth and WLAN mouthfuls of progress to the DUT of connection
Ping packet is simultaneously counted and is recorded, and in addition control operation is connected to the serial ports of equipment DUT to be tested to record the starting letter of DUT
Breath.
In the single-chip microcontroller on-off mode of program setting include the n times set time switching on and shutting down and m random time
Switching on and shutting down.
XPON terminal and set-top box Power Cycle test method, the method the following steps are included:
S1, input t0_ limit and t0_end;
S2, first time Power Cycle loop test is completed;
S3, second of Power Cycle loop test is completed;
S4, process data and ping packet loss are counted, test terminates.
The step S2 completes first time Power Cycle loop test, and specific step is as follows:
S21, DUT are powered on 1 second, power-off time t1, DUT powers on 20 seconds beginning ping;
S22, judge t0Whether _ end is zero;
S23, record starting time t0, 1000 byte packet of ping 10, and record packet receiving number;
S24, DUT are powered off 1 second, and judge whether first time Power Cycle loop test is completed.
The step S3 completes second of Power Cycle loop test, and specific step is as follows:
S31, DUT power on t3Second, it powers off 1 second, DUT powers on 20 seconds beginning ping;
S32, judge t0Whether _ end is zero;
S33, record starting time t0, 1000 byte packet of ping 10, and record packet receiving number;
S34, DUT are powered off 1 second, and judge whether second of Power Cycle loop test is completed.
The step S22 judges t0Whether _ end is zero and the step S32 judges t0_ end whether be in zero if
t0_ end is zero and judges whether ping connects, if t0_ end, which is not zero, judges t0Whether ping connects before _ end.
Whether the step S24 judges first time Power Cycle loop test in completing if first time Power
The completion of Cycle loop test then starts second of Power Cycle loop test, if first time Power Cycle circulation is surveyed
Examination is without completing then return step S21;During the step S34 judges whether second of Power Cycle loop test is completed
If second of Power Cycle loop test is completed, step S4 is carried out;If second of Power Cycle loop test
It does not complete, then return step S31.
Described judges whether ping connects, and record starting time t is carried out if connecting0, 1000 byte packet 10 of ping
It is a, and record packet receiving number;Continue to judge if being not switched on;Described zero judges t0Whether ping connects before _ end, if
It connects, then carries out record starting time t0, 1000 byte packet of ping 10, and packet receiving number is recorded, if be not switched on, remember
It records a NG not pass through, and DUT is powered off 1 second.
The present invention controls two kinds of power on/off modes by SCM program and primary control program and treats test equipment DUT progress
Test has the feature high-efficient, test is accurate and testing cost is low compared to manual testing.
Detailed description of the invention
Fig. 1 is the block diagram of present system;
Fig. 2 is the flow chart of the method for the present invention.
Specific embodiment
The present invention will be further described with reference to the accompanying drawing, but protection scope of the present invention is not limited to following institute
It states.
As shown in Figure 1, xPON terminal and set-top box Power Cycle test macro, it include test PC, single-chip microcontroller and from
Dynamic switchboard;The test PC is built-in with primary control program, is built-in with SCM program in the single-chip microcontroller;The monolithic
Machine program realizes that control relay carries out the on-off of AC or DC, and then treats test equipment DUT and carry out switching to scent a hidden danger asking
Topic point;The primary control program tested in PC carries out multiple control to the automatic switch plate by communication serial port, realizes that control is automatic
Switchboard carries out switching on and shutting down, and the LAN mouth and WLAN mouthfuls of progress ping packets to the DUT of connection are simultaneously counted and recorded, and control
In addition operation is connected to the serial ports of equipment DUT to be tested to record the starting information of DUT.
Preferably, communication serial port includes RS232 and RS485 etc. serial ports.
In the single-chip microcontroller on-off mode of program setting include the n times set time switching on and shutting down and m random time
Switching on and shutting down.
As shown in Fig. 2, xPON terminal and set-top box Power Cycle test method, the method the following steps are included:
S1, input t0_ limit and t0_end;
S2, first time Power Cycle loop test is completed;
S3, second of Power Cycle loop test is completed;
S4, process data and ping packet loss are counted, test terminates.
The step S2 completes first time Power Cycle loop test, and specific step is as follows:
S21, DUT are powered on 1 second, power-off time t1, DUT powers on 20 seconds beginning ping;
S22, judge t0Whether _ end is zero;
S23, record starting time t0, 1000 byte packet of ping 10, and record packet receiving number;
S24, DUT are powered off 1 second, and judge whether first time Power Cycle loop test is completed.
The step S3 completes second of Power Cycle loop test, and specific step is as follows:
S31, DUT power on t3Second, it powers off 1 second, DUT powers on 20 seconds beginning ping;
S32, judge t0Whether _ end is zero;
S33, record starting time t0, 1000 byte packet of ping 10, and record packet receiving number;
S34, DUT are powered off 1 second, and judge whether second of Power Cycle loop test is completed.
The step S22 judges t0Whether _ end is zero and the step S32 judges t0_ end whether be in zero if
t0_ end is zero and judges whether ping connects, if t0_ end, which is not zero, judges t0Whether ping connects before _ end.
Whether the step S24 judges first time Power Cycle loop test in completing if first time Power
The completion of Cycle loop test then starts second of Power Cycle loop test, if first time Power Cycle circulation is surveyed
Examination is without completing then return step S21;During the step S34 judges whether second of Power Cycle loop test is completed
If second of Power Cycle loop test is completed, step S4 is carried out;If second of Power Cycle loop test
It does not complete, then return step S31.
Described judges whether ping connects, and record starting time t is carried out if connecting0, 1000 byte packet 10 of ping
It is a, and record packet receiving number;Continue to judge if being not switched on;Described zero judges t0Whether ping connects before _ end, if
It connects, then carries out record starting time t0, 1000 byte packet of ping 10, and packet receiving number is recorded, if be not switched on, remember
It records a NG not pass through, and DUT is powered off 1 second.
The above is only a preferred embodiment of the present invention, it should be understood that the present invention is not limited to described herein
Form should not be regarded as an exclusion of other examples, and can be used for other combinations, modifications, and environments, and can be at this
In the text contemplated scope, modifications can be made through the above teachings or related fields of technology or knowledge.And those skilled in the art institute into
Capable modifications and changes do not depart from the spirit and scope of the present invention, then all should be in the protection scope of appended claims of the present invention
It is interior.
Claims (8)
1.xPON terminal and set-top box Power Cycle test macro, it is characterised in that: it include test PC, single-chip microcontroller and from
Dynamic switchboard;The test PC is built-in with primary control program, is built-in with SCM program in the single-chip microcontroller;The monolithic
Machine program realizes that control relay carries out the on-off of AC or DC, and then treats test equipment DUT and carry out switching to scent a hidden danger asking
Topic point;The primary control program tested in PC carries out multiple control to the automatic switch plate by communication serial port, realizes that control is automatic
Switchboard carries out switching on and shutting down, and the LAN mouth and WLAN mouthfuls of progress ping packets to the DUT of connection are simultaneously counted and recorded, and control
In addition operation is connected to the serial ports of equipment DUT to be tested to record the starting information of DUT.
2. xPON terminal according to claim 1 and set-top box Power Cycle test macro, it is characterised in that: described
Single-chip microcontroller in the on-off mode of program setting include the switching on and shutting down of n times set time and the switching on and shutting down of m random time.
3.xPON terminal and set-top box Power Cycle test method, it is characterised in that: the method the following steps are included:
S1, input t0_ limit and t0_end;
S2, first time Power Cycle loop test is completed;
S3, second of Power Cycle loop test is completed;
S4, process data and ping packet loss are counted, test terminates.
4. xPON terminal according to claim 3 and set-top box Power Cycle test method, it is characterised in that: described
Step S2 complete first time Power Cycle loop test specific step is as follows:
S21, DUT are powered on 1 second, power-off time t1, DUT powers on 20 seconds beginning ping;
S22, judge t0Whether _ end is zero;
S23, record starting time t0, 1000 byte packet of ping 10, and record packet receiving number;
S24, DUT are powered off 1 second, and judge whether first time Power Cycle loop test is completed.
5. xPON terminal according to claim 4 and set-top box Power Cycle test method, it is characterised in that: described
Step S3 complete second of Power Cycle loop test specific step is as follows:
S31, DUT power on t3Second, it powers off 1 second, DUT powers on 20 seconds beginning ping;
S32, judge t0Whether _ end is zero;
S33, record starting time t0, 1000 byte packet of ping 10, and record packet receiving number;
S34, DUT are powered off 1 second, and judge whether second of Power Cycle loop test is completed.
6. xPON terminal according to claim 5 and set-top box Power Cycle, it is characterised in that: the step S22
Judge t0Whether _ end is zero and the step S32 judges t0Whether _ end is in zero if t0_ end is zero and judges that ping is
No connection, if t0_ end, which is not zero, judges t0Whether ping connects before _ end.
7. xPON terminal according to claim 5 and set-top box Power Cycle test method, it is characterised in that: described
Step S24 judge first time Power Cycle loop test in whether completing if first time Power Cycle loop test
Completion then starts second of Power Cycle loop test, returns if if first time Power, Cycle loop test is not completed
Return step S21;Whether the step S34 judges second of Power Cycle loop test in completing if second of Power
Cycle loop test is completed, then carries out step S4;If second of Power Cycle loop test is not completed, step is returned
Rapid S31.
8. xPON terminal according to claim 6 and set-top box Power Cycle test method, it is characterised in that: described
Judge whether ping connects, if connect if carry out record starting time t0, 1000 byte packet of ping 10, and record receipts
Packet number;Continue to judge if being not switched on;Described zero judges t0Whether ping connects before _ end, if it is switched on, then carrying out
Record starting time t0, 1000 byte packet of ping 10, and packet receiving number is recorded, if be not switched on, NG of record is not logical
It crosses, and DUT is powered off 1 second.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910013403 | 2019-01-07 | ||
CN2019100134032 | 2019-01-07 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109803139A true CN109803139A (en) | 2019-05-24 |
CN109803139B CN109803139B (en) | 2022-03-11 |
Family
ID=66561051
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910117361.7A Active CN109803139B (en) | 2019-01-07 | 2019-02-15 | xPON terminal and set top box Power Cycle test system and test method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109803139B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111314175A (en) * | 2020-02-14 | 2020-06-19 | 西安广和通无线通信有限公司 | Communication device performance testing device, system and method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1877350A (en) * | 2006-04-26 | 2006-12-13 | 深圳创维-Rgb电子有限公司 | Testing method and device for abnormal power-on and power-off of electronic product |
CN102255774A (en) * | 2011-06-28 | 2011-11-23 | 迈普通信技术股份有限公司 | Test system and test method for switch-on and switch-off of communication device as well as fault location method |
CN102540105A (en) * | 2011-12-31 | 2012-07-04 | 曙光信息产业股份有限公司 | Method for testing AC and DC on/off machines |
CN104901848A (en) * | 2015-06-02 | 2015-09-09 | 上海斐讯数据通信技术有限公司 | Automated testing system and method for startup and shutdown of router |
CN106569925A (en) * | 2016-11-15 | 2017-04-19 | 惠州大亚湾华北工控实业有限公司 | Startup and shutdown stability test module and test method thereof |
CN107765119A (en) * | 2017-09-30 | 2018-03-06 | 四川九州电子科技股份有限公司 | A kind of automatic detection machine starts abnormal method |
-
2019
- 2019-02-15 CN CN201910117361.7A patent/CN109803139B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1877350A (en) * | 2006-04-26 | 2006-12-13 | 深圳创维-Rgb电子有限公司 | Testing method and device for abnormal power-on and power-off of electronic product |
CN102255774A (en) * | 2011-06-28 | 2011-11-23 | 迈普通信技术股份有限公司 | Test system and test method for switch-on and switch-off of communication device as well as fault location method |
CN102540105A (en) * | 2011-12-31 | 2012-07-04 | 曙光信息产业股份有限公司 | Method for testing AC and DC on/off machines |
CN104901848A (en) * | 2015-06-02 | 2015-09-09 | 上海斐讯数据通信技术有限公司 | Automated testing system and method for startup and shutdown of router |
CN106569925A (en) * | 2016-11-15 | 2017-04-19 | 惠州大亚湾华北工控实业有限公司 | Startup and shutdown stability test module and test method thereof |
CN107765119A (en) * | 2017-09-30 | 2018-03-06 | 四川九州电子科技股份有限公司 | A kind of automatic detection machine starts abnormal method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111314175A (en) * | 2020-02-14 | 2020-06-19 | 西安广和通无线通信有限公司 | Communication device performance testing device, system and method |
Also Published As
Publication number | Publication date |
---|---|
CN109803139B (en) | 2022-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN204536493U (en) | Intelligent gas meter veneer automatically testing platform | |
CN102255774A (en) | Test system and test method for switch-on and switch-off of communication device as well as fault location method | |
CN103376435B (en) | Coil measurement device and Coil Detector method thereof | |
WO2014134984A1 (en) | Test method and system | |
CN109803139A (en) | XPON terminal and set-top box Power Cycle test macro and test method | |
CN111697690A (en) | Function testing device for power distribution Internet of things low-voltage equipment | |
CN107490735A (en) | A kind of power distribution network terminal automatic test approach and test device | |
CN203396869U (en) | Integrated test equipment | |
CN109858300A (en) | A kind of automation barcode scanning production detection system and its production detection method | |
CN108738059A (en) | WIFI module test method and device | |
CN102393699A (en) | Household electricity intelligent centralized control method and control system and controller | |
CN106534310B (en) | Long-distance intelligent nuclear phase instrument and nuclear-phase method based on GSM | |
CN206878842U (en) | POE equipment test fixtures | |
CN109302331A (en) | A kind of system and method for automatic test storage network switch | |
CN207588113U (en) | Network interface plug-in and pull-off device and network interface insert-pull detection system | |
CN204855728U (en) | Ageing and test state device of fast switch over semiconductor device | |
CN103595132A (en) | Intelligent monitoring system of air conditioners of transformer substation | |
CN116860535A (en) | Automatic testing device, system and method | |
CN203607926U (en) | Intelligent monitoring system of air conditioners of transformer substation | |
CN208873282U (en) | Blue tooth voice automatic testing equipment | |
CN104793083A (en) | Communication unit interchangeability testing system and interchanging method thereof | |
CN104391248A (en) | Automatic test system for mobile power source | |
CN109560980A (en) | A kind of multimachine test method and system based on telnet agreement | |
CN107834311A (en) | Network interface plug-in and pull-off device, network interface insert-pull detection system and method | |
CN101173969A (en) | System, device and method for implementing complete automatic test of MP3 player |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |