Enhanced Bluetooth and Wi-Fi collaborative communication method, system and device
By obtaining user equipment information and communication history, combining communication environment data, intelligently selecting and switching Bluetooth and Wi-Fi communication methods, the problem of low efficiency of Bluetooth and Wi-Fi collaborative communication in the existing technology is solved, and more efficient and stable communication experience.
Patent Information
- Application Number
- CN202411426394.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-10-14
AI Technical Summary
The existing Bluetooth and Wi-Fi technologies lack effective collaboration mechanisms in actual use, resulting in waste of resources and reduced communication efficiency.
By obtaining the basic information and communication history of user equipment, combining communication environment data, intelligently selecting and switching Bluetooth and Wi-Fi communication methods, and adjusting communication strategies in real time to optimize communication performance.
It realizes dynamic selection of the most suitable communication method according to the communication environment and user needs, improves the efficiency and stability of data transmission, reduces interrupts and lags caused by network instability and signal interference, and provides a smoother and seamless Communication experience.
Smart Images

Figure CN118945750B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to an enhanced Bluetooth and Wi-Fi collaborative communication method, system and device. Background Art
[0002] With the popularity of smart devices, wireless communication technology plays an increasingly important role in our daily lives. Bluetooth and Wi-Fi (Wireless Fidelity) are two widely used wireless communication technologies, each with its own unique advantages and application scenarios.
[0003] Bluetooth technology is a radio technology that supports short-distance communication between devices. It uses the 2.4GHz ISM (Industrial, Scientific, and Medical bands) frequency band and frequency hopping spread spectrum technology for transmission. It has high security and anti-interference capabilities. Bluetooth technology can achieve convenient, fast, flexible, safe, low-cost, low-power data and voice communication between devices, and is one of the mainstream technologies for realizing wireless personal area networks.
[0004] Wi-Fi technology is a wireless LAN technology based on the IEEE 802.11 (Institute of Electrical and Electronics Engineers) standard, which allows electronic devices to connect to the Internet or communicate with each other through wireless signals. Wi-Fi technology is widely used in homes, commercial places, schools and other environments, providing high-speed data transmission rates and long transmission distances.
[0005] However, these two technologies often operate independently in actual use and lack an effective coordination mechanism, resulting in resource waste and reduced communication efficiency. Summary of the invention
[0006] The purpose of the present invention is to provide an enhanced Bluetooth and Wi-Fi collaborative communication method, system and device, which can intelligently select and switch Bluetooth and Wi-Fi communications according to communication requirements and environmental conditions, and optimize communication performance and user experience.
[0007] To achieve the above object, the present invention adopts the following technical solution:
[0008] In a first aspect, the present invention provides an enhanced Bluetooth and Wi-Fi collaborative communication method, comprising:
[0009] Obtaining basic information and communication history of a user device and determining a first communication strategy; the transmission type of the first communication strategy includes Bluetooth and Wi-Fi;
[0010] Acquire communication environment data, extract key features from the communication environment data, evaluate communication requirements based on the key features and analyze current communication environment conditions, obtain a second communication strategy based on the communication environment conditions and the first communication strategy, and output the second communication strategy;
[0011] Based on the operation of the second communication strategy, communication feedback results are obtained in real time, and the second communication strategy is adjusted based on the real-time communication feedback results to obtain a third communication strategy; communication parameters are continuously adjusted to adapt to the third communication strategy and the third communication strategy is output.
[0012] As a further improvement of the present invention, the acquiring of basic information and communication history of the user equipment and determining the first communication strategy includes:
[0013] Identify user devices connected to the network and record basic information and communication history; basic information includes the user's device hardware specifications, operating system version and network connection history, and communication history includes the user's past communication patterns, frequency and rate;
[0014] Analyze the user's current activity type from the information collected from the user configuration interface and the basic information to obtain communication needs, and determine a first communication strategy based on the current communication needs;
[0015] Alternatively, the first communication strategy is directly determined according to the communication history;
[0016] The first communication strategy is: if the user configures point-to-point type transmission, Bluetooth transmission is preferred; if the user configures broadcast type transmission, Wi-Fi transmission is preferred.
[0017] As a further improvement of the present invention, the acquiring of communication environment data, extracting key features from the communication environment data, evaluating communication requirements based on the key features and analyzing current communication environment conditions include:
[0018] Acquire communication environment data and extract key features from the communication environment data, the key features including the type, strength and number of interfering devices of communication signals;
[0019] If the type of communication signal is Wi-Fi receiving signal, and the strength is less than or equal to the set Wi-Fi signal threshold, and the number of interference devices on the communication channel is greater than or equal to the set interference device threshold, the Wi-Fi blocking value is increased once. When the cumulative mark is greater than the Wi-Fi blocking threshold, it is judged that the Wi-Fi transmission environment monitoring result is poor, and the Wi-Fi blocking value is cleared and recalculated;
[0020] If the Wi-Fi received signal strength is greater than the set Wi-Fi signal threshold, and the number of interfering devices is less than the set interfering device threshold, the Wi-Fi transmission environment is determined to be unobstructed;
[0021] If the type of communication signal is a Bluetooth receiving signal and the strength is less than or equal to the set Bluetooth signal threshold, the Bluetooth blocking value is increased once. When the cumulative mark is greater than the Bluetooth blocking threshold, the Bluetooth transmission environment monitoring result is judged to be poor, and the Bluetooth blocking value is cleared and recalculated;
[0022] If both Wi-Fi and Bluetooth transmission environments are unobstructed, transmission will be performed simultaneously; if the monitoring results of Wi-Fi and Bluetooth transmission environments are both poor, the blocking values of Wi-Fi and Bluetooth will be compared, and the transmission mode with the smaller blocking value will be selected for transmission; and a suitable decision model will be selected based on the analysis results.
[0023] As a further improvement of the present invention, obtaining the second communication strategy according to the communication environment condition and the first communication strategy includes:
[0024] If the current communication environment conditions determine that the first communication strategy transmission environment monitoring result meets the requirements, continue to use the first communication strategy as the second communication strategy;
[0025] If the current communication environment condition determines that the transmission environment monitoring result of the first communication strategy does not meet the requirement, the transmission type in the first communication strategy is adjusted as the second communication strategy.
[0026] As a further improvement of the present invention, after outputting the second communication strategy, the method further includes:
[0027] When voice data is transmitted, both the Wi-Fi UDP or TCP transmission channel and the Bluetooth HFP transmission channel are enabled. If the TCP protocol is enabled, a connection is established before data transmission, but the Wi-Fi UDP protocol does not establish a connection.
[0028] For each frame of voice data, the Bluetooth and Wi-Fi channels send data simultaneously. Bluetooth dynamically selects a different channel from Wi-Fi through AFH, and finally determines the communication mode based on the communication environment conditions:
[0029] If the Wi-Fi transmission environment monitoring result is smooth and the Bluetooth transmission environment monitoring result is poor, use UDP or TCP channel transmission;
[0030] If the Bluetooth transmission environment is judged to be smooth and the monitoring result of the Wi-Fi transmission environment is poor, the data frame is compressed using SBC and then transmitted through the Bluetooth HFP channel;
[0031] If the monitoring result of the Wi-Fi transmission environment is poor and the monitoring result of the Bluetooth transmission environment is poor, the better channel is selected for transmission;
[0032] If the Wi-Fi transmission environment is unobstructed and the Bluetooth transmission environment is unobstructed, two channels are selected for transmission at the same time;
[0033] For data frames received through the Bluetooth HFP transmission channel, ISBC is used to decompress and restore them and pass them to the voice application service; for data frames received through the Wi-Fi channel, they are directly passed to the voice application service; for data frames received through both the Bluetooth HFP and Wi-Fi transmission channels, the data frames decompressed through the Bluetooth HFP transmission channel are first synchronized with the data frames received through the Wi-Fi channel.
[0034] As a further improvement of the present invention, before transmitting through the Bluetooth HFP channel, the other receiving end devices are first informed of their existence through broadcasting, and then other receiving end devices are discovered through scanning, and Bluetooth pairing connection is performed through the user interface; when the connection is established between the communication devices, data transmission is performed through the master-slave mode;
[0035] When transmitting on the Bluetooth HFP channel, the BLE protocol stack needs to be used to encapsulate the application data packet to generate an air data packet that meets the BLE protocol.
[0036] As a further improvement of the present invention, the real-time acquisition of communication feedback results based on the operation status of the second communication strategy includes:
[0037] When the data is successfully received, the receiver sends an ACK signal and informs the sender; if the data is not successfully received, a NACK signal is sent to prompt the sender to retransmit;
[0038] During data transmission, the sending device will internally set a timeout timer for each data packet sent. If it does not receive the ACK or NACK signal from the receiving device within the specified time, it is considered that the data packet is lost, triggering the retransmission mechanism, and the sending device will retransmit the data packet;
[0039] Use CRC to monitor whether data errors occur during transmission or storage; if errors occur, the receiving device will request retransmission; and the current signal strength, data transmission rate and transmission status will be displayed on the user interface, and detailed communication logs will be recorded, including successful and failed transmission records.
[0040] As a further improvement of the present invention, the second communication strategy is adjusted based on the real-time acquisition of communication feedback results to obtain a third communication strategy, and the third communication strategy is specifically:
[0041] Use the method of optimizing channel allocation to detect the number of devices in each frequency band and adjust to the idle communication channel in time;
[0042] Dynamically adjust the transmission rate according to channel conditions and network conditions, monitor the changes in RTT, and observe the packet loss rate. When the RTT fluctuates and the packet loss rate exceeds the congestion threshold, use the congestion control algorithm to adjust the size of the congestion window according to network feedback, and use MIMO technology to improve signal strength and transmission rate;
[0043] The communication parameters are adjusted to adapt to the third communication strategy and the third communication strategy is output, including: monitoring the received signal strength, interference, device density and transmission delay parameters in the communication environment, adjusting the communication parameters to adapt to the selected communication mode and outputting the results.
[0044] In a second aspect, an enhanced Bluetooth and Wi-Fi collaborative communication system includes:
[0045] A first communication strategy determination unit, configured to obtain basic information and communication history of a user device and determine a first communication strategy; the transmission type of the first communication strategy includes Bluetooth and Wi-Fi;
[0046] A second communication strategy determination unit is used to obtain communication environment data, extract key features from the communication environment data, evaluate communication requirements and analyze current communication environment conditions based on the key features, obtain a second communication strategy according to the communication environment conditions and the first communication strategy, and output the second communication strategy;
[0047] The third communication strategy determination unit is used to obtain communication feedback results in real time based on the operation of the second communication strategy, adjust the second communication strategy based on the real-time communication feedback results to obtain a third communication strategy; continuously adjust communication parameters to adapt to the third communication strategy and output the third communication strategy.
[0048] In a third aspect, the present invention provides an enhanced Bluetooth and Wi-Fi collaborative communication device, comprising:
[0049] Communication demand analysis module, used to detect the user's current communication demand in real time;
[0050] An environment monitoring module, used to detect the communication environment;
[0051] A collaborative decision-making module, configured to execute the enhanced Bluetooth and Wi-Fi collaborative communication method and adjust the communication mode based on communication requirements and environmental detection results in combination with communication feedback results;
[0052] Dynamic switching module, used to switch between Wi-Fi and Bluetooth;
[0053] The user configuration interface is used to provide a user-friendly interface for users to input communication preferences and parameters according to personal preferences.
[0054] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0055] The present invention can dynamically select the most suitable communication mode (such as Bluetooth or Wi-Fi) according to the current communication environment and user needs by gradually adjusting the first communication strategy, the second communication strategy and the third communication strategy, thereby ensuring the efficiency and stability of data transmission. Through real-time monitoring and feedback mechanisms, the communication strategy can be adjusted in time to reduce interruptions and freezes caused by network instability or signal interference, thereby improving the communication success rate. The switching of communication modes is completed automatically without manual intervention by users, thereby providing a smoother and seamless communication experience. According to the user's preferences and historical communication behaviors, more personalized communication services are provided, such as giving priority to the user's preferred communication mode or adjusting communication parameters to meet the user's specific needs. The method supports flexible switching of multiple communication modes and protocols, and can adapt to different communication scenarios and needs, such as indoor, outdoor, short-distance or long-distance communication. The method can intelligently adjust communication parameters and device states according to communication needs and environmental conditions to reduce energy consumption and extend device battery life. For example, when the communication demand is low, the transmission rate is automatically reduced or switched to a low-power communication mode. The method can monitor changes in the communication environment in real time, such as signal strength, interference, etc., and adjust the communication strategy in real time according to these changes to adapt to the changing communication environment. Through intelligent interference detection and avoidance mechanisms, the method can maintain a stable communication connection in a complex communication environment and reduce communication interruptions or freezes caused by interference.
[0056] The device of the present invention can optimize communication performance through the collaborative decision-making module: by intelligently selecting and switching communication modes, the communication rate and stability are improved. The user experience is improved, the communication mode is seamlessly switched, communication interruptions are reduced, and user satisfaction is improved. The flexibility is enhanced, and users can customize communication preferences and parameters according to personal needs to improve the adaptability of the system. By integrating Bluetooth and Wi-Fi functions in the same device, the hardware cost and maintenance cost can be significantly reduced, while reducing the complexity of development. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The drawings described herein are for explanation purposes only and are not intended to limit the scope of the present invention in any way. In addition, the shapes and proportional dimensions of the components in the drawings are only for illustration purposes to help understand the present invention, and are not intended to specifically limit the shapes and proportional dimensions of the components of the present invention. In the drawings:
[0058] Figure 1 This is the overall system architecture diagram;
[0059] Figure 2 It is the workflow diagram of the communication demand analysis module;
[0060] Figure 3 This is the algorithm framework diagram of the collaborative decision-making module. DETAILED DESCRIPTION
[0061] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0062] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0063] Terminology explanation:
[0064] ACK is the abbreviation of "Acknowledgment", which means "confirmation" or "recognition". In network communication, ACK mainly refers to the confirmation message, indicating that the receiver has received and correctly received the sender's data packet. It is one of the important mechanisms in the TCP / IP protocol to ensure the reliability of data transmission.
[0065] NACK is the abbreviation of "Negative Acknowledgment", which means "disapproval" or "rejection". In the field of network and computer science, NACK is often used as a feedback signal or response to indicate the disapproval or rejection of a request or instruction. For example, in network communication, when an erroneous data packet is received, a NACK signal may be returned to request the data to be resent.
[0066] CRC (Cyclic Redundancy Check) is a fast algorithm that generates a short fixed-bit check code based on data such as network data packets or computer files. It is mainly used to detect or check errors that may occur after data transmission or storage. CRC uses the principle of division and remainder to realize error detection function, which has the advantages of clear principle and simple implementation.
[0067] RESTful API is an architectural style of application program interface (API) that uses HTTP requests to access or use data. It is based on the Representational State Transfer (REST) principle and allows efficient communication between clients and servers. RESTful API supports HTTP methods such as GET, PUT, POST, and DELETE, which correspond to the read, update, create, and delete operations of resources respectively.
[0068] RTT (Round-Trip Time) is an important performance indicator in computer networks. It represents the total delay from the start of data transmission at the sender to the receipt of confirmation from the receiver (the receiver sends confirmation immediately after receiving the data). RTT is one of the important indicators for measuring network performance.
[0069] MIMO (Multiple-Input Multiple-Output) is a wireless communication technology. It uses multiple antennas to transmit data simultaneously at the transmitter and receiver to improve the reliability and rate of communication. MIMO technology can increase the wireless range and improve performance, and is an indispensable part of modern wireless communication systems.
[0070] UDP (User Datagram Protocol) is a connectionless transport layer protocol. Compared with TCP, UDP has lower overhead and faster transmission speed, but does not provide guarantees for the order, integrity, and reliability of data packets. UDP is suitable for application scenarios that have high real-time requirements and can tolerate a certain amount of data loss.
[0071] TCP (Transmission Control Protocol) is a connection-oriented, reliable, byte-stream-based transport layer communication protocol. TCP ensures the reliability and order of data transmission through mechanisms such as sequence numbers, confirmation responses, and timeout retransmission. It is one of the widely used communication protocols on the Internet.
[0072] SBC (Sub-Band Coding) and ISBC (assumed to be the sub-band compression decoding algorithm corresponding to SBC, ISBC is the inverse process of SBC, that is, the sub-band compression decoding algorithm) are key technologies used in Bluetooth audio transmission.
[0073] HFP: refers to "Hands-Free Profile", which is a profile in Bluetooth technology used to achieve wireless connection between mobile phones and Bluetooth headsets or car hands-free devices.
[0074] PHY: In the field of communications, usually refers to the "Physical Layer", which is the lowest layer in the OSI model and is responsible for the transmission and reception of bit streams.
[0075] BLE: stands for "Bluetooth Low Energy", which is a low-power Bluetooth wireless technology suitable for application scenarios that require long-term operation and low power consumption.
[0076] L2CAP: refers to "Logical Link Control and Adaptation Protocol", which is part of the Bluetooth protocol stack and is responsible for the segmentation, reorganization and transmission of data packets.
[0077] LL: In Bluetooth technology, it may refer to "Link Layer", which is a layer in the Bluetooth protocol stack that handles the physical connection and data transfer between Bluetooth devices.
[0078] HTTPS: refers to "Hypertext Transfer Protocol Secure", which is a secure version of HTTP. It provides data encryption and identity authentication functions by adding an SSL / TLS layer under HTTP.
[0079] AFH: refers to "Adaptive Frequency Hopping". Bluetooth devices dynamically adjust their frequency hopping sequences to avoid interfered channels, thereby ensuring smoother communication.
[0080] PCA: May refer to multiple meanings, such as "Principal Component Analysis", etc. The specific meaning depends on the context.
[0081] The present invention provides an enhanced Bluetooth and Wi-Fi collaborative communication device, the collaborative communication device comprising: a communication demand analysis module for detecting a user's current communication demand in real time;
[0082] An environment monitoring module, used to detect the communication environment;
[0083] A collaborative decision-making module is used to execute an enhanced Bluetooth and Wi-Fi collaborative communication method and adjust the communication mode based on communication requirements and environmental detection results in combination with communication feedback results;
[0084] Dynamic switching module, used to switch between Wi-Fi and Bluetooth;
[0085] The user configuration interface is used to provide a user-friendly interface for users to input communication preferences and parameters according to personal preferences.
[0086] Among them, the user communication device includes a user configuration interface for inputting communication parameters and preferences; a communication demand analysis module and an environment detection module; an internal collaborative decision-making module, a dynamic switching module; a Wi-Fi communication module, a Bluetooth communication module and a network service provider.
[0087] After the system is turned on, the Bluetooth and Wi-Fi modules are turned on at the same time and a connection is established. Then the user can select the communication preference through the configuration interface. The system then detects and analyzes the communication environment and needs through the communication demand analysis module and the environmental monitoring module. The collaborative decision-making module decides whether to use Wi-Fi or Bluetooth, and the communication module is switched through the dynamic switching module. Finally, the communication mode is adjusted in time according to the communication feedback mechanism to improve the system communication quality.
[0088] The functions of each module are as follows:
[0089] Communication demand analysis module: real-time detection of users' current communication needs, including data transmission rate, transmission distance, energy consumption, etc.
[0090] Environmental monitoring module: detects the communication environment, including signal strength, interference, device density, etc.
[0091] Collaborative decision-making module: Based on communication requirements and environmental detection results, intelligently select the optimal communication mode (Bluetooth or Wi-Fi) or achieve collaborative communication between the two.
[0092] Dynamic switching module: realizes seamless switching between Bluetooth and Wi-Fi to ensure the continuity and stability of communication.
[0093] User Configuration Interface: Provides a user-friendly interface that allows users to set communication preferences and parameters based on personal preferences.
[0094] Further explanation: The present invention proposes an enhanced Bluetooth and Wi-Fi collaborative communication system, which intelligently selects and uses Bluetooth or Wi-Fi communication modes to improve communication quality and adapt to different environments and user needs. The system consists of the following:
[0095] User Communication Device: Contains the user configuration interface for entering communication parameters and preferences.
[0096] Communication demand analysis module: real-time detection of user communication needs, such as data transmission rate, transmission distance, energy consumption, etc.
[0097] Environmental monitoring module: detects the communication environment, including signal strength, interference, device density, etc.
[0098] Collaborative decision-making module: Based on communication requirements and environmental monitoring results, intelligently select the optimal communication mode to achieve collaborative communication.
[0099] Dynamic switching module: realizes switching between Bluetooth and Wi-Fi to ensure communication continuity and stability.
[0100] Wi-Fi communication module and Bluetooth communication module: responsible for the actual communication tasks.
[0101] Internet service providers: provide Internet access and other network services.
[0102] The specific workflow is as follows:
[0103] System initialization: Start the system, initialize all modules, including Bluetooth and Wi-Fi modules, and establish connections.
[0104] User Configuration: Users set communication preferences and parameters through the configuration interface.
[0105] Communication demand and environment monitoring: Real-time detection of user communication needs and environmental conditions.
[0106] Collaborative decision-making: Based on the monitoring results, the collaborative decision-making module selects the optimal communication mode to coordinate the solution.
[0107] Dynamic switching: Through the dynamic switching module, seamless switching between Bluetooth and Wi-Fi is achieved.
[0108] Communication feedback and adjustment: According to the communication feedback mechanism, timely adjust the communication mode and optimize the communication quality.
[0109] The key technical points of the present invention are illustrated as follows:
[0110] Communication demand analysis: Predict and adjust communication patterns by monitoring user equipment’s data transmission needs, activity types, etc. in real time.
[0111] Environmental monitoring: Real-time evaluation of signal strength, interference, device density, etc. to provide a basis for decision-making.
[0112] Collaborative decision-making module: Use data processing and feature extraction technology to select the appropriate decision model and choose the optimal communication mode.
[0113] Dynamic switching module: realizes fast and seamless switching between Bluetooth and Wi-Fi to ensure the continuity and stability of communication.
[0114] User Configuration Interface: Provides a friendly user interface that allows users to set communication parameters according to personal preferences.
[0115] Feedback and adjustment: Ensure the reliability and integrity of data transmission through ACK / NACK mechanism, timeout retransmission, CRC error detection and other methods. At the same time, collect user feedback and continuously optimize system performance.
[0116] The system interfaces mainly include the following:
[0117] User device interface: interacts with user devices such as smartphones and tablets to send and receive data.
[0118] Network service interface: supports IPv4 and IPv6 dual stacks, providing Internet access and other network services.
[0119] Collaborative decision-making interface: Receives instructions from the collaborative decision-making module through the RESTful API and adjusts the communication strategy.
[0120] Dynamic switching interface: performs switching operations to ensure the continuity of data transmission.
[0121] User Configuration Interface: Allows users to configure communication preferences and parameters.
[0122] Feedback and adjustment interface: collect feedback from users and systems to optimize system performance.
[0123] As a preferred solution, channel allocation is optimized by detecting the number of devices in the current frequency band and adjusting to idle communication channels to reduce co-channel interference.
[0124] In addition, the transmission rate can be adjusted dynamically according to network parameters such as RTT and packet loss rate. MIMO technology can improve signal strength and transmission rate.
[0125] The Bluetooth and Wi-Fi cooperative communication system of the present invention realizes efficient and stable communication in a complex communication environment by intelligently selecting and using communication modes. The system not only improves the communication quality, but also meets the personalized needs of users and has broad application prospects.
[0126] The present invention also provides an enhanced Bluetooth and Wi-Fi collaborative communication method, comprising:
[0127] Obtaining basic information and communication history of a user device and determining a first communication strategy; the transmission type of the first communication strategy includes Bluetooth and Wi-Fi;
[0128] Acquire communication environment data, extract key features from the communication environment data, evaluate communication requirements based on the key features and analyze current communication environment conditions, obtain a second communication strategy based on the communication environment conditions and the first communication strategy, and output the second communication strategy;
[0129] Based on the operation of the second communication strategy, communication feedback results are obtained in real time, and the second communication strategy is adjusted based on the real-time communication feedback results to obtain a third communication strategy; communication parameters are continuously adjusted to adapt to the third communication strategy and the third communication strategy is output.
[0130] The third communication strategy of the present invention is a dynamic adjustment process, which is continuously adjusted according to the communication feedback results obtained in real time and output as a continuously dynamically adjusted communication strategy to ensure communication stability.
[0131] The above workflow describes an intelligent communication strategy formulation and adjustment method, which aims to dynamically select the appropriate communication method (such as Bluetooth or Wi-Fi) based on the basic information of the user device, communication history and current communication environment to optimize communication efficiency and user experience. The following is a detailed explanation of the working principle:
[0132] 1. Initial information acquisition and first communication strategy formulation: User device basic information and communication history acquisition: The system first collects basic information such as the user's device hardware specifications, operating system version, and network connection history, as well as communication history data such as the user's past communication mode, frequency, and rate.
[0133] First communication strategy formulation: Based on this information, the system initially determines a basic communication strategy, which is to use Bluetooth and Wi-Fi as the main communication transmission types by default. This is because Bluetooth and Wi-Fi are widely supported in modern devices and are suitable for communication requirements of different distances and rates.
[0134] 2. Communication environment assessment and second communication strategy generation
[0135] Communication environment data acquisition: The system monitors the current communication environment in real time, including network signal strength, interference, distance between devices, available frequency bands, etc.
[0136] Key feature extraction and evaluation: Extract key features from the acquired environmental data, such as Wi-Fi signal strength, Bluetooth connection stability, network latency, etc., and evaluate current communication requirements (such as communication real-time, bandwidth requirements, and power consumption) and environmental conditions (such as communication stability, etc.) based on these features.
[0137] Second communication strategy generation: Based on the evaluation results and the first communication strategy, the system dynamically adjusts the strategy and generates the second communication strategy. For example, if the Wi-Fi signal is strong and stable, but the Bluetooth connection is unstable, the system may give priority to Wi-Fi for data transmission; conversely, if the Bluetooth signal is strong and stable, the distance between devices is short and low-power communication is required, Bluetooth may be given priority for data transmission.
[0138] 3. Communication feedback and adjustment of the third communication strategy: Acquisition of communication feedback results: The system monitors the execution of the second communication strategy and collects various feedback data during the communication process, such as data transmission success rate, delay, packet loss rate, etc.
[0139] Third communication strategy adjustment: Based on these feedback results, the system further optimizes and adjusts the second communication strategy to generate the third communication strategy. The adjustment may include changing the parameters of the communication protocol (such as transmission rate, retry mechanism), adjusting the communication mode (such as switching from Wi-Fi to Bluetooth and then back to Wi-Fi), etc., to better adapt to the current communication environment and user needs.
[0140] Communication parameter adaptation and policy output: Finally, the system adjusts the communication parameters of the device to adapt the third communication policy, and outputs the optimized policy to the device to guide subsequent communication behaviors.
[0141] The entire workflow realizes dynamic optimization of communication strategies by continuously collecting information, evaluating the environment, and adjusting strategies. This intelligent communication strategy formulation and adjustment mechanism helps to improve communication efficiency, reduce energy consumption, and enhance user experience.
[0142] The concept of the present invention is further described in detail below with reference to specific embodiments.
[0143] like Figure 1 As shown, when the collaborative system is started, all modules are initialized, including the communication demand analysis module, the environment monitoring module, the collaborative decision module, the dynamic switching module, the Bluetooth communication module, and the Wi-Fi communication module. At the same time, the Bluetooth modules of the voice sending device and the receiving device need to be turned on and connected. And these devices are connected to the same Wi-Fi local area network to ensure that the local area network allows communication between devices. The specific communication method includes the following steps:
[0144] The first step is to obtain the basic information and communication history of the user's device, collect communication data from the user's device, including the transmission type, transmission rate, transmission distance and energy consumption set by the user, analyze the user's current activity type and predict the communication mode that may be used.
[0145] Analyze the user's current activity type from the information collected from the user configuration interface and the basic information to obtain communication needs, and determine a first communication strategy based on the current communication needs;
[0146] Alternatively, the communication history is obtained to determine the first communication strategy; the communication mode that the user is accustomed to is directly determined according to the user's communication history. For example, if the user is accustomed to using the Bluetooth mode, the device can directly adopt the historical communication habit.
[0147] The communication parameters are adjusted to adapt to the selected communication mode and the first communication strategy result is output to the collaborative decision module.
[0148] The second step is to process the collected communication environment data to provide accurate information for decision-making. Key features are extracted from the processed data, and communication requirements are evaluated based on the key features and the current communication environment conditions are analyzed.
[0149] The communication environment monitoring interval is set to 50ms, that is, the system communication transmission environment is monitored once every 50ms.
[0150] Evaluate communication needs and analyze current communication environment conditions based on key characteristics, including:
[0151] If the Wi-Fi received signal strength is less than or equal to the set signal threshold (such as -80dBm), the Wi-Fi blocking value is increased by 10 points (initial 0 points). If the interference device on the channel is greater than or equal to the set interference device threshold (such as 3), the Wi-Fi blocking is increased by another 6 points. When the Wi-Fi blocking value is greater than 48 points in total, the Wi-Fi transmission environment monitoring result is judged to be poor, and the Wi-Fi blocking value is cleared and recalculated. If the Wi-Fi received signal strength is greater than the set signal threshold and the interference device on the channel is less than the set interference device threshold, the Wi-Fi transmission environment is judged to be unobstructed. If the Bluetooth received signal strength is less than or equal to the set signal threshold (such as -70dBm), the Bluetooth blocking value is increased by 10 points (initial 0 points). When the mark accumulates more than 40 points, the Bluetooth transmission environment monitoring result is judged to be poor, and the Bluetooth blocking value is cleared and recalculated; if the Bluetooth received signal strength is greater than the set signal threshold, the Bluetooth transmission environment is judged to be unobstructed; if both the Wi-Fi and Bluetooth transmission environments are unobstructed, transmission is performed at the same time; if the Wi-Fi and Bluetooth transmission environment monitoring results are both poor, the blocking values of Wi-Fi and Bluetooth are compared, and the transmission mode with the smaller blocking value is selected for transmission. The above method is used to evaluate the current Wi-Fi or Bluetooth communication environment conditions and provide a basis for decision-making.
[0152] Obtaining a second communication strategy according to the communication environment condition and the first communication strategy includes:
[0153] If the current communication environment conditions determine that the first communication strategy transmission environment monitoring result meets the requirements, continue to use the first communication strategy as the second communication strategy;
[0154] If the current communication environment condition determines that the transmission environment monitoring result of the first communication strategy does not meet the requirement, the transmission type in the first communication strategy is adjusted as the second communication strategy.
[0155] Among them, when transmitting voice data, it is necessary to open the Wi-Fi UDP (User Datagram Protocol) or TCP (Transmission Control Protocol) transmission channel and the Bluetooth HFP (Hands-Free Protocol) transmission channel at the same time to ensure that there will be no word loss or jamming in the voice if the transmission method is suddenly changed during voice transmission.
[0156] If the TCP protocol is turned on, a connection needs to be established before data transmission, while the Wi-Fi UDP protocol does not need to establish a connection. For each frame of voice data, the Bluetooth and Wi-Fi channels send data simultaneously. Bluetooth uses AFH (adaptive frequency hopping technology) to dynamically select a different channel from Wi-Fi to avoid mutual interference between the two types of data during transmission. Finally, the communication environment conditions are used to determine which communication method to use for transmission. If the Wi-Fi transmission environment monitoring is judged to be smooth and the Bluetooth transmission environment monitoring result is poor, UDP (User Datagram Protocol) or TCP channel transmission is used; if the Bluetooth transmission environment is judged to be smooth and the Wi-Fi transmission environment monitoring result is poor, SBC (Subband Compression Coding Algorithm) is used to compress the data frame and then transmit it through the Bluetooth HFP channel; if the Wi-Fi transmission environment monitoring result is judged to be poor and the Bluetooth transmission environment monitoring result is poor, a better channel is selected for transmission; if the Wi-Fi transmission environment monitoring is judged to be smooth and the Bluetooth transmission environment is smooth, two channels are selected for transmission at the same time.
[0157] On the voice receiving device side, Bluetooth and Wi-Fi receive data simultaneously. For data frames received through the Bluetooth HFP transmission channel, ISBC (sub-band compression decoding algorithm) is used to decompress and restore them and pass them to the voice application service; for data frames received through the Wi-Fi channel, they are directly passed to the voice application service; for data frames received through both the Bluetooth HFP and Wi-Fi transmission channels, the data frames decompressed through the Bluetooth HFP transmission channel are first synchronized with the data frames received through the Wi-Fi channel to ensure the continuity and integrity of communication, and finally passed to the voice application service.
[0158] In the Bluetooth communication of devices, since it involves steps such as broadcasting and scanning, establishing connection, and data transmission, the transmitting device first informs other receiving devices of its existence through broadcasting, then discovers other receiving devices through scanning, and can perform Bluetooth pairing and connection through the user interface. Finally, when the connection between the communication devices is established, data transmission can be carried out through the master-slave mode, in which the master device controls the timing of data transmission.
[0159] The process of implementing Bluetooth communication includes: when the communication system transmits on the Bluetooth HFP channel, it needs to use the BLE (Bluetooth Low Energy) protocol stack, which is responsible for encapsulating application data packets and generating air data packets that meet the BLE protocol. The protocol stack includes PHY (physical layer, which defines the wireless frequency band and modulation technology used by Bluetooth), LL (link layer, used to manage the connection between Bluetooth devices), HCI (host controller interface, which provides a communication bridge between hardware and software), L2CAP (logical link control and adaptation protocol, used to provide data transmission services), SMP (security management protocol, used for device pairing and key management, to ensure the security of data transmission), ATT (attribute protocol, used for access to device attribute data), GATT (generic attribute profile, used for different devices to discover and interact) and GAP (generic access profile, common rules for device discovery and connection management), etc.
[0160] The communication system also provides a user operation interface, allowing users to set communication preferences and parameters according to personal preferences. The system learns the user's communication preferences and adaptively adjusts the communication strategy.
[0161] In addition, in this communication system, an effective feedback mechanism needs to be established to ensure that the sending device can receive the status information of the receiving device. The communication feedback results are obtained through the following three methods:
[0162] First, it is implemented using the ACK (acknowledgement) and NACK (negative acknowledgement) mechanisms in the communication protocol. When the data is successfully received, the receiver sends an ACK signal to inform the sender; if the data is not successfully received, a NACK signal is sent to prompt the sender to retransmit.
[0163] Second, during the data transmission process, the sending device will internally set a timeout timer for each data packet sent. If no ACK or NACK signal is received from the receiving device within the specified time, the data packet is considered lost, triggering the retransmission mechanism, and the sending device will retransmit the data packet.
[0164] Third, the system also uses CRC (Cyclic Redundancy Check) to monitor whether data errors occur during transmission or storage. If errors occur, the receiving device will request retransmission. The user interface will display information such as current signal strength, data transmission rate, and transmission status. The system will also record detailed communication logs, including successful and failed transmission records, for subsequent problem analysis and system optimization.
[0165] Collect feedback from user communication systems, evaluate communication quality, adjust decision models and resource allocation based on feedback, and optimize system performance in a timely manner. For the optimization of system performance, the present invention uses a method for optimizing channel allocation. The third communication strategy is specifically:
[0166] By detecting the number of devices in each frequency band, it adjusts to an idle communication channel in a timely manner to reduce co-channel interference. It also dynamically adjusts the transmission rate according to channel conditions and network conditions. First, it monitors the changes in RTT (round-trip time) and observes the packet loss rate. When the RTT fluctuates significantly and the packet loss rate is ≥10%, the congestion control algorithm is used to adjust the size of the congestion window according to network feedback. Finally, MIMO technology (multiple-input, multiple-output) is used to improve signal strength and transmission rate to reduce channel congestion and interference.
[0167] When designing the interface of the enhanced Bluetooth and Wi-Fi collaborative communication system, it is necessary to consider the interaction between the system and user devices, network services, and other system components. The following is a detailed description of the system interface implementation:
[0168] The system architecture includes user equipment interface, network service interface, collaborative decision-making interface, dynamic switching interface, user configuration interface and feedback and adjustment interface.
[0169] User device interface such as smartphones, tablets, laptops, etc. User device interaction allows user communication devices to connect to the system via Bluetooth or Wi-Fi and send and receive data.
[0170] The network service interface supports dual stacks, IPv4 and IPv6 (Internet Protocol version 4 and 6) can run simultaneously, and can connect to external network services to provide Internet access and other network services.
[0171] The collaborative decision-making interface receives the decision instructions of the collaborative decision-making module through the RESTful API (Representational State Transfer), including communication mode selection, resource allocation, etc., and adjusts the communication strategy. The design of the RESTful API includes the request body, response body, error handling, and encrypted data transmission through HTTPS to ensure that the response time of the interface meets the system performance requirements and encrypts sensitive data.
[0172] The dynamic switching interface performs the switching operation according to the decision instruction, ensuring the continuity of data transmission, realizing seamless switching between Bluetooth and Wi-Fi, and synchronizing the device status information during the switching process to avoid data loss.
[0173] The user configuration interface provides a graphical interface or a command line interface, allowing users to configure communication preferences and parameters, and store user configurations in the system for use by the collaborative decision-making module.
[0174] The feedback and adjustment interface collects user and system feedback through the user interface or system log. Based on the feedback information, the collaborative decision-making module adjusts the communication strategy.
[0175] The following is a further detailed explanation of how to conduct communication demand analysis.
[0176] like Figure 2 As shown, the system identifies user devices connected to the network and records their basic information and communication history. It collects current communication requirements from user devices, such as data transmission rate, transmission distance, energy consumption, etc. It analyzes the user's current activity type and predicts their communication needs. Based on the user activity identification results, it analyzes the user's communication pattern.
[0177] Evaluate the current wireless communication mode, analyze the data transmission type and size, and select Bluetooth or Wi-Fi transmission if it is point-to-point transmission; select Wi-Fi transmission if it is broadcast transmission. Select the appropriate transmission mode.
[0178] Finally, the wireless communication environment is monitored in real time, including parameters such as received signal strength, interference, device density, and transmission delay in the communication environment. The communication parameters are adjusted to adapt to the selected communication method and the results are output to the collaborative decision-making module.
[0179] The communication demand analysis module is described in detail above. The specific implementation method of the collaborative decision-making module is described below.
[0180] like Figure 3 As shown, the first is data collection and processing, including: collecting relevant data, which may include historical data, real-time environmental data, etc.; processing missing values and outliers; standardizing or normalizing data to ensure data quality and consistency.
[0181] Select features from the data that are useful for the decision-making process, use PCA (Principal Component Analysis) technique to reduce feature dimensionality, create new features such as Wi-Fi reception signal threshold, interference device threshold, Bluetooth reception signal threshold, Wi-Fi blocking value and Bluetooth blocking value, possibly through combination or transformation of existing features.
[0182] Then, the current communication environment conditions are analyzed based on data characteristics. By comparing the communication environment and characteristics in real time, if the current communication is Wi-Fi communication, when the Wi-Fi blocking value is greater than 48 points in total, the Wi-Fi transmission environment monitoring result is judged to be poor, and the Wi-Fi blocking value is cleared and recalculated; if the current communication is Bluetooth communication, when the Bluetooth blocking value is greater than 40 points in total, the Bluetooth transmission environment monitoring result is judged to be poor, and the Bluetooth blocking value is cleared and recalculated; if both Wi-Fi and Bluetooth transmission environments are unobstructed, transmission is performed simultaneously; if both Wi-Fi and Bluetooth transmission environment monitoring results are poor, the blocking values of Wi-Fi and Bluetooth are compared, and the transmission mode with a smaller blocking value is selected for transmission; and a suitable decision model is selected based on the analysis results.
[0183] Finally, the decision model is transformed into the final decision and the result is output to the dynamic switching module.
[0184] The present invention also provides an enhanced Bluetooth and Wi-Fi collaborative communication system, comprising:
[0185] A first communication strategy determination unit, configured to obtain basic information and communication history of a user device and determine a first communication strategy; the transmission type of the first communication strategy includes Bluetooth and Wi-Fi;
[0186] A second communication strategy determination unit is used to obtain communication environment data, extract key features from the communication environment data, evaluate communication requirements and analyze current communication environment conditions based on the key features, obtain a second communication strategy according to the communication environment conditions and the first communication strategy, and output the second communication strategy;
[0187] The third communication strategy determination unit is used to obtain communication feedback results in real time based on the operation of the second communication strategy, adjust the second communication strategy based on the real-time communication feedback results to obtain a third communication strategy; continuously adjust communication parameters to adapt to the third communication strategy and output the third communication strategy.
[0188] Wherein, in the first communication strategy determination unit, obtaining basic information and communication history of the user equipment and determining the first communication strategy include:
[0189] Identify user devices connected to the network and record basic information and communication history; basic information includes the user's device hardware specifications, operating system version and network connection history, and communication history includes the user's past communication patterns, frequency and rate;
[0190] Analyze the user's current activity type from the information collected from the user configuration interface and the basic information to obtain communication needs, and determine a first communication strategy based on the current communication needs;
[0191] Alternatively, the first communication strategy is directly determined according to the communication history;
[0192] The first communication strategy is: if the user configures point-to-point type transmission, Bluetooth transmission is preferred; if the user configures broadcast type transmission, Wi-Fi transmission is preferred.
[0193] Optionally, in the second communication strategy determination unit, acquiring communication environment data, extracting key features from the communication environment data, evaluating communication requirements based on the key features and analyzing current communication environment conditions include:
[0194] Acquire communication environment data and extract key features from the communication environment data, the key features including the type, strength and number of interfering devices of communication signals;
[0195] If the type of communication signal is Wi-Fi receiving signal, and the strength is less than or equal to the set Wi-Fi signal threshold, and the number of interference devices on the communication channel is greater than or equal to the set interference device threshold, the Wi-Fi blocking value is increased once. When the cumulative mark is greater than the Wi-Fi blocking threshold, it is judged that the Wi-Fi transmission environment monitoring result is poor, and the Wi-Fi blocking value is cleared and recalculated;
[0196] If the Wi-Fi received signal strength is greater than the set Wi-Fi signal threshold, and the number of interfering devices is less than the set interfering device threshold, the Wi-Fi transmission environment is determined to be unobstructed;
[0197] If the type of communication signal is a Bluetooth receiving signal and the strength is less than or equal to the set Bluetooth signal threshold, the Bluetooth blocking value is increased once. When the cumulative mark is greater than the Bluetooth blocking threshold, the Bluetooth transmission environment monitoring result is judged to be poor, and the Bluetooth blocking value is cleared and recalculated;
[0198] If both Wi-Fi and Bluetooth transmission environments are unobstructed, transmission will be performed simultaneously; if the monitoring results of Wi-Fi and Bluetooth transmission environments are both poor, the blocking values of Wi-Fi and Bluetooth will be compared, and the transmission mode with the smaller blocking value will be selected for transmission; and a suitable decision model will be selected based on the analysis results.
[0199] Optionally, in the second communication strategy determination unit, obtaining the second communication strategy according to the communication environment condition and the first communication strategy includes:
[0200] If the current communication environment conditions determine that the first communication strategy transmission environment monitoring result meets the requirements, continue to use the first communication strategy as the second communication strategy;
[0201] If the current communication environment condition determines that the transmission environment monitoring result of the first communication strategy does not meet the requirement, the transmission type in the first communication strategy is adjusted as the second communication strategy.
[0202] Further improvement, after outputting the second communication strategy, further comprising:
[0203] When voice data is transmitted, the Wi-Fi UDP or TCP transmission channel and the Bluetooth HFP transmission channel need to be enabled at the same time; if the TCP protocol is enabled, a connection needs to be established before data transmission, while the Wi-Fi UDP protocol does not require a connection.
[0204] For each frame of voice data, the Bluetooth and Wi-Fi channels send data simultaneously. Bluetooth dynamically selects a different channel from Wi-Fi through AFH, and finally determines the communication mode based on the communication environment conditions:
[0205] If the Wi-Fi transmission environment monitoring result is smooth and the Bluetooth transmission environment monitoring result is poor, use UDP or TCP channel transmission;
[0206] If the Bluetooth transmission environment is judged to be smooth and the monitoring result of the Wi-Fi transmission environment is poor, the data frame is compressed using SBC and then transmitted through the Bluetooth HFP channel;
[0207] If the monitoring result of the Wi-Fi transmission environment is poor and the monitoring result of the Bluetooth transmission environment is poor, the better channel is selected for transmission;
[0208] If the Wi-Fi transmission environment is unobstructed and the Bluetooth transmission environment is unobstructed, two channels are selected for transmission at the same time;
[0209] For data frames received through the Bluetooth HFP transmission channel, ISBC is used to decompress and restore them and pass them to the voice application service; for data frames received through the Wi-Fi channel, they are directly passed to the voice application service; for data frames received through both the Bluetooth HFP and Wi-Fi transmission channels, the data frames decompressed through the Bluetooth HFP transmission channel are first synchronized with the data frames received through the Wi-Fi channel.
[0210] As an example, before transmitting through the Bluetooth HFP channel, the other receiving devices are informed of its existence through broadcasting, and then other receiving devices are discovered through scanning, and Bluetooth pairing is performed through the user interface; when the connection is established between the communication devices, data is transmitted through the master-slave mode;
[0211] When transmitting on the Bluetooth HFP channel, the BLE protocol stack needs to be used to encapsulate the application data packet to generate an air data packet that meets the BLE protocol.
[0212] Optionally, in the third communication strategy determination unit, obtaining the communication feedback result in real time based on the operation status of the second communication strategy includes:
[0213] When the data is successfully received, the receiver sends an ACK signal and informs the sender; if the data is not successfully received, a NACK signal is sent to prompt the sender to retransmit;
[0214] During data transmission, the sending device will internally set a timeout timer for each data packet sent. If it does not receive the ACK or NACK signal from the receiving device within the specified time, it is considered that the data packet is lost, triggering the retransmission mechanism, and the sending device will retransmit the data packet;
[0215] Use CRC to monitor whether data errors occur during transmission or storage; if errors occur, the receiving device will request retransmission; and the current signal strength, data transmission rate and transmission status will be displayed on the user interface, and detailed communication logs will be recorded, including successful and failed transmission records.
[0216] As a further improvement, in the third communication strategy determination unit, the second communication strategy is adjusted based on the real-time communication feedback result to obtain a third communication strategy, and the third communication strategy is specifically:
[0217] Use the method of optimizing channel allocation to detect the number of devices in each frequency band and adjust to the idle communication channel in time;
[0218] Dynamically adjust the transmission rate according to channel conditions and network conditions, monitor the changes in RTT, and observe the packet loss rate. When the RTT fluctuates and the packet loss rate exceeds the congestion threshold, use the congestion control algorithm to adjust the size of the congestion window according to network feedback, and use MIMO technology to improve signal strength and transmission rate;
[0219] The communication parameters are adjusted to adapt to the third communication strategy and the third communication strategy is output, including: monitoring the received signal strength, interference, device density and transmission delay parameters in the communication environment, adjusting the communication parameters to adapt to the selected communication mode and outputting the results.
[0220] A fourth objective of an embodiment of the present invention is to provide an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements an enhanced Bluetooth and Wi-Fi collaborative communication method when executing the computer program.
[0221] A fifth objective of an embodiment of the present invention is to provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, an enhanced Bluetooth and Wi-Fi collaborative communication method is implemented.
[0222] A sixth objective of an embodiment of the present invention is to provide a computer program product, the computer program product comprising computer instructions, the computer instructions instructing a computer to execute an enhanced Bluetooth and Wi-Fi collaborative communication method.
[0223] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0224] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0225] The present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, readable storage media, optical storage, etc.) containing computer-usable program codes.
[0226] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0227] Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0228] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the present invention.
Claims
1. An enhanced Bluetooth and Wi-Fi collaborative communication method, characterized in that: include: Obtaining basic information and communication history of a user device and determining a first communication strategy; the transmission type of the first communication strategy includes Bluetooth and Wi-Fi; Acquire communication environment data, extract key features from the communication environment data, evaluate communication requirements based on the key features and analyze current communication environment conditions, obtain a second communication strategy based on the communication environment conditions and the first communication strategy, and output the second communication strategy; Based on the operation of the second communication strategy, obtain communication feedback results in real time, adjust the second communication strategy based on the communication feedback results obtained in real time, and obtain a third communication strategy; continuously adjust communication parameters to adapt to the third communication strategy and output the third communication strategy; The acquiring of basic information and communication history of the user equipment and determining the first communication strategy includes: Identify user devices connected to the network and record basic information and communication history; basic information includes the user's device hardware specifications, operating system version and network connection history, and communication history includes the user's past communication patterns, frequency and rate; Analyze the user's current activity type from the information collected from the user configuration interface and the basic information to obtain communication needs, and determine a first communication strategy based on the current communication needs; Alternatively, the first communication strategy is directly determined according to the communication history; The first communication strategy is: if the user configures point-to-point transmission, Bluetooth transmission is preferred; if the user configures broadcast transmission, Wi-Fi transmission is preferred; The acquiring of communication environment data, extracting key features from the communication environment data, evaluating communication requirements based on the key features and analyzing current communication environment conditions include: Acquire communication environment data and extract key features from the communication environment data, the key features including the type, strength and number of interfering devices of communication signals; If the type of communication signal is Wi-Fi receiving signal, and the strength is less than or equal to the set Wi-Fi signal threshold, and the number of interference devices on the communication channel is greater than or equal to the set interference device threshold, the Wi-Fi blocking value is increased once. When the cumulative mark is greater than the Wi-Fi blocking threshold, it is judged that the Wi-Fi transmission environment monitoring result is poor, and the Wi-Fi blocking value is cleared and recalculated; If the Wi-Fi received signal strength is greater than the set Wi-Fi signal threshold, and the number of interfering devices is less than the set interfering device threshold, the Wi-Fi transmission environment is determined to be unobstructed; If the type of communication signal is a Bluetooth receiving signal and the strength is less than or equal to the set Bluetooth signal threshold, the Bluetooth blocking value is increased once. When the cumulative mark is greater than the Bluetooth blocking threshold, the Bluetooth transmission environment monitoring result is judged to be poor, and the Bluetooth blocking value is cleared and recalculated; If both Wi-Fi and Bluetooth transmission environments are unobstructed, transmission will be performed simultaneously; if the monitoring results of Wi-Fi and Bluetooth transmission environments are both poor, the blocking values of Wi-Fi and Bluetooth will be compared, and the transmission mode with the smaller blocking value will be selected for transmission; and a suitable decision model will be selected based on the analysis results.
2. The enhanced Bluetooth and Wi-Fi collaborative communication method according to claim 1, characterized in that: The obtaining of the second communication strategy according to the communication environment condition and the first communication strategy comprises: If the current communication environment conditions determine that the first communication strategy transmission environment monitoring result meets the requirements, continue to use the first communication strategy as the second communication strategy; If the current communication environment condition determines that the transmission environment monitoring result of the first communication strategy does not meet the requirement, the transmission type in the first communication strategy is adjusted as the second communication strategy.
3. The enhanced Bluetooth and Wi-Fi collaborative communication method according to claim 1, characterized in that: After the second communication strategy is output, the method further includes: When voice data is transmitted, both the Wi-Fi UDP or TCP transmission channel and the Bluetooth HFP transmission channel are enabled. If the TCP protocol is enabled, a connection is established before data transmission, but the Wi-Fi UDP protocol does not establish a connection. For each frame of voice data, the Bluetooth and Wi-Fi channels send data simultaneously. Bluetooth dynamically selects a different channel from Wi-Fi through AFH, and finally determines the communication mode based on the communication environment conditions: If the Wi-Fi transmission environment monitoring result is smooth and the Bluetooth transmission environment monitoring result is poor, use UDP or TCP channel transmission; If the Bluetooth transmission environment is judged to be smooth and the monitoring result of the Wi-Fi transmission environment is poor, the data frame is compressed using SBC and then transmitted through the Bluetooth HFP channel; If the monitoring result of the Wi-Fi transmission environment is poor and the monitoring result of the Bluetooth transmission environment is poor, the better channel is selected for transmission; If the Wi-Fi transmission environment is unobstructed and the Bluetooth transmission environment is unobstructed, two channels are selected for transmission at the same time; For data frames received through the Bluetooth HFP transmission channel, ISBC is used to decompress and restore them and pass them to the voice application service; for data frames received through the Wi-Fi channel, they are directly passed to the voice application service; for data frames received through both the Bluetooth HFP and Wi-Fi transmission channels, the data frames decompressed through the Bluetooth HFP transmission channel are first synchronized with the data frames received through the Wi-Fi channel.
4. The enhanced Bluetooth and Wi-Fi collaborative communication method according to claim 3, characterized in that: Before transmitting through the Bluetooth HFP channel, first inform other receiving devices through broadcasting, then find other receiving devices through scanning, and perform Bluetooth pairing and connection through the user interface; when the connection between the communication devices is established, data transmission is carried out through the master-slave mode; When transmitting on the Bluetooth HFP channel, the BLE protocol stack needs to be used to encapsulate the application data packet to generate an air data packet that meets the BLE protocol.
5. The enhanced Bluetooth and Wi-Fi collaborative communication method according to claim 1, characterized in that: The obtaining of communication feedback results in real time based on the operation of the second communication strategy includes: When the data is successfully received, the receiver sends an ACK signal and informs the sender; if the data is not successfully received, a NACK signal is sent to prompt the sender to retransmit; During data transmission, the sending device will internally set a timeout timer for each data packet sent. If it does not receive the ACK or NACK signal from the receiving device within the specified time, it is considered that the data packet is lost, triggering the retransmission mechanism, and the sending device will retransmit the data packet; Use CRC to monitor whether data errors occur during transmission or storage; if errors occur, the receiving device will request retransmission; and the current signal strength, data transmission rate and transmission status will be displayed on the user interface, and detailed communication logs will be recorded, including successful and failed transmission records.
6. The enhanced Bluetooth and Wi-Fi collaborative communication method according to claim 1, characterized in that: In the method of adjusting the second communication strategy based on the real-time acquisition of the communication feedback result to obtain the third communication strategy, the third communication strategy is specifically: Use the method of optimizing channel allocation to detect the number of devices in each frequency band and adjust to the idle communication channel in time; Dynamically adjust the transmission rate according to channel conditions and network conditions, monitor the changes in RTT, and observe the packet loss rate. When the RTT fluctuates and the packet loss rate exceeds the congestion threshold, use the congestion control algorithm to adjust the size of the congestion window according to network feedback, and use MIMO technology to improve signal strength and transmission rate; The communication parameters are adjusted to adapt to the third communication strategy and the third communication strategy is output, including: monitoring the received signal strength, interference, device density and transmission delay parameters in the communication environment, adjusting the communication parameters to adapt to the selected communication mode and outputting the results.
7. An enhanced Bluetooth and Wi-Fi collaborative communication system, using the method according to any one of claims 1 to 6, characterized in that: include: A first communication strategy determining unit, configured to obtain basic information and communication history of a user device and determine a first communication strategy; The transmission types of the first communication strategy include Bluetooth and Wi-Fi; A second communication strategy determination unit is used to obtain communication environment data, extract key features from the communication environment data, evaluate communication requirements and analyze current communication environment conditions based on the key features, obtain a second communication strategy according to the communication environment conditions and the first communication strategy, and output the second communication strategy; The third communication strategy determination unit is used to obtain communication feedback results in real time based on the operation of the second communication strategy, adjust the second communication strategy based on the real-time communication feedback results to obtain a third communication strategy; continuously adjust communication parameters to adapt to the third communication strategy and output the third communication strategy.
8. An enhanced Bluetooth and Wi-Fi collaborative communication device, characterized in that: include: Communication demand analysis module, used to detect the user's current communication demand in real time; An environment monitoring module, used to detect the communication environment; A collaborative decision-making module, configured to execute an enhanced Bluetooth and Wi-Fi collaborative communication method according to any one of claims 1 to 6 to adjust a communication mode based on communication requirements and environmental detection results in combination with communication feedback results; Dynamic switching module, used to switch between Wi-Fi and Bluetooth; The user configuration interface is used to provide a user-friendly interface for users to input communication preferences and parameters according to personal preferences.