Method for wireless wake-up key detection, device, medium, product, and intelligent device

WO2026178710A1PCT designated stage Publication Date: 2026-09-03JINGCHEN SEMICON SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/079085
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-02-25
Publication Date
2026-09-03

Smart Images

  • Figure CN2025079085_03092026_PF_FP_ABST
    Figure CN2025079085_03092026_PF_FP_ABST
Patent Text Reader

Abstract

Provided are a method for wireless wake-up key detection, a device, a medium, a product, and an intelligent device. The method comprises: monitoring a wake-up key waveform signal via an interface connected to a wireless signal receiving module; acquiring, in response to a preset interrupt signal of the wake-up key waveform signal, a plurality of bit values of the wake-up key waveform signal; acquiring, according to the plurality of bit values, a key value corresponding to the wake-up key waveform signal; and executing, when the key value matches an expected key value, a wake-up event corresponding to the expected key value matching the key value.
Need to check novelty before this filing date? Find Prior Art

Description

Methods, equipment, media, products, and smart devices for wireless wake-up button detection Technical Field

[0001] This disclosure relates to the field of remote control technology, and in particular to a method for detecting a wireless wake-up button, electronic devices, computer-readable storage media, computer program products, and smart devices. Background Technology

[0002] With the widespread adoption of smart devices, users are increasingly demanding higher standards for user experience. In many smart devices, the wake-up function is a crucial part of user interaction, and Bluetooth remote controls, as a common wake-up and control method, are widely used in various smart devices. However, in current technology, the wake-up button signal on Bluetooth remote controls primarily uses a simple high- or low-level conversion square wave to represent the wake-up button. While this method is simple to implement, it can only distinguish and represent a very limited set of button values. When the number of buttons is large, the ability to distinguish buttons becomes limited, thus failing to meet the device's need for multi-functional buttons and impacting the user's interaction experience.

[0003] Public content

[0004] This disclosure aims to address at least one of the technical problems existing in the prior art. To this end, one objective of this disclosure is to propose a method for wireless wake-up button detection. This method can effectively distinguish different button values, enabling different button values ​​to correspond to different wake-up events, solving the problem of limited button recognition capability, meeting the device's need for multi-functional buttons, and thus improving the user's interaction experience with the device.

[0005] The second objective of this disclosure is to propose an electronic device.

[0006] A third objective of this disclosure is to provide a computer-readable storage medium.

[0007] The fourth objective of this disclosure is to provide a computer program product.

[0008] The fifth objective of this disclosure is to propose an intelligent device.

[0009] To achieve the above objectives, a method for detecting a wireless wake-up button according to a first aspect of this disclosure is provided for a controller of a smart device. The controller is connected to a wireless signal receiving module of the smart device. The method includes: monitoring a wake-up button waveform signal through an interface connected to the wireless signal receiving module; acquiring multiple bit values ​​of the wake-up button waveform signal in response to a preset interrupt signal of the wake-up button waveform signal; obtaining a button key value corresponding to the wake-up button waveform signal based on the multiple bit values; and executing a wake-up event corresponding to the expected key value when the button key value matches the expected key value.

[0010] According to the wireless wake-up button detection method of this disclosure, the wake-up button waveform signal is monitored in real time through an interface connected to a wireless signal receiving module. When the wake-up button waveform signal triggers a preset interrupt signal, multiple bit values ​​of the wake-up button waveform signal are collected. These bit values ​​are state sampling values ​​of the button waveform signal within a specific time window, reflecting the changing characteristics of the button waveform signal. Then, the collected multiple bit values ​​are parsed into the button key value corresponding to the wake-up button waveform signal through bit operations (such as shifting, masking, etc.). This parsing process ensures that every bit sampled data in the wake-up button waveform signal is effectively utilized, thereby generating a unique button key value representation. Since the button key value is determined by multiple bit values, theoretically the total number of button key values ​​is equal to an exponential multiple of the number of bits (e.g., n bits can distinguish 2^n bits). n (Number of button values), which far exceeds the current requirement of a limited number of buttons on Bluetooth remote controls, thus fully meeting the requirement for distinguishing button values. Furthermore, by matching button values ​​with expected button values ​​and executing the wake-up event corresponding to the expected button value, different button values ​​can correspond to a unique wake-up event, ensuring that the triggered wake-up event is consistent with the button function, thereby improving the user's interaction experience with the device.

[0011] In some embodiments, the preset interrupt signal includes a rising edge interrupt of the wake-up button waveform signal and a falling edge interrupt of the wake-up button waveform signal.

[0012] In some embodiments, the plurality of bit values ​​includes a first bit value, and the step of acquiring the first bit value includes: recording the arrival time of each interrupt signal and the level state of the interface; determining a first time interval between the adjacent interrupt signals based on the arrival time of two adjacent interrupt signals; and acquiring the bit value between the two adjacent interrupt signals as the first bit value based on the first time interval and the level state between the two adjacent interrupt signals.

[0013] In some embodiments, the plurality of bit values ​​further includes a second bit value, and the step of acquiring the second bit value includes: starting timing from the arrival time of the first interrupt; when the total timing time reaches the wake-up button waveform acquisition time threshold, turning off the interrupt signal; obtaining a second time interval between the interrupt signal turning off time and the adjacent interrupt signal at the turning off time, and obtaining the level state of the interface within the second time interval; and determining the second bit value based on the second time interval and the level state of the interface within the second time interval.

[0014] In some embodiments, the method further includes: when an adjacent interrupt signal arrives at the shutdown time and the level state of the interface is different from the initial level state of the interface, in response to the shutdown time of the terminal signal, obtaining the second time interval and the level state of the interface within the second time interval.

[0015] In some embodiments, the method further includes: when an adjacent interrupt signal arrives at the shutdown time and the level state of the interface is the same as the initial level state of the interface, using the level state of the interface at the time of the adjacent interrupt signal arrival at the shutdown time as a supplementary level state; and determining the second bit value based on the second time interval and the supplementary level state.

[0016] In some embodiments, the initial voltage level of the interface is either high or low.

[0017] In some embodiments, acquiring multiple bit values ​​of the wake-up button waveform signal includes: starting a timer; recording the level state of the interface at least once in each timing cycle of the timer until the timer duration reaches the wake-up button waveform acquisition time threshold, and then turning off the timer; obtaining the bit value of each timing cycle based on the level state of the interface recorded in each timing cycle; and the multiple bit values ​​of the wake-up button waveform signal are the bit values ​​of all timing cycles.

[0018] In some embodiments, before acquiring multiple bit values ​​of the wake-up button waveform signal in response to a preset interrupt signal of the wake-up button waveform signal, the method further includes: creating an initialization for processing the acquisition task, configuring the interface to an initial level state, the interrupt triggering mode to detect rising edge interrupt and / or falling edge interrupt, and initializing the sampling state machine to an idle state; when entering the interrupt handling function, the sampling state of the sampling state machine is idle and a level state opposite to the initial level state of the interface is detected, the acquisition of the wake-up button waveform signal is started, and a task trigger signal is sent to the acquisition task.

