Method, apparatus, electronic device and computer program product for backhaul

By acquiring clock offset and clock estimation values ​​to optimize the Bluetooth device reconnection process, the problems of prolonged reconnection time and high power consumption are solved, enabling fast, reliable and low-power inter-device connections.

CN122373181APending Publication Date: 2026-07-10GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
Filing Date
2026-05-25
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In existing Bluetooth communication technologies, the reconnection time after the headset is disconnected from the mobile phone is prolonged, and the power consumption is high, resulting in a poor user experience, which is especially noticeable in environments such as offices where the channel is congested.

Method used

By acquiring the clock offset of the second electronic device, its current clock estimate is determined, and paging data packets are sent according to the clock estimate to align the timing wake-up state, avoid blind paging and invalid wake-up, and reduce reconnection power consumption and channel occupancy.

Benefits of technology

It enables fast, reliable, and low-power inter-device reconnection, reduces reconnection latency, and improves the success rate of the first transmission of paging data packets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122373181A_ABST
    Figure CN122373181A_ABST
Patent Text Reader

Abstract

The application relates to a back connection method, device, electronic equipment and computer program product, and is used for a first electronic equipment. The method comprises the following steps: in the process of initiating a back connection paging to a second electronic equipment, acquiring a clock offset corresponding to the second electronic equipment; determining a current clock estimation value of the second electronic equipment according to the clock offset; and sending a paging data packet to the second electronic equipment according to the clock estimation value, wherein the paging data packet is used for back connection between the first electronic equipment and the second electronic equipment. The method can reduce the back connection time delay.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Bluetooth communication technology, and in particular to a reconnection method, apparatus, electronic device, and computer program product. Background Technology

[0002] With the development of Bluetooth communication technology, electronic devices based on Bluetooth communication technology have gradually become more and more popular. Taking True Wireless Stereo (TWS) earphones and mobile phones as examples, if the earphones need to initiate a reconnection to the mobile phone after the earphones are disconnected, the earphones need to traverse and paging the entire channel and the entire time slot.

[0003] However, the above-mentioned paging back connection method has the problem of prolonged back connection time. Summary of the Invention

[0004] A reconnection method, apparatus, electronic device, and computer program product that can reduce reconnection latency are provided.

[0005] In a first aspect, this application provides a reconnection method for a first electronic device, comprising:

[0006] During the process of initiating a backlink paging to the second electronic device, the clock offset corresponding to the second electronic device is obtained;

[0007] Determine the current clock estimate of the second electronic device based on the clock offset;

[0008] A paging data packet is sent to the second electronic device based on the clock estimate. The paging data packet is used for the first electronic device to reconnect to the second electronic device.

[0009] Secondly, this application also provides a reconnection device for a first electronic device, comprising:

[0010] The acquisition module is used to acquire the clock offset of the second electronic device during the process of initiating a backlink paging to the second electronic device;

[0011] The first determining module is used to determine the current clock estimate of the second electronic device based on the clock offset;

[0012] The first transmitting module is used to send paging data packets to the second electronic device based on a clock estimate. The paging data packets are used for the first electronic device to reconnect to the second electronic device.

[0013] Thirdly, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the processor performs the steps of the method as described in the first aspect.

[0014] Fourthly, this application also provides a computer program product, including a computer program that, when executed by a processor, causes the processor to perform the steps of the method as described in the first aspect.

[0015] In the aforementioned back-connection method, apparatus, electronic device, and computer program product, during the process of the first electronic device initiating a back-connection paging to the second electronic device, the first electronic device obtains the clock offset corresponding to the second electronic device, determines the current clock estimate of the second electronic device based on the clock offset, and then sends a paging data packet for back-connection between the first and second electronic devices based on the clock estimate. This ensures that the timing of the paging data packet transmission is aligned with the timing wake-up state of the second electronic device, avoiding blind paging and invalid wake-up caused by clock drift between the two devices, reducing the reconnection power consumption and channel occupancy of the first electronic device, thereby increasing the probability that the paging data packet is successfully received on the first transmission, achieving fast, reliable, and low-power inter-device back-connection, and thus reducing back-connection latency. Attached Figure Description

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

[0017] Figure 1 This is a diagram illustrating the application environment of the back-connection method in one embodiment;

[0018] Figure 2 This is a flowchart illustrating the back-connection method in one embodiment;

[0019] Figure 3 This is a flowchart illustrating step 203 in one embodiment;

[0020] Figure 4 This is a flowchart illustrating the reconnection method in another embodiment;

[0021] Figure 5 This is a flowchart illustrating the reconnection method in another embodiment;

[0022] Figure 6 This is a flowchart illustrating the reconnection method in another embodiment;

[0023] Figure 7 This is a flowchart illustrating the reconnection method in another embodiment;

[0024] Figure 8 This is a structural block diagram of the reconnection device in one embodiment;

[0025] Figure 9 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0027] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.

[0028] In electronic devices using Bluetooth communication technology, when an electronic device loses connection with another paired electronic device and needs to reconnect, a backlink paging method can be used to quickly establish a connection with the other electronic device. For example, taking TWS earphones as an example, in related technologies, the backlink paging method typically works as follows: when the TWS earphone needs to reconnect, it continuously transmits paging data packets at full power throughout the paging window until it receives a paging response from the other electronic device, or if the response times out, it stops transmitting paging data packets.

[0029] However, in typical scenarios such as offices, the aforementioned backlink paging method is prone to channel congestion due to the large number of electronic devices on the same frequency band and signal reflection paths overlapping caused by objects obstructing the signal. This results in prolonged reconnection times and a poor user experience. Furthermore, continuous full-power transmission of paging data packets can conflict with its own Bluetooth Low Energy (BLE) broadcast, blocking backlink broadcasts or preventing timely paging data packets from being sent, and leading to higher power consumption for electronic devices. Additionally, since this backlink paging method uses the same paging strategy for both short and long disconnections, the inherent frequency offset of the electronic device's crystal oscillator means that the longer the disconnection time, the greater the clock deviation between the communicating parties. This can cause historical clock information to become invalid, and using invalid historical clock information for window retries further increases latency.

