A bluetooth communication method and system based on edge computing

By using an edge prober to evaluate the Bluetooth channel quality at the edge computing end and switch to the optimal channel, combined with a daemon process to ensure the transmission of critical information, the problems of interference and switching efficiency between Bluetooth devices are solved, and efficient and reliable communication is achieved.

CN121357520BActive Publication Date: 2026-04-10SHENZHEN YIKAIER ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-16
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Bluetooth devices are prone to channel interference, low channel switching efficiency, and secondary congestion in scenarios with multiple devices coexisting. Existing channel switching solutions rely on mobile device decision-making, which is inefficient and cannot effectively solve the interference problem.

Method used

By using an edge prober to evaluate the Bluetooth channel communication quality at the edge computing end, determining the optimal channel, and notifying Bluetooth devices and terminal devices to switch to the optimal channel within a preset time, combined with a daemon process to ensure the transmission of critical information, seamless synchronous switching is achieved.

Benefits of technology

It effectively solves the interference problem between Bluetooth devices, reduces information transmission delay, improves channel switching efficiency, relieves the computing pressure on terminal devices, and ensures the reliability and stability of communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121357520B_ABST
    Figure CN121357520B_ABST
Patent Text Reader

Abstract

The application relates to the field of wireless communication and Internet of Things, in particular to a Bluetooth communication method and system based on edge computing. The method can evaluate the scores of each Bluetooth channel based on surrounding signals at the edge probe instrument end instead of the terminal device end, obtain an optimal channel with the optimal communication quality, and then notify the Bluetooth device and the terminal device to switch to the optimal channel within a preset time interval. Thus, first, the communication channel of the Bluetooth device and the terminal device can be switched to the optimal channel to solve the Bluetooth interference problem and reduce information transmission delay; second, the edge performs the calculation instead of the terminal device, thereby releasing the pressure of the terminal device (for example, a mobile phone, a palm computer, etc.), the channel switching efficiency is high, and the channel switching is not prone to being blocked; and third, the switching can be completed within a preset time interval (a short time), a seamless synchronization mechanism is realized, the switching efficiency is high, and the communication delay is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of wireless communication and Internet of Things, in particular to a Bluetooth communication method and system based on edge computing. BACKGROUND

[0002] With the rapid popularization of Internet of Things technology, Bluetooth devices have been widely used in smart wear, smart home, industrial monitoring and other fields due to their low power consumption, low cost and easy deployment. For example, Bluetooth temperature monitors, smart cooking devices, Bluetooth speakers, heart rate bands, etc. These devices all work in the 2.40-2.48 GHz free open frequency band. This frequency band is compatible with Wi-Fi, ZigBee and other wireless communication technologies, and the number of Bluetooth devices in daily life continues to grow, resulting in a more complex wireless environment in the multi-device coexistence scenario.

[0003] In practical applications, the core technical problems of Bluetooth communication are increasingly prominent. On the one hand, Bluetooth interference is particularly serious. Because a large number of Bluetooth devices share the same frequency band resources, the signals transmitted by different devices superimpose and conflict with each other in space, which can easily cause channel congestion and lead to problems such as data packet loss and signal transmission interruption. For example, in the home barbecue scenario, when the Bluetooth barbecue thermometer and the surrounding mobile phones, Bluetooth earphones, and Bluetooth speakers work at the same time, the channel occupation of each device will interfere with each other, causing the mobile phone APP to receive temperature data with obvious delay, or even unable to obtain real-time temperature information, which seriously affects the timeliness of temperature alarm and may cause safety hazards such as food burning; in the industrial environment, when multiple Bluetooth sensors simultaneously monitor device parameters, interference can cause data transmission distortion and affect monitoring accuracy.

[0004] On the other hand, the existing channel switching scheme is inefficient and prone to secondary congestion. Currently, most of the industry's improvement schemes for Bluetooth interference rely on the mobile phone (terminal device) to make channel switching decisions. This centralized decision-making mode has significant defects: first, the channel switching scanning process of the mobile phone needs to occupy a large amount of system resources, and is affected by the hardware performance of the mobile phone and the background process occupation, resulting in slow response and low efficiency of the switching decision; second, if multiple Bluetooth devices simultaneously rely on the same mobile phone for channel scheduling, the communication load of the mobile phone will increase dramatically, which may cause instruction transmission congestion and lead to asynchronous switching of multiple devices, thereby exacerbating communication conflicts and failing to fundamentally solve the channel interference problem. SUMMARY

[0005] Therefore, the application discloses a Bluetooth communication method based on edge computing. The method is applied to an edge probe instrument. The method can comprise: determining communication scores of a plurality of Bluetooth channels based on peripheral signals; the plurality of Bluetooth channels are used for communication between a Bluetooth device and a terminal device; determining an optimal channel in the plurality of Bluetooth channels based on the communication scores; informing the Bluetooth device and the terminal device to switch to the optimal channel for Bluetooth communication; and wherein a time interval between informing the Bluetooth device and the terminal device does not exceed a preset time length.

[0006] In some embodiments, the edge probe instrument comprises a daemon process; the terminal device is provided with an application program for interacting with the Bluetooth device; and the method further comprises: in a case where the application program provided on the terminal device is in a preset state, maintaining transmission of key information between the Bluetooth device and the terminal device by the daemon process.

[0007] In some embodiments, the working mode of the edge probe instrument comprises a first mode and a second mode; the first mode comprises switching to the optimal channel in a case where it is detected that communication quality of a current channel of the Bluetooth device does not meet preset requirements; and the second mode comprises periodically and adaptively selecting an optimal channel.

[0008] In some embodiments, the method further comprises: obtaining a current working state; in a case where the current working state is a preset working state, switching the working mode to the first mode; the communication priority between the Bluetooth device and the terminal device in the preset working state is higher; or; in response to a received mode switching instruction, switching the working mode to a mode indicated by the instruction.

[0009] In some embodiments, the determination of the communication scores of the plurality of Bluetooth channels based on the peripheral signals comprises: comprehensively calculating the communication scores of the plurality of Bluetooth channels based on the following features: signal strength; signal-to-noise ratio; and data packet collision rate.

[0010] In some embodiments, the maintaining of the transmission of the key information between the Bluetooth device and the terminal device by the daemon process comprises: maintaining pushing of the key information by the daemon process through a BLE broadcast channel; or; sending the key information by the daemon process through a special channel agreed in advance with the terminal device.