[0019] In some embodiments, the data length of the wake-up button waveform signal is multiple bytes.

[0020] In some embodiments, when the data length of the wake-up button waveform signal is 2 bytes, the data format of the wake-up button waveform signal is represented as a 1-bit start bit, an 11-bit button value, and a 4-bit check value.

[0021] To achieve the above objectives, an electronic device according to a second aspect of this disclosure includes: at least one processor; a memory communicatively connected to the at least one processor; the memory storing a computer program executable by the at least one processor, wherein the at least one processor executes the computer program to implement the wireless wake-up button detection method described in the above embodiment.

[0022] According to the electronic device of this disclosure, at least one processor executes a computer program that implements the wireless wake-up button detection method described in the above embodiments. Through an interface connected to a wireless signal receiving module, the processor monitors the wake-up button waveform signal in real time. When the wake-up button waveform signal triggers a preset interrupt signal, it collects multiple bit values ​​of the wake-up button waveform signal. These bit values ​​are state sampling values ​​of the button waveform signal within a specific time window, reflecting the changing characteristics of the button waveform signal. Then, through bitwise operations (such as shifting, masking, etc.), the collected multiple bit values ​​are parsed into button key values ​​corresponding to the wake-up button waveform signal. This parsing process ensures that every bit sampled data in the wake-up button waveform signal is effectively utilized, thereby generating a unique button key value representation. Since the button key value is determined by multiple bit values, theoretically, the total number of button key values ​​is equal to an exponential multiple of the number of bits (e.g., n bits can distinguish 2^n bits). n (Number of button values), which far exceeds the current requirement of a limited number of buttons on Bluetooth remote controls, thus fully meeting the requirement for distinguishing button values. Furthermore, by matching button values ​​with expected button values ​​and executing the wake-up event corresponding to the expected button value, different button values ​​can correspond to a unique wake-up event, ensuring that the triggered wake-up event is consistent with the button function, thereby improving the user's interaction experience with the device.

[0023] To achieve the above objectives, a computer-readable storage medium according to a third aspect of this disclosure stores computer-executable instructions thereon, the computer-executable instructions being configured to perform the wireless wake-up button detection method described in the above embodiments.

[0024] According to the computer-readable storage medium of the present disclosure, by employing the wireless wake-up button detection method described in the above embodiments, different button values ​​can be effectively distinguished, and different wake-up events corresponding to different button values ​​can be triggered. This solves the problem of limited ability to distinguish the number of buttons, meets the device's need for multi-functional buttons, and thus improves the user's interaction experience with the device.

[0025] To achieve the above objectives, a computer program product according to a fourth aspect of this disclosure includes a computer program stored on a computer-readable storage medium, the computer program including program instructions that, when executed by a computer, cause the computer to perform the wireless wake-up button detection method described in the above embodiment.

[0026] The computer program product according to the embodiments of this disclosure can effectively distinguish different key values ​​by executing the wireless wake-up button detection method described in the above embodiments, realize the triggering of different wake-up events corresponding to different key values, solve the problem of limited ability to distinguish the number of keys, meet the device's demand for multi-functional buttons, and thus improve the user's interaction experience with the device.

[0027] To achieve the above objectives, the intelligent device according to the fifth aspect of this disclosure includes the electronic device described in the above embodiments; or, the intelligent device includes a wireless signal receiving module and a controller, wherein the controller is connected to the wireless signal receiving module via an interface, and the controller is used to execute the wireless wake-up button detection method described in the above embodiments.

[0028] According to the embodiments of this disclosure, the smart device executes the wireless wake-up button detection method described in the above embodiments. Specifically, it monitors the wake-up button waveform signal in real time through an interface connected to a wireless signal receiving module. When the wake-up button waveform signal triggers a preset interrupt signal, it collects multiple bit values ​​of the wake-up button waveform signal. These bit values ​​are state sampling values ​​of the button waveform signal within a specific time window, reflecting the changing characteristics of the button waveform signal. Then, through bit operations (such as shifting, masking, etc.), the collected multiple bit values ​​are parsed into button key values ​​corresponding to the wake-up button waveform signal. This parsing process ensures that every bit of sampling data in the wake-up button waveform signal is effectively utilized, thereby generating a unique button key value representation. Since the button key value is determined by multiple bit values, theoretically, the total number of button key values ​​is equal to an exponential multiple of the number of bits (for example, n bits can distinguish 2n button key values), which far exceeds the requirement of the limited number of buttons on current Bluetooth remote controls, thus fully satisfying the button key value differentiation requirements. In addition, by matching the key value of a button with the expected key value, the wake-up event corresponding to the expected key value is executed, so that different key values ​​can correspond to a unique wake-up event, ensuring that the triggered wake-up event is consistent with the button function, thereby improving the user's interaction experience with the device.

[0029] Additional aspects and advantages of this disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this disclosure. Attached Figure Description

[0030] The above and / or additional aspects and advantages of this disclosure will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0031] Figure 1 is a flowchart of a wireless wake-up button detection method according to an embodiment of the present disclosure;

[0032] Figure 2 is a schematic diagram of the wake-up button waveform signal according to an embodiment of the present disclosure;

[0033] Figure 3 is a schematic diagram of the wake-up button waveform signal according to yet another embodiment of the present disclosure;

[0034] Figure 4 is an overall flowchart of a wireless wake-up button detection method according to an embodiment of the present disclosure;

[0035] Figure 5 is an overall flowchart of a method for detecting a wireless wake-up button according to another embodiment of the present disclosure;

[0036] Figure 6 is a block diagram of an electronic device according to an embodiment of the present disclosure;

[0037] Figure 7 is a block diagram of a smart device according to an embodiment of the present disclosure;

[0038] Figure 8 is a block diagram of a smart device according to yet another embodiment of the present disclosure.

[0039] Reference numerals: Smart device 100; Electronic device 1; Wireless signal receiving module 2; Controller 3; Processor 11; Memory 12. Detailed Implementation

[0040] The embodiments of this disclosure are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. The embodiments of this disclosure are described in detail below.

[0041] The following describes a method for detecting a wireless wake-up button according to an embodiment of the present disclosure with reference to Figures 1-3. The method is used for a controller of a smart device, the controller being connected to a wireless signal receiving module of the smart device.

[0042] In some embodiments, the smart device may include, but is not limited to: a smart TV, a smart set-top box, a smart speaker, or other devices that support wireless communication; the controller may be a system-on-chip (SoC); the wireless signal receiving module may be a Wi-Fi module or a Bluetooth module, and the specific selection may be configured according to the communication requirements of the device.

[0043] Figure 1 is a flowchart of a method for detecting a wireless wake-up button according to an embodiment of the present disclosure. As shown in Figure 1, the method for detecting a wireless wake-up button according to an embodiment of the present disclosure includes at least steps S1-S4.

[0044] S1 monitors the wake-up button waveform signal through an interface connected to the wireless signal receiving module.

