Frequency hopping communication method for short-distance wireless communication and related equipment

By ensuring that there are M identical channels between the frequency hopping sequences of master and slave devices in Bluetooth and Bluetooth Low Energy communication, the problem of slave devices being unable to receive handover signaling is solved, thereby improving communication success rate and link stability.

CN121217166APending Publication Date: 2025-12-26HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511292700.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2021-09-23
Publication Date
2025-12-26

AI Technical Summary

Technical Problem

In the presence of strong background noise, during Bluetooth and Bluetooth Low Energy communication, the slave device cannot receive the AFH handover signaling from the master device, resulting in an unstable communication link and a low success rate.

Method used

The master device sends frequency hopping handover signaling to ensure that there are M identical channels between the first frequency hopping sequence and the second frequency hopping sequence, ensuring effective communication after the handover time point, and optimizing channel quality by retransmitting signaling or channel replacement.

Benefits of technology

It improves the success rate of communication between master and slave devices and the stability of the link, especially in the case of severe interference, it can still maintain effective communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121217166A_ABST
    Figure CN121217166A_ABST
Patent Text Reader

Abstract

The invention provides a frequency hopping communication method and related equipment for short-distance wireless communication, and in the frequency hopping communication method, in a communication process of master equipment and slave equipment, when a frequency hopping sequence needs to be switched, the frequency hopping sequence is switched by ensuring that a frequency point used for frequency hopping each time is not changed; and M reserved channels are arranged between the first frequency hopping sequence and the second frequency hopping sequence, so that when a frequency hopping switching time point arrives, the master device is switched from the second frequency hopping sequence to the first frequency hopping sequence and performs frequency hopping communication with the slave device according to the first frequency hopping sequence, even if the slave device still performs frequency hopping communication with the master device by using the second frequency hopping sequence, the frequency hopping communication between the master device and the slave device is realized. As M identical channels exist between the first frequency hopping sequence and the second frequency hopping sequence, the first frequency hopping sequence and the second frequency hopping sequence still have the probability of M / N, effective communication can be carried out, the communication success probability between the master device and the slave device is effectively guaranteed, and the stability of a communication link between the master device and the slave device is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The original application has the application number 202180101347.3 and the original application date is September 23, 2021. The entire contents of the original application are incorporated herein by reference. Technical Field

[0002] This application relates to the field of communications, specifically to a frequency hopping communication method and related equipment for short-range wireless communication. Background Technology

[0003] Bluetooth (BT), as a successfully popularized short-range communication protocol, has been widely used in automotive, headsets, and remote controls. Following the release of the BT 4.0 protocol, Bluetooth Low Energy (BLE) has also captured a significant share of wearable devices. BT or BLE functionality has become a standard feature in almost every handheld mobile device.

[0004] Both BT and BLE are narrowband frequency-hopping systems. Strong interference in the narrowband where the frequency hopping occurs can cause significant packet loss; therefore, they both utilize adaptive frequency hopping (AFH) technology. (Reference) Figure 1 , Figure 1 This diagram illustrates an existing adaptive frequency hopping technique. The master device monitors channel conditions and identifies frequencies with significant interference within the channel range. Upon adjusting the Adaptive Hopping Sequence (AHS), the master device sends an AFH handover command (AFH CMD) to the slave device. This AFH handover command includes the frequency with significant interference and the handover time. After the slave device sends an acknowledgment (ACK), the master and slave devices jointly use the new frequency hopping sequence at the agreed handover time to switch from AHS(A) to AHS(B). This effectively avoids interfering channels, resulting in higher and more efficient transmission.

[0005] However, in existing AFH frequency hopping methods, when the background noise is strong, the slave device cannot receive the AFH handover signaling sent by the master device. As a result, after the handover time point, the master and slave devices use frequency hopping sequences containing different frequency points (the slave device uses the original frequency hopping sequence, while the master device uses a new frequency hopping sequence with the frequency points with greater interference removed) for frequency hopping communication. This leads to unstable communication link connection between the master and slave devices and a low probability of successful communication, making it impossible for the master and slave devices to communicate reliably. Summary of the Invention

[0006] This application provides a frequency hopping communication method and related equipment for short-range wireless communication, which can ensure the success rate of communication between master and slave devices and ensure the stability of the communication link between them.

[0007] In a first aspect, a frequency hopping communication method for short-range wireless communication is provided, comprising: sending a frequency hopping switching signaling to a slave device, the frequency hopping switching signaling indicating a first frequency hopping sequence and a time point for frequency hopping switching, wherein the first frequency hopping sequence is different from a second frequency hopping sequence currently used for frequency hopping communication, both the first and second frequency hopping sequences include N channels, and M reserved channels in the first frequency hopping sequence are consistent with the second frequency hopping sequence, M and N are both positive integers and M is less than N; when the time point for frequency hopping switching arrives, frequency hopping communication is performed with the slave device using the first frequency hopping sequence.

[0008] In the frequency hopping communication method of this application embodiment, when the master device needs to switch frequency hopping sequences during communication with the slave device, it ensures that the frequency point used for each frequency hopping remains unchanged (i.e., N remains unchanged), and that there are M reserved channels between the first and second frequency hopping sequences (the positions and channel identifiers of the reserved channels are the same in the first and second frequency hopping sequences). This ensures that when the frequency hopping switching time point arrives, the master device switches from the second frequency hopping sequence to the first frequency hopping sequence and performs frequency hopping communication with the slave device according to the first frequency hopping sequence. Even if the slave device does not effectively receive the frequency hopping switching command due to interference or other reasons, that is, the slave device still performs frequency hopping communication with the master device using the second frequency hopping sequence, since there are M identical channels between the first and second frequency hopping sequences, there is still an M / N probability that they can communicate effectively, effectively guaranteeing the success probability of communication between the master device and the slave device and ensuring the stability of the communication link between them.

[0009] Optionally, the frequency hopping signaling includes a mapping relationship between N sequence indexes and N channel identifiers, whereby the channel identifiers are used to indicate the channels in the first frequency hopping sequence.

[0010] In this embodiment of the application, the frequency hopping signaling indicates the first frequency hopping sequence by carrying a mapping relationship between N sequence indexes and N channel identifiers in the signaling. The channel identifier is used to indicate the channel in the first frequency hopping sequence.

[0011] Optionally, sending a frequency hopping handover signaling to the slave device includes: sending a frequency hopping handover signaling to the slave device when the second frequency hopping sequence meets the preset frequency hopping handover conditions.

[0012] In this embodiment of the application, when the current second frequency hopping sequence meets the preset frequency hopping switching conditions, the master device sends a frequency hopping switching signaling to the slave device to trigger the frequency hopping sequence switching.

[0013] Optionally, the preset frequency hopping handover conditions include at least one of the following: the quality assessment parameters of the second frequency hopping sequence meet the sequence assessment conditions, and the quality assessment parameters are used to characterize the overall communication quality of the N channels in the second frequency hopping sequence; the number of channels in the second frequency hopping sequence whose channel quality is lower than the quality threshold is greater than the number threshold; a change in the available channel set is detected, and the available channel set is the set of scanning channels whose interference energy value is lower than the interference energy threshold or the set of Y scanning channels with the smallest interference energy value, where Y is a positive integer.

[0014] Optionally, the method further includes: if no handover confirmation instruction is received from the slave device when responding to the frequency hopping handover instruction, retransmitting the frequency hopping handover instruction to the slave device until the time point for frequency hopping handover is reached.

[0015] In this embodiment of the application, if the master device does not receive a switching confirmation instruction sent by the slave device in response to the frequency hopping switching instruction, the master device resends the frequency hopping switching instruction to the slave device until the frequency hopping switching time point is reached. By resending the frequency hopping switching instruction, the master device ensures that it can switch to using the first frequency hopping sequence to communicate with the master device at the specified frequency hopping switching time point.

[0016] Optionally, the method further includes: replacing NM channels in the N channels of the second frequency hopping sequence that meet the preset unavailable channel conditions with new available channels to obtain the first frequency hopping sequence.

[0017] In this embodiment of the application, when obtaining the first frequency hopping sequence based on the second frequency hopping sequence, the NM channels in the second frequency hopping sequence that meet the unavailable channel conditions are replaced with new available channels, so that the master device and the slave device can use the second frequency hopping sequence with better channel quality for frequency hopping communication, thus ensuring the communication quality between the master device and the slave device.

[0018] Optionally, the NM channels in the second frequency hopping sequence that meet the preset unavailable channel conditions are replaced with new available channels to obtain the first frequency hopping sequence, including: obtaining the channel quality of the N channels in the second frequency hopping sequence respectively; and replacing the NM channels in the second frequency hopping sequence whose channel quality is lower than the quality threshold with new available channels to obtain the first frequency hopping sequence.

