CN116074492A - Method, system, equipment and medium for testing infrared function of set top box - Google Patents

Method, system, equipment and medium for testing infrared function of set top box Download PDF

Info

Publication number
CN116074492A
CN116074492A CN202211655001.0A CN202211655001A CN116074492A CN 116074492 A CN116074492 A CN 116074492A CN 202211655001 A CN202211655001 A CN 202211655001A CN 116074492 A CN116074492 A CN 116074492A
Authority
CN
China
Prior art keywords
infrared
top box
set top
upper computer
code value
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
CN202211655001.0A
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.)
Fujian Newland Communication Science Technologies Co ltd
Original Assignee
Fujian Newland Communication Science Technologies 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 Fujian Newland Communication Science Technologies Co ltd filed Critical Fujian Newland Communication Science Technologies Co ltd
Priority to CN202211655001.0A priority Critical patent/CN116074492A/en
Publication of CN116074492A publication Critical patent/CN116074492A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/165Combined use of TCP and UDP protocols; selection criteria therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Optical Communication System (AREA)

Abstract

The invention provides a set top box infrared function test method, a system, equipment and a medium in the technical field of set top box test, wherein the method comprises the following steps: step S10, the upper computer respectively sets a first infrared code value for each testing station, and after connection is established with each set top box, each first infrared code value is respectively sent to the set top box of the corresponding station; step S20, the set top box receives and stores the first infrared code value and feeds back a successful receiving notice to the upper computer; step S30, after receiving a receiving success notice, the upper computer controls each usb infrared module to send infrared signals to the set top boxes of the corresponding stations based on the first infrared code value; s40, the set top box analyzes the received infrared signals to obtain second infrared code values, and verifies the second infrared code values based on the first infrared code values to generate infrared test results and sends the infrared test results to the upper computer; and S50, the upper computer receives and stores each infrared test result. The invention has the advantages that: the efficiency and the quality of the infrared function test of the set top box are greatly improved.

Description

