Star flash-based set top box and television double-control method and system
Through the pairing and status acquisition mechanism of the star flash remote control and the adapter, dual control of the intelligent set-top box and the TV is realized, solving the complex operation of multiple remote controls, and improving the convenience of user experience and device management.
Patent Information
- Application Number
- CN202510485394.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-17
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2045-04-17
AI Technical Summary
The existing control solutions for smart set-top boxes and smart TVs require multiple remote controls, which increases the user's operation complexity and device management difficulty, and traditional Bluetooth remote controls cannot achieve simultaneous control of multiple devices.
The star flash remote control is used to connect and pair with the first adapter and the second adapter, and the source status and floating window status of the TV are obtained through the preset protocol, the control mode is adaptively determined, and the key data or voice data is sent to the corresponding device through the star flash communication protocol to realize dual control.
Simplifies user operations and ensures that users can directly control the current active devices, improving the convenience of user experience and device management.
Smart Images

Figure CN120281950A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of set-top boxes and televisions, and particularly to a dual-control method and system for a set-top box and a television based on SparkLink. Background Art
[0002] With the continuous development of smart home devices, smart set-top boxes and smart TVs have gradually become the core components of the home entertainment system. When users use these devices, they often need to operate the set-top box and the TV respectively through different remote controls. However, there are some problems with the current operation methods of smart set-top boxes and smart TVs, mainly reflected in the need for multiple remote controls to control different devices, which increases the operation complexity for users and the difficulty of device management.
[0003] In traditional smart TV and smart set-top box control solutions, users need to connect, pair, and operate with the TV or set-top box respectively through Bluetooth remote controls. Specifically, remote control A is paired with the smart set-top box, and key commands or voice data are sent to the set-top box through Bluetooth technology to achieve control of the set-top box; while remote control B is paired with the smart TV and sends control signals to the smart TV to achieve functional operations. The disadvantage of this solution is that if users need to switch functions between the smart set-top box and the smart TV, they often need to use two remote controls to operate different functions of the TV and the set-top box respectively. For example, when users need to use the service function of the smart TV, they need to first use remote control B to switch the signal source and then operate; and if users want to use the service function of the set-top box, they must first switch the signal source through remote control B and then switch to remote control A to control the set-top box.
[0004] In addition, the existing technical solutions rely on traditional Bluetooth remote controls. Limited by the limitations of Bluetooth technology, it is impossible to use one remote control to simultaneously control multiple devices (such as a smart set-top box and a smart TV). This limitation makes it necessary for users to hold multiple remote controls at the same time, which not only increases the operation complexity but also brings troubles in managing and finding the remote controls.
[0005] Therefore, there is an urgent need for a dual-control method and system for a set-top box and a television based on SparkLink. Summary of the Invention
[0006] The present invention provides a dual-control method and system for a set-top box and a television based on SparkLink to solve the above problems existing in the prior art.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A dual-control method for a set-top box and a television based on SparkLink, comprising:
[0009] S1: The SparkLink remote control acts as a server to connect and pair with the first adapter and the second adapter. The first adapter and the second adapter act as clients and are respectively connected to the set-top box and the TV, generating a paired connection relationship.
[0010] S2: Based on the paired connection relationship, the second adapter obtains the source state and floating window state of the TV through a preset protocol, and transmits the status information to the remote control, generating a basis for judging the control mode.
[0011] S3: Based on the basis for judging the control mode, the remote control adaptively determines that the current control mode is the set-top box mode and / or the TV mode, and sends button data or voice data to the corresponding first adapter and / or second adapter through the SparkLink communication protocol. The first adapter and / or the second adapter transmit the data to the set-top box and / or the TV to achieve dual control.
[0012] Among them, step S1 includes:
[0013] S11: The SparkLink remote control, the first adapter, and the second adapter enable the SparkLink protocol during startup.
[0014] S12: The SparkLink remote control enters the pairing state, sets public parameters, initiates a pairing broadcast, and makes the SparkLink remote control device public.
[0015] S13: The first adapter enters the pairing state, sets discovery parameters, initiates a device discovery request, and discovers the SparkLink remote control device to be connected.
[0016] S14: After the first adapter discovers the SparkLink remote control device, it sends a connection request to the SparkLink remote control, and the SparkLink remote control responds to the connection request to establish a connection.
[0017] S15: After the first adapter detects a successful connection, it sends a pairing request to the SparkLink remote control. The SparkLink remote control processes the pairing request and saves the pairing information of the first adapter, generating a paired connection relationship with the first adapter.
[0018] S16: Repeat the above steps S12 to S15 to complete the connection and pairing of the SparkLink remote control with the second adapter, generating a paired connection relationship with the second adapter.
[0019] Among them, step S2 includes:
[0020] S21: The second adapter communicates with the TV through the HID protocol, encapsulates the HID report descriptor according to the first characteristic UUID, sends a source state request to the TV, and receives the source state returned by the TV.
[0021] S22: The second adapter communicates with the TV via the HID protocol, encapsulates the HID report descriptor according to the second characteristic UUID, sends a floating window status request to the TV, and receives the floating window status returned by the TV;
[0022] S23: After obtaining the source status and the floating window status, the second adapter transmits the source status and the floating window status to the remote control via the StarFlash communication protocol to generate a basis for judging the control mode;
[0023] Among them, the second adapter communicates with the TV based on a preset pairing connection relationship, and the pairing connection relationship is established via the StarFlash communication protocol.
[0024] Among them, step S3 includes:
[0025] S31: The remote control determines the current control mode according to the received source status and floating window status, where:
[0026] When the source status is TV or others, determine that the current control mode is the TV mode;
[0027] When the source status is the set-top box and the floating window status is no floating window, determine that the current control mode is the set-top box mode;
[0028] When the source status is the set-top box and the floating window status is a floating window, determine that the current control mode is the TV mode;
[0029] S32: The remote control sends the key data or voice data to the corresponding first adapter and / or second adapter via the StarFlash communication protocol according to the determined current control mode;
[0030] S33: The first adapter and / or the second adapter transmit the received key data or voice data to the set-top box and / or the TV to achieve dual control.
[0031] Among them, step S11 includes:
[0032] S111: The StarFlash remote control calls the enable_sle interface to enable the StarFlash protocol and activate the StarFlash communication function of the remote control;
[0033] S112: The first adapter and the second adapter respectively call the enable_sle interface to enable the StarFlash protocol and activate the StarFlash communication function of the adapter;
[0034] S113: The StarFlash remote control and the first adapter and the second adapter complete the enabling operation to generate an initial state of the StarFlash protocol for communication.
[0035] Among them, step S12 includes:
[0036] S121: The StarFlash remote control calls the sle_set_announce_param interface to set the public parameters and define the pairing broadcast content;
[0037] S122: The StarFlash remote control calls the sle_start_announce interface to initiate a pairing broadcast and disclose its device information;
[0038] S123: The StarFlash remote control enters the discoverable state and generates a pairing broadcast signal.
[0039] Among them, it also includes:
[0040] S4: The StarFlash remote control downloads the key values corresponding to the set-top box and the TV;
[0041] S4 includes:
[0042] S41: The StarFlash remote control enters the key value download state and initializes the download process;
[0043] S42: The StarFlash remote control interacts with the key value management application of the set-top box and obtains the key value data through an HTTPS request;
[0044] S43: The key value management application sends the key value data in packets through the service characteristic UUID. The StarFlash remote control receives, assembles, and performs CRC verification to complete the download and storage of the key values.
[0045] Among them, the key data sending in step S32 includes:
[0046] S321: The StarFlash remote control determines whether there are downloaded key values. If so, it uses the downloaded key values to replace the default key values;
[0047] S322: The StarFlash remote control sends the replaced key values to the corresponding first adapter or second adapter through the StarFlash communication protocol;
[0048] S323: The first adapter or the second adapter receives the key values and forwards them to the set-top box or the TV to achieve control of the set-top box or the TV.
[0049] Among them, the voice data sending in step S32 includes:
[0050] When the user presses the voice key, the StarFlash remote control enters the voice pickup state. The microphone collects the audio data and encodes and compresses it using the SBC algorithm to generate compressed audio data;
[0051] The StarFlash remote control sends the compressed audio data to the corresponding first adapter or second adapter through the StarFlash communication protocol;
[0052] The first adapter or the second adapter receives compressed audio data, decodes it using the SBC algorithm to generate PCM data, and transmits it to the set-top box or the TV through the UAC standard to achieve voice control of the set-top box or the TV.
[0053] Among them, a dual-control system for a set-top box and a TV based on SparkLink includes:
[0054] A remote control module is used for the SparkLink remote control to be connected and paired with the first adapter and the second adapter as a server. The first adapter and the second adapter are respectively connected to the set-top box and the TV as clients to generate a paired connection relationship.
[0055] A status acquisition module is used to, based on the paired connection relationship, the second adapter acquires the source status and floating window status of the TV through a preset protocol, and transmits the status information to the remote control to generate a basis for judging the control mode.
[0056] A control module is used to, based on the basis for judging the control mode, the remote control adaptively determines that the current control mode is the set-top box mode and / or the TV mode, and sends key data or voice data to the corresponding first adapter and / or second adapter through the SparkLink communication protocol. The first adapter and / or the second adapter transmits it to the set-top box and / or the TV to achieve dual control.
[0057] Compared with the prior art, the present invention has the following advantages:
[0058] A dual-control method for a set-top box and a TV based on SparkLink includes: S1: The SparkLink remote control is connected and paired with the first adapter and the second adapter as a server. The first adapter and the second adapter are respectively connected to the set-top box and the TV as clients to generate a paired connection relationship; S2: Based on the paired connection relationship, the second adapter acquires the source status and floating window status of the TV through a preset protocol, and transmits the status information to the remote control to generate a basis for judging the control mode; S3: Based on the basis for judging the control mode, the remote control adaptively determines that the current control mode is the set-top box mode and / or the TV mode, and sends key data or voice data to the corresponding first adapter and / or second adapter through the SparkLink communication protocol. The first adapter and / or the second adapter transmits it to the set-top box and / or the TV to achieve dual control. The remote control adaptively determines that the current control mode is the set-top box mode and / or the TV mode according to the source status and floating window status of the TV transmitted by the adapter. This adaptive mechanism simplifies the user operation and ensures that the user can directly control the currently active device.
[0059] Other features and advantages of the present invention will be described in the subsequent specification, and some of them will become obvious from the specification or be understood by implementing the present invention.
[0060] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Description of the Drawings
[0061] The accompanying drawings are used to provide a further understanding of the present invention, and constitute a part of the specification. They are used together with the embodiments of the present invention to explain the present invention, but do not constitute a limitation to the present invention. In the drawings:
[0062] Figure 1 is a flowchart of a dual-control method for a set-top box and a television based on SparkLink in an embodiment of the present invention;
[0063] Figure 2 is a flowchart of generating a basis for judging a control mode in an embodiment of the present invention;
[0064] Figure 3 is a structural diagram of a dual-control system for a set-top box and a television based on SparkLink in an embodiment of the present invention. Detailed Embodiments
[0065] The following describes the preferred embodiments of the present invention with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to explain and illustrate the present invention, and are not used to limit the present invention.
[0066] The embodiment of the present invention provides as Figure 1 shown, a dual-control method for a set-top box and a television based on SparkLink, including:
[0067] S1: The SparkLink remote control is connected and paired with the first adapter and the second adapter as the server. The first adapter and the second adapter are connected to the set-top box and the television respectively as clients to generate a paired connection relationship;
[0068] S2: Based on the paired connection relationship, the second adapter obtains the source state and floating window state of the television through a preset protocol, and transmits the state information to the remote control to generate a basis for judging the control mode;
[0069] S3: Based on the basis for judging the control mode, the remote control adaptively determines that the current control mode is the set-top box mode and / or the television mode, and sends the key data or voice data to the corresponding first adapter and / or second adapter through the SparkLink communication protocol. The first adapter and / or the second adapter transmit it to the set-top box and / or the television to achieve dual control.
[0070] The working principle of the above technical solution is as follows: The user pairs the SparkLink remote control with the two adapters. The first adapter is connected to the smart set-top box (such as adapter A), and the second adapter is connected to the smart TV (such as adapter B). The pairing process is as follows:
[0071] As a server, the remote control makes itself public after startup, enabling the adapter to discover it.
[0072] As a client, the adapter searches for and connects to the remote control in sequence to complete the pairing.
[0073] After successful pairing, the remote control establishes a stable connection with the set-top box and the TV, laying the foundation for subsequent control.
[0074] The remote control has some default button settings built-in. However, if it fails to control the set-top box or TV properly, users can update the button key values through the following steps:
[0075] The remote control connects to the button management application of the set-top box.
[0076] According to the brand and model of the device, download the corresponding button data from the cloud.
[0077] After the download is complete, the remote control stores this data and replaces the default buttons when in use.
[0078] In this way, the remote control can send commands accurately and adapt to devices of different brands.
[0079] The adapter requests two types of status information from the TV regularly: Source status: Which device's signal is currently being displayed on the TV, such as the TV itself (status 1), the set-top box (status 2), or other devices (status 0). Floating window status: Whether there is a floating window displayed on the TV, such as no floating window (status 0) or there is a floating window (status 1). This information is transmitted to the remote control via the XingShan protocol to help it determine which device to control.
[0080] The remote control automatically decides whether to control the set-top box or the TV based on the TV's status: If the TV is displaying the signal of the TV itself or other devices, the remote control switches to TV mode. If the TV is displaying the set-top box signal and there is no floating window, the remote control switches to set-top box mode. If the TV is displaying the set-top box signal but there is a floating window, the remote control switches to TV mode. This adaptive function allows users not to manually adjust, and the remote control can intelligently select the control object according to the screen content.
[0081] When the user presses a button on the remote control: The remote control sends the button data to the corresponding adapter via the XingShan protocol according to the current mode (set-top box mode or TV mode). The adapter then transmits the data to the set-top box or the TV to complete the operation. If the XingShan connection is interrupted, the remote control will switch to infrared mode and continue to send button commands to ensure that the control is not interrupted.
[0082] When the user presses the voice key: The remote control activates the microphone, collects voice commands and compresses and encodes them. The compressed voice data is sent to the adapter via the StarFlash protocol. After the adapter decodes the data, it transmits it to the set-top box or TV to achieve voice control. The voice control will also be sent to the correct device according to the current mode.
[0083] In addition to automatic switching, the user can also manually adjust the control mode by pressing a button: Press the
Watch TV key
OTT key
[0084] Through the above steps, a StarFlash remote control can control both the smart set-top box and the smart TV at the same time: Automatic mode: The remote control intelligently switches according to the TV state to ensure that the user is operating the currently displayed device. Manual mode: The user actively switches by pressing a button to meet personalized needs. Whether it is a button press or a voice command, the remote control can accurately send it to the target device to achieve seamless dual control.
[0085] The beneficial effects of the above technical solution are: Through the StarFlash technology, a StarFlash remote control can be paired, connected, and bound with two adapters to control the smart set-top box and the smart TV respectively, realizing the dual control function. The remote control adaptively determines the current control mode as the set-top box mode and / or the TV mode according to the TV source state and floating window state transmitted by the adapter. This adaptive mechanism simplifies the user operation and ensures that the user can directly control the currently active device. At the same time, the low latency and high reliability characteristics of the StarFlash communication protocol make the transmission of button data or voice data fast and stable, improving the user experience.
[0086] In another embodiment, step S1 includes:
[0087] S11: When the StarFlash remote control and the first adapter and the second adapter are started, they perform an enabling operation on the StarFlash protocol;
[0088] S12: The StarFlash remote control enters the pairing state, sets public parameters, initiates a pairing broadcast, and makes the StarFlash remote control device public;
[0089] S13: The first adapter enters the pairing state, sets discovery parameters, initiates a device discovery request, and discovers the StarFlash remote control device to be connected;
[0090] S14: After the first adapter discovers the StarFlash remote control device, it initiates a connection request to the StarFlash remote control, and the StarFlash remote control responds to the connection request to establish a connection;
[0091] S15: After the first adapter detects a successful connection, it sends a pairing request to the SparkLink remote control. The SparkLink remote control processes the pairing request and saves the pairing information of the first adapter, generating a pairing connection relationship with the first adapter.
[0092] S16: Repeat the above steps S12 to S15 to complete the connection and pairing of the SparkLink remote control with the second adapter, generating a pairing connection relationship with the second adapter.
[0093] The working principle of the above technical solution is as follows: When the user picks up the SparkLink remote control, they can use it to operate the smart set-top box or smart TV without using multiple remote controls. The remote control achieves this function by pairing with two adapters: the first adapter is connected to the smart set-top box (e.g., adapter A), and the second adapter is connected to the smart TV (e.g., adapter B). Here, the "adapter" refers to a small device that wirelessly interacts with the remote control through the SparkLink protocol (a dedicated communication protocol).
[0094] The working mode of the remote control is divided into two types: Set-top box mode: Controls the smart set-top box; TV mode: Controls the smart TV. The system automatically selects the mode according to the current state of the TV, and the user can also manually switch through the buttons on the remote control to ensure that they can control the device they want to operate at any time.
[0095] Before use, the remote control needs to establish a connection with two adapters, and this process is called "pairing". The following are the specific steps of pairing:
[0096] Start the SparkLink protocol: When the remote control and the adapter are powered on, they call the enable_sle interface to enable the SparkLink protocol function. Simply put, this is like opening a "wireless communication channel" that allows devices to communicate with each other. The remote control enters the pairing state: The remote control sets some public parameters (such as the content to be broadcast) by calling sle_set_announce_param, and then starts broadcasting and making itself public by calling sle_start_announce. The first adapter searches for the remote control: Adapter A (for example, for a set-top box) enters the pairing state, sets the discovery parameters by calling sle_set_seek_param, and then starts searching for nearby devices through sle_start_seek. It discovers the "broadcast signal" of the remote control. Establish a connection: Adapter A sends a connection request to the remote control. After receiving the request, the remote control responds, and the two parties establish a connection. Complete the pairing: After the connection is successful, Adapter A initiates a pairing request. The remote control processes the request and saves the unique identifier of Adapter A (such as the MAC address, similar to the "ID card number" of the device), and officially establishes a pairing relationship. Repeat the pairing for the second adapter: The remote control repeats the above steps to complete the pairing with Adapter B (for example, for a TV). Finally, the remote control establishes connections with both adapters. After the pairing is completed, the remote control acts like a "server" (Server side), and the adapter is the "client" (Client side), and they can communicate with each other through the SparkLink protocol at any time. Mode switching during use: After the pairing is completed, the user can control the device through the remote control. The system will automatically or manually switch the mode according to the specific situation to ensure that the user is operating the device required at the moment.
[0097] Automatic mode selection: Adapter B (the adapter connected to the TV) will obtain the "source status" of the TV in real time (such as whether the current input is HDMI or others) and the "floating window status" (whether there is the TV's own interface covering). Based on this information, the system determines the mode of the remote control: If the TV shows the HDMI output of the set-top box and there is no floating window, the remote control automatically enters the set-top box mode, and the button operations will control the set-top box. If the TV shows other input sources or there is a floating window, the remote control enters the TV mode, and the button operations will control the TV. This automatic switching is like a smart assistant that silently judges what the user is watching and adjusts the functions of the remote control, allowing the user to directly operate the "what you see is what you get" interface. Manual mode switching: The user can also actively control the mode. Press the "Watch TV button" on the remote control, and the remote control switches to the set-top box mode, which is convenient for controlling the smart set-top box (such as changing channels and adjusting the volume). Press the "OTT button", and the remote control switches to the TV mode for operating the smart TV (such as adjusting settings and browsing the menu).
[0098] Adaptive after standby wake-up: When the set-top box or TV wakes up from standby, the remote control automatically adjusts the mode according to the device's status. For example, if the TV shows the set-top box content after startup, the remote control enters the set-top box mode. If the user needs to change the mode, they can still manually switch it through the "Watch TV button" or "OTT button".
[0099] The beneficial effects of the above technical solution are as follows: The pairing and connection process between the SparkLink remote control and the two adapters is achieved through the enabling and broadcasting mechanisms of the SparkLink protocol, ensuring the stability and security of the connection. One remote control can establish pairing relationships with Adapter A (for smart set-top box) and Adapter B (for smart TV) respectively. This pairing mechanism lays the foundation for subsequent dual-control operations, enabling users to seamlessly control two devices with a single remote control, reducing the cumbersome switching of multiple remote controls, and improving operation convenience.
[0100] In another embodiment, as Figure 2 shown, step S2 includes:
[0101] S21: The second adapter communicates with the TV through the HID protocol, encapsulates the HID report descriptor according to the first characteristic UUID, sends a source status request to the TV, and receives the source status returned by the TV;
[0102] S22: The second adapter communicates with the TV through the HID protocol, encapsulates the HID report descriptor according to the second characteristic UUID, sends a floating window status request to the TV, and receives the floating window status returned by the TV;
[0103] S23: After obtaining the source status and floating window status, the second adapter transmits the source status and floating window status to the remote control through the SparkLink communication protocol to generate a basis for judging the control mode;
[0104] Among them, the second adapter communicates with the TV based on a preset pairing and connection relationship, and the pairing and connection relationship is established through the SparkLink communication protocol.
[0105] The working principle of the above technical solution is as follows: The adapter, as a standard USB device, integrates the HID protocol (Human Interface Device protocol) internally, which is a common communication standard that allows devices to exchange data with a host (such as a TV) through the USB interface. The second adapter communicates with the TV based on a preset pairing and connection relationship, and this pairing relationship is established through the SparkLink communication protocol (SparkLink, a low-power and high-rate wireless communication technology), ensuring the security and stability of communication.
[0106] The specific implementation steps include:
[0107] S21: Obtain the source status. The second adapter communicates with the TV via the HID protocol and encapsulates the HID report descriptor using the predefined first characteristic UUID (Universally Unique Identifier) "19ee51a4-9ad3-7e6f-e4e7-ebc33f46a071". The HID report descriptor is a normative description for the adapter to explain its functions and data formats to the TV.
[0108] The adapter sends a source status request to the TV. The source status refers to the current signal source used by the TV, such as TV signal, HDMI input, or USB input, etc.
[0109] The TV returns a status code according to the current source:
[0110] 0: Represents other sources;
[0111] 1: Represents the TV (i.e., TV signal);
[0112] 2: Represents other sources (such as HDMI, USB, etc.).
[0113] S22: Obtain the floating window status. The adapter continues to communicate with the TV via the HID protocol and encapsulates the HID report descriptor using the predefined second characteristic UUID "19ee51a4-9ad3-7e6f-e4e7-ebc33f46a073". The adapter sends a floating window status request to the TV. The floating window status refers to whether a floating window is displayed on the TV screen, such as picture-in-picture, menu, or settings interface, etc.
[0114] The TV returns a floating window status code:
[0115] 0: Represents only the source floating window (i.e., only display the floating window related to the source);
[0116] 1: Represents the TV floating window (i.e., display the floating window of the TV itself, such as menu or settings interface).
[0117] S23: Transmit the status to the remote control. After obtaining the source status and floating window status, the second adapter transmits these status data to the remote control via the NearLink communication protocol. After receiving the data, the remote control generates a judgment basis for the control mode according to the current source and floating window status of the TV. For example, when the source is HDMI and there is no floating window, the remote control may switch to the control mode suitable for external devices.
[0118] In addition, the remote control is default built with the HID key values and infrared key values of smart set-top boxes and smart TVs for basic control operations. However, when the user finds that the remote control buttons cannot control a specific device, the remote control will download the corresponding button key value data from the key value library according to the brand and model of the device to achieve compatibility control. This process is completed by interacting with the button key value management application on the set-top box side.
[0119] The specific implementation steps include:
[0120] Enter the button key value download state. When the remote control detects that the buttons cannot control the device normally, it automatically enters the button key value download state to prepare for obtaining new key value data.
[0121] Interact with the button key value management application on the set-top box side. The remote control establishes a connection with the button key value management application on the smart set-top box side and synchronizes the version information of the remote control to ensure that the downloaded key value data is compatible with the remote control.
[0122] Request button data. The button key value management application requests the corresponding button key value data from the front-end server according to the brands and models of the smart set-top box and smart TV selected by the user through HTTPS (Hypertext Transfer Protocol Secure). The HTTPS protocol ensures the security of data transmission by encryption, for example, preventing data from being intercepted or tampered with.
[0123] Receive and process the button key value data. The button key value management application sends the button key value data in packets to the remote control through the specific service characteristic UUID "10111213-1415-1617-1819-1a1b1c1d2b31". After receiving each data packet, the remote control sends a response signal to ensure the integrity of data transmission. After receiving is completed, the remote control assembles the data packets and verifies the correctness of the data through CRC check (Cyclic Redundancy Check). CRC is an error detection method that confirms whether a transmission error has occurred by calculating the check value of the data.
[0124] Parse and store the button key values. The remote control parses the received button key value data, extracts the key values that match the device brand and model, such as "the corresponding code value of the power button is 0x01" or "the corresponding code value of volume up is 0x02". The parsed key values are stored in the local storage of the remote control for subsequent use.
[0125] Transmission button: When the user presses a button on the remote control, the remote control first checks whether the downloaded button key values are stored. If there are stored downloaded key values, the remote control replaces the default key values with the downloaded key values and sends the replaced key values to control the device. For example, if the default key value of the "volume up" button is 0x03 and the downloaded key value is 0x02, then 0x02 is sent. If there are no stored downloaded key values, the remote control uses the default key values (such as HID key values or infrared key values) for control.
[0126] The beneficial effects of the above technical solution are as follows: The adapter obtains the source state and floating window state of the smart TV through the HID protocol and transmits this information to the XingFlash remote control, enabling the remote control to understand the current state of the TV in real time. This state synchronization mechanism determines the control mode of the remote control. For example, when the source is an HDMI set-top box and there is no floating window, the remote control is in the set-top box mode; otherwise, it is in the TV mode. Users can directly operate the visible interface without manually judging the device state, significantly improving the intelligence of control and the intuitiveness of user operations.
[0127] In another embodiment, step S3 includes:
[0128] S31: The remote control determines the current control mode according to the received source state and floating window state, where:
[0129] When the source state is the TV or other, it is determined that the current control mode is the TV mode;
[0130] When the source state is the set-top box and the floating window state is no floating window, it is determined that the current control mode is the set-top box mode;
[0131] When the source state is the set-top box and the floating window state is there is a floating window, it is determined that the current control mode is the TV mode;
[0132] S32: The remote control sends the button data or voice data to the corresponding first adapter and / or second adapter through the XingFlash communication protocol according to the determined current control mode;
[0133] S33: The first adapter and / or second adapter transmits the received button data or voice data to the set-top box and / or the TV to achieve dual control.
[0134] Among them, it specifically includes:
[0135] The remote control obtains the source state and floating window state of the current device in real time through the built-in signal receiving module; among them, the source state includes the TV, set-top box or other device types, and the floating window state includes there is a floating window or no floating window; the received source state and floating window state data are transmitted to the control unit of the remote control through a preset data interface for processing;
[0136] Determine the current control mode, including: The remote control determines the current control mode according to the received source state and floating window state through a preset logical judgment rule; Specifically, the logical judgment rule includes:
[0137] When the source state is a TV or other non-set-top box device, determine that the current control mode is the TV mode;
[0138] When the source state is the set-top box and the floating window state is no floating window, determine that the current control mode is the set-top box mode;
[0139] When the source state is the set-top box and the floating window state is a floating window, determine that the current control mode is the TV mode;
[0140] The logical judgment is executed by the microprocessor built into the remote control, and the judgment result is stored in the register of the control unit for subsequent data sending operations.
[0141] Step S32 includes: The remote control sends the button data or voice data input by the user to the corresponding first adapter and / or second adapter through the SparkLink communication protocol according to the determined current control mode; Among them:
[0142] In the TV mode, the data is preferentially sent to the first adapter associated with the TV;
[0143] In the set-top box mode, the data is preferentially sent to the second adapter associated with the set-top box;
[0144] During the sending process, the remote control encodes and compresses the button data or voice data, and ensures the real-time nature of data transmission through the low-latency characteristic of the SparkLink communication protocol.
[0145] Step S33 (data is transmitted to the target device to achieve dual control) includes: After receiving the button data or voice data, the first adapter and / or the second adapter decodes and transmits it to the corresponding set-top box and / or TV, realizing the dual control of the remote control over the set-top box and the TV; Among them, the adapter is connected to the target device through a preset communication interface, supporting the efficient forwarding and execution of data;
[0146] The method also includes dynamically optimizing the control mode switching rule through intelligent control logic, and the specific implementation method is as follows:
[0147] The remote control is built with a machine learning module, which adopts a neural network algorithm to collect and analyze the operation historical data of the user under different source states and floating window states in real time, including button usage frequency, mode switching habits, and voice command preferences;
[0148] Based on the analysis results, the machine learning module predicts the user's intention and dynamically adjusts the control mode switching rules. For example, when it detects that the user frequently operates TV-related functions under the set-top box source, it automatically adjusts the logic rules and preferentially switches to the TV mode;
[0149] During the implementation process, the operation history data is stored in the local storage unit of the remote control, and the model parameters are updated every preset period (such as 24 hours) to ensure the accuracy of the prediction results;
[0150] The method also includes supporting users to customize the button functions and control mode switching rules, and the specific implementation method is as follows:
[0151] By developing a supporting mobile application or TV interface, users can manually configure the button mapping of the remote control. For example, a specific button can be set to quickly switch the source or execute complex instructions (such as turning off the TV and set-top box simultaneously);
[0152] Users can also define the control mode switching rules in specific scenarios. For example, set to preferentially control the set-top box in the "night mode", or lock the TV mode in the "game scenario";
[0153] The configuration data is transmitted to the remote control via Bluetooth or the XingFlash communication protocol and stored in its non-volatile memory to ensure its effectiveness even after a power outage;
[0154] During the implementation process, the supporting application provides a visual interface, supports users to edit the button functions in a drag-and-drop manner, and preview the configuration effect in real time;
[0155] To ensure the accuracy of the control mode, the method also includes a verification step for the source status and floating window status data:
[0156] The remote control periodically sends detection signals to the TV and the set-top box to obtain real-time status feedback data, and compares it with the received source status and floating window status;
[0157] When the data comparison result exceeds the preset allowable error range (such as the status response delay exceeds 100 milliseconds), an early warning message is output to the user interface (such as the mobile application), and the control mode switching is paused, waiting for the user or the system to confirm;
[0158] After the verification is passed, the control mode determination step is directly executed; when the verification fails, the abnormal data is recorded and uploaded to the cloud for subsequent optimization algorithms to use.
[0159] The working principle of the above technical solution is as follows: S31: The remote control determines the current control mode based on the source status and floating window status. The remote control receives the source status (indicating the current signal source) and floating window status (indicating whether there are additional windows or menus on the screen) information sent by the TV or set-top box in real time, and automatically determines which control mode should be in according to this information. This adaptive function allows users to seamlessly switch the control target without manual intervention. The specific judgment logic is as follows:
[0160] When the source status is "TV" or other devices: The current active device is recognized as the TV, and the remote control automatically switches to the TV mode. In this mode, the buttons pressed or voice commands issued by the user will directly control the TV. For example, pressing the "Volume +" button will adjust the volume of the TV.
[0161] When the source status is "set-top box" and the floating window status is "no floating window": The current active device is recognized as the set-top box, and the remote control automatically switches to the set-top box mode. In this mode, all operations of the user (such as changing channels or adjusting settings) will control the set-top box. For example, pressing the "Channel +" button will switch the TV channel of the set-top box.
[0162] When the source status is "set-top box" and the floating window status is "with floating window": Although the signal comes from the set-top box, there is a floating window on the screen (such as the TV's settings menu), the current active device is recognized as the TV, and the remote control switches back to the TV mode. At this time, the user operation will control the floating window interface on the TV. For example, pressing the "OK" button will select an option in the menu. This adaptive mechanism ensures that the remote control always stays consistent with the device the user is currently focusing on, providing a smooth operation experience.
[0163] S32: The remote control sends button or voice data through the StarFlash communication protocol. After determining the current control mode, the remote control sends the data to the corresponding device according to the user's operation (button or voice). The data transmission relies on the StarFlash communication protocol, which is a wireless communication technology similar to Bluetooth or Wi-Fi, but may have lower latency and higher bandwidth, especially suitable for real-time control scenarios. Button data sending: When the user presses a button on the remote control, the remote control will determine whether there is a pre-downloaded button key value (for example, the functions of some buttons may be customized). If so, it reads the corresponding key value to replace the default value; if not, it uses the default key value. Subsequently, the key value is sent to the adapter (an intermediate device responsible for forwarding the remote control signal to the TV or set-top box) through the StarFlash protocol. If the StarFlash connection is disconnected, the remote control will switch to sending the key value through infrared signals according to the current mode (TV mode or set-top box mode) to ensure that the control function is not interrupted. For example, in the TV mode, pressing the "Power" button will turn off the TV through infrared signals.
[0164] Voice data transmission: After the user presses the voice key, the remote control enters the voice pickup state, and the built-in microphone starts recording voice commands. The recorded audio data is compressed by the SBC algorithm (Sub-Band Coding). SBC is a common audio codec standard, especially used for wireless transmission. It works by dividing the audio into multiple frequency bands (sub-bands) and encoding each sub-band separately to reduce the data volume. Specific parameters include: Sampling rate: 16 kHz (16,000 samples per second). Block size: 16. Number of sub-bands: 8. Channel: Mono. The compressed audio data is sent to the adapter via the XingShan protocol.
[0165] S33: The adapter transfers the data to the set-top box and / or TV. After receiving the data sent by the remote control, the adapter processes it according to the data type (button or voice) and transfers it to the target device to achieve dual control. Button data processing: The adapter directly forwards the received key values to the TV or set-top box, depending on the current control mode. For example, in the set-top box mode, pressing the "Menu" key will open the settings interface of the set-top box.
[0166] Voice data processing: After receiving the compressed audio data, the adapter decodes it using the SBC algorithm and restores it to PCM data (Pulse Code Modulation, a digital audio format). The parameters of the PCM data are: Sampling rate: 16 kHz. Bit depth: 16 bits (quantization precision). Channel: Mono. Byte order: Little-endian (lower byte first). The decoded PCM data is transmitted to the TV or set-top box via the UAC standard (USB Audio Class). UAC is a common USB audio transmission protocol that defines how to control audio devices and transfer data through the USB interface. After receiving the PCM data, the TV or set-top box executes the voice command. For example, "Turn on CCTV1" will switch to the corresponding channel.
[0167] Additional function: Manually switch the control mode. In addition to the adaptive switch, the remote control also supports users to manually adjust the control mode to meet specific needs: Press the "Watch TV" key, and the remote control switches to the set-top box mode, and the user's operations will control the set-top box. Press the "OTT" key (OTT refers to "Over-The-Top", usually a device or service that provides video content over the Internet), and the remote control switches to the TV mode, and the user's operations will control the TV.
[0168] Through the above mechanism, the remote control realizes dual control of the TV and the set-top box: In the set-top box mode, all the user's button and voice commands are transmitted and control the set-top box. In the TV mode, all the user's operations are transmitted and control the TV.
[0169] Combined with adaptive judgment and manual switching, users can flexibly control two devices with one remote control. For example, when watching the set-top box program, press the "Watch TV Button" to switch the mode, and then say "Increase the volume" through voice to control the set-top box; while in the TV menu, it will automatically switch back to the TV mode for operation.
[0170] The beneficial effects of the above technical solution are as follows: The remote control adaptively determines the control mode according to the source state and the floating window state, and sends the control instruction to the corresponding first adapter and / or second adapter, ensuring that the user can always control the currently active device. For example, when the smart TV resumes after standby, the remote control can automatically adjust to the correct control mode. In addition, the user can also actively switch the mode through the
Watch TV Button
OTT Button
[0171] In another embodiment, step S11 includes:
[0172] S111: The StarFlash remote control calls the enable_sle interface to enable the StarFlash protocol and activate the StarFlash communication function of the remote control;
[0173] S112: The first adapter and the second adapter respectively call the enable_sle interface to enable the StarFlash protocol and activate the StarFlash communication function of the adapter;
[0174] S113: The StarFlash remote control and the first adapter, the second adapter complete the enabling operation, and generate an initial state of the StarFlash protocol that can communicate.
[0175] The working principle of the above technical solution is as follows: The connection and pairing process between the StarFlash remote control and the dual adapters is similar to the handshake communication between a "host" and two "clients". The StarFlash remote control acts as the Server side (the service side, responsible for actively broadcasting itself), and the two adapters act as the Client side (the client side, responsible for finding and connecting to the service side). Through a series of interface calls, the protocol activation, device discovery, and pairing connection are gradually completed. Finally, the remote control establishes a communicable state with the two adapters, realizing the control of the adapters by the remote control.
[0176] S111: The remote control activates the communication function. The StarFlash remote control calls the enable_sle interface (the full name is "enableSLE", and SLE represents "StarLink Enable", which is a function used to start the StarFlash protocol), which is equivalent to pressing the "start button" of the communication function. This makes the StarFlash communication module of the remote control change from "sleep" to "operable" state, ready to interact with other devices.
[0177] S112: The adapter activates the communication function. The first adapter and the second adapter respectively call the same enable_sle interface to activate their respective SparkLink communication functions. At this time, the two adapters are like "opening their ears" and can start listening for connectable devices around.
[0178] S113: Initialize the communication status. After the above enabling operation, the remote control and the adapter generate a "communicable SparkLink protocol initialization status".
[0179] After the remote control enters the pairing state, it will call two key interfaces: sle_set_announce_param: Set the broadcast content (parameters), such as the identity information of the remote control (similar to the "business card" of the device), to tell the surrounding devices "who I am and where I am". sle_start_announce: Formally initiate the pairing broadcast and make the remote control device public. This is like the remote control shouting loudly: "I'm here. Who wants to connect with me?" At this time, the remote control becomes a "discoverable" device and waits for the response of the adapter.
[0180] After the first adapter enters the pairing state, it will also call two interfaces: sle_set_seek_param: Set the discovery parameters, such as the search range or target type, which is equivalent to telling the adapter "go find a remote control". sle_start_seek: Start the discovery function and start scanning for SparkLink devices around. When Adapter 1 discovers the broadcast signal of the remote control through scanning, it is like hearing the "shout" of the remote control in the crowd and confirms the target.
[0181] The user only needs to press the "pairing button" on the remote control and the adapter, and the device will automatically complete the broadcast and discovery process. Prompts such as "Searching for devices" or "Remote control discovered" will be displayed on the screen.
[0182] After finding the target, the adapter will actively initiate a connection request, and the remote control will respond and complete the pairing. After Adapter 1 discovers the remote control, it calls the "connection request interface" to send a connection request to the remote control. After receiving it, the remote control responds and agrees to the connection, and a communication channel is established between the two parties.
[0183] After the connection is successful, Adapter 1 calls the "pairing interface" to formally request to pair with the remote control. The remote control processes the request and saves the pairing information of Adapter 1, such as the MAC address (the unique identifier of the device, similar to the ID number). At this time, the pairing between the remote control and Adapter 1 is completed, and the two parties "recognize" each other's identities and the connection is stable.
[0184] The adapter 2 repeats the process, and the remote control continues to initiate a pairing broadcast (repeatedly calling sle_set_announce_param and sle_start_announce) to expose itself. The adapter 2 completes the connection and pairing with the remote control according to the same steps (discovery, connection, pairing).
[0185] Among them, the SparkLink protocol: an efficient short-range communication technology, similar to Wi-Fi or Bluetooth, but optimized for specific devices. enable_sle: an interface to enable the SparkLink function, equivalent to the "power-on" instruction. sle_set_announce_param and sle_start_announce: set the broadcast content and expose the device, similar to the broadcast of a Wi-Fi hotspot. sle_set_seek_param and sle_start_seek: set the search conditions and scan for devices, similar to a mobile phone searching for Bluetooth devices.
[0186] MAC address: the hardware address of the device, ensuring the uniqueness of each device's identity and preventing confusion.
[0187] The beneficial effects of the above technical solution are as follows: The enabling process of the SparkLink protocol activates the communication functions of the remote control and the adapter by calling specific interfaces, providing technical guarantees for pairing and subsequent control. A SparkLink remote control can establish a stable communication foundation with two adapters (connected to a smart set-top box and a smart TV respectively). This initialization mechanism ensures the reliability of communication between devices, supports the dual-control requirements of a single remote control for two devices, and improves the overall performance of the system.
[0188] In another embodiment, step S12 includes:
[0189] S121: The SparkLink remote control calls the sle_set_announce_param interface to set the public parameters and define the pairing broadcast content;
[0190] S122: The SparkLink remote control calls the sle_start_announce interface to initiate a pairing broadcast and expose its device information;
[0191] S123: The SparkLink remote control enters the discoverable state and generates a pairing broadcast signal.
[0192] The working principle of the above technical solution is as follows: The remote control calls the sle_set_announce_param interface to set the necessary public parameters. These parameters define the specific information of the broadcast content, including key information such as device identifiers, function feature lists, and connection methods (Note: Similar to a Bluetooth device setting its own device name and discoverable time).
[0193] After configuration, the remote control calls the sle_start_announce interface to officially initiate the pairing broadcast. This step enables the remote control to start broadcasting the previously set device information to the surrounding environment. (Note: This is similar to a Bluetooth device entering the discoverable state).
[0194] The remote control enters and remains in the discoverable state, continuously generating pairing broadcast signals. In this state, the remote control periodically sends wireless signals containing all the previously set parameter information, enabling compatible devices in the vicinity to detect its presence and read its characteristics.
[0195] The beneficial effects of the above technical solution are as follows: Through setting public parameters and initiating the pairing broadcast, the SparkLink remote control can be discovered by the adapter and establish a connection. This broadcast mechanism supports the efficient pairing of one remote control with two adapters (adapter A for the set-top box and adapter B for the TV), ensuring the smooth establishment of connections between devices. As a result, users can use a single remote control to control the smart set-top box and the smart TV, simplifying device management and improving the convenience of use.
[0196] In another embodiment, it further includes:
[0197] S4: The SparkLink remote control downloads the key values corresponding to the set-top box and the TV;
[0198] S4 includes:
[0199] S41: The SparkLink remote control enters the key value download state and initializes the download process;
[0200] S42: The SparkLink remote control interacts with the key value management application of the set-top box and obtains the key value data through an HTTPS request;
[0201] S43: The key value management application sends the key value data in packets through the service characteristic UUID. The SparkLink remote control receives, assembles, and performs CRC verification to complete the download and storage of the key values.
[0202] The working principle of the above technical solution is as follows: When the remote control enters the key value download state, when the user first uses the remote control or the key function changes, the SparkLink remote control will automatically enter the "key value download state". At this time, the remote control initializes the download process and prepares to interact with the set-top box or the TV. This process is similar to the initialization of the device, ensuring that the subsequent steps can proceed smoothly.
[0203] Interact with the key value management application of the remote control. The SparkLink remote control interacts with the key value management application of the set-top box or TV through HTTPS requests to request the current key value data from the application server. HTTPS is a secure communication protocol that ensures the security of data transmission during the download process. Here, "key value" refers to the digital or character code corresponding to each button on the remote control. For example, the key value of the "Number 1 button" is "0x01". These key values tell the remote control how to correctly identify the operation of each button.
[0204] Packet transmission and verification of key value data. The key value management application divides the key value data into packets through the service characteristic UUID and gradually sends the key value data. Each packet contains the key value information of one or more buttons. The remote control receives these data packets and assembles them in order. During the data reception process, the remote control also performs CRC (Cyclic Redundancy Check) verification on the received data to ensure the integrity and accuracy of the data. This is an important technology to prevent data transmission errors. Only when the data is complete and correct will the remote control store these key values in memory for subsequent operations.
[0205] When the user presses a button on the remote control, the remote control first determines whether the key value download has been completed. If the download is completed, the remote control reads the corresponding key value from the storage and replaces the original default key value. In this way, the remote control can operate accurately according to the downloaded data. In addition, the remote control determines whether it is in the set-top box or TV mode according to the current mode. Through the SparkLink protocol, the remote control sends the corresponding key value to the adapter, and the adapter is responsible for transmitting these signals to the smart set-top box or smart TV. If the SparkLink connection between the remote control and the device is disconnected (such as signal interruption), the remote control will automatically switch to the infrared mode. According to the different modes of the TV or set-top box, the remote control sends the corresponding infrared key value signal to ensure that the device can continue to respond to user operations.
[0206] Among them, key value: refers to the digital or character code corresponding to each button on the remote control, used to control the operation of the device. HTTPS: An encrypted network communication protocol used to securely transmit data and prevent information from being tampered with or stolen. UUID: Universally Unique Identifier, a standard used to uniquely identify an object (here refers to the packet division method of key value data). CRC verification: Cyclic Redundancy Check is a commonly used error detection mechanism to ensure that data is not tampered with or lost during transmission. SparkLink protocol: A protocol for communication between devices to ensure smooth information transmission between the remote control and the device.
[0207] The beneficial effects of the above technical solution are as follows: The XingShan remote control downloads the key values corresponding to the set-top box and the TV, ensuring that the control instructions match the target device. One remote control can adapt to the key requirements of two devices, and users can achieve dual control without replacing the remote control. This mechanism of customizing key values improves the accuracy of instructions, supports seamless control of smart set-top boxes and smart TVs, and further optimizes the user experience.
[0208] In another embodiment, the key data transmission in step S32 includes:
[0209] S321: The XingShan remote control determines whether there are downloaded key values. If so, it uses the downloaded key values to replace the default key values;
[0210] S322: The XingShan remote control sends the replaced key values to the corresponding first adapter or second adapter through the XingShan communication protocol;
[0211] S323: The first adapter or the second adapter receives the key values and forwards them to the set-top box or the TV to achieve control of the set-top box or the TV.
[0212] The working principle of the above technical solution is as follows: During the operation of the XingShan remote control, it first determines whether there are downloaded key values in the remote control. When the user presses a certain key, the remote control checks whether there are pre-downloaded custom key values. If so, the remote control will replace the default key settings according to this downloaded key value. For example, the user can redefine a certain key as other functions such as power on / off and volume adjustment according to needs.
[0213] Next, the remote control determines whether it is in the set-top box mode or the TV mode according to the current working mode. Based on this judgment, the remote control transmits the replaced key values to the corresponding adapter through the XingShan communication protocol. The adapter can be the first adapter or the second adapter. This transmission process ensures that the key signals can be accurately transmitted to the target device.
[0214] Once the adapter receives the key data, it will forward these data to the smart set-top box or the smart TV to achieve control of the device. For example, when the user presses the volume up key, the remote control transmits the volume up instruction through the XingShan protocol. After the adapter receives it, the instruction is forwarded to the smart set-top box or the smart TV, and finally the volume is adjusted.
[0215] When the remote control is disconnected from the XingShan network, it can still send the corresponding key signals in the infrared manner according to the current working mode (whether it is the set-top box mode or the TV mode). For example, if the remote control is disconnected from the adapter, it will emit infrared signals to control the smart set-top box or the smart TV according to the selected device mode.
[0216] The beneficial effects of the above technical solution are as follows: The remote control replaces the default key values with the downloaded key values of the buttons and sends them to the corresponding adapter through the XingShan communication protocol to achieve precise control of the set-top box or TV. Users can operate two devices with a single remote control. For example, they can control the set-top box through the [Watch TV button] or control the TV through the [OTT button]. The high reliability of the XingShan technology ensures the stability of the instruction transmission, improving the efficiency and accuracy of the dual-control operation.
[0217] In another embodiment, the voice data transmission in step S32 includes:
[0218] When the user presses the voice button, the XingShan remote control enters the voice pickup state. The microphone collects the audio data and encodes and compresses it using the SBC algorithm to generate compressed audio data.
[0219] The XingShan remote control sends the compressed audio data to the corresponding first adapter or second adapter through the XingShan communication protocol.
[0220] The first adapter or the second adapter receives the compressed audio data, decodes it using the SBC algorithm to generate PCM data, and transmits it to the set-top box or TV through the UAC standard to achieve voice control of the set-top box or TV.
[0221] The working principle of the above technical solution is as follows: During the voice data transmission process, when the user presses the voice button, the XingShan remote control enters the voice pickup state, and at this time, the microphone of the remote control starts to collect the user's voice. The audio data collected by the microphone is encoded and compressed using the SBC (Sub-band Coding) algorithm. The SBC algorithm divides the audio signal into different frequency bands (sub-bands) by frequency division of the audio signal, then performs frequency shifting on the sub-band data of these frequency bands to convert them into baseband data. Then, these baseband data are sampled, quantized, and encoded to finally generate compressed audio data. This process ensures that the audio data occupies less space when being sent.
[0222] Once the audio data is encoded and compressed, the XingShan remote control sends the compressed audio data to the corresponding adapter through the XingShan communication protocol. The adapter can be the first adapter or the second adapter. The XingShan communication protocol ensures that the data transmission process is fast and stable, ensuring that the voice data can accurately reach the adapter.
[0223] After receiving the audio data, the adapter uses the SBC algorithm to decompress and decode the compressed audio data. The decoding process first parses the audio frames, extracts the frame header information from them, then processes the decoded subband signals, and finally restores the original time-domain audio signal. After decoding, the obtained data is PCM (Pulse Code Modulation) data. The sampling frequency of the PCM data is 16 kHz, the quantization bit depth is 16 bits, the data format is mono-channel, and the little-endian byte order is adopted.
[0224] Finally, the adapter transmits the PCM audio data to the smart set-top box or smart TV through the UAC (USB Audio Class) standard. The UAC standard is a standard for implementing audio device control under the USB interface, ensuring that the audio data can be smoothly transmitted to the smart set-top box or smart TV through the USB interface and realizing the voice control function.
[0225] The beneficial effects of the above technical solution are as follows: The XingShan remote control realizes the voice control function of the set-top box and the TV through the acquisition, encoding compression, and transmission of voice data. When the user presses the voice button, the adapter will transmit the decoded audio data to the corresponding device. The low-latency characteristic of the XingShan technology ensures the smoothness of voice interaction. One remote control can meet the voice control requirements of dual devices, further enhancing the convenience of operation and the intelligent experience.
[0226] In another embodiment, as Figure 3 shown, a dual-control system for a set-top box and a TV based on XingShan includes:
[0227] A remote control module for connecting and pairing the XingShan remote control as a server with a first adapter and a second adapter. The first adapter and the second adapter are used as clients to be respectively connected to the set-top box and the TV, generating a paired connection relationship;
[0228] A status acquisition module for, based on the paired connection relationship, the second adapter obtaining the signal source status and floating window status of the TV through a preset protocol and transmitting the status information to the remote control, generating a basis for judging the control mode;
[0229] A control module for, based on the basis for judging the control mode, the remote control adaptively determining that the current control mode is the set-top box mode and / or the TV mode, and sending key data or voice data to the corresponding first adapter and / or second adapter through the XingShan communication protocol, and transmitting the data to the set-top box and / or the TV by the first adapter and / or the second adapter to achieve dual control.
[0230] The remote control module includes:
[0231] An enabling sub-module, used for the SparkLink remote control, the first adapter, and the second adapter to enable the SparkLink protocol during startup, including calling the enable_sle interface to activate the SparkLink communication function and generating an initial state of the SparkLink protocol that can communicate;
[0232] A pairing sub-module, used for the SparkLink remote control to enter the pairing state, setting public parameters by calling the sle_set_announce_param interface, initiating a pairing broadcast by calling the sle_start_announce interface, exposing the SparkLink remote control device, and generating a pairing broadcast signal;
[0233] A discovery sub-module, used for the first adapter and the second adapter to enter the pairing state, setting discovery parameters, initiating a device discovery request, and discovering the SparkLink remote control device to be connected;
[0234] A connection sub-module, used for the first adapter and the second adapter to initiate a connection request to the SparkLink remote control after discovering the device, and the SparkLink remote control responds to the connection request to establish a connection;
[0235] A pairing relationship generation sub-module, used for the first adapter and the second adapter to initiate a pairing request to the SparkLink remote control after detecting a successful connection. The SparkLink remote control processes the pairing request and saves the pairing information of the first adapter and the second adapter, generating a pairing connection relationship with the first adapter and the second adapter;
[0236] The status acquisition module includes:
[0237] A source status acquisition sub-module, used for the second adapter to communicate with the TV through the HID protocol, encapsulating the HID report descriptor according to the first characteristic UUID, sending a source status request to the TV, and receiving the source status returned by the TV.
[0238] A floating window status acquisition sub-module, used for the second adapter to communicate with the TV through the HID protocol, encapsulating the HID report descriptor according to the second characteristic UUID, sending a floating window status request to the TV, and receiving the floating window status returned by the TV.
[0239] A status transmission sub-module, used for the second adapter to transmit the source status and the floating window status to the remote control through the SparkLink communication protocol after acquiring the source status and the floating window status, so as to generate a basis for judging the control mode.
[0240] The control module includes:
[0241] A mode determination sub-module, used for the remote control to determine the current control mode according to the received source status and floating window status, where:
[0242] When the source status is TV or others, determine that the current control mode is the TV mode;
[0243] When the source status is the set-top box and the floating window status is no floating window, determine that the current control mode is the set-top box mode;
[0244] When the source status is the set-top box and the floating window status is with a floating window, determine that the current control mode is the TV mode.
[0245] The data sending sub-module is used for the remote control to send the key data or voice data to the corresponding first adapter and / or second adapter through the SparkLink communication protocol according to the determined current control mode.
[0246] The data transmission sub-module is used for the first adapter and / or the second adapter to transmit the received key data or voice data to the set-top box and / or the TV set to achieve dual control.
[0247] The key value download module of the button includes:
[0248] The download initialization sub-module is used for the SparkLink remote control to enter the key value download state and initialize the download process.
[0249] The data acquisition sub-module is used for the SparkLink remote control to interact with the key value management application of the set-top box and obtain the key value data through an HTTPS request.
[0250] The data reception and verification sub-module is used for the key value management application to send the key value data in packets through the service characteristic UUID. The SparkLink remote control receives, assembles and performs CRC verification to complete the download and storage of the key value of the button.
[0251] The working principle of the above technical solution is as follows: The remote control module is responsible for establishing a connection pairing relationship between the SparkLink remote control (server) and the two adapters (clients). Device startup: After the remote control and the two adapters (adapter A is connected to the set-top box, and adapter B is connected to the TV set) are started, the SparkLink communication function is activated (a wireless technology similar to Bluetooth, but faster and more stable). Initiate pairing: The remote control enters the pairing state and broadcasts a signal outward, telling the surrounding devices "I am here and can be connected to me". After adapter A (connected to the set-top box) detects the signal of the remote control, it initiates a connection request. After the remote control agrees, the pairing is successful. Then, the remote control continues to broadcast, and adapter B (connected to the TV set) repeats the same steps to complete the pairing. The remote control establishes a stable communication link with the two adapters, just like a mobile phone pairing with a Bluetooth headset, generating a pairing connection relationship, laying a foundation for subsequent control.
[0252] The working principle of the status acquisition module is to obtain the status of the TV through the adapter and transmit the information to the remote control for judging the control mode. Adapter B (connected to the TV) queries the current status of the TV through a preset protocol (a communication rule agreed upon between devices). Source status: refers to the signal source being displayed on the TV, such as HDMI (from the set-top box) or TV (TV signal). Floating window status: refers to whether there is an additional window on the TV screen, such as a menu or settings interface. Transmission status: Adapter B sends this information to the remote control through the XingShan protocol. The remote control receives the source and floating window status of the TV as the basis for judging the current control mode.
[0253] The control module is used for the remote control to adaptively select the control mode according to the status information and send button or voice commands to the corresponding device to achieve dual control. Adaptive judgment mode: The remote control decides which device to control currently according to the status information transmitted by Adapter B: If the source of the TV is HDMI (set-top box) and there is no floating window, it enters the set-top box mode to control the set-top box; if the source is TV or others, or the source is HDMI but there is a floating window, it enters the TV mode to control the TV. Sending commands: Button data: When the user presses a button on the remote control (such as "Volume +"), the remote control sends the command to the corresponding adapter (Adapter A or B) through the XingShan protocol, and then the adapter transmits it to the set-top box or the TV. Voice data: When the user presses the voice button and says "Open settings", the remote control records the voice, compresses it and sends it to the adapter through the XingShan protocol, and the adapter decodes it and transmits it to the device for execution.
[0254] Active switching mode: When the user presses the
Watch TV button
OTT button
[0255] The beneficial effects of the above technical solutions are as follows: The dual-control system based on XingShan realizes the dual control of the smart set-top box and the smart TV by the coordinated work of the remote control module, the status acquisition module and the control module. One remote control is paired with two adapters. The adapter obtains the TV status and interacts with the remote control to confirm the control mode. The user can control the target device through adaptive or manual switching (
Watch TV button
OTT button
[0256] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the equivalent technology of the present invention, the present invention is also intended to include these changes and modifications.
Claims
1. A dual-control method for a set-top box and a television based on SparkLink, characterized in that, include: S1: The Star Flash remote control acts as a server to connect and pair with the first adapter and the second adapter. The first adapter and the second adapter act as clients to connect to the set-top box and the TV respectively, generating a pairing connection relationship. S2: Based on the pairing connection relationship, the second adapter obtains the source status and floating window status of the TV through a preset protocol, and transmits the status information to the remote control to generate a control mode judgment basis; S3: Based on the control mode judgment basis, the remote control adaptively determines that the current control mode is the set-top box mode and / or the TV mode, and sends the key data or voice data to the corresponding first adapter and / or the second adapter through the Star Flash communication protocol, which is then transmitted to the set-top box and / or the TV by the first adapter and / or the second adapter to achieve dual control.
2. The dual-control method for a set-top box and a television based on SparkLink according to claim 1, wherein The S1 step includes: S11: The Star Flash remote controller, the first adapter, and the second adapter enable the Star Flash protocol when starting up; S12: The Starflash remote controller enters the pairing state, sets public parameters, initiates pairing broadcast, and makes the Starflash remote controller device public; S13: The first adapter enters the pairing state, sets the discovery parameters, initiates a device discovery request, and discovers the Starflash remote control device to be connected; S14: After the first adapter finds the Star Flash remote control device, it initiates a connection request to the Star Flash remote control, and the Star Flash remote control responds to the connection request to establish a connection; S15: After the first adapter detects that the connection is successful, it initiates a pairing request to the Star Flash remote control, and the Star Flash remote control processes the pairing request and saves the pairing information of the first adapter, and generates a pairing connection relationship with the first adapter; S16: Repeat the above steps S12 to S15 to complete the connection pairing between the Star Flash remote control and the second adapter, and generate a pairing connection relationship with the second adapter.
3. The dual-control method for a set-top box and a television based on SparkLink according to claim 1, wherein, The S2 step includes: S21: the second adapter communicates with the TV set through the HID protocol, encapsulates the HID report descriptor according to the first characteristic UUID, sends a signal source status request to the TV set, and receives the signal source status returned by the TV set; S22: the second adapter communicates with the TV through the HID protocol, encapsulates the HID report descriptor according to the second characteristic UUID, sends a floating window status request to the TV, and receives the floating window status returned by the TV; S23: After acquiring the information source status and the floating window status, the second adapter transmits the information source status and the floating window status to the remote controller through the Star Flash communication protocol to generate a control mode determination basis; The second adapter communicates with the TV based on a preset pairing connection relationship, and the pairing connection relationship is established through the Star Flash communication protocol.
4. The dual-control method for a set-top box and a television based on SparkLink according to claim 1, wherein, The S3 steps include: S31: The remote controller determines the current control mode according to the received signal source state and floating window state, where: When the signal source state is a TV or other, determining that the current control mode is a TV mode; When the source state is a set-top box and the floating window state is no floating window, determining that the current control mode is a set-top box mode; When the source state is a set-top box and the floating window state is a floating window, determining that the current control mode is a TV mode; S32: According to the determined current control mode, the remote controller sends the button data or voice data to the corresponding first adapter and / or second adapter through the NearLink communication protocol; S33: The first adapter and / or second adapter transmit the received button data or voice data to the set-top box and / or TV set to achieve dual control.
5. The dual-control method for a set-top box and a television based on SparkLink according to claim 2, wherein Step S11 includes: S111: The NearLink remote controller calls the enable_sle interface to enable the NearLink protocol and activate the NearLink communication function of the remote controller; S112: The first adapter and the second adapter respectively call the enable_sle interface to enable the NearLink protocol and activate the NearLink communication function of the adapter; S113: The NearLink remote controller and the first adapter and the second adapter complete the enabling operation to generate an initial state of the NearLink protocol for communication.
6. The dual-control method for a set-top box and a television based on SparkLink according to claim 2, wherein, Step S12 includes: S121: The NearLink remote controller calls the sle_set_announce_param interface to set public parameters and define the pairing broadcast content; S122: The NearLink remote controller calls the sle_start_announce interface to initiate a pairing broadcast and disclose the corresponding device information; S123: The NearLink remote controller enters the discovered state and generates a pairing broadcast signal.
7. The dual-control method for a set-top box and a television based on SparkLink according to claim 1, characterized in that, It also includes: S4: The NearLink remote controller downloads the button key values corresponding to the set-top box and the TV set; S4 includes: S41: The NearLink remote controller enters the button key value download state and initializes the download process; S42: The NearLink remote controller interacts with the button key value management application of the set-top box and obtains the button key value data through an HTTPS request; S43: The button key value management application sends the button key value data in packets through the service characteristic UUID. The NearLink remote controller receives, assembles and performs CRC verification to complete the download and storage of the button key values.
8. The dual-control method for a set-top box and a television based on SparkLink according to claim 4, wherein The button data transmission in step S32 includes: S321: The NearLink remote controller determines whether there are downloaded button key values. If so, it uses the downloaded button key values to replace the default key values; S322: The NearLink remote controller sends the replaced button key values to the corresponding first adapter or second adapter through the NearLink communication protocol; S323: The first adapter or the second adapter receives the button key values and forwards them to the set-top box or the TV set to achieve the control of the set-top box or the TV set.
9. The dual-control method for a set-top box and a television based on SparkLink according to claim 4, characterized in that, The voice data transmission in step S32 includes: When the user presses the voice key, the NearLink remote controller enters the voice pickup state. The microphone collects audio data and encodes and compresses it using the SBC algorithm to generate compressed audio data; The NearLink remote controller sends the compressed audio data to the corresponding first adapter or second adapter through the NearLink communication protocol; The first adapter or the second adapter receives the compressed audio data and decodes it using the SBC algorithm to generate PCM data, which is transmitted to the set-top box or the TV set through the UAC standard to achieve voice control of the set-top box or the TV set.
10. A dual-control system for a set-top box and a television based on SparkLink, characterized in that, It includes: A remote control module for the NearLink remote controller to connect and pair with the first adapter and the second adapter as a server, and the first adapter and the second adapter connect to the set-top box and the TV set respectively as clients to generate a paired connection relationship; A status acquisition module, which is used to obtain the source status and floating window status of the TV through a preset protocol based on the pairing connection relationship, and transmit the status information to the remote control to generate a basis for judging the control mode; A control module, which is used to adaptively determine the current control mode as the set-top box mode and / or the TV mode based on the control mode judgment basis, and send the key data or voice data to the corresponding first adapter and / or second adapter through the XingShan communication protocol, and the first adapter and / or the second adapter transmit the data to the set-top box and / or the TV to achieve dual control.
Citation Information
Patent Citations
Control method and control system of set top box and computer readable storage medium
CN112752126A
Self-adaptive control method and system for Android television and Android set top box
CN117336542A
Control method applied to remote controller and remote controller
CN118283314A
Screen information circulation method and system, mobile terminal and storage medium
CN118784911A
Remote control interaction mode switching control method, remote control equipment and storage medium
CN119031168A
Cited By
Audio data transmission method and system based on remote controller, terminal and storage medium
CN121691797A
Three-mode remote controller control television live broadcast one-key switching method and system based on star flash technology
CN122513597A