[0019] In this embodiment, the unavailable channel condition is that the channel quality is lower than a quality threshold. The channel in the second frequency hopping sequence is replaced according to the channel quality to obtain a first frequency hopping sequence with better channel quality.

[0020] Optionally, the NM channels in the second frequency hopping sequence that meet the preset unavailable channel conditions are replaced with new available channels to obtain the first frequency hopping sequence, including: determining the available channel set, which is either a set of scanning channels with interference energy values ​​lower than the interference energy threshold or a set of Y scanning channels with the smallest interference energy values, where Y is a positive integer; and replacing the NM channels in the second frequency hopping sequence that are not in the available channel set with new available channels to obtain the first frequency hopping sequence.

[0021] In this embodiment of the application, the preset unavailable channel condition is that the channel is not in the available channel set. The channel in the second frequency hopping sequence that is not in the available channel set is replaced with a new available channel to obtain a first frequency hopping sequence with better channel quality.

[0022] Optionally, determining the set of available channels includes: performing channel scanning at preset time intervals and determining the interference energy value corresponding to the scanned channel; determining the scanned channels with interference energy values ​​lower than the interference energy threshold as the set of available channels; or, determining the first Y scanned channels with the smallest interference energy values ​​as the set of available channels, where Y is a positive integer.

[0023] In this embodiment, channel scanning can determine the interference energy value of each scanned channel, which characterizes the degree of interference. Scanned channels with interference energy values ​​below an interference energy threshold can be considered as a set of available channels. Alternatively, the first Y scanned channels with the smallest interference energy values ​​can be identified as the set of available channels. Other methods for determining the set of available channels are also available and are not specifically limited.

[0024] Optionally, the method further includes: broadcasting a second frequency hopping sequence so that the slave device obtains the second frequency hopping sequence from the broadcast signal.

[0025] In this application embodiment, there are many ways to enable the slave device to obtain the second frequency hopping sequence. For example, the master device broadcasts the second frequency hopping sequence, and the slave device can obtain the second frequency hopping sequence from the broadcast signal by receiving the broadcast signal.

[0026] Optionally, the method further includes: obtaining the device identifier of the slave device; sending a connection request to the slave device to request the establishment of a data path connection based on the device identifier of the slave device, the connection request including a second frequency hopping sequence; and receiving a connection confirmation instruction sent by the slave device in response to the connection request.

[0027] In this embodiment, another method for the slave device to obtain the second frequency hopping sequence is to obtain the device identifier of the slave device and then request the establishment of a data path connection from the slave device based on the device identifier. The second frequency hopping sequence can be carried in the connection request so that the slave device can obtain the second frequency hopping sequence according to the connection request. When the slave device responds to the connection request, it will send a connection confirmation instruction to the master device to establish a data path connection between the master device and the slave device.

[0028] Optionally, the method further includes: after establishing a data path connection with the slave device, sending a first negotiation signaling message to the slave device, the first negotiation signaling message including a second frequency hopping sequence; and receiving a first negotiation confirmation instruction sent by the slave device in response to the first negotiation signaling message.

[0029] In this embodiment of the application, after establishing a data path connection with the slave device, the master device can also send a first negotiation signaling to the slave device. The first negotiation signaling can carry a second frequency hopping sequence, that is, the master device initiates the negotiation process of the second frequency hopping sequence. When the slave device accepts the second frequency hopping sequence, it can return a first negotiation confirmation instruction to the master device to complete the negotiation of the second frequency hopping sequence.

[0030] Optionally, the method further includes: receiving a second negotiation signaling sent by the slave device, the second negotiation signaling being sent after the slave device and the master device establish a data path connection, the second negotiation signaling including a second frequency hopping sequence; and sending a second negotiation confirmation instruction to the slave device in response to the second negotiation signaling.

[0031] In this embodiment of the application, the slave device may also initiate the negotiation process of the second frequency hopping sequence. After the slave device and the master device establish a data path connection, the slave device sends a second negotiation signaling carrying the second frequency hopping sequence to the master device. When the master device accepts the second frequency hopping sequence, it returns a second negotiation confirmation instruction to the slave device to complete the negotiation of the second frequency hopping sequence.

[0032] Secondly, a frequency hopping communication method for short-range wireless communication is provided, comprising: receiving a frequency hopping switching signaling sent by a master device, the frequency hopping switching signaling indicating a first frequency hopping sequence and a frequency hopping switching time point, wherein the first frequency hopping sequence is different from the second frequency hopping sequence currently used for frequency hopping communication, both the first and second frequency hopping sequences include N channels, and M reserved channels in the first frequency hopping sequence are consistent with the second frequency hopping sequence, M and N are both positive integers and M is less than N; when the frequency hopping switching time point arrives, frequency hopping communication is performed with the master device using the first frequency hopping sequence.

[0033] In the frequency hopping communication method of this application embodiment, when the master device needs to switch frequency hopping sequences during communication with the slave device, it ensures that the frequency point used for each frequency hopping remains unchanged (i.e., N remains unchanged), and that there are M reserved channels between the first frequency hopping sequence and the second frequency hopping sequence (the position and channel identifier of the reserved channels are the same in the first frequency hopping sequence and the second frequency hopping sequence). This ensures that when the frequency hopping switching time point arrives, the master device switches from the second frequency hopping sequence to the first frequency hopping sequence and performs frequency hopping communication with the slave device according to the first frequency hopping sequence. Even if the slave device still performs frequency hopping communication with the master device using the second frequency hopping sequence, since there are M identical channels between the first frequency hopping sequence and the second frequency hopping sequence, there is still an M / N probability that they can communicate effectively. This effectively guarantees the success probability of communication between the master device and the slave device and ensures the stability of the communication link between them.

[0034] Optionally, the frequency hopping signaling includes a mapping relationship between N sequence indexes and N channel identifiers, whereby the channel identifiers are used to indicate the channels in the first frequency hopping sequence.

[0035] Optionally, the method further includes sending a handover confirmation command to the master device when responding to a frequency hopping handover command.

[0036] Optionally, the method further includes: receiving a broadcast signal from the master device, the broadcast signal including a second frequency hopping sequence.

[0037] Optionally, the method further includes: receiving a connection request sent by the master device to request the establishment of a data path connection, the connection request including a second frequency hopping sequence; and sending a connection confirmation command to the master device in response to the connection request.

[0038] Optionally, the method further includes: receiving a first negotiation signaling sent by the master device, the first negotiation signaling including a second frequency hopping sequence; and sending a first negotiation confirmation instruction to the master device in response to the first negotiation signaling.

[0039] Optionally, the method further includes: after establishing a data path connection with the master device, sending a second negotiation signaling message to the master device, the second negotiation signaling message including a second frequency hopping sequence; and receiving a second negotiation confirmation instruction sent by the master device in response to the second negotiation signaling message.

[0040] Thirdly, a master device for short-range wireless communication is provided, comprising: a transceiver for sending a frequency hopping handover signaling to a slave device, the frequency hopping handover signaling indicating a first frequency hopping sequence and a time point for frequency hopping handover, wherein the first frequency hopping sequence is different from a second frequency hopping sequence currently used for frequency hopping communication, both the first and second frequency hopping sequences include N channels, and M reserved channels in the first frequency hopping sequence are consistent with the second frequency hopping sequence, where M and N are both positive integers and M is less than N; and a processor for using the first frequency hopping sequence to perform frequency hopping communication with the slave device through the transceiver when the time point for frequency hopping handover arrives.

[0041] Fourthly, a slave device for short-range wireless communication is provided, comprising: a transceiver for receiving a frequency hopping handover signaling sent by a master device, the frequency hopping handover signaling indicating a first frequency hopping sequence and a time point for frequency hopping handover, wherein the first frequency hopping sequence is different from a second frequency hopping sequence currently used for frequency hopping communication, both the first and second frequency hopping sequences include N channels, and M reserved channels in the first frequency hopping sequence are consistent with the second frequency hopping sequence, where M and N are both positive integers and M is less than N; and a processor for using the first frequency hopping sequence to perform frequency hopping communication with the master device through the transceiver when the time point for frequency hopping handover arrives.

[0042] Fifthly, a frequency-hopping communication system for short-range wireless communication is provided, comprising the master device described in the third aspect and the slave device described in the fourth aspect.

[0043] A sixth aspect provides a communication device, comprising: a processor and a memory; the processor and the memory are connected, wherein the memory is used to store program code, and the processor is used to call the program code to execute a frequency hopping communication method for short-range wireless communication as described in the first or second aspect.