Method, system, equipment and medium for testing infrared function of set top box
Technical Field
The invention relates to the technical field of set top box testing, in particular to a set top box infrared function testing method, a system, equipment and a medium.
Background
After the set top box is produced, a series of tests are required to be carried out on the set top box to leave a factory, namely the factory test is required to be carried out on the set top box, wherein the test comprises an infrared function test, namely whether the set top box can normally receive an infrared code value or not is tested.
Aiming at the test of the infrared function of the set top box, a method for judging whether the infrared function is normal by using a tester to control a remote controller to switch a table is conventionally adopted, but the conventional method has the following defects: the tester controls the remote controller to test, still needs artifical one-to-one record test result, and inefficiency, and when infrared function test is carried out simultaneously to a plurality of stations, the infrared signal of remote controller is disordered and disordered probably appears, and then leads to the fact the influence to the test.
Therefore, how to provide a method, a system, a device and a medium for testing the infrared function of a set top box to realize the efficiency and the quality of testing the infrared function of the set top box of a lifter becomes a technical problem to be solved urgently.
Disclosure of Invention
The invention aims to solve the technical problem of providing a method, a system, equipment and a medium for testing the infrared function of a set top box, and the efficiency and the quality of testing the infrared function of the set top box are realized.
In a first aspect, the present invention provides a method for testing an infrared function of a set top box, including the following steps:
step S10, the upper computer respectively sets a first infrared code value for each testing station, and after connection is established with each set top box, each first infrared code value is respectively sent to the set top box of the corresponding station;
step S20, the set top box receives and stores the first infrared code value and feeds back a successful receiving notice to the upper computer;
step S30, after the upper computer receives the receiving success notice, controlling each usb infrared module to send infrared signals to the set top box of the corresponding station based on the first infrared code value;
s40, the set top box analyzes the received infrared signals to obtain second infrared code values, and verifies the second infrared code values based on the first infrared code values to generate infrared test results and sends the infrared test results to the upper computer;
and S50, the upper computer receives and stores each infrared test result.
Further, the step S10 specifically includes:
the upper computer respectively sets a unique first infrared code value for each test station, establishes connection with each set top box through a network port or a serial port based on a udp protocol or a tcp protocol, and respectively sends each first infrared code value to the set top box of the corresponding station in real time after establishing the connection;
in the step S20, the receiving success notification carries the serial number of the set top box.
Further, the step S40 specifically includes:
the set top box sets a time length threshold, judges whether infrared signals are received in the time length threshold, and if not, generates infrared test results failing to test and sends the infrared test results to the upper computer in real time; if yes, then:
analyzing the received infrared signal to obtain a second infrared code value, judging whether the second infrared code value is consistent with the stored first infrared code value, if so, generating an infrared test result which is successfully tested and sending the infrared test result to an upper computer in real time; if not, generating an infrared test result of test failure and sending the infrared test result to the upper computer in real time.
Further, the step S50 specifically includes:
the upper computer receives the infrared test result, carries out hash calculation after the infrared test result is bound with the test time to obtain a hash value, encrypts the infrared test result bound with the test time and the hash value by using a preset key to obtain encrypted data, and stores the encrypted data in a database of a server in a distributed mode.
In a second aspect, the present invention provides a set-top box infrared function test system, including the following modules:
the first infrared code value sending module is used for respectively setting a first infrared code value for each testing station by the upper computer, and respectively sending each first infrared code value to the set top box of the corresponding station after the connection is established with each set top box;
the first infrared code value storage module is used for receiving and storing the first infrared code value by the set top box and feeding back a successful receiving notice to the upper computer;
the infrared signal sending module is used for controlling each usb infrared module to send infrared signals to the set top box of the corresponding station based on the first infrared code value after the upper computer receives the receiving success notification;
the infrared function testing module is used for analyzing the received infrared signals by the set top box to obtain second infrared code values, checking the second infrared code values based on the first infrared code values, generating infrared testing results and sending the infrared testing results to the upper computer;
and the infrared test result storage module is used for receiving and storing each infrared test result by the upper computer.
Further, the first infrared code value sending module is specifically configured to:
the upper computer respectively sets a unique first infrared code value for each test station, establishes connection with each set top box through a network port or a serial port based on a udp protocol or a tcp protocol, and respectively sends each first infrared code value to the set top box of the corresponding station in real time after establishing the connection;
and in the first infrared code value storage module, the receiving success notification carries the serial number of the set top box.
Further, the infrared function test module is specifically configured to:
the set top box sets a time length threshold, judges whether infrared signals are received in the time length threshold, and if not, generates infrared test results failing to test and sends the infrared test results to the upper computer in real time; if yes, then:
analyzing the received infrared signal to obtain a second infrared code value, judging whether the second infrared code value is consistent with the stored first infrared code value, if so, generating an infrared test result which is successfully tested and sending the infrared test result to an upper computer in real time; if not, generating an infrared test result of test failure and sending the infrared test result to the upper computer in real time.
Further, the infrared test result storage module is specifically configured to:
the upper computer receives the infrared test result, carries out hash calculation after the infrared test result is bound with the test time to obtain a hash value, encrypts the infrared test result bound with the test time and the hash value by using a preset key to obtain encrypted data, and stores the encrypted data in a database of a server in a distributed mode.
In a third aspect, the present invention provides a set-top box infrared function testing device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of the first aspect when executing the program.
In a fourth aspect, the present invention provides a set-top box infrared function test medium having stored thereon a computer program which when executed by a processor implements the method of the first aspect.
One or more technical solutions provided in the embodiments of the present invention at least have the following technical effects or advantages:
1. the upper computer respectively sets a first infrared code value for each test station, each first infrared code value is respectively sent to the set top box of the corresponding station, the set top box receives and stores the first infrared code value, feeds back a successful receipt notification to the upper computer, after the upper computer receives the successful receipt notification, controls each usb infrared module to send an infrared signal to the set top box of the corresponding station based on the first infrared code value, the set top box analyzes the received infrared signal to obtain a second infrared code value, whether the second infrared code value is consistent with the first infrared code value or not is compared to generate an infrared test result and sends the infrared test result to the upper computer, the upper computer receives and automatically stores each infrared test result, namely, controls the usb infrared modules to respectively send infrared signals of different first infrared code values to the set top boxes of different stations through the upper computer, and judges whether the infrared code values received by the set top boxes are matched or not.
2. The infrared test result is bound with the test time, so that the later-stage tracing is facilitated; the hash value is obtained by carrying out hash calculation on the infrared test result of the binding test time, so that the integrity of the infrared test result can be conveniently checked by utilizing the hash value in the later period; encrypting the infrared test result and the hash value of the binding test time through a preset secret key, so as to avoid the infrared test result from being stolen by plaintext; the data security is further improved by distributing the encrypted data to the server, namely by adopting a decentralised storage mode.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
The invention will be further described with reference to examples of embodiments with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for testing an infrared function of a set-top box according to the present invention.
Fig. 2 is a schematic structural diagram of a set-top box infrared function test system according to the present invention.
Fig. 3 is a schematic structural diagram of a set-top box infrared function test device according to the present invention.
Fig. 4 is a schematic structural diagram of a set-top box infrared function test medium according to the present invention.
Detailed Description
According to the method, the system, the equipment and the medium for testing the infrared function of the set top box, the efficiency and the quality of testing the infrared function of the set top box are achieved.
According to the technical scheme in the embodiment of the application, the overall thought is as follows: the usb infrared module is controlled by the upper computer to respectively send infrared signals with different first infrared code values to the set top boxes of different stations, whether the infrared code values received by the set top boxes are matched or not is judged to generate infrared test results, and the infrared test results are automatically stored.
Example 1
The embodiment provides a method for testing the infrared function of a set top box, as shown in fig. 1, comprising the following steps:
step S10, the upper computer respectively sets a first infrared code value for each testing station, and after connection is established with each set top box, each first infrared code value is respectively sent to the set top box of the corresponding station;
step S20, the set top box receives and stores the first infrared code value and feeds back a successful receiving notice to the upper computer;
step S30, after the upper computer receives the receiving success notice, controlling each usb infrared module to send infrared signals to the set top box of the corresponding station based on the first infrared code value; the usb infrared module is driven by an infrared module driving program;
s40, the set top box analyzes the received infrared signals to obtain second infrared code values, and verifies the second infrared code values based on the first infrared code values to generate infrared test results and sends the infrared test results to the upper computer;
and S50, the upper computer receives and stores each infrared test result.
The upper computer respectively sets a first infrared code value for each test station, each first infrared code value is respectively sent to the set top box of the corresponding station, the set top box receives and stores the first infrared code value, feeds back a successful receipt notification to the upper computer, after the upper computer receives the successful receipt notification, controls each usb infrared module to send an infrared signal to the set top box of the corresponding station based on the first infrared code value, the set top box analyzes the received infrared signal to obtain a second infrared code value, whether the second infrared code value is consistent with the first infrared code value or not is compared to generate an infrared test result and sends the infrared test result to the upper computer, the upper computer receives and automatically stores each infrared test result, namely, controls the usb infrared modules to respectively send infrared signals of different first infrared code values to the set top boxes of different stations through the upper computer, and judges whether the infrared code values received by the set top boxes are matched or not.
The step S10 specifically includes:
the upper computer respectively sets a unique first infrared code value for each test station, establishes connection with each set top box through a network port or a serial port based on a udp protocol or a tcp protocol, and respectively sends each first infrared code value to the set top box of the corresponding station in real time after establishing the connection; in the process of infrared function test, the upper computer is in heartbeat connection with the set top box;
in the step S20, the successful receiving informs the serial number and the receiving time of the portable set top box.
The step S40 specifically includes:
the set top box sets a time length threshold, judges whether infrared signals are received in the time length threshold, and if not, generates infrared test results failing to test and sends the infrared test results to the upper computer in real time; if yes, then:
analyzing the received infrared signal to obtain a second infrared code value, judging whether the second infrared code value is consistent with the stored first infrared code value, if so, generating an infrared test result which is successfully tested and sending the infrared test result to an upper computer in real time; if not, generating an infrared test result of test failure and sending the infrared test result to the upper computer in real time.
I.e. the infrared signal is not detected, or the second infrared code value cannot match the first infrared code value, the infrared function test fails.
The step S50 specifically includes:
the upper computer receives the infrared test result, carries out hash calculation after the infrared test result is bound with the test time to obtain a hash value, encrypts the infrared test result bound with the test time and the hash value by using a preset key to obtain encrypted data, and stores the encrypted data in a database of a server in a distributed mode.
The infrared test result is bound with the test time, so that the later-stage tracing is facilitated; the hash value is obtained by carrying out hash calculation on the infrared test result of the binding test time, so that the integrity of the infrared test result can be conveniently checked by utilizing the hash value in the later period; encrypting the infrared test result and the hash value of the binding test time through a preset secret key, so as to avoid the infrared test result from being stolen by plaintext; the data security is further improved by distributing the encrypted data to the server, namely by adopting a decentralised storage mode.
Example two
The embodiment provides a set top box infrared function test system, as shown in fig. 2, including the following modules:
the first infrared code value sending module is used for respectively setting a first infrared code value for each testing station by the upper computer, and respectively sending each first infrared code value to the set top box of the corresponding station after the connection is established with each set top box;
the first infrared code value storage module is used for receiving and storing the first infrared code value by the set top box and feeding back a successful receiving notice to the upper computer;
the infrared signal sending module is used for controlling each usb infrared module to send infrared signals to the set top box of the corresponding station based on the first infrared code value after the upper computer receives the receiving success notification; the usb infrared module is driven by an infrared module driving program;
the infrared function testing module is used for analyzing the received infrared signals by the set top box to obtain second infrared code values, checking the second infrared code values based on the first infrared code values, generating infrared testing results and sending the infrared testing results to the upper computer;
and the infrared test result storage module is used for receiving and storing each infrared test result by the upper computer.
The upper computer respectively sets a first infrared code value for each test station, each first infrared code value is respectively sent to the set top box of the corresponding station, the set top box receives and stores the first infrared code value, feeds back a successful receipt notification to the upper computer, after the upper computer receives the successful receipt notification, controls each usb infrared module to send an infrared signal to the set top box of the corresponding station based on the first infrared code value, the set top box analyzes the received infrared signal to obtain a second infrared code value, whether the second infrared code value is consistent with the first infrared code value or not is compared to generate an infrared test result and sends the infrared test result to the upper computer, the upper computer receives and automatically stores each infrared test result, namely, controls the usb infrared modules to respectively send infrared signals of different first infrared code values to the set top boxes of different stations through the upper computer, and judges whether the infrared code values received by the set top boxes are matched or not.
The first infrared code value sending module is specifically configured to:
the upper computer respectively sets a unique first infrared code value for each test station, establishes connection with each set top box through a network port or a serial port based on a udp protocol or a tcp protocol, and respectively sends each first infrared code value to the set top box of the corresponding station in real time after establishing the connection; in the process of infrared function test, the upper computer is in heartbeat connection with the set top box;
and in the first infrared code value storage module, the receiving success notification carries the serial number and the receiving time of the set top box.
The infrared function test module is specifically used for:
the set top box sets a time length threshold, judges whether infrared signals are received in the time length threshold, and if not, generates infrared test results failing to test and sends the infrared test results to the upper computer in real time; if yes, then:
analyzing the received infrared signal to obtain a second infrared code value, judging whether the second infrared code value is consistent with the stored first infrared code value, if so, generating an infrared test result which is successfully tested and sending the infrared test result to an upper computer in real time; if not, generating an infrared test result of test failure and sending the infrared test result to the upper computer in real time.
I.e. the infrared signal is not detected, or the second infrared code value cannot match the first infrared code value, the infrared function test fails.
The infrared test result storage module is specifically used for:
the upper computer receives the infrared test result, carries out hash calculation after the infrared test result is bound with the test time to obtain a hash value, encrypts the infrared test result bound with the test time and the hash value by using a preset key to obtain encrypted data, and stores the encrypted data in a database of a server in a distributed mode.
The infrared test result is bound with the test time, so that the later-stage tracing is facilitated; the hash value is obtained by carrying out hash calculation on the infrared test result of the binding test time, so that the integrity of the infrared test result can be conveniently checked by utilizing the hash value in the later period; encrypting the infrared test result and the hash value of the binding test time through a preset secret key, so as to avoid the infrared test result from being stolen by plaintext; the data security is further improved by distributing the encrypted data to the server, namely by adopting a decentralised storage mode.
Based on the same inventive concept, the application provides an electronic device embodiment corresponding to the first embodiment, and the details of the third embodiment are described in detail.
Example III
The present embodiment provides a set-top box infrared function testing device, as shown in fig. 3, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the computer program to implement any implementation of the first embodiment.
Since the electronic device described in this embodiment is a device for implementing the method described in the first embodiment of the present application, those skilled in the art will be able to understand the specific implementation of the electronic device and various modifications thereof based on the method described in the first embodiment of the present application, so how the method described in the embodiment of the present application is implemented in this electronic device will not be described in detail herein. The apparatus used to implement the methods of the embodiments of the present application are within the scope of what is intended to be protected by the present application.
Based on the same inventive concept, the application provides a storage medium corresponding to the first embodiment, and the details of the fourth embodiment are described in detail.
Example IV
The present embodiment provides a set-top box infrared function test medium, as shown in fig. 4, on which a computer program is stored, where when the computer program is executed by a processor, any implementation manner of the first embodiment may be implemented.
The technical scheme provided in the embodiment of the application has at least the following technical effects or advantages:
1. the upper computer respectively sets a first infrared code value for each test station, each first infrared code value is respectively sent to the set top box of the corresponding station, the set top box receives and stores the first infrared code value, feeds back a successful receipt notification to the upper computer, after the upper computer receives the successful receipt notification, controls each usb infrared module to send an infrared signal to the set top box of the corresponding station based on the first infrared code value, the set top box analyzes the received infrared signal to obtain a second infrared code value, whether the second infrared code value is consistent with the first infrared code value or not is compared to generate an infrared test result and sends the infrared test result to the upper computer, the upper computer receives and automatically stores each infrared test result, namely, controls the usb infrared modules to respectively send infrared signals of different first infrared code values to the set top boxes of different stations through the upper computer, and judges whether the infrared code values received by the set top boxes are matched or not.
2. The infrared test result is bound with the test time, so that the later-stage tracing is facilitated; the hash value is obtained by carrying out hash calculation on the infrared test result of the binding test time, so that the integrity of the infrared test result can be conveniently checked by utilizing the hash value in the later period; encrypting the infrared test result and the hash value of the binding test time through a preset secret key, so as to avoid the infrared test result from being stolen by plaintext; the data security is further improved by distributing the encrypted data to the server, namely by adopting a decentralised storage mode.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that the specific embodiments described are illustrative only and not intended to limit the scope of the invention, and that equivalent modifications and variations of the invention in light of the spirit of the invention will be covered by the claims of the present invention.

