Interface voltage detection method for set top box, router, gateway and camera

Through the voltage adjustment circuit and multiple encryption algorithms, the automation and safety of intelligent terminal interface voltage detection are realized, which solves the problems of manual operation and low efficiency in traditional methods, and improves the reliability and safety of detection.

CN118741079APending Publication Date: 2024-10-01FUJIAN NEWLAND COMM SCI TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410765883.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Traditional methods are affected by human factors, complex operations and low efficiency in intelligent terminal interface voltage detection, making it difficult to meet the needs of fast, accurate and efficient testing.

Method used

Connect the smart terminal interface through the voltage adjustment circuit, use the AD acquisition module to collect and adjust the interface voltage, the microcontroller encrypts it and sends it to the Android device through the communication module for automatic detection and report generation, and ensures the safety of data transmission through multiple encryption algorithms and security protocols. Security.

Benefits of technology

It has improved the reliability and efficiency of intelligent terminal interface voltage detection, is compatible with different types of terminals, overcomes the uncertainty of manual operation, and enhanced the security of detection reports and the reliability of transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118741079A_ABST
    Figure CN118741079A_ABST
Patent Text Reader

Abstract

The invention provides an interface voltage detection method for a set top box, a router, a gateway and a camera in the technical field of interface voltage detection, and the method comprises the steps: S1, connecting an interface of an intelligent terminal through a voltage adjustment circuit, collecting the interface voltage, and enabling the voltage adjustment circuit to adjust the interface voltage based on the voltage sampling range of an AD collection module; s2, the single-chip microcomputer acquires the adjusted interface voltage from the voltage adjusting circuit through an AD acquisition module, encrypts the interface voltage into first encrypted data, and sends the first encrypted data to the Android device through a communication module; s3, decrypting the received first encrypted data by the Android equipment to obtain an interface voltage, automatically detecting the interface voltage based on a preset threshold range, and generating and displaying a detection report; and step S4, the Android device encrypts the detection report into second encrypted data, and uploads the second encrypted data to the server. The intelligent terminal interface voltage detection method has the advantages that the reliability and efficiency of intelligent terminal interface voltage detection are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of interface voltage detection, and in particular to an interface voltage detection method for a set-top box, a router, a gateway, and a camera. Background Art

[0002] In the manufacturing and quality control process of smart terminals such as set-top boxes, routers, gateways, and cameras, accurate detection of interface voltage is a key step. The stability of interface voltage is directly related to the performance and safety of smart terminals.

[0003] For the interface voltage detection of smart terminals, the traditional method is to use manual test equipment for detection. However, the traditional method has the following disadvantages: first, manual operation is easily affected by human factors, making it difficult to ensure the accuracy and consistency of the test results; second, manual test equipment is usually more complex, cumbersome to operate, and the test efficiency is low; in addition, with the continuous increase in the types of smart terminals and the continuous updating of interface voltage standards, traditional test methods are difficult to meet the needs of fast, accurate and efficient testing.

[0004] Therefore, how to provide an interface voltage detection method for a set-top box, a router, a gateway, and a camera to improve the reliability and efficiency of the interface voltage detection of a smart terminal has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide an interface voltage detection method for a set-top box, a router, a gateway, and a camera, so as to improve the reliability and efficiency of the interface voltage detection of a smart terminal.

[0006] The present invention provides a method for detecting interface voltage of a set-top box, a router, a gateway, and a camera, comprising the following steps:

[0007] Step S1, connecting the interface of the intelligent terminal through the voltage adjustment circuit and collecting the interface voltage, the voltage adjustment circuit adjusting the interface voltage based on the voltage sampling range of the AD acquisition module;

[0008] Step S2, the single chip computer collects the adjusted interface voltage from the voltage adjustment circuit through the AD acquisition module, encrypts the interface voltage into first encrypted data, and sends the first encrypted data to the Android device through the communication module;

[0009] Step S3, the Android device decrypts the received first encrypted data to obtain an interface voltage, automatically detects the interface voltage based on a preset threshold range, and generates and displays a detection report;

[0010] Step S4: The Android device encrypts the detection report into second encrypted data, and uploads the second encrypted data to the server.

[0011] Furthermore, the step S1 is specifically as follows:

[0012] The interface of the smart terminal is connected through a voltage adjustment circuit and the interface voltage is collected. The voltage adjustment circuit scales the voltage value of the interface voltage based on the voltage sampling range of the AD acquisition module and records the scaling multiple; the smart terminal is a set-top box, a router, a gateway or a camera.

[0013] Furthermore, the step S2 is specifically as follows:

[0014] The single chip microcomputer collects the adjusted interface voltage from the voltage adjustment circuit through the AD acquisition module, obtains the scaling factor corresponding to the interface voltage, and restores the voltage value of the interface voltage based on the scaling factor;

[0015] The single chip computer performs hash calculation on the interface voltage through the SHA-3 algorithm to obtain a hash value, obtains the current timestamp, encrypts the interface voltage, the hash value and the timestamp through the AES-256 algorithm to obtain a first encrypted string, shifts each character in the first encrypted string to the right based on a preset displacement to obtain a second encrypted string, replaces each character in the second encrypted string based on a preset mapping rule to generate a third encrypted string, encrypts the third encrypted string through the RSA algorithm to obtain first encrypted data, and sends the first encrypted data to the Android device through a communication module based on the SSL protocol.

[0016] Furthermore, the step S3 is specifically as follows:

[0017] The Android device receives the first encrypted data, decrypts the first encrypted data by using an RSA algorithm to obtain a third encrypted string, replaces each character in the third encrypted string based on a preset mapping rule to generate a second encrypted string, shifts each character in the second encrypted string to the left based on a preset displacement to obtain a first encrypted string, decrypts the first encrypted string by using an AES-256 algorithm to obtain an interface voltage, a hash value, and a timestamp, performs a timeliness check by using the timestamp, and then performs an integrity check on the interface voltage by using the hash value;

[0018] The Android device automatically detects the interface voltage based on a preset threshold range, generates and displays a test report carrying the test result, test time, test interface, smart terminal serial number, smart terminal model, and smart terminal production batch.

[0019] Furthermore, the step S4 is specifically as follows:

[0020] The Android device creates a pair of public and private keys through the RSA algorithm, encrypts the public key through the ECDSA algorithm to obtain a secret key, performs MAC calculation on the detection report to obtain a MAC value, encrypts the detection report through the private key to obtain a first encrypted report, adds a random string of preset length to a designated position of the encryption to obtain a second encrypted report, encrypts the second encrypted report through the ChaCha20 algorithm to obtain a third encrypted report, encrypts the third encrypted report, the hash value and the secret key through the EdDSA algorithm to obtain second encrypted data, and uploads the second encrypted data to a server through the TLS protocol;

[0021] The server stores and backs up the received second encrypted data. After verifying the data acquisition request sent by the mobile terminal, the server sends the second encrypted data to the mobile terminal through the TLS protocol. The mobile terminal decrypts the second encrypted data to obtain a detection report, and displays the detection report to remotely monitor the detection of the smart terminal interface voltage.

[0022] The advantages of the present invention are:

[0023] 1. Connect the interface of the smart terminal through the voltage adjustment circuit and collect the interface voltage. The voltage adjustment circuit adjusts the interface voltage based on the voltage sampling range of the AD acquisition module; then the single-chip microcomputer collects the adjusted interface voltage from the voltage adjustment circuit through the AD acquisition module, encrypts the interface voltage into the first encrypted data and sends it to the Android device; then the Android device decrypts the first encrypted data to obtain the interface voltage, automatically detects the interface voltage based on the preset threshold range, generates and displays the detection report, and encrypts the detection report into the second encrypted data and uploads it to the server; that is, the interface voltage is automatically collected through the single-chip microcomputer and the voltage adjustment circuit and sent to the Android device. The Android device automatically detects the interface voltage based on the threshold range, and there is no need to manually operate the manual test equipment for detection as in the traditional way, which overcomes the uncertainty caused by manual operation and does not require cumbersome operations. For different smart terminals, it is only necessary to adjust the collected interface voltage through the voltage adjustment circuit to adapt, which ultimately greatly improves the reliability and efficiency of the smart terminal interface voltage detection.

