Set top box remote control method and device, electronic equipment and storage medium
By generating and scanning the set-top box's QR code for remote control, the limitations of directionality and transmission distance in traditional set-top box remote control technology have been overcome, enabling convenient cross-network set-top box control and improving control capabilities and compatibility.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SUNNIWELL AIOT TECH LTD
- Filing Date
- 2026-02-05
- Publication Date
- 2026-05-05
AI Technical Summary
Traditional set-top box remote control technology suffers from directional limitations, short transmission distances, and poor anti-interference capabilities. In particular, its reliance on infrared transmission protocols makes the control process complex and inconvenient.
The set-top box obtains the device's unique token, device serial number, and H5 page address from the backend server, generates a target QR code, and allows the user terminal to remotely control the device by scanning the QR code. A lightweight authentication mechanism and a backend server relay are used to achieve cross-network control.
It enables remote control of set-top boxes without the need to install specific applications, simply by scanning a code. It overcomes local area network and directional limitations, improves transmission distance and anti-interference capabilities, simplifies the device binding process, reduces user learning and usage costs, and supports cross-platform compatibility.
Smart Images

Figure CN121985162A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home control technology, and in particular to a method, device, electronic device, and storage medium for remote control of a set-top box. Background Technology
[0002] Traditional TV / set-top box remote control technology mainly relies on the Infrared Data Association (IrDA) protocol. This technology encodes control commands into infrared signals using pulse width modulation, which are then decoded by the set-top box's infrared receiver to execute the corresponding operations. However, this solution has inherent drawbacks such as directional limitations (requiring alignment with the device), short transmission distance (usually no more than 10 meters), and poor anti-interference capabilities (susceptible to light source interference). Summary of the Invention
[0003] This application provides a method, apparatus, electronic device, and storage medium for remote control of a set-top box, enabling a remote control method for set-top boxes that is installation-free, cross-network, and usable simply by scanning a code. The technical solution is as follows: According to one aspect of this application, a set-top box remote control method is provided, the method being applied to a set-top box remote control system, the set-top box remote control system including a set-top box, a backend server, and a user terminal, the method comprising: When the set-top box is started, the device's unique token is obtained from the backend server through the set-top box; The set-top box generates a target QR code based on the device's unique token, the device serial number, and the H5 page address. The target QR code is used to display on the TV interface connected to the set-top box. The set-top box can be remotely controlled by scanning the target QR code using the user terminal.
[0004] According to another aspect of this application, a set-top box remote control system is provided, the set-top box remote control system comprising a set-top box, a back-end server, and a user terminal: The set-top box is used to: obtain the unique device token of the set-top box from the backend server when the set-top box is started; The set-top box is also used to: generate a target QR code for the set-top box based on the device's unique token, the device serial number of the set-top box, and the H5 page address. The target QR code is used to display on the interface of a television connected to the set-top box. The user terminal is used to remotely control the set-top box by scanning the target QR code.
[0005] According to one aspect of this application, an electronic device is provided, comprising: a processor and a memory storing a program, the program including instructions that, when executed by the processor, cause the processor to perform the set-top box remote control method as described above.
[0006] According to another aspect of this application, a non-transitory computer-readable storage medium is provided that stores computer instructions for causing the computer to perform the set-top box remote control method as described above.
[0007] According to another aspect of this application, a computer program product is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned set-top box remote control method.
[0008] The beneficial effects of the technical solutions provided in this application include at least the following: This application provides a method for remotely controlling a set-top box: the set-top box generates a target QR code based on the unique device token, device serial number, and H5 page address allocated by the backend server; the user terminal can remotely control the set-top box by scanning the target QR code; the entire remote control process does not require the installation of a specific application, can be used immediately by scanning the code, is not limited by local area network or direction, and greatly improves the transmission distance and anti-interference capability. Attached Figure Description
[0009] Further details, features, and advantages of this application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which: Figure 1 A flowchart of a set-top box remote control method according to an exemplary embodiment of this application is shown; Figure 2 A flowchart of another set-top box remote control method according to an exemplary embodiment of this application is shown; Figure 3 This is an exemplary embodiment of the present application, showing the interaction flowchart between the set-top box, the back-end server, and the user terminal. Figure 4 This is a schematic diagram of the structure of a set-top box remote control system provided in an embodiment of this application; Figure 5 A structural block diagram of an exemplary electronic device that can be used to implement embodiments of this application is shown. Detailed Implementation
[0010] Embodiments of this application will now be described in more detail with reference to the accompanying drawings. While some embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this application. It should be understood that the drawings and embodiments of this application are for illustrative purposes only and are not intended to limit the scope of protection of this application.
[0011] It should be understood that the steps described in the method embodiments of this application may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this application is not limited in this respect.
[0012] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc., mentioned in this application are only used to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies. It should be noted that the modifications "a" and "a plurality" mentioned in this application are illustrative and not restrictive, and those skilled in the art should understand that unless explicitly indicated in the context, they should be understood as "one or more". The names of messages or information exchanged between multiple devices in the embodiments of this application are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0013] The present invention will now be described with reference to the accompanying drawings. The technical solutions provided by the embodiments of this application will be explained in detail through specific examples and application scenarios.
[0014] With the widespread adoption of smart devices (such as smartphones), set-top box control solutions that utilize smartphones to replace traditional remote controls are gradually emerging, mainly including the following control methods: (1) Infrared analog control method: An infrared transmitter is installed in the headphone jack of a smartphone, and an infrared code is simulated by a dedicated APP. The infrared receiver of the set-top box decodes the code and performs the corresponding operation. This control method has disadvantages such as being unable to overcome physical transmission limitations (e.g., needing to be aligned with the device) and poor compatibility (different models require customized hardware).
[0015] (2) Local wireless direct connection control method: Utilize the built-in Bluetooth or WiFi Direct technology of the smartphone to establish a point-to-point connection with the set-top box. For example, the smartphone and the set-top box are paired via Bluetooth to transmit commands. Although this control scheme can solve the problem of not needing to align with the device, it still requires the user to manually enter the IP address or go through a complicated pairing process, and the transmission distance is limited to a short distance (usually <50 meters).
[0016] In view of the problems existing in the set-top box control methods in related technologies, this application provides a set-top box remote control method that is installation-free, cross-network, and can be used simply by scanning a code. It does not require pointing the device, can also break through the local area network limitation, and can be remotely controlled by scanning a code without a complicated pairing process, thus reducing the learning and control operation costs for ordinary users.
[0017] Please refer to Figure 1 This document illustrates a flowchart of a set-top box remote control method according to an exemplary embodiment of this application. The method is described using an example of its application to an electronic device. Figure 1 As shown, the method includes: Step 101: When the set-top box is started, obtain the set-top box's unique device token from the backend server through the set-top box; Step 102: Generate a target QR code for the set-top box based on the device's unique token, the set-top box's device serial number, and the H5 page address. The target QR code is used to display on the TV screen connected to the set-top box. Step 103: Remotely control the set-top box by scanning the target QR code with the user terminal. It should be noted that the set-top box remote control method provided in this application is applied to a set-top box remote control system, which includes a set-top box, a backend server, and a user terminal. Through the interaction between the set-top box, the backend server, and the user terminal, remote control of the set-top box is achieved via the user terminal. The set-top box can be an Android set-top box, the backend server can be a backend server or a relay server providing services to the set-top box, and the user terminal is a device with QR code scanning functionality, such as a smartphone or smart tablet.
[0018] Unlike related technologies where users need to manually enter IP addresses or account passwords for set-top box control, this application simplifies the manual input process while providing a lightweight authentication mechanism. In one possible implementation, when the set-top box starts up, it can call the API of the backend server to obtain the set-top box's unique device token. Based on the unique device token, the set-top box's serial number, and the H5 page address, it generates a target QR code for the set-top box and displays it on the television screen connected to the set-top box. Since the target QR code, after parsing, yields the H5 page address, device serial number, and unique device token, the target terminal, after scanning the target QR code, can perform binding authentication based on the unique device token and device serial number, and load its corresponding target H5 page based on the H5 page address, thus remotely controlling the set-top box.
[0019] For example, after parsing the target QR code, the content could be "https: / / h5.xxxxxxxxx.net:xxxx / xxxxxxx / #?deviceId=XXXXXXXXXXXX&TOKEN=tkn8s7d6f9g2h1j3k4m"; where "https: / / h5.xxxxxxxxx.net:xxxx / xxxxxxx / #?" is the H5 page address, "deviceId=XXXXXXXXXXXX" is the device serial number, and "TOKEN=tkn8s7d6f9g2h1j3k4m" is the device's unique token. After scanning the target QR code, the user terminal can obtain the H5 page address from the parsed QR code content to load the target H5 page.
[0020] The device serial number and H5 page address are pre-stored in the set-top box. Optionally, to ensure the security of the device serial number and H5 page address and prevent information loss, the device serial number and H5 page address can be encrypted and stored in non-volatile memory within the set-top box.
[0021] Optionally, when the set-top box obtains the device's unique token from the backend server upon startup, it sends a token request to the backend server. After receiving the token request, the backend server can return the corresponding device's unique token to the set-top box.
[0022] When a user terminal scans the target QR code to remotely control the set-top box for the first time, a binding process between the user terminal and the set-top box is required. Then, the backend server forwards control commands based on the binding relationship to perform remote control. In an exemplary example, such as... Figure 2 As shown, step 103 may also include steps 103A to 103D.
[0023] Step 103A: Scan the target QR code with the user terminal and load the target H5 page corresponding to the H5 page address in the user terminal; Step 103B: Bind the user terminal to the set-top box based on the target H5 page; Step 103C: Trigger the target virtual button on the target H5 page through the user terminal and generate a remote control command; Step 103D: Remotely control the set-top box using a user terminal based on remote control commands.
[0024] In one possible implementation, the user terminal scans the target QR code, parses its content, obtains the H5 page address, and loads the corresponding target H5 page based on that address. The target H5 page is a control UI page for the set-top box, which may contain several virtual control buttons for the set-top box, such as volume up, volume down, on, off, and channel switching buttons. This embodiment does not limit the specific UI content contained in the target H5 page.
[0025] Optionally, the user terminal can use its built-in scanning tool to scan the target QR code, or the user terminal can use the scanning tool built into an installed application to scan the target QR code, such as instant messaging applications and browser applications, which all have built-in scanning tools.
[0026] When a user terminal scans the target QR code on the set-top box for the first time, after loading the target H5 page, it will bind to the set-top box via the target H5 page. After the user terminal and set-top box are bound, remote command transmission across the network can be achieved through the target H5 page. In one possible implementation, after the user terminal loads the target H5 page for the first time, it binds the target H5 page to the set-top box. Subsequently, the user can touch (e.g., click) a virtual button on the target H5 page, which will trigger the target virtual button on the target H5 page and generate a remote control command corresponding to the target virtual button. This allows the user terminal to remotely control the set-top box based on the remote control command and the binding relationship.
[0027] To ensure the control security of the set-top box, the user terminal needs to be validated before binding it to the set-top box. In an exemplary example, step 103B may also include steps 103B1 to 103B3.
[0028] Step 103B1: When the target H5 page is loaded on the user terminal, a binding request is sent to the backend server through the user terminal. Step 103B2: When the backend server receives a binding request, the backend server verifies the validity of the binding request. Step 103B3: If the legality verification passes, create a target binding relationship between the user terminal and the set-top box through the backend server.
[0029] In one possible implementation, when a user terminal scans the target QR code and loads the target H5 page for the first time, the user terminal first sends a binding request to the backend server through the target H5 page. The corresponding backend server receives the binding request and verifies the legitimacy of the user terminal that sent the request. Only if the legitimacy verification passes will the backend server create a target binding relationship between the user terminal and the set-top box. Once the target binding relationship is established, the backend server can then forward remote control commands received from the user terminal to the corresponding set-top box based on this target binding relationship, thereby enabling remote control of the set-top box.
[0030] The validity verification mainly verifies whether the device's unique token is the token assigned to the set-top box by the backend server. In an exemplary example, the validity verification of the binding request by the backend server (step 103B2) also includes: obtaining the device's unique token from the binding request by the backend server; verifying the device's unique token by the backend server; and, if the verification passes, determining by the backend server that the binding request has passed the validity verification.
[0031] In one possible implementation, since the target QR code also contains the set-top box's unique device token, when the user terminal sends a binding request to the backend server, it can carry the unique device token. The corresponding backend server can obtain the unique device token from the binding request and verify whether the unique device token matches the unique device token assigned to the set-top box by the backend server. If they match, it means that the unique device token verification is successful (i.e., authentication is successful). The corresponding backend server determines that the binding request sent by the user terminal has passed the legality verification and can perform subsequent binding operations.
[0032] Since subsequent remote control commands from the user terminal are all forwarded based on the target H5 page, the target binding relationship created by the backend server can be a binding relationship between the webpage identifier of the target H5 page and the device serial number of the set-top box. This allows the backend server to forward commands to the corresponding set-top box based on the binding relationship after receiving the command to forward the corresponding target H5 page. In an exemplary example, creating a target binding relationship between the user terminal and the set-top box through the backend server (step 103B3) may further include: obtaining the webpage identifier of the target H5 page from the binding request through the backend server; and binding the webpage identifier with the device serial number of the set-top box through the backend server to create a target binding relationship between the user terminal and the set-top box.
[0033] In one possible implementation, the binding request also carries the webpage identifier of the target H5 page. After receiving the binding request, the backend server obtains the webpage identifier of the target H5 page from it. After the binding request passes the validity verification, the backend server can bind the webpage identifier with the device serial number of the set-top box, thereby creating a target binding relationship between the user terminal and the set-top box.
[0034] Optionally, after the user terminal scans the target QR code to load the target H5 page and completes the binding relationship with the set-top box, the user terminal can save the target H5 page. Subsequently, remote control of the set-top box can be achieved through the target H5 page without scanning the target QR code. In one possible implementation, the user terminal receives a save operation for the target H5 page to save it, enabling the user terminal to remotely control the set-top box based on the saved target H5 page.
[0035] Based on this target binding relationship, specifically, remote control of the set-top box via the user terminal using remote control commands (step 103D) may further include: sending remote control commands to the backend server via the user terminal; forwarding the remote control commands to the set-top box bound to the user terminal via the backend server based on the target binding relationship; and receiving and executing the remote control commands via the set-top box to achieve remote control of the set-top box.
[0036] In one possible implementation, when a user clicks a virtual button on the target H5 page, the target H5 page can generate a lightweight command (remote control command) and send it to the backend server via WebSocket. After receiving the remote control command, the backend server can forward the remote control command to the set-top box bound to the user's terminal according to the target binding relationship. The corresponding set-top box has a persistent listening service to receive the remote control command forwarded by the backend server. After receiving the remote control command, it parses the remote control command, calls the Android system API to simulate the button event contained in the remote control command, and calls the Android interface to execute the button event; thereby realizing remote control of the set-top box.
[0037] Among them, the lightweight command (remote control command) only contains the key codes corresponding to the virtual keys, rather than the interface data, which reduces the amount of data transmitted, improves the transmission efficiency, and also enables low-latency remote control across networks.
[0038] As can be seen from the above embodiments, after the user terminal scans the target QR code for the first time, it can save the target H5 page, so that it can remotely control the set-top box without having to scan the target QR code again.
[0039] To prevent unauthorized devices from intercepting the device's unique token for authentication and binding, thus threatening the set-top box's control security, another possible implementation is to set a security time limit for the device's unique token. After the time limit is reached when the device's unique token is assigned to the set-top box, the target QR code becomes invalid (corresponding to the authentication of the target H5 page becomes invalid). The set-top box needs to obtain a new device's unique token from the backend server and generate a new target QR code. The user terminal needs to scan the new target QR code, load the target H5 page, and perform re-authentication and binding operations before it can continue to remotely control the set-top box.
[0040] Optionally, since the target QR code can be scanned, authenticated, and bound by multiple user terminals, in order to avoid command conflicts caused by multiple users controlling the set-top box at the same time, one possible implementation is to allow setting the control priority of multiple terminals. When the set-top box receives remote control commands from multiple user terminals at the same time, the remote control command triggered by the user terminal with the higher control priority can be executed based on the control priority.
[0041] In summary, this application provides a method for remotely controlling a set-top box: a target QR code is generated based on the set-top box's unique device token, device serial number, and H5 page address assigned by a backend server. This allows user terminals to remotely control the set-top box by scanning the target QR code. The entire remote control process requires no specific application installation, is ready to use upon scanning, and is not limited by local area networks or orientation, significantly improving transmission distance and anti-interference capabilities. Furthermore, automatic authentication via QR code scanning eliminates the need for manual IP address input, simplifying the device binding process. The unique device token mechanism also avoids IP address changes and reduces user learning and usage costs. Additionally, using a pure H5 page as the control terminal eliminates the need for app installation; users can remotely control the set-top box via instant messaging applications, browsers, etc., achieving cross-platform compatibility and seamless device replacement. It also eliminates the need for adaptation to multiple system versions, further reducing set-top box development costs. Moreover, using a backend server as a relay for remote control command transmission enables interoperability across any network, greatly ensuring communication success rates. Please refer to Figure 3 This is a flowchart illustrating the interaction between a set-top box, a backend server, and a user terminal, provided in an exemplary embodiment of this application. Figure 3 As shown, the interaction process includes the following steps: Step 1: When the TV (set-top box) starts up, it calls the server API to request a temporary token (unique device token TOKEN) from the server. Step 2. If the device is already bound, return the historical token; if the device is not bound, assign a new temporary token.
[0042] In one possible implementation, if the set-top box has a target binding relationship (meaning the set-top box is already bound to a user terminal), a historical token can be returned to ensure that different user terminals use the same authentication information (device unique token) when binding to the set-top box. If the device does not have a target binding relationship (meaning the set-top box is being started for the first time and is not bound to any user terminal), a new temporary token can be assigned to it.
[0043] Step 3. The TV terminal obtains device information and generates a QR code. Specifically, it combines the device's SN (serial number) information with the H5 page address and TOKEN to generate the QR code. After the QR code is parsed, the content example is: "https: / / h5.xxxxxxxxx.net:xxxx / xxxxxxx / #?deviceId=XXXXXXXXXXXX&TOKEN=tkn8s7d6f9g2h1j3k4m"; Step 4: User terminal QR code binding: The user scans the QR code using a browser or instant messaging application on the user terminal. The H5 page loads automatically and sends a binding request to the backend server. Step 5: Local saving of link information: Users can save the H5 page's link information locally using their browser bookmarks or instant messaging applications, making it convenient to use the H5 page directly next time.
[0044] Step 6: User terminal sends key command: When the user clicks a virtual key (such as "volume +") on the H5 page, the page generates a lightweight command: {"key_code": "KEY_VOLUME_UP", "timestamp": 1620000000}; which is then sent to the backend server via WebSocket: socket.send(JSON.stringify({ device_id: "XXXXXXXXXXXX ", command: "KEY_VOLUME_UP"})); Step 7: Backend server forwards remote control commands: The backend server queries the binding relationship and forwards the remote control commands to the corresponding TV terminal; Step 8: TV-side command parsing and execution: The TV-side resident service listens for server messages, parses commands, and calls the Android system API to simulate key events; it then calls the Android interface to execute the key events: Instrumentationinstrumentation = new Instrumentation(); instrumentation.sendKeyDownUpSync(keycode).
[0045] In this embodiment, the TV generates a QR code containing a temporary token, and the mobile phone scans the code to automatically complete the authentication, replacing the manual input of IP / account; it provides a pure H5 control terminal architecture: the browser standard WebSocket communication realizes the transmission of instructions, without the need to install native applications; it adopts a lightweight instruction protocol to transmit only key codes (not interface data), realizing low-latency control across networks; the TV triggers system events by parsing JSON instructions through Android input commands.
[0046] Please refer to Figure 4 This is a schematic diagram of the structure of a set-top box remote control system provided in an embodiment of this application. For example, as shown... Figure 4 As shown, the set-top box remote control system 400 includes a set-top box 401, a back-end server 402, and a user terminal 403. The set-top box 401 is used to: obtain the unique device token of the set-top box from the backend server when the set-top box is started; The set-top box 401 is also used to: generate a target QR code for the set-top box based on the device unique token, the device serial number of the set-top box, and the H5 page address, and the target QR code is used to display on the TV interface connected to the set-top box; The user terminal 403 is used to: scan the target QR code to remotely control the set-top box.
[0047] Optionally, the user terminal 403 is further configured to: scan the target QR code and load the target H5 page corresponding to the H5 page address in the user terminal; bind the target H5 page to the set-top box; trigger the target virtual button in the target H5 page and generate a remote control command; and remotely control the set-top box based on the remote control command.
[0048] Optionally, the user terminal 403 is further configured to: send a binding request to the backend server when the user terminal loads the target H5 page; The backend server 402 is further configured to: upon receiving the binding request, perform a validity check on the binding request; and, if the validity check passes, create a target binding relationship between the user terminal and the set-top box. Optionally, the user terminal 403 is further configured to: send the remote control command to the backend server; The backend server 402 is further configured to: forward the remote control command to the set-top box bound to the user terminal based on the target binding relationship; The set-top box 401 is also used to: receive and execute the remote control command to realize remote control of the set-top box.
[0049] Optionally, the backend server 402 is further configured to: obtain the device unique token from the binding request; verify the device unique token; and, if the verification passes, determine that the binding request has passed the legality verification.
[0050] Optionally, the backend server 402 is further configured to: obtain the webpage identifier of the target H5 page from the binding request; bind the webpage identifier with the device serial number of the set-top box to create the target binding relationship between the user terminal and the set-top box.
[0051] Optionally, the user terminal 403 is further configured to: receive a save operation on the target H5 page to save the target H5 page, so that the user terminal can remotely control the set-top box based on the saved target H5 page.
[0052] In summary, this application provides a remote control system for set-top boxes: a target QR code is generated based on the set-top box's unique device token, device serial number, and H5 page address assigned by a backend server. This allows user terminals to remotely control the set-top box by scanning the target QR code. The entire remote control process requires no specific application installation, is ready to use upon scanning, and is not limited by local area networks or orientation, significantly improving transmission distance and anti-interference capabilities. Furthermore, automatic authentication via QR code scanning eliminates the need for manual IP address input, simplifying the device binding process. The unique device token mechanism also avoids IP address changes and reduces user learning and usage costs. Additionally, using a pure H5 page as the control terminal eliminates the need for app installation; users can remotely control the set-top box via instant messaging applications, browsers, etc., achieving cross-platform compatibility and seamless device replacement. It also eliminates the need for adaptation to multiple system versions, further reducing set-top box development costs. Moreover, using a backend server as a relay for remote control command transmission enables interoperability across any network, greatly ensuring communication success rates. An exemplary embodiment of this application also provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor. The memory stores a computer program executable by the at least one processor, which, when executed by the at least one processor, causes the electronic device to perform a set-top box remote control method according to an embodiment of this application. It should be noted that the electronic device can be a set-top box, a back-end server, or a user terminal as shown in the above embodiments.
[0053] An exemplary embodiment of this application also provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a computer's processor, is used to cause the computer to perform a set-top box remote control method according to an embodiment of this application.
[0054] An exemplary embodiment of this application also provides a computer program product, including a computer program, wherein, when executed by a computer's processor, the computer program is used to cause the computer to perform a set-top box remote control method according to an embodiment of this application.
[0055] refer to Figure 5 The present invention describes a structural block diagram of an electronic device 500 that can serve as a server or client of this application, which is an example of a hardware device that can be applied to various aspects of this application. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.
[0056] like Figure 5 As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. The RAM 503 may also store various programs and data required for the operation of the electronic device 500. The computing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0057] Multiple components in electronic device 500 are connected to I / O interface 505, including: input unit 506, output unit 507, storage unit 508, and communication unit 509. Input unit 506 can be any type of device capable of inputting information to electronic device 500. Input unit 506 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of electronic device. Output unit 507 can be any type of device capable of presenting information and may include, but is not limited to, a display, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 508 may include, but is not limited to, disk and optical disk. Communication unit 509 allows electronic device 500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and / or chipsets, such as Bluetooth devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.
[0058] Optionally, the electronic device 500 also includes a single-channel EEG signal acquisition module (not shown in the figure). This module is used to acquire EEG signals and transmit them to the signal processor of the electronic device 500 for EEG signal processing.
[0059] The computing unit 501 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above. For example, in some embodiments, the methods shown in the above embodiments can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 500 via ROM 502 and / or communication unit 509. In some embodiments, the computing unit 501 can be configured to perform the methods shown in the above embodiments by any other suitable means (e.g., by means of firmware).
[0060] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0061] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0062] As used in this application, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0063] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0064] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0065] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.
Claims
1. A method for remote control of a set-top box, characterized in that, The method is applied to a set-top box remote control system, which includes a set-top box, a backend server, and a user terminal. The method includes: When the set-top box is started, the device's unique token is obtained from the backend server through the set-top box; The set-top box generates a target QR code based on the device's unique token, the device serial number, and the H5 page address. The target QR code is used to display on the TV interface connected to the set-top box. The set-top box can be remotely controlled by scanning the target QR code using the user terminal.
2. The method according to claim 1, characterized in that, The step of remotely controlling the set-top box by scanning the target QR code through the user terminal includes: The user terminal scans the target QR code and loads the target H5 page corresponding to the H5 page address in the user terminal. The user terminal is bound to the set-top box based on the target H5 page; The user terminal triggers the target virtual button on the target H5 page and generates a remote control command; The user terminal can remotely control the set-top box based on the remote control commands.
3. The method according to claim 2, characterized in that, The binding of the user terminal to the set-top box based on the target H5 page includes: When the target H5 page is loaded on the user terminal, a binding request is sent to the backend server through the user terminal; Upon receiving the binding request, the backend server performs a validity check on the binding request. If the legitimacy verification passes, a target binding relationship is created between the user terminal and the set-top box through the backend server.
4. The method according to claim 3, characterized in that, The method of remotely controlling the set-top box via the user terminal based on the remote control command includes: The remote control command is sent to the backend server via the user terminal; The backend server forwards the remote control command to the set-top box bound to the user terminal based on the target binding relationship. The set-top box receives and executes the remote control command to achieve remote control of the set-top box.
5. The method according to claim 3, characterized in that, The step of verifying the validity of the binding request through the backend server includes: The device's unique token is obtained from the binding request through the backend server; The unique token of the device is verified by the backend server; If the verification passes, the backend server confirms that the binding request has passed the validity verification.
6. The method according to claim 3, characterized in that, The step of creating a target binding relationship between the user terminal and the set-top box through the backend server includes: The backend server obtains the webpage identifier of the target H5 page from the binding request; The backend server binds the webpage identifier to the device serial number of the set-top box to create the target binding relationship between the user terminal and the set-top box.
7. The method according to claim 2, characterized in that, The method further includes: The user terminal receives a save operation on the target H5 page to save the target H5 page, so that the user terminal can remotely control the set-top box based on the saved target H5 page.
8. A remote control system for a set-top box, characterized in that, The set-top box remote control system includes a set-top box, a back-end server, and a user terminal: The set-top box is used to: obtain the unique device token of the set-top box from the backend server when the set-top box is started; The set-top box is also used to: generate a target QR code for the set-top box based on the device's unique token, the device serial number of the set-top box, and the H5 page address. The target QR code is used to display on the interface of a television connected to the set-top box. The user terminal is used to remotely control the set-top box by scanning the target QR code.
9. An electronic device, comprising: processor; as well as Stored program memory, The program includes instructions that, when executed by the processor, cause the processor to perform the set-top box remote control method according to any one of claims 1-7.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to execute the set-top box remote control method according to any one of claims 1-7.