Claims (10)

1. A method for testing the infrared function of a set top box is characterized by comprising the following steps: the method comprises the following steps:
step S10, the upper computer respectively sets a first infrared code value for each testing station, and after connection is established with each set top box, each first infrared code value is respectively sent to the set top box of the corresponding station;
step S20, the set top box receives and stores the first infrared code value and feeds back a successful receiving notice to the upper computer;
step S30, after the upper computer receives the receiving success notice, controlling each usb infrared module to send infrared signals to the set top box of the corresponding station based on the first infrared code value;
s40, the set top box analyzes the received infrared signals to obtain second infrared code values, and verifies the second infrared code values based on the first infrared code values to generate infrared test results and sends the infrared test results to the upper computer;
and S50, the upper computer receives and stores each infrared test result.
2. The method for testing the infrared function of the set top box as claimed in claim 1, wherein the method comprises the following steps: the step S10 specifically includes:
the upper computer respectively sets a unique first infrared code value for each test station, establishes connection with each set top box through a network port or a serial port based on a udp protocol or a tcp protocol, and respectively sends each first infrared code value to the set top box of the corresponding station in real time after establishing the connection;
in the step S20, the receiving success notification carries the serial number of the set top box.
3. The method for testing the infrared function of the set top box as claimed in claim 1, wherein the method comprises the following steps: the step S40 specifically includes:
the set top box sets a time length threshold, judges whether infrared signals are received in the time length threshold, and if not, generates infrared test results failing to test and sends the infrared test results to the upper computer in real time; if yes, then:
analyzing the received infrared signal to obtain a second infrared code value, judging whether the second infrared code value is consistent with the stored first infrared code value, if so, generating an infrared test result which is successfully tested and sending the infrared test result to an upper computer in real time; if not, generating an infrared test result of test failure and sending the infrared test result to the upper computer in real time.
4. The method for testing the infrared function of the set top box as claimed in claim 1, wherein the method comprises the following steps: the step S50 specifically includes:
the upper computer receives the infrared test result, carries out hash calculation after the infrared test result is bound with the test time to obtain a hash value, encrypts the infrared test result bound with the test time and the hash value by using a preset key to obtain encrypted data, and stores the encrypted data in a database of a server in a distributed mode.
5. The infrared function test system of a kind of STB, characterized by that: the device comprises the following modules:
the first infrared code value sending module is used for respectively setting a first infrared code value for each testing station by the upper computer, and respectively sending each first infrared code value to the set top box of the corresponding station after the connection is established with each set top box;
the first infrared code value storage module is used for receiving and storing the first infrared code value by the set top box and feeding back a successful receiving notice to the upper computer;
the infrared signal sending module is used for controlling each usb infrared module to send infrared signals to the set top box of the corresponding station based on the first infrared code value after the upper computer receives the receiving success notification;
the infrared function testing module is used for analyzing the received infrared signals by the set top box to obtain second infrared code values, checking the second infrared code values based on the first infrared code values, generating infrared testing results and sending the infrared testing results to the upper computer;
and the infrared test result storage module is used for receiving and storing each infrared test result by the upper computer.
6. The infrared function testing system of a set top box of claim 5, wherein: the first infrared code value sending module is specifically configured to:
the upper computer respectively sets a unique first infrared code value for each test station, establishes connection with each set top box through a network port or a serial port based on a udp protocol or a tcp protocol, and respectively sends each first infrared code value to the set top box of the corresponding station in real time after establishing the connection;
and in the first infrared code value storage module, the receiving success notification carries the serial number of the set top box.
7. The infrared function testing system of a set top box of claim 5, wherein: the infrared function test module is specifically used for:
the set top box sets a time length threshold, judges whether infrared signals are received in the time length threshold, and if not, generates infrared test results failing to test and sends the infrared test results to the upper computer in real time; if yes, then:
analyzing the received infrared signal to obtain a second infrared code value, judging whether the second infrared code value is consistent with the stored first infrared code value, if so, generating an infrared test result which is successfully tested and sending the infrared test result to an upper computer in real time; if not, generating an infrared test result of test failure and sending the infrared test result to the upper computer in real time.
8. The infrared function testing system of a set top box of claim 5, wherein: the infrared test result storage module is specifically used for:
the upper computer receives the infrared test result, carries out hash calculation after the infrared test result is bound with the test time to obtain a hash value, encrypts the infrared test result bound with the test time and the hash value by using a preset key to obtain encrypted data, and stores the encrypted data in a database of a server in a distributed mode.
9. A set-top box infrared function testing device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 4 when executing the program.
10. A set-top box infrared function test medium having stored thereon a computer program, which when executed by a processor implements a method according to any of claims 1 to 4.
CN202211655001.0A 2022-12-22 2022-12-22 Method, system, equipment and medium for testing infrared function of set top box Pending CN116074492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211655001.0A CN116074492A (en) 2022-12-22 2022-12-22 Method, system, equipment and medium for testing infrared function of set top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211655001.0A CN116074492A (en) 2022-12-22 2022-12-22 Method, system, equipment and medium for testing infrared function of set top box