[0045] In some embodiments, the interface on the controller (such as a SoC) that connects to the wireless signal receiving module can be an external pin on the controller, such as a GPIO (General Purpose Input / Output) pin. The GPIO pin can be connected to pins in the wireless signal receiving module (such as the BT_WAKE_HOST pin). The BT_WAKE_HOST pin is a dedicated interface in the wireless signal receiving module designed for the wake-up function, used to transmit the wake-up button waveform signal.

[0046] Specifically, the wireless signal receiving module can receive the wake-up broadcast signal transmitted by the Bluetooth remote control, and parse the received broadcast signal to extract the wake-up information. After parsing, the wireless signal receiving module generates the corresponding wake-up button waveform signal through the BT_WAKE_HOST pin and transmits it to the controller.

[0047] Furthermore, the controller (such as the SoC) remains in the system standby firmware running stage when in standby mode. At this time, the controller connects to the BT_WAKE_HOST pin of the wireless signal receiving module via its GPIO pins and configures the GPIO pins to input mode. Through the GPIO interrupt mechanism, the controller can monitor signal changes on the BT_WAKE_HOST pin in real time, thereby enabling monitoring of the wake-up button waveform signal. The system standby firmware running stage can refer to the controller (such as the SoC) operating in a low-power state in system standby mode. At this time, the controller is not completely shut down but performs some basic background tasks through firmware, such as monitoring external events (such as button wake-up) to respond quickly when needed.

[0048] S2, in response to a preset interrupt signal of the wake-up button waveform signal, acquires multiple bit values ​​of the wake-up button waveform signal.

[0049] In some embodiments, a preset interrupt signal refers to an interrupt signal triggered when a GPIO pin detects a specific signal change. Specifically, after the wireless signal receiving module receives the wake-up broadcast signal sent by the Bluetooth remote control and parses the button data, it can output a wake-up button waveform signal through its BT_WAKE_HOST pin. This waveform signal is detected by the connected GPIO pin and meets the preset interrupt condition (e.g., level toggling), and the controller generates a preset interrupt signal and starts the corresponding processing task.

[0050] In some embodiments, the bit value can refer to the digital representation of the wake-up button waveform signal. Specifically, the wake-up button waveform signal can be discretized into a series of high and low levels, with each level change corresponding to a bit value (e.g., a high level represents "1" and a low level represents "0"). These bit values ​​can be encoded as a button ID or other relevant information to identify the type of button pressed or the specific function triggered.

[0051] S3, obtain the key value corresponding to the wake-up button waveform signal based on multiple bit values.

[0052] In some embodiments, a button key value can be a unique code corresponding to a remote control button operation, used to identify the specific button pressed by the user. Each button key value can represent a specific button function. For example, the key value of the "play" button can be 0x01, while the key value of the "pause" button can be 0x02. Therefore, the button key value is the basis for the controller (such as the SoC) to identify specific button operations and can be used to trigger corresponding system responses, such as starting playback, adjusting volume, switching channels, pausing video, etc.

[0053] In some embodiments, the controller can process multiple acquired bit values ​​through bitwise operations or other algorithms to obtain the key value corresponding to the wake-up button waveform signal. Bitwise operations may include shifting, masking, and verification. Furthermore, the controller can also use a pre-defined lookup table to directly map specific bit values ​​to their corresponding key values, thereby improving data processing efficiency and reducing complex computational processes.

[0054] S4, when the key value of the key press matches the expected key value, execute the wake-up event corresponding to the expected key value that matches the key value.

[0055] In some embodiments, the expected key value may refer to a specific key value preset during the system design phase, which may correspond to different wake-up events of the system. For example, a button may be a "power on" button, and the expected key value set for this button by the system may be 0x01, which corresponds to a specific wake-up event (such as waking the system from standby mode).

[0056] In some embodiments, when a key value matches an expected key value, a wake-up event corresponding to that expected key value is executed. The main purpose of this is to ensure that the wake-up operation is triggered only when the user performs the correct key press, preventing external interference or accidental operation from causing the system to wake up incorrectly or enter an incorrect state. For example, in standby mode, the system is only woken up when a specific key (such as the "power" key) is pressed. Other keys (such as volume control keys, pause keys, etc.) should not wake the system to prevent accidental or unnecessary wake-ups.

[0057] According to the wireless wake-up button detection method of this disclosure, the wake-up button waveform signal is monitored in real time through an interface connected to a wireless signal receiving module. When the wake-up button waveform signal triggers a preset interrupt signal, multiple bit values ​​of the wake-up button waveform signal are collected. These bit values ​​are state sampling values ​​of the button waveform signal within a specific time window, reflecting the changing characteristics of the button waveform signal. Then, the collected multiple bit values ​​are parsed into the button key value corresponding to the wake-up button waveform signal through bit operations (such as shifting, masking, etc.). This parsing process ensures that every bit sampled data in the wake-up button waveform signal is effectively utilized, thereby generating a unique button key value representation. Since the button key value is determined by multiple bit values, theoretically the total number of button key values ​​is equal to an exponential multiple of the number of bits (e.g., n bits can distinguish 2^n bits). n(Number of button values), which far exceeds the current requirement of a limited number of buttons on Bluetooth remote controls, thus fully meeting the requirement for distinguishing button values. Furthermore, by matching button values ​​with expected button values ​​and executing the wake-up event corresponding to the expected button value, different button values ​​can correspond to a unique wake-up event, ensuring that the triggered wake-up event is consistent with the button function, thereby improving the user's interaction experience with the device.

[0058] In some embodiments, the preset interrupt signals include rising edge interrupts and falling edge interrupts of the wake-up button waveform signal. A rising edge interrupt can be triggered when the wake-up button waveform signal transitions from a low level to a high level. A falling edge interrupt can be triggered when the wake-up button waveform signal transitions from a high level to a low level. These interrupt signals help the system promptly capture signal changes, thereby tracking the level state of the wake-up button waveform signal for subsequent bit value acquisition and parsing.

[0059] In some embodiments, the plurality of bit values ​​includes a first bit value, which may represent a series of bit values ​​from the first interrupt signal to the interrupt signal being disabled. Specifically, each interrupt signal corresponds to a state change of the wake-up button waveform signal (e.g., from high to low or from low to high). Each time an interrupt signal occurs, the system obtains the first bit value (i.e., 0 or 1) based on the level change (e.g., rising edge or falling edge) and the time interval since the last interrupt signal.

[0060] In some embodiments, the step of acquiring the first bit value includes: recording the arrival time of each interrupt signal and the level state of the interface; determining the first time interval between adjacent interrupt signals based on the arrival time of two adjacent interrupt signals; and acquiring the bit value between two adjacent interrupt signals as the first bit value based on the first time interval and the level state between two adjacent interrupt signals.

[0061] Specifically, each time a rising edge or falling edge interrupt occurs, the controller can use a high-precision timer to record the arrival time of the interrupt signal and the level state of the interface (i.e., the level state of the GPIO pin). For example, during a rising edge interrupt, the level state of the GPIO pin will change from low (0) to high (1); during a falling edge interrupt, the level state of the GPIO pin will change from high (1) to low (0). By recording the timing of these interrupt signals and the level state of the interface, more accurate analysis and bit value extraction of the wake-up button waveform signal can be performed subsequently.

