Communication method and device

By dynamically adjusting the broadcast signal interval of Bluetooth low-power devices and optimizing the broadcast interval according to signal strength and interference conditions, the problem of insufficient anti-interference capabilities of traditional Bluetooth devices is solved, and more efficient communication and lower power consumption are achieved.

CN120499608APending Publication Date: 2025-08-15FIBOCOM WIRELESS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510710375.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-28
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

Traditional Bluetooth low-power devices use fixed broadcast intervals and cannot cope with burst interference, resulting in low anti-interference ability, prone to data loss and power consumption surges.

Method used

By dynamically adjusting the interval of the broadcast signal, the broadcast interval is optimized to deal with burst interference according to the change in target signal strength and channel interference.

Benefits of technology

It improves the anti-interference ability of signal transmission, reduces power consumption, reduces data packet loss rate, and improves communication success rate and equipment battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120499608A_ABST
    Figure CN120499608A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a communication method and device. The method comprises the following steps: determining target signal strength and target channel interference; adjusting a broadcast interval of a broadcast signal according to the target signal strength and the target channel interference; and sending the broadcast signal according to the broadcast interval. By implementing the method provided by the invention, the anti-interference capability of signal transmission can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a communication method and device. Background Art

[0002] The Bluetooth Low Energy (BLE) protocol specifies an advertising interval range of 20ms to 10.28s, which must be an integer multiple of 0.625ms. By default, most devices use a fixed advertising interval of 1s. Traditional BLE devices use a fixed advertising interval, which is not robust against sudden interference and exhibits low interference immunity. Therefore, research is needed to develop a communication method that improves signal transmission's interference immunity. Summary of the Invention

[0003] An embodiment of the present application provides a communication method that can improve the anti-interference capability of signal transmission.

[0004] In a first aspect, an embodiment of the present application provides a communication method, which can be applied to a first device, and the method includes: determining a target signal strength and a target channel interference; adjusting a broadcast interval of a broadcast signal according to the target signal strength and the target channel interference; and sending the broadcast signal according to the broadcast interval.

[0005] In the embodiment of the present application, the first device adjusts the broadcast interval of the broadcast signal according to the target signal strength and the target channel interference, so that the broadcast interval can be adaptively adjusted according to changes in the target signal strength and the target channel interference. This can cope with sudden interference and further improve the anti-interference capability of signal transmission.

[0006] In one possible implementation, the adjusting the broadcast interval of the broadcast signal according to the target signal strength and the target channel interference includes: when the target signal strength is greater than a first threshold and the target channel interference is less than a second threshold, adjusting the broadcast interval to a first value; when the target signal strength is less than a third threshold and the target channel interference is greater than a fourth threshold, adjusting the broadcast interval to a second value, the first threshold being greater than the third threshold and the fourth threshold being greater than the second threshold; when the target signal strength is greater than or equal to the third threshold and less than or equal to the first threshold and the target channel interference is greater than or equal to the second threshold and less than or equal to the fourth threshold, adjusting the broadcast interval to a third value; the third value is greater than the second value and the third value is less than the first value.

[0007] In this implementation, if the target signal strength is greater than the first threshold, it indicates that the transmission power of the broadcast signal sent by the first device is relatively high and that power loss during the transmission of the broadcast signal is relatively low. If the target channel interference is less than the second threshold, it indicates that the current broadcast signal transmission environment is relatively good and that interference from other signal sources is relatively low. Therefore, when the target signal strength is greater than the first threshold and the target channel interference is less than the second threshold, the broadcast interval of the broadcast signal can be appropriately extended. By extending the broadcast interval of the broadcast signal, the broadcast frequency of the signal can be reduced, thereby reducing power consumption.

[0008] The target signal strength is less than the third threshold, indicating that the transmission power of the broadcast signal sent by the first device is small, or that the power loss during the transmission of the broadcast signal is large. The target channel interference is greater than the fourth threshold, indicating that the current broadcast signal transmission environment is poor, or that it is subject to large interference from other signal sources, and packet loss is prone to occur. Therefore, when the target signal strength is less than the third threshold and the target channel interference is greater than the fourth threshold, the broadcast interval of the broadcast signal is forcibly shortened. By shortening the broadcast interval of the broadcast signal, the frequency of retransmission is increased, so that lost data can be retransmitted in a timely manner, thereby improving data transmission efficiency.