[0011] The application also proposes a Bluetooth communication method based on edge computing applied to a terminal device. The terminal device is in communication connection with an edge probe instrument. The edge probe instrument is used to determine the communication scores of multiple Bluetooth channels based on peripheral signals. The multiple Bluetooth channels are used for communication between a Bluetooth device and the terminal device. Based on the communication scores, the optimal channel among the multiple Bluetooth channels is determined. The Bluetooth device and the terminal device are notified to switch to the optimal channel for Bluetooth communication. The time interval between the notification of the Bluetooth device and the terminal device does not exceed a preset time length. The method comprises: in response to receiving the switching notification of the optimal channel sent by the edge probe instrument, switching to the optimal channel.

[0012] In some embodiments, the edge probe instrument comprises a daemon process. The terminal device is equipped with an application program for interacting with the Bluetooth device. The edge probe instrument is also used to maintain the transmission of key information between the Bluetooth device and the terminal device through the daemon process when the application program carried by the terminal device is in a preset state. The method further comprises: in response to receiving the key information, displaying the key information.

[0013] The application also proposes a Bluetooth communication system based on edge computing, comprising an edge probe instrument, a Bluetooth device connected to the edge probe instrument, and a terminal device. The Bluetooth device communicates with the terminal device through multiple Bluetooth channels. The edge probe instrument is used to determine the communication scores of multiple Bluetooth channels based on peripheral signals. The multiple Bluetooth channels are used for communication between the Bluetooth device and the terminal device. Based on the communication scores, the optimal channel among the multiple Bluetooth channels is determined. The Bluetooth device and the terminal device are notified to switch to the optimal channel for Bluetooth communication. The time interval between the notification of the Bluetooth device and the terminal device does not exceed a preset time length.

[0014] In some embodiments, the edge probe instrument comprises a daemon process. The terminal device is equipped with an application program for interacting with the Bluetooth device. The edge probe instrument is also used to maintain the transmission of key information between the Bluetooth device and the terminal device through the daemon process when the application program carried by the terminal device is in a preset state.

[0015] In the scheme described in any of the foregoing embodiments, the edge probe instrument can evaluate the scores of each Bluetooth channel based on the peripheral signals at the end of the edge probe instrument instead of the terminal device, determine the optimal channel with the best communication quality, and then notify the Bluetooth device and the terminal device to switch to the optimal channel within a preset time interval. Thus, first, the communication channel of the Bluetooth device and the terminal device can be switched to the optimal channel to solve the Bluetooth interference problem and reduce information transmission delay. Second, the calculation is performed at the edge instead of the terminal device, thereby releasing the pressure on the terminal device (e.g., a mobile phone, a palm computer, etc.) and improving the channel switching efficiency and reducing the risk of congestion. Third, the switching can be completed within a preset time interval (a short time), realizing a seamless synchronization mechanism, improving the switching efficiency, and reducing the communication delay.

[0016] It should be understood that the general description above and the detailed description below are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the one or more embodiments of the present application or the related art, the drawings needed to be used in the embodiment or related art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the one or more embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0018] The drawings needed to be used in the embodiment or related art description will be briefly introduced.

[0019] Figure 1 A method flowchart of a Bluetooth communication method based on edge computing shown in the present application.

[0020] Figure 2 A schematic diagram of a working mode switching method shown in the present application.

[0021] Figure 3 A structural schematic diagram of a Bluetooth communication system based on edge computing shown in the present application.

[0022] Figure 4 A structural schematic diagram of a Bluetooth communication system based on edge computing shown in the present application. DETAILED DESCRIPTION

[0023] The exemplary embodiments will be described in detail below with reference to the drawings. The following description is presented in connection with the described embodiments, but is not intended to limit the application to these embodiments. Rather, the exemplary embodiments are meant to provide examples of apparatus and methods that are consistent with the application as detailed below in the appended claims.

[0024] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and / or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. As used herein, the term "if' can be construed to mean "when" or "in response to determining" or it can be construed to mean "if will" or "upon determining."

[0025] In view of the above, the application provides a Bluetooth communication method based on edge computing. The method evaluates the scores of Bluetooth channels based on surrounding signals at the edge probe instrument end rather than the terminal device end, obtains an optimal channel with the best communication quality, and then notifies the Bluetooth device and the terminal device to switch to the optimal channel within a preset time interval. Thus, first, the communication channel of the Bluetooth device and the terminal device can be switched to the optimal channel to solve the Bluetooth interference problem and reduce information transmission delay. Second, the calculation is performed at the edge rather than the terminal device, thereby releasing the pressure of the terminal device (e.g., a mobile phone, a palm computer, etc.), improving channel switching efficiency, and preventing blockage. Third, the switching can be completed within a preset time interval (a short time), a seamless synchronization mechanism is achieved, the switching efficiency is high, and the communication delay is reduced.

[0026] The embodiments will be described below with reference to the accompanying drawings.

[0027] Please refer to Figure 1 , Figure 1 The application provides a method flow diagram of a Bluetooth communication method based on edge computing. As shown in Figure 1As shown, the method can include S102-S106. The method can be applied to an edge probe instrument. The edge probe instrument is an edge device, which can be integrated on a Bluetooth device or a scheduling device between a Bluetooth device (a thermometer) and a terminal device (a mobile phone), the Bluetooth device refers to a device with functions, such as a Bluetooth temperature monitor, a smart cooking device, a Bluetooth speaker, a heart rate bracelet, etc.; the terminal device refers to a device that interacts with the user, such as a mobile phone, a palm computer, a notebook computer, a PAD, etc. The terminal device can carry an APP to communicate with the Bluetooth device, and the two communicate through a Bluetooth channel.

[0028] It should be noted that the edge probe instrument is integrated on the Bluetooth device, which is a module of the Bluetooth device, and can interact with the Bluetooth device (for example, a master module of the Bluetooth device) and the terminal device to complete information transmission. The edge probe instrument can also be carried on a scheduling device independent of the Bluetooth device and the terminal device, and interact with the Bluetooth device and the terminal device to complete information transmission. The edge probe instrument can be used as a separate module or embedded in the Bluetooth device or the scheduling device in an embedded manner, and the present application does not make related limitations.

[0029] S102: Determine the communication score of a plurality of Bluetooth channels based on the surrounding signals.

[0030] The edge probe instrument actively scans a plurality of Bluetooth channels (for example, a frequency band between 2.40-2.48 GHz) involved in the communication between the Bluetooth device and the terminal device, collects the surrounding wireless signal characteristic parameters of each channel, quantitatively evaluates the communication quality of each channel through a preset algorithm, and finally obtains the communication score corresponding to each channel.

