Communication method and system based on dual-mode communication module

By implementing time-division multiplexing and intelligent protocol selection of the Bluetooth standard protocol stack and the custom 2.4G protocol stack on a single Bluetooth chip hardware platform, the problem that a single Bluetooth protocol remote control and a traditional custom 2.4G protocol remote control cannot simultaneously meet the requirements of low-latency control and high-speed data transmission is solved, thus achieving a balance between low-latency control and high-speed data transmission.

CN121568076APending Publication Date: 2026-02-24SHENZHEN KAADAS INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511451266.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-11
Publication Date
2026-02-24

AI Technical Summary

Technical Problem

Existing technologies using single Bluetooth protocol remote controls suffer from high connection latency and high power consumption, and are susceptible to interference from the 2.4GHz frequency band. Traditional custom 2.4G protocol remote controls lack versatility and cannot simultaneously meet the requirements for low-latency control and high-speed data transmission.

Method used

On a single Bluetooth chip hardware platform, through deep customization of firmware and protocol stack, time-division multiplexing of the Bluetooth standard protocol stack and the custom 2.4G protocol stack is achieved. Combined with intelligent protocol selector and dual-mode protocol stack management firmware, time slices are dynamically allocated to achieve simultaneous online operation of both modes, and the optimal protocol is intelligently selected for transmission based on data characteristics.

Benefits of technology

It achieves the simultaneous fulfillment of low-latency control and high-speed data transmission requirements on a single hardware platform, reduces power consumption, avoids 2.4GHz band interference, and improves the versatility and response speed of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121568076A_ABST
    Figure CN121568076A_ABST
Patent Text Reader

Abstract

The invention discloses a communication method and system based on a dual-mode communication module, and the method comprises the steps: an application layer receives a to-be-transmitted data packet, and transmits the to-be-transmitted data packet to an intelligent protocol selector; the intelligent protocol selector performs protocol configuration on the dual-mode protocol stack according to the to-be-transmitted data packet to obtain a protocol configuration result; the dual-mode protocol stack management firmware performs time slice distribution on the dual-mode protocol stack according to the protocol configuration result to obtain a distribution result; and the dual-mode protocol stack transmits the data packet to be transmitted to a target terminal by using the baseband processor and the radio frequency transceiver according to the distribution result. According to the invention, the intelligent protocol selector is arranged to determine the transmission protocol stack of the data packet to be transmitted, and the dual-mode protocol stack is subjected to time slice distribution through the dual-mode protocol stack management firmware, so that the time division multiplexing of the dual-mode protocol stack is realized, and the requirements of low-delay control and high-speed data transmission can be met at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless communication technology, and in particular to a communication method and system based on a dual-mode communication module. Background Technology

[0002] Currently, most remote controls on the market are either single Bluetooth protocol remote controls or traditional custom 2.4G protocol remote controls. Among them, single Bluetooth protocol remote controls have high connection latency and high power consumption, and are susceptible to interference from the 2.4GHz band when transmitting large amounts of data. Traditional custom 2.4G protocol remote controls require a dedicated receiver, lack universality, and cannot support large data transmissions such as audio or video. In other words, the single protocol of existing single Bluetooth protocol remote controls or traditional custom 2.4G protocol remote controls cannot simultaneously meet the requirements of low-latency control and high-speed data transmission.

[0003] Therefore, existing technologies still need to be improved and developed. Summary of the Invention

[0004] The main objective of this invention is to provide a communication method and system based on a dual-mode communication module, which aims to solve the problem that existing single Bluetooth protocol remote controls or traditional custom 2.4G protocol remote controls cannot simultaneously meet the requirements of low-latency control and high-speed data transmission.

[0005] To achieve the above objectives, the present invention provides a communication method based on a dual-mode communication module. This method is applied to a communication system based on a dual-mode communication module. The communication system includes an application layer, an intelligent protocol selector, a dual-mode protocol stack, dual-mode protocol stack management firmware, a baseband processor, and a radio frequency transceiver. The communication method includes: The application layer receives the data packet to be transmitted and sends the data packet to the smart protocol selector; The intelligent protocol selector configures the dual-mode protocol stack according to the data packet to be transmitted, and obtains the protocol configuration result. The dual-mode protocol stack management firmware allocates time slices to the dual-mode protocol stack according to the protocol configuration result, and obtains the allocation result; The dual-mode protocol stack uses the baseband processor and the radio frequency transceiver to transmit the data packet to be transmitted to the target terminal according to the allocation result.

[0006] Optionally, in the communication method based on a dual-mode communication module, the intelligent protocol selector configures the dual-mode protocol stack according to the data packet to be transmitted, and obtains the protocol configuration result, specifically including: When the smart protocol selector receives the data packet to be transmitted, it invokes a preset protocol selection strategy based on the data packet to be transmitted. The intelligent protocol selector configures the dual-mode protocol stack according to the preset protocol selection strategy to obtain the protocol configuration result.