[0024] 2. The interface of the smart terminal is connected through a voltage adjustment circuit and the interface voltage is collected. The voltage adjustment circuit scales the voltage value of the interface voltage based on the voltage sampling range of the AD acquisition module and records the scaling factor, so that the present invention is compatible with smart terminals of different models. The voltage value can be adjusted as needed through the voltage adjustment circuit, which greatly improves the compatibility.

[0025] 3. Perform hash calculation on the interface voltage through the SHA-3 algorithm to obtain a hash value, obtain the current timestamp, encrypt the interface voltage, hash value and timestamp through the AES-256 algorithm to obtain a first encrypted string, shift each character in the first encrypted string to the right based on a preset displacement to obtain a second encrypted string, replace each character in the second encrypted string based on a preset mapping rule to generate a third encrypted string, encrypt the third encrypted string through the RSA algorithm to obtain first encrypted data, and send the first encrypted data to the Android device based on the SSL protocol; subsequently, the interface voltage can be checked for integrity through the hash value, and the timeliness can be checked through the timestamp. The decryption process combines multiple encryption algorithms and transformation strategies to effectively increase the difficulty of cracking. The SSL protocol is a security protocol, and at least seven security measures are taken before and after (SHA-3 algorithm, timestamp, AES-256 algorithm, displacement, mapping, RSA algorithm, SSL protocol), which greatly improves the security of interface voltage transmission and prevents the interface voltage from being stolen and tampered with during transmission, thereby affecting the reliability of detection.

[0026] 4. By generating a test report that carries the test results, test time, test interface, smart terminal serial number, smart terminal model, and smart terminal production batch, it is convenient for later traceability.

[0027] 5. Create a pair of public and private keys through the RSA algorithm, encrypt the public key through the ECDSA algorithm to obtain the secret key, perform MAC calculation on the test report to obtain the MAC value, encrypt the test report through the private key to obtain the first encrypted report, add a random string of preset length to the specified encrypted position to obtain the second encrypted report, encrypt the second encrypted report through the ChaCha20 algorithm to obtain the third encrypted report, encrypt the third encrypted report, hash value and secret key through the EdDSA algorithm to obtain the second encrypted data, and upload the second encrypted data to the server through the TLS protocol; since the data encrypted by the private key can only be transmitted through the public Key decryption, the public key is doubly encrypted by the ECDSA algorithm and the EdDSA algorithm. The MAC calculation is based on the Hash function with a secret key, which is more secure than the ordinary hash calculation. The TLS protocol is a security protocol used to ensure confidentiality, data integrity and authenticity. At least nine security measures are taken before and after (RSA algorithm, public and private keys, ECDSA algorithm, MAC calculation, preset length, specified position, ChaCha20 algorithm, EdDSA algorithm, TLS protocol), which greatly improves the security of the test report transmission and avoids the theft and tampering of the test report during transmission, thereby affecting the reliability of the test.

[0028] 6. Further improve security by adopting different encryption schemes during the transmission of interface voltage and test reports.

[0029] 7. The second encrypted data is stored and backed up by the server. After verifying the data acquisition request sent by the mobile terminal, the server sends the second encrypted data to the mobile terminal through the TLS protocol. The mobile terminal decrypts the second encrypted data to obtain the test report and displays the test report. That is, only the mobile terminal that performs the legality verification can obtain and display the test report, and the test report is transmitted based on the second encrypted data, which effectively improves the security of remote monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0031] Figure 1 The invention discloses a flow chart of a method for detecting interface voltage of a set-top box, a router, a gateway and a camera.

[0032] Figure 2 The present invention is a schematic diagram of the structure of an automatic detection device for intelligent terminal interface voltage. DETAILED DESCRIPTION

[0033] The technical solution in the embodiments of the present application has the following overall idea: the interface voltage is automatically collected through a single-chip microcomputer and a voltage adjustment circuit and sent to an Android device. The Android device automatically detects the interface voltage based on a threshold range, and there is no need for manual testing equipment to be manually operated as in traditional methods. This overcomes the uncertainty caused by manual operation and does not require tedious operations. For different smart terminals, it is only necessary to adjust the collected interface voltage through a voltage adjustment circuit to adapt them, so as to improve the reliability and efficiency of the smart terminal interface voltage detection.

