A wireless code communication method and system

The wireless code-matching communication method, which verifies the feature code and frame sequence number, solves the problems of one-to-one binding and preventing communication interference in wireless remote control communication, and realizes stable and independent data transmission. It is suitable for communication between devices in complex environments without interference.

CN117746605BActive Publication Date: 2025-11-21GUANGDONG HAIDUN HEATING TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311739070.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-18
Publication Date
2025-11-21
Estimated Expiration
2043-12-18

AI Technical Summary

Technical Problem

Existing wireless remote control communication methods suffer from insufficient user operability and reliability issues in terms of one-to-one binding and prevention of communication interference, especially in complex spatial conditions where stable communication is difficult to achieve.

Method used

The wireless code-matching communication method employs signature verification and frame sequence number verification. The signature code is generated and verified by the remote control end and the controlled end, and bidirectional verification is performed during each frame of communication to ensure the independence and stability of the communication.

Benefits of technology

It achieves one-to-one binding and prevents communication interference in complex environments, ensuring the independence and stability of data transmission, avoiding misoperation, and is suitable for non-interference communication between multiple groups of devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117746605B_ABST
    Figure CN117746605B_ABST
Patent Text Reader

Abstract

The application provides a wireless code matching communication method and system, the method comprises the following steps: after receiving the code matching instruction of a user, the remote control end sends a code matching application to the controlled end; after receiving the code matching application of the remote control end, the controlled end which has not established a communication connection generates a characteristic code and sends it to the remote control end; after receiving the characteristic code, the remote control end communicates with the controlled end by taking the characteristic code as the frame header in the communication data frame; and the controlled end and the remote control end communicate by checking the characteristic code. The wireless code matching communication method and system can automatically match codes and prevent communication interference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of remote control communication technology, specifically to a wireless code-pairing communication method and system. Background Technology

[0002] Many electrical appliances have remote control functions, which are achieved through infrared, Bluetooth, or RF wireless communication. Infrared remote control has a short range and can mostly only achieve general control, not one-to-one pairing; Bluetooth uses a dedicated communication protocol and can achieve one-to-one data transmission, but its ability to penetrate walls is poor and its spatial limitations are relatively large.

[0003] RF wireless communication offers strong wall-penetrating capabilities, making it suitable for complex spatial conditions. Currently, channel matching is commonly used to achieve one-to-one pairing. However, the limited number of channels restricts the number of devices that can be paired within a close proximity; furthermore, channel matching may require pre-configuration, limiting user convenience. Summary of the Invention

[0004] The purpose of this invention is to provide a wireless code-pairing communication method and system that is simple to set up and can prevent communication interference.

[0005] In this embodiment of the invention, a wireless code pairing communication method is provided, comprising:

[0006] After receiving the pairing command from the user, the remote control terminal sends a pairing request to the controlled terminal.

[0007] When a controlled terminal that has not established a communication connection receives a code matching request from a remote control terminal, it generates a feature code and sends it to the remote control terminal.

[0008] After receiving the feature code, the remote control terminal uses it as the frame header in the communication data frame to communicate with the controlled terminal. When the controlled terminal and the remote control terminal communicate, the feature code is used for verification.

[0009] In this embodiment of the invention, when the controlled terminal sends a code request to another controlled terminal, it uses the default communication characteristic value for communication.

[0010] In this embodiment of the invention, the controlled terminal calls the internal timer value as a random number seed to generate a random number as a feature code.

[0011] In this embodiment of the invention, when the controlled end and the remote control end communicate, the feature code is used for verification, including:

[0012] Receive frame header data and determine if it matches the signature.

[0013] If they are not the same, the verification fails and data reception stops;

[0014] If they are the same, continue receiving intra-frame data segments, call the feature code to calculate the check value according to the set check algorithm, and determine whether the calculated check value is the same as the check value in the received intra-frame data. If they are the same, the check is successful and the communication is valid; otherwise, the check fails.

[0015] In this embodiment of the invention, after the remote control end and the controlled end successfully pair codes, the frame sequence number is counted and verified during each frame of communication.

[0016] In this embodiment of the invention, the frame sequence number is counted and verified during each frame of communication, including:

[0017] After receiving and successfully verifying a frame of communication data, determine whether the frame sequence number of this frame is the frame sequence number of the previous frame plus 1.

[0018] If yes, the frame sequence number verification is successful; otherwise, the frame sequence number verification fails.

[0019] In this embodiment of the invention, the pairing process of the remote control terminal is as follows:

[0020] After receiving the pairing command from the user, the remote control sends a pairing request frame, uses the default communication characteristic value for communication, sets the communication sequence number to 0, and then starts to determine whether a pairing reply frame with a communication sequence number of 0 has been received.