[0044] In a seventh aspect, a computer storage medium is provided, the computer storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, perform a frequency hopping communication method for short-range wireless communication as described in the first or second aspect.

[0045] Eighthly, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the frequency hopping communication method for short-range wireless communication as described in the first or second aspect.

[0046] In a ninth aspect, a chip is provided, the chip including a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface and executes the frequency hopping communication method for short-range wireless communication described in the first or second aspect.

[0047] Optionally, as one implementation, the chip may further include a memory storing instructions, and the processor is configured to execute the instructions stored in the memory. When the instructions are executed, the processor is configured to execute the frequency hopping communication method for short-range wireless communication described in the first or second aspect. Attached Figure Description

[0048] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 This is a schematic diagram of existing adaptive frequency hopping technology;

[0050] Figure 2 Frequency allocation diagram for BLE;

[0051] Figure 3 This is a schematic diagram of AFH technology;

[0052] Figure 4 This is a flowchart illustrating a frequency hopping communication method for short-range wireless communication provided in an embodiment of this application.

[0053] Figure 5 This is a schematic diagram of a frequency hopping sequence transformation provided in an embodiment of this application;

[0054] Figure 6 This is a flowchart illustrating the process of determining a frequency hopping communication channel in a frequency hopping communication method provided in an embodiment of this application.

[0055] Figure 7a , Figure 7b , Figure 7c , Figure 7d This is a schematic diagram of the interaction flow of a frequency hopping communication method provided in an embodiment of this application;

[0056] Figure 8 This is a flowchart illustrating a frequency hopping communication method for short-range wireless communication provided in an embodiment of this application.

[0057] Figure 9 This is a schematic diagram of the structure of a master device for short-range wireless communication provided in an embodiment of this application;

[0058] Figure 10 This is a schematic diagram of the structure of a slave device for short-range wireless communication provided in an embodiment of this application;

[0059] Figure 11This is a schematic diagram of the structure of a communication device provided in an embodiment of this application. Detailed Implementation

[0060] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0061] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0062] In this document, the term "embodiment" means that a particular feature, result, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0063] To facilitate understanding, the relevant terms and concepts involved in the embodiments of this application will be introduced below.

[0064] (1) Master equipment, slave equipment

[0065] In a communication system, there are master devices and slave devices. When the master device and slave device communicate, the master device sends a message to the slave device. After receiving the message, the slave device either does not reply or replies to the master device. The frequency hopping communication method in this application embodiment can be applied to electronic devices based on short-range wireless communication protocols. The electronic device can be either a master device or a slave device. Here, a master device refers to a device operating in master device mode, and a slave device refers to a device operating in slave device mode.

[0066] In this setup, the master device operates in master mode and can connect to one slave device. In this mode, it can search for nearby devices and select the desired slave device to connect to. Taking Bluetooth as an example, theoretically, one Bluetooth master device can communicate with up to seven Bluetooth slave devices simultaneously. A device with Bluetooth communication capabilities can switch between these two roles: normally operating in slave mode, waiting for other master devices to connect, and switching to master mode when needed to initiate calls to other devices.

[0067] When a slave device operates in slave mode, it can only be searched by the master device and cannot actively search for it. After establishing a connection with the master device, the slave device can also send and receive data with the master device.

[0068] (2) Linear layer (LL)

[0069] The data link layer is the second layer in the OSI reference model, situated between the physical layer and the network layer. Building upon the services provided by the physical layer, the data link layer provides services to the network layer. Its most basic service is the reliable transmission of data originating from the physical layer to the network layer of the target machine in adjacent nodes.

[0070] (3) Short-range wireless communication

[0071] The main characteristic of short-range wireless communication is its short communication distance, typically ranging from 10 to 200 meters. Short-range wireless communication protocols include BT, BLE, ZigBee, and Ant+. ZigBee, also known as the Purple Bee, is a low-speed, short-range wireless network protocol. Ant+ is an ultra-low-power version of the Ant transmission protocol, specifically developed for health, training, and sports equipment. Furthermore, short-range wireless communication protocols generally use the 2.4 GHz band (2.4 GHz - 2.5 GHz), which can be divided into 100 frequency points: 2400 MHz, 2401 MHz, 2402 MHz, up to 2500 MHz. Different numbers of frequency points can be used for communication with devices employing different short-range wireless communication protocols.

[0072] Taking the Bluetooth communication protocol as an example, the communication frequency band of Bluetooth Low Energy electronic devices is between 2400MHz and 2480MHz. Figure 2 , Figure 2 This is a frequency allocation diagram for BLE. The communication frequency band can be divided into 40 channels, each with a frequency range of 2MHz. The lowest center frequency of the 40 channels is 2402MHz, and the highest is 2480MHz. At the link layer, the 40 channels are divided into broadcast channels and data channels. Channels 1-11 and 13-38 are 37 data channels, and channels 0, 12, and 39 are 3 broadcast channels.

[0073] (4) Frequency hopping communication

[0074] Frequency hopping refers to a communication method in which the carrier frequency of the transmitted signal between the transmitting and receiving parties changes discretely according to a predetermined pattern. In other words, the carrier frequency used in communication is randomly changed under the control of a pseudo-random change code. "Frequency hopping communication" means that the frequency is changed for each communication. Frequency hopping communication has good anti-interference capabilities; even if some frequency points are interfered with, normal communication can still be carried out on other undisturbed frequency points.

[0075] Taking the ZigBee communication protocol as an example, ZigBee can use a total of 16 channels with frequencies ranging from 2405MHz to 2480MHz. ZigBee usually uses a fixed channel (frequency remains unchanged). If ZigBee is interfered with by other 2.4G signals (Bluetooth, Wi-Fi, etc.), it will automatically select another channel with less interference to use.

[0076] Bluetooth (BT, BLE, etc.) employs a series of unique measures, including Listen Before Talk (LBT) and power control, to overcome interference and avoid collisions. Among these, AFH (Frequency Adaptive Control) rejects previously used but unsuccessful frequencies during frequency hopping communication, ensuring that frequency hopping communication occurs on interference-free, usable frequencies, thus significantly improving the quality of received signals.

[0077] (5) Adaptive frequency hopping

[0078] Adaptive frequency hopping (AFH) technology evaluates the channel quality after each data transmission. If the current channel quality is poor, the current channel is removed from the list of available channels. Specifically in BLE, adaptive frequency hopping remaps a broken (severely interfered) channel (unavailable channel) to a good channel (available channel). When the frequency hopping algorithm jumps to the broken channel, it actually uses the remapped good channel for data transmission.

[0079] Furthermore, Bluetooth frequency hopping communication utilizes a frequency hopping table and a frequency hopping step to determine the frequency point used by the master and slave devices for the next data communication. The frequency hopping step value can be a fixed value or a variable value calculated by an algorithm. For example, it can be calculated using agreed-upon variable information (one or more pieces of information) and fixed information. The agreed-upon variable information could be the number of data packets received by the master device from the slave device, or the counting time of the master device's time slot counter; the fixed information could be a unique device identifier, typically the master device's device identifier, which could be the device's MAC address.

[0080] refer to Figure 3 , Figure 3 This is a schematic diagram of AFH technology; taking BLE's AFH technology as an example, the principle of existing frequency hopping technology is described in detail:

[0081] BLE has 37 data channel frequencies. In the presence of interference, at least two frequencies can be used, with the final frequency selection determined based on the interference situation. Channels are divided into used channels and unused channels. The list of used channels is shown in Table 302 (e.g., Table 302 includes channels a, b, d, f, and g), while Table 301 is a list of the 37 channels (assuming Table 301 includes channels a, b, c, d, e, f, and g). Each time a channel is used, the master device's time slot counter count and device identifier are input to a pseudo-random sequence generator to obtain the codeword prn_e (a codeword refers to a signal encoded using Huffman codes). Then, a modulo-n operation is performed on prn_e, where n is 37, to obtain the first mapping coefficient (i.e., the aforementioned frequency hopping step value). The first mapping coefficient is used to look up Table 301 to determine which channel is being mapped. In other words, mapping is first performed according to the complete set of 37 (referred to as full mapping, and the generated sequence is a pseudo-random sequence). Each time, if the mapped channel is in Table 302, such as channel a, then that channel is used directly for information exchange; that is, the channel identifier at this time is the channel identifier of the mapped channel. If the fully mapped channel is not in Table 302, such as channel c or channel e, then mapping is performed in Table 302 (the channels in Table 302 are reordered after each refresh), referred to as remapping. The remapped frequency is used for communication; that is, the channel identifier at this time is the channel identifier of the remapped channel. This process utilizes codewords and the remapping formula (…). Figure 3The second mapping coefficient can be calculated by N=5 in the remapping formula (i.e., the number of channels in Table 302). Based on the second mapping coefficient, a usable channel can be remapped in Table 302.