[0031] In some embodiments, the signal scanning range covers all available Bluetooth channels (usually 16 standard Bluetooth channels) that can be used for communication between the Bluetooth device and the terminal device, and potential high-quality channels can not be missed.

[0032] Parameters that are strongly related to communication quality can be collected, including but not limited to signal strength (RSSI), signal-to-noise ratio (SNR), and data packet collision rate (CollisionRate). Among them, the signal strength reflects the attenuation degree of the channel signal, the signal-to-noise ratio reflects the ratio of effective signal to interference signal, and the data packet collision rate reflects the frequency of signal conflict in the channel.

[0033] In some embodiments, the signal characteristic parameters are signal strength, signal-to-noise ratio, and data packet collision rate. The stronger the signal strength, the better the channel communication quality; the higher the signal-to-noise ratio, the more stable the transmission, i.e., the better the channel quality; the lower the data packet collision rate, the lower the signal conflict frequency, representing better channel quality.

[0034] For any channel, after obtaining the signal strength, signal-to-noise ratio and data packet collision rate corresponding to the channel, for the signal strength, signal-to-noise ratio and data packet collision rate, the actual signal strength, signal-to-noise ratio and data packet collision rate can be respectively mapped to the range of 0-100 points according to the pre-maintained signal strength range, signal-to-noise ratio range and data packet collision rate range, to obtain the signal strength score, signal-to-noise ratio score and data packet collision rate score. Among them, the signal strength score is positively correlated with the signal strength, the higher the signal strength, the higher the signal strength score; the signal-to-noise ratio score is positively correlated with the signal-to-noise ratio, the higher the signal-to-noise ratio, the higher the signal-to-noise ratio score; the data packet collision rate score is negatively correlated with the data packet collision rate, the lower the data packet collision rate, the higher the data packet collision rate score. There are many kinds of formulas about positive correlation and negative correlation.

[0035] For example, the positive correlation formula can be: ; wherein A represents the signal strength score or the signal-to-noise ratio score, a represents the actual signal strength or the signal-to-noise ratio, min represents the minimum value in the range of values, and max represents the maximum value in the range of values. The negative correlation formula can be: ; wherein B represents the data packet collision rate score, b represents the actual data packet collision rate, min represents the minimum value in the range of values, and max represents the maximum value in the range of values. Generally, the score is an integer.

[0036] The signal strength score, signal-to-noise ratio score and data packet collision rate score obtained can then be weighted and processed by a weighted sum algorithm to form a communication score. The higher the score, the better the communication quality of the channel (the smaller the interference, the stronger the transmission stability, and the lower the risk of data loss), for example, setting the signal strength weight to 0.3, the signal-to-noise ratio weight to 0.4, and the data packet collision rate weight to 0.3, and the communication quality of the channels can be quantitatively sorted according to the communication scores of the channels.

[0037] S104: determining the optimal channel in the plurality of Bluetooth channels based on the communication score.

[0038] The edge probe instrument can sort the communication scores of all Bluetooth channels obtained in S102, and filter out the channel with the highest score as the optimal channel, which is the channel most suitable for the Bluetooth device to communicate with the terminal device under the current environment.

[0039] In some embodiments, the edge probe instrument sorts all the scanned available Bluetooth channels in the order from high to low communication score, and determines the quality priority of each channel.

[0040] Then the first ranked channel can be selected as the optimal channel. If there are two or more channels with the same score and the highest score, further filtering can be performed through preset rules (such as channel number from small to large, channel usage time from short to long) to ensure that only one unique optimal channel is determined.

[0041] The edge probe instrument periodically repeats steps S102 and S104 (such as every 30 seconds), updates the communication scores of each channel in real time, and immediately determines the optimal channel again when the score of the original optimal channel decreases due to environmental interference and a new channel with a higher score appears, ensuring that the communication quality is always in the optimal state.

[0042] Of course, steps S102 and S104 can also be performed to determine the optimal channel when the current channel quality is poor.

[0043] S106: notify the Bluetooth device and the terminal device to switch to the optimal channel for Bluetooth communication; wherein the time interval between notifying the Bluetooth device and the terminal device is no more than a preset time length.

[0044] The preset time length is a relatively short time length, such as 0.5 seconds, 0.3 seconds, or 0.8 seconds, which can be set according to requirements.

[0045] After the edge probe instrument determines the optimal channel, it sends channel switching notifications (containing information such as the frequency of the optimal channel and the switching time window) to the Bluetooth device and the terminal device, and strictly controls the time interval between sending the notifications to the two devices within the preset time length (such as 0.5 seconds), so that the Bluetooth device and the terminal device can complete the channel switching synchronously and achieve seamless communication.

[0046] The notification information can include the optimal channel identifier (such as channel number, frequency), switching trigger time, and switching completion time limit (time window, such as 0.2 seconds), to ensure that the Bluetooth device and the terminal device can quickly analyze and perform the switching operation.

[0047] In some ways, the edge probe instrument can first send a notification to the Bluetooth device and then send a notification to the terminal device, or vice versa. The time difference between the two notifications should not exceed the preset time length (such as 0.1 seconds, 0.3 seconds, or 0.5 seconds, which can be configured according to the actual scene), to avoid out-of-sync switching due to a large notification reception time difference.

[0048] In some ways, the probe instrument can notify the Bluetooth device, which can then notify the terminal device to switch channels. In this way, the original communication mechanism of the Bluetooth device and the terminal device can be used, reducing the development difficulty.

[0049] After the Bluetooth device and the terminal device complete the channel switching, the edge probe instrument returns the confirmation information of the successful switching to the Bluetooth device; if the edge probe instrument does not receive the confirmation information within the preset time, the edge probe instrument re-sends the switching notification to ensure that the switching operation is executed.

[0050] Through the schemes described in S102-S106, the scores of each Bluetooth channel can be evaluated based on the surrounding signals at the edge probe instrument rather than the terminal device, the optimal channel with the optimal communication quality is obtained, and then the Bluetooth device and the terminal device are notified to switch to the optimal channel within a preset time interval, thereby first, the communication channel of the Bluetooth device and the terminal device can be switched to the optimal channel to solve the Bluetooth interference problem and reduce the information transmission delay; second, the calculation is performed at the edge rather than the terminal device, thereby releasing the pressure of the terminal device (for example, a mobile phone, a palm computer, etc.), the channel switching efficiency is high, and the channel switching is not easy to be blocked; third, the switching can be completed within a preset time interval (a short time), a seamless synchronization mechanism is realized, the switching efficiency is high, and the communication delay is reduced.

[0051] The scene of monitoring the temperature of a family barbecue is taken as an example for description.