[0009] The target signal strength is greater than or equal to the third threshold and less than or equal to the first threshold, and the target channel interference is greater than or equal to the second threshold and less than or equal to the fourth threshold. That is to say, the target signal strength and target channel interference fluctuate within a normal range. This shows that the transmission power of the broadcast signal sent by the first device and the power loss during the transmission process are within a normal range, and the current transmission environment of the broadcast signal and the interference from other signal sources are also within a normal range. There is no need to extend the broadcast interval of the broadcast signal or shorten the broadcast interval. The broadcast interval is dynamically adjusted according to the target signal strength and the size of the target channel interference, so that sudden interference can be coped with, thereby improving the anti-interference ability of signal transmission.

[0010] In one possible implementation, the first value is in a first range, the second value is in a second range, and the third value is in a third range. The lower limit value of the first range is greater than or equal to the upper limit value of the third range, and the lower limit value of the third range is greater than or equal to the upper limit value of the second range.

[0011] In this implementation, the broadcast interval is extended to a first value within a first range, allowing the first value to be flexibly adjusted based on the target signal strength and the target channel interference. The broadcast interval is shortened to a second value within a second range, allowing the second value to be flexibly adjusted based on the target signal strength and the target channel interference.

[0012] In one possible implementation, before determining the target signal strength and target channel interference, the method also includes: obtaining at least one first signal strength and at least one first channel interference, wherein the at least one first signal strength and the at least one first channel interference come from at least one second device; determining the target signal strength and target channel interference includes: determining a target second device among the at least one second device, wherein the target second device is the second device with the highest device priority among the at least one second device; and using the signal strength from the target second device as the target signal strength, and using the channel interference from the target second device as the target channel interference.

[0013] In this implementation, a first device obtains a first signal strength and a first channel interference from at least one second device, and then determines a target second device based on the device priority of the second device. Different second devices have different spatial locations, which can result in different signal strengths and channel interference. The target second device is determined based on the device priority, and the broadcast interval is then adjusted based on the signal strength and channel interference of the target second device. This allows for a more accurate broadcast interval to be adjusted for the target second device, improving the accuracy of the broadcast interval.

[0014] In a possible implementation, the device priority is determined by any one of the following methods: user selection, pre-setting, and dynamic change based on a time period.

[0015] In this implementation, device priority is determined based on user selection. This means the target second device is the one the user needs to connect to, ensuring timely fulfillment of user needs. Device priority is pre-set, improving the efficiency of the first device in determining the target second device. Device priority dynamically changes based on time periods, enabling adaptive adjustment based on usage during different time periods, improving the accuracy of determining the target second device.

[0016] In a second aspect, an embodiment of the present application provides a communication method, which is applied to a second device, and the method includes: receiving a broadcast signal; determining a first signal strength based on the broadcast signal; determining a first channel interference based on a broadcast channel, and the broadcast channel is used to transmit the broadcast signal; transmitting the first signal strength and the first channel interference to the first device.

[0017] In combination with the method described in the second aspect, in an embodiment of the present application, the second device determines the first signal strength and the first channel interference based on the received broadcast signal and the broadcast channel used to transmit the broadcast signal, and then feeds back the first signal strength and the first channel interference to the first device so that the first device can timely adjust the broadcast interval of the broadcast signal.

[0018] In a third aspect, an embodiment of the present application provides a communication device, which includes a transceiver module and a processing module. The transceiver module is used to receive or send broadcast information, and the processing module is used to adjust the broadcast interval of the broadcast signal according to the target signal strength and target channel interference.

[0019] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a transceiver, a processor, and a memory, wherein the transceiver is used to receive or send signals, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions, and perform some or all of the steps described in the first aspect of this embodiment.

[0020] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, some or all of the steps described in the first aspect of this embodiment are executed.

[0021] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, some or all of the steps described in the first aspect of this embodiment are executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments of the present application or the background technology will be described below.

[0023] Figure 1 This is a flow chart of a communication method provided in an embodiment of the present application;

[0024] Figure 2 This is a scenario diagram of a communication method provided in an embodiment of the present application;

[0025] Figure 3 This is a schematic structural diagram of a communication device provided in an embodiment of the present application;

[0026] Figure 4 This is another structural diagram of the communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0028] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.