[0030] This application proposes a back-connection method. During the process of a first electronic device initiating a back-connection paging to a second electronic device, the first electronic device obtains the clock offset corresponding to the second electronic device and determines the current clock estimate of the second electronic device based on the clock offset. Then, based on the clock estimate, it sends a paging data packet for back-connection between the first and second electronic devices. This ensures that the timing of the paging data packet transmission is aligned with the timing wake-up state of the second electronic device, avoiding blind paging and invalid wake-up caused by clock drift between the two devices. This reduces the reconnection power consumption and channel occupancy of the first electronic device, thereby increasing the probability that the paging data packet is successfully received on the first transmission. This achieves fast, reliable, and low-power inter-device back-connection, thereby reducing back-connection latency.

[0031] The reconnection method provided in this application can be applied to, for example, Figure 1 In the application environment shown, the first electronic device 102 communicates with the second electronic device 104 via a network. The first data storage system can store the data that the first electronic device 102 needs to process; the first data storage system can be integrated into the first electronic device 102 or placed in the cloud or on another network server. The second data storage system can store the data that the second electronic device 104 needs to process; the second data storage system can be integrated into the second electronic device 104 or placed in the cloud or on another network server.

[0032] In this process, when the first electronic device 102 initiates a backlink paging to the second electronic device 104, it first obtains the clock offset corresponding to the second electronic device; then, it determines the current clock estimate of the second electronic device based on the clock offset; and finally, it sends a paging data packet to the second electronic device based on the clock estimate. The paging data packet is used for backlink between the first and second electronic devices. The first electronic device 102 is an electronic device using Bluetooth communication technology. For example, the first electronic device 102 can be the main earpiece in a TWS earphone, or it can be a Bluetooth speaker. The second electronic device 104 is an electronic device using Bluetooth communication technology that has established a connection with the first electronic device 102. For example, the second electronic device 104 can be the slave earpiece in a TWS earphone, or it can be a terminal device. Terminal devices can be, but are not limited to, various personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can include virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.

[0033] In one exemplary embodiment, such as Figure 2 As shown, a reconnection method is provided, which can be applied to... Figure 1 Taking the first electronic device as an example, the explanation includes the following steps 201 to 203. Wherein:

[0034] Step 201: During the process of initiating a backlink paging to the second electronic device, obtain the clock offset corresponding to the second electronic device.

[0035] In this embodiment, the first electronic device initiates the paging process, while the second electronic device waits to be called during the paging process. Before the paging process, the first and second electronic devices can establish a communication connection using Bluetooth technology. Optionally, the first electronic device can establish a communication connection with one or more second electronic devices, and correspondingly, the first electronic device can also initiate a paging process to one or more second electronic devices. This application embodiment uses the example of the first electronic device initiating a paging process to one second electronic device to exemplify the paging method. The paging method provided in this application embodiment can be applied to the paging process between the first electronic device and each second electronic device.

[0036] In the process of a first electronic device initiating a backlink paging to multiple second electronic devices, in order to avoid confusion in the multiple backlink paging processes, the first electronic device can initiate backlink paging sequentially according to the backlink priority of each second electronic device.

[0037] In some embodiments, the backlink paging process is initiated by the first electronic device based on the backlink priority corresponding to the second electronic device. The backlink priority is determined based on the historical backlink priority or backlink priority indication information of the second electronic device.

[0038] Among them, historical reconnection priority refers to the priority level of the second electronic device recorded by the first electronic device during each reconnection process. This priority level can be determined based on historical interaction data such as past connection frequency, connection duration, and usage frequency. Reconnection priority indication information refers to the readable identification data carried by the second electronic device itself when the first electronic device and the second electronic device establish a communication connection. It is used to directly represent its own reconnection priority level and can be carried in the form of protocol commands, device configuration parameters, identity identifiers, etc.

[0039] It is understandable that when the first electronic device and the second electronic device are connected and synchronized, the local clock of the second electronic device may have a time deviation relative to the local clock of the first electronic device. This time deviation can be referred to as clock offset. In the embodiments of this application, clock offset refers to the clock offset of the second electronic device when the first electronic device and the second electronic device were last disconnected. Here, "last time" refers to the connection disconnection time most recent to the current paging time.

[0040] The clock offset is a quantifiable numerical value. When the first electronic device and the second electronic device establish a Bluetooth link, the clock offset can be measured and stored, and the signal transmission and reception time slots of the other party can be predicted based on the clock offset. This avoids the problem during the backlink paging process where the first electronic device cannot determine the sleep / wake sequence of the second electronic device and has to start searching and establishing a connection from the very initial state.

[0041] In this embodiment, when the first electronic device disconnects from the second electronic device, the clock offset corresponding to the second electronic device can be recorded and stored. In this way, during the process of the first electronic device initiating a backlink paging to the second electronic device, the clock offset corresponding to the second electronic device can be read from the storage space.

[0042] For example, taking the first electronic device as a TWS earphone and the second electronic device as a terminal device, if the device distance between the TWS earphone and the terminal device exceeds the effective Bluetooth communication distance, the TWS earphone is placed in the charging case and triggers sleep disconnection, or the terminal device actively disconnects the Bluetooth connection, and the TWS earphone needs to reconnect to the terminal device, it can obtain the clock offset corresponding to the terminal device and initiate a reconnection paging to the terminal device.

[0043] Step 202: Determine the current clock estimate of the second electronic device based on the clock offset.

[0044] The clock estimate is the one predicted by the first electronic device based on the clock offset, and the clock estimate is the local clock time of the second electronic device at the current moment.

[0045] It should be noted that after the first electronic device and the second electronic device are disconnected, their respective local clocks will continue to run. Therefore, the local clock time of the second electronic device can be estimated based on the local clock time and clock offset of the first electronic device.

[0046] In this embodiment, the first electronic device first obtains the local clock time, and then superimposes the local clock time and the clock offset to calculate the current clock estimate of the second electronic device.

[0047] Step 203: Send a paging data packet to the second electronic device based on the clock estimate.

[0048] The paging data packet is used for the reconnection between the first and second electronic devices. The paging data packet refers to a Bluetooth interaction message sent by the first electronic device based on a calculated clock estimate, used to initiate a connection call to the second electronic device, thereby re-establishing the Bluetooth link between the two devices.