[0062] Furthermore, by calculating the time difference between the arrival times of two adjacent interrupt signals, the first time interval between adjacent interrupt signals can be obtained. This time interval reflects the changing period of the wake-up button waveform signal. If the first time interval is very short, it indicates that the wake-up button waveform signal changes very rapidly; conversely, if the first time interval is long, it indicates that the wake-up button waveform signal changes relatively slowly. The first time interval may affect the accuracy of signal analysis; therefore, it is necessary to select an appropriate sampling period and ensure high-precision time recording.

[0063] Furthermore, based on the first time interval and the level state between two adjacent interrupt signals, bitwise operations (such as bit shifting, bitwise AND, bitwise OR, etc.) can be used to calculate the bit value between two adjacent interrupt signals as the first bit value. Then, by successively calculating multiple first time intervals and multiple levels between two adjacent interrupt signals, the system can derive a series of first bit values, thereby gradually constructing the binary code of the wake-up button waveform signal.

[0064] In some embodiments, the first interrupt signal may be either a rising edge interrupt of the wake-up button waveform signal or a falling edge interrupt of the wake-up button waveform signal, depending on the initial level state of the interface.

[0065] In some embodiments, the interrupt mechanism monitors the arrival time of each interrupt signal and the interface's voltage level in real time, without blocking or interfering with other real-time tasks and interrupt handling. The interrupt service routine can process the interface's voltage level changes as quickly as possible, record relevant information, and then hand the task back to the main task scheduler to continue executing other tasks. In this way, other real-time tasks (such as timer interrupts, communication tasks, etc.) can continue to run without being blocked by interrupt signal processing.

[0066] In some embodiments, the plurality of bit values ​​also includes a second bit value, which may be the tail bit value of the wake-up button waveform signal. When the interrupt signal is off, the system obtains the second bit value (0 or 1) based on the level change (rising edge or falling edge) and the time interval between the last interrupt signal and the time of the off event.

[0067] In some embodiments, the step of acquiring the second bit value includes: starting a timer from the arrival time of the first interrupt, and disabling the interrupt signal when the total timer reaches the wake-up button waveform acquisition time threshold; obtaining a second time interval between the interrupt signal disabling time and the adjacent interrupt signal at the disabling time, and obtaining the interface level state within the second time interval; and determining the second bit value based on the second time interval and the interface level state within the second time interval.

[0068] The wake-up button waveform acquisition time threshold refers to the maximum allowed time for the system to acquire the wake-up button waveform signal. This threshold can be set based on the number of bit values ​​and the duration of a single bit value. For example, the duration of a single bit value's wake-up button waveform signal can be adjusted to be shorter to improve data transmission efficiency. Based on industry standards, hardware sampling capabilities, or system response time, 10ms can be set to represent the acquisition duration of a single bit value. Therefore, if the number of bit values ​​is n, the wake-up button waveform acquisition time threshold can be set to (10×n)ms. When the total timing time reaches the wake-up button waveform acquisition time threshold, the system can automatically disable the interrupt signal triggering mechanism. This is to prevent the acquisition process from proceeding without restriction, save resources, ensure signal processing efficiency, reduce wake-up waiting time, and thus improve the user experience.

[0069] Specifically, when the interrupt signal is disabled, the controller can use a high-precision timer to record the time when the interrupt signal is disabled, calculate the second time interval between the time the interrupt signal is disabled and the adjacent interrupt signal at the time of disabling, and obtain the interface level state (high or low) within the second time interval. The purpose of the second time interval is to characterize the state change of the last segment of the waveform signal after the interrupt signal is disabled. When the acquisition time threshold is reached, the interrupt signal is disabled, but waveform signal acquisition may not be completely finished. By recording the second time interval between the time the interrupt signal is disabled and the adjacent interrupt signal at the time of disabling (i.e., the second time interval), the change information of this waveform can be obtained.

[0070] Furthermore, based on the second time interval and the interface's level state within the second time interval, the corresponding bit value, i.e., the second bit value, can be calculated through bitwise operations (such as bit shifting, bitwise AND, bitwise OR, etc.). The second bit value can supplement the first bit value, ensuring the integrity of data decoding. If only the first bit value is collected, the tail information of the waveform signal after the interrupt is disabled may be lost, resulting in incomplete data decoding.

[0071] In some embodiments, the method for detecting the wireless wake-up button further includes: when an adjacent interrupt signal arrives at the time of shutdown and the interface's level state is different from the interface's initial level state, in response to the time of the terminal signal shutdown, obtaining the level state of the interface within the second time interval and the second time interval.

[0072] The initial level state can be the interface's level state before the sampling state machine enters the "idle state," that is, the stable state of the device before the wake-up button waveform signal acquisition task starts. In the system design, the initial level state is fixed to provide a stable reference for subsequent waveform signal analysis. When an adjacent interrupt signal arrives at the shutdown time and the interface's level state differs from the initial level state, it can be determined that the interface's level state changed when the adjacent interrupt signal arrived. In this case, the system can respond at the shutdown time of the terminal signal, recording the second time interval between the shutdown time and the adjacent interrupt signal, as well as the interface level state within that interval. Then, using the second time interval and the interface level state within that interval, the second bit value is directly calculated without further compensation or complex derivation. This direct acquisition method fully utilizes the information from signal changes, ensuring accurate analysis of the final waveform data segment.

[0073] In some embodiments, the method for detecting the wireless wake-up button further includes: when an adjacent interrupt signal arrives at the shutdown time and the interface's level state is the same as the interface's initial level state, using the interface's level state at the time of the adjacent interrupt signal arrival at the shutdown time as a supplementary level state; and determining a second bit value based on a second time interval and the supplementary level state.

[0074] Specifically, when an adjacent interrupt signal arrives at the shutdown time, if the interface's voltage level is consistent with its initial voltage level, a valid interrupt signal cannot be obtained through the last time interval. This means that the voltage level of the last time interval may not be explicitly recorded. This is because this disclosure parses the signal using the time interval between two adjacent interrupt signals. For example, when the interval is 20ms and the duration of a single bit is 10ms, it can be inferred that the time interval contains two high or low voltage levels, depending on the voltage level entering the interrupt. Therefore, to avoid signal information loss due to missing interrupt signal records, the system can use the interface's voltage level when the adjacent interrupt signal arrives at the shutdown time as a supplementary voltage level and fill the time interval accordingly. Combined with the information from the second time interval, the system can accurately parse the bit values ​​that should be recorded during this time interval, thereby ensuring the completeness of the acquisition and accuracy of the entire wake-up button waveform signal.

[0075] In some embodiments, after acquisition is complete, the system can integrate all the first bit values ​​and second bit values ​​into a complete key waveform code. For example, by appending the first bit value sequence with the second bit value, the final binary code is formed, thereby restoring the overall characteristics of the key signal.

[0076] In some embodiments, the initial voltage level of the interface can be a stable state of the device before the wake-up button waveform signal acquisition task is started. The initial voltage level of the interface can be high or low.