[0029] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0030] The BLE protocol is a wireless communication technology designed for low-power applications. The BLE protocol specifies that the broadcast interval range is 20ms to 10.28s and must be an integer multiple of 0.625ms. By default, most devices use a fixed interval of 1 second, that is, the minimum value of the broadcast interval (Advertising_Interval_Min) and the maximum value of the broadcast interval (Advertising_Interval_Max) of most devices are set to the same value. The above scheme has the following defects: (1) In low signal quality or high interference scenarios, the broadcast interval is long, which is prone to data loss, thereby triggering retransmission. Frequent retransmission will cause a surge in power consumption. (2) Since the broadcast interval of traditional BLE devices uses a fixed interval, such as 1s, the broadcast interval cannot respond to sudden interference, for example, the broadcast signal and the WiFi signal conflict. (3) The accuracy of adjusting the broadcast interval based on a single parameter is low, for example, adjusting the broadcast interval based on the received signal strength indicator (RSSI).

[0031] In view of this, an embodiment of the present application provides a communication method that can improve the anti-interference capability of signal transmission.

[0032] The technical solutions provided in the embodiments of the present application can be applied to Bluetooth systems, for example, for audio transmission, data transmission, or smart home control.

[0033] The first device mentioned in the embodiments of the present application can be a master device in BLE communication, that is, the active party in BLE communication, responsible for initiating connection links and managing slave devices. For example, a smartphone, computer, etc. The second device mentioned in the embodiments of the present application can be a slave device in BLE communication, that is, a slave device in BLE communication, responsible for receiving instructions from the master device. For example, a Bluetooth headset, smartwatch, etc.

[0034] See Figure 1 , Figure 1 This is a flow chart of a communication method provided by an embodiment of the present application. Figure 1 As shown, the description of the first device and the second device in the figure can be referred to above and will not be repeated here. The steps involved in the flowchart are described in detail below.

[0035] 101. A first device sends a broadcast signal, and a second device receives the broadcast signal.

[0036] The first device transmits broadcast signals at regular intervals on broadcast channels 37, 38, and 39. These three channels correspond to center frequencies of 2402 MHz, 2426 MHz, and 2480 MHz, respectively. For example, the first device transmits data on broadcast channels 37, 38, and 39 at a fixed broadcast interval of 1 second. Broadcasting signals simultaneously on all three channels prevents data loss due to interference on any of the channels, thereby improving signal transmission reliability.

[0037] 102. The second device determines a first signal strength according to the broadcast signal, and determines a first channel interference according to the broadcast channel.

[0038] The second device is provided with an RSSI module for measuring the first signal strength of the received broadcast signal. For example, the RSSI module periodically (for example, 10ms) collects the broadcast signal, and then measures the first signal strength based on the broadcast signal. Optionally, after the second device obtains multiple signal strengths, it eliminates instantaneous noise, such as spikes or pulses in the signal, through sliding window filtering. For example, the second device collects the broadcast signal to obtain 5 original signal strengths [-35dBm, -41dBm, -28dBm, -50dBm, -43dBm], the window size N=3, the window slides to the first position, that is, the average value of the data [-35dBm, -41dBm, -28dBm] is calculated, -(35+41+28) / 3≈-34.7dBm, the window slides to the second position, that is, the data [ -41dBm, -28dBm, -50dBm] calculate the average value, -(41+28+50) / 3≈-39.7dBm, the window slides to the third position, that is, the average value of the data [-28dBm, -50dBm, -43dBm] is calculated, -(28+50+43) / 3≈-40.3dBm, so the filtering result is [-34.7dBm, -39.7dBm, -40.3dBm].

[0039] In addition, the second device also calculates the channel occupancy rate (COR) and signal-to-noise ratio (SNR) by scanning the broadcast channels (for example, broadcast channels 37, 38, and 39). Exemplarily, COR is used as the first channel interference. COR can reflect the magnitude of the current broadcast channel interference. When COR is low, it means that there are fewer devices occupying the broadcast channel for data transmission and fewer interference sources, so the broadcast channel interference is small. When COR is high, it means that there are more devices occupying the broadcast channel for data transmission and more interference sources, so the broadcast channel interference is large. The signal strength of the broadcast signal can be reflected by calculating SNR. Specifically, the relationship between SNR and signal strength can be established according to the following formula:

[0040] RSSI = SNR + Noise Floor

[0041] Where RSSI is the signal strength of the broadcast signal, SNR is the signal-to-noise ratio of the broadcast signal received by the second device, and the noise floor is the ambient noise level. For example, if the SNR is 20dBm and the noise floor is -90dBm, then the RSSI is -70dBm.