[0049] It should be noted that, to improve the success rate of paging data packet reception, the first electronic device can send paging data packets to the second electronic device while the second electronic device is awake. After the first electronic device disconnects from the second electronic device, they maintain clock synchronization or relative timing alignment. Therefore, when the first electronic device is awake and needs to page the second electronic device, the second electronic device is also awake at the expected wake-up time (the time corresponding to the clock estimate) aligned with the first electronic device's clock. In this way, the first electronic device can send paging data packets to the second electronic device based on the clock estimate, thus ensuring that the second electronic device successfully receives the paging data packets.

[0050] In this embodiment, the first electronic device can determine the time slot corresponding to the clock estimate as the transmission time slot, and send a paging data packet to the second electronic device within the transmission time slot, so as to reconnect with the second electronic device through the paging data packet.

[0051] In the above-described back-connection method, during the process of the first electronic device initiating a back-connection paging to the second electronic device, the first electronic device obtains the clock offset corresponding to the second electronic device, determines the current clock estimate of the second electronic device based on the clock offset, and then sends a paging data packet for back-connection between the first and second electronic devices based on the clock estimate. This ensures that the timing of the paging data packet transmission is aligned with the timing wake-up state of the second electronic device, avoiding blind paging and invalid wake-up caused by clock drift between the two devices. This reduces the reconnection power consumption and channel occupancy of the first electronic device, thereby increasing the probability that the paging data packet is successfully received on the first transmission. This achieves fast, reliable, and low-power inter-device back-connection, and further reduces back-connection latency.

[0052] exist Figure 2 Based on the illustrated embodiments, in an exemplary embodiment, such as Figure 3 As shown, step 203 above includes steps 301 to 302:

[0053] Step 301: Determine the first sliding window based on the clock estimate and the preset first time length.

[0054] The first time length is a preset time width used to define the duration of the first sliding window. This first time length can be determined based on the possible error range of the clock estimate.

[0055] In some embodiments, the first time length includes ±N time units centered at a clock estimate, where N is a positive integer. For example, if N is 1, the first time length includes 2 time slots; or if N is 2, the first time length includes 4 time slots. Preferably, N can be set to 4, in which case the first time length includes 8 time slots.

[0056] The first sliding window is a continuous time interval with a preset time width, used to limit the effective time range for the first electronic device to send paging data packets, so as to cover the deviation between the clock estimate and the actual wake-up time of the second electronic device. The position of the first sliding window is determined by the clock estimate.

[0057] Understandably, after the first electronic device and the second electronic device disconnect, as the disconnection time increases, the deviation between their clock timings continues to increase due to the crystal oscillator frequency deviation. At this point, the accuracy of the clock estimate determined based on the clock offset will also decrease. To further improve the probability of successfully receiving paging data packets, a first sliding window can be determined by combining the clock estimate and the first time length.

[0058] In this embodiment, the first electronic device can use the clock estimate as the center time of the first sliding window, and determine the window width of the first sliding window according to the first time length. Then, the difference between the center time and the first time length is determined as the starting time slot of the first sliding window, and the sum of the center time and the first time length is determined as the ending time slot of the first sliding window, thereby obtaining the first sliding window.

[0059] Step 302: Send a paging data packet to the second electronic device within the first sliding window.

[0060] Optionally, in order to improve the success rate of paging data packet transmission, the first electronic device may transmit paging data packets in each time slot of the first sliding window; or, in order to reduce power consumption, the first electronic device may transmit paging data packets in some time slots of the first sliding window, for example, it may transmit a paging data packet once every time interval.

[0061] In this embodiment, the first electronic device may send paging data packets to the second electronic device starting from the beginning time slot of the first sliding window, on each or part of the time slots included in the first sliding window.

[0062] In some embodiments, the number of the second electronic devices is one or more. To reduce the power consumption of the first electronic device in transmitting paging data packets and to avoid blind transmission, the first electronic device is in a sleep state or a receiving state outside of the sliding windows corresponding to one or more second electronic devices.

[0063] Understandably, in sleep or receiving mode, the first electronic device cannot send paging data packets to the second electronic device. This shortens paging time, reduces power consumption, and avoids air interface conflicts.

[0064] In this embodiment, the first electronic device determines a first sliding window based on a clock estimate and a preset first time length, and sends a paging data packet to the second electronic device within the first sliding window. This ensures that the timing of the paging data packet transmission is precisely constrained within a time range based on the clock estimate. In this way, even if the clock estimate is inaccurate, the first sliding window can provide an error allowable range, thereby ensuring that the paging data packet can fall within the actual wake-up period of the second electronic device with a high probability. Without excessively increasing power consumption, this significantly improves the success rate of a single paging attempt, thereby reducing the latency of backlink paging.

[0065] Based on any of the embodiments shown above, Figure 3 The illustrated embodiment is an example; in one exemplary embodiment, such as... Figure 4 As shown, the above method further includes steps 401 to 402:

[0066] Step 401: If no response is received from the second electronic device for the paging data packet within the preset time period, the window length of the first sliding window is adjusted according to the preset second time length to obtain the second sliding window.

[0067] The second time length is greater than the first time length. In some embodiments, the second time length includes ±M time units centered at the clock estimate, where M is a positive integer and greater than N. For example, if N is 1, then M can be a positive integer greater than 1, such as 2 or 3; this is not limited in this embodiment.

[0068] The preset time period refers to the maximum waiting time for the first electronic device to receive a callback response from the second electronic device after sending a paging data packet to the second electronic device within the first sliding window; if no callback response is received within this time period, the paging is deemed to have failed.

[0069] The reconnection response is a reply signal returned by the second electronic device to the first electronic device after successfully receiving the paging data packet sent by the first electronic device. It is used to confirm receipt of the paging request and indicate agreement to restore the communication connection.

[0070] Understandably, if paging fails, it may be because the window length corresponding to the first sliding window is too short to cover the deviation between the clock estimate and the actual wake-up time of the second electronic device. Therefore, the window length of the first sliding window can be increased. The second sliding window refers to the sliding window obtained based on the second time length and the clock estimate.

[0071] In this embodiment, if the first electronic device does not receive a response from the second electronic device for the paging data packet within a preset time period, it can set the window length of the first sliding window to the second time length, determine the difference between the center time corresponding to the clock estimate and the second time length as the starting time slot of the second sliding window, and determine the sum of the center time and the second time length as the ending time slot of the second sliding window, thereby obtaining the second sliding window.