Publications (1)

Publication Number Publication Date
CN116074492A true CN116074492A (en) 2023-05-05

Family

ID=86181280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211655001.0A Pending CN116074492A (en) 2022-12-22 2022-12-22 Method, system, equipment and medium for testing infrared function of set top box

Country Status (1)

Country Link
CN (1) CN116074492A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319639A (en) * 2023-11-17 2023-12-29 广东朝歌智慧互联科技有限公司 Set top box testing method, related device, equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319639A (en) * 2023-11-17 2023-12-29 广东朝歌智慧互联科技有限公司 Set top box testing method, related device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US10255428B2 (en) Apparatus and method for testing normality of shared data
CN111726420A (en) Communication method, device, equipment and storage medium based on RPA
CN111538961B (en) Method, device, equipment and storage medium for activating software
CN116074492A (en) Method, system, equipment and medium for testing infrared function of set top box
CN109818742B (en) Equipment debugging method, device and storage medium
US20210144007A1 (en) Uav authentication method and system
CN106773757A (en) Intelligent apparatus and home appliance
CN113055257B (en) Terminal equipment binding method and system based on identification code
CN110149625A (en) Phone number verification method and system
CN117075574A (en) Automatic test method, system, equipment and medium for process protection function of trusted DCS controller
CN105391714A (en) Automatic signature and verification method and apparatus for mobile application
CN116800535A (en) Method and device for avoiding secret between multiple servers
CN107026814B (en) Login verification method and device of sub-service application program
CN109587180B (en) Method for establishing connection, client and server
CN115988096A (en) Method, system, equipment and medium for reporting test data of electronic equipment
CN111541641A (en) Password management system and method
WO2016188223A1 (en) Fault information collection method and apparatus
CN113703838B (en) Equipment control method, device, equipment and storage medium
CN116088906A (en) Encryption and decryption-based chip upgrading system
CN113014592A (en) Automatic registration system and method for Internet of things equipment
CN109445979B (en) Abnormal log reporting method and system for wearable device
CN113301156A (en) File deployment method and device and electronic equipment
CN108833046B (en) Broadcast control method and device of broadcast equipment
CN113453209A (en) Method and system for realizing Bluetooth communication protocol authentication part and communication terminal
CN106101693A (en) TV method of testing and device

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