[0082] In existing technologies, in the AFH frequency hopping method, under conditions of strong background noise, the slave device cannot receive the AFH handover signaling sent by the master device. This leads to the master and slave devices using frequency hopping sequences containing different frequency points (the slave device uses the original table 302, while the master device uses a new table 302 with significantly reduced interference) for frequency hopping communication after the agreed-upon frequency hopping handover time point. This results in unstable communication links between the master and slave devices and a low probability of successful communication, making reliable communication impossible. Specifically, when the master and slave devices have not yet completed the AFH signaling response interaction at the frequency hopping handover time point, the number of fully mapped channels is 37, and the number of intersections of the master and slave devices' tables 302 is X. Therefore, the communication probability between the master and slave devices is X / 37. The fewer the number of intersections of their available channels, the lower the communication probability.

[0083] To address the aforementioned technical problems, this application proposes a frequency hopping communication method based on short-range wireless communication. This method ensures that the number N of channels used before and after frequency hopping is the same, and that the frequency hopping sequences before and after frequency hopping overlap, thereby ensuring a higher probability of communication through more channels. Even if interference prevents the master and slave devices from correctly exchanging frequency hopping signaling when the frequency hopping time point is reached, there is still a certain probability of successful communication between the master and slave devices.

[0084] Example 1

[0085] The frequency hopping communication method for short-range wireless communication is described in detail below. The execution entity of this frequency hopping communication method can be a master device or a chip within the master device. In this embodiment, the master device is used as the execution entity for description. (Refer to...) Figure 4 , Figure 4 This is a flowchart illustrating a frequency-hopping communication method for short-range wireless communication provided in an embodiment of this application; the frequency-hopping communication method includes:

[0086] Step 401: The master device sends a frequency hopping handover signaling to the slave device. The frequency hopping handover signaling indicates the first frequency hopping sequence and the time point of the frequency hopping handover. The first frequency hopping sequence is different from the second frequency hopping sequence currently used for frequency hopping communication. Both the first and second frequency hopping sequences include N channels, and the M reserved channels in the first frequency hopping sequence are consistent with the second frequency hopping sequence. M and N are both positive integers and M is less than N.

[0087] Specifically, the frequency hopping sequence specifies the number of channels and the specific channels used by the master and slave devices for frequency hopping communication. The number of channels is N, and there are M reserved channels between the first and second frequency hopping sequences. The position and channel identifier of the reserved channels are the same in the first and second frequency hopping sequences.

[0088] Step 402: When the frequency hopping switch time point arrives, the master device uses the first frequency hopping sequence to communicate with the slave device via frequency hopping.

[0089] Specifically, after the master device sends a frequency hopping switching signaling message to the slave device, the master device switches to using the first frequency hopping sequence to communicate with the slave device after the frequency hopping switching time point is reached.

[0090] In the frequency hopping communication method of this application embodiment, when the master device needs to switch frequency hopping sequences during communication with the slave device, it ensures that the frequency point used for each frequency hopping remains unchanged (i.e., N remains unchanged), and that there are M reserved channels between the first frequency hopping sequence and the second frequency hopping sequence. This ensures that when the frequency hopping switching time point arrives, the master device switches from the second frequency hopping sequence to the first frequency hopping sequence and performs frequency hopping communication with the slave device according to the first frequency hopping sequence. Even if the slave device still performs frequency hopping communication with the master device using the second frequency hopping sequence (for example, when the slave device cannot receive the frequency hopping switching signaling in the case of severe interference), since there are M identical channels between the first frequency hopping sequence and the second frequency hopping sequence (i.e., there is an intersection between the first frequency hopping sequence and the second frequency hopping sequence), there is still an M / N probability that they can communicate effectively. This maximizes the probability of successful communication between the master device and the slave device and improves the stability of the communication link between them.

[0091] It should be noted that the specific values ​​of M and N can be set according to the actual situation and are not specifically limited. M is preferably 2 / 3N to ensure a higher probability of successful communication between the master and slave devices.

[0092] In some possible embodiments, the frequency hopping signaling includes a mapping relationship between N sequence indexes and N channel identifiers, whereby the channel identifiers are used to indicate the channels in the first frequency hopping sequence.

[0093] In this embodiment, the frequency hopping signaling indicates the first frequency hopping sequence by carrying a mapping relationship between N sequence indexes and N channel identifiers in the signaling. The channel identifiers are used to indicate the channels in the first frequency hopping sequence. For example, assuming the first frequency hopping sequence has 5 channels, the signaling format "0: CH_a; 1: CH_b; 2: CH_c; 3: CH_d; 4: CH_e; 5: CH_g; 6: CH_f" or "0-CH_a; 1-CH_b; 2-CH_c; 3-CH_d; 4-CH_e; 5-CH_g; 6-CH_f" can be used to indicate the first frequency hopping sequence. Of course, other signaling formats can be used to indicate the first frequency hopping sequence. It is worth noting that the signaling formats of the first frequency hopping sequence and the second frequency hopping sequence can be the same or different, as long as the master device and the slave device agree on them.

[0094] Alternatively, a channel mapping table can be used to describe the first or second frequency hopping sequence in an easy-to-understand and intuitive way, as shown in the reference. Figure 5 , Figure 5 This is a schematic diagram of a frequency hopping sequence transformation provided in an embodiment of this application; wherein, channel mapping table 501 can be understood as the second frequency hopping sequence, and channel mapping table 502 can be understood as the first frequency hopping sequence, wherein, Figure 5 Taking N as 7 as an example, then... Figure 5 As shown, M is 5, and the 5 reserved channels are: CH_a; CH_b; CH_d; CH_g; CH_f.

[0095] After utilizing the frequency hopping communication method of this application embodiment, when the master device and slave device perform frequency hopping communication using the first frequency hopping sequence or the second frequency hopping sequence, the original two tables (such as...) will be updated. Figure 3 The mappings in Tables 301 and 302 are simplified into a single table (i.e., the mapping of the first frequency hopping sequence or the second frequency hopping sequence), reducing implementation complexity. The following explanation uses frequency hopping communication using the first frequency hopping sequence as an example. (Refer to...) Figure 5 and Figure 6 , Figure 6 This is a flowchart illustrating the process of determining a frequency-hopping communication channel in a frequency-hopping communication method provided in an embodiment of this application; assuming that it utilizes... Figure 5 The channel mapping table 502 is used as the first frequency hopping sequence, such as Figure 5As shown, both master and slave devices use N=7 channels for communication. Taking the master device as an example, the master device first uses its time slot counter count and its device identifier as input, inputs the above information into a pseudo-random sequence generator to generate codeword prn_e, performs a modulo N operation on codeword prn_e (where N is 7) to obtain the corresponding mapping coefficients, and finally queries the corresponding first frequency hopping sequence based on the mapping coefficients to output the channel identifier of the final frequency hopping communication channel. It can be seen that even when the frequency hopping handover signaling fails to interact successfully, when the mapping coefficients are 1, 2, 4, 6, and 7, the master and slave devices can still communicate successfully, that is, the probability of successful communication between the master and slave devices is 5 / 7 (i.e., 71%). It is evident that the frequency hopping communication method of this application embodiment can effectively improve the success probability of communication between master and slave devices, especially under severe interference conditions.

[0096] In some possible embodiments, the frequency hopping communication method further includes: the master device broadcasting a second frequency hopping sequence so that the slave device obtains the second frequency hopping sequence from the broadcast signal.

[0097] In the embodiments of this application, Figure 7a , Figure 7b , Figure 7c , Figure 7d This is a schematic diagram of the interaction flow of a frequency hopping communication method provided in an embodiment of this application. (Refer to...) Figure 7a There are many methods for a slave device to obtain the second frequency hopping sequence. For example, the master device can broadcast the second frequency hopping sequence, and the slave device can obtain the second frequency hopping sequence from the broadcast signal. The method of the master device broadcasting the second frequency hopping sequence to enable the slave device to obtain it is suitable for scenarios with one master device and multiple slave devices. That is, before the master device and the slave device establish a connection, the master device broadcasts the second frequency hopping sequence through its link layer (LL) to agree to use the second frequency hopping sequence for frequency hopping communication. It is worth noting that after the broadcast, the master device does not need to receive feedback signaling from the slave devices. After the slave device receives the broadcast signal from the master device through its link layer (LL), it can obtain the second frequency hopping sequence. Then, by scanning the slave device's broadcast signal, the master device can obtain the slave device's device identifier (ID). The master device can then send a connection request to the slave device to establish a data path connection based on the slave device's device identifier. After the slave device agrees to establish the connection, the master device and the slave device can complete the final establishment of the data path connection after exchanging encrypted data information. Then, the master device and the slave device can use the second frequency hopping sequence for frequency hopping communication.