[0021] If a pairing reply frame with a communication sequence number of 0 is received, a pairing confirmation frame with a communication sequence number of 1 is sent, and it is determined whether a pairing confirmation reply frame with a communication sequence number of 1 has been received. Otherwise, if no pairing reply frame is received after repeatedly sending the pairing request frame a set number of times, the pairing is determined to have failed, and the pairing process is exited.

[0022] If a pairing confirmation reply frame with communication sequence number 1 is received, the valid data segment is decoded, the received pairing value is used as the communication feature value, and a pairing success notification frame with communication sequence number 2 is sent. Then, it is determined whether a pairing success reply frame with communication sequence number 2 has been received. Otherwise, if a pairing confirmation reply frame is still not received after repeatedly sending the set number of pairing success notification frames, the pairing is determined to have failed, and the pairing process is exited.

[0023] If a pairing success reply frame with communication sequence number 2 is received, the pairing value is saved and the pairing process is exited. Otherwise, if no pairing success reply frame is received after repeatedly sending the set number of pairing success reply frames, the pairing is judged to have failed and the pairing process is exited.

[0024] In this embodiment of the invention, the code pairing process of the controlled end is as follows:

[0025] The controlled terminal starts a timer and determines whether to allow receiving code pairing requests based on whether it has established a communication connection. If the controlled terminal has not established a communication connection, it is allowed to receive code pairing requests; otherwise, it is not allowed to receive code pairing requests.

[0026] After receiving a pairing request frame with sequence number 0, the controlled end sends a pairing reply frame with sequence number 0, and then determines whether it has received a pairing confirmation frame with sequence number 1.

[0027] If a pairing confirmation frame is received, the timer value is called to generate a random number as a feature code, and a pairing confirmation reply frame with sequence number 1 is sent. The pairing value is sent as valid data within the frame. Then, it is determined whether a pairing success notification frame with sequence number 2 has been received. Otherwise, it is determined whether a pairing confirmation frame has been received within a timeout period. If a timeout occurs, the pairing fails and the pairing process is exited.

[0028] If a successful pairing notification frame is received, a successful pairing reply frame with sequence number 2 is sent, and the pairing value is used as a communication feature value. Otherwise, it is determined whether a successful pairing notification frame has been received within a timeout period. If the timeout period is reached, the pairing process fails and the pairing process is exited.

[0029] In this embodiment of the invention, a wireless code-pairing communication system is also provided, which includes a remote control terminal and a controlled terminal. When the remote control terminal and the controlled terminal communicate, the above-described wireless code-pairing communication method is used.

[0030] Compared with existing technologies, the wireless code-pairing communication method and system of this invention, after the controlled end receives the code-pairing request from the remote control end, generates a feature code and sends it to the remote control end. The remote control end receives the feature code and uses it as the frame header in the communication data frame for communication with the controlled end. During communication, the controlled end and the remote control end use the feature code for verification. An internal timer value is used as a random number seed to generate a random number as the feature code, resulting in extremely low frame header repetition, which greatly ensures the relative independence of the communication data. Using the feature code as the frame header confirms whether to receive communication data at the start of communication, reducing system overhead. Bidirectional verification of frame sequence numbers during communication ensures stable data communication and avoids erroneous operations. Testing shows that in a normal environment, multiple controlled and remote control parties can achieve non-interfering communication. Even under large-scale, continuous, and similar data interference in the same channel, it can effectively discard all illegal data and prevent the erroneous execution of illegal commands. Attached Figure Description

[0031] Figure 1 This is a flowchart of the remote control terminal code pairing process according to an embodiment of the present invention.

[0032] Figure 2 This is a flowchart of the controlled end pairing code in an embodiment of the present invention.

[0033] Figure 3 This is a flowchart of the communication verification process of the controlled end in an embodiment of the present invention. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0035] The implementation of the present invention will be described in detail below with reference to specific embodiments.

[0036] This invention provides a wireless code-pairing communication method, comprising: after receiving a code-pairing command from a user, a remote control terminal sends a code-pairing request to a controlled terminal; after receiving the code-pairing request from the remote control terminal, the controlled terminal, which has not established a communication connection, generates a feature code and sends it to the remote control terminal; after receiving the feature code, the remote control terminal uses it as the frame header in a communication data frame to communicate with the controlled terminal; when the controlled terminal and the remote control terminal communicate, the feature code is used for verification. The following is in conjunction with the appendix... Figure 1-3 The above-mentioned wireless code pairing communication method is described in detail.

[0037] like Figure 1 As shown, the pairing process on the remote control is as follows:

[0038] After receiving the pairing command from the user, the remote control sends a pairing request frame, uses the default communication characteristic value for communication, sets the communication sequence number to 0, and then starts to determine whether a pairing reply frame with a communication sequence number of 0 has been received.