[0052] The edge probe instrument is integrated in the Bluetooth barbecue thermometer (the Bluetooth device), the terminal device is a smart phone of a user, the smart phone is loaded with a barbecue temperature monitoring APP, and the Bluetooth barbecue thermometer and the smart phone initially communicate through channel 3.

[0053] Suppose that the communication score calculation weight is signal strength 0.3, signal-to-noise ratio 0.4, and data packet collision rate 0.3, the preset time interval (notification time interval) is 0.3 seconds, the switching time window is 0.2 seconds, and the channel scanning period is 30 seconds / once.

[0054] The specific implementation process is as follows:

[0055] The S102 step is executed, the user starts the Bluetooth barbecue thermometer to monitor the barbecue temperature, meanwhile, there are multiple Bluetooth devices such as a Bluetooth sound box, a Bluetooth earphone, and a smart door lock in the surrounding, and all the Bluetooth devices work in the 2.40-2.48 GHz frequency band. The edge probe instrument scans all the 16 Bluetooth channels at a period of 30 seconds / once, and collects the characteristic parameters of each channel.

[0056] Suppose that channel 3 (the current communication channel): the signal strength is -70 dBm, the signal strength score in the range of -107 dBm to -54 dBm mapped through the above positive correlation formula is 70 points; the signal-to-noise ratio is 14 dB, the score in the range of -16 dB to 24 dB mapped through the above positive correlation formula is 75 points; and the data packet collision rate is 18%, the score in the range of 0 to 45% mapped through the above negative correlation formula is 60 points.

[0057] Channel 6: signal strength -62dBm, mapped to a score of 85 in the range of -107dBm to -54dBm by the above positive correlation formula; signal-to-noise ratio 22dB, mapped to a score of 95 in the range of -16dB to 24dB by the above positive correlation formula; data packet collision rate 5%, mapped to a score of 89 in the range of 0 to 45% by the above negative correlation formula.

[0058] Assume that the quality of other channels is lower than that of channel 3.

[0059] The edge probe instrument calculates the communication score by weighted summation:

[0060] Channel 3 score: 70x0.3+75x0.4+60x0.3=21+30+18=69;

[0061] Channel 6 score: 85x0.3+95x0.4+89x0.3=25.5+38+26.7=90.2.

[0062] The step S104 of determining the optimal channel is executed, the edge probe instrument sorts the scores of all channels, and channel 6 is ranked first with a score of 90.2, so channel 6 is determined as the optimal channel in the current environment.

[0063] The step S106 of notifying synchronous switching is executed, the edge probe instrument first sends a channel switching notification to the Bluetooth barbecue thermometer, the notification content is "switch to channel 6, trigger time: current time + 0.1 seconds, switching time limit: 0.2 seconds"; after 0.2 seconds (not exceeding the preset time 0.3 seconds), the same switching notification is sent to the user's smart phone. After receiving the notification, the Bluetooth barbecue thermometer starts channel switching at the trigger time point, and completes the switching within 0.15 seconds and returns the confirmation information to the edge probe instrument; the barbecue temperature monitoring APP of the smart phone receives the notification, and synchronously starts the channel switching of the Bluetooth module at the trigger time point, and completes the switching within 0.18 seconds and returns the confirmation information. After the switching is completed, the Bluetooth barbecue thermometer transmits real-time temperature data to the phone APP through channel 6, and there is no delay and no data packet loss in the transmission process, and the temperature curve on the APP is continuous and stable; when the temperature exceeds the preset threshold (200℃), the alarm information is pushed to the mobile phone in time, and the user adjusts the barbecue temperature in time to avoid burning the food.

[0064] After 30 seconds, the edge probe instrument executes the step S102 again, scans and finds that the surrounding Bluetooth speaker is turned off, the data packet collision rate of channel 3 decreases, and the score increases to 82, but it is still lower than that of channel 6 which is 91, so channel 6 is maintained as the optimal channel; if the subsequent surrounding interference is enhanced to cause the score of channel 6 to decrease, the edge probe instrument will repeat the above steps to determine a new optimal channel and notify synchronous switching, so as to always guarantee the communication quality.

[0065] The example fully presents the execution logic of steps S102-S106, effectively solves the Bluetooth interference problem in the multi-device coexistence scenario through the edge probe instrument-led channel assessment, screening and synchronous switching, releases the system resources of the mobile phone, and realizes seamless switching, reduces the communication delay.

[0066] In some cases, the mobile phone APP usually needs to run continuously in the background to maintain Bluetooth communication. When the system resources are tight or are automatically cleaned up, the communication link between the APP and the Bluetooth device will be interrupted, and critical information (such as alarm information) cannot be transmitted in time, further reducing the reliability of Bluetooth communication.

[0067] To solve this problem, a daemon process can be maintained on the edge probe instrument. The function of this process is to ensure that critical information (such as alarm information) on the Bluetooth device is normally transmitted to the mobile phone end even if the APP is cleaned up or similar situations occur, ensuring the reliability of Bluetooth communication.

[0068] Specifically, the edge probe instrument includes a daemon process; the terminal device is equipped with an application program for interacting with the Bluetooth device. The above communication method further includes S108, in the case that the application program carried by the terminal device is in a preset state, the transmission of critical information between the Bluetooth device and the terminal device is maintained through the daemon process.

[0069] The edge probe instrument has a high-priority daemon process that runs independently of the application program (APP) of the terminal device. When the APP of the terminal device enters a preset state (offline, communication interruption, unstable communication) due to system resource shortage, automatic cleaning process, network instability, etc., the daemon process can maintain the transmission of critical information between the Bluetooth device and the terminal device through a dedicated communication mechanism, ensuring that core data is not lost or delayed.

[0070] The daemon process can monitor the communication link state between the terminal device APP and the Bluetooth device in real time, and determine whether the APP is in a preset state by interacting with the Bluetooth module of the terminal device. The specific monitoring dimensions include: whether the APP process is alive, the data packet transmission success rate of the communication link (less than a preset threshold such as 80% to determine that the communication is unstable), the response timeout time of the Bluetooth module of the terminal device (more than a preset time such as 3 seconds to determine that the APP is offline);

[0071] When any of the following situations is detected, the daemon process works immediately: the terminal device system returns a signal that the APP process has terminated; no response is received after sending data to the APP for three consecutive times; the data packet transmission success rate of the communication link is less than 80% for five consecutive seconds.

[0072] The data collected by the Bluetooth device is divided into ordinary data (such as conventional temperature data and step data) and key information (such as alarm information, device fault prompt, connection state abnormal notification and the like), and the daemon process automatically identifies the key information through preset rules (such as data identification bit and priority label), and can execute a special transmission mechanism on the key information to avoid resource waste.