[0098] In some possible embodiments, the frequency hopping communication method further includes: obtaining a device identifier of a slave device; sending a connection request to the slave device based on the device identifier of the slave device to request the establishment of a data path connection, the connection request including a second frequency hopping sequence; and receiving a connection confirmation instruction sent by the slave device in response to the connection request.

[0099] In this embodiment, another method for the slave device to obtain the second frequency hopping sequence is to obtain the device identifier of the slave device, and then request to establish a data path connection with the slave device based on the device identifier. The second frequency hopping sequence can be carried in the connection request so that the slave device can obtain the second frequency hopping sequence according to the connection request. (See reference...) Figure 7b In this process, the master device obtains the slave device's device identifier (ID) by scanning the slave device's broadcast signal. The master device can then send a connection request to the slave device to establish a data path connection, carrying a second frequency hopping sequence. When the slave device agrees to establish the connection, it sends a connection confirmation command to the master device. After exchanging encrypted data information, the master and slave devices complete the final establishment of the data path connection. Subsequently, the master and slave devices can perform frequency hopping communication using the second frequency hopping sequence.

[0100] In some possible embodiments, the frequency hopping communication method further includes: after establishing a data path connection with the slave device, sending a first negotiation signaling message to the slave device, the first negotiation signaling message including a second frequency hopping sequence; and receiving a first negotiation confirmation instruction sent by the slave device in response to the first negotiation signaling message.

[0101] In this embodiment of the application, reference is made to Figure 7c After establishing a data path connection with the slave device, the master device can send a first negotiation signaling message to the slave device. This first negotiation signaling message can carry a second frequency hopping sequence, meaning the master device initiates the negotiation process for the second frequency hopping sequence. When the slave device accepts the second frequency hopping sequence, it can return a first negotiation confirmation instruction to the master device to complete the negotiation of the second frequency hopping sequence. Thus, the master and slave devices can use the second frequency hopping sequence for frequency hopping communication. The signaling negotiation to determine the second frequency hopping sequence occurs after the master and slave devices establish a connection and requires receiving the slave device's first negotiation confirmation instruction (e.g., ...). Figure 7c If the master device does not receive the first negotiation confirmation instruction sent by the slave device (ACK instruction sent by the slave device), the master device will resend the first negotiation signaling to the slave device.

[0102] In some possible embodiments, the frequency hopping communication method further includes: receiving a second negotiation signaling sent by a slave device, the second negotiation signaling being sent after the slave device and the master device establish a data path connection, the second negotiation signaling including a second frequency hopping sequence; and sending a second negotiation confirmation instruction to the slave device in response to the second negotiation signaling.

[0103] In this embodiment of the application, reference is made to Figure 7d Alternatively, the slave device can initiate the negotiation process for the second frequency hopping sequence. After the slave device and master device establish a data path connection, the slave device sends a second negotiation signaling message carrying the second frequency hopping sequence to the master device. When the master device accepts the second frequency hopping sequence, it returns a second negotiation confirmation instruction to the slave device (e.g., ...). Figure 7d The master device sends an ACK command to complete the negotiation of the second frequency hopping sequence, so that the master device and the slave device can use the second frequency hopping sequence to perform frequency hopping communication.

[0104] Specifically, in actual use, the master device and the slave device can first use all channels for interactive communication. Taking Bluetooth as an example, 37 data channels can be used for all-channel interactive communication. When the master device or the slave device determines that the quality of all-channel communication is poor (for example, the number of unavailable channels in the all-channel reaches a certain threshold, or other conditions are met, without special restrictions), the master device or the slave device initiates negotiation of a second frequency hopping sequence so that the master device and the slave device can perform frequency hopping communication with a fixed number of channels (i.e., N).

[0105] Furthermore, in order for the master and slave devices to perform frequency-hopping communication, both need to explicitly define the number of channels N used in the frequency-hopping communication, i.e. Figure 6 The reason for N in the text is that it is used in the context of... Figure 6 The process of determining the frequency hopping communication channel requires the use of N. One explicit method is to refer to... Figures 7a-7d When determining the second frequency hopping sequence through signaling negotiation or broadcasting, the number of channels N for both the first and second frequency hopping sequences can also be determined simultaneously. This is achieved by adding N to the master device's broadcast signal, the connection request for establishing a data path connection, the first negotiation signaling, and the second negotiation signaling. This ensures that the master and slave devices clearly understand the number of channels N used in the frequency hopping communication process and the initial frequency hopping sequence, i.e., the second frequency hopping sequence. Another explicit method is to directly obtain N using the second frequency hopping sequence. Of course, other explicit methods are possible, which are not specifically limited here.

[0106] In some possible embodiments, step 401 specifically includes: when the second frequency hopping sequence meets the preset frequency hopping switching conditions, the master device sends a frequency hopping switching signaling to the slave device.

[0107] In this embodiment of the application, when the current second frequency hopping sequence meets the preset frequency hopping switching conditions, the master device sends a frequency hopping switching signaling to the slave device to trigger the frequency hopping sequence switching. The preset frequency hopping switching conditions can be set according to actual conditions and are not specifically limited.

[0108] In some possible embodiments, the preset frequency hopping handover conditions include at least one of the following:

[0109] The quality assessment parameters of the second frequency hopping sequence meet the sequence assessment conditions. The quality assessment parameters are used to characterize the overall communication quality of the N channels in the second frequency hopping sequence.

[0110] In the second frequency hopping sequence, the number of channels with channel quality below the quality threshold is greater than the number threshold.

[0111] A change in the available channel set was detected. The available channel set is either the set of scanning channels with interference energy values ​​lower than the interference energy threshold or the set of Y scanning channels with the smallest interference energy values, where Y is a positive integer.

[0112] Specifically, this application provides three possible preset frequency hopping switching conditions, which are more in line with actual communication scenarios. Frequency hopping sequence switching is triggered when the communication quality of the second frequency hopping sequence is poor or the communication environment changes. The quality assessment parameter characterizes the overall communication quality of the N channels in the second frequency hopping sequence. For example, the quality assessment parameter can be the ratio of the total number of channels with quality below a quality threshold to the first ratio of the N channels, or the ratio of the total number of channels not in the available channel set to the second ratio of the N channels. Other parameters can also be used, without particular limitation. The specific sequence assessment conditions can be set according to actual conditions, without particular limitation. For example, the sequence assessment condition is that the first ratio is greater than a first ratio threshold, or the second ratio is greater than a second ratio threshold. The specific values ​​of the first and second ratio thresholds can be set according to actual conditions, without particular limitation. When the master device determines that the quality assessment parameter of the second frequency hopping sequence meets the sequence assessment conditions, it can determine that the second frequency hopping sequence meets the preset frequency hopping switching conditions; otherwise, it determines that the second frequency hopping sequence does not meet the preset frequency hopping switching conditions.

[0113] Furthermore, channel quality can be defined using parameters that characterize the communication quality of the channel, without particular limitation. Channel quality parameters include, for example, Bit Error Rate (BER) and Packet Error Rate (PER). Bit Error Rate refers to the proportion (average) of erroneous bits out of the total number of transmitted bits; it is also known as the "bit error rate." Packet Error Rate refers to packet errors caused by receiving the same packet twice, packet loss, or packet reversal. Quality thresholds can be set according to actual conditions without particular limitation. The channel quality for each channel is determined, and a first ratio is determined based on the channel command and channel threshold.

[0114] The available channel set is either the set of scanning channels with interference energy values ​​below the interference energy threshold, or the set of Y scanning channels with the smallest interference energy values, where Y is a positive integer. The specific value of Y can be set according to actual conditions; for example, Y can be set to N. The interference energy values ​​of the scanning channels are obtained and sorted in ascending order, with the top Y scanning channels selected as the available channel set. The interference energy value characterizes the interference magnitude of the channel and can be based on indicators such as Received Signal Strength Indication (RSSI), without specific limitations. The interference energy threshold can be set according to actual conditions, without specific limitations. A second ratio is determined based on the available channel set. The interference energy value of each channel can be determined by periodically scanning the channel signal. Specifically, obtaining the interference energy value of a channel does not require the channel to be in a data path connection state.