[0042] 103. The second device transmits the first signal strength and the first channel interference. Correspondingly, the first device receives the first signal strength and the first channel interference.

[0043] The second device transmits the first signal strength and the first channel interference measured or calculated in step 102 to the first device.

[0044] 104. The first device determines a target signal strength and a target channel interference.

[0045] In one possible implementation, before the first device determines the target signal strength and the target channel interference, it also includes: obtaining at least one first signal strength and at least one first channel interference, and the at least one first signal strength and at least one first channel interference come from at least one second device. Specifically, the first device sends a broadcast signal on broadcast channels 37, 38, and 39, and there may be multiple second devices that receive the broadcast signal. Each second device calculates the first signal strength based on the received broadcast signal and determines the first channel interference based on the broadcast channel, and then each second device transmits the first signal strength and the first channel interference to the first device. Correspondingly, the first device receives at least one first signal strength and at least one first channel interference from at least one second device.

[0046] Exemplarily, the above-mentioned multiple first devices are respectively in different spatial positions. On the one hand, the spatial positions of the second devices are different, that is, the distances between the second devices and the first devices are different, and the broadcast signals and the environmental interferences are different, which will cause the signal strengths of the broadcast signals received by different second devices to be different. On the other hand, the spatial positions of the second devices are different, that is, the distances between the second devices and other communication devices are different, that is, the distances from the interference sources are different, which will cause different second devices to scan the broadcast channels and obtain different channel interferences. Therefore, by obtaining at least one first signal strength and at least one first channel interference from at least one second device, the first device can more comprehensively obtain the first signal strength and first channel interference.

[0047] As an example, determining the target signal strength and target channel interference includes: determining a target second device among at least one second device, the target second device being the second device with the highest device priority among the at least one second device, and then using the signal strength from the target second device as the target signal strength, and using the channel interference from the target second device as the target channel interference.

[0048] In this example, in addition to transmitting the first signal strength and the first channel interference to the first device, the second device also transmits the device identification (Identifier, ID) of the second device. For example, the Media Access Control (MAC) address of the second device can be used as the device ID of the second device, for example, the MAC address is 00:1A:7D:DA:71:13. The first device distinguishes which second device the different first signal strengths and first channel interferences come from based on the device ID. The first device also uses the second device with the highest device priority as the target second device, and then uses the signal strength from the target second device as the target signal strength, and uses the channel interference from the target second device as the target channel interference. For example, the device priorities in the first device are as follows:

[0049] Second device name Priority Second device ID Bluetooth headset First level ID1 Capacitive stylus Level 2 ID2 Smartwatch Level 3 ID3

[0050] Based on the table above, the first device selects the Bluetooth headset with the first device priority as the target second device. It then determines the signal strength and channel interference from the Bluetooth headset based on its device ID 1. It then uses the headset's signal strength as the target signal strength and the headset's channel interference as the target channel interference. The first device then adjusts the broadcast interval based on the target signal strength and channel interference.

[0051] Optionally, the device priority is determined by any of the following methods: user selection, pre-setting, and dynamic change based on time period. As an example, taking the above table as an example, the user can adjust the priority of the second device according to needs. For example, if the user currently needs to connect a capacitive pen, the priority of the capacitive pen can be adjusted to the first level. This can meet user needs in a timely manner. As another example, the device priority is pre-set. For example, the production settings of the first device include the priority of the Bluetooth device. The target second device is determined by the pre-set device priority, which can improve the efficiency of the first device in determining the target second device. As another example, the device priority changes dynamically based on time period. For example, the device priority of a smart TV is lower in the early morning. This allows the device priority to be adaptively adjusted according to the usage rate in different time periods, thereby improving the accuracy of determining the target second device.

[0052] 105. The first device adjusts the broadcast interval of the broadcast signal according to the target signal strength and the target channel interference.

[0053] The following table shows how to adjust the broadcast interval of the broadcast signal based on the target signal strength and target channel interference. The table uses RSSI as the target signal strength and COR as the target channel interference as an example:

[0054]

[0055] Based on the above table, in one possible implementation, when the target signal strength is greater than the first threshold and the target channel interference is less than the second threshold, the broadcast interval is adjusted to the first value. The first threshold can be -60dBm, the second threshold can be 30%, and the first value is between 300-500ms. The first value can be dynamically adjusted based on the difference between the target signal strength and the target channel interference and the threshold. For example, when the target signal strength is -59dBm and the target channel interference is 29%, the broadcast interval is adaptively adjusted to about 350ms; when the target signal strength is -25dBm and the target channel interference is 5%, the broadcast interval is adaptively adjusted to about 450ms.