[0073] The daemon process can ensure that the key information reaches the user through at least one of the following transmission mechanisms: first, through a BLE broadcast channel: through the broadcast mode of Bluetooth Low Energy (BLE), the key information is repeatedly pushed periodically (the push frequency is, for example, 1 time / second), and the Bluetooth module of the terminal device can receive the broadcast information in the background without being bound to the APP. Specifically, the Bluetooth broadcast mode can be a frequency hopping mode, such as hopping through 37 / 38 / 39 channels in turn, and the others are data channels. It can be understood that the Bluetooth broadcast is a one-way transmission.

[0074] Second, through a special communication channel: the edge probe instrument and the terminal device agree on a special communication UUID when initially paired, and the daemon process sends the key information to the terminal device through the special channel, and if no receiving confirmation is received, the sending is repeated (for example, a maximum of 5 times).

[0075] When the daemon process monitors that the APP process restarts and resumes communication, the data packet transmission success rate of the communication link rises to more than 90%, and the terminal device feedback has received the key information, the daemon process stops the special transmission mechanism and restores the normal communication mode.

[0076] The daemon process is independent of the APP and is not affected by the terminal device system resource allocation and process cleaning strategy, which fundamentally solves the problem of key information transmission interruption caused by APP offline or unstable communication; at the same time, through the design of “identifying key information + special transmission channel”, the communication resource consumption is reduced under the premise of ensuring reliability, and practicability and efficiency are taken into account.

[0077] Taking the family Bluetooth temperature monitoring scene as an example.

[0078] The edge probe instrument is integrated in a Bluetooth temperature and humidity meter (Bluetooth device), and the terminal device is a user's mobile phone, which is equipped with a temperature and humidity monitoring APP (preset alarm threshold: humidity > 85%); the daemon process parameters: monitoring period 1 second, response timeout 3 seconds, BLE broadcast push frequency 1 time / second.

[0079] Key information: humidity over-limit alarm, device low power prompt.

[0080] The Bluetooth temperature and humidity meter can transmit conventional temperature and humidity data to the mobile phone APP in real time, and the daemon process is on standby for monitoring.

[0081] Assume that the user's mobile phone causes the system to clean up the background due to running a large game, and the temperature and humidity monitoring APP is terminated (preset state).

[0082] The edge probe instrument monitors the termination of the APP process, and continuously sends data for 3 times without response, immediately starts the daemon process. At this time, the indoor humidity rises to 88%, and the temperature and humidity meter generates a high humidity alarm information (key information).

[0083] The daemon process can push alarm information through the BLE broadcast channel once every second, and repeatedly send through the dedicated channel.

[0084] The mobile phone Bluetooth module receives the broadcast in the background, triggers the system pop-up window + ring alarm, and the user checks in time and starts the dehumidification device.

[0085] After the user restarts the APP, the daemon process detects that the communication is restored, stops special transmission, and restores regular data transmission.

[0086] Through the daemon process, the transmission of key information of the Bluetooth device can be ensured after the APP is offline, the reliability of Bluetooth communication is improved, and the daemon process is triggered by the edge probe instrument, reducing the pressure on the terminal device.

[0087] The following introduces two working modes of the edge probe instrument, that is, the working mode of the edge probe instrument includes a first mode and a second mode; the first mode includes switching to the optimal channel when it is detected that the communication quality of the current channel of the Bluetooth device does not meet the preset requirement; the second mode includes periodically and adaptively selecting the optimal channel.

[0088] Take the home Bluetooth device cooperation scene (Bluetooth speaker + mobile phone APP, edge probe instrument integrated in the speaker) as an example.

[0089] Assume that the communication score is required to be ≥70 points (satisfy the communication quality); the second mode periodic scanning period = 60 seconds.

[0090] In the first mode, assume that the current communication channel (channel 4) causes the communication score to drop to 62 points (lower than the preset requirement of 70 points) due to the addition of a Bluetooth earphone in the surrounding; the edge probe instrument detects that the communication quality does not meet the preset requirement, immediately scans all channels, determines that channel 9 (score 85 points) is the optimal channel, and synchronously notifies the speaker and the mobile phone to switch within 0.3 seconds. After switching, the communication is restored and stable, and the music plays without lag.

[0091] In the second mode, the edge probe scans all channels periodically every 60 seconds, initially communicating through channel 7 (score of 78). During the next scan, channel 7's score drops to 72, while channel 3's score rises to 83. The edge probe automatically updates the optimal channel to channel 3, notifying the devices to switch synchronously without manual intervention. This achieves adaptive scheduling of Bluetooth channels, continuously ensuring communication quality. In essence, when the edge probe acts as a scheduling device independent of individual Bluetooth devices, it can coordinate and schedule the communication channels of each Bluetooth device based on their evaluated channel scores, achieving optimal configuration. For example, Bluetooth devices in critical operating modes can use the optimal channel, ensuring the quality of information transmission between these devices.

[0092] In the first mode, the optimal channel is switched when Bluetooth communication quality is low, ensuring consistently high Bluetooth communication quality between the Bluetooth device and the terminal device, thus guaranteeing the quality of information transmission. However, in the second mode, the optimal channel is switched periodically, meaning there may be periods of lower Bluetooth communication quality. Therefore, the first mode can be considered to offer better assurance of Bluetooth device communication quality compared to the second mode. In some embodiments, based on the difference between these two operating modes, the edge probe can automatically switch operating modes according to the Bluetooth device's operating state, setting the mode to the first mode in a preset operating state to ensure the quality of the Bluetooth channel and, consequently, the quality of information transmission.

[0093] Please see Figure 2 , Figure 2 This is a schematic diagram illustrating the working mode switching method of this application. Figure 2 As shown, the method may include S202-S204.

[0094] S202, Get the current working status.

[0095] S204, if the current working state is a preset working state, switch the working mode to the first mode; in the preset working state, the communication priority between the Bluetooth device and the terminal device is higher.

[0096] The preset working state refers to the Bluetooth device being in operation, for example, a temperature detector detecting cooking temperature, i.e., in a critical cooking state. When the probe detects that the Bluetooth device is in the preset working state, it can switch to the first mode to ensure the quality of the Bluetooth channel, thereby ensuring the quality of information transmission.

[0097] Of course, you can switch to the second mode when the system is not in the default working state.

[0098] Taking a Bluetooth barbecue thermometer (Bluetooth device) + mobile APP (terminal device) as an example, the edge probe is integrated into the thermometer.