[0007] Optionally, in the communication method based on the dual-mode communication module, the preset protocol selection strategy includes protocol selection based on data type and data length; the dual-mode protocol stack includes a Bluetooth standard protocol stack and a custom 2.4G protocol stack. The intelligent protocol selector configures the dual-mode protocol stack according to the preset protocol selection strategy, and obtains the protocol configuration result, specifically including: The smart protocol selector obtains the data type of the data packet to be transmitted; If the data packet to be transmitted is of audio type or OTA update type, then the Bluetooth standard protocol stack is used for transmission; If not, then obtain the data length of the data packet to be transmitted; If the length of the data packet to be transmitted is greater than a preset length threshold, then the Bluetooth standard protocol stack is used for transmission. If not, then obtain the custom link of the data packet to be transmitted; If the custom link for the data packet to be transmitted is available, then the custom 2.4G protocol stack is used for transmission; If unavailable, the Bluetooth standard protocol stack will be used for transmission.

[0008] Optionally, in the communication method based on the dual-mode communication module, the preset protocol selection strategy further includes selection based on signaling cooperation; The intelligent protocol selector configures the dual-mode protocol stack according to the data packet to be transmitted, and obtains the protocol configuration result, specifically including: The application layer generates audio transmission signaling, encapsulates the audio transmission signaling to obtain encapsulated signaling, and sends the encapsulated signaling to the smart protocol selector. The smart protocol selector determines the custom protocol receiver corresponding to the custom 2.4G protocol stack based on the encapsulation signaling, and the custom protocol receiver sends the encapsulation signaling to the Bluetooth protocol receiver corresponding to the Bluetooth standard protocol stack through the custom 2.4G protocol stack. The Bluetooth protocol receiver establishes a communication connection with the application layer according to the encapsulation signaling, and receives the data packet to be transmitted sent by the application layer; The Bluetooth protocol receiver transmits the data packet to be transmitted through the Bluetooth standard protocol stack.

[0009] Optionally, in the communication method based on a dual-mode communication module, the dual-mode protocol stack management firmware allocates time slices to the dual-mode protocol stack according to the protocol configuration result to obtain the allocation result, specifically including: After the dual-mode protocol stack management firmware receives the protocol configuration result, it obtains the preset communication time of the data packet to be transmitted; The dual-mode protocol stack management firmware divides the preset communication time into multiple time slices, and allocates the multiple time slices to the custom 2.4G protocol stack and the Bluetooth standard protocol stack according to the protocol configuration result.

[0010] Optionally, in the communication method based on a dual-mode communication module, the dual-mode protocol stack management firmware divides the preset communication time into multiple time slices, specifically including: The dual-mode protocol stack management firmware divides the preset communication time into multiple consecutive superframes with configurable lengths. The dual-mode protocol stack management firmware obtains the period corresponding to each superframe, and divides the period corresponding to each superframe into time segments according to the protocol configuration result to obtain multiple time slices.

[0011] Optionally, the communication method based on the dual-mode communication module, wherein the dual-mode protocol stack management firmware divides the preset communication time into multiple time slices, and allocates the multiple time slices to the custom 2.4G protocol stack and the Bluetooth standard protocol stack according to the protocol configuration result, further includes: In each time slice, the dual-mode protocol stack management firmware transfers control of the baseband processor and the radio frequency transceiver to the corresponding custom 2.4G protocol stack or the Bluetooth standard protocol stack.

[0012] Optionally, in the communication method based on the dual-mode communication module, when transmitting the data packet to be transmitted according to the Bluetooth standard protocol stack, frequency band interference of the Bluetooth standard protocol stack is detected. When the frequency band interference exceeds the preset interference threshold, the custom 2.4G protocol stack performs a frequency offset operation on the transmission channel of the Bluetooth standard protocol stack to obtain a non-standard channel. The Bluetooth standard protocol stack transmits the data packet to be transmitted according to the non-standard channel.

[0013] In addition, to achieve the above objectives, the present invention also provides a communication system based on a dual-mode communication module, wherein the communication system based on the dual-mode communication module includes an application layer, an intelligent protocol selector, a dual-mode protocol stack, dual-mode protocol stack management firmware, a baseband processor, and a radio frequency transceiver. The application layer is used to receive data packets to be transmitted and send the data packets to be transmitted to the smart protocol selector; The intelligent protocol selector is used to configure the dual-mode protocol stack according to the data packet to be transmitted, and obtain the protocol configuration result; The dual-mode protocol stack management firmware is used to allocate radio frequency resources and processor time slices to the dual-mode protocol stack according to the protocol configuration results, and obtain the allocation results. The dual-mode protocol stack is used to transmit the data packet to be transmitted to the target terminal using the baseband processor and the radio frequency transceiver according to the allocation result.

[0014] Optionally, in the communication system based on the dual-mode communication module, the dual-mode protocol stack includes a Bluetooth standard protocol stack and a custom 2.4G protocol stack. The Bluetooth standard protocol stack and the custom 2.4G protocol stack are used to concurrently transmit the data packets to be transmitted.

[0015] In this invention, the application layer receives the data packet to be transmitted and sends it to the intelligent protocol selector. The intelligent protocol selector configures the dual-mode protocol stack according to the data packet to be transmitted, obtaining a protocol configuration result. The dual-mode protocol stack management firmware allocates time slices to the dual-mode protocol stack according to the protocol configuration result, obtaining an allocation result. The dual-mode protocol stack uses the baseband processor and the radio frequency transceiver to transmit the data packet to the target terminal according to the allocation result. This invention achieves time-division multiplexing of the dual-mode protocol stack by setting an intelligent protocol selector to determine the transmission protocol stack of the data packet to be transmitted and by allocating time slices to the dual-mode protocol stack through the dual-mode protocol stack management firmware, thereby simultaneously meeting the requirements of low-latency control and high-speed data transmission. Attached Figure Description