[0056] If the target signal strength is greater than the first threshold, it indicates that the broadcast signal transmitted by the first device has a high transmission power and consumes less power during the transmission of the broadcast signal. If the target channel interference is less than the second threshold, it indicates that the current broadcast signal transmission environment is good and is subject to less interference from other signal sources. Therefore, if the target signal strength is greater than the first threshold and the target channel interference is less than the second threshold, the broadcast interval of the broadcast signal can be appropriately extended. By extending the broadcast interval of the broadcast signal, the broadcast frequency of the signal can be reduced, thereby reducing power consumption.

[0057] In another possible implementation, when the target signal strength is less than the third threshold and the target channel interference is greater than the fourth threshold, the broadcast interval is adjusted to the second value. The third threshold can be -80dBm, the fourth threshold can be 70%, and the second value is between 60-100ms. The second value can be dynamically adjusted based on the difference between the target signal strength and the target channel interference and the threshold. For example, when the target signal strength is -81dBm and the target channel interference is 75%, the broadcast interval is adaptively adjusted to about 95ms; when the target signal strength is -95dBm and the target channel interference is 95%, the broadcast interval is adaptively adjusted to about 65ms.

[0058] The target signal strength is less than the third threshold, indicating that the transmission power of the broadcast signal sent by the first device is small, or that the power loss during the transmission of the broadcast signal is large. The target channel interference is greater than the fourth threshold, indicating that the current broadcast signal transmission environment is poor, or that it is subject to large interference from other signal sources, and packet loss is prone to occur. Therefore, when the target signal strength is less than the third threshold and the target channel interference is greater than the fourth threshold, the broadcast interval of the broadcast signal is forcibly shortened. By shortening the broadcast interval of the broadcast signal, the frequency of retransmission is increased, so that lost data can be retransmitted in a timely manner, thereby improving data transmission efficiency.

[0059] In another possible implementation, when the target signal strength is greater than or equal to the third threshold and less than or equal to the first threshold, and the target channel interference is greater than or equal to the second threshold and less than or equal to the fourth threshold, the broadcast interval is adjusted to a third value. The third value is between 100-300ms. The third value can be dynamically adjusted based on the difference between the target signal strength and the target channel interference and the threshold. For example, when the target signal strength is -61dBm and the target channel interference is 35%, the broadcast interval is adaptively adjusted to about 150ms; when the target signal strength is -75dBm and the target channel interference is 65%, the broadcast interval is adaptively adjusted to about 250ms.

[0060] The target signal strength is greater than or equal to the third threshold and less than or equal to the first threshold, and the target channel interference is greater than or equal to the second threshold and less than or equal to the fourth threshold. That is to say, the target signal strength and target channel interference fluctuate within a normal range. This shows that the transmission power of the broadcast signal sent by the first device and the power loss during the transmission process are within a normal range, and the current transmission environment of the broadcast signal and the interference from other signal sources are also within a normal range. There is no need to extend the broadcast interval of the broadcast signal or shorten the broadcast interval. The broadcast interval is dynamically adjusted according to the target signal strength and the size of the target channel interference, so that sudden interference can be coped with, thereby improving the anti-interference ability of signal transmission.

[0061] 106. The first device sends a broadcast signal according to the adjusted broadcast interval, and the second device receives the broadcast signal accordingly.

[0062] The first device dynamically adjusts the broadcast interval to optimize energy efficiency in many aspects.

[0063] (1) In scenarios with high signal quality or low interference: by extending the broadcast interval to 300-500ms, the frequency of RF activation can be reduced, and power consumption can be reduced by more than 40%; in scenarios with low signal quality or high interference: by shortening the interval to 60-100ms, fast retransmission can reduce the packet loss rate and avoid ineffective energy consumption. For example, it can reduce idle listening energy consumption: the device needs to continuously monitor the channel status during a long interval, but the actual effective transmission time is low, resulting in energy waste. It can reduce redundant retransmission energy consumption: in multiple retransmissions caused by packet loss, if the retransmission interval is too long, the number of failures may accumulate, increasing the power consumption of repeated operations.