[0039] If a pairing reply frame with a communication sequence number of 0 is received, a pairing confirmation frame with a communication sequence number of 1 is sent, and it is determined whether a pairing confirmation reply frame with a communication sequence number of 1 has been received. Otherwise, if a pairing reply frame is not received after repeatedly sending the pairing request frame a set number of times (e.g., 5 times), the pairing is determined to have failed, and the pairing process is exited.

[0040] If a pairing confirmation reply frame with communication sequence number 1 is received, the valid data segment is decoded, the received pairing value is used as the communication feature value, and a pairing success notification frame with communication sequence number 2 is sent. Then, it is determined whether a pairing success reply frame with communication sequence number 2 has been received. Otherwise, if a pairing confirmation reply frame is still not received after repeatedly sending the set number of pairing success notification frames, the pairing is determined to have failed, and the pairing process is exited.

[0041] If a pairing success reply frame with communication sequence number 2 is received, the pairing value is saved and the pairing process is exited. Otherwise, if no pairing success reply frame is received after repeatedly sending the set number of pairing success reply frames, the pairing is judged to have failed and the pairing process is exited.

[0042] like Figure 2 As shown, the code pairing process at the controlled end is as follows:

[0043] The controlled terminal starts a timer and determines whether to allow receiving code pairing requests based on whether it has established a communication connection. If the controlled terminal has not established a communication connection, it is allowed to receive code pairing requests; otherwise, it is not allowed to receive code pairing requests.

[0044] After receiving a pairing request frame with sequence number 0, the controlled end sends a pairing reply frame with sequence number 0, and then determines whether it has received a pairing confirmation frame with sequence number 1.

[0045] If a pairing confirmation frame is received, the timer value is called to generate a random number as a feature code, and a pairing confirmation reply frame with sequence number 1 is sent. The pairing value is sent as valid data within the frame. Then, it is determined whether a pairing success notification frame with sequence number 2 has been received. Otherwise, it is determined whether a pairing confirmation frame has been received within a timeout period. If a timeout occurs, the pairing fails and the pairing process is exited.

[0046] If a successful pairing notification frame is received, a successful pairing reply frame with sequence number 2 is sent, and the pairing value is used as a communication feature value. Otherwise, it is determined whether a successful pairing notification frame has been received within a timeout period. If the timeout period is reached, the pairing process fails and the pairing process is exited.

[0047] like Figure 3 As shown in this embodiment of the invention, when the controlled end and the remote control end communicate, the process of verifying using the feature code includes:

[0048] Receive frame header data and determine if it matches the signature.

[0049] If they are not the same, the verification fails and data reception stops;

[0050] If they are the same, continue receiving intra-frame data segments, call the feature code to calculate the check value according to the set check algorithm, and determine whether the calculated check value is the same as the check value in the received intra-frame data. If they are the same, the check is successful and the communication is valid; otherwise, the check fails.

[0051] Furthermore, such as Figure 3 As shown, after the remote control and the controlled end successfully pair their codes, the frame sequence number is counted and verified during each frame of communication. The specific process includes:

[0052] After receiving and successfully verifying a frame of communication data, determine whether the frame sequence number of this frame is the frame sequence number of the previous frame plus 1.

[0053] If yes, the frame sequence number verification is successful; otherwise, the frame sequence number verification fails.

[0054] It should be noted that if the verification fails during code verification and frame sequence number verification, the communication failure count will be incremented by 1. If the communication failure count exceeds the set number, the communication process will be terminated.

[0055] In this embodiment of the invention, a wireless code-pairing communication system is also provided, which includes a remote control terminal and a controlled terminal. When the remote control terminal and the controlled terminal communicate, the above-described wireless code-pairing communication method is used.

[0056] In summary, the wireless code-pairing communication method and system of this invention, after the controlled end receives the code-pairing request from the remote control end, generates a feature code and sends it to the remote control end. The remote control end receives the feature code and uses it as the frame header in the communication data frame for communication with the controlled end. During communication, the controlled end and the remote control end use the feature code for verification. An internal timer value is used as a random number seed to generate a random number as the feature code, resulting in extremely low frame header repetition, which greatly ensures the relative independence of the communication data. Using the feature code as the frame header confirms whether to receive communication data at the start of communication, reducing system overhead. Bidirectional verification of frame sequence numbers during communication ensures stable data communication and avoids erroneous operations. Testing shows that in a normal environment, multiple controlled and remote control parties can achieve non-interfering communication. Even under large-scale, continuous, and similar data interference in the same channel, all illegal data can be effectively discarded, preventing the erroneous execution of illegal commands.