[0016] Figure 1 This is a flowchart of a preferred embodiment of the communication method based on a dual-mode communication module of the present invention; Figure 2 This is a schematic diagram of the overall architecture of a dual-mode communication system, which is a preferred embodiment of the communication method based on a dual-mode communication module of the present invention. Figure 3 This is a schematic diagram of the automatic protocol selection process of a preferred embodiment of the communication method based on a dual-mode communication module of the present invention; Figure 4This is a schematic diagram of the signaling cooperation working mode of a preferred embodiment of the communication method based on a dual-mode communication module of the present invention; Figure 5 This is a layered timing diagram of a preferred embodiment of the communication method based on a dual-mode communication module of the present invention; Detailed Implementation To make the objectives, technical solutions, and advantages of this invention clearer and more explicit, 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 of the invention and are not intended to limit the invention.

[0017] Currently, most remote controls on the market are either single Bluetooth protocol remote controls or traditional custom 2.4G protocol remote controls. Among them, single Bluetooth protocol remote controls have high connection latency and high power consumption, and are susceptible to interference from the 2.4GHz band when transmitting large amounts of data. Traditional custom 2.4G protocol remote controls require a dedicated receiver, lack universality, and cannot support large data transmissions such as audio or video. In other words, the single protocol of existing single Bluetooth protocol remote controls or traditional custom 2.4G protocol remote controls cannot simultaneously meet the requirements of low-latency control and high-speed data transmission.

[0018] The following is an introduction to the Bluetooth standard protocol and the custom 2.4G protocol: Bluetooth standard protocols (such as Bluetooth BR / EDR / BLE) have broad versatility and interoperability, support large data packet transmission (such as audio streaming, file transfer, OTA upgrades (OTA stands for Over-the-Air Technology), etc.), and have a mature ecosystem. However, their protocol stack is relatively complex, the connection establishment process may be long, the power consumption is relatively high, and they are susceptible to interference in the crowded 2.4GHz band.

[0019] Custom 2.4G protocols are typically designed to be simple, enabling fast connections and extremely low power consumption. They can be optimized for specific scenarios by simplifying data packet structures, employing frequency offset technology (slightly shifting the center frequency to avoid interference channels), and reducing transmission rates (in exchange for longer communication distances and stronger anti-interference capabilities). However, their drawbacks include poor versatility; they are usually only suitable for communication between specific devices and struggle to support large data transfer volumes. Compared to the standard Bluetooth protocol, custom 2.4G protocols can define formats according to product requirements, much like serial port protocols. The standard Bluetooth protocol, in its pursuit of universality and standardization, has relatively complex protocol layers, while custom protocols, without considering universality, can be made very simple, simply by including the data to be communicated.

[0020] Currently, there are some chips or modules on the market that support multiple wireless protocols (such as Bluetooth + Zigbee, Bluetooth + proprietary protocols), but these solutions typically have the following problems: 1. Physical coexistence: Multiple independent RF front-ends and protocol stacks, avoiding conflicts through time division or frequency division, resulting in high cost, large size, and high power consumption. 2. Simple switching: When a device is working in one mode, the other mode is in a switched-off or sleep state, failing to achieve true "simultaneous online" and rapid complementarity. 3. Poor application layer coordination: Lack of mechanisms for efficient coordination and intelligent data flow routing at the underlying protocol stack level.

[0021] Therefore, there is an urgent need for a dual-mode communication solution that can deeply integrate the advantages of the Bluetooth standard protocol and the custom 2.4G protocol, and achieve efficient underlying collaboration, intelligent switching and mutual complementarity on a single hardware platform, in order to meet the needs of a wider range of more complex Internet of Things and consumer electronics applications.

[0022] In summary, the shortcomings of existing technologies include: 1. For single Bluetooth protocol remote controls: high connection latency (requires pairing), high power consumption, and susceptibility to 2.4GHz band interference during large data transmission; 2. For traditional custom 2.4G protocol remote controls: require a dedicated receiver, lack universality, and cannot support large data transmission such as audio / video; 3. A single protocol cannot simultaneously meet the requirements of low-latency control and high-speed data transmission.

[0023] 2. The same device can dynamically switch between general-purpose and ultra-low-power modes; avoid interference in the 2.4GHz band through protocol complementarity; and balance microsecond-level response and megabit-level bandwidth transmission.

[0024] To address the aforementioned issues, this invention provides an innovative dual-mode communication system, module, and method. The core of this system lies in achieving time-division multiplexing of the Bluetooth standard protocol stack and a custom 2.4G protocol stack at the underlying layer through deep customization of firmware and protocol stack on a single Bluetooth chip hardware platform. This presents dual-mode simultaneous online operation to upper-layer applications and can intelligently select the optimal protocol for transmission based on data characteristics (such as size, type, and real-time requirements) or preset strategies. Furthermore, it can even utilize the custom protocol as a signaling channel to guide the Bluetooth protocol for large-scale data transmission.