[0077] Specifically, as shown in Figure 2, before the wake-up button waveform signal acquisition task starts, the initial level of the interface is a stable high level. When the first interrupt signal arrives, a timer records the arrival time of the first interrupt signal. At this time, the first interrupt signal is the falling edge interrupt of the wake-up button waveform signal, and the interface level changes to low. When the second interrupt signal arrives, a timer records the arrival time of the second interrupt signal. At this time, the second interrupt signal is the rising edge interrupt of the wake-up button waveform signal, and the interface level changes to high. By sequentially recording the arrival time of all interrupt signals in the wake-up button waveform signal acquisition task and the interface level, the first time interval between adjacent interrupt signals can be obtained by calculating the time difference between the arrival times of two adjacent interrupt signals. Based on the first time interval and the level state between two adjacent interrupt signals, the first bit value acquired between two adjacent interrupt signals can be calculated through bitwise operations (such as bit shifting, bitwise AND operation, bitwise OR operation, etc.).

[0078] Furthermore, the time point when the interrupt signal is turned off is recorded, and the second time interval between the interrupt signal turning off and the adjacent interrupt signal at the time of turning off is calculated, along with the interface's level state within the second time interval. When the interface's level state differs from its initial level state when the adjacent interrupt signal at the time of turning off arrives (i.e., the initial level state is high and the level state is low), the corresponding second bit value can be calculated using bitwise operations (such as bit shifting, bitwise AND, bitwise OR, etc.) based on the second time interval and the interface's level state within the second time interval. When the interface's level state matches its initial level state when the adjacent interrupt signal at the time of turning off arrives (i.e., the initial level state is high and the level state is high), the corresponding second bit value can be calculated based on the second time interval and the supplementary level state consistent with the interface's level state at the time of turning off.

[0079] As shown in Figure 3, before the wake-up button waveform signal acquisition task starts, the initial level of the interface is a stable low level. When the first interrupt signal arrives, a timer records the arrival time of the first interrupt signal. At this time, the first interrupt signal is the rising edge interrupt of the wake-up button waveform signal, and the interface level changes to a high level. When the second interrupt signal arrives, a timer records the arrival time of the second interrupt signal. At this time, the second interrupt signal is the falling edge interrupt of the wake-up button waveform signal, and the interface level changes to a low level. By sequentially recording the arrival time of all interrupt signals and the interface level state in the wake-up button waveform signal acquisition task, the first time interval between adjacent interrupt signals can be obtained by calculating the time difference between the arrival times of two adjacent interrupt signals. Based on the first time interval and the level state between two adjacent interrupt signals, the first bit value acquired between two adjacent interrupt signals can be calculated through bitwise operations (such as bit shifting, bitwise AND operation, bitwise OR operation, etc.).

[0080] Furthermore, the time point when the interrupt signal is turned off is recorded, and the second time interval between the interrupt signal turning off and the adjacent interrupt signal at the time of turning off is calculated, along with the interface's level state within the second time interval. When the interface's level state differs from its initial level state when the adjacent interrupt signal at the time of turning off arrives (i.e., the initial level state is low and the level state is high), the corresponding second bit value can be calculated using bitwise operations (such as bit shifting, bitwise AND, bitwise OR, etc.) based on the second time interval and the interface's level state within the second time interval. When the interface's level state matches its initial level state when the adjacent interrupt signal at the time of turning off arrives (i.e., the initial level state is low and the level state is low), the corresponding second bit value can be calculated based on the second time interval and the supplementary level state consistent with the interface's level state at the time of turning off.

[0081] In some embodiments, this disclosure also proposes a timer-based acquisition method for acquiring multiple bit values ​​of the wake-up button waveform signal. Compared to the acquisition method based on rising and falling edge interrupts described above, the timer-based acquisition method simplifies the triggering logic and sampling control, thereby providing higher implementation efficiency.

[0082] In some embodiments, the preset interrupt signal may be a rising edge interrupt of the wake-up button waveform signal or a falling edge interrupt of the wake-up button waveform signal, used to mark the start time of wake-up button waveform signal acquisition. This means that the controller can trigger the start timer to start timing by any edge.

[0083] In some embodiments, for the timer-based acquisition method, acquiring multiple bit values ​​of the wake-up button waveform signal includes: after detecting a preset interrupt signal, starting a timer to begin timing; recording the interface's level state at least once within each timing cycle of the timer until the timer duration reaches the wake-up button waveform acquisition time threshold, and then stopping the timer. The bit value for each timing cycle is obtained based on the recorded interface level state within each timing cycle. The multiple bit values ​​of the wake-up button waveform signal are the bit values ​​for all timing cycles, and the bit values ​​within all timing cycles constitute a complete bit sequence of the wake-up button waveform signal.

[0084] Therefore, by using a timer instead of frequent triggering of rising and falling edge interrupts, the level state of the interface can be acquired at a fixed period. This eliminates the need to analyze the time interval between each adjacent interrupt signal, reducing the complexity of hardware design and software implementation, and thus improving the convenience of data acquisition.

[0085] In some embodiments, before acquiring multiple bit values ​​of the wake-up button waveform signal in response to a preset interrupt signal of the wake-up button waveform signal, the wireless wake-up button detection method further includes: creating an initialization for processing the acquisition task, configuring the interface to an initial level state, setting the interrupt triggering mode to detect rising edge interrupt and / or falling edge interrupt, and initializing the sampling state machine to an idle state. Upon entering the interrupt handling function, if the sampling state machine is in an idle state and a level state opposite to the initial level state of the interface is detected, the acquisition of the wake-up button waveform signal is initiated, and a task trigger signal is sent to the acquisition task.

[0086] The purpose of initializing the data acquisition task is to ensure that the system is in a stable and controllable state before the task begins, thereby avoiding accidental triggering or incorrect data acquisition operations. By configuring the initial level state and triggering method, the system can accurately identify valid wake-up signals, avoiding incorrect startup caused by environmental interference or system anomalies.

[0087] In some embodiments, a sampling state machine is a logic unit used to control the signal acquisition process. It manages the state of the acquisition task and task switching. The sampling state machine controls whether the acquisition process continues through different states (e.g., idle, detection, etc.). The sampling state machine controls the start, pause, and end of the acquisition task, ensuring that the task is executed in a predetermined order. By ensuring that data acquisition can only be performed in a specific state, it prevents repeated acquisition or other operations at inappropriate times.

[0088] In some embodiments, initializing the sampling state machine to an idle state ensures that the system starts up in an initial state where no data acquisition tasks are performed, thus avoiding erroneous data acquisition. In the idle state, the system is in standby mode, waiting for a valid trigger signal. Only when the sampling state machine receives a valid interrupt signal or other condition will it begin executing subsequent operations and enter the detection state. This design helps prevent the system from performing unnecessary operations in the absence of a valid signal.

[0089] In some embodiments, an interrupt handler is a function that responds to external hardware or software interrupt signals. When an external event (such as a button press) triggers an interrupt, the system jumps to the interrupt handler and executes a predefined operation. The role of the interrupt handler is to immediately execute relevant operations, such as starting a data acquisition task, upon receiving a rising edge, falling edge, or other interrupt signal. It is a crucial part of task scheduling, ensuring that data acquisition tasks can be started promptly and that state switching is performed according to system requirements.