[0072] Step 402: Send a paging data packet to the second electronic device within the second sliding window.

[0073] In this embodiment, the first electronic device may send paging data packets to the second electronic device starting from the beginning time slot of the second sliding window, on each or part of the time slots included in the second sliding window.

[0074] In this embodiment, if the first electronic device does not receive a callback response from the second electronic device for the paging data packet within a preset time period, it adjusts the window length of the first sliding window according to a second time length that is longer than the first time length to obtain a second sliding window, and sends the paging data packet to the second electronic device within the second sliding window. This increases the transmission time range of the paging data packet, thereby providing a larger error allowable range for the clock estimation value, and thus improving the success rate of the paging data packet and reducing the callback latency.

[0075] Based on any of the embodiments shown above, Figure 4 The illustrated embodiment is an example; in one exemplary embodiment, such as... Figure 5 As shown, after sending a paging data packet to the second electronic device within the second sliding window, the above method further includes steps 501 to 502:

[0076] Step 501: If no response is received within the preset time period, the window length of the second sliding window is adjusted according to the new time length until a response is received, or until the new time length reaches the maximum time length, thus obtaining the third sliding window.

[0077] The new time length is greater than the second time length. In some embodiments, the new time length includes ±P time units centered at the clock estimate, where P is a positive integer and greater than M. For example, if M is 2, then P can be a positive integer greater than 2, such as 3 or 4; this is not limited in this embodiment.

[0078] The maximum time length is the upper limit threshold for the new time length. When the new time length reaches this maximum time length, the first electronic device will stop expanding the window and determine that the paging process has failed or enter another processing flow. For example, the maximum time length may include 32 time slots.

[0079] The preset time period refers to the maximum waiting time during which the first electronic device waits to receive a callback response from the second electronic device after sending a paging data packet to the second electronic device within the second sliding window; if no callback response is received within this time period, the paging is deemed to have failed. Optionally, this preset time period may be the same as or different from the preset time period during which the first electronic device sends the paging data packet to the second electronic device within the first sliding window.

[0080] Understandably, if a paging data packet is sent to the second electronic device within the second sliding window and no response is received, the paging process can be considered a failure. In other words, the time range of the second sliding window cannot encompass the wake-up time of the second electronic device. In this case, the window length of the second sliding window can be increased; that is, a new time length greater than the second time length can be used to determine the third sliding window.

[0081] It should be noted that during the process of adjusting the window length of the second sliding window according to the new time length, if a paging response is not received after one adjustment, the window length of the second sliding window can be adjusted again with a larger new time length until a callback response is received. At this point, the adjustment can be stopped and a third sliding window can be obtained. Alternatively, the adjustment can be stopped and a third sliding window can be obtained until the new time length reaches the maximum time length.

[0082] In this embodiment, after the first electronic device sends a paging data packet to the second electronic device within the second sliding window, if no response is received within a preset time period, the new time length is used as the window length of the second sliding window, and the difference between the center time corresponding to the clock estimate and the new time length is determined as the starting time slot of the third sliding window, and the sum of the center time and the new time length is determined as the ending time slot of the third sliding window. This adjustment process is repeated until a response is received and the adjustment process stops. The second sliding window after the last adjustment is determined as the third sliding window. Alternatively, the adjustment process stops when the new time length reaches the maximum time length, and the second sliding window adjusted according to the maximum time length is determined as the third sliding window.

[0083] Step 502: Send a paging data packet to the second electronic device within the third sliding window.

[0084] In this embodiment, the first electronic device may send paging data packets to the second electronic device starting from the beginning time slot of the third sliding window, on each or part of the time slots included in the third sliding window.

[0085] In this embodiment, if the first electronic device does not receive a reconnection response within a preset time period, it continues to adjust the window length of the second sliding window according to a new time length greater than the second time length until a reconnection response is received, or until the new time length reaches the maximum time length, thus obtaining a third sliding window. Within the third sliding window, a paging data packet is sent to the second electronic device. In this way, by successively expanding the window length, the paging time range can be adaptively and progressively expanded according to the actual channel and clock drift conditions, providing an increasingly larger tolerance range. At the same time, by setting a maximum time length, the power consumption runaway caused by the infinite expansion of the window is prevented, thereby achieving a dynamic balance between power consumption and latency while ensuring the final reconnection success rate.

[0086] Based on any of the embodiments shown above, Figure 5 Taking the illustrated embodiment as an example, in one exemplary embodiment, after sending a paging data packet to the second electronic device within the third sliding window, the above method further includes: if no response is received within a preset time period, then repeatedly sending the paging data packet to the second electronic device within the third sliding window according to a preset number of repetitions.

[0087] The preset time period may be the same as or different from the preset time period in the above embodiments.

[0088] The repetition count refers to the number of times the paging data packet is sent to the second electronic device within the third sliding window.

[0089] It should be noted that by progressively increasing the window length, it is sufficient to cover the wake-up time of the second electronic device. If, after sending a paging data packet to the second electronic device within the third sliding window, no reconnection response is received within the preset time period, it may be that the paging data packet was not correctly received due to poor channel quality, interference, collisions, or other reasons. In this case, further expanding the window will only ineffectively increase power consumption. Moreover, repeatedly sending the paging data packet to the second electronic device within the third sliding window can be completed in a very short time, resulting in a smaller reconnection delay. Therefore, while controlling resources and power consumption, paging data packets can be repeatedly sent to increase the success rate of a single paging attempt.

[0090] In this embodiment, after the first electronic device sends a paging data packet to the second electronic device within the third sliding window, if it does not receive a response within a preset time period, it repeats the process of sending the paging data packet to the second electronic device within the third sliding window according to a preset number of repetitions.

[0091] In this embodiment, if the first electronic device does not receive a reconnection response within a preset time period, it repeatedly sends paging data packets to the second electronic device within a third sliding window according to a preset number of repetitions. In this way, retransmission within the same sliding window can quickly overcome the packet loss problem caused by channel quality fluctuations without expanding the window, avoiding unnecessary window expansion operations. Thus, it can improve the success rate through retransmission when the channel conditions are poor, and prevent the waste of power consumption and increased delay caused by blindly expanding the window due to channel interference.

[0092] Based on any of the embodiments shown above, Figure 5 Taking the illustrated embodiment as an example, in one exemplary embodiment, after repeatedly sending paging data packets to the second electronic device within the third sliding window, the above method further includes:

[0093] If no callback response is received within the preset time period, the clock estimate is reset to zero, and a paging data packet is sent to the second electronic device using the first default callback paging method.

[0094] The preset time period may be the same as or different from the preset time period in the above embodiments.

[0095] It should be noted that if the first electronic device repeatedly sends paging data packets to the second electronic device within the third sliding window and still does not receive a response, the clock estimation value can be determined to be invalid. Therefore, to avoid invalid retransmissions, a blind scanning method can be used to send paging data packets to the second electronic device. The first default callback paging method refers to performing a traversal paging scan and sending paging data packets on all available channels and all time slots until a successful callback response is received. For example, all available channels could be the 32 channels of Bluetooth communication.

[0096] Clearing the clock estimate means deleting the invalid clock estimate when it is determined to be invalid.

[0097] In this embodiment, after the first electronic device repeatedly sends paging data packets to the second electronic device within the third sliding window, if it does not receive a callback response within a preset time period, it will reset the clock estimate to zero and use the first default callback paging method to continuously send paging data packets to the second electronic device on all channels and all time slots.

[0098] In this embodiment, after the first electronic device repeatedly sends paging data packets to the second electronic device within the third sliding window, if it does not receive a reconnection response within a preset time period, it resets the clock estimate to zero and sends paging data packets to the second electronic device using the first default reconnection paging method. This ensures that even if the clock estimate is completely invalid, the first electronic device can still re-establish a connection with the second electronic device, thereby guaranteeing the certainty of a successful reconnection.

[0099] Based on any of the embodiments shown above, Figure 2 Taking the illustrated embodiment as an example, in one exemplary embodiment, the clock offset is the clock offset of the second electronic device when the first electronic device and the second electronic device were last disconnected. Step 202 above includes:

[0100] The clock estimate is determined by summing the clock offset with the count value of the counter in the first electronic device.

[0101] The count value is the value that started counting when the first electronic device and the second electronic device last disconnected.

[0102] It should be noted that the counter in the first electronic device will start counting when the first electronic device is disconnected from the second electronic device, and the count value will automatically increment by 1 after each time slot.

[0103] In this embodiment, the count value can be determined from the value at which the counter started counting when the first electronic device and the second electronic device were last disconnected. The count value can be used to characterize the length of time or the number of time slots that have elapsed between the first electronic device and the second electronic device from the time of disconnection to the current time.

[0104] In this embodiment, the first electronic device can first obtain the count value corresponding to the last disconnection between the first electronic device and the second electronic device from the counter, and then sum the count value with the clock offset to determine the clock estimate.

[0105] In this embodiment, the first electronic device determines the clock estimate by summing the clock offset with the count value of a counter in the first electronic device. This count value is the value that started counting when the first electronic device and the second electronic device last disconnected. In this way, when the first electronic device disconnects from the second electronic device, it reconstructs the length of time that the second electronic device has been disconnected, effectively compensating for the cumulative clock drift caused by the uncertainty of the disconnection duration. This eliminates the power consumption and latency overhead of blindly scanning from zero every time the device reconnects. Moreover, the counter is continuously driven by low-power hardware during device sleep, so that the clock estimation process consumes almost no additional computing and energy resources. Thus, while ensuring estimation accuracy, it achieves a fast reconnection capability with extremely low power consumption.

[0106] Based on any of the embodiments shown above, Figure 2 The illustrated embodiment is an example; in one exemplary embodiment, such as... Figure 6 As shown, the above method further includes steps 601 to 602:

[0107] Step 601: Determine the time difference between the last time the first electronic device and the second electronic device disconnected and the current time.

[0108] It should be noted that if the disconnection time is too long, the time difference between the second electronic device and the first electronic device will become increasingly large. At this point, the clock offset at the time of the last disconnection between the first and second electronic devices becomes invalid, and the clock estimate determined based on the clock offset also becomes invalid. Therefore, before determining the current clock estimate of the second electronic device based on the clock offset, it is necessary to first determine the magnitude of the time difference between the disconnection time and the current time. For example, the time difference could be 2 hours.

[0109] The time difference refers to the length of time elapsed from the moment the first electronic device and the second electronic device last disconnected until the moment when a reconnection paging is required.

[0110] Optionally, in this embodiment, the first electronic device may obtain the value counted by the counter from the last disconnection to the current time, and use the product of the value and the unit time as the time difference; or, the first electronic device may also obtain the system timestamp recorded at the last disconnection, use the system timestamp as the time when the first electronic device and the second electronic device last disconnected, and then calculate the difference between the current time and the time corresponding to that time as the time difference.

[0111] Step 602: If the time difference is less than the time difference threshold, determine the clock estimate based on the clock offset.

[0112] The time difference threshold is a critical value used to determine whether the clock offset is valid and whether the previous disconnection between the first electronic device and the second electronic device was a short-term or long-term disconnection. Optionally, if the time difference is less than the time difference threshold, the clock offset is considered valid and the previous disconnection was a short-term disconnection; if the time difference is greater than or equal to the time difference threshold, the clock offset is considered invalid and the previous disconnection was a long-term disconnection.

[0113] In this embodiment, the first electronic device can calculate the difference between the time difference value and the time difference threshold. If the difference is less than 0, it is determined that the time difference value is less than the time difference threshold and that the previous disconnection was a short-term disconnection, thereby determining that the clock offset is valid. Then, the clock estimate value is determined based on the clock offset.

[0114] In some embodiments, if the time difference is greater than or equal to a time difference threshold, the invalid clock offset is cleared, and a paging data packet is sent to the second electronic device using the second default backlink paging method.

[0115] It should be noted that if the time difference is greater than or equal to the time difference threshold, it indicates that the time since the last disconnection between the first and second electronic devices is relatively long, constituting a long-term disconnection. In this case, the invalid clock offset method for determining the sliding window cannot be used to send paging data packets. Therefore, the second default paging method needs to be adopted, using the most basic and conservative parameters for paging. This reduces the power consumption overhead caused by full-channel scanning while ensuring a certain reconnection success rate.

[0116] The second default backlink paging method forces the clock offset to 0 and reverts to the native full-window paging procedure when the clock offset completely fails. That is, it sends paging data packets using the default paging parameters and channel switching sequence specified by the Bluetooth communication protocol. For example, the second default backlink paging method can use some of the available channels to send paging data packets.