[0025] The preferred embodiment of the communication method based on a dual-mode communication module of the present invention, such as... Figure 1 and Figure 2 As shown, the communication method based on the dual-mode communication module is applied to a communication system based on the dual-mode communication module. The communication system based on the dual-mode communication module includes an application layer, an intelligent protocol selector, a dual-mode protocol stack, dual-mode protocol stack management firmware, a baseband processor, and a radio frequency transceiver. The communication method based on the dual-mode communication module includes the following steps: Step S10: The application layer receives the data packet to be transmitted and sends the data packet to be transmitted to the smart protocol selector.

[0026] This invention relates to the field of wireless communication technology, specifically to a wireless communication module, system, and method operating in the 2.4GHz ISM band, and particularly to a dual-mode communication scheme that can simultaneously support Bluetooth standard protocols (such as BLE / BR / EDR) and custom 2.4G protocols (hereinafter referred to as "custom protocols"), and implement time-division multiplexing, intelligent switching, and collaborative operation at the underlying level.

[0027] The principle of time-division multiplexing is to divide the entire transmission time into non-overlapping time intervals, also known as time slots. Time-division multiplexing allocates these time slots to each signal source, and each time slot can only be occupied by one signal. Time-division multiplexing achieves the transmission of multiple signals on a single circuit by interleaving the transmission of a portion of each signal in time. Only one signal exists at any given brief moment on the circuit. Time-division multiplexing is suitable for the transmission of digital signals. Because digital signals are finite discrete values, time-division multiplexing technology is widely used in digital communication systems, including computer networks.

[0028] Specifically, such as Figure 2 The diagram shows the overall architecture of a communication system supporting dual-mode intelligent switching between the Bluetooth standard protocol and a custom 2.4G protocol, as described in this invention. The system includes: a communication module based on a single Bluetooth chip supporting the 2.4GHz band. This Bluetooth chip comprises: 1. a radio frequency transceiver (RF transceiver), where "RF" refers to high-frequency electromagnetic waves suitable for long-distance propagation in the air (frequency range from hundreds of MHz to tens of GHz). The RF transceiver acts as a "bridge" connecting the digital world and the analog electromagnetic wave world. Its functions include frequency conversion and amplification. 2. a baseband processor, where "baseband" refers to raw, unmodulated low-frequency signals, typically ranging from near 0Hz to tens of MHz. The baseband processor is the "brain" that processes these core digital signals. Its functions include digital signal processing, encoding and decoding, modulation and demodulation, and protocol stack control; 3. a memory; and 4. dual-mode protocol stack management firmware running on it.

[0029] Step S20: The intelligent protocol selector configures the dual-mode protocol stack according to the data packet to be transmitted, and obtains the protocol configuration result.

[0030] The communication system of this invention also includes an intelligent protocol selector: integrated into the dual-mode protocol stack management firmware or application layer interface, configured with a protocol selection strategy (i.e., the preset protocol selection strategy in this invention), such as... Figure 3The diagram shows a flowchart of the automatic protocol selection process. The protocol selection strategy includes at least the following: 1. Automatic selection based on data size: When the size of the data packet to be transmitted is less than or equal to a preset threshold (which is less than the minimum Bluetooth payload or optimized according to a custom protocol), the custom 2.4G protocol stack module is automatically selected for transmission; when the data packet size is greater than the threshold, the Bluetooth standard protocol stack module is automatically selected for transmission. 2. Routing based on data type: Specific types of data (such as low-power status notifications and simple control commands) can be fixedly routed to the custom protocol; specific types of data (such as audio streams and large files) can be fixedly routed to the Bluetooth protocol.

[0031] Furthermore, the present invention can also combine automatic selection based on data size with routing based on data type, thereby determining the data type, data length, and availability of a custom link of the data packet to be transmitted to decide whether to select the Bluetooth standard protocol stack or a custom 2.4G protocol stack.

[0032] 3. Signaling-based cooperation selection: Allows the use of custom 2.4G protocol stack modules to transmit signaling information (such as connection requests, transmission control commands, wake-up instructions, and channel quality indicators), while using standard Bluetooth protocol stack modules to transmit actual payload data (such as audio data packets and OTA firmware blocks). The custom protocol's signaling can efficiently establish, maintain, or control the Bluetooth data channel, such as... Figure 4 The diagram shown is a schematic of the signaling cooperation working mode.

[0033] Specifically, when the smart protocol selector receives the data packet to be transmitted, it invokes a preset protocol selection strategy based on the data packet to be transmitted; the preset protocol selection strategy includes protocol selection based on data type and data length; the dual-mode protocol stack includes a Bluetooth standard protocol stack and a custom 2.4G protocol stack.

[0034] The smart protocol selector obtains the data type of the data packet to be transmitted; if the data type of the data packet to be transmitted is audio or OTA update, then the Bluetooth standard protocol stack is used for transmission; otherwise, the data length of the data packet to be transmitted is obtained; if the data length of the data packet to be transmitted is greater than a preset length threshold, then the Bluetooth standard protocol stack is used for transmission; otherwise, the custom link of the data packet to be transmitted is obtained; if the custom link of the data packet to be transmitted is available, then the custom 2.4G protocol stack is used for transmission; if it is not available, then the Bluetooth standard protocol stack is used for transmission.