[0099] The thermometer includes a key cooking state (the thermometer is monitoring the grilling temperature, and the communication priority is high) and an idle state (the thermometer is not monitoring the cooking, only the regular environmental temperature measurement, and the communication priority is low).

[0100] The first mode trigger condition: the communication score < 75 points (does not meet the preset requirement); the second mode regular scanning period = 60 seconds.

[0101] S202 (acquire working state), the edge probe instrument detects that the Bluetooth grilling thermometer has started the cooking temperature monitoring (the probe receives the “cooking mode start” signal of the thermometer), and it is determined that the current is the preset working state.

[0102] S204 (switch the first mode), the working mode is switched to the first mode.

[0103] Therefore, during the grilling process, if the current channel is disturbed by the surrounding Bluetooth sound box, the communication score drops to 70 points (lower than the preset requirement), the edge probe instrument immediately scans and switches to the optimal channel with a score of 88 points, the temperature data is not delayed, the alarm information is immediately pushed, and the communication quality is continuously stable.

[0104] S202 (acquire working state), after the grilling is finished, the user turns off the cooking monitoring function of the thermometer, the edge probe instrument detects that the thermometer only performs the regular environmental temperature measurement, and it is determined that the current is the non-preset working state.

[0105] S204 (switch the second mode), the working mode is switched to the second mode.

[0106] Therefore, the edge probe instrument regularly scans the channel every 60 seconds, and even if the score of the current channel drops to 73 points (slightly lower than the preset requirement) during a period of time, it will not be immediately switched until the next regular scanning is updated to the optimal channel, which takes into account the communication quality and resource consumption.

[0107] In some embodiments, the user can switch the working mode by issuing an instruction, thereby improving the flexibility of mode configuration.

[0108] Specifically, the probe instrument switches the working mode to the mode indicated by the received mode switching instruction.

[0109] Taking the Bluetooth temperature and humidity meter (Bluetooth device) + mobile phone APP (terminal device) as an example, the edge probe instrument is integrated into the temperature and humidity meter.

[0110] The user can select “real-time guarantee mode” (corresponding to the first mode) or “energy-saving optimization mode” (corresponding to the second mode) through the “mode setting” interface of the mobile phone APP, and the APP issues a corresponding mode switching instruction to the edge probe instrument.

[0111] For example, a user uses a hygrometer to monitor the water temperature of a fish tank (real-time communication quality needs to be ensured), clicks "real-time guarantee mode" on the APP, and issues an instruction to switch to the first mode. After receiving the instruction, the edge probe instrument immediately switches to the first mode. If the current channel communication quality does not meet the preset requirements, the probe instrument scans and switches to the optimal channel in real time to ensure that the water temperature data is transmitted without delay, and to avoid the fish tank water temperature being abnormally discovered in time due to communication interruption.

[0112] If only regular monitoring of indoor humidity (with lower real-time requirements) is needed, click "energy-saving optimization mode" on the APP, and issue an instruction to switch to the second mode. The edge probe instrument switches to the second mode in response to the instruction, and periodically scans the optimal channel at a preset period (such as 60 seconds) without the need for real-time monitoring, thereby reducing device power consumption and meeting daily monitoring needs.

[0113] Corresponding to any of the preceding embodiments, the application also proposes a Bluetooth communication method based on edge computing, applied to a terminal device. It can be understood that the operations performed on the terminal device side correspond to the operations performed by the edge probe instrument, and cooperate with each other to complete the Bluetooth communication method illustrated in any of the preceding embodiments. The embodiments on the terminal device side can refer to the embodiments on the probe instrument side, which will not be described in detail here.

[0114] In some embodiments, the terminal device is in communication connection with the edge probe instrument; the edge probe instrument is configured to determine communication scores of a plurality of Bluetooth channels based on surrounding signals; the plurality of Bluetooth channels are used for communication between a Bluetooth device and the terminal device; based on the communication scores, an optimal channel in the plurality of Bluetooth channels is determined; the Bluetooth device and the terminal device are notified to switch to the optimal channel for Bluetooth communication; and a time interval between the notification of the Bluetooth device and the terminal device does not exceed a preset time length.

[0115] The method comprises:

[0116] In response to receiving the switching notification of the optimal channel sent by the edge probe instrument, switching to the optimal channel.

[0117] In some embodiments, the edge probe instrument comprises a daemon process; the terminal device is equipped with an application program for interacting with the Bluetooth device; and the edge probe instrument is further configured to, in a case where the application program carried by the terminal device is in a preset state, maintain transmission of key information between the Bluetooth device and the terminal device through the daemon process.

[0118] The method further comprises:

[0119] In response to receiving the key information, the key information is displayed.

[0120] In some embodiments, the working mode of the edge probe instrument comprises a first mode and a second mode; the first mode comprises switching to the optimal channel when it is detected that the communication quality of the current channel of the Bluetooth device does not meet the preset requirements; the second mode comprises periodically and adaptively selecting the optimal channel.

[0121] In some embodiments, the method further comprises:

[0122] acquiring a current working state;

[0123] when the current working state is a preset working state, switching the working mode to the first mode; the communication priority between the Bluetooth device and the terminal device in the preset working state is higher;

[0124] or;

[0125] switching the working mode to the mode indicated by the received mode switching instruction.

[0126] In some embodiments, the determination of the communication scores of the plurality of Bluetooth channels based on the surrounding signals comprises:

[0127] comprehensively calculating the communication scores of the plurality of Bluetooth channels based on the following features:

[0128] signal strength; signal-to-noise ratio; data packet collision rate.

[0129] In some embodiments, the maintaining of the transmission of the key information between the Bluetooth device and the terminal device by the daemon process comprises:

[0130] maintaining the pushing of the key information through the BLE broadcast channel by the daemon process;

[0131] or;

[0132] sending the key information through a special channel agreed in advance with the terminal device by the daemon process.

[0133] In the scheme shown in any of the above embodiments, the edge probe instrument can evaluate the scores of each Bluetooth channel based on the peripheral signals at the edge probe instrument end rather than the terminal device end, determine the optimal channel with the best communication quality, and then notify the Bluetooth device and the terminal device to switch to the optimal channel within a preset time interval. The terminal device can switch to the optimal channel. First, the communication channel of the Bluetooth device and the terminal device can be switched to the optimal channel to solve the Bluetooth interference problem and reduce information transmission delay. Second, the calculation is performed at the edge rather than the terminal device, thereby releasing the pressure on the terminal device (such as a mobile phone, a palm computer, etc.), improving the channel switching efficiency, and preventing blockage. Third, the switching can be completed within a preset time interval (a short time), realizing a seamless synchronization mechanism, improving the switching efficiency, and reducing communication delay.