[0117] The number of paging channels corresponding to the second default backlink paging method is less than that corresponding to the first default backlink paging method. This is because when the clock offset completely fails and the disconnection time is too long, the first electronic device has determined that the saved clock offset information is completely unusable. At this time, continuing to use full-channel scanning would consume more power. Therefore, paging data packets can be sent on a few channels on which the second electronic device is most likely to work (such as the default broadcast channel or the commonly used channel) to further reduce power consumption while ensuring a certain success rate by reducing the number of channels.

[0118] In this embodiment, if the time difference is greater than or equal to the time difference threshold, the first electronic device can determine that the previous disconnection was a long-term disconnection, clear the stored invalid clock offset, and send a paging data packet to the second electronic device using the second default back-connection paging method.

[0119] It should be noted that this application embodiment further verifies, through extensive experimental data, the differentiation between short-term and long-term connection interruptions based on the relationship between time difference and time difference threshold, and the improvement effect of using different reconnection paging methods for short-term and long-term connection interruptions. Experiments demonstrate that this scheme can produce differentiated and optimizable improvements in reconnection latency based on the duration of the connection interruption. For example:

[0120] (1) Short-term disconnection (disconnection duration less than 1 hour): the reconnection delay is less than or equal to 2000 milliseconds (ms). Compared with the existing solution, the reconnection delay can be reduced by at least 80%, and the power consumption of reconnection paging can be reduced by at least 50%.

[0121] (2) Intermittent connection (intermittent connection duration greater than or equal to 1 hour and less than 2 hours): reconnection delay less than or equal to 2000ms, and typical reconnection delay can be less than or equal to 1800ms. Compared with the existing solution, the reconnection delay is reduced.

[0122] (3) Long-term disconnection (disconnection duration greater than or equal to 2 hours): reconnection delay less than or equal to 2000ms. Compared with the existing solution, the reconnection delay is the same, and there is no additional delay.

[0123] Furthermore, when the crystal oscillator drift of the first and second electronic devices is within ±20ppm, if the disconnection duration is less than 1 minute, the latency can be reduced by 95% compared to the existing solution; if the disconnection duration is between 10 minutes and 500ms, the latency can be reduced by 75% compared to the existing solution; if the disconnection duration is between 1 hour and 1500ms, the latency can be reduced by 25% compared to the existing solution; if the disconnection duration is between 2 hours and 1800ms, the latency can be reduced by 10% compared to the existing solution; and if the disconnection duration is greater than 2 hours, the latency remains the same compared to the existing solution.

[0124] In this embodiment, the first electronic device determines the time difference between the last disconnection time and the current time between itself and the second electronic device. When the time difference is less than a time difference threshold, it can determine a clock estimate based on the clock offset and use the saved clock offset for precise paging, achieving fast and low-power reconnection. When the time difference is greater than or equal to the time difference threshold, it clears the invalid clock offset and sends paging data packets to the second electronic device using a second default back-connection paging method with fewer channels. This avoids invalid retries and power waste caused by blindly trusting expired information, thereby achieving adaptive sensing of disconnection duration and switching of paging methods. This ensures efficient back-connection within the effective window and avoids invalid precise paging attempts after long-term disconnection, thus optimizing back-connection power consumption and latency overall.

[0125] Based on any of the embodiments shown above, Figure 2 Taking the illustrated embodiment as an example, in one exemplary embodiment, step 203 above includes:

[0126] Based on the clock estimate and the communication address of the second electronic device, a paging data packet is sent to the second electronic device.

[0127] The communication address and clock offset are stored by the first electronic device when it disconnects from the second electronic device. The communication address can be the Bluetooth device address of the second electronic device.

[0128] In this embodiment, the first electronic device can store the communication address of the second electronic device when it was disconnected from the second electronic device last time. When it needs to initiate a back-connection paging with the second electronic device, it sends a paging data packet to the second electronic device according to the communication address of the second electronic device in the transmission time slot corresponding to the clock estimate.

[0129] In some embodiments, the first electronic device may also send a paging data packet to the second electronic device according to the communication address of the second electronic device within the first sliding window, the second sliding window, or the third sliding window.

[0130] In this embodiment, the first electronic device stores the clock estimate and communication address of the second electronic device when it is disconnected from the second electronic device. During the reconnection paging, the first electronic device can send a paging data packet to the second electronic device based on the stored clock estimate and communication address. This allows the first electronic device to directly and accurately locate the target device and predict its wake-up timing without rediscovery or scanning, thereby reducing the preparation time for initiating the reconnection paging and thus reducing the reconnection delay.

[0131] Based on any of the embodiments shown above, Figure 2 Taking the illustrated embodiment as an example, in one exemplary embodiment, the above method further includes:

[0132] If a response to the paging data packet is received from the second electronic device within a preset time period, the clock offset will be updated to the new clock offset corresponding to the receiving time.

[0133] The receiving time is the moment when the connection response is received.

[0134] It should be noted that if a reconnection response is received, it means that the deviation between the current clock estimate and the actual clock of the second electronic device is within the allowable range. At this time, the old, possibly outdated, information can be replaced with the accurate synchronization information corresponding to the successful reconnection, thereby providing a more accurate reference for the next quick reconnection after disconnection.

[0135] In this embodiment, if the first electronic device receives a callback response from the second electronic device for the paging data packet within a preset time period, it deletes the clock offset, determines a new clock offset based on the receiving time when the callback response is received, and stores the new clock offset.

[0136] In this embodiment, when the first electronic device receives a callback response from the second electronic device for the paging data packet within a preset time period, it updates the clock offset to the new clock offset corresponding to the receiving time of the callback response. This allows the first electronic device to maintain synchronization with the clock of the second electronic device using the new clock offset, eliminating the deviation accumulated due to crystal oscillator drift during the disconnection period, and ensuring that paging can be performed based on a more accurate initial estimate during the next callback.

[0137] For ease of understanding by those skilled in the art, taking its application in a first electronic device as an example, such as... Figure 7 As shown below, the link-back method provided in this application will be described in detail. This method may include:

[0138] Step 701: When the first electronic device disconnects from the second electronic device, it stores the communication address and clock offset of the second electronic device.