[0064] (2) Providing an environment-aware sleep strategy for the first device. For example, the first device combines RSSI and COR to assess link quality in real time and automatically enters a low duty cycle mode in a stable environment, which typically improves device battery life by 30%. For example, in scenarios with high signal quality or low interference, the ratio of the time spent in the operating state to the total cycle time is 70%.

[0065] (3) Improved dynamic anti-interference capability of signal transmission. The dynamic adjustment mechanism triggers fast interval switching through channel interference detection (such as SNR or COR), increasing the connection success rate from 80% in traditional solutions to over 95%.

[0066] (4) Dual-parameter joint optimization of signal strength and channel interference. For example, in industrial scenarios: maintaining broadcast stability in low temperatures of -40°C or electromagnetic interference environments, with a communication success rate of >92%; in high-density deployment scenarios: dynamically allocating broadcast time windows through interference perception, reducing multi-device contention conflicts, and increasing network capacity by 50%.

[0067] (5) Balancing broadcast channel load. Adaptively adjust the broadcast duty cycle based on the channel interference level to avoid continuous conflicts with 2.4GHz devices such as WiFi or ZigBee, improving channel utilization by 35%.

[0068] See Figure 2 , Figure 2 1 is a schematic diagram of a communication method provided in an embodiment of the present application. In the embodiment of the present application, the first device is a master device and the second device is a slave device.

[0069] 201. Collect data from the device.

[0070] The above data includes signal strength and channel interference. The slave device obtains the signal strength of the broadcast signal by collecting the broadcast signal and obtains the channel interference by scanning the broadcast channel. For a detailed description of this step, please refer to the description of step 102 above and will not be detailed here.

[0071] 202. The master device calculates the cycle.

[0072] After receiving the signal strength and channel interference of the slave device, the master device determines the broadcast interval, ie, the calculation period. Detailed description of this step can be found in the description of step 104 above and will not be described in detail here.

[0073] 203. The master device adjusts the BLE broadcast interval.

[0074] The master device adjusts the broadcast interval of the broadcast signal according to the broadcast interval determined in step 202. For a detailed description of this step, reference may be made to the description of step 105 above, which will not be described in detail here.

[0075] 204. The master device sends a BLE broadcast signal, and the slave device receives the BLE broadcast signal accordingly.

[0076] The master device sends a BLE broadcast signal to the slave device at the adjusted broadcast interval. The slave device receives the BLE broadcast signal and prepares to establish a BLE connection with the master device.

[0077] In the embodiment of the present application, the broadcast interval is adjusted according to the dual parameters of signal strength and channel interference, which can ensure that the BLE broadcast interval is most reasonable, reduce the energy consumption of the master device, and improve the BLE connection success rate.

[0078] For example, the technical solutions provided in the embodiments of the present application can be applied to the following scenarios:

[0079] (1) Smart home devices. For example, the master device can be a mobile phone, and the slave devices can be air conditioners, lighting, etc. Based on the joint regulation of RSSI and COR, the mobile phone can adaptively adjust the broadcast interval, thereby reducing the response delay of smart home devices to less than 50ms.

[0080] (2) Medical wearable devices. For example, the master device can be a mobile phone, and the slave device can be a blood glucose monitor, electrocardiogram monitor, etc. In emergency mode (for example, in low signal quality or high interference scenarios), the interval is forced to be shortened to 60ms to ensure the real-time performance of vital sign data and reduce the data packet loss rate to below 0.1%.

[0081] The following describes the device provided in the embodiments of the present application.

[0082] The present application divides the functional modules of the device according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in this application is schematic and is only a logical function division. There may be other division methods in actual implementation. The following will be combined with Figures 3 and 4 The device of the embodiment of the present application is described in detail.

[0083] See Figure 3 , Figure 3 This is a schematic diagram of the structure of the communication device provided in the embodiment of the present application. Figure 3 As shown, the communication device 300 includes a processing module 301 and a transceiver module 302. The transceiver module 302 is configured to receive or transmit broadcast signals, and the processing module 301 is configured to adjust the broadcast interval of the broadcast signal based on target signal strength and target channel interference. The transceiver module 302 may also be referred to as an interface, a communication interface, or a transceiver module.

[0084] In some embodiments of the present application, the apparatus may be used to perform the actions performed by the communication apparatus in the above method embodiments. In this case, the apparatus may be the device itself, or a chip or functional module configurable in the device. The transceiver module 302 is used to perform operations related to receiving or sending broadcast signals in the above method embodiments, and the processing module 301 is used to perform operations related to processing by the communication apparatus in the above method embodiments.