[0115] In addition, the number threshold can be set according to the actual situation and is not specifically limited. The master device first determines the number of channels in the second frequency hopping sequence whose channel quality is lower than the quality threshold based on the channel quality and quality threshold. Then, it determines whether the second frequency hopping sequence meets the preset frequency hopping switching conditions based on the number threshold. If the number of channels is greater than the number threshold, the second frequency hopping sequence is determined to meet the preset frequency hopping switching conditions; otherwise, the second frequency hopping sequence is determined not to meet the preset frequency hopping switching conditions.

[0116] Finally, the master device can also periodically detect whether there are any changes in the available channel set. When the available channel set determined in the previous period is different from the available channel set determined in the current period, it is determined that the current second frequency hopping sequence meets the preset frequency hopping switching conditions; otherwise, it is determined that the second frequency hopping sequence does not meet the preset frequency hopping switching conditions.

[0117] It should be noted that, in addition to the master device determining whether the second frequency hopping sequence meets the preset frequency hopping switching conditions, the slave device can also determine whether the second frequency hopping sequence meets the preset frequency hopping switching conditions and transmit the determination result to the master device. The master device can compare the received determination result with its own determination result to verify whether its determination result is accurate.

[0118] In some possible embodiments, the frequency hopping communication method further includes: replacing NM channels in the N channels of the second frequency hopping sequence that satisfy a preset unavailable channel condition with new available channels to obtain a first frequency hopping sequence.

[0119] In this embodiment, when the second frequency hopping sequence meets the preset frequency hopping switching conditions, when obtaining the first frequency hopping sequence based on the second frequency hopping sequence, NM channels in the second frequency hopping sequence that meet the unavailable channel conditions are replaced with new available channels. This allows the master device and slave device to utilize the second frequency hopping sequence with better channel quality for frequency hopping communication, ensuring the communication quality between the master device and slave device. The preset unavailable channel conditions can be set according to actual conditions and are not specifically limited. Furthermore, once the specific value of M is set, the value of NM can be uniquely determined. Assuming Q = NM, when the total number of channels X that meet the preset unavailable channel conditions is less than Q, Q = X, and M = NQ. That is, when X is less than Q, only X channels out of N channels are replaced with new available channels, leaving NX reserved channels. When X is greater than or equal to Q, Q channels out of N channels are replaced with new available channels, leaving NQ reserved channels.

[0120] Specifically, when all N channels in the second frequency hopping sequence meet the preset unavailable channel condition, the N channels can be replaced by repeatedly changing the frequency hopping sequence, effectively ensuring the communication probability between the master and slave devices. (Reference) Figure 5 Assuming channel mapping table 501 is the second frequency hopping sequence, all seven channels in channel mapping table 501 are unavailable, meaning they all meet the preset unavailable channel condition. Therefore, a complete replacement of channel mapping table 501 can be achieved through four channel switching operations. The first switching is from channel mapping table 501 to channel mapping table 502, replacing CH_c and CH_e with CH_i and CH_j. Channel mapping table 502 is not reordered; only the updated frequencies are replaced. The second switching is from channel mapping table 502 to channel mapping table 503, replacing CH_a and CH_f with CH_n and CH_k. The third switching is from channel mapping table 503 to channel mapping table 504, replacing CH_b and CH_d with CH_h and CH_f. The fourth switching is from channel mapping table 504 to channel mapping table 505, replacing CH_g with CH_m.

[0121] In some possible embodiments, NM channels out of the N channels in the second frequency hopping sequence that satisfy a preset unavailable channel condition are replaced with new available channels to obtain the first frequency hopping sequence, including:

[0122] Obtain the channel quality of N channels in the second frequency hopping sequence; replace NM channels in the second frequency hopping sequence whose channel quality is lower than the quality threshold with new available channels to obtain the first frequency hopping sequence.

[0123] In this embodiment, the preset unavailable channel condition is that the channel quality is lower than a quality threshold. Channels in the second frequency hopping sequence are replaced based on the channel quality to obtain a first frequency hopping sequence with better channel quality. The channel quality can be implemented using bit error rate or packet error rate, and the specific value of the quality threshold can be set according to actual conditions. This quality threshold can be the same as or different from the quality threshold used in determining the preset frequency hopping switching condition; no special limitation is made.

[0124] In some possible embodiments, NM channels out of the N channels in the second frequency hopping sequence that satisfy a preset unavailable channel condition are replaced with new available channels to obtain the first frequency hopping sequence, including:

[0125] Determine the available channel set, which is either the set of scanning channels with interference energy values ​​below the interference energy threshold or the set of Y scanning channels with the smallest interference energy values, where Y is a positive integer; replace the NM channels in the second frequency hopping sequence that are not in the available channel set with new available channels to obtain the first frequency hopping sequence.

[0126] In this embodiment, the preset unavailable channel condition is that the channel is not in the set of available channels. Channels not in the set of available channels in the second frequency hopping sequence are replaced with new available channels to obtain a first frequency hopping sequence with better channel quality. The received signal strength indicator can be used as the interference energy value, and the specific values ​​of the interference energy threshold and Y can be set according to actual conditions. For example, Y can be set to N. The interference energy threshold here can be the same as or different from the interference energy threshold in the preset frequency hopping switching condition, and Y here can be the same as or different from Y in the preset frequency hopping switching condition; no special limitation is made.

[0127] In some possible embodiments, determining the set of available channels includes:

[0128] Channel scanning is performed at preset time intervals, and the interference energy value corresponding to the scanned channel is determined; the scanned channels with interference energy values ​​lower than the interference energy threshold are determined as the set of available channels; or, the scanned channels with the smallest interference energy values ​​among the first Y are determined as the set of available channels.

[0129] In this embodiment, channel scanning can determine the interference energy value of each scanned channel, which characterizes the degree of interference. Scanned channels with interference energy values ​​below an interference energy threshold can be considered as a set of available channels. Alternatively, the first Y scanned channels with the smallest interference energy values ​​can be identified as the set of available channels. Other methods for determining the set of available channels are also available and are not specifically limited. The specific value of the preset time interval can be set according to actual conditions and is not specifically limited.

[0130] In some possible embodiments, reference Figures 7a-7d After determining the first frequency hopping sequence, the master device sends the first frequency hopping sequence to the slave device via master broadcast or transmission on the data path. (See reference) Figure 7a The master device broadcasts a frequency hopping switch signaling message, enabling the slave device to obtain the first frequency hopping sequence and the frequency hopping switch time point from the master device's broadcast signal. Upon reaching the frequency hopping switch time point, both the master and slave devices switch to using the first frequency hopping sequence for frequency hopping communication. However, if the slave device cannot receive the master device's broadcast signal, after reaching the frequency hopping switch time point, the master device switches to the first frequency hopping sequence to communicate with the slave device, while the slave device continues to use the second frequency hopping sequence to communicate with the master device. In this case, there is still a probability of successful communication (M / N). (Reference) Figures 7c-7d The master device sends frequency hopping handover signaling on the data path, enabling the slave device to receive the frequency hopping handover signaling and return a handover confirmation command (such as...). Figure 7b (The ACK command sent by the slave device). When the frequency hopping handover time point is reached, the master and slave devices switch to using the first frequency hopping sequence for frequency hopping communication. However, if the slave device does not receive the frequency hopping handover signaling, that is, the master device does not receive the handover confirmation command returned by the slave device, after the frequency hopping handover time point is reached, the master device switches to the first frequency hopping sequence to communicate with the slave device, while the slave device still uses the second frequency hopping sequence to communicate with the master device. In this case, there is still a probability of successful communication (M / N).

[0131] In some possible embodiments, the frequency hopping communication method further includes: when no handover confirmation instruction is received from the slave device in response to the frequency hopping handover instruction, retransmitting the frequency hopping handover instruction to the slave device until the time point for frequency hopping handover is reached.

[0132] In this embodiment of the application, if the master device does not receive a switching confirmation instruction sent by the slave device in response to the frequency hopping switching instruction, the master device resends the frequency hopping switching instruction to the slave device until the frequency hopping switching time point is reached. By resending the frequency hopping switching instruction, the master device ensures that it can switch to using the first frequency hopping sequence to communicate with the master device at the specified frequency hopping switching time point.

[0133] Example 2

[0134] Based on the first embodiment of the frequency hopping communication method for short-range wireless communication described above, this application also provides a frequency hopping communication method for short-range wireless communication. The executing entity of this frequency hopping communication method can be a slave device or a chip within the slave device. In this application embodiment, a slave device is used as the executing entity for description. (Refer to...) Figure 8 , Figure 8This is a flowchart illustrating a frequency-hopping communication method for short-range wireless communication provided in an embodiment of this application; the frequency-hopping communication method includes:

[0135] Step 801: Receive frequency hopping handover signaling sent by the master device from the slave device. The frequency hopping handover signaling indicates the first frequency hopping sequence and the time point of frequency hopping handover. The first frequency hopping sequence is different from the second frequency hopping sequence currently used for frequency hopping communication. Both the first and second frequency hopping sequences include N channels, and the M reserved channels in the first frequency hopping sequence are consistent with the second frequency hopping sequence. M and N are both positive integers and M is less than N.

[0136] Step 802: When the slave device arrives at the frequency hopping switch time point, it uses the first frequency hopping sequence to communicate with the master device via frequency hopping.

[0137] In the frequency hopping communication method of this application embodiment, when the master device needs to switch frequency hopping sequences during communication with the slave device, it ensures that there are M reserved channels between the first frequency hopping sequence and the second frequency hopping sequence (the position and channel identifier of the reserved channels are the same in the first frequency hopping sequence and the second frequency hopping sequence). This ensures that when the frequency hopping switching time point arrives, the master device switches from the second frequency hopping sequence to the first frequency hopping sequence and performs frequency hopping communication with the slave device according to the first frequency hopping sequence. Even if the slave device still performs frequency hopping communication with the master device using the second frequency hopping sequence, since there are M identical channels between the first frequency hopping sequence and the second frequency hopping sequence, there is still an M / N probability that they can communicate effectively. This effectively guarantees the success probability of communication between the master device and the slave device and ensures the stability of the communication link between them.

[0138] In some possible embodiments, the frequency hopping signaling includes a mapping relationship between N sequence indexes and N channel identifiers, whereby the channel identifiers are used to indicate the channels in the first frequency hopping sequence.

[0139] In some possible embodiments, the frequency hopping communication method further includes sending a switching confirmation command to the master device in response to a frequency hopping switching command.

[0140] In some possible embodiments, the frequency hopping communication method further includes receiving a broadcast signal from a master device, the broadcast signal including a second frequency hopping sequence.

[0141] In some possible embodiments, the frequency hopping communication method further includes: receiving a connection request sent by a master device to request the establishment of a data path connection, the connection request including a second frequency hopping sequence; and sending a connection confirmation instruction to the master device in response to the connection request.

[0142] In some possible embodiments, the frequency hopping communication method further includes: receiving a first negotiation signaling sent by a master device, the first negotiation signaling including a second frequency hopping sequence; and sending a first negotiation confirmation instruction to the master device in response to the first negotiation signaling.

[0143] In some possible embodiments, the frequency hopping communication method further includes: after establishing a data path connection with the master device, sending a second negotiation signaling message to the master device, the second negotiation signaling message including a second frequency hopping sequence; and receiving a second negotiation confirmation instruction sent by the master device in response to the second negotiation signaling message.

[0144] For a detailed description and beneficial effects of the frequency hopping communication method in this application embodiment, please refer to the description of Embodiment 1 above, which will not be repeated here.

[0145] Based on Embodiment 1, this application also provides a master device for short-range wireless communication, see reference. Figure 9 , Figure 9 This is a schematic diagram of the structure of a master device for short-range wireless communication provided in an embodiment of this application; the master device includes:

[0146] Transceiver 901 is used to send frequency hopping handover signaling to slave devices. The frequency hopping handover signaling indicates the first frequency hopping sequence and the time point of frequency hopping handover. The first frequency hopping sequence is different from the second frequency hopping sequence currently used for frequency hopping communication. Both the first and second frequency hopping sequences include N channels, and the M reserved channels in the first frequency hopping sequence are consistent with the second frequency hopping sequence. M and N are both positive integers and M is less than N.

[0147] The processor 902 is used to communicate with the slave device via transceiver 901 using a first frequency hopping sequence when the frequency hopping switching time point arrives.

[0148] In some possible embodiments, the processor 902 is further configured to replace NM channels among the N channels of the second frequency hopping sequence that satisfy the preset unavailable channel condition with new available channels to obtain the first frequency hopping sequence.

[0149] For details regarding the specific implementation process and beneficial effects of the main device in the embodiments of this application, please refer to the description of Embodiment 1 above, which will not be repeated here.

[0150] Based on Embodiment 2, this application also provides a slave device for short-range wireless communication, see reference. Figure 10 , Figure 10 This is a schematic diagram of a slave device for short-range wireless communication provided in an embodiment of this application; the slave device includes:

[0151] Transceiver 1001 is used to receive frequency hopping handover signaling sent by the master device. The frequency hopping handover signaling indicates the first frequency hopping sequence and the time point of frequency hopping handover. The first frequency hopping sequence is different from the second frequency hopping sequence currently used for frequency hopping communication. Both the first and second frequency hopping sequences include N channels, and the M reserved channels in the first frequency hopping sequence are consistent with the second frequency hopping sequence. M and N are both positive integers and M is less than N.

[0152] The processor 1002 is used to communicate with the master device via transceiver 1001 using a first frequency hopping sequence when the frequency hopping switching time point arrives.

[0153] For details regarding the specific implementation process and beneficial effects of the slave device in the embodiments of this application, please refer to the description of Embodiment 2 above, which will not be repeated here.

[0154] Based on Embodiment 1 and Embodiment 2, this application also provides a frequency hopping communication system for short-range wireless communication, including the master device and the slave device.

[0155] Based on Embodiments 1 and 2, this application also provides a communication device; please refer to [link to embodiment 1]. Figure 11 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application. Figure 11 As shown, the communication device 1100 may include a processor 1101 and a memory 1105. Furthermore, the communication device 1100 may also include a user interface 1103, a network interface 1104, and at least one communication bus 1102. The communication bus 1102 is used to enable communication between these components. The user interface 1103 may include a display screen and a keyboard; optionally, the user interface 1103 may also include a standard wired interface or a wireless interface. The network interface 1104 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1105 may be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 1105 may also be at least one storage device located remotely from the aforementioned processor 1101. Figure 11 As shown, the memory 1105, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.

[0156] exist Figure 11In the communication device 1100 shown, the network interface 1104 can provide network communication functions; the user interface 1103 is mainly used to provide an input interface for users; and the processor 1101 can be used to call the device control application stored in the memory 1105 to implement the steps of the frequency hopping communication method for short-range wireless communication described in any of the above method embodiments.

[0157] It should be understood that the communication device 1100 described in the embodiments of this application can perform the frequency hopping communication method for short-range wireless communication described above, and will not be repeated here. In addition, the beneficial effects of using the same method will not be repeated here either.

[0158] Furthermore, it should be noted that this application also provides a computer storage medium, and the computer program includes program instructions. When the processor executes the program instructions, it can perform the frequency hopping communication method for short-range wireless communication described in any of the preceding method embodiments. Therefore, it will not be repeated here. Additionally, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer storage medium embodiments of this application, please refer to the description of the method embodiments of this application.

[0159] Based on Embodiment 1 and Embodiment 2, this application also provides a computer program product containing instructions that, when run on a computer, cause the computer to execute the frequency hopping communication method for short-range wireless communication described in Embodiment 1 or Embodiment 2.

[0160] Based on Embodiment 1 and Embodiment 2, this application also provides a chip, which includes a processor and a data interface. The processor reads instructions stored in the memory through the data interface and executes the frequency hopping communication method for short-range wireless communication described in Embodiment 1 or Embodiment 2.

[0161] Optionally, as one implementation, the chip may further include a memory storing instructions, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the frequency hopping communication method for short-range wireless communication described in Embodiment 1 or Embodiment 2.

[0162] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0163] The various devices and products described in the above embodiments include modules / units, which can be software modules / units, hardware modules / units, or a combination of both. For example, for devices and products applied to or integrated into a chip, all modules / units can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs running on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits. For devices and products applied to or integrated into a chip module, all modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some / units can be... The implementation is achieved through software programs that run on the processor integrated within the chip module. The remaining modules / units (if any) can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into the terminal, each module / unit can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components within the terminal. Alternatively, at least some modules / units can be implemented through software programs that run on the processor integrated within the terminal, while the remaining modules / units (if any) can be implemented using hardware methods such as circuits.