[0035] like Figure 3As shown, the automatic protocol selection process includes: 1. Starting node: Application layer data transmission request (i.e., data transmission request); 2. First judgment: Check if the data type is audio or OTA update; if yes, use BLE for transmission; if no, proceed to data length detection; 3. Second judgment: Check if the data length is ≤20; if no, use BLE for transmission; if yes, proceed to custom protocol link detection; 4. Third judgment: Check if the custom protocol link is available; if available, use the custom protocol for transmission; if unavailable, use BLE for transmission; if no, directly use BLE for transmission; 5. Ending node: All paths eventually converge at the ending node.

[0036] The key logic for automatic protocol selection is implemented at the interface (API) layer between the protocol stack and the application layer.

[0037] Understandably, automatic protocol selection first requires detecting the data type. If it's audio or an OTA update, the Bluetooth protocol stack send interface is called. Furthermore, a preset "data size threshold" (e.g., 20 bytes) is used. When the API receives a data transmission request from the application layer, it checks the data length (Len). If Len <= the threshold, the custom protocol stack send interface is called. If Len > the threshold, the Bluetooth protocol stack send interface is called.

[0038] In addition, the present invention can also provide a configuration interface that allows applications to set fixed routing rules (regardless of data size, such as specific commands using custom protocols).

[0039] Furthermore, the preset protocol selection strategy also includes selection based on signaling cooperation; the application layer generates audio transmission signaling, encapsulates the audio transmission signaling to obtain encapsulated signaling, and sends the encapsulated signaling to the smart protocol selector; the smart protocol selector determines the custom protocol receiver corresponding to the custom 2.4G protocol stack according to the encapsulated signaling, and the custom protocol receiver sends the encapsulated signaling to the Bluetooth protocol receiver corresponding to the Bluetooth standard protocol stack through the custom 2.4G protocol stack; the Bluetooth protocol receiver establishes a communication connection with the application layer according to the encapsulated signaling and receives the data packet to be transmitted sent by the application layer; the Bluetooth protocol receiver transmits the data packet to be transmitted through the Bluetooth standard protocol stack.

[0040] When the preset protocol selection strategy is based on signaling cooperation, the specific processing is as follows: 1. The application layer encapsulates control signaling (such as "start audio transmission", "request OTA upgrade", or "next data block offset") into small packets (i.e., according to the protocol format, such as the preamble, address, short payload <20 bytes, and CRC mentioned above) and sends them through the custom protocol API. 2. Custom protocol receiver: parses the signaling and triggers corresponding actions (such as waking up the Bluetooth module, establishing a Bluetooth audio connection, and notifying the application layer to prepare to receive Bluetooth data). 3. Bluetooth protocol: upon receiving the signaling or application layer instruction, it begins transmitting (according to the standard Bluetooth protocol) the actual audio data stream or OTA file block.

[0041] Step S30: The dual-mode protocol stack management firmware allocates time slices to the dual-mode protocol stack according to the protocol configuration result, and obtains the allocation result.

[0042] like Figure 5 As shown, the present invention also includes a low-level time-division multiplexing mechanism: the dual-mode protocol stack management firmware implements time slice scheduling at the baseband / link layer or lower, and dynamically allocates radio frequency resources and processor time slices for the Bluetooth standard protocol stack module and the custom 2.4G protocol stack module.

[0043] This mechanism ensures that: 1. The two protocol stacks access shared RF front-end and baseband resources alternately and orderly at the physical or link layer. 2. From the application layer perspective, the two protocols are concurrently available (i.e., the device is "simultaneously" in a connected or connectable state for both protocols). 3. The switching time slices are fast enough to meet the real-time requirements of each protocol (such as BLE connection intervals and low-latency response of custom protocols).

[0044] Specifically, after the dual-mode protocol stack management firmware receives the protocol configuration result, it obtains the preset communication time of the data packet to be transmitted; the dual-mode protocol stack management firmware divides the preset communication time into multiple continuous and configurable superframes; the dual-mode protocol stack management firmware obtains the period corresponding to each superframe, and divides the period corresponding to each superframe into time segments according to the protocol configuration result to obtain multiple time slices, and allocates the multiple time slices to the custom 2.4G protocol stack and the Bluetooth standard protocol stack according to the protocol configuration result.

[0045] like Figure 5 As shown, the dual-mode protocol stack management firmware maintains a high-precision timer to divide communication time into continuous, configurable-length superframes. Within each superframe, time slots are dynamically or statically allocated (time-based allocation, time-slice rotation, and time-based CPU resource partitioning) to the Bluetooth protocol stack and the custom protocol stack.

[0046] During the time slice allocated to a specific protocol stack, the dual-mode protocol stack management firmware completely relinquishes radio frequency control and baseband processing resources to that protocol stack. During handover (when the underlying protocol switches at the end of the time slice), the dual-mode protocol stack management firmware is responsible for saving and restoring the protocol stack context to ensure seamless handover, with handover overhead optimized to the microsecond level.

[0047] The dual-mode protocol stack management firmware is configured as follows: 1. The superframe period is preferably set to 1.55ms; 2. Bluetooth connection time slots are dynamically expanded (changing with data transmission requirements); 3. The "listen / send" state in the fixed time slot of the custom protocol is enabled.

