Search

US-12621020-B2 - Frequency hopping communication method for short-distance wireless communication, and related device

US12621020B2US 12621020 B2US12621020 B2US 12621020B2US-12621020-B2

Abstract

A frequency hopping communication method for short-distance wireless communication between a primary device and a secondary device comprises switching by the primary device from the second frequency hopping sequence to the first frequency hopping sequence at a time point of frequency hopping switching, wherein M reserved channels are between a first frequency hopping sequence and a second frequency hopping sequence; and performing frequency hopping communication with the secondary device based on the first frequency hopping sequence.

Inventors

  • Tong Chen
  • Han Lu
  • Zehong Zhang
  • Bixiang HU
  • Yufei Yang
  • Rui CUI
  • Shaojie XUE

Assignees

  • HUAWEI TECHNOLOGIES CO., LTD.

Dates

Publication Date
20260505
Application Date
20240322

Claims (20)

  1. 1 . A method, comprising: sending frequency hopping switching signaling to a secondary device, wherein the frequency hopping switching signaling indicates a first frequency hopping sequence and a time point of frequency hopping switching, wherein the first frequency hopping sequence is different from a second frequency hopping sequence for frequency hopping communication, wherein the first frequency hopping sequence comprises N first channels, wherein the second frequency hopping sequence comprises N second channels, wherein M first reserved channels in the N first channels are consistent with M second reserved channels in the N second channels such that a location of the M first reserved channels and the M second reserved channels are the same, and an identifier of the M first reserved channels and the M second reserved channels are the same, wherein M and N are positive integers, and wherein M is less than N; and performing frequency hopping communication with the secondary device using the first frequency hopping sequence at the time point.
  2. 2 . The method of claim 1 , wherein the frequency hopping switching signaling comprises a mapping relationship between N sequence number indexes and N channel identifiers, and wherein each of the N channel identifiers indicates a channel in the first frequency hopping sequence.
  3. 3 . The method of claim 1 , further comprising further sending the frequency hopping switching signaling to the secondary device when the second frequency hopping sequence meets a preset frequency hopping switching condition.
  4. 4 . The method of claim 3 , wherein the preset frequency hopping switching condition comprises at least one of the following: a quality evaluation parameter of the second frequency hopping sequence meets a sequence evaluation condition, wherein the quality evaluation parameter represents overall communication quality of the N channels in the second frequency hopping sequence; a quantity of channels whose channel quality is lower than a quality threshold and that are in the second frequency hopping sequence is greater than a quantity threshold; and a change of a channel in a used channel set is detected occurs, wherein the used channel set is a set of scanned channels whose interference energy values are less than an interference energy threshold or a set of Y scanned channels whose interference energy values are smallest, and wherein Y is a positive integer.
  5. 5 . The method of claim 1 , further comprising resending the frequency hopping switching signaling to the secondary device until the time point of the frequency hopping switching when a switching acknowledgment instruction from the secondary device in response to the frequency hopping switching instruction is not received.
  6. 6 . The method of claim 1 , further comprising: replacing N−M channels that meet a preset unused channel condition and that are in the N channels in the second frequency hopping sequence with new used channels; and obtaining the first frequency hopping sequence in response to the replacing.
  7. 7 . The method of claim 6 , wherein replacing the N−M channels comprises: separately obtaining channel qualities of the N channels in the second frequency hopping sequence; and further replacing the N−M channels whose channel qualities are lower than a quality threshold and that are in the N channels in the second frequency hopping sequence with the new used channels.
  8. 8 . The method of claim 6 , wherein replacing the N−M channels comprises: determining a used channel set, wherein the used channel set is a set of scanned channels whose interference energy values are less than an interference energy threshold or a set of Y scanned channels whose interference energy values are smallest, and wherein Y is a positive integer; and replacing the N−M channels that are in the N channels in the second frequency hopping sequence and that are not in the used channel set with the new used channels.
  9. 9 . The method of claim 8 , wherein determining the used channel set comprises: performing channel scanning based on a preset time interval; determining, based on the channel scanning, an interference energy value corresponding to a scanned channel; and determining, based on the interference energy value, scanned channels whose interference energy values are less than the interference energy threshold as the used channel set or first Y scanned channels whose interference energy values are smallest as the used channel set.
  10. 10 . The method of claim 1 , further comprising broadcasting the second frequency hopping sequence to enable the secondary device to obtain the second frequency hopping sequence from a broadcast signal.
  11. 11 . The method of claim 1 , further comprising: obtaining a device identifier of the secondary device; sending, to the secondary device based on the device identifier, a connection request requesting to establish a data path connection, wherein the connection request comprises the second frequency hopping sequence; and receiving, from the secondary device in response to the connection request, a connection acknowledgment instruction.
  12. 12 . The method of claim 1 , further comprising: establishing a data path connection to the secondary device; sending first negotiation signaling to the secondary device after establishing the data path connection to the secondary device, wherein the first negotiation signaling comprises the second frequency hopping sequence; and receiving, from the secondary device in response to the first negotiation signaling, a first negotiation acknowledgment instruction.
  13. 13 . The method of claim 1 , further comprising: receiving first negotiation signaling from the secondary device, wherein the first negotiation signaling is based on a data path connection between the secondary device and a primary device, and wherein the first negotiation signaling comprises the second frequency hopping sequence; and sending a first negotiation acknowledgment instruction to the secondary device in response to the first negotiation signaling.
  14. 14 . A method, comprising: receiving frequency hopping switching signaling from a primary device, wherein the frequency hopping switching signaling indicates a first frequency hopping sequence and a time point of frequency hopping switching, wherein the first frequency hopping sequence is different from a second frequency hopping sequence for frequency hopping communication, wherein the first frequency hopping sequence comprises N first channels, wherein the second frequency hopping sequence comprises N second channels, wherein M first reserved channels in the N first channels are consistent with M second reserved channels in the N second channels such that a location of the M first reserved channels and the M second reserved channels are the same, and an identifier of the M first reserved channels and the M second reserved channels are the same, wherein M and N are positive integers, and wherein M is less than N; and performing frequency hopping communication with the primary device using the first frequency hopping sequence at the time point of the frequency hopping switching.
  15. 15 . The method of claim 14 , wherein the frequency hopping switching signaling comprises a mapping relationship between N sequence number indexes and N channel identifiers, and wherein each of the N channel identifiers indicates a channel in the first frequency hopping sequence.
  16. 16 . The method of claim 14 , further comprising further sending a switching acknowledgment instruction to the primary device in response to the frequency hopping switching signaling.
  17. 17 . The method of claim 14 , further comprising receiving a broadcast signal of the primary device, wherein the broadcast signal comprises the second frequency hopping sequence.
  18. 18 . The method of claim 14 , further comprising: receiving, from the primary device, a connection request that is for requesting to establish a data path connection, wherein the connection request comprises the second frequency hopping sequence; and sending a connection acknowledgment instruction to the primary device in response to the connection request.
  19. 19 . The method of claim 14 , further comprising: receiving first negotiation signaling from the primary device, wherein the first negotiation signaling comprises the second frequency hopping sequence; and sending a first negotiation acknowledgment instruction to the primary device in response to the first negotiation signaling.
  20. 20 . A primary device, comprising: a transceiver, configured to send frequency hopping switching signaling to a secondary device, wherein the frequency hopping switching signaling indicates a first frequency hopping sequence and a time point of frequency hopping switching, wherein the first frequency hopping sequence is different from a second frequency hopping sequence for frequency hopping communication, wherein the first frequency hopping sequence comprises N first channels, wherein the second frequency hopping sequence comprises N second channels, wherein M first reserved channels in the N first channels are consistent with M second reserved channels in the N second channels such that a location of the M first reserved channels and the M second reserved channels are the same, and an identifier of the M first reserved channels and the M second reserved channels are the same, wherein M and N are positive integers, and wherein M is less than N; and a processor coupled to the transceiver and configured to perform frequency hopping communication with the secondary device using the first frequency hopping sequence at the time point of the frequency hopping switching.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS This is a continuation application of International Patent Application No. PCT/CN2021/120008, filed on Sep. 23, 2021, which is hereby incorporated by reference in its entirety. TECHNICAL FIELD This application relates to the communication field, and specifically, to a frequency hopping communication method for short-distance wireless communication, and a related device. BACKGROUND BLUETOOTH (BT), as a successfully popularized short-distance communication protocol, has been widely used in aspects such as a vehicle-mounted device, a headset, and remote control. After the release of the BT 4.0 protocol, BLUETOOTH Low Energy (BLE) plays an important role in a wearable device. A function of the BT or the BLE has almost become a standard function of every handheld mobile device. Both the BT and the BLE belong to a narrow-band frequency hopping system. If a narrow band at which frequency hopping is performed has strong interference, a large quantity of packets may be lost. Therefore, an adaptive frequency hopping (AFH) technology is used in both the BT and the BLE. FIG. 1 is a schematic diagram of an adaptive frequency hopping technology in the conventional technology. A primary device finds, by monitoring a channel condition, a frequency with large interference in a used channel range. In this case, after adjusting an adaptive frequency hopping sequence (AHS), the primary device needs to deliver AFH switching signaling or AFH command (AFH CMD) to a secondary device, where the AFH switching signaling includes the frequency with large interference and a switching time point. After the secondary device feeds back an acknowledgment (ACK), the primary device and the secondary device jointly use a new hopping sequence at the agreed switching time point, to switch from an AHS (A) to an AHS (B). In this way, a channel with interference can be effectively avoided, to achieve higher and more efficient transmission. However, in an existing AFH frequency hopping method, when background noise is strong, a secondary device cannot receive AFH switching signaling sent by a primary device. Consequently, after a switching time point, the primary device and the secondary device use frequency hopping sequences including different frequencies (where the secondary device uses an original frequency hopping sequence, but the primary device uses a new frequency hopping sequence excluding a frequency with large interference) to perform frequency hopping communication. As a result, a communication link connection between the primary device and the secondary device is unstable, a probability of successful communication between the primary device and the secondary device is low, and the primary device and the secondary device cannot reliably communicate with each other. SUMMARY Embodiments of this application provide a frequency hopping communication method for short-distance wireless communication, and a related device, to ensure a probability of successful communication between a primary device and a secondary device, so as to ensure stability of a communication link between the primary device and the secondary device. According to a first aspect, a frequency hopping communication method for short-distance wireless communication is provided, including sending frequency hopping switching signaling to a secondary device, where the frequency hopping switching signaling indicates a first frequency hopping sequence and a time point of frequency hopping switching, the first frequency hopping sequence is different from a second frequency hopping sequence that is currently for frequency hopping communication, the first frequency hopping sequence and the second frequency hopping sequence each include N channels, M reserved channels in the first frequency hopping sequence are consistent with M reserved channels in the second frequency hopping sequence, both M and N are positive integers, and M is less than N; and performing frequency hopping communication with the secondary device by using the first frequency hopping sequence at the time point of the frequency hopping switching. In the frequency hopping communication method in an embodiment of this application, in a process of communication between the primary device and the secondary device, when a frequency hopping sequence needs to be switched, it is ensured that a frequency used for each frequency hopping remains unchanged (in other words, N remains unchanged), and there are M reserved channels between the first frequency hopping sequence and the second frequency hopping sequence (where locations of the reserved channels are the same as a channel identifier in the first frequency hopping sequence and the second frequency hopping sequence), so that the primary device switches from the second frequency hopping sequence to the first frequency hopping sequence at the time point of the frequency hopping switching, and performs frequency hopping communication wi