Code matching method for wireless remote controller of electric curtain
By combining MCU, wireless radio frequency circuit and AI voice chip, the automatic pairing of electric curtain remote control is achieved by using voice commands and wireless radio frequency decoding, which solves the problems of complex and cumbersome pairing of remote controls in the prior art, and improves the pairing efficiency and product quality.
Patent Information
- Application Number
- CN202411180630.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-06
AI Technical Summary
The pairing process of existing electric curtain remote controls is complicated and cumbersome, requiring welding address codes or relying on key interactions, resulting in pairing difficulties and difficult to control product quality.
The local MCU, wireless radio frequency circuit, motor drive control circuit, AI voice chip, etc. are used to automatically pair the remote control and the curtain motor through voice commands and wireless radio frequency decoding, simplifying the pairing process and avoiding traditional key interactions.
It realizes that the remote control pairing can be completed without returning to the manufacturer, which is simple and convenient to operate, and improves the pairing efficiency and product quality control.
Smart Images

Figure CN119091607A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for pairing codes of a wireless remote controller for electric curtains, belonging to the field of electric curtains. Background Art
[0002] Currently, there are two types of solutions for pairing remote controls for electric curtain products on the market.
[0003] One type uses the PT2262 / 2272 solution; PT2262 / 2272 is a pair of remote control transmitter / receiver chips with address and data encoding functions, generally using 8-bit address code and 4-bit data code. At this time, the 1st to 8th pins of the encoding circuit PT2262 and the decoding PT2272 are address setting pins, and there are three states to choose from: floating, connected to the positive power supply, and grounded. The 8th power of 3 is 6561, so the address coding non-repetition degree is 6561 groups. Only when the address codes of the transmitting end PT2262 and the receiving end PT2272 are exactly the same can they be paired and used; for this type of solution, the remote control must be paired with the curtain motor, and the address code pin must be soldered to make the remote control consistent with the receiving motor address code before it can be used; the remote control at the electric curtain construction site is basically unable to be paired and needs to be sent back to the manufacturer for pairing.
[0004] The other type is that there are physical buttons on the curtain motor side. By distinguishing the length of time the button is pressed and the number of times the button is pressed, the function command to be executed is filtered. During this period, the remote control pairing and learning program will be entered only after multiple interactions such as the number of times the LED indicator flashes and the long-on status.
[0005] In the above schemes, the first type of pairing requires opening the curtain motor and remote control and welding the address code; it requires high professional skills of the operator, and the product is opened on site, and the product quality cannot be effectively controlled. Compared with the first type, the second type does not need to open the product. It relies on the built-in remote control pairing program of the curtain motor and strictly follows the operation process of the setting key to complete the remote control pairing; however, the pairing button operation process is different for each product, which is easy to confuse and remember incorrectly. The interactive information during the pairing process is limited, and it is not easy to complete. Summary of the invention
[0006] The object of the present invention is to provide a method for pairing a wireless remote controller for electric curtains, which can effectively solve the above-mentioned problems.
[0007] In order to solve the above technical problems, the present invention is achieved through the following technical solutions: It includes an electrically connected local MCU, a wireless radio frequency circuit and a motor drive control circuit, a motor real-time operating current value ADC sampling circuit, and a motor rotation orthogonal encoding circuit; the local MCU is also electrically connected to the AI voice chip circuit, the AI voice chip circuit is electrically connected to the MIC audio input circuit, the AEC echo cancellation circuit, and the audio amplifier circuit, and the audio amplifier circuit is electrically connected to the speaker; S0: The voice signal is transmitted to the AI voice chip, which sends the recognized command to the local MCU, which then performs code recognition. At the same time, the local MCU returns information to the AI voice chip based on the local operating status. The specific coding method is: S1: The wireless RF circuit receives the modulated carrier signal transmitted by the remote control, and outputs the data signal to the I / O port of the MCU after demodulation; S2: MCU captures the synchronization frame header of the data stream demodulated by the wireless circuit, and then decodes the data encoding frame after the synchronization frame header; S3: After the wireless remote control data is decoded for the first time, it is cached in the MCU memory RAM1; S4: Repeat the steps in S2, the MCU captures the wireless synchronization frame header again, decodes it, and compares the decoded wireless data with the data in RAM1; S5: After successfully receiving the wireless data, determine whether the local MCU is in the remote control code learning pairing mode.
[0008] Further: in step S5, if in remote control code learning mode, the remote control address code ID data is intercepted from the decoded wireless data, and stored in the tail address of the internal EEPROM remote control mapping list, and the corresponding EEPROM is updated to store the number of paired remote controls that have been learned; If it is in non-learning mode, the MCU will query the wireless remote control ID registration data stored in the MCU's internal EEPROM to determine whether it is registered.
[0009] Further: if the remote controller with ID value has been registered, capture the wireless data synchronization frame decoding again, capture and decode two consecutive frames to query the ID registration, get the remote controller decoding key value data, jump to execute the motor to open and close the curtains; If not registered, it is discarded.
[0010] Further: In step S5, the MCU determines whether the motor is in a stopped state based on the statement instructions stored in the electrically connected AI voice chip circuit.
[0011] Further: if the curtain motor is in the stopped state, the MCU enters the remote control code learning and pairing mode; the local MCU returns instructions to the AI voice chip for interaction, and the local MCU starts the remote control timeout counter.
[0012] Further: if the MCU fails to decode a valid remote control ID value from the wireless circuit electrically connected to it within a specified time, the local MCU will time out and exit the remote control code learning pairing mode.
[0013] Further: within the specified time, the operator presses any key on the remote control, the local MCU captures and decodes the remote control address code ID value, and completes the internal EEPROM registration. The local MCU controls the LED light to turn off, and the MCU sends a voice message of "remote control pairing successful" to the AI voice and returns to normal control mode. After receiving the broadcast sound, the AI voice chip drives the speaker to broadcast the voice through the electrically connected audio amplifier circuit, thereby realizing human-computer interaction and completing the remote control pairing.
[0014] The beneficial effects are: This device uses a local MCU, wireless RF circuit and motor drive control circuit, a motor real-time operating current value ADC sampling circuit, a motor rotation orthogonal encoding circuit and an AI voice chip. When pairing, it does not need to be returned to the manufacturer, nor does it need to use traditional button interactive pairing. It is simple and convenient to implement. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] For ease of explanation, the present invention is described in detail with reference to the following specific implementations and the accompanying drawings.
[0016] Figure 1 is a circuit flow chart of the present invention; Figure 2 This is a flowchart of the AI speech recognition circuit of the present invention. DETAILED DESCRIPTION
[0017] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and intended to be used to explain the present invention, but should not be understood as limiting the present invention.
[0018] It should be noted that, in the description of the present invention, unless otherwise specified, “plurality” means two or more than two; the orientations or positional relationships indicated by terms such as “upper”, “lower”, “left”, “right”, “inside”, “outside”, “front end”, “rear end”, “head” and “tail” are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0019] Furthermore, the terms “first,” “second,” “third,” etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
[0020] Meanwhile, in the description of the present invention, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0021] See also Figure 1 This is an embodiment of a method for pairing a wireless remote controller for electric curtains according to the present invention. The present invention provides a method for pairing electric curtains with remote controllers using voice commands, comprising an electrically connected local MCU, a wireless radio frequency circuit and a motor drive control circuit, a motor real-time operating current value ADC sampling circuit, and a motor rotation orthogonal encoding circuit; The local MCU is also electrically connected to the AI voice chip circuit, the AI voice chip circuit is electrically connected to the MIC audio input circuit, the AEC echo cancellation circuit, and the audio amplifier circuit, the audio amplifier circuit is electrically connected to the speaker, and the microphone is used to receive the audio corresponding to the voice command issued by the user and convert the voice audio into a command electrical signal; The AI voice chip uses its own computing power to perform front-end signal processing such as voice endpoint detection, noise reduction, echo cancellation, reverberation elimination, and sound source localization on the command electrical signal. It then performs pre-processing such as filtering and framing on the collected sound signal to extract the signal to be analyzed from the original signal. After that, the feature extraction work converts the sound signal from the time domain to the frequency domain to provide a suitable feature vector for the acoustic model. The acoustic model then calculates the score of each feature vector on the acoustic feature based on the acoustic characteristic. The language model calculates the probability that the sound signal corresponds to a possible phrase sequence based on linguistic theory. Finally, based on the existing pronunciation dictionary, the phrase sequence is decoded to understand and analyze the human intention and obtain the final possible control command. The AI voice chip circuit sends the recognized instructions to the local MCU through the electrical connection with the MCU. After receiving the control instructions recognized by AI, the local MCU decodes them and executes the corresponding command actions. After receiving the voice instructions, the local MCU returns information to the AI voice chip according to the local operating status. The AI voice chip decodes the received MCU information, queries the tens of thousands of offline entries built into the chip, organizes the corresponding broadcast audio data, and then drives the speaker to sound through the audio amplifier circuit to achieve a human-computer voice interaction experience.
[0022] The local MCU uses a single-chip microcomputer with an internal EEPROM, and can also be expanded with an external storage chip; the EEPROM is used to store the motor rotation direction, the address code ID data of the successfully paired remote control, the encoder data, and the broadcast voice command mapping data.
[0023] The I / O port of the local MCU is electrically connected to the wireless radio frequency circuit. The wireless radio frequency circuit receives the modulated carrier signal transmitted by the remote control, and outputs the data signal to the I / O port of the MCU after demodulation. The MCU captures the synchronization frame header of the data stream demodulated by the wireless circuit, and then decodes the data encoding frame after the synchronization frame header. After the wireless remote control data is decoded for the first time, it is cached in the MCU memory RAM1; the MCU captures the wireless synchronization frame header again and decodes it. The decoded wireless data is compared with the data in RAM1. It is valid only when two frames of identical encoded data are received within the specified time. The timed-out decoded data directly overwrites the content in RAM1. After successfully receiving the wireless data, determine whether the local MCU is in the remote control code learning and pairing mode. In the remote control code learning mode, intercept the remote control address code ID data from the decoded wireless data and store it in the tail address of the internal EEPROM remote control mapping list. At the same time, update the corresponding EEPROM to store the number of learned paired remote controls; in non-learning mode, the MCU will query the wireless remote control ID registration data stored in the MCU's internal EEPROM to determine whether it is registered. If it is not registered, it will be discarded. If the remote control with the ID value has been registered, capture the wireless data synchronization frame decoding again. If two consecutive frames are captured and decoded to query the ID registration, take the remote control decoding key value data, and jump to execute the curtain opening and curtain closing programs.
[0024] The local MCU is also electrically connected to the LED indicator light circuit, and the LED light is used to light up or turn off according to the local MCU control instruction.
[0025] In the initial configuration phase of the local MCU, data is read from the system configuration unit mapped by the internal EEPROM to determine whether it is configured. When the value is 0xFF, it means that the system is configured as no, and when the value is not 0xFF, it means that the system is configured. When the curtain is opened or closed for the first time without configuration, the motor is set to rotate clockwise or counterclockwise, and the data is written to the local MCU internal EEPROM mapping address; after other parameters are configured, the system configuration unit data written to the internal EEPROM mapping is 0xAA. Read all registered wireless remote control ID information from the local MCU internal EEPROM. When the read remote control registration quantity value is 0xFF, it is defaulted that there is no registered remote control data.
[0026] In the non-initial configuration stage, the local MCU determines whether the motor is in a stopped state based on similar sentence instructions such as "remote control pairing" and "remote control code pairing" recognized by the electrically connected AI voice chip circuit, otherwise it will be discarded and not executed; if the curtain motor is in a stopped state, the MCU enters the remote control code learning pairing mode and controls the LED light to be always on; the local MCU returns the voice broadcast "OK, + please press any key on the remote control within 20 seconds" to the AI voice chip for interaction, and the local MCU starts the remote control timeout counter. If the MCU fails to decode a valid remote control ID value from the wireless circuit electrically connected to it within the specified time, the local MCU will time out. The remote control code learning and pairing mode is exited at this time, and the broadcast tone of "remote control pairing failed, timeout exit" is sent to the AI voice chip, and the LED light is controlled to flash and then turn off; within the specified time, the operator presses any key on the remote control, the local MCU captures and decodes the remote control address code ID value, and after completing the internal EEPROM registration, the local MCU controls the LED light to turn off, and the MCU sends the voice message of "remote control pairing successful" to the AI voice and returns to the normal control mode. After receiving the broadcast tone, the AI voice chip drives the speaker to broadcast the voice of "remote control pairing successful" through the electrically connected audio amplifier circuit, realizing human-computer interaction, and the remote control pairing is completed.
[0027] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.
Claims
1. A method for pairing a wireless remote controller for electric curtains, characterized in that: It includes an electrically connected local MCU, a wireless RF circuit and a motor drive control circuit, a motor real-time operating current value ADC sampling circuit, and a motor rotation orthogonal encoding circuit; the local MCU is also electrically connected to the AI voice chip circuit, the AI voice chip circuit is electrically connected to the MIC audio input circuit, the AEC echo cancellation circuit, and the audio amplifier circuit, and the audio amplifier circuit is electrically connected to the speaker; The specific code matching method is: S0: The voice signal is transmitted to the AI voice chip, and the AI voice chip sends the recognized command to the local MCU for code matching recognition; at the same time, according to the local operating status, information is returned to the AI voice chip; S1: The wireless RF circuit receives the modulated carrier signal transmitted by the remote control, and outputs the data signal to the I / O port of the MCU after demodulation; S2: The MCU captures the synchronization frame header of the data stream demodulated by the wireless circuit, and then decodes the data encoding frame after the synchronization frame header after capturing the synchronization frame header; S3: After the wireless remote control data is decoded for the first time, it is cached in the MCU memory RAM1; S4: Repeat the steps in S2, the MCU captures the wireless synchronization frame header again, decodes it, and compares the decoded wireless data with the data in RAM1; S5: After successfully receiving the wireless data, determine whether the local MCU is in the remote control code learning and pairing mode.
2. The method for pairing a wireless remote controller for electric curtains according to claim 1 is characterized in that: In step S5, if it is in the remote control code learning mode, the remote control address code ID data is intercepted from the decoded wireless data and stored in the tail address of the internal EEPROM remote control mapping list, and the corresponding EEPROM is updated to store the number of learned paired remote controls; if it is in the non-learning mode, the MCU will query the wireless remote control ID registration data stored in the MCU's internal EEPROM to determine whether it is registered.
3. The method for pairing a wireless remote controller for electric curtains according to claim 3 is characterized in that: If the remote control with ID value has been registered, capture the wireless data synchronization frame decoding again, capture and decode two frames in a row to query the ID registration, get the remote control decoding key value data, and jump to execute the motor to open or close the curtain.
4. The method for pairing a wireless remote controller for electric curtains according to claim 2 is characterized in that: In step S5, the MCU determines whether the motor is in a stopped state based on the statement instructions stored in the electrically connected AI voice chip circuit.
5. The method for pairing a wireless remote controller for electric curtains according to claim 4 is characterized in that: If the curtain motor is in the stopped state, the MCU enters the remote control code learning and pairing mode; the local MCU returns commands to the AI voice chip for interaction, and the local MCU starts the remote control timeout counter.
6. The method for pairing a wireless remote controller for electric curtains according to claim 5 is characterized in that: If the MCU fails to decode a valid remote control ID value from the wireless circuit electrically connected to it within the specified time, the local MCU will time out and exit the remote control code learning pairing mode.
7. The method for pairing a wireless remote controller for electric curtains according to claim 6, characterized in that: Within the specified time, the operator presses any key on the remote control, the local MCU captures and decodes the remote control address code ID value, and completes the internal EEPROM registration.
Citation Information
Patent Citations
Drive device and method capable of regulating motor rotation direction of rolling curtain
CN101446171A
RF4CE-based universal learning remote controller, and universal learning remote control method
CN105070014A
Control method for wireless remote control of gas water heater
CN112460813A
From electricity generation wireless remote controller
CN206021530U
Remote control night lamp integrating voice and gesture control
CN213403583U