[0048] Furthermore, in each time slice, the dual-mode protocol stack management firmware transfers control of the baseband processor and the radio frequency transceiver to the corresponding custom 2.4G protocol stack or the Bluetooth standard protocol stack.

[0049] Furthermore, when transmitting the data packet to be transmitted according to the Bluetooth standard protocol stack, frequency band interference of the Bluetooth standard protocol stack is detected; when the frequency band interference exceeds a preset interference threshold, the custom 2.4G protocol stack performs a frequency offset operation on the transmission channel of the Bluetooth standard protocol stack to obtain a non-standard channel; the Bluetooth standard protocol stack transmits the data packet to be transmitted according to the non-standard channel.

[0050] Step S40: The dual-mode protocol stack uses the baseband processor and the radio frequency transceiver to transmit the data packet to be transmitted to the target terminal according to the allocation result.

[0051] This invention employs a dual-mode protocol stack, which manages firmware management and scheduling, and includes: Bluetooth standard protocol stack module: used to implement at least one Bluetooth standard protocol (such as BLE, BR / EDR), supporting general device discovery, pairing, connection and reliable transmission of large data packets (greater than the maximum packet limit of a custom protocol).

[0052] A custom 2.4G protocol stack module is used to implement an optimized proprietary wireless protocol. Its features include: 1. Simplified protocol design, resulting in significantly faster connection establishment than the standard Bluetooth protocol; a minimalist frame structure (e.g., only a preamble, address, short payload <20 bytes, and CRC); 2. Support for efficient transmission of small data packets (far smaller than the minimum payload or typical packet size of the standard Bluetooth protocol); 3. Support for frequency offset operation (if a large number of 2.4G signals are detected in the environment, the frequency is set to a band other than the standard 2.4G), and the ability to select non-standard Bluetooth channels to avoid congested 2.4GHz band interference; implementation of a frequency offset algorithm (the 2.4G band is universal, used by Bluetooth and Wi-Fi, ranging from 2.400GHz to 2.4835GHz). In the working environment, there are many 2.4G signals, and the interference in this frequency band will be very large. However, custom protocols can perform frequency offset processing, such as setting it to 2.38GHz, which can avoid the interference of standard 2.4G. Based on the environmental scan, non-standard channels with the least interference (such as Channel 0, or frequencies between standard channels) can be selected.

[0053] The specific process of the off-frequency anti-interference algorithm is as follows: 1. Scan the 2.4GHz frequency band (2402-2480MHz) to detect the Wi-Fi / Bluetooth channel energy; 2. Dynamically select non-standard frequency points (such as 2400.5MHz, 2479.5MHz); 3. Support frequency hopping mode: switch between the three off-frequency points in a pseudo-random sequence.

[0054] The custom 2.4G protocol stack also supports a low-rate mode, which can achieve longer communication distances and stronger link budgets by reducing the modulation rate; it enables configurable transmission rates (such as 1Mbps, 500Kbps, 250Kbps, 125Kbps), with the low rate mode used for long-distance modes. The low-rate mode includes: 1. Switchable modulation scheme: such as switching from GFSK@250Kbps (default) to GFSK@125Kbps (long-distance mode); 2. Improved receiver sensitivity: switching from -96dBm@1Mbps to -103dBm@125Kbps (actual measured data).

[0055] The custom 2.4G protocol stack also includes power optimization design, with power consumption lower than the Bluetooth standard protocol when in standby and transmitting small packets.

[0056] The custom 2.4G protocol stack also includes a fast connection mechanism: 1. Device pre-paired symmetrical key (AES-128); 2. The connection establishment process only requires 2 handshakes (a total of 3 data packets, with a total time of <5ms).

[0057] This invention establishes a complementary working mode of Bluetooth standard protocol stack and custom 2.4G protocol stack, including: 1. Utilizing the fast connection, low power consumption, anti-interference (frequency offset), and long-range (low data rate) characteristics of the custom protocol to handle tasks that are sensitive to latency, have small data volumes, and require long-range or low-power connection maintenance (such as remote control button presses, sensor status reporting, and device wake-up). 2. Utilizing the universality, high data transmission capability, and mature ecosystem of the Bluetooth protocol to handle tasks requiring high bandwidth and high compatibility (such as audio playback, mobile app interaction, and firmware upgrades).

[0058] Through underlying time-sharing multiplexing and intelligent selection or routing, the two achieve complementary coverage of scenarios and break through performance bottlenecks.

[0059] In a specific embodiment, taking a smart voice lock as an example (which also functions as a voice playback and input device): 1. For controlling the door lock, door sensor, doorbell, and remote control: If a small data packet (state) is detected, a custom protocol is automatically selected, achieving ultra-fast response (<5ms) and ultra-low power consumption. 2. For voice transmission: If a large data packet (audio stream) is detected, the Bluetooth protocol is automatically selected to enable intercom between the visitor outside the door using the door lock and the homeowner at home using their mobile phone or speaker. 3. For OTA upgrades: The mobile phone sends an upgrade command via Bluetooth (the upgrade command is small data, but uses the Bluetooth protocol for universality. This is because the mobile phone only has the standard Bluetooth protocol, and although the upgrade command is small data, it cannot be required to use a custom protocol). After receiving the command, the remote control sends a "ready to receive data" signal via the custom protocol. Then, the mobile phone begins transmitting a large-capacity firmware data packet via Bluetooth. 4. For standby mode: It mainly relies on the low-power listening mode of the custom protocol, with extremely low power consumption, while maintaining a "connectable" state. When the mobile phone needs to connect, it can be woken up via Bluetooth broadcast or custom protocol signaling.