[0139] Step 702: During the process of initiating a backlink paging to the second electronic device, obtain the clock offset corresponding to the second electronic device.

[0140] The backlink paging process is initiated by the first electronic device based on the backlink priority corresponding to the second electronic device. The backlink priority is determined based on the historical backlink priority or backlink priority indication information of the second electronic device.

[0141] Step 703: Determine the time difference between the last time the first electronic device and the second electronic device disconnected and the current time.

[0142] Step 704: If the time difference is less than the time difference threshold, the sum of the clock offset and the count value of the counter in the first electronic device is determined as the clock estimate.

[0143] The count value is the value that started counting when the first electronic device and the second electronic device last disconnected.

[0144] Step 705: Determine the first sliding window based on the clock estimate and the preset first time length.

[0145] The first time length includes ±N time units centered at the clock estimate, where N is a positive integer.

[0146] Step 706: Send a paging data packet to the second electronic device within the first sliding window.

[0147] The paging data packet is used for the first electronic device to reconnect with the second electronic device. There may be one or more second electronic devices, and the first electronic device is in a sleep or receiving state outside the sliding windows corresponding to one or more second electronic devices.

[0148] Step 707: If no response is received from the second electronic device for the paging data packet within the preset time period, the window length of the first sliding window is adjusted according to the preset second time length to obtain the second sliding window.

[0149] The second time length is greater than the first time length.

[0150] Step 708: Send a paging data packet to the second electronic device within the second sliding window.

[0151] Step 709: After sending a paging data packet to the second electronic device within the second sliding window, if no response is received within a preset time period, the window length of the second sliding window is adjusted according to the new time length until a response is received, or until the new time length reaches the maximum time length, thus obtaining the third sliding window.

[0152] The new time length is greater than the second time length.

[0153] Step 7010: Send a paging data packet to the second electronic device within the third sliding window.

[0154] Step 7011: After sending a paging data packet to the second electronic device within the third sliding window, if no response is received within a preset time period, the paging data packet is sent to the second electronic device repeatedly within the third sliding window according to the preset number of repetitions.

[0155] Step 7012: After repeatedly sending paging data packets to the second electronic device within the third sliding window, if no callback response is received within a preset time period, the clock estimate is cleared, and the paging data packets are sent to the second electronic device using the first default callback paging method.

[0156] Step 7013: If a callback response sent by the second electronic device for the paging data packet is received within a preset time period, the clock offset is updated to the new clock offset corresponding to the receiving time, where the receiving time is the moment when the callback response is received.

[0157] Step 7014: If the time difference is greater than or equal to the time difference threshold, clear the invalid clock offset and send a paging data packet to the second electronic device using the second default backlink paging method.

[0158] The number of paging channels corresponding to the second default back-to-back paging method is less than the number of paging channels corresponding to the first default back-to-back paging method.

[0159] It should be noted that the descriptions of steps 701-7014 above can be found in the relevant descriptions in the above embodiments, and their effects are similar, so they will not be repeated here.

[0160] It should be noted that the above embodiments are based on the example of establishing a communication connection between the first electronic device and the second electronic device using Bluetooth communication technology. In other possible embodiments of this application, the first electronic device and the second electronic device may also establish a communication connection using other communication technologies besides Bluetooth, and no specific limitations are made here.

[0161] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0162] Based on the same inventive concept, this application also provides a reconnection apparatus for implementing the reconnection method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more reconnection apparatus embodiments provided below can be found in the limitations of the reconnection method described above, and will not be repeated here.

[0163] In one exemplary embodiment, such as Figure 8 As shown, a reconnection device is provided for a first electronic device, comprising: an acquisition module 801, a first determination module 802, and a first transmission module 803, wherein:

[0164] The acquisition module 801 is used to acquire the clock offset corresponding to the second electronic device during the process of initiating a backlink paging to the second electronic device;

[0165] The first determining module 802 is used to determine the current clock estimate of the second electronic device based on the clock offset;

[0166] The first transmitting module 803 is used to send a paging data packet to the second electronic device according to a clock estimate. The paging data packet is used for the first electronic device to reconnect to the second electronic device.

[0167] In one embodiment, the first transmitting module 803 includes:

[0168] The first determining unit is used to determine the first sliding window based on the clock estimate and the preset first time length;

[0169] The sending unit is used to send paging data packets to the second electronic device within the first sliding window.

[0170] In one embodiment, the first time length comprises ±N time units centered at a clock estimate, where N is a positive integer.

[0171] In one embodiment, the above-mentioned apparatus further includes:

[0172] The first adjustment module is used to adjust the window length of the first sliding window according to the preset second time length if no response is received from the second electronic device for the paging data packet within the preset time period, so as to obtain a second sliding window, wherein the second time length is greater than the first time length.

[0173] The second sending module is used to send paging data packets to the second electronic device within the second sliding window.

[0174] In one embodiment, after sending a paging data packet to the second electronic device within the second sliding window, the above-mentioned apparatus further includes:

[0175] The second adjustment module is used to adjust the window length of the second sliding window according to the new time length if no response is received within the preset time period, until a response is received, or until the new time length reaches the maximum time length, to obtain a third sliding window, where the new time length is greater than the second time length.

[0176] The third sending module is used to send paging data packets to the second electronic device within the third sliding window.

[0177] In one embodiment, after sending a paging data packet to the second electronic device within a third sliding window, the above-mentioned apparatus further includes:

[0178] The fourth sending module is used to repeatedly send paging data packets to the second electronic device within the third sliding window according to the preset number of repetitions if no reply response is received within the preset time period.

[0179] In one embodiment, after repeatedly sending paging data packets to the second electronic device within a third sliding window, the above-mentioned apparatus further includes:

[0180] The fifth sending module is used to reset the clock estimate and send a paging data packet to the second electronic device using the first default paging method if no callback response is received within a preset time period.

[0181] In one embodiment, the number of second electronic devices is one or more, and the first electronic device is in a sleep state or a receiving state outside the sliding windows corresponding to the one or more second electronic devices.

[0182] In one embodiment, the clock offset is the clock offset of the second electronic device when the first electronic device and the second electronic device were last disconnected. The first determining module 802 includes:

[0183] The second determining unit is used to determine the clock estimate by summing the clock offset with the count value of the counter in the first electronic device, where the count value is the value that started counting when the first electronic device and the second electronic device were last disconnected.