[0134] Corresponding to any of the above embodiments, the application further provides a Bluetooth communication system based on edge computing.

[0135] The position of the edge probe instrument in the application has at least two cases. One is integrated in the Bluetooth device, which is part of the Bluetooth device. The other is independent of the Bluetooth device and the terminal device, and is integrated in the scheduling device. Please refer to Figure 3 , Figure 3 A structure diagram of a Bluetooth communication system based on edge computing is shown in the application. As Figure 3 The edge probe instrument 310 in the system is integrated in the Bluetooth device 320. Please refer to Figure 4 , Figure 4 A structure diagram of a Bluetooth communication system based on edge computing is shown in the application. As Figure 4 The edge probe instrument 410 in the system is integrated in the scheduling device 440, which can be independent of the Bluetooth devices and at least schedule the Bluetooth channels of the Bluetooth devices. Of course, some devices in the figure can also communicate with each other, but the connection lines are not shown in the figure. For example, the terminal device and the edge probe instrument can communicate with each other, the edge probe instrument and the Bluetooth device can communicate with each other, and the Bluetooth device and the terminal device can also communicate with each other. Of course, the number of devices in the figure is also illustrative, and the actual number can be more.

[0136] The operations performed by the devices in the system 300 and the system 400 are the same, and the specific implementation can be different due to the connection mode between the devices.

[0137] In the above system, the edge probe instrument, the Bluetooth device connected to the edge probe instrument, and the terminal device are included.

[0138] The Bluetooth device communicates with the terminal device through multiple Bluetooth channels.

[0139] The edge probe instrument is configured to determine a communication score of a plurality of Bluetooth channels based on the peripheral signal, wherein the plurality of Bluetooth channels are used for communication between the Bluetooth device and the terminal device.

[0140] The edge probe instrument is configured to determine an optimal channel from the plurality of Bluetooth channels based on the communication score.

[0141] The edge probe instrument is configured to notify the Bluetooth device and the terminal device to switch to the optimal channel for Bluetooth communication, wherein a time interval between the notification of the Bluetooth device and the terminal device is not more than a preset time length.

[0142] The Bluetooth device is configured to switch to the optimal channel in response to a switching instruction.

[0143] The terminal device is configured to switch to the optimal channel in response to a switching instruction.

[0144] In some embodiments, the edge probe instrument comprises a daemon process, and the terminal device is equipped with an application program for interacting with the Bluetooth device.

[0145] The edge probe instrument is further configured to maintain transmission of critical information between the Bluetooth device and the terminal device through the daemon process when the application program equipped on the terminal device is in a preset state.

[0146] The Bluetooth device is configured to send the critical information through a channel indicated by the daemon process.

[0147] The terminal device is configured to receive and display the critical information through a channel indicated by the daemon process.

[0148] In some embodiments, the edge probe instrument comprises a first mode and a second mode, wherein the first mode comprises switching to the optimal channel when it is detected that a communication quality of a current channel of the Bluetooth device does not meet a preset requirement, and the second mode comprises periodically and adaptively selecting an optimal channel.

[0149] In some embodiments, the edge probe instrument is further configured to:

[0150] acquire a current working state;

[0151] switch a working mode to the first mode when the current working state is a preset working state, wherein a communication priority between the Bluetooth device and the terminal device in the preset working state is higher;

[0152] or

[0153] switch the working mode to a mode indicated by a received mode switching instruction.

[0154] In some embodiments, the edge probe instrument is further configured to:

[0155] The communication score of the plurality of Bluetooth channels is calculated based on the following features:

[0156] Signal strength; signal-to-noise ratio; data packet collision rate.

[0157] In some embodiments, the edge probe instrument is further configured to:

[0158] The daemon maintains the push of the critical information through a BLE broadcast channel.

[0159] Or;

[0160] The daemon sends the critical information through a dedicated channel agreed in advance with the terminal device.

[0161] In any of the above systems, the score of each Bluetooth channel can be evaluated based on the surrounding signals at the edge probe instrument rather than at the terminal device, and the optimal channel with the best communication quality can be determined. Then, the Bluetooth device and the terminal device can be notified to switch to the optimal channel at a preset time interval. Thus, first, the communication channel of the Bluetooth device and the terminal device can be switched to the optimal channel to solve the Bluetooth interference problem and reduce information transmission delay. Second, the calculation is performed at the edge rather than at the terminal device, thereby releasing the pressure on the terminal device (e.g., a mobile phone, a palm computer, etc.), improving channel switching efficiency, and reducing the risk of congestion. Third, the switching can be completed within a preset time interval (short time), realizing a seamless synchronization mechanism, improving switching efficiency, and reducing communication delay.

[0162] Those skilled in the art will appreciate that one or more embodiments of the application can be provided as a method, a system, or a computer program product. Therefore, one or more embodiments of the application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of the application can take the form of a computer program product embodied in one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) having computer-usable program code embodied therein.

[0163] In this application, "and / or" means at least one of the two, for example, "A and / or B" can include three solutions: A, B, and "A and B".

[0164] The various embodiments in this disclosure are described in a progressive manner. Identical or similar parts among the various embodiments can be mutually referred to. Each embodiment focuses on the difference from other embodiments. In particular, the data processing device embodiments are described in a relatively simple manner because they are substantially similar to the method embodiments. The relevant parts can be referred to the description of the method embodiments.

[0165] The specific embodiments of the disclosure have been described. Other embodiments are within the scope of the following claims. In some cases, acts or steps recited in the claims can be performed in a different order than the order in which the acts or steps are recited in the embodiments. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous.

[0166] The embodiments of the subject matter and functional operations described in this disclosure can be implemented in digital electronic circuitry, in tangibly-embodied computer software or firmware, in computer hardware, including the structures disclosed in this disclosure and their structural equivalents, or in combinations of one or more of them. The embodiments of the subject matter described in this disclosure can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible non-transitory program carrier for execution by, or to control the operation of, data processing apparatus. Alternatively or additionally, the program instructions can be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal that is generated to encode information for transmission to suitable receiver apparatus for execution by a data processing apparatus. The computer storage medium can be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.

[0167] The processes and logic flows described in this disclosure can be performed by one or more programmable computers executing one or more computer programs to perform the functions by loading and executing the appropriate instructions in response to input data. The processes and logic flows can also be performed by special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit), and the apparatus can also be implemented as special purpose logic circuitry.

