Remote control communication method, system and product
By building a communication protocol and combining 2.4G private control protocol and BLE protocol, the shortcomings of the existing remote control protocol in long-distance and anti-interference are solved, and efficient and secure long-distance remote control communication is achieved.
Patent Information
- Application Number
- CN202510481732.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-17
- Publication Date
- 2025-06-24
Smart Images

Figure CN120199060A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of remote control technology, and particularly to a remote control communication method, system and product. Background Art
[0002] Currently, most remote control protocols adopt the standard Bluetooth Low Energy (BLE) protocol. Although it has the advantages of low cost and mobile phone compatibility, its physical layer design has inherent limitations. First, the default transmission power of BLE is low (usually ≤10dBm), and it uses a high rate of 1Mbps for transmission, resulting in fast signal attenuation. In an open environment, the effective control distance is generally less than 50 meters, making it difficult to meet the requirements of long-distance remote control. Second, BLE fixedly uses 3 broadcast channels and is vulnerable to interference from Wi-Fi and co-frequency devices when the 2.4GHz band is crowded, resulting in a high packet loss rate and large fluctuations in control latency. Summary of the Invention
[0003] The purpose of this application is to overcome the defects of the prior art and provide a remote control communication method, system and product.
[0004] In the first aspect, this application provides a remote control communication method, including the following steps: Construct a communication protocol, and set the format of the air packet according to the communication protocol. The air packet includes: status broadcast packet, pairing request packet, pairing response packet, pairing confirmation packet, connection information packet, control signal packet, status response packet; Enable the communication device to enter the pairing mode. The communication device includes a receiving end and a transmitting end; After the receiving end enters the pairing mode, it continuously sends status broadcast packets through the broadcast channel to announce its own status to surrounding devices; After the transmitting end enters the pairing mode, it searches, receives the status broadcast packet, and continuously sends a pairing request packet to the receiving end through a single channel; After the receiving end receives the pairing request packet, it sends a pairing response packet to the transmitting end through the single channel. After the transmitting end receives the pairing response packet, it sends a first pairing confirmation packet to the receiving end. After the receiving end receives the first pairing confirmation packet, it feeds back the first connection information packet indicating the completion of pairing to the user and sends a second pairing confirmation packet to the transmitting end. After the transmitting end receives the second pairing confirmation packet, it feeds back the second connection information packet indicating the completion of pairing to the user to complete the pairing; After the receiving end and the transmitting end complete the pairing, the transmitting end sends multiple control signal packets to the receiving end through the communication channel. After the receiving end completes the instructions of the control signal packet, it sends a status response packet to the transmitting end to feedback the operation result and the current status to achieve remote control communication.
[0005] Optionally, a communication protocol is constructed, and the format of the air packet is set according to the communication protocol. The air packet includes: a status broadcast packet, a pairing request packet, a pairing response packet, a pairing confirmation packet, a connection information packet, a control signal packet, and a status response packet, including: Construct a communication protocol; Set the format of the status broadcast packet according to the communication protocol; Set the format of the pairing request packet according to the communication protocol; Set the format of the pairing response packet according to the communication protocol; Set the format of the pairing confirmation packet according to the communication protocol; Set the format of the connection information packet according to the communication protocol; Set the format of the control signal packet according to the communication protocol; Set the format of the status response packet according to the communication protocol.
[0006] Optionally, the communication protocol includes: a top layer, a middle layer, and a bottom layer, which are connected in sequence; The top layer includes a 2.4G private control protocol and a standard BLE protocol; The middle layer includes a private packet format unit, a broadcast physical channel protocol data unit, and a data physical channel protocol data unit. The private packet format unit is connected to the broadcast physical channel protocol data unit, and the data physical channel protocol data unit is connected to the private packet format unit; The bottom layer includes a physical layer.
[0007] Optionally, the broadcast physical channel protocol data unit includes: a header and a payload. The header is connected to the payload. The header contains control and identification information, and the payload is used to carry actual broadcast data.
[0008] Optionally, the header includes: the type of the protocol data unit, reserved bits, channel selection, transmission address type, reception address type, and the length of the payload. The type of the protocol data unit, reserved bits, channel selection, transmission address type, reception address type, and the length of the payload are connected in sequence.
[0009] Optionally, a communication device is made to enter a pairing mode. The communication device includes a receiving end and a transmitting end, including: Make the receiving end and the transmitting end enter a standby state respectively; Set the connection methods of the receiving end and the transmitting end respectively; Make the receiving end and the transmitting end enter the pairing mode respectively.
[0010] Optionally, the step of setting the connection methods of the receiving end and the transmitting end respectively includes: Set the receiving - end connection method to any one or more of BLE connection, dual - connection, general connection, and 2.4G high - bandwidth connection; Set the transmitting - end connection method to 2.4G high - bandwidth connection.
[0011] Optionally, after pairing is completed, the pairing information will not disappear after secondary pairing.
[0012] In a second aspect, the present application also provides a remote control communication system for performing the remote control communication method described in any item of the first aspect, including: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the remote control communication method described in any item of the first aspect.
[0013] In a third aspect, the present application also provides a computer program product including a computer program, which implements the remote control communication method described in any item of the first aspect when executed by a processor.
[0014] The present application provides a remote control communication method, system, and product. By constructing a communication protocol, the top layer of the communication protocol combines the 2.4G private control protocol and the standard BLE protocol, taking into account the communication requirements of long - distance, low - latency, anti - interference, and the low - power consumption function, and broadening the application scenarios; the private packet format unit in the middle layer standardizes the air - packet structure, and the broadcast and data physical channel protocol data units ensure the efficient discovery and data transmission of devices. The bottom - layer physical layer is responsible for signal processing, providing basic support for communication; in the pairing and communication stages, multiple air - packets interact orderly according to the communication protocol, ensuring fast and accurate pairing, and low - latency and high - reliability communication; providing multiple connection methods, which can be flexibly set according to requirements, and the pairing information will not disappear after secondary pairing, improving the usability. The system of the present application has anti - interference ability and can work stably in complex environments, providing a safe, efficient, and reliable solution for long - distance remote control communication.
[0015] To make the above - mentioned features and advantages of the invention more obvious and understandable, specific embodiments are given below and are described in detail in conjunction with the accompanying drawings as follows. Brief Description of the Drawings
[0016] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0017] Figure 1Flowchart of the remote control communication method provided in an embodiment of the present application.
[0018] Figure 2 Overall hierarchical diagram of the communication protocol in the remote control communication method provided in an embodiment of the present application.
[0019] Figure 3 Basic structure diagram of the uncoded air packet in the remote control communication method provided in an embodiment of the present application.
[0020] Figure 4 Basic structure diagram of the coded air packet in the remote control communication method provided in an embodiment of the present application.
[0021] Figure 5 Basic structure diagram of the broadcast physical channel protocol data unit in the remote control communication method provided in an embodiment of the present application.
[0022] Figure 6 Basic structure diagram of the header of the broadcast physical channel protocol data unit in the remote control communication method provided in an embodiment of the present application.
[0023] Figure 7 Basic structure diagram of the data area of the payload of the broadcast physical channel protocol data unit in the remote control communication method provided in an embodiment of the present application.
[0024] Figure 8 Transmitter timing diagram in the default mode of the remote control communication method provided in an embodiment of the present application.
[0025] Figure 9 Transmitter timing diagram in the response mode of the remote control communication method provided in an embodiment of the present application.
[0026] Figure 10 Transmitter timing diagram in the fast mode of the remote control communication method provided in an embodiment of the present application.
[0027] Figure 11 Transmitter timing diagram in the long-distance mode of the remote control communication method provided in an embodiment of the present application. Detailed implementation manners
[0028] To make the objectives and technical solutions of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the described embodiments of the present application without creative efforts shall fall within the scope of protection of the present application.
[0029] In one embodiment, please refer to Figure 1 , this application provides a remote control communication method, and the remote control communication method may include the following steps: Step S1 to Step S6.
[0030] Step S1: Construct a communication protocol, and set the format of the air packet according to the communication protocol. The air packet includes: a status broadcast packet, a pairing request packet, a pairing response packet, a pairing confirmation packet, a connection information packet, a control signal packet, and a status response packet.
[0031] Step S2: Make the communication device enter the pairing mode. The communication device includes a receiving end and a transmitting end.
[0032] Step S3: After the receiving end enters the pairing mode, continuously send a status broadcast packet through the broadcast channel to announce its own status to surrounding devices.
[0033] Step S4: After the transmitting end enters the pairing mode, perform a search, receive the status broadcast packet, and continuously send a pairing request packet to the receiving end through a single channel.
[0034] Step S5: After the receiving end receives the pairing request packet, send a pairing response packet to the transmitting end through the single channel. After the transmitting end receives the pairing response packet, send a first pairing confirmation packet to the receiving end. After the receiving end receives the first pairing confirmation packet, send a first connection information packet indicating that the pairing is completed to the user, and send a second pairing confirmation packet to the transmitting end. After the transmitting end receives the second pairing confirmation packet, send a second connection information packet indicating that the pairing is completed to the user, thereby achieving pairing.
[0035] Step S6: After the receiving end and the transmitting end complete pairing, the transmitting end sends multiple control signal packets to the receiving end through the communication channel. After the receiving end completes the instructions of the control signal packets, send a status response packet to the transmitting end to feedback the operation result and the current status, thereby achieving remote control communication.
[0036] In the remote control communication method of this application, by using the communication protocol in the pairing and communication processes, the remote control operation performance can be effectively improved; in the pairing stage, the status broadcast packet, pairing request packet, pairing response packet, and pairing confirmation packet under the communication protocol interact in an orderly manner to accurately transmit the device status and pairing information, ensuring that the pairing is completed quickly and accurately; during communication, the control signal packet and status response packet of the communication protocol adopt a specific format and verification mechanism to achieve low-latency and high-reliability data transmission, which can reduce costs, and also has the ability of pseudo-random frequency hopping for anti-interference, realizing communication in a long-distance and multi-device environment.
[0037] In step S1, please refer to Figure 1In step S1, a communication protocol is constructed, and the format of the air packet is set according to the communication protocol. The air packet includes: a status broadcast packet, a pairing request packet, a pairing response packet, a pairing confirmation packet, a control packet, and a status response packet.
[0038] As an example, construct a communication protocol; set the format of the status broadcast packet according to the communication protocol; set the format of the pairing request packet according to the communication protocol; set the format of the pairing response packet according to the communication protocol; set the format of the pairing confirmation packet according to the communication protocol; set the format of the connection information packet according to the communication protocol; set the format of the control signal packet according to the communication protocol; set the format of the status response packet according to the communication protocol.
[0039] Specifically, the communication protocol includes a top layer, a middle layer, and a bottom layer, which are connected in sequence; the top layer includes a 2.4G private control protocol and a standard BLE protocol; the middle layer includes a private packet format unit, a broadcast physical channel protocol data unit, and a data physical channel protocol data unit. The private packet format unit is connected to the broadcast physical channel protocol data unit, and the data physical channel protocol data unit is connected to the private packet format unit. The private packet format unit is used to define the structure, field meaning, etc. of the air packet under this private protocol. The broadcast physical channel protocol data unit is used for the device to send its own information on the broadcast channel so as to be discovered by other devices. The data physical channel protocol data unit is used to transmit actual data on the established data channel; the bottom layer includes a physical layer (PHY), which is used to process operations such as modulation and demodulation of wireless signals and frequency selection. The overall hierarchical diagram of the communication protocol is as Figure 2 shown.
[0040] As an example, the 2.4G private control protocol is used to implement communication with special requirements such as long distance, low latency, and anti-interference. The standard BLE protocol is used to implement general Bluetooth low-power functions, such as device discovery, pairing, data transmission, etc., to achieve wide compatibility.
[0041] As an example, when starting the broadcast, the structure of the air packet is defined through the private packet format unit, and the specific format of the air packet during broadcast and data transmission is determined. The broadcast physical channel protocol data unit broadcasts according to the air packet defined by the private packet format unit to establish a connection. When entering the data transmission stage, the data physical channel protocol data unit will transmit actual data according to the air packet format defined by the private packet format unit.
[0042] As an example, in this application, by using a 2.4G private protocol that optimizes the remote control performance above the link layer, the operation performance is improved, and by being compatible with BLE technology at the physical layer, the receiving end can be compatible with BLE broadcasts and connections.
[0043] As an example, different private protocols can be set according to the physical layer rate specifications of different BLEs. Table 1 shows the support of physical layer rate specifications of different BLEs and private protocols. It can be seen from Table 1 that the data transmission rate of the low-power (LE) 1M physical layer is 1 Mb / s, and the accuracy tolerance is ±1 ppm, that is, one in a million, and the private protocol identifier is M; the data transmission rate of the low-power (LE) 2M physical layer is 2 Mb / s, and the accuracy tolerance is ±1 ppm, that is, one in a million, and the private protocol identifier is O; when using S = 8 encoding, the data transmission rate of the LE encoded physical layer is 125 kb / s, and the accuracy tolerance is ±1 ppm, that is, one in a million, and the private protocol identifier is O; when using S = 2 encoding, the data transmission rate of the LE encoded physical layer is 500 kb / s, and the accuracy tolerance is ±1 ppm, that is, one in a million, and the private protocol identifier is O.
[0044] Table 1 Support of Physical Layer Rate Specifications of Different BLEs and Private Protocols As an example, an air packet is obtained by encapsulating with the communication protocol, and the encapsulated air packet is sent through the physical layer (PHY) for communication. The basic structure of the uncoded air packet encapsulated by the communication protocol is as Figure 3 shown. It can be seen from Figure 3 that the basic structure of the uncoded air packet from the least significant bit (LSB) to the most significant bit (MSB) is: Preamble, Access Address, Protocol Data Unit (PDU), Cyclic Redundancy Check (CRC), Constant Tone Extension. Among them, the Preamble can occupy 1 or 2 octets, which is used to synchronize the clock and frequency of the receiving end to ensure that the receiving device can accurately identify the starting position of the subsequent data; the Access Address can be set to 4 octets, which is used to identify the connection or broadcast to which the packet belongs, helping the receiving device to filter out irrelevant data and only process the packets of the target connection or broadcast; the Protocol Data Unit (PDU) can be set to 2 - 258 octets, which is used to carry the protocol data to be transmitted, such as application layer data, control instructions, etc.; the Cyclic Redundancy Check (CRC) can be set to 3 octets, which is used to detect whether bit errors occur during the transmission of the packet to ensure data integrity; the duration of the Constant Tone Extension can be 16 to 160 μs, and not all packets have it. Bluetooth ranging is assisted by sending a constant tone signal.
[0045] As an example, the basic structure of the encoded air packet encapsulated by the communication protocol is asFigure 4 as shown in. From Figure 4 it can be seen that the basic structure of the encoded air packet from the least significant bit (LSB) to the most significant bit (MSB) is as follows: Preamble, Access Address, Coding Indicator (CI), First Specific Field (TERM1), Protocol Data Unit (PDU), Cyclic Redundancy Check (CRC), Second Specific Field (TERM2). The duration of the Preamble is 80 μs and is used to achieve clock and frequency synchronization at the receiving end; the duration of the Access Address is 256 μs and is used to identify the connection or broadcast to which the packet belongs, ensuring that the receiving device filters out irrelevant data; the duration of the Coding Indicator (CI) is 16 μs and is used to indicate the coding method of the subsequent data. The coding methods include S = 2 coding or S = 8 coding. S = 8 coding improves the error correction ability by adding redundant bits, reduces the transmission rate, and extends the communication distance. S = 2 coding can achieve a balance between rate and distance; the duration of the First Specific Field (TERM1) is 24 μs and is used for delimitation and identification; the Protocol Data Unit (PDU) is set to N bytes and the duration of the PDU for S coding is used to carry the protocol data to be transmitted, such as application layer data, control instructions, etc.; the duration of the Cyclic Redundancy Check (CRC) is and the duration of the Second Specific Field (TERM2) is , and the Cyclic Redundancy Check (CRC) and the Second Specific Field (TERM2) cooperate to verify the data integrity to ensure error - free transmission. Among them, the Preamble, Access Address, Coding Indicator (CI), and First Specific Field (TERM1) are the first Forward Error Correction block (FEC block1) and can adopt S = 8 coding; the Protocol Data Unit (PDU), Cyclic Redundancy Check (CRC), and Second Specific Field (TERM2) are the second Forward Error Correction block (FEC block2) and can adopt S = 2 coding or S = 8 coding.
[0046] As an example, please refer to Figure 5 , it can be set that the protocol data unit of the broadcast physical channel in the communication protocol from the least significant bit (LSB) to the most significant bit (MSB) is as follows: Header, Payload. The Header can be set to 16 bits and contains control and identification information; the Payload can be set to 1 to 255 octets and is used to carry actual broadcast data, such as device name, service information, etc.
[0047] As an example, please refer to Figure 6, the header of the broadcast physical channel protocol data unit, from the least significant bit (LSB) to the most significant bit (MSB), successively includes: the type of the protocol data unit (PDU Type), reserved bit (RFU), channel selection (ChSel), transmission address type (TxAdd), reception address type (RxAdd), length of the payload (Length). Among them, the length of the type of the protocol data unit (PDU Type) can be 4 bits, used to distinguish broadcast types, such as connectable broadcast, non-connectable broadcast; the length of the reserved bit (RFU) can be 1 bit, reserved for future protocol expansion, and new function-related information can be defined as needed; the length of the channel selection (ChSel) can be 1 bit, used to set the channel for broadcast, helping the receiving device to select a suitable channel for broadcast and reception in a multi-channel environment; the length of the transmission address type (TxAdd) can be 1 bit, used to identify whether the transmission end address is a public address or a random address; the length of the reception address type (RxAdd) can be 1 bit, used to identify whether the reception end address is a public address or a random address; the length of the payload (Length) can occupy 8 bits, used to represent the length of the payload, and the receiving device determines the amount of data to be received according to the length of the payload (Length) so as to correctly parse the content of the payload.
[0048] As an example, please refer to Figure 7 , the payload of the broadcast physical channel protocol data unit includes a data area carrying actual broadcast data. The data area can include: a significant part and a non-significant part. Among them, the significant part includes N broadcast structures (AD Structure), and each broadcast structure (AD Structure) includes a length (Length) and data (Data). The length (Length) occupies 1 octet and is used to represent the length L of the data (Data) in this broadcast structure (AD Structure); the data (Data) includes a broadcast type (AD Type) and broadcast data (AD Data). The broadcast type (AD Type) occupies 1 octet and is used to identify the type of the broadcast data (AD Data), such as device name, service (UUID), etc. The broadcast data (AD Data) occupies L - 1 octets and is used to store specific data; the non-significant part is filled with 0b000…000, which has no practical meaning and is used for data alignment.
[0049] Further, set the format of the air packet according to the communication protocol. The air packet includes: status broadcast packet, pairing request packet, pairing response packet, pairing confirmation packet, connection information packet, control signal packet, status response packet.
[0050] Specifically, the access address of the status broadcast packet can be set as: Access Address = 0b10001110_10001001_10111110_11010110(0x8E89BED6) Among them, 0b10001110_10001001_10111110_11010110 is in binary form, and 0x8E89BED6 is in hexadecimal form. The specific content of each byte bit of the status broadcast packet set according to the communication protocol is shown in Table 2.
[0051] Table 2 Format of the status broadcast packet As an example, the access address of the pairing request packet can be set as: Access Address = 0b10001110_10001001_10111110_11010110(0x8E89BED6) is XORed bit by bit with the lower four bytes of the other party's MAC address. The specific content of each byte bit of the pairing request packet set according to the communication protocol is shown in Table 3.
[0052] Table 3 Format of the pairing request packet As an example, the access address of the pairing response packet can be set as: Access Address = 0b10001110_10001001_10111110_11010110(0x8E89BED6) is XORed bit by bit with the lower four bytes of the other party's MAC address. The specific content of each byte bit of the pairing response packet set according to the communication protocol is shown in Table 4.
[0053] Table 4 Format of the pairing response packet As an example, the access address of the pairing confirmation packet can be set as: The Access Address = 0b10001110_10001001_10111110_11010110(0x8E89BED6) is bitwise XORed with the lower four bytes of the other party's MAC address. The specific content of each byte bit of the pairing confirmation packet set according to the communication protocol is shown in Table 5.
[0054] Table 5 Format of the pairing confirmation packet As an example, the access address (Access Address) of the connection information packet can be set to: The Access Address = 0b10001110_10001001_10111110_11010110(0x8E89BED6) is bitwise XORed with the lower four bytes of the other party's MAC address. The specific content of each byte bit of the connection information packet set according to the communication protocol is shown in Table 6.
[0055] Table 6 Format of the connection information packet As an example, the access address (Access Address) of the control signal packet can be set to: The Access Address = 0b10001110_10001001_10111110_11010110(0x8E89BED6). The specific content of each byte bit of the control signal packet set according to the communication protocol is shown in Table 7.
[0056] Table 7 Format of the control signal packet As an example, the access address (Access Address) of the status response packet can be set to: The Access Address = 0b10001110_10001001_10111110_11010110(0x8E89BED6). The specific content of each byte bit of the status response packet set according to the communication protocol is shown in Table 8.
[0057] Table 8 Format of the status response packet In one example, set num_jump = 50, speed_bit = 0x01, the maximum number of packets that can be sent on the same frequency band packet_num_in_with = 1, and the duration of the synchronization window windows_size = 8 (1.25×8 = 10ms).Figure 8 This is the timing description of the transmitter in the default mode. It can be seen that in the default mode, the status broadcast packet is first sent through the broadcast channel to complete the initial synchronization or broadcast. Subsequently, the control signal packets are sent on the communication channel at specific time intervals to complete a data transmission. BLE channels 37, 38, and 39 are used to send the status broadcast packets to achieve the initial synchronization or broadcast notification between devices; BLE channels 0 - 36 are used to transmit the control signal packets and undertake the actual data interaction task after the connection is established. The control signal packets of each control channel constitute a 10 - ms window, and all the control signal packets form a frequency - hopping sequence. Figure 9 This is the timing description of the transmitter in the response mode. It can be seen that BLE channels 37, 38, and 39 are used to send the status broadcast packets, and BLE channels 0 - 36 are used to transmit the control signal packets; in the response mode, the status broadcast packet is first sent through the broadcast channel to complete the initial synchronization or broadcast between devices, and the control signal packets are sent on the communication channel at specific time intervals. Among them, the need_resp_bit of the control signal packets on BLE channels 0 - 35 is set to require the receiver to respond, and then a status response packet is used for response. The control signal packets and the status response packets on BLE channels 0 - 35 together constitute a 10 - ms window, and all the control signal packets form a frequency - hopping sequence. Figure 10 This is the timing description of the transmitter in the fast mode. At this time, the maximum number of packets that can be sent on the same frequency band packet_num_in_with = 10. It can be seen that BLE channels 37, 38, and 39 are used to send the status broadcast packets, and BLE channels 0 - 36 are used to transmit the control signal packets. The synchronization window of the status broadcast packet is 10 ms, and the window of the control signal packet is also 10 ms. There is a 1 - ms time interval for the control signal packets; in the fast mode, the status broadcast packet is first sent through the broadcast channel to complete the initial synchronization, and then the control signal packets are sent on the communication channel according to specific time rules to achieve the communication control and data interaction between devices. Figure 11 This is the timing description of the transmitter in the long - distance mode. At this time, num_jump = 50, speed_bit = 0x08, packet_num_in_win = 1, windows_size = 8 (1.25×8 = 10 ms). It can be seen that BLE channels 37, 38, and 39 are used to send the status broadcast packets, and one of the status broadcast packets is in a specific S8 coding mode. BLE channels 0 - 36 are used to transmit the control signal packets, and all the control signal packets are in the S8 coding mode. In the long - distance mode, the initial synchronization is first established through the broadcast channel. After the synchronization is completed, the encoded control signal packets are transmitted using the communication channel to achieve the communication control and data interaction between devices, ensuring the efficiency and stability of the communication.
[0058] In another example, the built-in passwords of the devices in the original factory equipment are KeyO1 and KeyO2, both of which are 16 bytes. The pairing information is set according to the communication protocol as shown in Table 9.
[0059] Table 9 Pairing Information Furthermore, the content of the actual data part can be sorted out to obtain the key parameter Pcontent = MAC_Send + MAC_Receive + PID_Send + PID_Receive + RN_Send + RN_Receive + Access Address + version_Send + version_Receive + Interaction Channel + Window Duration. Among them, MAC_Send and MAC_Receive represent the MAC addresses of the sending end and the receiving end respectively, which are used to uniquely identify the device identities at both ends of the communication to ensure accurate data sending and receiving; PID_Send and PID_Receive represent the protocol identifiers PID of the sending end and the receiving end respectively, which identify the protocol type or the packet function type followed by the sent and received data packets, enabling both sides to parse the data according to a unified rule; RN_Send and RN_Receive represent the random numbers (RN) of the sending end and the receiving end respectively, which are used for encryption, authentication or anti-replay attack to enhance the communication security and ensure the uniqueness and immutability of each interaction; Access Address represents the access address; version_Send and version_Receive represent the protocol version numbers of the sending end and the receiving end respectively, ensuring that both sides of the communication adopt the same protocol version to avoid interaction errors caused by version differences; the Interaction Channel is used to clarify the channel to ensure data transmission along the specified path; the Window Duration represents the time window length of data transmission, which stipulates the time range during which the device remains active and allows data sending and receiving in one interaction, affecting the communication efficiency and power consumption. Pcontent integrates key elements such as device identification, protocol type, security parameters, connection identification, version information, transmission channel and time control, etc., and the output length is 32 bytes, which completely defines the necessary information required for a communication interaction to ensure accurate, secure and orderly communication.
[0060] Furthermore, the key parameter Pcontent and the built-in password KeyO1 of the device are subjected to a hashing operation through the Secure Hash Algorithm (SHA) to generate a 16-byte communication password KeyPt. The expression is: where KeyO1 is the built-in password of the device and Pcontent is the key parameter. This method of deriving a new password based on the specific content of each communication and the built-in initial key makes different KeyPts generated for different communication contents even if the initial key remains unchanged, enhancing the security of communication encryption or authentication and preventing the password from being easily cracked or reused.
[0061] Furthermore, the key parameter Pcontent and the device built-in password KeyO2 are hashed through the Secure Hash Algorithm (SHA) to generate a 16-byte hash value Ch_select. The expression is as follows: Among them, KeyO1 is the device built-in password and Pcontent is the key parameter. The hash value Ch_select is divided into one element every 4 bits, resulting in 32 elements. The value range of each element is from 0 to 15. Each element is checked. If the element value is less than 5, it is replaced with 5 to ensure that the frequency hopping sequence elements are not less than 5, avoid low-frequency channels, and enhance anti-jamming capabilities and communication stability. The adjusted element sequence constitutes the frequency hopping selection sequence, which is used to guide the device to select an appropriate channel for frequency hopping during communication, improving the reliability and security of communication.
[0062] As an example, the checksum of the air packet content can be set according to the communication protocol. The status broadcast packet has no checksum requirement. For air packets with all original factory devices, the content of the actual data part Content = packet content + freq_jump[index - 1:1] + windows_off[packet_index + windows_offset_index]. Among them, the packet content is the actually transmitted data; freq_jump[index - 1:1] is the frequency hopping sequence, and [index - 1:1] represents the range from the current index value minus index - 1 to the index value 1; windows_off is the time window for the device to wake up periodically and exchange data, which can be set to the default 10 ms; packet_index + windows_offset_index represents the generation of the window offset, which is used to adjust the position of the window in the connection interval. For an air packet with one non-original factory device, the content of the actual data part is set to Content = packet content + channel number.
[0063] Furthermore, the content Content of the actual data part and the device built-in password KeyO1 can be hashed through the Secure Hash Algorithm (SHA) to generate a 32-byte checksum (check_sum). The expression is check_sum = SHA(Content + KeyO1). Among them, KeyO1 can be selected according to the application scenario, and there are 4 methods. The expressions are as follows: O_Byte1 = Byte1 ^ Byte5 ^ Byte9 ^ Byte13 ^ Byte17 ^ Byte21 ^ Byte25 ^ Byte29 O_Byte2 = Byte2 ^ Byte6 ^ Byte10 ^ Byte14 ^ Byte18 ^ Byte22 ^ Byte26 ^ Byte30 O_Byte3 = Byte3 ^ Byte7 ^ Byte11 ^ Byte15 ^ Byte19 ^ Byte23 ^ Byte27 ^ Byte31 O_Byte4 = Byte4 ^ Byte8 ^ Byte12 ^ Byte16 ^ Byte20 ^ Byte24 ^ Byte28 ^ Byte32 In step S2, refer to Figure 1 step S2 therein, the communication device enters the pairing mode. The communication device includes a receiving end and a transmitting end.
[0064] As an example, make the receiving end and the transmitting end enter the standby state respectively; set the connection methods of the receiving end and the transmitting end respectively; make the receiving end and the transmitting end enter the pairing mode respectively.
[0065] As an example, the connection method of the receiving end can be set to any one or more of BLE connection, dual connection, general connection, and 2.4G high-bandwidth connection; the connection method of the transmitting end can be set to 2.4G high-bandwidth connection.
[0066] As an example, the initial states of the receiving end and the transmitting end devices are both off states. After power-on, the devices can enter the standby state or the waiting-for-pairing state through power-on judgment for pairing. In the standby state, the devices are in an idle waiting state. In the waiting-for-pairing state, the devices are waiting to pair with other devices. If the waiting times out, they return to the standby state; otherwise, they enter the pairing process and enter the standby state after pairing. When in the standby state, the devices can initiate a BLE connection or a general connection. A BLE connection means that the device connects through the standard BLE protocol and can return to the standby state after the connection ends, or further enter the dual-connection state. A dual connection means that the device maintains two connections simultaneously and can return to the BLE connection state after completion; a general connection means that the device enables a 2.4G high-bandwidth connection and uses 2.4G high-bandwidth for data transmission and returns to the general connection state after the end, and can also be converted from the general connection to the dual connection.
[0067] In step S3, refer to Figure 1 step S3 therein. After the receiving end enters the pairing mode, it continuously sends a status broadcast packet through the broadcast channel to announce its own status to surrounding devices.
[0068] As an example, after the receiving end enters the pairing mode, the broadcast channel continuously sends a status broadcast packet to announce to surrounding devices that it is in a state where it can be paired. The format of the status broadcast packet is shown in Table 2.
[0069] Specifically, the receiving end enters different states through power-on judgment for pairing, and can enter the standby state or the waiting-for-pairing state. If the waiting time exceeds 1 minute, it will exit the standby state. The pairing process is completed through the BLE broadcast channel for password exchange. The receiving end can set the 2.4G waiting-for-connection state and the BLE waiting-for-BLE-connection state. The connection methods include: general connection, dual connection, and 2.4G high-bandwidth connection, and different connection methods can be selected according to needs. In the case of general connection, the 2.4G communication is established, working in the normal bandwidth mode, and a certain bandwidth is reserved for the BLE connection, continuously broadcasting and waiting for the BLE connection to be established. When the BLE connection is successfully established, the 2.4G high-bandwidth connection is in the waiting-for-connection state, and only general connection is supported at this time; in the case of dual connection, the BLE connection has been established and is working properly, and the 2.4G high-bandwidth connection has also been established and is working in the general bandwidth mode; in the 2.4G high-bandwidth connection state, the BLE function is turned off, focusing on 2.4G communication, and high-bandwidth data transmission or long-distance communication is achieved using the 2.4G frequency band.
[0070] In step S4, please refer to Figure 1 step S4 in, after the transmitting end enters the pairing mode, it conducts a search, receives the status broadcast packet, and continuously sends a pairing request packet to the receiving end through a single channel.
[0071] As an example, the receiving end can set the 2.4G waiting-for-connection state and the BLE waiting-for-BLE-connection state. The connection methods include: general connection, dual connection, and 2.4G high-bandwidth connection. Make the transmitting end enter the standby state. Through power-on judgment for pairing, it enters different states, and can enter the standby state or the waiting-for-pairing state. If the waiting time exceeds 1 minute, it will exit the standby state. The pairing process is completed through the BLE broadcast channel for password exchange. The pairing process is completed through the BLE broadcast channel, and the connection state is set to 2.4G connection, and high-bandwidth data transmission or long-distance communication is achieved using the 2.4G frequency band.
[0072] As an example, after the transmitting end enters the pairing mode, it scans and searches within a certain frequency band, listens for signals sent by the receiving end in the surrounding space. When the transmitting end scans the signal sent by the receiving end, it will parse the signal. If it is confirmed that the parsed signal is a status broadcast packet that meets the requirements (for example, by identifying information such as the receiving end device identifier in the status broadcast packet), the transmitting end will achieve the reception of the status broadcast packet. After receiving the status broadcast packet, the transmitting end will select a specific single channel from the communication channels it supports. The selection of the single channel is usually based on factors such as communication protocol regulations and the usage status of the current channel, with the aim of establishing a relatively stable and less-interfered communication link to communicate with the receiving end subsequently. After selecting the single channel, the transmitting end continuously sends a pairing request packet to the receiving end through the single channel. The pairing request packet contains relevant information of the transmitting end itself, such as device identification code, supported communication parameters, etc., for the receiving end to perform subsequent processing and pairing confirmation. The format of the pairing request packet is shown in Table 3.
[0073] In step S5, please refer to Figure 1 step S5 in. After the receiving end receives the pairing request packet, it sends a pairing response packet to the transmitting end through the single channel. After the transmitting end receives the pairing response packet, it sends a first pairing confirmation packet to the receiving end. After the receiving end receives the first pairing confirmation packet, it sends a first connection information packet indicating that the pairing is completed to the user and sends a second pairing confirmation packet to the transmitting end. After the transmitting end receives the second pairing confirmation packet, it sends a second connection information packet indicating that the pairing is completed to the user, thus achieving pairing.
[0074] Specifically, after the receiving end receives the pairing request packet from the transmitting end, it sends a pairing response packet to the transmitting end through the same channel. After the transmitting end receives the pairing response packet, when the receiving end receives the pairing request packet sent by the transmitting end through the single channel, it will parse the information in the request packet, such as confirming whether the device identifier of the transmitting end is legal and whether the communication parameters match. If the information verification passes, the receiving end will send a pairing response packet to the transmitting end on the same channel (single channel) where the pairing request packet is received. The pairing response packet can contain the processing result of this pairing by the receiving end (such as agreeing to pair or refusing to pair for some reasons), as well as some supplementary information of the receiving end itself (such as the communication key currently set by the receiving end). The format of the pairing response packet is shown in Table 4.
[0075] Furthermore, after the transmitter receives the pairing response packet sent by the receiver, it will analyze the content of the pairing response packet. If it is confirmed that the receiver agrees to the pairing and the relevant information is correct, the transmitter sends a first pairing confirmation packet to the receiver. The format of the pairing confirmation packet is shown in Table 5. The pairing confirmation packet is used to inform the receiver that the transmitter has received the pairing response packet and recognizes the content in the pairing response packet to further advance the pairing process. After the receiver receives the first pairing confirmation packet from the transmitter, it will feedback the connection information packet of the pairing completion to the user. The format of the connection information packet is shown in Table 6. On the other hand, the receiver will send a second pairing confirmation packet to the transmitter to confirm that both parties have completed the pairing process and ensure that the pairing status of the devices on both sides is consistent. After receiving the second pairing confirmation packet, the transmitter feeds back the connection information packet of the pairing completion to the user to achieve pairing between the transmitter and the receiver.
[0076] As an example, the pairing information of the communication protocol will not disappear after the second pairing. The information can be saved after the user pairs, or it can be restored to factory settings or deleted. If there is user pairing information, the existing pairing information will be used first. After the user pairs again, the original pairing information of the channel will be overwritten.
[0077] In step S6, refer to Figure 1 In step S6, after the receiving end and the transmitting end complete pairing, the transmitting end sends multiple control signal packets to the receiving end through the communication channel. After the receiving end completes the instructions of the control signal packet, it sends a status response packet to the transmitting end to feedback the operation result and the current status, thereby realizing remote control communication.
[0078] As an example, after the receiving end and the transmitting end are paired, a dedicated communication channel will be established. The transmitting end generates a corresponding control signal packet according to the established communication protocol based on the user's operation. The format of the control signal packet is shown in Table 7. The communication protocol specifies the format, content and meaning of the control signal packet.
[0079] Furthermore, the transmitting end sends the control signal packet to the receiving end through the established communication channel. After receiving the control signal packet sent by the transmitting end, the receiving end will parse the control signal packet according to the communication protocol, extract the control instructions contained in the control signal packet, and drive the corresponding hardware device or execute the corresponding software program according to the parsed control instructions to complete the corresponding operation. After completing the instructions of the control signal packet, the receiving end will collect its own operation results and current status information, and encapsulate this information into a status response packet according to the communication protocol. The format of the status response packet is shown in Table 8. The receiving end sends the status response packet to the transmitting end through the communication channel so that the transmitting end can understand the execution situation of the control instructions by the receiving end. After receiving the status response packet sent by the receiving end, the transmitting end parses it to obtain the operation results and current status information of the receiving end. The transmitting end can feedback the control situation of the receiving end to the user in a certain way (such as indicator light display, sound prompt, etc.), so that the user can know whether their operation is successfully executed and the current status of the receiving end, realizing remote control communication.
[0080] As an example, the receiving end can be a vehicle, and the transmitting end can be a remote controller.
[0081] In the remote control communication method of this application, by constructing a communication protocol, the remote control operation performance can be effectively improved. By being compatible with the BLE technology at the physical layer, it takes into account the requirements of long distance, low latency, anti-interference and wide compatibility. The middle layer uses private packet format units to define the air packet structure, and cooperates with the broadcast and data physical channel protocol data units to realize device discovery and efficient data transmission. Multiple air packets interact orderly according to the communication protocol to ensure fast and accurate pairing; The control signal packet and the status response packet adopt a specific format and verification mechanism to realize low-latency and high-reliability data transmission, and have the ability of anti-interference pseudo-random frequency hopping. By setting parameters such as the frequency hopping sequence, stable communication can be achieved in a long-distance and multi-device environment. In addition, communication passwords and checksums are generated through methods such as hash operations to improve communication security and reduce costs to a certain extent. The method of this application can break through the deficiencies of traditional remote control communication in terms of long distance, low latency and anti-interference ability, ensure data integrity, prevent malicious attacks, and improve product stability.
[0082] It should be understood that although the steps in the flowchart of the accompanying drawings are shown sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same moment, but can be executed at different moments. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0083] In another embodiment, the present application further provides a remote control communication system, the remote control communication system includes: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the remote control communication method described in any one of the above.
[0084] In another embodiment, the present application further provides a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute each step of the communication method provided in the above embodiments.
[0085] The computer-executable instructions for implementing the method of the present application can be written in any combination of one or more programming languages. These computer-executable instructions can be provided to the processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing devices, so that when the computer-executable instructions are executed by the processor or controller, the functions / operations specified in the flowchart and / or block diagram are implemented. The computer-executable instructions can be executed entirely on the machine, partially on the machine, executed partially on the machine as an independent software package and partially on a remote machine, or executed entirely on a remote machine or electronic device.
[0086] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback or tactile feedback); and input from the user can be received in any form, including: acoustic input, voice input, or tactile input.
[0087] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data electronic device), or a computing system including middleware components (e.g., an application electronic device), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0088] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0089] Although this application has been disclosed above by way of embodiments, it is not intended to limit this application. Any person with ordinary knowledge in the technical field to which this application pertains can make some modifications and refinements without departing from the spirit and scope of this application. Therefore, the protection scope of this application shall be subject to that defined by the appended patent application scope.
Claims
1. A remote control communication method, characterized in that: The following steps are involved: Constructing a communication protocol, and setting the format of an air packet according to the communication protocol, wherein the air packet includes: a status broadcast packet, a pairing request packet, a pairing response packet, a pairing confirmation packet, a connection information packet, a control signal packet, and a status response packet; Allowing a communication device to enter a pairing mode, wherein the communication device includes a receiving end and a transmitting end; After the receiver enters pairing mode, it continuously sends status broadcast packets through the broadcast channel to announce its own status to surrounding devices; After the transmitter enters the pairing mode, it searches, receives the status broadcast packet, and continuously sends the pairing request packet to the receiver through a single channel; After receiving the pairing request packet, the receiving end sends a pairing response packet to the transmitting end through the single channel. After receiving the pairing response packet, the transmitting end sends a first pairing confirmation packet to the receiving end. After receiving the first pairing confirmation packet, the receiving end feeds back a first connection information packet of pairing completion to the user and sends a second pairing confirmation packet to the transmitting end. After receiving the second pairing confirmation packet, the transmitting end feeds back a second connection information packet of pairing completion to the user to achieve pairing. After the receiving end and the transmitting end are paired, the transmitting end sends multiple control signal packets to the receiving end through the communication channel. After the receiving end completes the instructions of the control signal packet, it sends a status response packet to the transmitting end to realize remote control communication.
2. The remote control communication method according to claim 1, characterized in that: Construct a communication protocol, and set the format of the air packet according to the communication protocol. The air packet includes: a status broadcast packet, a pairing request packet, a pairing response packet, a pairing confirmation packet, a connection information packet, a control signal packet, and a status response packet, including: Building communication protocols; Set the status broadcast packet format according to the communication protocol; Set the pairing request packet format according to the communication protocol; Set the pairing response packet format according to the communication protocol; Set the pairing confirmation packet format according to the communication protocol; Setting the connection information packet format according to the communication protocol; Setting the control signal packet format according to the communication protocol; Set the status response packet format according to the communication protocol.
3. The remote control communication method according to claim 2, characterized in that: The communication protocol includes: a top layer, a middle layer, and a bottom layer, and the top layer, the middle layer, and the bottom layer are connected in sequence; The top layer includes 2.4G private control protocol and standard BLE protocol; The middle layer includes a private packet format unit, a broadcast physical channel protocol data unit, and a data physical channel protocol data unit, wherein the private packet format unit is connected to the broadcast physical channel protocol data unit, and the data physical channel protocol data unit is connected to the private packet format unit; The bottom layer includes the physical layer.
4. The remote control communication method according to claim 3, characterized in that: The broadcast physical channel protocol data unit includes: a header and a payload, wherein the header is connected to the payload, the header contains control and identification information, and the payload is used to carry actual broadcast data.
5. The remote control communication method according to claim 4, characterized in that: The header includes: the type of protocol data unit, reserved bits, channel selection, sending address type, receiving address type, and the length of the effective load, and the type of protocol data unit, reserved bits, channel selection, sending address type, receiving address type, and the length of the effective load are connected in sequence.
6. The remote control communication method according to claim 1, characterized in that: The communication device is caused to enter a pairing mode, wherein the communication device includes a receiving end and a transmitting end, including: Make the receiving end and the transmitting end enter the standby state respectively; Set the connection mode of the receiving end and the transmitting end respectively; Put the receiver and transmitter into pairing mode respectively.
7. The remote control communication method according to claim 6, characterized in that: The method of respectively setting the connection mode of the receiving end and the transmitting end includes: Set the receiving end connection mode to any one or more of BLE connection, dual connection, general connection, and 2.4G high bandwidth connection; Set the transmitter connection mode to 2.4G high bandwidth connection.
8. The remote control communication method according to claim 1, characterized in that: After pairing is completed, the pairing information will not disappear after the second pairing.
9. A remote control communication system, characterized in that: Used to execute the remote control communication method as described in any one of claims 1 to 8, the remote control communication system comprises: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the remote control communication method as described in any one of claims 1 to 8.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the remote control communication method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Point-to-point multi-channel network building method and system of private protocol
CN112165733A
Processing device supporting BLE standard protocol or private protocol
CN113242204A
Remote control system and remote control method based on Bluetooth broadcast
CN116052405A
Pairing control method and system based on Bluetooth remote controller
CN118781781A
Method and device for bluetooth low power communication
US20170180916A1
