NFC near field wake-up low-power remote control pairing method
By using supercapacitor energy storage and dynamic throttling coefficient adjustment in the NFC near-field wake-up low-power remote control, the problem of frequent power loss caused by insufficient NFC power supply is solved, achieving reliable pairing and a secure user experience.
Patent Information
- Application Number
- CN202510957474.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-11
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2045-07-11
AI Technical Summary
In existing technologies, insufficient NFC near-field power supply causes low-power remote controls to frequently power off and reset during startup, making reliable pairing impossible, resulting in a poor user experience and security risks.
By detecting the external RF field and injecting energy into the supercapacitor, recording the initial energy storage, the microcontroller, RF front-end, and sensor are activated sequentially, the Bluetooth broadcast power and interval are dynamically adjusted, the rectifier voltage slope is monitored, the sensor activation is delayed, energy is replenished through user interaction, pairing is ensured, and the temporary key is cleared.
It improves pairing success rate, enhances system stability and battery life, prevents replay attacks, and improves user experience and device security.
Smart Images

Figure CN120568305B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of NFC and wireless communication technology, in particular to a low-power remote control code matching method based on NFC near-field wake-up. BACKGROUND
[0002] In the living room scenario, users want to place the low-power remote control with sensors in the near-field induction area of the mobile phone or TV to complete the network configuration immediately, and keep the sensitivity and reliability in subsequent operation. The near-field magnetic field generated by the mobile phone provides the starting energy for the remote control, but this energy is already weak, and will quickly decay with the position of the touch, the size of the coil and the antenna alignment. When the touchpad, inertial element or microphone inside the remote control pulls up the load instantaneously during the power-on self-test, the voltage of the rectification node drops sharply. At this time, without additional buffering, the microcontroller will power off and reset again after completing the start-up due to insufficient power supply, and the near-field energy and peripheral surge form a tug-of-war. As a result, the user may not see the pairing success prompt, and can only try repeatedly, which constantly interrupts the experience.
[0003] The root cause of the problem lies in the superposition of the hard constraints of near-field power supply, peripheral peak current and protocol timing: limited radio frequency energy cannot cover the surge demand of multiple sensors, resulting in a rectified voltage that drops below the microcontroller brownout threshold and triggers a reset; the reset process clears the Bluetooth secure handshake state, while the external pairing end is still timing, and the complete out-of-band key is not received, which is judged as a failure; the frequent power-off-power-on cycle not only forces the user to touch multiple times, but also increases the number of flash memory write-erase times and exposes the temporary identifier left by the incomplete pairing, which provides an opportunity for replay attacks.
[0004] The industry has proposed using supercapacitors and step-by-step power-on to buffer peaks, but existing public solutions mostly stay at the hardware patch level, lacking system design that coordinates with dynamic power capture and fine broadcast scheduling. This chain failure ultimately makes the core experience of "one touch code matching" unfulfilled.
[0005] Therefore, the present application provides a low-power remote control code matching method based on NFC near-field wake-up. SUMMARY
[0006] (I) Technical problems solved
[0007] In view of the deficiencies of the prior art, the application provides a low-power remote controller code matching method based on NFC near-field wake-up, which detects an external RF field and injects energy into a super capacitor to record initial energy storage; when the energy reaches a threshold, a microcontroller, an RF front end and a sensor are sequentially started; the Bluetooth broadcast power and interval are adjusted according to a dynamic throttling coefficient; the rectifier voltage slope is monitored, and if the slope is reversed and the throttling coefficient is low, the sensor is delayed to start; after pairing confirmation, the user is prompted to lightly touch to supplement energy and unlock all sensors; when all sensors are online and the energy is higher than a safety threshold, the temporary key is cleared and the state is written to the host. Through energy detection and storage, sequential starting of components, dynamic adjustment of broadcast parameters and voltage slope monitoring, the pairing success rate is improved, thereby solving the technical problems recorded in the background art.
[0008] (II) Technical solutions
[0009] To achieve the above object, the application is implemented by the following technical solutions: a low-power remote controller code matching method based on NFC near-field wake-up, comprising: after detecting an external RF field, a rectifier network injects energy into a super capacitor and records initial energy storage, and writes the energy into an energy management register;
[0010] When the initial energy storage reaches a preset threshold, a power management circuit sequentially turns on the device in the order of microcontroller-RF front end-multiple sensors, and updates the power-on flag after each turn-on;
[0011] After the microcontroller reads the power-on flag, the Bluetooth broadcast power and interval are adjusted according to a dynamic throttling coefficient, and the dynamic throttling coefficient is obtained by inputting the energy slope margin index and the broadcast load index into a fuzzy inference table;
[0012] If the rectifier voltage slope is reversed within a monitoring period and the dynamic throttling coefficient is lower than a safety threshold, the multiple sensor power-on is temporarily suspended, the field strength detection is retriggered, and the threshold table is updated;
[0013] After receiving the pairing confirmation of an external device, the microcontroller sends a vibration prompt and requests the user to touch again, supplements energy by the second touch, and unlocks all sensors;
[0014] When all sensors are online and the detected energy is higher than a safety line, the microcontroller clears the temporary key and writes the terminal state to the host through Bluetooth features.
[0015] Further, when the external RF field is detected, the external RF field is converted into alternating current energy by the RF front end module, the alternating current energy is converted into direct current energy by the rectifier network, and the direct current energy is stored in the super capacitor;
[0016] The initial storage energy is calculated according to the voltage of the super capacitor and the capacitance value of the super capacitor, and the initial storage energy is written into the energy management register.
[0017] Further, the microcontroller reads the initial energy storage value recorded in step one from the energy management register and compares the initial energy storage value with a preset energy threshold value;
[0018] When the initial energy storage value is greater than or equal to the preset energy threshold value, the power management circuit sequentially turns on the microcontroller, the radio frequency front end and the multi-sensor according to the preset order, and updates the power-on flag and records it in the special register after each device is turned on.
[0019] Further, the power management circuit measures the current voltage value of the super capacitor and compares the current voltage value with a preset danger threshold value;
[0020] When the current voltage value is greater than the preset danger threshold value, the power management circuit continues to perform the next operation;
[0021] When all devices are turned on, the microcontroller reads the power-on flag in the special register and confirms that all devices are in the on state, completing the power-on process.
[0022] Further, the microcontroller reads the power-on flag from the special register to confirm that the microcontroller, the radio frequency front end and the multi-sensor have been turned on; the microcontroller collects the rectified voltage value output by the rectifier network in real time through the voltage monitoring circuit, records the sampling value of the rectified voltage in the preset sliding time window, calculates the rectified voltage slope and accumulates the rectified voltage slope in the sliding time window to obtain the energy slope margin index.
[0023] Further, the microcontroller records the energy consumption of a single Bluetooth broadcast, calculates the collectable power by multiplying the rectified voltage value and the rectified current value, and calculates the broadcast load index by dividing the energy consumption of a single Bluetooth broadcast by the collectable power;
[0024] The microcontroller inputs the energy slope margin index and the broadcast load index into the preset fuzzy inference table of the balance between collection and emission to output a dynamic throttling coefficient.
[0025] Further, the microcontroller adjusts the Bluetooth broadcast power and the broadcast interval according to the dynamic throttling coefficient, specifically,
[0026] The maximum allowed broadcast power is multiplied by the dynamic throttling coefficient to obtain the actual broadcast power, and the actual broadcast interval is calculated by interpolation between the minimum broadcast interval and the maximum broadcast interval according to the dynamic throttling coefficient;
[0027] The microcontroller configures the Bluetooth module to perform broadcast operations using the adjusted actual broadcast power and actual broadcast interval, and the broadcast content includes the identification information of the remote controller and the pairing request.
[0028] Further, the microcontroller continuously collects the rectified voltage value output by the rectification network through the voltage monitoring circuit, collects the sampling value of the rectified voltage within a preset monitoring period, calculates the rectified voltage slope and monitors the sign change of the rectified voltage slope to detect the slope reversal, and sets a slope reversal flag;
[0029] The microcontroller acquires the dynamic throttling coefficient and compares it with a preset safety threshold. When the slope reversal flag is 1 and the dynamic throttling coefficient is less than the safety threshold, the microcontroller suspends the power-on operation of the multi-sensor, the power management circuit cuts off the power supply channel of the multi-sensor, and the power-on flag is updated.
[0030] Further, the microcontroller instructs the radio frequency front-end module to re-measure the external radio frequency field intensity and update the current energy storage in the energy management register; the microcontroller updates the energy threshold table according to the current energy storage and the rectified voltage;
[0031] When the current energy storage exceeds the minimum energy required for the multi-sensor to start and the rectified voltage slope is stable and positive, the microcontroller removes the multi-sensor power-on restriction, the power management circuit re-energizes the multi-sensor, and the power-on flag is restored.
[0032] Further, the microcontroller receives a pairing confirmation signal sent by an external device, and the microcontroller drives the vibration motor to generate vibration to prompt the user that the pairing is successful;
[0033] The microcontroller sends a request message or adjusts the vibration mode of the vibration motor through the Bluetooth module to broadcast to the external device, prompting the user to again place the remote controller against the near field induction area of the external device.
[0034] Further, after the user places it again, the rectification network captures the radio frequency energy of the external radio frequency field and converts it into electrical energy to charge the super capacitor, and the microcontroller monitors the voltage of the super capacitor and calculates the current energy storage;
[0035] When the current energy storage is higher than the preset threshold, the microcontroller removes the power-on lock of all sensors, the power management circuit updates the power-on flag to the full-on state, and the microcontroller writes the current energy storage into the energy management register.
[0036] Further, the microcontroller reads the power-on flag of the power management circuit to confirm that the microcontroller, the radio frequency front-end, and the multi-sensor are all turned on; the microcontroller reads the current energy storage from the energy management register and compares it with a preset safety line energy storage;
[0037] When the power-on flag indicates that the microcontroller, the radio frequency front-end, and the multi-sensor are all turned on and the current energy storage is greater than the safety line energy storage, the microcontroller clears the temporary key stored in the safety storage area.
[0038] Further, the microcontroller transmits the terminal state to the external device through the write feature function of the Bluetooth low energy protocol, the terminal state including a pairing completion flag, a sensor state, a current energy storage and remote controller identification information; the microcontroller sends a code completion notification through Bluetooth broadcast and drives the vibration motor to execute a vibration mode.
[0039] (III) Beneficial Effects
[0040] The application provides an NFC near-field wake-up low-power remote controller code matching method, which has the following beneficial effects:
[0041] The rectifier network injects energy into the super capacitor and records the initial energy storage, thereby providing reliable starting energy reserve for the remote controller, fully utilizing the fast charging and discharging characteristics of the super capacitor, effectively responding to the volatility of the near-field energy supply, ensuring the stable start of the remote controller under weak energy conditions, and significantly improving the success rate of the first pairing.
[0042] The hierarchical and orderly power-on strategy is adopted, the power management circuit turns on the devices in the order of "microcontroller - radio frequency front end - multi-sensor" in turn, and updates the power-on flag after each turn-on; the instantaneous high current impact caused by simultaneous start of multiple devices is avoided, the microcontroller is protected from energy fluctuations, and the stability of the system is enhanced. In addition, by introducing a dynamic throttling coefficient, according to the energy slope margin index and the broadcast load index, the Bluetooth broadcast power and interval are adjusted in real time through fuzzy reasoning, realizing the dynamic balance of energy collection and consumption, ensuring that the remote controller can maintain stable communication ability under large energy fluctuations, and embodying high adaptability and intelligence.
[0043] When the rectified voltage slope reverses and the dynamic throttling coefficient is lower than the safety threshold, the sensor power-on is suspended and the field strength detection is retriggered, and the threshold table is updated to prevent energy overdraft; measures can be taken quickly when the energy is insufficient, the operation of the core components is protected, the system is prevented from resetting due to energy depletion, and the stability of the system is greatly improved.
[0044] By sending a vibration prompt and requesting the user to reattach, the energy is supplemented by the second attachment, and the power-on lock of all sensors is released; not only does it ensure that the remote controller has complete operation functions after successful pairing, but also cleverly supplements energy using the near-field induction area of the external device through user interaction, enhances the endurance of the remote controller, and improves the continuity and convenience of the user experience.
[0045] After all sensors are online and the stored energy is higher than the safety line, the temporary key is cleared and the terminal state is written back to the host through the Bluetooth feature, announcing the completion of the code flow process. This security management measure effectively prevents security risks such as replay attacks, ensuring user privacy and device security. Through the synergistic effect of super capacitor energy storage, hierarchical power-up strategy, dynamic throttling coefficient, emergency response mechanism, user interaction design and security management measures, the performance and user experience of the low-power remote controller in the NFC near-field wake-up scene are significantly improved. BRIEF DESCRIPTION OF DRAWINGS
[0046] Figure 1 A code flow process diagram of the low-power remote controller for NFC near-field wake-up of the application. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the application will be clearly and completely described below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only part of the embodiments of the application, rather than all the embodiments. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the application.
[0048] Please refer to Figure 1 The application provides a code flow process of a low-power remote controller for NFC near-field wake-up, comprising,
[0049] Step one, when detecting an external radio frequency field, convert the external radio frequency field into alternating current energy through a radio frequency front-end module, convert the alternating current energy into direct current energy through a rectifier network, store the direct current energy in a super capacitor, calculate the initial stored energy according to the voltage of the super capacitor and the capacitance value of the super capacitor, and write the initial stored energy into an energy management register;
[0050] The step one includes the following contents:
[0051] Step 101, detecting an external radio frequency field
[0052] The radio frequency front-end module configured inside the remote controller continuously monitors the radio frequency signals in the surrounding environment. When an external device, such as a mobile phone or a television near-field communication induction area, generates a radio frequency field and enters the detection range of the radio frequency front-end module, the radio frequency front-end module captures this radio frequency signal and converts it into electrical energy. This process ensures that the remote controller can quickly perceive the user's behavior of placing the remote controller against the external device, and provides a start signal for subsequent energy management.
[0053] The design of the radio frequency front-end module is based on the general technical principle of radio frequency signal capture, and uses its sensitivity and response speed to effectively detect the external radio frequency field.
[0054] The radio frequency front-end module continuously monitors the external radio frequency field, can ensure that the remote controller perceives the user's behavior of sticking to the external device in time and responds, can improve the immediacy of the remote controller and the external device interaction, and improves the user's use convenience. By adopting a sensitive radio frequency signal capture technology, the system can reliably work in a weak radio frequency field environment, and enhances the device's ability to adapt to various scenes.
[0055] Step 102, rectifying network converts electric energy
[0056] The rectifying network receives the electric energy signal output by the radio frequency front-end module, which exists in the form of alternating current. The rectifying network converts this alternating current energy into direct current energy through an internal rectifying circuit. The rectifying circuit uses a diode or bridge rectifier structure to adjust the positive and negative alternating changes of the radio frequency signal to a single direction current output. This conversion process provides stable direct current power for the subsequent energy storage unit, ensuring that the energy form matches the storage requirements. The realization of the rectifying network is based on the general technology of electric energy conversion, which can effectively handle the instability of the radio frequency signal.
[0057] The rectifying network converts the alternating current energy output by the radio frequency front-end module into direct current energy, providing a stable charging power source for the super capacitor. This conversion process improves energy utilization efficiency and ensures that the energy form matches the storage unit's requirements. Stable direct current energy output reduces energy loss caused by radio frequency signal fluctuations, enhancing the reliability of the system's energy management.
[0058] Step 103, energy injection into super capacitor
[0059] The direct current energy output by the rectifying network is directly transmitted to the super capacitor and stored. As an energy storage unit, the super capacitor has the ability to quickly store and release a large amount of electric energy. By injecting direct current energy into the super capacitor, it can buffer the transient energy provided by the external radio frequency field, ensuring the continuity and stability of energy supply. This process prevents energy interruption caused by radio frequency field intensity fluctuations, ensuring the normal operation of the subsequent microcontroller. The selection of the super capacitor is based on its high energy density and fast charging and discharging physical characteristics.
[0060] By injecting direct current energy into the super capacitor, taking advantage of the high energy density and fast charging and discharging characteristics of the super capacitor, the transient energy changes of the external radio frequency field can be buffered, which can avoid the interruption of the microcontroller caused by unstable energy supply, and ensure the continuous working ability. The fast response characteristics of the super capacitor also improve the efficiency of energy management.
[0061] Step 104, record initial energy storage
[0062] The energy management unit monitors the voltage value of the super capacitor in real time and calculates the initial stored energy according to the capacitance value and the current voltage of the super capacitor. The capacitance value of the super capacitor is a fixed parameter determined in the hardware design. The calculation of the initial stored energy is based on the physical characteristics of the capacitance energy, that is, the specific value is obtained by multiplying the capacitance value and the square of the voltage and taking half of it. This calculation method relies on the general principle of capacitance energy and ensures the accuracy of the initial stored energy value, providing a reliable basis for subsequent judgment of whether the power-on condition is met.
[0063] The energy management unit provides accurate energy state data by monitoring the super capacitor voltage and calculating the initial stored energy. This accurate calculation avoids operation failure caused by energy evaluation error and ensures the reliability of subsequent power-on judgment. The calculation method based on the physical characteristics of capacitance energy is universal and verifiable, improving the scientificity of technical implementation.
[0064] Step 105, write energy management register
[0065] The energy management unit stores the calculated initial stored energy value in the energy management register. The energy management register is a dedicated storage unit in the system, designed to save the initial stored energy value. After storage is completed, the data in the energy management register can be read by subsequent steps to determine whether the stored energy reaches the preset threshold. This process ensures the accessibility and consistency of the initial stored energy data, facilitating the microcontroller to perform corresponding operations according to the energy state.
[0066] Storing the initial stored energy in the energy management register ensures the persistent storage and readability of the data, facilitating the microcontroller to quickly access energy state information and make decisions, improving the efficiency and consistency of system operation. The use of dedicated registers also reduces the risk of data loss and enhances the stability of energy management.
[0067] The rectifier network converts the alternating current energy captured by the radio frequency front-end module into direct current energy and transmits it to the super capacitor for storage, ensuring that the energy of the external radio frequency field is efficiently utilized, and the energy is smoothly supplied through the storage capacity of the super capacitor. The combination of conversion and storage is based on the general technical principles of energy management, aiming to optimize energy utilization efficiency. The calculation of the initial stored energy relies on the capacitance value of the super capacitor and the real-time monitored voltage value. The calculation method utilizes the physical characteristics of capacitance energy, and the stored energy value is obtained by taking half of the product of the capacitance value and the square of the voltage.
[0068] In use, step one is the starting stage of the remote controller and external device pairing process. The key tasks of energy capture and state recording are completed by detecting the external radio frequency field, converting the electrical energy, storing the energy to the super capacitor, calculating the initial energy storage and storing it in the energy management register. The processing of this stage provides stable energy support and clear energy state information for the subsequent power-on and pairing operation of the microcontroller. The entire process is based on the technical principle of radio frequency energy management, ensuring the stability of the remote controller in the near field communication power supply environment, and creating conditions for the smooth progress of the pairing process.
[0069] Step two, the microcontroller reads the initial energy storage value recorded in step one from the energy management register, and compares the initial energy storage value with the preset energy threshold value. When the initial energy storage value is greater than or equal to the preset energy threshold value, the power management circuit turns on the microcontroller, the radio frequency front end and the multi-sensor in sequence according to the pre-set order, and updates the power-on flag and records it in the special register after each device is turned on. At the same time, the power management circuit measures the current voltage value of the super capacitor and compares it with the preset dangerous threshold value. When the current voltage value is greater than the preset dangerous threshold value, the power management circuit continues to perform the next operation. When all devices are turned on, the microcontroller reads the power-on flag in the special register and confirms that all devices are in the on state, completing the power-on process.
[0070] The step two includes the following contents:
[0071] Step 201, determine whether the initial energy storage reaches the preset threshold
[0072] The microcontroller reads the initial energy storage value recorded in step one from the energy management register, which is expressed in joules as energy storage. The microcontroller compares the initial energy storage with the preset energy threshold value, which is a fixed value calculated according to the total energy required for the start of the microcontroller, the radio frequency front end and the multi-sensor in the design stage, and the unit is also joule. When the initial energy storage is greater than or equal to the preset energy threshold value, the microcontroller determines that the energy is sufficient, and enters the next operation; when the initial energy storage is less than the preset energy threshold value, the microcontroller suspends the subsequent operation, waits for the super capacitor to charge through the rectifier network, until the initial energy storage reaches or exceeds the preset energy threshold value.
[0073] Ensure that the device has sufficient energy storage before starting, avoid the system from not running normally due to insufficient energy, and can improve the reliability of the power-on process. By comparing the current energy storage with the minimum energy required for device startup, the energy condition is confirmed before continuing to execute.
[0074] Step 202, turn on the device in sequence
[0075] The power management circuit sequentially turns on the devices in a pre-set order: first the microcontroller, then the RF front-end, and finally the multi-sensor. The microcontroller, as the core control unit, is given priority to complete initialization and prepare for controlling the subsequent devices; the RF front-end is responsible for near-field communication and is enabled after the microcontroller is running stably; the multi-sensor, as a secondary load, is turned on last to reduce the peak energy demand when multiple devices are started simultaneously. The order of turning on the devices is determined based on the functional priority and energy consumption characteristics of the devices. Starting the devices in stages can avoid the instantaneous high current surge caused by turning on all devices at the same time; the advantage is to protect the microcontroller from energy fluctuations while optimizing energy use efficiency. According to the importance and energy demand of the devices, the core components are enabled first, and the secondary components are activated gradually, achieving a smooth transition of energy consumption.
[0076] Step 203, updating the power-on flag
[0077] After turning on one device at a time, the power management circuit updates the power-on flag and records it in a dedicated register. The power-on flag uses binary bits to represent the state of the device, and the register contains three bits: the first bit corresponds to the microcontroller, the second bit corresponds to the RF front-end, and the third bit corresponds to the multi-sensor. The value of each bit is zero, indicating that the corresponding device is not turned on, and the value is one, indicating that the corresponding device is turned on. For example, after turning on the microcontroller, the power-on flag is recorded as binary 001; after turning on the RF front-end, it is updated to binary 011; after turning on the multi-sensor, it is updated to binary 111. By recording the state of the device through the flag bit, the microcontroller can keep track of the power-on progress in real time; the advantage is to provide a simple and efficient state management method for system monitoring. By using binary bits to mark the state of each device, the state update is synchronized with the device operation.
[0078] Step 204, monitoring the energy state
[0079] After turning on one device at a time, the power management circuit measures the current voltage value of the super capacitor, in volts.
[0080] The power management circuit compares the current voltage with the pre-set danger threshold value. The pre-set danger threshold value is a fixed value determined according to the minimum voltage required for the microcontroller to maintain normal operation, in volts; when the current voltage is greater than the pre-set danger threshold value, the power management circuit determines that the energy state is safe, and continues to perform the next operation; when the current voltage is less than or equal to the pre-set danger threshold value, the power management circuit suspends the subsequent turning-on operation, waits for the super capacitor to charge through the rectifier network, and continues until the current voltage exceeds the pre-set danger threshold value. Real-time monitoring of voltage can detect energy deficiency in a timely manner; the advantage is to prevent energy overdraft and ensure that the device operates within a safe range. By comparing the voltage value, the energy state is dynamically evaluated and appropriate measures are taken to maintain system stability.
[0081] When the microcontroller, the radio frequency front end and the multi-sensor are all turned on, the power-on flag is displayed as binary 111. The microcontroller reads the power-on flag in the special register to confirm that all devices are in the on state. At this time, the power-on process is over, and the system is ready to enter the pairing process of step three. By confirming that all devices are ready through the flag bit, it is ensured that the power-on process is completed completely; the advantage is to clarify the system state and provide reliable conditions for subsequent operations. The final state of the power-on flag is used to verify the on state of the device, ensuring that the system enters an operable state.
[0082] Step two determines the start of the power-on process based on the initial stored energy recorded in step one by judging whether the initial stored energy reaches the preset threshold; the devices are turned on in order and the power-on flag is updated to ensure the orderliness of device activation and the traceability of the state. The energy state is monitored through real-time voltage measurement to ensure the stability of the energy during the power-on process. After completing the power-on process, all devices are turned on as a sign to successfully transition to the pairing process of step three. This design realizes a coherent process from energy evaluation to device start, ensuring the reliability and stability of the system operation.
[0083] Step three, the microcontroller reads the power-on flag from the special register to confirm that the microcontroller, the radio frequency front end and the multi-sensor are all turned on; the microcontroller collects the rectified voltage value output by the rectifier network in real time through the voltage monitoring circuit, records the sampling value of the rectified voltage in the preset sliding time window, calculates the rectified voltage slope and accumulates the rectified voltage slope in the sliding time window to obtain the energy slope margin index;
[0084] The microcontroller records the energy consumption of a single Bluetooth broadcast, calculates the collectable power by multiplying the rectified voltage value and the rectified current value, and calculates the broadcast load index by dividing the energy consumption of a single Bluetooth broadcast by the collectable power; the microcontroller inputs the energy slope margin index and the broadcast load index into the preset fuzzy inference table of the energy collection and release balance to output a dynamic throttling coefficient;
[0085] The microcontroller adjusts the Bluetooth broadcast power and the broadcast interval according to the dynamic throttling coefficient, specifically, the maximum allowed broadcast power is multiplied by the dynamic throttling coefficient to obtain the actual broadcast power, and the actual broadcast interval is calculated by interpolation between the minimum broadcast interval and the maximum broadcast interval according to the dynamic throttling coefficient; the microcontroller configures the Bluetooth module to perform broadcast operation using the adjusted actual broadcast power and actual broadcast interval, and the broadcast content includes the identification information of the remote controller and the pairing request.
[0086] The step three includes the following contents:
[0087] Step 301, reading the power-on flag
[0088] The microcontroller reads the power-on flag from the special register written in step two to confirm whether the microcontroller, the radio frequency front end and the multi-sensor are all turned on.
[0089] The power-on flag is represented in binary form, specifically a three-digit number: the first digit represents the on-off state of the microcontroller, the second digit represents the on-off state of the radio frequency front end, and the third digit represents the on-off state of the multi-sensor. Each digit is "1" indicating that it has been turned on, and "0" indicating that it has not been turned on. When the power-on flag is all "1", i.e. all three digits are "1", it means that the microcontroller, the radio frequency front end and the multi-sensor have all been turned on, and the microcontroller enters the next step of operation;
[0090] When the power-on flag does not reach the all "1" state, for example, only the first digit is "1" and the second and third digits are "0", it means that only the microcontroller is turned on, at which time the microcontroller suspends the subsequent operation and waits for step two to complete the turning on of the radio frequency front end and the multi-sensor. By checking the working state of all devices through the power-on flag, it is ensured that the system hardware is ready before performing the broadcast, avoiding operation interruption due to partial devices not being turned on; the advantage is to improve the stability and reliability of the pairing process, and to verify the on-off state of the devices one by one through the flag bit, ensuring the correctness of the operation timing.
[0091] Step 302, monitoring the rectified voltage slope
[0092] The microcontroller collects the rectified voltage value output by the rectifier network in real time through the voltage monitoring circuit, with the unit being volt; the microcontroller records multiple sampling values of the rectified voltage within a preset sliding time window, for example, a time period of 10 milliseconds. The microcontroller calculates the rectified voltage slope, with the unit being volt per second;
[0093] The specific method is to take the voltage difference of two adjacent sampling points and divide it by the time interval between the two sampling points to approximate the rate of change of voltage with time. The microcontroller accumulates the multiple rectified voltage slope values calculated within the sliding time window to obtain the energy slope margin index, with the unit being volt; the energy slope margin index reflects the cumulative trend of the rectified voltage in a period of time: if the result is positive, it indicates that the energy supply is increasing; if the result is negative, it indicates that the energy supply is decreasing. By analyzing the rate of change and cumulative trend of the rectified voltage, the dynamic characteristics of the energy supply are evaluated in real time; the advantage is that the change of energy state can be reflected in time, providing a basis for subsequent broadcast parameter adjustment. The stability of energy supply is quantified by using the characteristics of voltage change with time.
[0094] Step 303, calculating the broadcast load index
[0095] The microcontroller records the energy consumption in joules required for a single Bluetooth broadcast, which is determined by the broadcast power and the duration. The microcontroller measures the collectable power output by the rectification network in watts, specifically calculated by the product of the rectification voltage value and the rectification current value. The microcontroller calculates the broadcast load index, which is a dimensionless value, by dividing the single broadcast energy consumption by the collectable energy, which is obtained by multiplying the collectable power by the broadcast period. The broadcast load index reflects the degree of burden on the energy supply caused by the broadcast operation: the larger the value, the greater the pressure on energy consumption caused by the broadcast; the smaller the value, the more adequate the energy supply. By comparing the relationship between broadcast energy consumption and collectable energy, the load impact of the broadcast operation on the energy system is quantified; the advantage is that it is convenient to evaluate the feasibility of the broadcast operation under the current energy state. The sustainability of the broadcast is analyzed through the ratio of energy consumption to energy supply.
[0096] Step 304, determining the dynamic throttling coefficient
[0097] The microcontroller inputs the energy slope margin index and the broadcast load index into the preset deployment and retraction balance fuzzy inference table; the deployment and retraction balance fuzzy inference table is a decision tool designed based on expert knowledge, which can output the dynamic throttling coefficient according to the combination of the energy slope margin index and the broadcast load index. The dynamic throttling coefficient is a dimensionless value, with a value range of 0 to 1, and its numerical size represents the adjustment degree of the broadcast operation: the closer the value is to 0, the lower the broadcast power consumption needs to be; the closer the value is to 1, the stronger the broadcast can be. By using fuzzy inference method to comprehensively analyze the energy trend and the broadcast burden, intelligent adjustment of the broadcast parameters is realized; the advantage is to improve the adaptability and flexibility of energy management, and to ensure the stable operation of the system under different energy states. Through fuzzy logic, multiple influencing factors are fused to generate a comprehensive coefficient for adjusting the broadcast.
[0098] Step 305, adjusting the Bluetooth broadcast parameters
[0099] The microcontroller adjusts the Bluetooth broadcast power and the broadcast interval according to the dynamic throttling coefficient; the adjustment method of the broadcast power is to multiply the maximum allowed broadcast power preset by the system by the dynamic throttling coefficient to obtain the actual used broadcast power in watts. The adjustment method of the broadcast interval is to perform interpolation calculation between the preset minimum broadcast interval and the maximum broadcast interval according to the value of the dynamic throttling coefficient; the smaller the dynamic throttling coefficient, the longer the broadcast interval, in seconds. The adjusted broadcast power and broadcast interval ensure that the power consumption of the broadcast operation matches the current energy supply state. By dynamically adjusting the broadcast power and interval, the energy consumption and communication demand are balanced; the advantage is to avoid communication failure caused by insufficient energy supply, and to maintain the timeliness of sending pairing requests. The strength and frequency of the broadcast are adaptively adjusted according to the energy state.
[0100] Step 306, execute the adjusted broadcast
[0101] The microcontroller configures the Bluetooth module to perform the broadcast operation using the adjusted broadcast power and broadcast interval. The broadcast content includes the remote controller's identification information and pairing request, which is used by external devices (such as mobile phones or televisions) to identify and respond. Communication based on optimized broadcast parameters ensures a smooth pairing process; the benefits are improved pairing success rate and improved user experience. By adjusting the parameters to perform communication tasks, a balance between energy utilization and functional requirements is achieved.
[0102] As a supplement, the following content is disclosed as another similar way:
[0103] Monitor the rectified voltage slope: the microcontroller collects the rectified voltage V rect output by the rectifier network in real time through the voltage monitoring circuit. win Within the preset sliding time window T rect (eg 10ms), record the sampling value of V
[0104] Calculate the rectified voltage slope S rect in volts per second (V / s) using the approximate calculation of the time derivative:
[0105]
[0106] Where t is the current sampling time and Δt is the sampling interval. Integrate S win within the sliding time window T rect to obtain the energy slope margin index I energy :
[0107]
[0108] I energy is a dimensioned value in volts (V), reflecting the energy change trend: a positive value indicates an increase in energy, and a negative value indicates a decrease in energy.
[0109] Calculate the broadcast load index: the microcontroller records the energy consumption E adv of a single Bluetooth broadcast in joules (J), which is determined by the broadcast power and duration. Measure the collectible power P harvest in watts (W) by calculating the output of the rectifier network:
[0110] P harvest = V rect × I rect
[0111] Where I rect is the output current of the rectifier network in amperes (A).
[0112] Calculate the broadcast load index L adv , which is a dimensionless value, represents the ratio of broadcast energy consumption to collectable energy:
[0113]
[0114] , where T adv is the Bluetooth broadcast period, in seconds (s).
[0115] Determine the dynamic throttling coefficient: the energy slope margin index I energy and the broadcast load index L adv Input the preset deployment and retraction balance fuzzy inference table; the fuzzy inference table is designed based on expert knowledge, and the output is the dynamic throttling coefficient K throttle , which is a dimensionless value, with a value range of 0 to 1; K throttle The meaning of: the smaller the value, the lower the power consumption, the larger the value, the stronger the broadcast.
[0116] By confirming that the microcontroller, radio frequency front end and multi-sensor are all turned on, it is ensured that the hardware is ready; the rectified voltage slope and the broadcast load index are calculated to evaluate the current energy state from two aspects of energy trend and broadcast burden, providing data support for subsequent parameter adjustment, and the dynamic throttling coefficient is determined by fuzzy inference to generate adjustment basis; adjust the Bluetooth broadcast parameters and execute the adjusted broadcast in turn. Apply the evaluation results to actual operation to ensure that the broadcast power consumption matches the energy supply. This design forms a coherent technical process from device state confirmation to energy evaluation, parameter adjustment and execution, ensuring the stability and reliability of the pairing process, while providing necessary support for subsequent steps.
[0117] Step four, the microcontroller continuously collects the rectified voltage value output by the rectifier network through the voltage monitoring circuit, collects the sampling value of the rectified voltage in the preset monitoring period, calculates the rectified voltage slope and monitors the sign change of the rectified voltage slope to detect the slope reversal, and sets the slope reversal flag bit;
[0118] The microcontroller obtains the dynamic throttling coefficient from step three and compares it with the preset safety threshold; when the slope reversal flag bit is 1 and the dynamic throttling coefficient is less than the safety threshold, the microcontroller suspends the power-on operation of the multi-sensor, the power management circuit cuts off the power supply channel of the multi-sensor and updates the power-on flag;
[0119] The microcontroller instructs the radio frequency front-end module to re-measure the external radio frequency field intensity and update the current stored energy in the energy management register; the microcontroller updates the energy threshold table according to the current stored energy and the rectified voltage; when the current stored energy exceeds the minimum energy required for the multi-sensor to start and the slope of the rectified voltage is stable and positive, the microcontroller removes the multi-sensor power-on restriction, the power management circuit re-opens the multi-sensor and restores the power-on flag.
[0120] The step four includes the following contents:
[0121] Step 401, monitoring the slope of the rectified voltage
[0122] The microcontroller continuously collects the rectified voltage value output by the rectification network through the voltage monitoring circuit, in volts. The rectified voltage reflects the real-time charging and discharging state of the super capacitor, and the microcontroller collects the sampling value of the rectified voltage in a preset monitoring period, for example, 100 milliseconds, with a sampling interval of 1 millisecond. The microcontroller calculates the slope of the rectified voltage, in volts per second, by taking the voltage difference between two adjacent sampling points and dividing it by the sampling interval, which represents the rate of change of voltage over time. Using the slope of the rectified voltage can reflect the dynamic changes of energy supply in real time and capture the trend of voltage drop in time; the advantage is that it is convenient to quickly respond to energy shortage. Using the rate of change of voltage over time, the stability of the energy state is quantified.
[0123] The microcontroller continuously monitors the sign change of the slope of the rectified voltage in the monitoring period. If the slope of the rectified voltage changes from positive (indicating voltage rise) to negative (indicating voltage drop), it is determined that the slope has reversed, indicating that the energy input cannot support the current load. The microcontroller sets the slope reversal flag: if the slope reversal is detected in the monitoring period, the flag is set to 1; if there is no slope reversal, the flag is set to 0. The slope reversal is an early warning signal of energy shortage; the advantage is that it can take measures in advance to avoid voltage falling below the critical value, and by monitoring the sign change of the slope, the turning point of the energy state is identified.
[0124] Step 402, judging the dynamic throttling coefficient
[0125] The microcontroller obtains the dynamic throttling coefficient from step three, which is a dimensionless value ranging from 0 to 1, representing the degree of adjustment of the broadcast power consumption.
[0126] The microcontroller compares the dynamic throttling coefficient with a preset safety threshold (e.g. 0.5), which is an empirical value to ensure that energy consumption does not exceed the collection capacity. If the dynamic throttling coefficient is less than the safety threshold, it indicates that the current broadcast power consumption adjustment is insufficient to cope with the trend of rectified voltage drop. The dynamic throttling coefficient reflects the burden of broadcast operations on the energy system; the advantage is that it is convenient to evaluate the safety of the current operation. By comparing the dynamic throttling coefficient with the safety threshold, the effectiveness of energy management is judged.
[0127] If the slope reversal flag is 1 (i.e., slope reversal is detected) and the dynamic throttling coefficient is less than the safety threshold at the same time, the microcontroller suspends the power-on operation of the multi-sensor.
[0128] The power management circuit cuts off the power supply channel of the multi-sensor, only maintains the operation of the microcontroller and the radio frequency front end, and updates the power-on flag, for example, from "111" (all on) to "110" (multi-sensor not on) for subsequent steps to read; using the suspension of the multi-sensor power-on can reduce the load and reduce the energy pressure; the advantage is to protect the stable operation of the microcontroller and the radio frequency front end, avoid system reset, and by temporarily closing the secondary load, the operation of the core component can be preferentially guaranteed.
[0129] Step 403, retrigger field strength detection
[0130] The microcontroller instructs the radio frequency front end module to re-measure the external radio frequency field strength to obtain the current near-field power supply capability; according to the field strength detection result, the microcontroller calculates and updates the current energy storage in the energy management register, in joules, reflecting the real-time energy state of the super capacitor. Using re-detection of field strength can obtain the latest energy input information; the advantage is to facilitate the adjustment of energy management strategy according to actual conditions. By updating the energy data in real time, the accuracy of the decision basis is ensured.
[0131] The microcontroller updates the energy threshold table according to the current energy storage and the rectified voltage. The energy threshold table includes the minimum energy required for the microcontroller to maintain operation, the minimum energy required for the radio frequency front end to maintain operation, and the minimum energy required for the multi-sensor to start. The updated energy threshold table is used for subsequent judgment of whether to restore the multi-sensor power-on. Using dynamic updating of the energy threshold table can adapt to the change of energy state; the advantage is to improve the flexibility and adaptability of energy management. By adjusting the energy threshold table, it is ensured that the operation decision matches the current energy condition.
[0132] When the current energy storage exceeds the minimum energy required for the multi-sensor to start after updating, and the slope of the rectified voltage is stable and positive (indicating that the energy input is restored), the microcontroller removes the multi-sensor power-on restriction. The power management circuit re-conducts the multi-sensor, and the power-on flag is restored to "111". Using ensures that the multi-sensor is restored when the energy is sufficient; the advantage is to balance the functional requirements and energy management. By monitoring the energy recovery condition, the system function can be restored in time.
[0133] Step four starts with monitoring the slope of the rectified voltage, evaluates the energy state and operating safety by detecting the slope reversal and judging the dynamic throttling coefficient; the emergency response mechanism is composed of suspending the multi-sensor power-up, re-triggering the field strength detection and updating the energy threshold table, ensuring the maintenance of the core functions when the energy is insufficient; the recovery operation re-enables the multi-sensor after the energy is restored, achieving dynamic balance between functions and energy. This design forms a coherent technical process from energy monitoring to emergency response and recovery operation, ensuring the continuity and stability of the pairing process, while providing necessary support for subsequent steps.
[0134] Step five, the microcontroller receives the pairing confirmation signal sent by the external device, and the microcontroller drives the vibration motor to generate vibration to prompt the user that the pairing is successful; the microcontroller sends a request message or adjusts the vibration mode of the vibration motor through the Bluetooth module to broadcast to the external device, prompting the user to place the remote control again against the near-field induction area of the external device;
[0135] After the user places it again, the rectifier network captures the radio frequency energy of the external radio frequency field and converts it into electrical energy to charge the super capacitor, and the microcontroller monitors the voltage of the super capacitor and calculates the current energy storage; when the current energy storage is higher than the preset threshold, the microcontroller releases the power-up lock of all sensors, and the power management circuit updates the power-up flag to the fully on state; the microcontroller writes the current energy storage to the energy management register.
[0136] The step five includes the following contents:
[0137] Step 501, receive the pairing confirmation of the external device
[0138] The microcontroller receives the pairing confirmation signal sent by the external device through the Bluetooth module. The external device can be a mobile phone or a television with Bluetooth function. The pairing confirmation signal contains a pairing success flag and identification information of the external device, which is used to verify that the pairing process has been completed correctly. The pairing success flag indicates that the external device has approved the pairing, and the identification information is used to distinguish different external devices. By receiving the pairing confirmation signal, it is ensured that the pairing process is successfully completed and verified by the external device; the advantage is to improve the reliability and safety of pairing, and to avoid the access of unauthorized devices. By receiving the pairing confirmation signal, the accuracy of the pairing state is confirmed, providing a reliable premise for subsequent operations.
[0139] The microcontroller drives the vibration motor to generate vibration to deliver a pairing success prompt to the user. The vibration duration is set to 1 second, and the intensity is at a slight level, ensuring that the user can clearly perceive it while avoiding overly jarring interference. The vibration motor is directly controlled by the microcontroller, and the vibration pattern is executed based on preset parameters. Using vibration as a prompt method allows the user to promptly learn of the completion of pairing, improving the intuitiveness of the operation. The benefits are to provide clear user feedback and enhance the user's perception of the device status. Through vibration prompts, the user is informed of the pairing result in a user-friendly manner, making it easy for the user to confirm the operation success.
[0140] Step 502, Requesting the user to reattach
[0141] The microcontroller sends a request message to the external device through the Bluetooth module or adjusts the vibration pattern of the vibration motor, such as generating two short vibrations, prompting the user to reattach the remote control to the near-field induction area of the external device. The near-field induction area is usually located in a specific area of the external device for near-field communication and energy transmission. This step aims to supplement the energy of the remote control through the second attachment to solve the problem of incomplete sensor power-up due to insufficient energy in the previous step. By reattaching the user, it ensures that the remote control has sufficient energy support for subsequent functions; the benefits are to improve the energy reserve and functional completeness of the remote control. Through user interaction, the near-field induction area of the external device is used to supplement energy to solve the energy shortage situation.
[0142] After the user reattaches the remote control to the near-field induction area of the external device, the rectifier network inside the remote control captures the radio frequency energy emitted by the external radio frequency field. The rectifier network converts the captured radio frequency energy into electrical energy and injects it into the super capacitor to increase the energy storage. The microcontroller monitors the voltage of the super capacitor in real time, calculates the current energy storage based on the capacitance of the super capacitor and the current voltage value. The capacitance of the super capacitor is a fixed parameter known in hardware design, and the voltage value is obtained in real time through the voltage detection circuit, and the energy storage is calculated based on the principle of capacitor energy storage. By reattaching to supplement energy, it ensures that the super capacitor has sufficient energy storage to support the operation of the remote control; the benefits are to enhance the energy reserve of the remote control and ensure the stability of the function. Through user behavior and radio frequency energy conversion, the energy storage level of the remote control is improved.
[0143] Step 503, Release the power-up lock of all sensors
[0144] After receiving the pairing confirmation signal and the current energy storage of the super capacitor being higher than the preset threshold, the microcontroller releases the power-on lock of all sensors. The preset threshold is defined in the previous step to determine whether the energy storage is sufficient to support the operation of all sensors. The power management circuit updates the power-on flag to indicate that all sensors are turned on, at which time the microcontroller, the radio frequency front end, and the multi-sensor (including the touch panel, the inertial element, and the microphone) are in the working state; ensuring that the remote controller restores the complete function to support the subsequent operation of the user. By unlocking all sensors when pairing is successful and the energy is sufficient to realize the complete function of the remote controller; it can improve the continuity of user experience and the convenience of operation; by releasing the power-on lock, the remote controller has complete working ability.
[0145] The microcontroller writes the current energy storage of the super capacitor after replenishment into the energy management register. The energy management register is a special storage unit inside the microcontroller for storing energy status, and its data is read by the subsequent steps to determine whether the energy storage meets the needs of sensor operation and key cleaning. The update process is directly executed by the microcontroller, ensuring the real-time and accuracy of the data. By recording the energy storage state after replenishment, it provides reliable data support for subsequent operations; the benefits are to ensure the continuity and accuracy of energy management, and to facilitate the system to adjust the operation strategy according to the energy state. By updating the energy management register, the real-time of the energy storage data is maintained, providing a basis for system operation.
[0146] From the beginning of receiving the external device pairing confirmation signal from the microcontroller, through driving the vibration motor to send a prompt, requesting the user to reattach the external device to the near field induction area, using the second attachment to supplement the energy storage of the super capacitor, then releasing the power-on lock of all sensors, and finally updating the energy management register. This process from pairing confirmation to energy replenishment, function unlocking and data updating forms a complete process, ensuring that the remote controller has sufficient energy and complete operation function after successful pairing, supporting the stability and continuity of the subsequent operation of the user, while providing necessary data support for subsequent steps.
[0147] Step six, the microcontroller reads the power-on flag of the power management circuit to confirm that the microcontroller, the radio frequency front end, and the multi-sensor are all turned on, the microcontroller reads the current energy storage from the energy management register and compares it with the preset safe line energy storage, when the power-on flag indicates that the microcontroller, the radio frequency front end, and the multi-sensor are all turned on and the current energy storage is greater than the safe line energy storage, the microcontroller clears the temporary key stored in the safe storage area, the microcontroller transmits the terminal state to the external device through the write feature function of the Bluetooth low power protocol, the terminal state includes the pairing completion flag, the sensor state, the current energy storage and the remote controller identification information, the microcontroller sends the code completion notification through Bluetooth broadcast and drives the vibration motor to execute the vibration mode to inform the user that the code process is completed.
[0148] The step six includes the following contents:
[0149] Step 601, confirming that all sensors are online
[0150] The microcontroller reads the power management circuit power-on flag, which is a three-bit binary value, for example, the complete value is "111", indicating that the microcontroller, radio frequency front end and multi-sensor (including touch panel, inertial element and microphone) have been successfully turned on. The microcontroller determines whether all devices are online by checking the value of the power-on flag. If the power-on flag is "111", it is confirmed that all sensors are online; if the power-on flag does not reach "111", for example, it shows "110", indicating that part of the sensor is not turned on, and the microcontroller suspends the subsequent operation and waits for the power management circuit to complete the power-on process of the remaining sensors.
[0151] Ensure that all sensors are online to support the complete function of the remote controller; the advantage is to avoid the loss of function caused by the failure of part of the sensor to turn on, and to improve the reliability of user use. By checking the integrity of the power-on flag, it is ensured that the system hardware state meets the operation requirements.
[0152] The microcontroller reads the current energy storage from the energy management register, which is in joules, and this value is updated after the energy supplement in step five. The microcontroller compares the current energy storage with the preset safe line energy storage. The safe line energy storage is the lowest energy threshold determined at the design time, which ensures that the remote controller can still maintain normal operation of the basic function after the code matching is completed. If the current energy storage is greater than the safe line energy storage, it is confirmed that the energy storage is higher than the safe line; if the current energy storage is less than or equal to the safe line energy storage, the microcontroller suspends the subsequent operation and waits for the super capacitor to supplement the energy through the external radio frequency field to be higher than the safe line energy storage.
[0153] Thus, it is ensured that the remote controller has enough energy to support the subsequent function operation after the code matching is completed, which can improve the stability and continuity of the remote controller; by comparing the relationship between the current energy storage and the safe line energy storage, it can be determined whether the energy state meets the requirements of system operation.
[0154] Step 602, clear temporary key
[0155] After confirming that all sensors are online and the current energy storage is higher than the safe line energy storage, the microcontroller clears the temporary key used in the pairing process, which is stored in the secure storage area of the microcontroller, for Bluetooth secure handshake and pairing verification process. The clearing operation is completed by setting the corresponding address of the secure storage area to zero, ensuring that the temporary key left over from the incomplete pairing cannot be maliciously used, such as by replay attack to fake pairing request. Enhancing the security of the remote controller can prevent potential security vulnerabilities from being exploited; protecting the privacy of the user and the security of the device. By clearing the temporary key, the security risks that may be left over from the pairing process are eliminated, ensuring the security of the pairing process.
[0156] The microcontroller transmits the terminal state of the remote controller to the external device (host, such as mobile phone or TV) through the write feature function of Bluetooth Low Energy protocol. The terminal state includes pairing completion flag, sensor state, current energy storage and remote controller identification information. The pairing completion flag is a 1-bit binary value, "1" indicates successful pairing; the sensor state is a 3-bit binary value, such as "111", indicating that all sensors are online; the current energy storage is a quantized value, unit is joule; the remote controller identification information is a unique device ID, usually a fixed length string or numerical value; the write feature operation ensures reliable data transmission and updates the remote controller state record on the host side. Transmitting the state information of the remote controller to the host ensures that the host can grasp the running status of the remote controller in real time; the advantage is that it is convenient for the host to manage the remote controller and improves the coordination of the system. Through the write feature function of Bluetooth protocol, reliable data transmission and synchronous update of state are realized.
[0157] Step 603, announce the completion of the code flow
[0158] After completing the terminal state write-back, the microcontroller sends a code completion notification through Bluetooth broadcast, and the notification format follows the broadcast packet specification of Bluetooth Low Energy protocol; at the same time, the microcontroller drives the vibration motor to execute a specific vibration mode, such as three short vibrations, each lasting 0.2 seconds, with an interval of 0.1 seconds, to intuitively inform the user that the code flow has successfully ended. After receiving the vibration feedback, the user can start using the remote controller for subsequent operation. Through broadcast and vibration feedback, the user and the host are explicitly informed that the code flow is complete, improving the continuity of user experience and the convenience of operation. Through the two feedback mechanisms of broadcast notification and physical vibration, it can be ensured that the user and the host are informed of the completion status of the code flow.
[0159] From confirming that all sensors are online, ensuring that the hardware state meets the operation requirements, then through detecting whether the energy storage is higher than the safety line energy storage, verifying that the remote control device has enough energy to support subsequent operation. Clearing the temporary key enhances security, writing back the terminal state transmits the operation information of the remote control to the host, and announces the completion of the code process to the user and the host through broadcast and vibration feedback. This process from hardware state confirmation to energy detection, to security processing, state synchronization and completion notification, ensures that the remote control has a safe and stable operating environment after the code completion, supports the reliability of subsequent user operation, and provides accurate state information for host management.
[0160] Those skilled in the art can appreciate that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0161] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0162] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0163] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on a plurality of network units. According to actual needs, some or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0164] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A low-power remote control pairing method for NFC near-field wake-up, characterized in that: comprising, after detecting the external radio frequency field, the rectifier network injects energy into the super capacitor and records the initial stored energy, and writes the initial stored energy into the energy management register; when the initial stored energy reaches the preset energy threshold, the power management circuit sequentially turns on the device in the order of microcontroller-radio frequency front end-multi sensor, and updates the power-on flag after each turn-on; after the microcontroller reads the power-on flag, it adjusts the Bluetooth broadcast power and interval according to the dynamic throttling coefficient, which is obtained by inputting the energy slope margin index and broadcast load index into the fuzzy reasoning table, wherein the microcontroller reads the power-on flag from the special register to confirm that the microcontroller, radio frequency front end and multi sensor have all been turned on; the microcontroller collects the rectified voltage value output by the rectifier network in real time through the voltage monitoring circuit, records the sampling value of the rectified voltage in the preset sliding time window, calculates the rectified voltage slope and accumulates the rectified voltage slope in the sliding time window to obtain the energy slope margin index; the microcontroller records the energy consumption of a single Bluetooth broadcast, calculates the collectable power by multiplying the rectified voltage value and the rectified current value, and calculates the broadcast load index by dividing the energy consumption of a single Bluetooth broadcast by the collectable power; if the rectified voltage slope reverses in the monitoring period and the dynamic throttling coefficient is lower than the safety threshold, the multi sensor power-on is suspended and the field strength detection is retriggered, and the energy threshold table is updated, which includes the minimum energy required for the microcontroller to maintain operation, the minimum energy required for the radio frequency front end to maintain operation, and the minimum energy required for the multi sensor to start; after receiving the pairing confirmation from the external device, the microcontroller sends a vibration prompt and requests the user to reattach, uses the second reattachment to supplement energy, and releases the power-on lock for all sensors; when all sensors are online and the stored energy is detected to be higher than the safety line, the microcontroller clears the temporary key and writes the remote controller terminal state to the host through Bluetooth feature backwrite.
2. The NFC near-field wake-up low-power remote control code matching method of claim 1, wherein: when an external radio frequency field is detected, the external radio frequency field is converted into alternating current energy by the radio frequency front end module, the alternating current energy is converted into direct current energy by the rectifier network, and the direct current energy is stored in the super capacitor; the initial stored energy is calculated according to the voltage of the super capacitor and the capacitance value of the super capacitor, and the initial stored energy is written into the energy management register.
3. The NFC near-field wake-up low-power remote control code matching method of claim 2, wherein: the microcontroller reads the recorded initial stored energy value from the energy management register, and compares the initial stored energy value with the preset energy threshold value; when the initial stored energy value is greater than or equal to the preset energy threshold value, the power management circuit sequentially turns on the microcontroller, the radio frequency front end and the multi sensor in the preset order, and updates the power-on flag and records it in the special register after each device is turned on.
4. The NFC near-field wake-up low-power remote control code matching method of claim 3, wherein: After each device is turned on, the power management circuit measures the current voltage value of the super capacitor, compares the current voltage value with the preset dangerous threshold value, and continues to perform the next operation when the current voltage value is greater than the preset dangerous threshold value; When the current voltage is less than or equal to the preset dangerous threshold value, the power management circuit suspends the subsequent turn-on operation, waits for the super capacitor to be charged through the rectifier network, and waits until the current voltage is restored to more than the preset dangerous threshold value. When all devices are turned on, the microcontroller reads the power-on flag in the special register and confirms that all devices are in the on state, and completes the power-on process.
5. The NFC near-field wake-up low-power remote controller code matching method of claim 4, wherein: The microcontroller inputs the energy slope margin index and the broadcast load index into the preset expansion and contraction balance fuzzy inference table to output a dynamic throttling coefficient.
6. The NFC near-field wake-up low-power remote controller code matching method of claim 5, wherein: The microcontroller adjusts the Bluetooth broadcast power and the broadcast interval according to the dynamic throttling coefficient, specifically, The maximum allowed broadcast power is multiplied by the dynamic throttling coefficient to obtain the actual broadcast power, and the actual broadcast interval is calculated by interpolation between the minimum broadcast interval and the maximum broadcast interval according to the dynamic throttling coefficient; The microcontroller configures the Bluetooth module to perform a broadcast operation using the adjusted actual broadcast power and actual broadcast interval, and the broadcast content includes identification information and a pairing request of the remote controller.
7. The NFC near-field wake-up low-power remote controller code matching method of claim 6, wherein: The microcontroller continuously collects the rectified voltage value output by the rectifier network through the voltage monitoring circuit, collects the sampling value of the rectified voltage within a preset monitoring period, calculates the rectified voltage slope, and monitors the sign change of the rectified voltage slope to detect slope reversal, and sets a slope reversal flag bit; The microcontroller obtains the dynamic throttling coefficient and compares it with a preset safety threshold value, and when the slope reversal flag bit is 1 and the dynamic throttling coefficient is less than the safety threshold value, the microcontroller suspends the power-on operation of the multi-sensor, the power management circuit cuts off the power supply channel of the multi-sensor and updates the power-on flag. The safety threshold value is an empirical value to ensure that the energy consumption does not exceed the collection capacity.
8. The NFC near-field wake-up low-power remote controller code matching method of claim 7, wherein: The microcontroller instructs the radio frequency front-end module to re-measure the external radio frequency field strength and update the current stored energy in the energy management register; the microcontroller updates the energy threshold table according to the current stored energy and the rectified voltage; When the current stored energy exceeds the minimum energy required for the multi-sensor to start and the rectified voltage slope is stable and positive, the microcontroller removes the multi-sensor power-on restriction, the power management circuit re-opens the multi-sensor and restores the power-on flag.
9. The NFC near-field wake-up low-power remote controller code matching method of claim 8, wherein: The microcontroller receives a pairing confirmation signal sent by an external device, and the microcontroller drives the vibration motor to generate vibration to prompt the user that the pairing is successful. The microcontroller sends a request message or adjusts the vibration mode of the vibration motor through the Bluetooth module to prompt the user to reattach the remote control to the external device.
10. The NFC near-field wake-up low-power remote control pairing method of claim 9, wherein: After the user reattaches the remote control, the rectifier network captures the radio frequency energy from the external radio frequency field and converts it into electrical energy to charge the super capacitor, and the microcontroller monitors the voltage of the super capacitor and calculates the current energy storage; When the current energy storage is higher than the preset threshold, the microcontroller releases the power-on lock of all sensors, the power management circuit updates the power-on flag to the fully on state, and the microcontroller writes the current energy storage to the energy management register.
11. The NFC near-field wake-up low-power remote control pairing method of claim 10, wherein: The microcontroller reads the power-on flag of the power management circuit to confirm that the microcontroller, radio frequency front end, and multiple sensors are all turned on; the microcontroller reads the current energy storage from the energy management register and compares it with the preset safe line energy storage; When the power-on flag indicates that the microcontroller, radio frequency front end, and multiple sensors are all turned on and the current energy storage is greater than the safe line energy storage, the microcontroller clears the temporary key stored in the secure storage area.
12. The NFC near-field wake-up low-power remote control pairing method of claim 11, wherein: The microcontroller transmits the terminal state to the external device through the write feature function of the Bluetooth low-power protocol, and the terminal state includes the pairing completion flag, sensor state, current energy storage, and remote control identification information; the microcontroller sends a pairing completion notification through Bluetooth broadcast and drives the vibration motor to execute the vibration mode.
Citation Information
Patent Citations
Modulation index setting circuit, NFC device and method of operating the NFC device
CN109962724A
Remote controller, controlled equipment and method for realizing code matching based on Bluetooth broadcast packet
CN112907930A