USB multi-protocol motor remote control self-learning remote control method and portable control terminal thereof
By adopting a USB multi-protocol motor remote control self-learning remote control method, stable and safe remote control in complex electromagnetic environments is achieved. This solves the problems of invalid code value storage and code learning failure in existing technologies, and provides redundant backup of multiple network links and efficient device management.
Patent Information
- Application Number
- CN202611394092.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-27
AI Technical Summary
The existing remote control system does not verify the validity of the collected signals during the code learning process, resulting in the storage of invalid code values, which affects the subsequent remote control effect. Furthermore, multi-protocol compatible devices are prone to interference in complex electromagnetic environments, leading to code learning failure.
It adopts a USB multi-protocol motor remote control self-learning remote control method, and collects signals synchronously through infrared and radio frequency dual channels. It performs automatic protocol identification and secondary transmission verification, combines hardware filtering and software noise algorithm to filter interference, and has an independent counter for encrypted storage. It supports cloud remote, local area network and offline control modes. It uses AES-128 encryption algorithm and device unique identifier hash encryption to achieve dynamic step size anti-replay attack.
It effectively eliminates the storage of invalid code values, improves the success rate of code learning, prevents replay attacks, ensures the stability and security of the remote control system in complex environments, provides redundant backup of multiple network links, and supports secondary verification of high-risk commands and secure management of devices.
Smart Images