[0168] Computers suitable for the execution of a computer program can include, for example, general and / or special purpose microprocessors, or any other kind of central processing unit. Generally, a central processing unit will receive instructions and data from a read-only memory and / or a random access memory. The essential elements of a computer are a central processing unit for performing or executing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, for example, magnetic, magneto-optical disks, or optical disks. However, a computer need not have such devices. Moreover, a computer can be embedded in another device, for example, a mobile telephone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device (e.g., a universal serial bus (USB) flash drive), to name just a few.

[0169] Computer readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, for example, semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices); magnetic disks (e.g., internal hard disks or removable disks); magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

[0170] While this application contains many specific embodiments, these should not be construed as limiting the scope of any disclosure or the scope of what can be claimed, but rather as merely setting forth illustrative embodiments, and specifically embodiments described herein. Certain features that are, for clarity, described above and below in the context of separate embodiments, can also be provided in combination in a single embodiment. Conversely, various features that are, for brevity, described above and below in the context of a single embodiment, can also be provided separately or in any suitable subcombination. In addition, while features can be described above and below as being implemented in one or more specific embodiments, for the sake of brevity, these need not be implemented in only that embodiment. Further, the right of letter of the claims to any combination of features in the claims, not merely the expressly disclosed specific embodiments, is hereby expressly reserved.

[0171] Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring such order nor limiting of the claimed subject matter to the illustrated order. One will appreciate that many other operations could be performed or the described operations could be performed in a different order. Additionally, portions of the described operations could be performed in parallel. Furthermore, various components used to implement the various embodiments herein can be located on a single computing device or can be distributed across several computing devices.

[0172] Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown or sequential order to achieve desirable results. In some implementations, multitasking and parallel processing can be advantageous.

[0173] The above merely provides a preferred embodiment of one or more embodiments of the present application and does not limit one or more embodiments of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of the present application shall be included in the scope of protection of one or more embodiments of the present application.

Claims

1. A Bluetooth communication method based on edge computing, characterized by, The application is applied to an edge probe instrument; The edge probe instrument comprises a daemon process; a terminal device is provided with an application program for interacting with a Bluetooth device; The method comprises: Based on the peripheral signals, communication scores of multiple Bluetooth channels are determined; the multiple Bluetooth channels are used for communication between the Bluetooth device and the terminal device; Based on the communication scores, an optimal channel in the multiple Bluetooth channels is determined; The Bluetooth device and the terminal device are informed to switch to the optimal channel for Bluetooth communication; a time interval between informing the Bluetooth device and the terminal device does not exceed a preset time length; The method further comprises: In a case where the application program provided on the terminal device is in a communication interruption state, the daemon process is used to maintain transmission of key information between the Bluetooth device and the terminal device; the transmission of the key information between the Bluetooth device and the terminal device by the daemon process comprises: the daemon process is used to maintain pushing of the key information through a BLE broadcast channel.

2. The edge-computing-based Bluetooth communication method according to claim 1, wherein, The working mode of the edge probe instrument comprises a first mode and a second mode; the first mode comprises switching to the optimal channel in a case where it is detected that a communication quality of a current channel of the Bluetooth device does not meet a preset requirement; the second mode comprises periodically and adaptively selecting an optimal channel.

3. The edge-computing-based Bluetooth communication method according to claim 2, wherein, The method further comprises: A current working state is acquired; In a case where the current working state is a preset working state, the working mode is switched to the first mode; a communication priority between the Bluetooth device and the terminal device in the preset working state is higher; Or; In response to a received mode switching instruction, the working mode is switched to a mode indicated by the instruction.

4. The edge-computing-based Bluetooth communication method according to claim 1, wherein, The communication scores of the multiple Bluetooth channels are determined based on the peripheral signals, comprising: Based on the following features, communication scores of the multiple Bluetooth channels are comprehensively calculated: Signal strength; signal-to-noise ratio; data packet collision rate.

5. The edge-computing-based Bluetooth communication method according to claim 1, wherein, The transmission of the key information between the Bluetooth device and the terminal device by the daemon process further comprises: The daemon process is used to send the key information through a special channel previously agreed with the terminal device.

6. A Bluetooth communication method based on edge computing, characterized by, The application is applied to a terminal device; the terminal device is in communication connection with an edge probe instrument; the edge probe instrument is used for determining communication scores of multiple Bluetooth channels based on peripheral signals; the multiple Bluetooth channels are used for communication between a Bluetooth device and the terminal device; based on the communication scores, an optimal channel in the multiple Bluetooth channels is determined; the Bluetooth device and the terminal device are informed to switch to the optimal channel for Bluetooth communication; a time interval between informing the Bluetooth device and the terminal device does not exceed a preset time length; the edge probe instrument comprises a daemon process; the terminal device is provided with an application program for interacting with the Bluetooth device; the edge probe instrument is further used for maintaining transmission of key information between the Bluetooth device and the terminal device through the daemon process in a case where the application program carried on the terminal device is in a communication interruption state; the maintaining transmission of the key information between the Bluetooth device and the terminal device through the daemon process comprises maintaining pushing of the key information through a BLE broadcast channel through the daemon process. The method comprises: in response to receiving the switching notification of the optimal channel sent by the edge probe instrument, switching to the optimal channel; the method further comprises: in response to receiving the key information, displaying the key information.

7. An edge computing based Bluetooth communication system, characterized by, comprise an edge probe instrument, a Bluetooth device and a terminal device connected with the edge probe instrument; the edge probe instrument comprises a daemon process; the terminal device is provided with an application program for interacting with the Bluetooth device; the Bluetooth device communicates with the terminal device through multiple Bluetooth channels; the edge probe instrument is used for determining communication scores of multiple Bluetooth channels based on peripheral signals; the multiple Bluetooth channels are used for communication between a Bluetooth device and the terminal device; based on the communication scores, an optimal channel in the multiple Bluetooth channels is determined; the Bluetooth device and the terminal device are informed to switch to the optimal channel for Bluetooth communication; a time interval between informing the Bluetooth device and the terminal device does not exceed a preset time length; the edge probe instrument is further used for maintaining transmission of key information between the Bluetooth device and the terminal device through the daemon process in a case where the application program carried on the terminal device is in a communication interruption state; the maintaining transmission of the key information between the Bluetooth device and the terminal device through the daemon process comprises maintaining pushing of the key information through a BLE broadcast channel through the daemon process.

Citation Information

Patent Citations

  • Broadcast data transmission method and device based on Bluetooth equipment, medium and equipment

    CN117135576A

  • Music sharing method and system based on intelligent Bluetooth headset and Bluetooth headset

    CN119212026A