[0057] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A wireless code-pairing communication method, characterized in that, include: After receiving the pairing command from the user, the remote control terminal sends a pairing request to the controlled terminal. When a controlled terminal that has not established a communication connection receives a code matching request from a remote control terminal, it generates a feature code and sends it to the remote control terminal. After receiving the feature code, the remote control terminal uses it as the frame header in the communication data frame to communicate with the controlled terminal. During communication between the controlled terminal and the remote control terminal, the feature code is used for verification. The code pairing process on the controlled end is as follows: The controlled terminal starts a timer and determines whether to allow receiving code pairing requests based on whether it has established a communication connection. If the controlled terminal has not established a communication connection, it is allowed to receive code pairing requests; otherwise, it is not allowed to receive code pairing requests. After receiving a pairing request frame with sequence number 0, the controlled end sends a pairing reply frame with sequence number 0, and then determines whether it has received a pairing confirmation frame with sequence number 1. If a pairing confirmation frame is received, the timer value is called to generate a random number as a feature code, and a pairing confirmation reply frame with sequence number 1 is sent. The pairing value is sent as valid data within the frame. Then, it is determined whether a pairing success notification frame with sequence number 2 has been received. Otherwise, it is determined whether a pairing confirmation frame has been received within a timeout period. If a timeout occurs, the pairing fails and the pairing process is exited. If a successful pairing notification frame is received, a successful pairing reply frame with sequence number 2 is sent, and the pairing value is used as a communication feature value. Otherwise, it is determined whether a successful pairing notification frame has been received within a timeout period. If the timeout period is reached, the pairing process fails and the pairing process is exited.

2. The wireless code-pairing communication method as described in claim 1, characterized in that, When the controlled terminal sends a code request to another controlled terminal, it uses the default communication characteristic value for communication.

3. The wireless code pairing communication method as described in claim 1, characterized in that, The controlled end calls the internal timer value as a random number seed to generate a random number as a signature.

4. The wireless code-pairing communication method as described in claim 1, characterized in that, When the controlled end and the remote control end communicate, the aforementioned feature code is used for verification, including: Receive frame header data and determine if it matches the signature. If they are not the same, the verification fails and data reception stops; If they are the same, continue receiving intra-frame data segments, call the feature code to calculate the check value according to the set check algorithm, and determine whether the calculated check value is the same as the check value in the received intra-frame data. If they are the same, the check is successful and the communication is valid; otherwise, the check fails.

5. The wireless code pairing communication method as described in claim 1, characterized in that, After the remote control and the controlled end successfully pair their codes, the frame sequence number is counted and verified during each frame of communication.

6. The wireless code-pairing communication method as described in claim 1, characterized in that, During each frame of communication, the frame sequence number is counted and checked, including: Receive a frame of communication data and verify it; After successful verification, check if the frame number of the current frame is the frame number of the previous frame plus 1. If so, the frame number verification is successful; otherwise, the frame number verification fails.

7. The wireless code-pairing communication method as described in claim 1, characterized in that, The pairing process for the remote control is as follows: After receiving the pairing command from the user, the remote control sends a pairing request frame, uses the default communication characteristic value for communication, sets the communication sequence number to 0, and then starts to determine whether a pairing reply frame with a communication sequence number of 0 has been received. If a pairing reply frame with a communication sequence number of 0 is received, a pairing confirmation frame with a communication sequence number of 1 is sent, and it is determined whether a pairing confirmation reply frame with a communication sequence number of 1 has been received. Otherwise, if no pairing reply frame is received after repeatedly sending the pairing request frame a set number of times, the pairing is determined to have failed, and the pairing process is exited. If a pairing confirmation reply frame with communication sequence number 1 is received, the valid data segment is decoded, the received pairing value is used as the communication feature value, and a pairing success notification frame with communication sequence number 2 is sent. Then, it is determined whether a pairing success reply frame with communication sequence number 2 has been received. Otherwise, if a pairing confirmation reply frame is still not received after repeatedly sending the set number of pairing success notification frames, the pairing is determined to have failed, and the pairing process is exited. If a pairing success reply frame with communication sequence number 2 is received, the pairing value is saved and the pairing process is exited. Otherwise, if no pairing success reply frame is received after repeatedly sending the set number of pairing success reply frames, the pairing is judged to have failed and the pairing process is exited.

8. A wireless code-pairing communication system, comprising a remote control terminal and a controlled terminal, wherein the remote control terminal and the controlled terminal communicate using the wireless code-pairing communication method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Radio frequency identification antenna

    CN104751118A

  • Inter-processor communication method, processor and electronic device

    CN108268420A

  • Intelligent humidifier control method based on bidirectional RF remote controller

    CN109140701A

  • Secure communication method and device of laser radar system and terminal equipment

    CN116015905A