Figure CN123182391A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of remote control signal recognition and motor control technology, specifically to a USB multi-protocol motor remote control self-learning remote control method and a portable control terminal. Background Technology
[0002] Currently, civilian motor remote control systems are widely used in homes, shops, garages, and vehicles. Users transmit radio frequency or infrared signals to the motor controller via a portable remote control to operate the motor, such as turning it on, off, raising, and stopping. Existing remote control systems mainly include two categories: fixed-code remote controls and rolling-code remote controls. Among them, rolling-code remote controls, because the code value changes dynamically with each transmission, are difficult to intercept and replay, and therefore dominate in scenarios with high security requirements, such as garage doors and gate barriers.
[0003] In recent years, with the development of IoT technology, some high-end remote control devices have begun to be equipped with WiFi modules, supporting users to remotely control them through mobile applications. At the same time, a small number of multi-protocol compatible learning remote controls have appeared on the market, which can learn the signal code values of the original remote control to achieve unified control of motors of different brands and different protocols.
[0004] For example, a US patent discloses a wireless device activation transceiver [US7088218B], which includes a receiver and a transmitter. At least one wireless channel is associated with a user activation input. A memory stores data describing rolling code transmission schemes and fixed code transmission schemes. Control logic initially sets the channel mode to rolling code mode. If the channel has been trained to fixed code mode, the channel mode is changed to at least one of the fixed code modes. In response to a user activation input for a specific channel, the control logic generates and transmits an activation signal according to each of a plurality of transmission schemes associated with that channel's programming mode.
[0005] The above-mentioned technical solutions can, to some extent, control motors with different protocols by learning signal code values. However, the learning logic of existing technologies is unidirectional: receiving, recognizing, and storing. That is, learning and storing are completed immediately after receiving the original transmitter signal, without ever verifying the validity of the learned code values. When the acquired signal is a distorted waveform, it is still stored in memory as a valid code value. Users only discover the remote control is ineffective during subsequent use and need to relearn the code. Summary of the Invention
[0006] The purpose of this invention is to address the aforementioned problems by providing a USB multi-protocol motor remote control self-learning method, applicable to systems consisting of portable control terminals, user terminal programs, and cloud servers. The control terminal has a built-in memory and is equipped with offline control buttons. The method includes the following steps: Step 1: The control terminal completes power-on initialization, network configuration and binding with the cloud server, and simultaneously opens the infrared receiving channel and the radio frequency receiving channel of at least three frequency bands including 315MHz, 433MHz and 868MHz. It automatically identifies the protocol of the received remote control signal, performs secondary transmission verification, classifies and encrypts the signal for storage, and assigns an independent rolling code counter to each rolling code click device. Step 2: After completing the code storage, the control terminal automatically selects one of the following modes—cloud remote control mode, LAN local control mode, or offline button control mode—to execute control commands based on the network status. Step 3: When a control command needs to be sent to the rolling code motor device, the terminal updates the current count value of the independent counter corresponding to the device with a random integer as the dynamic step size, and at least combines the device's unique identifier to encrypt the updated count value to generate a rolling code command and transmit it; the count value, timestamp, and device identifier of this operation are uploaded to the cloud server in real time; the control terminal generates a synchronization code based on the updated count value from the cloud server and transmits it to the corresponding motor receiver to complete the technical calibration and restore the rolling code synchronization.
[0007] In the above-mentioned USB multi-protocol motor remote control self-learning remote control method, the automatic protocol identification includes: automatic identification of infrared protocol type and automatic identification of radio frequency modulation method. The infrared protocol type includes NEC, RC5, RC6, SIRC, and Sharp proprietary protocols, and the radio frequency modulation method includes OOK modulation method and FSK modulation method.
[0008] In the above-mentioned USB multi-protocol motor remote control self-learning remote control method, the secondary transmission verification is as follows: after the acquisition is completed, the terminal automatically reproduces the acquired signal and transmits it. After confirming that the motor can be triggered normally, the learning code is released to determine its validity; otherwise, the acquisition is automatically re-acquired. During the code learning process, environmental noise interference is filtered out through hardware LC filtering and software noise algorithm, and the logic isolation between infrared signals and radio frequency signals is achieved by relying on signal strength threshold.
[0009] In the aforementioned USB multi-protocol motor remote control self-learning remote control method, the local area network control mode is as follows: when the WiFi network is normal but the cloud service is faulty, the user terminal program directly connects to the terminal through the local area network to complete the issuance of control commands.
[0010] In the above-mentioned USB multi-protocol motor remote control self-learning remote control method, in offline mode, the count value, timestamp and device identifier of this operation are cached in the local memory in the form of a queue; after the network is restored, the cached operation record queue is uploaded to the cloud server in batches, and the cloud server updates the stored value based on the count value of the last record in the queue.
[0011] In the aforementioned USB multi-protocol motor remote control self-learning method, the encryption uses the AES-128 encryption algorithm, and combines it with the device's unique identifier hash encryption to generate the transmission code frame.
[0012] In the above-mentioned USB multi-protocol motor remote control self-learning method, when the rolling code is detected to be out of sync, the terminal automatically transmits the synchronization code to the motor receiver, without the need for manual relearning of the code. In the cloud-based remote control mode, high-risk commands to open or close the door trigger secondary verification via SMS. The cloud also has operation time period locking rules and a unit time command frequency limit to intercept control commands outside the preset time period or exceeding the frequency limit.
[0013] In the aforementioned USB multi-protocol motor remote control self-learning method, the terminal automatically switches to one of four hierarchical sleep states based on its working status. The four hierarchical sleep states include full-power wake-up state, light sleep state, deep sleep state, and ultimate sleep state, with the average standby current controlled within 1.2mA. In the ultimate sleep state, the WiFi module is intermittently powered off and wakes up once per minute to check the network status. The control terminal can quickly wake up from the sleep state within 50ms.
[0014] In the aforementioned USB multi-protocol motor remote control self-learning remote control method, the control terminal supports remote unbinding, one-click clearing of all encryption values on the local and cloud servers, blocking of lost device permissions, timed automatic control, multi-device scene linkage, camera capture linkage, and one-click control of multiple roller shutters or gate devices in the away-from-home mode. After the terminal transmits radio frequency, it opens a listening window to collect the motor's response signal and provides feedback on three states: successful execution, no response, and signal interference.
[0015] This portable control terminal, which implements the aforementioned USB multi-protocol motor remote control self-learning remote control method, includes the following hardware structure: a power supply and communication interface, a power management module with overvoltage, overcurrent, and reverse connection protection, a backup lithium battery, three-color status indicator lights, dual physical function buttons, an MCU main control unit, a partitioned write-protected Flash encrypted storage chip, an infrared transceiver module, a radio frequency transceiver module with LC filtering circuits covering at least three frequency bands: 315MHz, 433MHz, and 868MHz, a WiFi module, a Bluetooth network configuration module, and an optional NB-IoT cellular communication module. Each module is electrically connected to the MCU main control unit. The power management module provides tiered power supply, and the radio frequency and infrared modules are equipped with independent power gate switches to achieve sleep power-off. The backup lithium battery automatically switches power supply after the external power supply is interrupted and can support no less than 30 physical button control operations. The dual physical buttons support device cycle switching, action execution, and double-click deletion of single device code values. The three-color indicator lights correspond to green for device online status, blue for code learning mode, and red for offline status or hardware fault status.
[0016] Compared with the prior art, the advantages of the present invention are: After learning the code, the system automatically reproduces the transmission and confirms the motor operation. Only valid codes are stored, and invalid codes are automatically re-sampled, thus preventing invalid and distorted codes from entering the system at the source.
[0017] Each device has an independent counter that does not interfere with others. The random dynamic step size is combined with the device ID for encrypted transmission, preventing replay attacks. The device uploads to the cloud in real time and sends out synchronization codes for calibration. It automatically repairs out-of-sync issues without the need for manual re-pairing.
[0018] Features include remote cloud access, direct LAN connection, dynamic step size to prevent replay, secondary verification of high-risk commands, time-based locking, command rate limiting, and one-click clearing of code values in case of device loss. Attached Figure Description
[0019] Figure 1 This is the overall flowchart provided by the present invention; Figure 2 This is a flowchart of the automatic code learning process for the infrared radio frequency dual channel provided by the present invention; Figure 3 This is a flowchart of multi-link command issuance and motor control provided by the present invention; Figure 4 This is a schematic diagram of the terminal hardware module connection provided by the present invention. Detailed Implementation
[0020] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0021] The USB multi-protocol motor remote control self-learning remote control method and portable control terminal described in this invention are implemented collaboratively by a control terminal, a user terminal program, and a cloud server.
[0022] The terminal adopts a USB flash drive-style miniature portable design, and its hardware structure is as follows: Figure 4 As shown, the system includes a USB-powered communication interface, a power management module with overvoltage / overcurrent / reverse connection protection, a backup lithium battery, tri-color status indicator lights, dual physical function buttons, an MCU main control unit, a partitioned write-protected Flash encrypted storage chip, a 38kHz infrared transceiver module, a tri-band RF transceiver module with LC filtering circuit, a WiFi module, a Bluetooth network configuration module, and an optional NB-IoT cellular communication module. Each module is electrically connected to the MCU main control unit. The power management module provides tiered power supply, and the RF and infrared modules are equipped with separate power gate switches to achieve sleep mode power-off.
[0023] The steps of the present invention will be described in detail below with reference to specific embodiments.
[0024] Upon power-on initialization, the terminal automatically powers on after being connected to a 5V USB power source, with the three-color indicator light turning green to indicate that the device is online. When the USB power is lost, the power management module automatically switches to the built-in backup lithium battery, which can support at least 30 physical button control operations.
[0025] The device supports three network configuration modes: QR code scanning configuration, Bluetooth-assisted configuration, and AP hotspot configuration. Users select the corresponding mode through the user terminal program. After the control terminal connects to the network, it establishes an encrypted long-term connection with the cloud. The cloud assigns a unique device ID and binds it to the user account. The terminal Flash uses a partitioned write-protected design, divided into a firmware area, encryption library area, log area, and configuration area to prevent data overflow from damaging the system.
[0026] Existing network configuration methods are limited, making them incompatible with older devices. Furthermore, large devices require fixed installations and cannot be moved. In this embodiment, three network configuration modes are compatible with various mobile devices. USB flash drive-style power supply eliminates the need for wiring, enabling plug-and-play functionality and portability.
[0027] Further, a second transmission test is performed. After acquisition, the control terminal automatically reproduces the acquired signal and transmits it to the target motor. If the motor can be triggered normally, the learned code is deemed valid; otherwise, it automatically re-acquires the signal. During the code learning process, environmental clutter interference is filtered out through hardware LC filtering and software noise algorithms, and logical isolation between infrared and radio frequency signals is achieved based on signal strength thresholds.
[0028] The MCU sets independent signal strength thresholds for the infrared and radio frequency (RF) receiving channels, with a voltage threshold for the infrared channel and an RSSI threshold for the RF channel. By sampling the infrared pulse amplitude in real time and reading the RSSI register value of the RF chip, infrared signals below the threshold are identified as RF crosstalk noise and discarded, while RF signals below the threshold are identified as ambient noise and ignored, thus achieving logical isolation between infrared and RF signals. When both the infrared and RF channels detect valid signals at the same time, the MCU prioritizes processing the signal source with the highest signal strength to avoid signal conflict between the two channels.
[0029] The infrared receiver's output pins are connected to both the MCU's GPIO pins and ADC channel. When the MCU detects a falling edge trigger on the GPIO pin, it synchronously reads the low-level amplitude of the pulse via the ADC. If the amplitude is lower than a set voltage threshold (e.g., 1.2V), it is considered a valid infrared signal and the pulse width is recorded. If the amplitude is higher than the threshold, it is considered radio frequency coupling interference and the pulse is discarded. The radio frequency chip outputs RSSI values for each frequency band to the MCU via the SPI interface. The MCU periodically reads the RSSI values and only initiates data frame reception when the RSSI value is higher than a set RSSI threshold (e.g., -80dBm). The MCU's built-in decision logic unit compares the signal strength values of the infrared and radio frequency channels simultaneously. When the infrared channel amplitude is <1.2V and the radio frequency channel RSSI is >-80dBm, both channels are valid simultaneously. The MCU stores the signal data from the two channels in independent buffers, without overwriting each other, ensuring that both infrared and radio frequency signals are completely acquired during synchronous code learning.
[0030] Existing equipment only supports a single frequency band and a single protocol; when two signals coexist, they interfere with each other, causing code learning failure. In this embodiment, however, three frequency bands provide full radio frequency coverage, and infrared and radio frequency signals do not interfere with each other, enabling stable data acquisition even in complex electromagnetic environments.
[0031] Furthermore, the terminal automatically identifies the infrared protocol type of the collected signal, such as NEC, RC5, RC6, SIRC, and Sharp proprietary protocols, as well as the radio frequency modulation method, such as NEC, RC5, RC6, SIRC, and Sharp proprietary protocols, and automatically distinguishes between fixed codes and rolling codes.
[0032] With numerous protocols available on the market, users cannot manually select the correct protocol parameters. However, this embodiment automatically identifies all types of infrared protocols and mainstream radio frequency bands, requiring no professional knowledge from the user and making it extremely easy to operate.
[0033] After data acquisition, the control terminal automatically reproduces the acquired signal and transmits it to the target motor. Once it confirms that the motor can be triggered normally, the learned code is deemed valid; otherwise, it automatically re-acquires the signal. During the code learning process, hardware LC filtering and software noise algorithms are used to filter environmental clutter interference, and signal strength thresholds are used to achieve logical isolation between infrared and radio frequency signals.
[0034] In existing technologies, there is no validity check, and distorted waveforms are directly stored, leading to subsequent remote control failure. In this embodiment, a closed-loop verification of the learned code validity is implemented, eliminating the storage of invalid code values at the source and significantly improving the code learning success rate.
[0035] After successful code learning, the control terminal stores the codes according to the user-selected device type and action. Each rolling code device is independently assigned a counter to prevent interference between code values from multiple devices. All code values are encrypted using AES-128 and simultaneously stored in the local Flash encrypted database and the cloud encrypted database. Users can customize names for each device through the user terminal program for easy subsequent identification and scene configuration. Independent counters isolate code values from multiple devices, and AES-128 encryption ensures storage security.
[0036] After the control terminal completes the learning code storage, it automatically selects one of the three control modes to execute control commands based on the current network status.
[0037] Users issue control commands through the user terminal program. For high-risk commands such as opening garage doors and lowering roller shutters, the cloud automatically triggers secondary SMS verification; execution is only permitted after successful verification. The cloud automatically verifies device binding relationships, operation time periods, and command frequency, blocking unauthorized or excessive commands outside the preset time periods or frequencies. After receiving a command, the control terminal transmits the corresponding control signal based on the signal type. After transmission, the control terminal opens a listening window to collect motor response signals and transmits three operating statuses—successful execution, no response, and signal interference—to the user terminal program. Users can remotely control the device anytime, anywhere; high-risk operations require SMS verification, ensuring safety and reliability; and device status is available in real time.
[0038] When the WiFi network is normal but the cloud server fails, the user terminal program sends commands directly to the terminal via the local area network (LAN), without going through the cloud. Users can check the current network status in the user terminal program. If the cloud service is abnormal, the interface will automatically display "Cloud service is temporarily unavailable; switched to LAN direct connection mode," allowing users to still control the device normally. Control remains uninterrupted during cloud failures, ensuring availability in critical scenarios.
[0039] The control terminal automatically switches to offline mode upon detecting a network disconnection. Dual physical buttons enable device cycling, action execution, and double-click deletion of single-device code values. A three-color indicator light displays the current operating status: green indicates the device is online, blue indicates code learning mode, and red indicates offline or hardware failure. Users can determine the network status via the indicator lights without additional tools. In the event of a power outage, the backup lithium battery can support at least 30 offline button operations. The three-color indicator light provides a clear view of the status, ensuring reliable control in weak network, no network, and power outage scenarios.
[0040] Preferably, when a user sends a control command to the rolling code motor device through any control mode, the control terminal first locates the independent counter corresponding to the rolling code motor device and reads the current count value. Then, the terminal generates a random integer between 15 and 50 as a dynamic step size, adds this step size to the current count value to obtain the updated count value. The terminal combines the device's unique ID to perform hash encryption on the updated count value, generates a new rolling code command, and transmits it to the motor receiver. For example, if the current count value of a garage door device is 1000, and the terminal generates a random step size of 37, then the updated count value is 1037. The terminal combines 1037 with the device ID and performs hash encryption to generate the rolling code frame for this transmission. Because the step size for each transmission is randomly selected between 15 and 50, even if an attacker intercepts two consecutive signals, they cannot predict the next count value.
[0041] The random dynamic step size makes it impossible for attackers to predict subsequent code values, effectively resisting replay attacks; independent counters ensure that multiple devices do not interfere with each other.
[0042] Furthermore, in online mode, the terminal uploads the count value, timestamp, and device identifier of this operation to the cloud server in real time. The cloud server updates its stored value based on the received count value and sends a synchronization confirmation to the terminal. The terminal generates a synchronization code based on the updated count value from the cloud and transmits it to the corresponding motor receiver, completing the count value calibration and restoring rolling code synchronization. The count values from the cloud and the terminal are accurately consistent in real time, ensuring that remote control commands are always effective and guaranteeing a superior user experience.
[0043] When generating the rolling code instruction, the terminal uses the AES-128 encryption algorithm and combines it with the device's unique identifier hash encryption to generate the transmission code frame, ensuring that even if the count value is intercepted, attackers cannot forge a legitimate code frame.
[0044] When the control terminal detects a discrepancy between the count value and the value stored in the cloud (i.e., the rolling code has lost synchronization), the control terminal automatically generates a synchronization code and transmits it to the motor receiver to complete the count value calibration, eliminating the need for manual code relearning. Specifically, the count value stored in the cloud serves as the calibration reference value. The terminal adjusts its local count value based on this reference value and re-establishes synchronization with the receiver. Automatic detection of synchronization loss and transmission of the synchronization code for repair, without user intervention, ensures the rolling code system never fails during long-term use.
[0045] When the device is not in use, it automatically enters a tiered sleep state, with an average standby current as low as 1.2mA. It operates in four modes: full-power wake-up, light sleep, deep sleep, and extreme sleep. All modules are powered on only during transmission, network pairing, and code learning; at other times, the infrared and RF modules are completely powered off, and the MCU operates at a reduced frequency. In extreme sleep mode, WiFi operates intermittently, only periodically checking the network. The device can wake up quickly within 50ms, balancing response speed and low power consumption to reduce hardware current surges. Ultra-low standby power consumption, fast wake-up response, reduced current surges, and extended device lifespan are all key features.
[0046] The device supports remote unbinding, allowing users to disconnect the device from their account via a user terminal app. During unbinding, all encryption values on both the local and cloud servers can be cleared with a single click, ensuring no encryption values remain after the device is transferred or abandoned. If the device is lost, users can disable its permissions via the user terminal app, with operation logs permanently stored in the cloud for secure traceability. Full lifecycle security management ensures that permissions are disabled upon device loss, leaving no security vulnerabilities.
[0047] Users can set up scheduled automatic control tasks via the mini-program, such as opening the roller shutter at 7:00 AM and closing it at 7:00 PM daily, as well as multi-device scene linkage, such as closing all roller shutters and gates with one click in the "away from home" mode. Linked commands such as opening the door can trigger the smart camera to capture images and push them to the user's mobile phone, achieving security linkage.
[0048] After the terminal transmits its radio frequency signal, it opens a listening window to collect the motor's response signal and sends three operating statuses back to the mini-program: successful execution, no response, and signal interference. This allows the user to know the control result in real time. The control result is available immediately, eliminating the need for repeated confirmation by the user.
[0049] The terminal can be equipped with an NB-IoT cellular communication module, providing a remote control link via cellular network in scenarios without WiFi coverage. Users can remotely control the raising and lowering of the roller shutter through a user terminal program, adapting to scenarios such as cleaning and delivery. With WiFi, Bluetooth, and NB-IoT multi-network links ensuring support, remote control can be achieved in any network environment.
[0050] The terminal's USB power communication interface is responsible for power supply and data transmission. The power management module incorporates overvoltage, overcurrent, and reverse connection protection circuits—automatically cutting off power when the input voltage exceeds 5.5V, limiting current output when the input current exceeds the rated value, and blocking the current path through a reverse connection protection diode when the USB power polarity is reversed, effectively protecting the terminal device and subsequent circuits. A backup lithium battery automatically switches power after the external power supply fails. The MCU main control unit maintains a constant power supply to sustain basic operation; the RF and infrared modules are equipped with independent power gate switches, completely shutting down in sleep mode to reduce power consumption. All modules interact with the MCU main control unit via electrical connections. The robust hardware protection adapts to complex power supply scenarios such as automotive applications; the tiered power supply effectively supports a tiered sleep strategy, reducing overall power consumption and extending hardware lifespan.
[0051] Working principle: The terminal casing is equipped with two physical function buttons and a three-color status indicator light. The button operation logic is as follows: Short press button A: Cycle through multiple devices with learned codes to select the currently controlled device; Short press button B: Perform a preset action on the currently selected device (such as open / close / stop; the action type can be pre-configured). Double-click button B: Delete the single device code value of the current device to avoid accidentally deleting the configuration of other devices; Press and hold the A+B key combination: Restore factory settings.
[0052] The tri-color indicator light is driven by the MCU main controller and displays different colors according to the current working status: Solid green light: The device is connected to the network and is working normally. Blue flashing: The device is in code learning mode and is collecting remote control signals; Solid red or flashing: Device offline, WiFi disconnected, or hardware failure detected.
[0053] Users can intuitively judge the device status by the indicator light color, without the need for a mobile app or additional diagnostic tools.
[0054] For example, in the scenario of controlling an indoor infrared motorized window opener: Connect the control terminal to the TV's USB port and quickly pair it with the network and bind the account via Bluetooth. The user terminal program starts learning the code, collecting the open, close, and stop signals from the window opener's infrared remote control. The control device automatically identifies the infrared protocol, encrypts and categorizes it for storage, and performs secondary verification before normal use. Users can remotely control the window opener; the system supports locking at night to prevent accidental operation. In case of WiFi disconnection or USB power failure, offline control is possible via physical buttons, with a lithium battery ensuring emergency use.
[0055] In the scenario of controlling radio frequency sunshade roller blinds on balconies: The control terminal is permanently plugged into the balcony USB socket to learn the 433MHz roller blind fixed code remote control signal. Users can set timers for automatic raising and lowering of the roller blinds in the morning and evening, and support one-click closing of all roller blinds when leaving home. In case of cloud maintenance or network failure, the device can be directly controlled via LAN; the device has a built-in noise reduction function, which can effectively shield surrounding radio frequency interference and avoid mislearning the code values of neighboring devices.
[0056] In the scenario of vehicle-mounted control for parking garage scroll bar gates: The control terminal plugs into the vehicle's USB port, connects to a mobile hotspot for network configuration, and learns the 868MHz rolling code remote control signal of the garage's barrier gate. Each barrier gate has an independently assigned counter. When a vehicle approaches the garage, the user can remotely issue an opening command, and the device dynamically encrypts and generates a valid rolling code. After multiple offline operations, all counter values are automatically synchronized upon network recovery. It can automatically recover from synchronization failures without needing to relearn the code.
[0057] In scenarios where shop roller shutters are remotely controlled without internet access: In basement settings without WiFi, the control terminal can be equipped with an NB-IoT module to enable remote control via cellular network. Merchants can remotely control the raising and lowering of roller shutters, adapting to scenarios involving cleaning and delivery personnel. The system is equipped with a nighttime operation lock to prevent remote opening; in case of device loss, it can be logged out with one click and all code values cleared, eliminating security risks.
[0058] The advantages of this embodiment are: The system features simultaneous acquisition via dual channels of infrared and three-band radio frequency, hardware filtering and software noise reduction to combat interference, secondary transmission verification to confirm valid code values, automatic re-acquisition of invalid codes, and a code learning success rate significantly higher than existing unidirectional storage solutions.
[0059] Independent counters isolate code values from multiple devices, and a random dynamic step size of 15~50 combined with device ID hash encryption prevents replay attacks. Real-time cloud synchronization code calibration and automatic synchronization code transmission for repair when out of sync fundamentally solve the industry problem of rolling codes failing to synchronize after long-term use.
[0060] The three-layer architecture of cloud-based remote control, local area network, and offline button provides redundancy and backup for each other. WiFi, Bluetooth, and NB-IoT multi-network links ensure uninterrupted control in scenarios with weak network, no network, or cloud failures.
[0061] AES-128 end-to-end encryption, high-risk command SMS verification, time-based blocking, command rate limiting, remote unbinding and one-click clearing of code value, with no security vulnerabilities.
[0062] Four-level low-power sleep mode, average standby current of 1.2mA, 50ms fast wake-up, hardware protection against overvoltage, overcurrent and reverse connection, suitable for complex power supply scenarios such as automotive.
[0063] With features such as timed control, multi-device linkage, away-from-home mode, camera capture, status feedback, fault self-diagnosis, and NB-IoT cellular remote control, its level of intelligence far surpasses that of traditional devices.
[0064] This USB flash drive is plug-and-play, requires no wiring or installation, and can be carried around and reused in any setting, including homes, shops, vehicles, and basements.
[0065] The specific embodiments described herein are merely illustrative of the spirit of the invention. Those skilled in the art to which this invention pertains may make various modifications or additions to the described specific embodiments or use similar methods to substitute them, without departing from the spirit of the invention or exceeding the scope defined by the appended claims.
[0066] Although this document uses many technical terms, the possibility of using other terms is not excluded. These terms are used merely for the convenience of describing and explaining the essence of this invention; interpreting them as any additional limitation would contradict the spirit of this invention.
Claims
1. A USB multi-protocol motor remote control self-learning remote control method, characterized in that, A system for use in portable control terminals, user terminal programs, and cloud servers, wherein the control terminal has a built-in memory and is equipped with offline control buttons, characterized by comprising the following steps: Step 1: The control terminal completes power-on initialization, network configuration and binding with the cloud server, and simultaneously opens the infrared receiving channel and the radio frequency receiving channel of at least three frequency bands including 315MHz, 433MHz and 868MHz. It automatically identifies the protocol of the received remote control signal, performs secondary transmission verification, classifies and encrypts the signal for storage, and assigns an independent rolling code counter to each rolling code click device. Step 2: After completing the code storage, the control terminal automatically selects one of the following modes—cloud remote control mode, LAN local control mode, or offline button control mode—to execute control commands based on the network status. Step 3: When a control command needs to be sent to the rolling code motor device, the terminal updates the current count value of the independent counter corresponding to the device with a random integer as the dynamic step size, and at least combines the device's unique identifier to encrypt the updated count value to generate a rolling code command and transmit it; the count value, timestamp, and device identifier of this operation are uploaded to the cloud server in real time; the control terminal generates a synchronization code based on the updated count value from the cloud server and transmits it to the corresponding motor receiver to complete the technical calibration and restore the rolling code synchronization.
2. The USB multi-protocol motor remote control self-learning remote control method according to claim 1, characterized in that, In step one, the automatic protocol identification includes: automatic identification of infrared protocol type and automatic identification of radio frequency modulation method. The infrared protocol type includes NEC, RC5, RC6, SIRC, and Sharp proprietary protocols, and the radio frequency modulation method includes OOK modulation method and FSK modulation method.
3. The USB multi-protocol motor remote control self-learning remote control method according to claim 1, characterized in that, In step one, the secondary transmission verification is as follows: after the acquisition is completed, the terminal automatically reproduces the acquired signal and transmits it. After confirming that the motor can be triggered normally, the acquired signal is judged to be valid; otherwise, the acquisition is automatically repeated. During the code learning process, environmental noise interference is filtered out through hardware LC filtering and software noise algorithm, and the logic isolation between infrared signals and radio frequency signals is achieved by relying on signal strength threshold.
4. The USB multi-protocol motor remote control self-learning remote control method according to claim 1, characterized in that, In step two, the local area network control mode is as follows: when the WiFi network is normal but the cloud service is faulty, the user terminal program sends control commands by directly connecting to the terminal through the local area network.
5. The USB multi-protocol motor remote control self-learning remote control method according to claim 1, characterized in that, In step three, in offline mode, the count value, timestamp, and device identifier of this operation are cached in local memory in the form of a queue; After the network is restored, the cached operation record queue is uploaded to the cloud server in batches, and the cloud server updates the stored value based on the count value of the last record in the queue.
6. The USB multi-protocol motor remote control self-learning remote control method according to claim 5, characterized in that, The encryption uses the AES-128 encryption algorithm and combines it with the device's unique identifier hash encryption to generate the transmission code frame.
7. The USB multi-protocol motor remote control self-learning remote control method according to claim 6, characterized in that, When the rolling code is out of sync, the terminal automatically transmits the synchronization code to the motor receiver, without the need for manual relearning of the code; In the cloud-based remote control mode, high-risk commands for opening or closing the door trigger secondary verification via SMS. The cloud also has operation time period locking rules and unit time instruction frequency limits, which are used to intercept control instructions outside the preset time period or exceeding the frequency limit.
8. The USB multi-protocol motor remote control self-learning remote control method according to claim 1, characterized in that, The terminal automatically switches to one of four hierarchical sleep states based on its working status. The four hierarchical sleep states include full-power wake-up state, light sleep state, deep sleep state, and ultimate sleep state. The average standby current is controlled within 1.2mA. In the ultimate sleep state, the WiFi module is intermittently powered off and wakes up once every minute to check the network status. The control terminal can quickly wake up from the sleep state within 50ms.
9. The USB multi-protocol motor remote control self-learning remote control method according to claim 1, characterized in that, The control terminal supports remote unbinding, one-click clearing of all encryption values on local and cloud servers, blocking of lost device permissions, timed automatic control, multi-device scene linkage, camera capture linkage, and one-click control of multiple roller shutters or gate devices in the away-from-home mode. After the terminal transmits radio frequency, it opens a listening window to collect motor response signals and provides feedback on three states: successful execution, no response, and signal interference.
10. A portable control terminal implementing the USB multi-protocol motor remote control self-learning remote control method according to any one of claims 1-9, characterized in that, The hardware structure includes: a power supply and communication interface, a power management module with overvoltage, overcurrent, and reverse connection protection, a backup lithium battery, three-color status indicator lights, dual physical function buttons, an MCU main control unit, a partitioned write-protected Flash encrypted storage chip, an infrared transceiver module, a radio frequency transceiver module with LC filtering circuits covering at least three frequency bands: 315MHz, 433MHz, and 868MHz, a WiFi module, a Bluetooth network configuration module, and an optional NB-IoT cellular communication module. Each module is electrically connected to the MCU main control unit. The power management module provides tiered power supply, and the radio frequency and infrared modules are equipped with independent power gate switches to achieve sleep power-off. The backup lithium battery automatically switches power supply after the external power supply is interrupted and can support no less than 30 physical button control operations. The dual physical buttons support device cycle switching, action execution, and double-click deletion of single device code values. The three-color indicator lights correspond to green for device online status, blue for code learning mode, and red for offline or hardware fault status.
Citation Information
Patent Citations
Wireless appliance activation transceiver
US7088218B2