[0090] In some embodiments, sending a task trigger signal to the acquisition task can refer to informing the system to start the data acquisition task through certain communication mechanisms (such as semaphores). Here, semaphores serve as a synchronization mechanism for communication between tasks or threads. When the interrupt handler sends a semaphore to the acquisition task, it indicates that the acquisition task can begin execution. In this way, the system can ensure that the acquisition task starts at the appropriate time, avoiding unnecessary delays or errors. In addition to semaphores, the task can also be started by directly calling the acquisition task's API interface. This method simplifies the task communication process and improves the system's execution efficiency. After receiving the task trigger signal, the acquisition task can begin monitoring and acquiring the wake-up button waveform signal, thus completing the entire signal sampling and monitoring process.

[0091] In some embodiments, the data length of the wake-up button waveform signal is variable, meaning the specific number of bits (e.g., how many bits or bytes) of the data content can be determined according to actual needs. This variable-length data format increases flexibility and can adapt to transmission requirements of different data volumes. The data format can include data length information; that is, the data packet can include a field specifying the actual length of the data. This helps the receiving end accurately parse the received data and ensures data integrity.

[0092] In some embodiments, the wake-up button waveform signal has a data length of multiple bytes. This means that the wake-up button waveform signal is not limited to a single trigger or wake-up function, but can also carry more information, such as relevant status on the module controller side, device configuration parameters, control commands, etc. Multi-byte data transmission improves the effective information density of the signal, which can meet the control requirements of complex systems.

[0093] For example, the data length of the wake-up button waveform signal can be 2 bytes, or 16 bits. A 16-bit length means the waveform will be encoded into 16 binary bits. With this configuration, if the transmission duration of a single bit is set to 10ms, transmitting the complete 16-bit data (2 bytes) takes only 160ms. Compared to existing technologies that use simple pull-high or pull-low level conversion square waves to represent wake-up buttons, where the square wave duration of the button value typically exceeds 400ms, using a 16-bit wake-up button waveform signal can improve transmission efficiency by more than double. Furthermore, if the transmission duration of a single bit is set to 1ms, transmitting 2 bytes (16 bits) of data takes only 16ms, significantly reducing transmission time and improving system response speed. By adopting this data length and transmission duration design, the system can process button input more efficiently and significantly shorten the wake-up button response time, thereby improving user experience and system performance.

[0094] Alternatively, the data length of the wake-up button waveform signal can be extended to 4 bytes (32 bits) or more. This means that the amount of data transmitted each time will increase, supporting more complex data transmission needs. As the number of data bytes increases, more information can be transmitted. By using a custom protocol format, the system can design more flexible data structures, allowing for the transmission of more diverse data content and ensuring that the information transmitted in each data packet is not repeated, thereby improving data diversity and accuracy.

[0095] In some embodiments, the data length of the wake-up button waveform signal can also be a single byte. A single byte has a small data volume and occupies low communication bandwidth. In scenarios with high real-time requirements, a single-byte signal can be transmitted and parsed quickly, reducing latency. However, a short data length means fewer redundant bits, lower checksum and error correction capabilities, which may lead to signal misinterpretation in high-interference environments, making it difficult to tolerate faults or achieve a higher level of data integrity.

[0096] In some embodiments, when the data length of the wake-up button waveform signal is 2 bytes (16 bits), the data format of the wake-up button waveform signal is represented as a 1-bit start bit, an 11-bit button value, and a 4-bit checksum. The start bit serves as the beginning of the data format, identifying the start of the data. In digital communication, the start bit is crucial, helping the receiving end identify the start of the data stream. The receiving end uses the start bit to understand the data type to be received next and how to parse that data. When the initial level of the interface is high, the highest bit (1 bit) serves as the start bit, allowing the signal to begin at a low level.

[0097] In some embodiments, the key value portion represents specific key input information. This portion contains 11 bits and can encode up to 2... 11 =2048 different button values, which can fully meet the button value differentiation requirements of current Bluetooth remote controls.

[0098] In some embodiments, a checksum is used to detect data errors during transmission. The checksum is set to improve the reliability of data transmission, especially in noisy environments or when the signal is interfered with. Using the checksum, the receiver can verify the received signal to determine its integrity and accuracy. Common checksum methods include parity check and CRC check. In this scheme, a 4-bit checksum is used, enabling simple and effective error detection. While relatively simple, a 4-bit checksum is sufficient for error detection needs in typical communication environments. If a data error is detected, the receiver can discard the erroneous data packet and request a retransmission.

[0099] For example, the binary data format of the wake-up button waveform signal can be 0001 1000 1110 0001, where the highest bit 0 represents the start of the data, i.e., the start bit. The middle 001 1000 1110 is the button value, indicating the specific button operation. The lowest bit 0001 is a check value used for error detection. This binary value can be converted to hexadecimal 0x18E1, which is the corresponding button key value.

[0100] Figure 4 is an overall flowchart of a wireless wake-up button detection method according to an embodiment of the present disclosure. As shown in Figure 4, the overall flowchart of the wireless wake-up button detection method according to an embodiment of the present disclosure includes at least steps S10-S20.

[0101] S10, Initialize the acquisition task, configure the interface to the initial level state, the interrupt triggering method is rising edge detection interrupt and / or falling edge detection interrupt, and initialize the sampling state machine to the idle state.

[0102] S11, the wireless signal receiving module generates the corresponding wake-up button waveform signal through the BT_WAKE_HOST pin and transmits it to the controller. In response to the rising edge interrupt and falling edge interrupt of the wake-up button waveform signal, it enters the BT_WAKE_HOST interrupt handling function.

[0103] S12, upon entering the interrupt handling function, confirm that the sampling state machine is idle and detects a level state opposite to the initial level state of the interface, start the acquisition of the wake-up button waveform signal, send the task trigger signal to the acquisition task, and switch the sampling state machine to the detection state.

[0104] S13, the acquisition task receives the task trigger signal and begins the acquisition process of detecting the waveform signal of the wake-up button.

[0105] S14, in the detection state, the number of multiple first bit values ​​can be obtained by dividing the first time interval between adjacent interrupt signals by 10ms. The level value of the previous interrupt signal is 1 when it is high and 0 when it is low. The current key value is calculated from the highest bit through bit operation.

[0106] S15 globally saves the currently calculated key values, the entry time of this interrupt, and the level state of the interface.

[0107] S16, when the total timing time reaches the wake-up button waveform acquisition time threshold, disable the interrupt signal, obtain the second time interval between the interrupt signal disabling time and the adjacent interrupt signal at the disabling time, and obtain the interface level state within the second time interval, and obtain the second bit value based on the second time interval and the interface level state within the second time interval.

[0108] S17 calculates the value of the second bit through bit operations to obtain the key value corresponding to the wake-up button waveform signal.

[0109] S18. Determine whether the key value matches the expected key value. If they match, proceed to step S19. If they do not match, proceed to step S20.

[0110] S19, execute the wake-up event corresponding to the expected key value matching the key value.

