Summary of the invention
Embodiment of the present invention technical problem to be solved is, provides a kind of low cost, the method for testing of the Set Top Box easily realized, and overcomes testing cost height and test environment in prior art and builds the large shortcoming of difficulty.
In order to solve the problems of the technologies described above, embodiments provide a kind of set-top box test method broadcasting card based on server, comprising:
Server broadcasts card and sends standby pulse to Set Top Box, controls described Set Top Box and performs standby operation;
Described server broadcasts card and judges that whether set-top box standby is successful, if be judged as YES, send and wakes pulse up to described Set Top Box, controls described Set Top Box and has performed machine operation, otherwise, stop testing;
Whether described server broadcast card judges that described Set Top Box plays machine successful, if be judged as YES, sends standby pulse to described Set Top Box, controls described Set Top Box and perform standby operation, otherwise, stopping test;
Wherein, described standby pulse and wake pulse up and prerecord and broadcast in card in described server.
Wherein, the standby pulse of described transmission, to Set Top Box, controls also to comprise before described Set Top Box performs the step of standby operation:
Whether frequency locking is successful to judge described Set Top Box, specifically comprises the successful message of frequency locking judging whether to listen to described Set Top Box feedback;
When described Set Top Box frequency locking success, perform the standby pulse of described transmission to Set Top Box, control the step that described Set Top Box performs standby operation.
Wherein, described server broadcasts to block and judges the whether successful specifically basis of set-top box standby:
Described server broadcasts the signal that card judges whether the releasing frequency locking receiving described Set Top Box feedback, if yes, then determines the success of described set-top box standby.
Wherein, described server broadcasts to block and judges that described Set Top Box plays the whether successful specifically basis of machine:
Server broadcasts the signal that card judges whether the locking frequency receiving described Set Top Box feedback, and if yes, then described Set Top Box plays machine success.
Wherein, also comprise:
Server broadcasts card and carries out counting and output display count value to number of times that the is standby or machine of rising, judges whether described count value reaches predetermined value, if yes, then stops test, if NO, then continue test.
The embodiment of the present invention additionally provides a kind of server and broadcasts card, comprising:
Sending module, for sending standby pulse to Set Top Box, controlling described Set Top Box and performing standby operation;
First judge module, for judging that whether set-top box standby is successful, if being judged as YES, sending and waking pulse up to described Set Top Box, controls described Set Top Box and has performed machine operation, otherwise, stop testing;
Second judge module, whether successful for judging that described Set Top Box plays machine, if be judged as YES, send standby pulse to described Set Top Box, control described Set Top Box and perform standby operation, otherwise, stop test.
Wherein, also comprise frequency locking and monitor module, for judging whether the successful message of frequency locking listening to described Set Top Box feedback.
Wherein, described first judge module comprises:
Separating frequently judging unit, for whether receiving the signal of the releasing frequency locking of described Set Top Box feedback, if yes, then determining the success of described set-top box standby.
Wherein, described second judge module comprises:
Frequency locking judging unit, for judging whether the signal of the locking frequency receiving described Set Top Box feedback, if yes, then described Set Top Box plays machine success.
Wherein, also comprise:
Counting display module, for carrying out counting and output display count value to number of times that the is standby or machine of rising, judging whether described count value reaches predetermined value, if yes, then stopping test, if NO, then continue test.
The embodiment of the present invention additionally provides a kind of Set Top Box, comprising:
Standby feedback module, after performing standby operation, feeds back standby successful message to described server;
Play machine feedback module, after having performed machine operation, feed back the successful message of machine to described server.
The embodiment of the present invention additionally provides a kind of server, comprises above-mentioned broadcast card.
In addition, the embodiment of the present invention additionally provides a kind of test macro, comprises above-mentioned server and Set Top Box.
Implement the embodiment of the present invention, have following beneficial effect: utilize the hardware resource broadcasting card, script set-top box standby being played machine test is integrated in and broadcasts on card, avoids building of complicated test environment, improves efficiency of research and development of knowing clearly, reduces R&D costs simultaneously.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, be a kind of flow chart broadcasting the set-top box test method of card based on server provided by the invention, comprise:
In S101, broadcast card and send standby pulse to Set Top Box, controller top box performs standby operation.
In S102, broadcast card and judge that whether set-top box standby is successful, if standby success, perform S103, if standby failure, perform S105.
In S103, broadcast card transmission and wake pulse up to Set Top Box.
In S104, whether broadcast card judges that Set Top Box plays machine successful, if the machine of rising success, returns execution S101, if the machine of rising is failed, performs S105.
In S105, stop test.
Implement embodiments of the invention, automatically send standby pulse by the broadcast card in server and wake pulse up and standby machine test is carried out to Set Top Box, reduce building of complicated test environment in test process, make test more simple, reduce testing cost simultaneously.
Please refer to Fig. 2, is a kind of another embodiment flow chart broadcasting the set-top box test method of card based on server.
In S201, broadcast the successful message of frequency locking that card listens to Set Top Box feedback.Herein, the object broadcasting card monitoring Set Top Box frequency locking signal is to determine that Set Top Box and server connect, can proper communication.Set Top Box frequency locking successfully shows can the video flowing that sends over of normal play server end, thus can illustrate that Set Top Box and server can proper communications.After Set Top Box frequency locking, send the successful message of frequency locking immediately to server, the broadcast card of server is in listening state always, once listen to this message, just showing therebetween can proper communication.
In S202, broadcast card and send standby pulse to Set Top Box, controller top box performs standby operation.
Concrete, in advance by standby pulse with wake pulse typing server up and broadcast card, broadcast card transmission standby pulse to Set Top Box, controller top box execution standby operation.
In S203, whether receive the signal of the releasing frequency locking of Set Top Box feedback.
Concrete, broadcast the signal that card judges whether the releasing frequency locking receiving Set Top Box feedback, Set Top Box is removed frequency locking and is shown that Set Top Box enters holding state, if do not receive the signal removing frequency locking, show that Set Top Box performs standby operation failure, turn to and perform S208, stop test.
In S204, broadcast card transmission and wake pulse up to Set Top Box.In S203, the judgement of broadcast card has received the message that set-top box standby successfully feeds back, and show set-top box standby success, now broadcast card transmission one and wake pulse up to Set Top Box, controller top box has performed machine and operated.
In S205, whether receive the signal of the frequency locking frequency of Set Top Box feedback.
Concrete, broadcast the signal that card judges whether the locking frequency receiving Set Top Box feedback, Set Top Box locking frequency shows that Set Top Box plays machine, enter operating state, if do not receive the signal of locking frequency, show that Set Top Box has performed machine operation failure, turn to and perform S208, stop test.
In S206, counting is carried out and output display count value to number of times that the is standby or machine of rising.
Concrete, standby or play the successful number of times of machine and count to Set Top Box success in test process, for the counting how many times standby to success, the every success of Set Top Box is once standby, and counter adds 1, and count value is outputted to display device and show described count value.
In S207, whether count value reaches predetermined value.
Concrete, suppose that predetermined value is set to 500, when the count value of counter is less than 500, returns and perform S201, when the count value of counter equals 500, turn to and perform S208, stop test.
Arrange predetermined value and carry out the flexibility that judgement can increase test, by observing the count value that display device shows, tester, when testing stopping, can determining that whether test is successful, greatly improve the efficiency of test.
Implement embodiments of the invention and can realize the automation that set-top box standby plays machine test, under the prerequisite not increasing additional hardware cost, complete test process by the broadcast card in server, less R&D costs and reduce the difficulty of building of test environment.
Please refer to Fig. 3, is a kind of structural representation of test macro.
This test macro comprises server 1 and Set Top Box 2, and server 1 is connected with Set Top Box 2, and the course of work is as follows:
Server 1 sends standby pulse to Set Top Box 2, Set Top Box 2 receives rear execution standby operation, a standby successful message is sent immediately to server 1 after the standby success of Set Top Box 2, by the standby successful message judging whether to receive Set Top Box 2 feedback, server 1 judges that whether set-top box standby is successful, if receive, then show the standby success of Set Top Box 2, now server 1 sends one immediately and wakes pulse up, otherwise, stop test.After Set Top Box 2 receives and wakes pulse up, feed back one immediately when the machine of rising success and play the successful message of machine to server 1, by the successful message of machine judging whether to receive Set Top Box 2 feedback, server 1 judges whether Set Top Box 2 plays machine success, if receive, then show Set Top Box 2 machine successes, now server can send standby pulse to Set Top Box again, and this is a process repeated, otherwise, stop test.
Performing above-mentioned test is completed by the broadcast card 11 comprised in server 1.
Tester can judge whether to meet test request by the number of times observing Set Top Box 2 standby machines, thus determines test result.
Automatically send standby pulse by the broadcast card in server and wake pulse up and the test of standby machine is carried out to Set Top Box, reduce building of complicated test environment in test process, make test more simple, reduce testing cost simultaneously.
Please refer to Fig. 4, be a kind of structural representation of Set Top Box, this Set Top Box comprises:
Standby feedback module 21, after performing standby operation, feeds back standby successful message to described server.
Server 1 sends standby pulse to Set Top Box 2, controller top box 2 performs standby operation, Set Top Box 2 standby successful time feed back standby successful message by standby feedback module 21 to server 1, the standby successful message that server 1 judges whether to receive standby feedback module 21 feedback is to judge the standby whether success of Set Top Box 2.
Play machine feedback module 22, after having performed machine operation, feed back the message of machine Chen work to described server.
Server 1 is judging the standby success of Set Top Box 2, send out again and wake pulse up to Set Top Box 2, controller top box 2 has performed machine operation, Set Top Box 2 has been passed through machine feedback module 22 when the machine of rising success and has been fed back the successful message of machine to server 1, and server 1 judges whether that the successful message of machine that rises receiving machine feedback module 22 feedback judges that whether Set Top Box 2 machines are successful.
Please refer to Fig. 5, for a kind of server broadcasts the structural representation of card first embodiment, described broadcast card 11 comprises:
Sending module 111, for sending standby pulse to Set Top Box, controlling described Set Top Box and performing standby operation;
Concrete, sending module 111 sends standby pulse to Set Top Box 2, and controller top box 2 performs standby operation.
First judge module 112, for judging that whether set-top box standby is successful, if being judged as YES, sending and waking pulse up to described Set Top Box, controls described Set Top Box and has performed machine operation, otherwise, stop testing;
Concrete, the first judge module 112 judges the whether standby success of Set Top Box 2, if be judged as YES, send and wakes pulse up to Set Top Box 2, and controller top box 2 has performed machine operation, otherwise, stop test.
Second judge module 113, whether successful for judging that described Set Top Box plays machine, if be judged as YES, send standby pulse to described Set Top Box, control described Set Top Box and perform standby operation, otherwise, stop test;
Concrete, the second judge module 113 continues to judge that whether Set Top Box 2 machines are successful, and if yes, then send standby pulse to Set Top Box 2, controller top box 2 performs standby operation, otherwise, stop test.
Implement embodiments of the invention to utilize and broadcast card and automatically send standby pulse and wake pulse up and carry out standby machine test to Set Top Box, reduce building of complicated test environment in test process, make test more simply, reduce testing cost simultaneously.
Please refer to Fig. 6, for a kind of server broadcasts the structural representation of card first embodiment, this server broadcasts card and comprises sending module 111 equally, first judge module 112 and the second judge module 113, in addition, also comprises frequency locking and monitors module 114 and counting display module 115, with reference to Fig. 7, first judge module comprises separates judging unit 1121 frequently, and with reference to Fig. 8, the second judge module 113 comprises frequency locking judging unit 1131.
Frequency locking monitors module 114, for judging whether the successful message of frequency locking listening to described Set Top Box feedback.
Concrete, the object that frequency locking monitoring module 114 monitors Set Top Box frequency locking signal is to determine that Set Top Box 2 and server 1 connect, can proper communication.Set Top Box 2 frequency locking successfully shows can the video flowing that sends over of normal play server 1 end, thus can illustrate that Set Top Box 2 and server 1 can proper communications.After Set Top Box 2 frequency locking, send the successful message of frequency locking immediately and monitor module 114 to frequency locking, frequency locking is monitored module 114 and is in listening state always, once listen to this message, just showing therebetween can proper communication.
Separating frequently judging unit 1121, for whether receiving the signal of the releasing frequency locking of described Set Top Box feedback, if yes, then determining the success of described set-top box standby.
Concrete, solution frequently judging unit 1121 judges whether the signal receiving the releasing frequency locking that Set Top Box 2 is fed back, and Set Top Box 2 is removed frequency locking and shown that Set Top Box 2 enters holding state, separates judging unit 1121 transmission frequently and wakes pulse up to Set Top Box 2; If do not receive the signal removing frequency locking, show that Set Top Box 2 performs standby operation failure, then stop test
Frequency locking judging unit 1131, for judging whether the signal of the locking frequency receiving described Set Top Box feedback, if yes, then described Set Top Box plays machine success.
Concrete, frequency locking judging unit 1131 judges whether the signal receiving the locking frequency that Set Top Box 2 is fed back, and Set Top Box 2 locking frequency shows that Set Top Box 2 plays machine, enters operating state, and frequency locking judging unit 1131 has sent machine pulse to Set Top Box 2; If do not receive the signal of locking frequency, show that Set Top Box 2 has performed machine operation failure, then stop test.
Counting display module 115, for carrying out counting and output display count value to number of times that the is standby or machine of rising, judging whether described count value reaches predetermined value, if yes, then stopping test, if NO, then continue test.
Concrete, test process several display module 115 pairs of Set Top Box 2 success of falling into a trap is standby or play the successful number of times of machine and count, for the counting how many times standby to success, the every success of Set Top Box 2 is once standby, the counter of counting display module 115 adds 1, counts display module 115 simultaneously and count value is outputted to display device and show described count value.
Implement embodiments of the invention and can realize the automation that set-top box standby plays machine test, block built-in module by the broadcast in server and complete test process, less R&D costs and reduce the difficulty of building of test environment.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out pulse relevant by computer program has come, described program can be stored in computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.