[0034] Please refer to Figure 1 to Figure 2 As shown, the present invention needs to use the following intelligent terminal interface voltage automatic detection device, including an intelligent terminal, a voltage adjustment circuit, a single-chip microcomputer, a communication module, an Android device and a server; the intelligent terminal, the voltage adjustment circuit, the single-chip microcomputer, the communication module, the Android device and the server are connected in sequence; the voltage adjustment circuit is used to adjust the interface voltage of the intelligent terminal mechanically to match the voltage sampling range of the AD acquisition module of the single-chip microcomputer;

[0035] The single chip microcomputer is provided with an AD acquisition module; the AD acquisition module is a high-precision AD acquisition module;

[0036] The communication module is at least one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, a NB-IOT communication module, a LORA communication module, a WIFI communication module, a Bluetooth communication module, a ZigBee communication module or a wired communication module.

[0037] A preferred embodiment of a method for detecting interface voltage of a set-top box, a router, a gateway, and a camera of the present invention comprises the following steps:

[0038] Step S1, connecting the interface of the intelligent terminal through the voltage adjustment circuit and collecting the interface voltage, the voltage adjustment circuit adjusting the interface voltage based on the voltage sampling range of the AD acquisition module;

[0039] Step S2, the single chip computer collects the adjusted interface voltage from the voltage adjustment circuit through the AD acquisition module, encrypts the interface voltage into first encrypted data, and sends the first encrypted data to the Android device through the communication module;

[0040] Step S3: The Android device decrypts the received first encrypted data to obtain an interface voltage, automatically detects the interface voltage based on a preset threshold range, and generates and displays a detection report;

[0041] Step S4: The Android device encrypts the detection report into second encrypted data, and uploads the second encrypted data to the server. In specific implementation, the server can decrypt the second encrypted data to obtain the detection report, and further analyze and visualize the detection report.

[0042] The step S1 is specifically as follows:

[0043] The interface of the smart terminal is connected through a voltage adjustment circuit and the interface voltage is collected. The voltage adjustment circuit scales the voltage value of the interface voltage based on the voltage sampling range of the AD acquisition module and records the scaling multiple; the smart terminal is a set-top box, a router, a gateway or a camera.

[0044] The interface of the smart terminal is connected through a voltage adjustment circuit and the interface voltage is collected. The voltage adjustment circuit scales the voltage value of the interface voltage based on the voltage sampling range of the AD acquisition module and records the scaling multiple, so that the present invention is compatible with smart terminals of different models. The voltage value can be adjusted as needed through the voltage adjustment circuit, which greatly improves the compatibility.

[0045] The step S2 is specifically as follows:

[0046] The single chip microcomputer collects the adjusted interface voltage from the voltage adjustment circuit through the AD acquisition module, obtains the scaling factor corresponding to the interface voltage, and restores the voltage value of the interface voltage based on the scaling factor;

[0047] The single chip computer performs hash calculation on the interface voltage through the SHA-3 algorithm to obtain a hash value, obtains the current timestamp, encrypts the interface voltage, the hash value and the timestamp through the AES-256 algorithm to obtain a first encrypted string, shifts each character in the first encrypted string to the right based on a preset displacement to obtain a second encrypted string, replaces each character in the second encrypted string based on a preset mapping rule to generate a third encrypted string, encrypts the third encrypted string through the RSA algorithm to obtain first encrypted data, and sends the first encrypted data to the Android device through a communication module based on the SSL protocol.

[0048] The interface voltage is hashed by the SHA-3 algorithm to obtain a hash value, the current timestamp is obtained, the interface voltage, the hash value and the timestamp are encrypted by the AES-256 algorithm to obtain a first encrypted string, each character in the first encrypted string is shifted rightward based on a preset displacement to obtain a second encrypted string, each character in the second encrypted string is replaced based on a preset mapping rule to generate a third encrypted string, the third encrypted string is encrypted by the RSA algorithm to obtain first encrypted data, and the first encrypted data is sent to the Android device based on the SSL protocol; subsequently, the interface voltage can be checked for integrity by the hash value, and the timeliness can be checked by the timestamp. The decryption process combines multiple encryption algorithms and transformation strategies to effectively increase the difficulty of cracking. The SSL protocol is a security protocol, and at least seven security measures are taken before and after (SHA-3 algorithm, timestamp, AES-256 algorithm, displacement, mapping, RSA algorithm, SSL protocol), which greatly improves the security of interface voltage transmission and prevents the interface voltage from being stolen and tampered with during transmission, thereby affecting the reliability of detection.