[0111] S20: Re-enable the interrupt signal, initialize the sampling state machine to idle state, initialize the global variable for storing detection information data, and wait for the next wake-up button waveform signal acquisition.

[0112] In summary, the above process effectively distinguishes different button values, enabling different wake-up events to be triggered for different button values. This solves the problem of limited ability to distinguish the number of buttons, meets the device's need for multi-functional buttons, and thus improves the user's interaction experience with the device.

[0113] Figure 5 is an overall flowchart of a method for detecting a wireless wake-up button according to another embodiment of the present disclosure. As shown in Figure 5, the overall flowchart of the method for detecting a wireless wake-up button according to an embodiment of the present disclosure includes at least steps S100-S109.

[0114] S100, initializes the data acquisition task, configures the interface to the initial level state, the interrupt triggering method is rising edge detection interrupt and / or falling edge detection interrupt, and initializes the sampling state machine to the idle state.

[0115] S101, the wireless signal receiving module generates the corresponding wake-up button waveform signal through the BT_WAKE_HOST pin and transmits it to the controller. In response to the rising edge interrupt and the falling edge interrupt of the wake-up button waveform signal, it enters the BT_WAKE_HOST interrupt handling function.

[0116] S102, upon entering the interrupt handling function, confirm that the sampling state machine is idle and detects a level state opposite to the initial level state of the interface, start the acquisition of the wake-up button waveform signal, send the task trigger signal to the acquisition task, and switch the sampling state machine to the detection state.

[0117] S103, the acquisition task received the task trigger signal and began the acquisition process of detecting the waveform signal of the wake-up button.

[0118] S104, start the timer. Record the interface level status at least once in each timing cycle of the timer until the timer duration reaches the wake-up button waveform acquisition time threshold, then turn off the timer.

[0119] S105 obtains the bit value for each timing cycle based on the level state of the interface recorded within each timing cycle.

[0120] S106 calculates multiple bit values ​​of the wake-up button waveform signal through bit operations to obtain the button key value corresponding to the wake-up button waveform signal.

[0121] S107, determine whether the key value matches the expected key value. If they match, proceed to step S108; otherwise, proceed to step S109.

[0122] S108, execute the wake-up event corresponding to the expected key value matched by the key value.

[0123] S109: Re-enable the interrupt signal, initialize the sampling state machine to idle state, initialize the global variable for storing detection information data, and wait for the next wake-up button waveform signal acquisition.

[0124] An electronic device according to an embodiment of the present disclosure is described below with reference to FIG6.

[0125] FIG6 is a block diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG6, the electronic device 1 includes at least one processor 11 and a memory 12.

[0126] In some embodiments, at least one processor 11 can be one processor 11, or multiple processors 11, such as two processors 11, three processors 11, five processors 11, etc. The processor 11 can be a single-core or multi-core processor 11, responsible for executing computer programs stored in the memory 12 and handling related logic, control, and computational tasks. The processor 11 can be of various types, such as a microcontroller unit (MCU), an embedded processor, or a system-on-a-chip (SoC), and the specific type can be selected according to the needs of the electronic device 1.

[0127] In some embodiments, memory 12 is used to store computer programs and intermediate data or results generated during the execution of the computer programs. Memory 12 may include various types, such as random access memory (RAM), read-only memory (ROM), flash memory, etc.

[0128] In some embodiments, the memory 12 is communicatively connected to at least one processor 11, and the memory 12 stores a computer program that can be executed by at least one processor 11. When the at least one processor 11 executes the computer program, it implements the wireless wake-up button detection method described in the above embodiments.

[0129] According to the electronic device 1 of this disclosure, at least one processor 11 executes a computer program that implements the wireless wake-up button detection method described in the above embodiments. Through an interface connected to a wireless signal receiving module, it monitors the wake-up button waveform signal in real time. When the wake-up button waveform signal triggers a preset interrupt signal, it collects multiple bit values ​​of the wake-up button waveform signal. These bit values ​​are state sampling values ​​of the button waveform signal within a specific time window, reflecting the changing characteristics of the button waveform signal. Then, through bit operations (such as shifting, masking, etc.), the collected multiple bit values ​​are parsed into button key values ​​corresponding to the wake-up button waveform signal. This parsing process ensures that every bit sampled data in the wake-up button waveform signal is effectively utilized, thereby generating a unique button key value representation. Since the button key value is determined by multiple bit values, theoretically, the total number of button key values ​​is equal to an exponential multiple of the number of bits (e.g., n bits can distinguish 2^n bits). n (Number of button values), which far exceeds the current requirement of a limited number of buttons on Bluetooth remote controls, thus fully meeting the requirement for distinguishing button values. Furthermore, by matching button values ​​with expected button values ​​and executing the wake-up event corresponding to the expected button value, different button values ​​can correspond to a unique wake-up event, ensuring that the triggered wake-up event is consistent with the button function, thereby improving the user's interaction experience with the device.

[0130] This disclosure also proposes a computer-readable storage medium storing a computer program thereon, which, when executed, implements the wireless wake-up button detection method described in the above embodiments. The specific implementation process of the wireless wake-up button detection method can be referred to the description in the above embodiments.

[0131] According to the computer-readable storage medium of the present disclosure, by employing the wireless wake-up button detection method described in the above embodiments, different button values ​​can be effectively distinguished, and different wake-up events corresponding to different button values ​​can be triggered. This solves the problem of limited ability to distinguish the number of buttons, meets the device's need for multi-functional buttons, and thus improves the user's interaction experience with the device.

[0132] This disclosure also proposes a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions that, when executed by a computer, cause the computer to perform the wireless wake-up button detection method described in the above embodiments.

[0133] The computer program product according to the embodiments of this disclosure can effectively distinguish different key values ​​by executing the wireless wake-up button detection method described in the above embodiments, realize the triggering of different wake-up events corresponding to different key values, solve the problem of limited ability to distinguish the number of keys, meet the device's demand for multi-functional buttons, and thus improve the user's interaction experience with the device.

[0134] The following description of a smart device according to an embodiment of the present disclosure is with reference to Figures 7-8.

[0135] Figure 7 is a block diagram of a smart device according to an embodiment of the present disclosure. As shown in Figure 7, the smart device 100 includes the electronic device 1 described in the above embodiment. The processor 11 in the electronic device 1 can effectively distinguish different key values ​​by executing the wireless wake-up button detection method described in the above embodiment, thereby realizing the triggering of different wake-up events corresponding to different key values. This solves the problem of limited ability to distinguish the number of keys, meets the device's need for multi-functional buttons, and improves the user's interaction experience with the device.

[0136] Figure 8 is a block diagram of a smart device according to another embodiment of the present disclosure. As shown in Figure 8, the smart device 100 includes a wireless signal receiving module 2 and a controller 3.

[0137] In some embodiments, the wireless signal receiving module 2 may be a Wi-Fi module or a Bluetooth (BT) module, and the specific selection can be configured according to the communication requirements of the device.