[0060] Technical effects of the invention: 1. Wide range of scenarios: A single module can meet diverse needs from extremely low power consumption and small data (remote control, sensing) to high-speed big data (audio, OTA) without switching hardware or sacrificing performance.

[0061] 2. Complementary Performance Optimizations: Speed: A custom protocol enables millisecond-level connections, while Bluetooth handles large data volumes; Power Consumption: Small data interactions and standby primarily rely on the low-power custom protocol, significantly reducing overall system power consumption; Distance / Reliability: The custom protocol's low-rate mode and frequency offset technology effectively enhance long-distance communication capabilities and anti-interference performance; Anti-interference Capability: The custom protocol can flexibly offset frequencies to avoid congested Wi-Fi / Bluetooth channels; Large Data Capability: The Bluetooth protocol ensures the feasibility of large data transmission.

[0062] 3. Seamless intelligent switching: Automatic selection based on data size or type, or guidance of Bluetooth data transmission through custom protocol signaling, so that users are unaware of the process and the experience is smooth.

[0063] 4. Cost and integration advantages: Based on a single Bluetooth chip, compared with multi-chip / multi-RF solutions, it significantly reduces hardware costs, size and power consumption, and improves integration.

[0064] 5. Enhanced user experience: The combination of quick-response small operations (custom protocol) and smooth large data transmission (Bluetooth protocol) provides a better overall experience.

[0065] Furthermore, such as Figure 2 As shown, based on the above-mentioned communication method based on a dual-mode communication module, the present invention also provides a communication system based on a dual-mode communication module, wherein the communication system based on a dual-mode communication module includes an application layer, an intelligent protocol selector, a dual-mode protocol stack, dual-mode protocol stack management firmware, a baseband processor, and a radio frequency transceiver; The application layer is used to receive data packets to be transmitted and send the data packets to be transmitted to the smart protocol selector; The intelligent protocol selector is used to configure the dual-mode protocol stack according to the data packet to be transmitted, and obtain the protocol configuration result; The dual-mode protocol stack management firmware is used to allocate radio frequency resources and processor time slices to the dual-mode protocol stack according to the protocol configuration results, and obtain the allocation results. The dual-mode protocol stack is used to transmit the data packet to be transmitted to the target terminal using the baseband processor and the radio frequency transceiver according to the allocation result.

[0066] The dual-mode protocol stack includes a Bluetooth standard protocol stack and a custom 2.4G protocol stack; the Bluetooth standard protocol stack and the custom 2.4G protocol stack are used to concurrently transmit the data packets to be transmitted.

[0067] In summary, this invention provides a communication method and system based on a dual-mode communication module. The method includes: the application layer receiving a data packet to be transmitted and sending the data packet to be transmitted to the intelligent protocol selector; the intelligent protocol selector configuring the dual-mode protocol stack according to the data packet to be transmitted, obtaining a protocol configuration result; the dual-mode protocol stack management firmware allocating time slices to the dual-mode protocol stack according to the protocol configuration result, obtaining an allocation result; and the dual-mode protocol stack using the baseband processor and the radio frequency transceiver to transmit the data packet to be transmitted to the target terminal according to the allocation result. This invention achieves time-division multiplexing of the dual-mode protocol stack by setting an intelligent protocol selector to determine the transmission protocol stack of the data packet to be transmitted and by allocating time slices to the dual-mode protocol stack through the dual-mode protocol stack management firmware, thereby simultaneously meeting the requirements of low-latency control and high-speed data transmission of the data packet to be transmitted.

[0068] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.

[0069] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.

Claims

1. A communication method based on a dual-mode communication module, characterized in that, The communication method based on the dual-mode communication module is applied to a communication system based on the dual-mode communication module. The communication system based on the dual-mode communication module includes an application layer, an intelligent protocol selector, a dual-mode protocol stack, dual-mode protocol stack management firmware, a baseband processor, and a radio frequency transceiver. The communication method based on the dual-mode communication module includes: The application layer receives the data packet to be transmitted and sends the data packet to the smart protocol selector; The intelligent protocol selector configures the dual-mode protocol stack according to the data packet to be transmitted, and obtains the protocol configuration result. The dual-mode protocol stack management firmware allocates time slices to the dual-mode protocol stack according to the protocol configuration result, and obtains the allocation result; The dual-mode protocol stack uses the baseband processor and the radio frequency transceiver to transmit the data packet to be transmitted to the target terminal according to the allocation result.

2. The communication method based on a dual-mode communication module according to claim 1, characterized in that, The intelligent protocol selector configures the dual-mode protocol stack according to the data packet to be transmitted, and obtains the protocol configuration result, specifically including: When the smart protocol selector receives the data packet to be transmitted, it invokes a preset protocol selection strategy based on the data packet to be transmitted. The intelligent protocol selector configures the dual-mode protocol stack according to the preset protocol selection strategy to obtain the protocol configuration result.