[0085] For example, the transceiver module 302 may be an antenna module. Another example is an input / output module. Optionally, in the above embodiments, the apparatus may further include a storage module, which may be used to store instructions and / or data. The processing module 301 may read the instructions and / or data in the storage module to enable the apparatus to implement the above method embodiments. For example, the storage module may be used to store a preconfigured file system in the communication device.

[0086] In one possible implementation, Figure 3 In the illustrated device, processing module 301 may be one or more processors, and transceiver module 302 may be a transceiver. Alternatively, transceiver module 302 may be a transmitting module and a receiving module, where the transmitting module may be a transmitter and the receiving module may be a receiver, with the transmitting module and receiving module being integrated into a single device, such as a transceiver. In embodiments of the present application, the processor and transceiver may be coupled, etc., and the connection method between the processor and transceiver is not limited in embodiments of the present application. During the execution of the above method, the process of sending information in the above method may be the process of the processor outputting the above information. When outputting the above information, the processor outputs the above information to the transceiver for transmission by the transceiver. After being output by the processor, the above information may require further processing before reaching the transceiver. Similarly, the process of receiving information in the above method may be the process of the processor receiving the above information as input. When the processor receives the input information, the transceiver receives the above information and inputs it into the processor. Furthermore, after the transceiver receives the above information, the above information may require further processing before being input into the processor.

[0087] The specific descriptions of the transceiver module and the processing module shown in the above embodiment are only examples. For the specific functions or execution steps of the transceiver module and the processing module, please refer to the above method embodiment and will not be described in detail here.

[0088] It is understood that the module division in the above-mentioned device is merely a division of logical functions. Each function may correspond to a functional module, or two or more functions may be integrated into a single functional module. In actual implementation, all or some modules may be integrated into a single physical entity, or distributed across different physical entities. Furthermore, the above-mentioned functional modules may be implemented in hardware, software, or a combination of hardware and software.

[0089] See Figure 4 , Figure 4 This is another structural diagram of the communication device provided in the embodiment of the present application. Figure 4 As shown, the communication device 400 includes one or more processors 402 and a transceiver 401 .

[0090] In some embodiments of the present application, the communication device 400 may be used to execute the steps, methods, or functions executed by the first device, such as the processor 402 may be used to execute the following steps: Figure 3 The functions or steps implemented by the processing module 301 shown in FIG. 4 are as follows: Figure 3 The functions or steps implemented by the transceiver module 302 are shown in FIG. Figure 3 Or the method embodiments shown above will not be described in detail here.

[0091] In other embodiments of the present application, the above-mentioned device is used to execute the steps, methods or functions executed by the communication device, such as the processor 402 can be used to execute the following steps: Figure 3 The functions or steps implemented by the processing module 301 shown in FIG. 4 are as follows: Figure 3 The functions or steps implemented by the transceiver module 302 are shown in FIG. Figure 3 Or the method embodiments shown above will not be described in detail here.

[0092] The following Figure 4 The device shown is a communication device for illustration purposes only.

[0093] exist Figure 4 In various implementations of the communication device shown, the transceiver may include a receiver and a transmitter, wherein the receiver is configured to perform a receiving function (or operation) and the transmitter is configured to perform a transmitting function (or operation). The transceiver is configured to communicate with other devices / devices via a transmission medium.

[0094] Optionally, communication device 400 may further include one or more memories 403 for storing program instructions and / or data. Memory 403 is coupled to processor 402. Processor 402 may operate in conjunction with memory 403. Processor 402 may execute program instructions stored in memory 403. Optionally, at least one of the one or more memories may be included in the processor.

[0095] The specific connection medium between the transceiver 401, the processor 402 and the memory 403 is not limited in the embodiment of the present application. Figure 4 The transceiver 401, the processor 402 and the memory 403 are connected via a bus 404. Figure 4 The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0096] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc., and may implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of the present application may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor, etc.

[0097] In the embodiment of the present application, memory may include but is not limited to non-volatile memories such as hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD), random access memory (Random Access Memory, RAM), erasable programmable read-only memory (Erasable Programmable ROM, EPROM), read-only memory (Read-Only Memory, ROM) or portable read-only memory (Compact Disc Read-Only Memory, CD-ROM) and the like. Memory is any storage medium that can be used to carry or store program code in the form of instructions or data structures and can be read and / or written by a computer (such as the communication device shown in the present application), but is not limited thereto. The memory in the embodiment of the present application can also be a circuit or other arbitrarily capable of implementing a storage function, for storing program instructions and / or data.