[0164] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A frequency-hopping communication method for short-range wireless communication, characterized in that, The short-range wireless communication includes any one of the following: Bluetooth BT communication, Bluetooth Low Energy (BLE) communication, ZigBee communication, or Ant+ communication; the method includes: A frequency hopping handover signaling is sent to the slave device. The frequency hopping handover signaling indicates a first frequency hopping sequence and the time point of the frequency hopping handover. The first frequency hopping sequence is different from the second frequency hopping sequence currently used for frequency hopping communication. Both the first frequency hopping sequence and the second frequency hopping sequence include N channels, and M reserved channels in the first frequency hopping sequence are consistent with those in the second frequency hopping sequence. M and N are both positive integers, and M is less than N. The frequency hopping handover signaling includes a mapping relationship between N sequence indexes and N channel identifiers. The channel identifiers are used to indicate the channels in the first frequency hopping sequence. When the frequency hopping switch time point arrives, frequency hopping communication is performed with the slave device using the first frequency hopping sequence.

2. The method according to claim 1, characterized in that, Sending frequency hopping handover signaling to the slave device includes: When the second frequency hopping sequence meets the preset frequency hopping switching conditions, the frequency hopping switching signaling is sent to the slave device.

3. The method according to claim 2, characterized in that, The preset frequency hopping switching conditions include at least one of the following: The quality evaluation parameters of the second frequency hopping sequence meet the sequence evaluation conditions, and the quality evaluation parameters are used to characterize the overall communication quality of the N channels in the second frequency hopping sequence. In the second frequency hopping sequence, the number of channels with channel quality below the quality threshold is greater than the number threshold; A change in a channel within the available channel set is detected. The available channel set is either a set of scanning channels with interference energy values ​​below an interference energy threshold or a set of Y scanning channels with the smallest interference energy values, where Y is a positive integer.

4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: If no handover confirmation instruction is received from the slave device in response to the frequency hopping handover instruction, the frequency hopping handover instruction is resent to the slave device until the time point for the frequency hopping handover is reached.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: The first frequency hopping sequence is obtained by replacing NM channels that meet the preset unavailable channel conditions among the N channels of the second frequency hopping sequence with new available channels.

6. The method according to claim 5, characterized in that, The first frequency hopping sequence is obtained by replacing NM channels from the N channels of the second frequency hopping sequence that meet the preset unavailable channel conditions with new available channels, including: Obtain the channel quality of each of the N channels in the second frequency hopping sequence; The first frequency hopping sequence is obtained by replacing NM channels in the second frequency hopping sequence whose channel quality is lower than the quality threshold with new available channels.

7. The method according to claim 5, characterized in that, The first frequency hopping sequence is obtained by replacing NM channels from the N channels of the second frequency hopping sequence that meet the preset unavailable channel conditions with new available channels, including: Determine the set of available channels, which is either a set of scanning channels with interference energy values ​​lower than the interference energy threshold or a set of Y scanning channels with the smallest interference energy values, where Y is a positive integer; The NM channels in the second frequency hopping sequence that are not in the available channel set are replaced with new available channels to obtain the first frequency hopping sequence.

8. The method according to claim 7, characterized in that, Determine the set of available channels, including: Perform channel scanning at preset time intervals and determine the interference energy value corresponding to the scanned channel; The scanning channels whose interference energy values ​​are lower than the interference energy threshold are determined as the set of available channels; or, the scanning channels with the smallest interference energy values ​​among the first Y are determined as the set of available channels.

9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: The second frequency hopping sequence is broadcast so that the slave device obtains the second frequency hopping sequence from the broadcast signal.

10. The method according to any one of claims 1 to 8, characterized in that, The method further includes: Obtain the device identifier of the slave device; A connection request for establishing a data path connection is sent to the slave device according to the device identifier of the slave device, the connection request including the second frequency hopping sequence; Receive the connection confirmation instruction sent by the slave device in response to the connection request.

11. The method according to any one of claims 1 to 8, characterized in that, The method further includes: After establishing a data path connection with the slave device, a first negotiation signaling is sent to the slave device, the first negotiation signaling including the second frequency hopping sequence; Receive the first negotiation confirmation instruction sent by the slave device in response to the first negotiation signaling.

12. The method according to any one of claims 1 to 8, characterized in that, The method further includes: The system receives a second negotiation signaling sent by the slave device, the second negotiation signaling being sent after the slave device establishes a data path connection with the master device, and the second negotiation signaling includes the second frequency hopping sequence; In response to the second negotiation signaling, a second negotiation confirmation instruction is sent to the slave device.

13. A frequency-hopping communication method for short-range wireless communication, characterized in that, The short-range wireless communication includes any one of the following: Bluetooth BT communication, Bluetooth Low Energy (BLE) communication, ZigBee communication, or Ant+ communication; the method includes: The system receives a frequency hopping handover signaling message sent by the master device. The signaling message indicates a first frequency hopping sequence and the time point of the frequency hopping handover. The first frequency hopping sequence is different from the second frequency hopping sequence currently used for frequency hopping communication. Both the first and second frequency hopping sequences include N channels, and M reserved channels in the first frequency hopping sequence are consistent with those in the second frequency hopping sequence. M and N are both positive integers, and M is less than N. The signaling message includes a mapping relationship between N sequence indexes and N channel identifiers. The channel identifiers are used to indicate the channels in the first frequency hopping sequence. When the frequency hopping switch time point arrives, the first frequency hopping sequence is used to perform frequency hopping communication with the master device.

14. The method according to claim 13, characterized in that, The method further includes: When responding to the frequency hopping switching command, a switching confirmation command is sent to the master device.

15. The method according to any one of claims 13 to 14, characterized in that, The method further includes: The broadcast signal from the master device is received, the broadcast signal including the second frequency hopping sequence.

16. The method according to any one of claims 13 to 15, characterized in that, The method further includes: The system receives a connection request sent by the master device to request the establishment of a data path connection, the connection request including the second frequency hopping sequence; In response to the connection request, a connection confirmation command is sent to the master device.

17. The method according to any one of claims 13 to 16, characterized in that, The method further includes: Receive a first negotiation signaling sent by the master device, wherein the first negotiation signaling includes the second frequency hopping sequence; In response to the first negotiation signaling, a first negotiation confirmation command is sent to the master device.

18. The method according to any one of claims 13 to 17, characterized in that, The method further includes: After establishing a data path connection with the master device, a second negotiation signaling is sent to the master device, the second negotiation signaling including the second frequency hopping sequence; Receive the second negotiation confirmation instruction sent by the master device in response to the second negotiation signaling.

19. A master device for short-range wireless communication, characterized in that, The short-range wireless communication includes any one of the following: Bluetooth BT communication, Bluetooth Low Energy (BLE) communication, ZigBee communication, or Ant+ communication; the master device includes: A transceiver is used to send frequency hopping handover signaling to slave devices. The frequency hopping handover signaling indicates a first frequency hopping sequence and the time point of frequency hopping handover. The first frequency hopping sequence is different from the second frequency hopping sequence currently used for frequency hopping communication. Both the first and second frequency hopping sequences include N channels, and M reserved channels in the first frequency hopping sequence are consistent with those in the second frequency hopping sequence. M and N are both positive integers, and M is less than N. The frequency hopping handover signaling includes a mapping relationship between N sequence indexes and N channel identifiers. The channel identifiers are used to indicate the channels in the first frequency hopping sequence. The processor is configured to use the first frequency hopping sequence to perform frequency hopping communication with the slave device via the transceiver when the frequency hopping switching time point arrives.

20. A slave device for short-range wireless communication, characterized in that, The short-range wireless communication includes any one of the following: Bluetooth BT communication, Bluetooth Low Energy (BLE) communication, ZigBee communication, or Ant+ communication; the slave device includes: A transceiver is used to receive frequency hopping handover signaling sent by a master device. The frequency hopping handover signaling indicates a first frequency hopping sequence and the time point of frequency hopping handover. The first frequency hopping sequence is different from the second frequency hopping sequence currently used for frequency hopping communication. Both the first and second frequency hopping sequences include N channels, and M reserved channels in the first frequency hopping sequence are consistent with those in the second frequency hopping sequence. M and N are both positive integers, and M is less than N. The frequency hopping handover signaling includes a mapping relationship between N sequence indexes and N channel identifiers. The channel identifiers are used to indicate the channels in the first frequency hopping sequence. The processor is configured to use the first frequency hopping sequence to perform frequency hopping communication with the master device via the transceiver when the frequency hopping switching time point arrives.

21. A frequency-hopping communication system for short-range wireless communication, characterized in that, It includes the master device as described in claim 19 and the slave device as described in claim 20.

22. A communication device, characterized in that, include: Processor and memory; The processor is connected to a memory, wherein the memory is used to store program code, and the processor is used to call the program code to execute the frequency hopping communication method for short-range wireless communication as described in any one of claims 1-18.

23. A computer storage medium, characterized in that, The computer storage medium stores a computer program, which includes program instructions that, when executed by a processor, perform a frequency-hopping communication method for short-range wireless communication as described in any one of claims 1-18.