[0138] In some embodiments, controller 3 is a hardware component responsible for receiving wireless signals and performing corresponding operations. Controller 3 can be a system-on-a-chip (SOC), an integrated circuit that integrates multiple key components of a computer system onto a single chip. An SOC can include multiple functional modules such as a processor, memory, input / output interfaces, communication modules, power management units, and graphics processing units (GPUs). SOCs aim to improve integration, reduce system size, and lower power consumption and cost. Besides SOCs, controller 3 can also be a microcontroller unit (MCU), a digital signal processor (DSP), a field-programmable gate array (FPGA), or an application-specific integrated circuit (ASIC).

[0139] In some embodiments, the controller 3 is connected to the wireless signal receiving module 2 via an interface, and the controller 3 is used to execute the wireless wake-up button detection method described in the above embodiments.

[0140] In some embodiments, the smart device 100 may include, but is not limited to, devices such as smart TVs and smart set-top boxes. The smart TV may include an integrated wireless signal receiving module 2, which can receive signals from a Bluetooth remote control and trigger corresponding operations based on the signals, such as waking up the device or changing channels. The smart set-top box, as an external device to the smart TV, also has Bluetooth receiving capabilities; after receiving a wake-up signal from the Bluetooth remote control, it can perform functions such as turning the device on / off or adjusting the volume.

[0141] According to the embodiments of the present disclosure, the smart device 100 performs the wireless wake-up button detection method described in the above embodiments. Specifically, it monitors the wake-up button waveform signal in real time through an interface connected to the wireless signal receiving module 2. When the wake-up button waveform signal triggers a preset interrupt signal, it collects multiple bit values ​​of the wake-up button waveform signal. These bit values ​​are state sampling values ​​of the button waveform signal within a specific time window, reflecting the changing characteristics of the button waveform signal. Then, it parses the collected multiple bit values ​​into the button key value corresponding to the wake-up button waveform signal through bit operations (such as shifting, masking, etc.). This parsing process ensures that every bit of sampling data in the wake-up button waveform signal is effectively utilized, thereby generating a unique button key value representation. Since the button key value is determined by multiple bit values, theoretically, the total number of button key values ​​is equal to an exponential multiple of the number of bits (e.g., n bits can distinguish 2^n bits). n(Number of button values), which far exceeds the current requirement of a limited number of buttons on Bluetooth remote controls, thus fully meeting the requirement for distinguishing button values. Furthermore, by matching button values ​​with expected button values ​​and executing the wake-up event corresponding to the expected button value, different button values ​​can correspond to a unique wake-up event, ensuring that the triggered wake-up event is consistent with the button function, thereby improving the user's interaction experience with the device.

[0142] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example.

[0143] Although embodiments of this disclosure have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of this disclosure, the scope of which is defined by the claims and their equivalents.

Claims

1. A method for detecting a wireless wake-up button, characterized in that, A controller for a smart device, the controller being connected to a wireless signal receiving module of the smart device, the method comprising: The wake-up button waveform signal is monitored via an interface connected to the wireless signal receiving module. In response to a preset interrupt signal of the wake-up button waveform signal, multiple bit values ​​of the wake-up button waveform signal are acquired; The key value corresponding to the wake-up button waveform signal is obtained based on the multiple bit values; When the key value of the button matches the expected key value, the wake-up event corresponding to the expected key value that the key value matches is executed.

2. The method according to claim 1, characterized in that, The preset interrupt signals include rising edge interruption and falling edge interruption of the wake-up button waveform signal.

3. The method according to claim 1, characterized in that, The plurality of bit values ​​includes a first bit value, and the step of acquiring the first bit value includes: Record the arrival time of each interrupt signal and the level state of the interface; The first time interval between two adjacent interrupt signals is determined based on the arrival time of two adjacent interrupt signals. Based on the first time interval and the level state between the two adjacent interrupt signals, the bit value between the two adjacent interrupt signals is collected as the first bit value.

4. The method according to claim 1 or 3, characterized in that, The plurality of bit values ​​also includes a second bit value, and the step of acquiring the second bit value includes: The timer starts from the moment the first interruption occurs; When the total timing time reaches the threshold for acquiring the waveform of the wake-up button, the interrupt signal is turned off; Obtain a second time interval between the interrupt signal shutdown time and the adjacent interrupt signal at the shutdown time, and obtain the level state of the interface within the second time interval; The second bit value is determined based on the second time interval and the level state of the interface within the second time interval.

5. The method according to claim 4, characterized in that, The method further includes: When an adjacent interrupt signal arrives at the shutdown time and the interface's level state differs from its initial level state, the second time interval and the interface's level state within the second time interval are obtained in response to the terminal signal shutdown time.

6. The method according to claim 5, characterized in that, The method further includes: When an adjacent interrupt signal arrives at the shutdown time and the interface's level state is the same as the interface's initial level state, the interface's level state at the time of the adjacent interrupt signal's arrival at the shutdown time shall be used as the supplementary level state. The second bit value is determined based on the second time interval and the supplementary level state.

7. The method according to claim 6, characterized in that, The initial voltage level of the interface is either high or low.

8. The method according to claim 1, characterized in that, The acquisition of multiple bit values ​​of the wake-up button waveform signal includes: Start the timer; The interface level state is recorded at least once during each timing cycle of the timer until the timer duration reaches the wake-up button waveform acquisition time threshold, at which point the timer is turned off. The bit value for each timing cycle is obtained based on the level state of the interface recorded within each timing cycle; The multiple bit values ​​of the wake-up button waveform signal are the bit values ​​of all timing cycles.

9. The method according to claim 1, characterized in that, Before acquiring multiple bit values ​​of the wake-up button waveform signal in response to a preset interrupt signal, the method further includes: The initialization process for the acquisition task is created, the interface is configured to an initial level state, the interrupt triggering method is to detect rising edge interrupt and / or falling edge interrupt, and the sampling state machine is initialized to an idle state. When entering the interrupt handling function, the sampling state machine is in an idle state and detects a level state opposite to the initial level state of the interface, thus initiating the acquisition of the wake-up button waveform signal and sending a task trigger signal to the acquisition task.

10. The method according to any one of claims 1, characterized in that, The data length of the wake-up button waveform signal is multiple bytes.

11. The method according to claim 10, characterized in that, When the data length of the wake-up button waveform signal is 2 bytes, the data format of the wake-up button waveform signal is represented as a 1-bit start bit, an 11-bit button value, and a 4-bit check value.

12. An electronic device, characterized in that, include: At least one processor; A memory that is communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, and when the at least one processor executes the computer program, it implements the wireless wake-up button detection method according to any one of claims 1-11.

13. A computer-readable storage medium having stored thereon computer-stored executable instructions, characterized in that, The computer-executable instructions are configured to perform the wireless wake-up button detection method according to any one of claims 1-11.

14. A computer program product comprising a computer program stored on a computer-readable storage medium, the computer program including program instructions that, when executed by a computer, cause the computer to perform the wireless wake-up button detection method according to any one of claims 1-11.

15. A smart device, characterized in that, The smart device includes the electronic device according to claim 12; Alternatively, the smart device includes a wireless signal receiving module and a controller, the controller being connected to the wireless signal receiving module via an interface, and the controller being used to execute the wireless wake-up button detection method according to any one of claims 1-11.