[0049] The step S3 is specifically as follows:

[0050] The Android device receives the first encrypted data, decrypts the first encrypted data by using an RSA algorithm to obtain a third encrypted string, replaces each character in the third encrypted string based on a preset mapping rule to generate a second encrypted string, shifts each character in the second encrypted string to the left based on a preset displacement to obtain a first encrypted string, decrypts the first encrypted string by using an AES-256 algorithm to obtain an interface voltage, a hash value, and a timestamp, performs a timeliness check by using the timestamp, and then performs an integrity check on the interface voltage by using the hash value;

[0051] The Android device automatically detects the interface voltage based on a preset threshold range, generates and displays a test report carrying the test result, test time, test interface, smart terminal serial number, smart terminal model, and smart terminal production batch.

[0052] By generating a test report that carries the test results, test time, test interface, smart terminal serial number, smart terminal model, and smart terminal production batch, it is easy to trace the source later.

[0053] The step S4 is specifically as follows:

[0054] The Android device creates a pair of public and private keys through the RSA algorithm, encrypts the public key through the ECDSA algorithm to obtain a secret key, performs MAC calculation on the detection report to obtain a MAC value, encrypts the detection report through the private key to obtain a first encrypted report, adds a random string of preset length to a designated position of the encryption to obtain a second encrypted report, encrypts the second encrypted report through the ChaCha20 algorithm to obtain a third encrypted report, encrypts the third encrypted report, the hash value and the secret key through the EdDSA algorithm to obtain second encrypted data, and uploads the second encrypted data to a server through the TLS protocol;

[0055] A pair of public and private keys is created through the RSA algorithm, the public key is encrypted through the ECDSA algorithm to obtain the secret key, the test report is MAC calculated to obtain the MAC value, the test report is encrypted through the private key to obtain the first encrypted report, a random string of preset length is added to the specified encrypted position to obtain the second encrypted report, the second encrypted report is encrypted through the ChaCha20 algorithm to obtain the third encrypted report, the third encrypted report, the hash value and the secret key are encrypted through the EdDSA algorithm to obtain the second encrypted data, and the second encrypted data is uploaded to the server through the TLS protocol; since the data encrypted by the private key can only be transmitted through the public key Decryption, the public key is doubly encrypted by the ECDSA algorithm and the EdDSA algorithm. The MAC calculation is based on a hash function with a secret key, which is more secure than ordinary hash calculations. The TLS protocol is a security protocol used to ensure confidentiality, data integrity and authenticity. At least nine security measures are taken before and after (RSA algorithm, public and private keys, ECDSA algorithm, MAC calculation, preset length, specified position, ChaCha20 algorithm, EdDSA algorithm, TLS protocol), which greatly improves the security of the test report transmission and prevents the test report from being stolen and tampered with during transmission, thereby affecting the reliability of the test.

[0056] Security is further improved by adopting different encryption schemes during the transmission of interface voltage and detection reports.

[0057] The server stores and backs up the received second encrypted data. After verifying the data acquisition request sent by the mobile terminal, the server sends the second encrypted data to the mobile terminal through the TLS protocol. The mobile terminal decrypts the second encrypted data to obtain a detection report, and displays the detection report to remotely monitor the detection of the smart terminal interface voltage.

[0058] The second encrypted data is stored and backed up by the server. After verifying the data acquisition request sent by the mobile terminal, the server sends the second encrypted data to the mobile terminal through the TLS protocol. The mobile terminal decrypts the second encrypted data to obtain a test report and displays the test report. That is, only the mobile terminal that has performed a legality check can obtain and display the test report, and the test report is transmitted based on the second encrypted data, which effectively improves the security of remote monitoring.

[0059] In summary, the advantages of the present invention are:

[0060] 1. Connect the interface of the smart terminal through the voltage adjustment circuit and collect the interface voltage. The voltage adjustment circuit adjusts the interface voltage based on the voltage sampling range of the AD acquisition module; then the single-chip microcomputer collects the adjusted interface voltage from the voltage adjustment circuit through the AD acquisition module, encrypts the interface voltage into the first encrypted data and sends it to the Android device; then the Android device decrypts the first encrypted data to obtain the interface voltage, automatically detects the interface voltage based on the preset threshold range, generates and displays the detection report, and encrypts the detection report into the second encrypted data and uploads it to the server; that is, the interface voltage is automatically collected through the single-chip microcomputer and the voltage adjustment circuit and sent to the Android device. The Android device automatically detects the interface voltage based on the threshold range, and there is no need to manually operate the manual test equipment for detection as in the traditional way, which overcomes the uncertainty caused by manual operation and does not require cumbersome operations. For different smart terminals, it is only necessary to adjust the collected interface voltage through the voltage adjustment circuit to adapt, which ultimately greatly improves the reliability and efficiency of the smart terminal interface voltage detection.

[0061] 2. The interface of the smart terminal is connected through a voltage adjustment circuit and the interface voltage is collected. The voltage adjustment circuit scales the voltage value of the interface voltage based on the voltage sampling range of the AD acquisition module and records the scaling factor, so that the present invention is compatible with smart terminals of different models. The voltage value can be adjusted as needed through the voltage adjustment circuit, which greatly improves the compatibility.

[0062] 3. Perform hash calculation on the interface voltage through the SHA-3 algorithm to obtain a hash value, obtain the current timestamp, encrypt the interface voltage, hash value and timestamp through the AES-256 algorithm to obtain a first encrypted string, shift each character in the first encrypted string to the right based on a preset displacement to obtain a second encrypted string, replace each character in the second encrypted string based on a preset mapping rule to generate a third encrypted string, encrypt the third encrypted string through the RSA algorithm to obtain first encrypted data, and send the first encrypted data to the Android device based on the SSL protocol; subsequently, the interface voltage can be checked for integrity through the hash value, and the timeliness can be checked through the timestamp. The decryption process combines multiple encryption algorithms and transformation strategies to effectively increase the difficulty of cracking. The SSL protocol is a security protocol, and at least seven security measures are taken before and after (SHA-3 algorithm, timestamp, AES-256 algorithm, displacement, mapping, RSA algorithm, SSL protocol), which greatly improves the security of interface voltage transmission and prevents the interface voltage from being stolen and tampered with during transmission, thereby affecting the reliability of detection.

[0063] 4. By generating a test report that carries the test results, test time, test interface, smart terminal serial number, smart terminal model, and smart terminal production batch, it is convenient for later traceability.

[0064] 5. Create a pair of public and private keys through the RSA algorithm, encrypt the public key through the ECDSA algorithm to obtain the secret key, perform MAC calculation on the test report to obtain the MAC value, encrypt the test report through the private key to obtain the first encrypted report, add a random string of preset length to the specified encrypted position to obtain the second encrypted report, encrypt the second encrypted report through the ChaCha20 algorithm to obtain the third encrypted report, encrypt the third encrypted report, hash value and secret key through the EdDSA algorithm to obtain the second encrypted data, and upload the second encrypted data to the server through the TLS protocol; since the data encrypted by the private key can only be transmitted through the public Key decryption, the public key is doubly encrypted by the ECDSA algorithm and the EdDSA algorithm. The MAC calculation is based on the Hash function with a secret key, which is more secure than the ordinary hash calculation. The TLS protocol is a security protocol used to ensure confidentiality, data integrity and authenticity. At least nine security measures are taken before and after (RSA algorithm, public and private keys, ECDSA algorithm, MAC calculation, preset length, specified position, ChaCha20 algorithm, EdDSA algorithm, TLS protocol), which greatly improves the security of the test report transmission and avoids the theft and tampering of the test report during transmission, thereby affecting the reliability of the test.

[0065] 6. Further improve security by adopting different encryption schemes during the transmission of interface voltage and test reports.

[0066] 7. The second encrypted data is stored and backed up by the server. After verifying the data acquisition request sent by the mobile terminal, the server sends the second encrypted data to the mobile terminal through the TLS protocol. The mobile terminal decrypts the second encrypted data to obtain the test report and displays the test report. That is, only the mobile terminal that performs the legality verification can obtain and display the test report, and the test report is transmitted based on the second encrypted data, which effectively improves the security of remote monitoring.