[0098] Processor 402 is primarily used to process communication protocols and communication data, control the entire communication device, execute software programs, and process software program data. Memory 403 is primarily used to store software programs and data. Transceiver 401 may include control circuitry and an antenna. The control circuitry is primarily used to convert baseband signals into radio frequency signals and process radio frequency signals. The antenna is primarily used to transmit and receive radio frequency signals in the form of electromagnetic waves. Input / output devices, such as a touch screen, display, and keyboard, are primarily used to receive user input and output data to the user.

[0099] When the communication device is powered on, processor 402 can read the software program in memory 403, interpret and execute the instructions of the software program, and process the data of the software program. When data needs to be sent wirelessly, processor 402 performs baseband processing on the data to be sent and outputs the baseband signal to the radio frequency circuit. The radio frequency circuit performs radio frequency processing on the baseband signal and then transmits the radio frequency signal to the outside in the form of electromagnetic waves via the antenna. When data is sent to the communication device, the radio frequency circuit receives the radio frequency signal via the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to processor 402. Processor 402 converts the baseband signal into data and processes the data.

[0100] In another implementation, the RF circuit and antenna may be provided independently of the processor performing baseband processing. For example, in a distributed scenario, the RF circuit and antenna may be remotely arranged independent of the communication device.

[0101] The communication device shown in the embodiment of the present application may also have Figure 4 The embodiments of the present application do not limit the number of components and the like. The methods executed by the processor and transceiver shown above are only examples, and the specific steps executed by the processor and transceiver can refer to the methods described above.

[0102] The above is a detailed introduction to the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A communication method, characterized in that: The method is applied to a first device and includes: Determine target signal strength and target channel interference; adjusting a broadcast interval of a broadcast signal according to the target signal strength and the target channel interference; The broadcast signal is transmitted according to the broadcast interval.

2. The method according to claim 1, characterized in that The adjusting the broadcast interval of the broadcast signal according to the target signal strength and the target channel interference includes: When the target signal strength is greater than a first threshold and the target channel interference is less than a second threshold, adjusting the broadcast interval to a first value; When the target signal strength is less than a third threshold and the target channel interference is greater than a fourth threshold, adjusting the broadcast interval to a second value, the first threshold is greater than the third threshold, and the fourth threshold is greater than the second threshold; When the target signal strength is greater than or equal to the third threshold and less than or equal to the first threshold, and the target channel interference is greater than or equal to the second threshold and less than or equal to the fourth threshold, adjust the broadcast interval to a third value; the third value is greater than the second value and the third value is less than the first value.

3. The method according to claim 2, characterized in that The first value is in a first range, the second value is in a second range, and the third value is in a third range. The lower limit value of the first range is greater than or equal to the upper limit value of the third range, and the lower limit value of the third range is greater than or equal to the upper limit value of the second range.

4. The method according to claim 1 or 2, characterized in that Before determining the target signal strength and the target channel interference, the method further includes: Obtain at least one first signal strength and at least one first channel interference, where the at least one first signal strength and the at least one first channel interference are from at least one second device; Determining the target signal strength and the target channel interference includes: determining a target second device among the at least one second device, where the target second device is the second device with the highest device priority among the at least one second device; The signal strength from the target second device is used as the target signal strength, and the channel interference from the target second device is used as the target channel interference.

5. The method according to claim 4, characterized in that The device priority is determined by any of the following methods: User selection, pre-set, dynamic changes based on time period.

6. A communication method, characterized in that: The method is applied to a second device, comprising: receiving broadcast signals; determining a first signal strength according to the broadcast signal; determining a first channel interference according to a broadcast channel, the broadcast channel being used to transmit the broadcast signal; The first signal strength and the first channel interference are transmitted to a first device.

7. A communication device, characterized in that: include: A transceiver module, used for receiving or sending broadcast signals; The processing module is configured to adjust the broadcast interval of the broadcast signal according to target signal strength and target channel interference.

8. An electronic device, characterized in that: The method comprises a transceiver, a processor and a memory, wherein the transceiver is used to receive or send signals, the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, which, when executed on a computer, enable the method according to any one of claims 1 to 6 to be executed.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed, the method according to any one of claims 1 to 6 is performed.