[0184] In one embodiment, before determining the current clock estimate of the second electronic device based on the clock offset, the above-described apparatus further includes:

[0185] The second determining module is used to determine the time difference between the last time the first electronic device and the second electronic device disconnected and the current time.

[0186] The first determining module 802 includes:

[0187] The third determining unit is used to determine the clock estimate based on the clock offset when the time difference is less than the time difference threshold.

[0188] In one embodiment, the above-mentioned apparatus further includes:

[0189] The sixth sending module is used to clear the invalid clock offset when the time difference is greater than or equal to the time difference threshold, and to send a paging data packet to the second electronic device using the second default back-connect paging method. The number of paging channels corresponding to the second default back-connect paging method is less than the number of paging channels corresponding to the first default back-connect paging method.

[0190] In one embodiment, the first transmitting module 803 includes:

[0191] The seventh sending module is used to send a paging data packet to the second electronic device based on the clock estimate and the communication address of the second electronic device. The communication address and clock offset are stored by the first electronic device when it last disconnected from the second electronic device.

[0192] In one embodiment, the backlink paging process is initiated by the first electronic device based on the backlink priority corresponding to the second electronic device. The backlink priority is determined based on the historical backlink priority or backlink priority indication information of the second electronic device.

[0193] In one embodiment, the above-mentioned apparatus further includes:

[0194] The update module is used to update the clock offset to the new clock offset corresponding to the receiving time if a callback response sent by the second electronic device for the paging data packet is received within a preset time period. The receiving time is the moment when the callback response is received.

[0195] Each module in the aforementioned reconnection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.

[0196] In one exemplary embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 9 As shown, this electronic device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a reconnection method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.

[0197] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0198] In one exemplary embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method described above.

[0199] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the above-described method.

[0200] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the methods described above.

[0201] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0202] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0203] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0204] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A reconnection method, characterized in that, For a first electronic device, the method includes: During the process of initiating a backlink paging to the second electronic device, the clock offset corresponding to the second electronic device is obtained; The current clock estimate of the second electronic device is determined based on the clock offset; The paging data packet is sent to the second electronic device based on the clock estimate. The paging data packet is used for the first electronic device to reconnect to the second electronic device.

2. The method according to claim 1, characterized in that, Sending a paging data packet to the second electronic device based on the clock estimate includes: The first sliding window is determined based on the clock estimate and the preset first time length; The paging data packet is sent to the second electronic device within the first sliding window.

3. The method according to claim 2, characterized in that, The first time length includes ±N time units centered at the clock estimate, where N is a positive integer.

4. The method according to claim 2, characterized in that, The method further includes: If no response is received from the second electronic device for the paging data packet within a preset time period, the window length of the first sliding window is adjusted according to the preset second time length to obtain a second sliding window, wherein the second time length is greater than the first time length. The paging data packet is sent to the second electronic device within the second sliding window.

5. The method according to claim 4, characterized in that, After sending the paging data packet to the second electronic device within the second sliding window, the method further includes: If the connection response is not received within the preset time period, the window length of the second sliding window is adjusted according to the new time length until the connection response is received, or until the new time length reaches the maximum time length, to obtain a third sliding window, wherein the new time length is greater than the second time length. The paging data packet is sent to the second electronic device within the third sliding window.

6. The method according to claim 5, characterized in that, After sending the paging data packet to the second electronic device within the third sliding window, the method further includes: If no response is received within a preset time period, the paging data packet is repeatedly sent to the second electronic device within the third sliding window according to a preset number of repetitions.

7. The method according to claim 6, characterized in that, After repeatedly sending the paging data packet to the second electronic device within the third sliding window, the method further includes: If the callback response is not received within the preset time period, the clock estimate is reset to zero, and the paging data packet is sent to the second electronic device using the first default callback paging method.

8. The method according to any one of claims 2-7, characterized in that, The number of the second electronic devices is one or more, and the first electronic device is in a sleep state or a receiving state outside the sliding windows corresponding to the one or more second electronic devices.

9. The method according to claim 1, characterized in that, The clock offset is the clock offset of the second electronic device when the first electronic device and the second electronic device were last disconnected. Determining the current clock estimate of the second electronic device based on the clock offset includes: The clock estimate is determined by summing the clock offset with the count value of the counter in the first electronic device, where the count value is the value that started counting when the first electronic device and the second electronic device last disconnected.

10. The method according to claim 1, characterized in that, Before determining the current clock estimate of the second electronic device based on the clock offset, the method further includes: Determine the time difference between the last time the first electronic device and the second electronic device disconnected and the current time. Determining the current clock estimate of the second electronic device based on the clock offset includes: If the time difference is less than a time difference threshold, the clock estimate is determined based on the clock offset.

11. The method according to claim 10, characterized in that, The method further includes: If the time difference is greater than or equal to the time difference threshold, the invalid clock offset is cleared, and the paging data packet is sent to the second electronic device using the second default back-connect paging method. The number of paging channels corresponding to the second default back-connect paging method is less than the number of paging channels corresponding to the first default back-connect paging method.

12. The method according to claim 1, characterized in that, Sending a paging data packet to the second electronic device based on the clock estimate includes: The paging data packet is sent to the second electronic device based on the clock estimate and the communication address of the second electronic device, wherein the communication address and the clock offset are stored by the first electronic device when it last disconnected from the second electronic device.

13. The method according to claim 1, characterized in that, The backlink paging process is initiated by the first electronic device based on the backlink priority corresponding to the second electronic device. The backlink priority is determined based on the historical backlink priority or backlink priority indication information of the second electronic device.

14. The method according to claim 1, characterized in that, The method further includes: If a callback response is received from the second electronic device in response to the paging data packet within a preset time period, the clock offset is updated to the new clock offset corresponding to the receiving time, where the receiving time is the moment when the callback response is received.

15. A reconnection device, characterized in that, For a first electronic device, the means comprising: The acquisition module is used to acquire the clock offset corresponding to the second electronic device during the process of initiating a backlink paging to the second electronic device; The first determining module is used to determine the current clock estimate of the second electronic device based on the clock offset; The first transmitting module is configured to send a paging data packet to the second electronic device based on the clock estimate, the paging data packet being used for the first electronic device to reconnect to the second electronic device.

16. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 14.

17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 14.