3. The communication method based on a dual-mode communication module according to claim 2, characterized in that, The preset protocol selection strategy includes protocol selection based on data type and data length; the dual-mode protocol stack includes a Bluetooth standard protocol stack and a custom 2.4G protocol stack. The intelligent protocol selector configures the dual-mode protocol stack according to the preset protocol selection strategy, and obtains the protocol configuration result, specifically including: The smart protocol selector obtains the data type of the data packet to be transmitted; If the data packet to be transmitted is of audio type or OTA update type, then the Bluetooth standard protocol stack is used for transmission; If not, then obtain the data length of the data packet to be transmitted; If the length of the data packet to be transmitted is greater than a preset length threshold, then the Bluetooth standard protocol stack is used for transmission. If not, then obtain the custom link of the data packet to be transmitted; If the custom link for the data packet to be transmitted is available, then the custom 2.4G protocol stack is used for transmission; If unavailable, the Bluetooth standard protocol stack will be used for transmission.

4. The communication method based on a dual-mode communication module according to claim 3, characterized in that, The preset protocol selection strategy also includes selection based on signaling cooperation; The intelligent protocol selector configures the dual-mode protocol stack according to the data packet to be transmitted, and obtains the protocol configuration result, specifically including: The application layer generates audio transmission signaling, encapsulates the audio transmission signaling to obtain encapsulated signaling, and sends the encapsulated signaling to the smart protocol selector. The smart protocol selector determines the custom protocol receiver corresponding to the custom 2.4G protocol stack based on the encapsulation signaling, and the custom protocol receiver sends the encapsulation signaling to the Bluetooth protocol receiver corresponding to the Bluetooth standard protocol stack through the custom 2.4G protocol stack. The Bluetooth protocol receiver establishes a communication connection with the application layer according to the encapsulation signaling, and receives the data packet to be transmitted sent by the application layer; The Bluetooth protocol receiver transmits the data packet to be transmitted through the Bluetooth standard protocol stack.

5. The communication method based on a dual-mode communication module according to claim 3, characterized in that, The dual-mode protocol stack management firmware allocates time slices to the dual-mode protocol stack according to the protocol configuration result, and obtains the allocation result, specifically including: After the dual-mode protocol stack management firmware receives the protocol configuration result, it obtains the preset communication time of the data packet to be transmitted; The dual-mode protocol stack management firmware divides the preset communication time into multiple time slices, and allocates the multiple time slices to the custom 2.4G protocol stack and the Bluetooth standard protocol stack according to the protocol configuration result.

6. The communication method based on a dual-mode communication module according to claim 5, characterized in that, The dual-mode protocol stack management firmware divides the preset communication time into multiple time slices, specifically including: The dual-mode protocol stack management firmware divides the preset communication time into multiple consecutive superframes with configurable lengths. The dual-mode protocol stack management firmware obtains the period corresponding to each superframe, and divides the period corresponding to each superframe into time segments according to the protocol configuration result to obtain multiple time slices.

7. The communication method based on a dual-mode communication module according to claim 5, characterized in that, The dual-mode protocol stack management firmware divides the preset communication time into multiple time slices, and allocates these time slices to the custom 2.4G protocol stack and the Bluetooth standard protocol stack according to the protocol configuration results. It then further includes: In each time slice, the dual-mode protocol stack management firmware transfers control of the baseband processor and the radio frequency transceiver to the corresponding custom 2.4G protocol stack or the Bluetooth standard protocol stack.

8. The communication method based on a dual-mode communication module according to claim 3, characterized in that, When transmitting the data packet to be transmitted according to the Bluetooth standard protocol stack, frequency band interference of the Bluetooth standard protocol stack is detected; When the frequency band interference exceeds the preset interference threshold, the custom 2.4G protocol stack performs a frequency offset operation on the transmission channel of the Bluetooth standard protocol stack to obtain a non-standard channel. The Bluetooth standard protocol stack transmits the data packet to be transmitted according to the non-standard channel.

9. A communication system based on a dual-mode communication module, characterized in that, The communication system based on the dual-mode communication module includes an application layer, an intelligent protocol selector, a dual-mode protocol stack, dual-mode protocol stack management firmware, a baseband processor, and a radio frequency transceiver. The application layer is used to receive data packets to be transmitted and send the data packets to be transmitted to the smart protocol selector; The intelligent protocol selector is used to configure the dual-mode protocol stack according to the data packet to be transmitted, and obtain the protocol configuration result; The dual-mode protocol stack management firmware is used to allocate radio frequency resources and processor time slices to the dual-mode protocol stack according to the protocol configuration results, and obtain the allocation results. The dual-mode protocol stack is used to transmit the data packet to be transmitted to the target terminal using the baseband processor and the radio frequency transceiver according to the allocation result.

10. A communication system based on a dual-mode communication module as described in claim 9, characterized in that, The dual-mode protocol stack includes a Bluetooth standard protocol stack and a custom 2.4G protocol stack; The Bluetooth standard protocol stack and the custom 2.4G protocol stack are used to concurrently transmit the data packets to be transmitted.