[0067] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A method for detecting interface voltage of a set-top box, a router, a gateway, or a camera, characterized in that: The steps include: Step S1, connecting the interface of the intelligent terminal through the voltage adjustment circuit and collecting the interface voltage, the voltage adjustment circuit adjusting the interface voltage based on the voltage sampling range of the AD acquisition module; Step S2, the single chip computer collects the adjusted interface voltage from the voltage adjustment circuit through the AD acquisition module, encrypts the interface voltage into first encrypted data, and sends the first encrypted data to the Android device through the communication module; Step S3: The Android device decrypts the received first encrypted data to obtain an interface voltage, automatically detects the interface voltage based on a preset threshold range, and generates and displays a detection report; Step S4: The Android device encrypts the detection report into second encrypted data, and uploads the second encrypted data to the server.

2. The interface voltage detection method of a set-top box, a router, a gateway, or a camera as claimed in claim 1, characterized in that: The step S1 is specifically as follows: The interface of the smart terminal is connected through a voltage adjustment circuit and the interface voltage is collected. The voltage adjustment circuit scales the voltage value of the interface voltage based on the voltage sampling range of the AD acquisition module and records the scaling multiple; the smart terminal is a set-top box, a router, a gateway or a camera.

3. The interface voltage detection method of a set-top box, a router, a gateway, or a camera as claimed in claim 1, characterized in that: The step S2 is specifically as follows: The single chip microcomputer collects the adjusted interface voltage from the voltage adjustment circuit through the AD acquisition module, obtains the scaling factor corresponding to the interface voltage, and restores the voltage value of the interface voltage based on the scaling factor; The single chip computer performs hash calculation on the interface voltage through the SHA-3 algorithm to obtain a hash value, obtains the current timestamp, encrypts the interface voltage, the hash value and the timestamp through the AES-256 algorithm to obtain a first encrypted string, shifts each character in the first encrypted string to the right based on a preset displacement to obtain a second encrypted string, replaces each character in the second encrypted string based on a preset mapping rule to generate a third encrypted string, encrypts the third encrypted string through the RSA algorithm to obtain first encrypted data, and sends the first encrypted data to the Android device through a communication module based on the SSL protocol.

4. The interface voltage detection method of a set-top box, a router, a gateway, or a camera as claimed in claim 1, characterized in that: The step S3 is specifically as follows: The Android device receives the first encrypted data, decrypts the first encrypted data by using an RSA algorithm to obtain a third encrypted string, replaces each character in the third encrypted string based on a preset mapping rule to generate a second encrypted string, shifts each character in the second encrypted string to the left based on a preset displacement to obtain a first encrypted string, decrypts the first encrypted string by using an AES-256 algorithm to obtain an interface voltage, a hash value, and a timestamp, performs a timeliness check by using the timestamp, and then performs an integrity check on the interface voltage by using the hash value; The Android device automatically detects the interface voltage based on a preset threshold range, generates and displays a test report carrying the test result, test time, test interface, smart terminal serial number, smart terminal model, and smart terminal production batch.

5. The interface voltage detection method of a set-top box, a router, a gateway, or a camera as claimed in claim 1, characterized in that: The step S4 is specifically as follows: The Android device creates a pair of public and private keys through the RSA algorithm, encrypts the public key through the ECDSA algorithm to obtain a secret key, performs MAC calculation on the detection report to obtain a MAC value, encrypts the detection report through the private key to obtain a first encrypted report, adds a random string of preset length to a specified position of the encryption to obtain a second encrypted report, encrypts the second encrypted report through the ChaCha20 algorithm to obtain a third encrypted report, encrypts the third encrypted report, the hash value and the secret key through the EdDSA algorithm to obtain second encrypted data, and uploads the second encrypted data to a server through the TLS protocol; The server stores and backs up the received second encrypted data. After verifying the data acquisition request sent by the mobile terminal, the server sends the second encrypted data to the mobile terminal through the TLS protocol. The mobile terminal decrypts the second encrypted data to obtain a detection report, and displays the detection report to remotely monitor the detection of the smart terminal interface voltage.