Communication method, and device and readable storage medium

By detecting the rate of change of wireless communication signal strength, network devices send network switching instructions when specific conditions are met, thus solving the communication quality problem of user equipment in partial coverage areas and achieving accurate network switching and traffic optimization.

WO2026091648A1PCT designated stage Publication Date: 2026-05-07HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2025-06-30
Publication Date
2026-05-07

AI Technical Summary

Technical Problem

When a user device is within the wireless communication signal coverage area of ​​a network device but the network device is not within its coverage area, it leads to a decrease in communication quality and data transmission failure.

Method used

By detecting the rate of change of Received Signal Strength Indicator (RSSI) by network devices, it can determine whether a user equipment is about to exceed the coverage range of its wireless communication signal, and send a network switching indication when certain conditions are met, so that the user equipment can switch to another network for data transmission.

Benefits of technology

It improves the accuracy of network switching, avoids incorrect network switching, enhances communication quality, and reduces data consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025105990_07052026_PF_FP_ABST
    Figure CN2025105990_07052026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications. Disclosed are a communication method, and a readable storage medium and a device. In the method, after a user equipment is connected to a network device by means of a first network provided by the network device, when n RSSIs of the first network are less than a first threshold and the rate of change in the reduction of the n RSSIs is greater than a second threshold, the network device can determine that the distance between the user equipment and the network device is about to exceed the coverage of a wireless signal of the user equipment, and send a network switching indication to the user equipment. After receiving the network switching indication, the user equipment can switch, in response to the network switching indication, to a second network other than the first network provided by the network device for performing data transmission. The network device is determined on the basis of the consideration of both the magnitudes of RSSIs and the rate of change in the reduction of the RSSIs, and thus the accuracy of the network device determining that the distance between a user equipment and the network device is about to exceed the coverage of a wireless signal of the user equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Communication methods, devices and readable storage media

[0001] This application claims priority to Chinese Patent Application No. 202411547166.5, filed on October 31, 2024, entitled "Communication Method, Apparatus and Readable Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of wireless communication technology, and in particular to a communication method, device and readable storage medium. Background Technology

[0003] User equipment (UAE) can transmit data by establishing a wireless communication connection with network equipment. Generally, the power of the wireless communication signal transmitted by the network equipment is greater than that transmitted by the UAE; that is, the coverage area of ​​the wireless communication signal of the network equipment is greater than that of the wireless communication signal of the UAE.

[0004] Thus, if the user equipment is within the coverage area of ​​the network device's wireless communication signal but the network device is not within the coverage area of ​​the user equipment's wireless communication signal, the user equipment may be able to receive the wireless communication signal sent by the network device but will be unable to transmit data, affecting the communication quality of the user equipment. Summary of the Invention

[0005] In view of the above, this application provides a communication method, an apparatus, and a readable storage medium.

[0006] In a first aspect, a communication method is provided, the method comprising: a first device connecting to a second device via a first network, wherein the first network is a wireless network provided by the first device; the first device determining that n first received signal strength indicators (RSSIs) of the first network satisfy the first condition, and sending first information to the second device, wherein the first information instructs the second device to switch to data transmission via the second network, the first condition comprising: each of the n first RSSIs being less than the first threshold, and the rate of change of the n first RSSIs decreasing being greater than the second threshold, wherein n is an integer greater than 1.

[0007] In this method, if the first received signal strength indication of the first network meets a first condition (indicating that the distance between the second device and the first device may exceed the coverage range of the second device's wireless communication signal), the first device can send first information (e.g., a network switching indication hereinafter) to the second device to instruct the second device to switch to a second network for data transmission, different from the first network. Since the first condition considers both the magnitude and the rate of decrease of the first received signal strength indication, it improves the accuracy of determining that the distance between the second device and the first device may exceed the coverage range of the second device's wireless communication signal. This avoids the second device mistakenly switching networks due to the first device incorrectly sending the first information.

[0008] In some implementations, the first network and the second network can be either a wireless local area network (WLAN) or a cellular network. The first network and the second network can be different types of networks, or they can be the same type of network but provided by different devices or different operators.

[0009] In one possible implementation of the first aspect above, the rate of change of the n first RSSI decreases being greater than the second threshold includes: the value of the decrease of the first RSSI per unit time being greater than the second threshold.

[0010] In one possible implementation of the first aspect above, the rate of change of the reduction of the n first RSSIs is greater than the second threshold, including: the inverse of the slope of the straight line obtained by fitting the n first RSSIs is greater than the second threshold.

[0011] In this implementation, the first device can indicate the rate of change of the first received signal strength indication by the slope of the straight line fitted to the n acquisition times corresponding to the n first RSSIs. Since the slope is negative, the larger the negative value of the slope, the greater the rate of change of the first received signal strength indication. If the negative value of the slope is greater than a second threshold, it indicates that the rate of change of the n first RSSIs is greater than the second threshold.

[0012] In one possible implementation of the first aspect above, the method further includes: a first device receiving second information sent by a second device, the second information instructing the second device to disconnect the first network; and the first device responding to the second information by decreasing a first threshold and / or increasing a second threshold.

[0013] In this implementation, upon receiving second information (e.g., offline information hereinafter) (equivalent to the second device switching to data transmission via a second network different from the first network), the first device can adjust the first condition, such as decreasing the first threshold and / or increasing the second threshold. This improves the accuracy of determining that the distance between the second device and the first device may exceed the coverage range of the second device's wireless communication signal in subsequent iterations.

[0014] In one possible implementation of the first aspect above, reducing the first threshold includes: the first device reducing the first threshold to a value between the first threshold and a first value, wherein the first value is the RSSI of the first network at the time when the second device disconnects the first network.

[0015] In this implementation, the first device can adjust the first threshold based on the received signal strength indication of the first network when the second device disconnects from the first network.

[0016] In some implementations, the first value is the RSSI of the first network within a preset time period before the second device disconnects from the first network.

[0017] In some implementations, the first value can be the RSSI of the wireless communication signal of the first network transmitted by the first device before the second device transmits the second information.

[0018] In some implementations, the second information includes the first value.

[0019] In some implementations, the first value can be the RSSI of the wireless communication signal of the first network transmitted by the second device in response to the second information.

[0020] In one possible implementation of the first aspect above, the method further includes: the first device decreasing the first threshold and / or increasing the second threshold in response to the second device not disconnecting from the first network within a first time period after sending the first information, or in response to the second device reconnecting to the first network within a second time period after disconnecting from the first network.

[0021] In this implementation, if the second device does not disconnect from the first network within a first time period after sending the first information, or if the second device disconnects from the first network and then reconnects to the first network within a second time period, it indicates that the distance between the second device and the first device does not actually exceed the coverage range of the second device's wireless communication signal, and the setting of the first condition may be inaccurate. The first device can adjust the first condition by decreasing the first threshold and / or increasing the second threshold, which helps improve the accuracy of determining in the next instance that the distance between the second device and the first device may exceed the coverage range of the second device's wireless communication signal.

[0022] In one possible implementation of the first aspect above, the method further includes: in response to the fact that the second device has not disconnected the first network within a first time period after sending the first information, the first device determines to send the first information to the second device within a third time period, and skips sending the first information to the second device (i.e., does not perform the action of sending the first information to the second device).

[0023] In this implementation, if the second device does not disconnect from the first network within a first time period after sending the first information, it indicates that the second device may not be far from the first device, and the first information may have been sent by mistake. Within a third time period following the first time period, even if the first device determines that the RSSI of the first network meets the first condition, it will not send the first information to the second device.

[0024] In one possible implementation of the first aspect described above, the first RSSI is the RSSI of the wireless communication signal transmitted by the second device through the first network received by the first device, or the RSSI of the wireless communication signal transmitted by the first device through the first network received by the second device.

[0025] In one possible implementation of the first aspect described above, the first device is any one of a router, a base station, an access point, or a user front-end device.

[0026] In one possible implementation of the first aspect above, the method further includes: a first device determining that m second RSSIs of a first network between the first device and the third device satisfy a second condition, wherein the second condition includes: the m second RSSIs are less than a third threshold, and the rate of change of the m second RSSIs is greater than a fourth threshold, where m is an integer greater than 1; the first device sending third information to the third device, the third information instructing the third device to switch to data transmission through the second network; wherein the third threshold is different from the first threshold, and / or the fourth threshold is different from the second threshold.

[0027] In this implementation, the first device can configure different conditions (first condition, second condition) for different devices (second device, third device) connected to the first device to trigger the first device to send network switching information (first information, third information). Since different devices may transmit wireless communication signals with different power and coverage areas, configuring the same conditions for the first device and the second device can avoid the first device or the second device from incorrectly switching networks.

[0028] In some implementations, m can be the same as n or different from n.

[0029] In a second aspect, a communication method is provided, the method comprising: a first device connecting to a second device via a first network, wherein the first network is a wireless network provided by the first device; the first device determining that n first received signal strength indicators (RSSIs) of the first network satisfy the first condition, and sending first information to the second device, wherein the first condition includes: each of the n first RSSIs is less than the first threshold, and the rate of change of the n first RSSIs is greater than the second threshold, where n is an integer greater than 1; and the second device responding to the first information by switching to data transmission via the second network.

[0030] In this method, the first device can send first information to the second device when the first received signal strength indication of the first network meets a first condition (indicating that the distance between the second device and the first device may exceed the coverage range of the second device's wireless communication signal). After receiving the first information, the second device can switch to transmit data through a second network different from the first network. Since the first condition considers both the magnitude of the first RSSI of the first network and the rate of change of the first RSSI, it helps to improve the accuracy of determining that the distance between the second device and the first device may exceed the coverage range of the second device's wireless communication signal. This avoids the second device mistakenly switching networks due to the first device incorrectly sending the first information.

[0031] Thirdly, a first device is provided, comprising: at least one memory for storing one or more programs; and at least one processor for executing one or more programs to enable the first device to implement any of the communication methods provided in the first aspect.

[0032] Fourthly, a readable storage medium is provided, the readable storage medium including one or more programs, which, when executed on a device, enable the device to use any of the communication methods provided in the first aspect above.

[0033] Fifthly, a program product is provided that, when run on a device, enables the device to implement any of the communication methods provided in the first aspect.

[0034] In a sixth aspect, a system is provided, comprising a first device and a second device, wherein the first device is connected to the second device via a first network, the first network being a wireless network provided by the first device; the first device is configured to send first information to the second device when n first received signal strength indicators (RSSIs) of the first network satisfy the first condition, wherein the first condition includes: each of the n first RSSIs is less than the first threshold, and the rate of change of the n first RSSIs is greater than the second threshold, where n is an integer greater than 1; the second device is configured to switch to data transmission via the second network in response to the first information.

[0035] It should be noted that the beneficial effects of the third to sixth aspects mentioned above can be referred to the descriptions of the first and second aspects mentioned above, and will not be repeated here. Attached Figure Description

[0036] Figure 1 illustrates a wireless communication scenario according to some embodiments of this application.

[0037] Figure 2 illustrates a schematic diagram of RSSI variation between a mobile phone 10 and a router 20 according to some embodiments of this application.

[0038] Figure 3 illustrates an interactive flow diagram of a communication method according to some embodiments of this application.

[0039] Figure 4 shows a schematic diagram of a mobile phone 10 prompting a user according to some embodiments of this application.

[0040] Figure 5 illustrates an interactive flow diagram of another communication method according to some embodiments of this application.

[0041] Figure 6 illustrates an interactive flow diagram of another communication method according to some embodiments of this application.

[0042] Figure 7 shows a schematic diagram of the structure of a device 100 according to some embodiments of this application. Detailed Implementation

[0043] The illustrative embodiments of this application include, but are not limited to, communication methods, devices, systems, and readable storage media.

[0044] It should be noted that the network device in this application embodiment can be any device capable of providing wireless network access to user equipment, including but not limited to base stations, routers, wireless access points (APs), customer premises equipment (CPEs), mobile phones, tablets, laptops, desktop computers, or other devices capable of providing wireless network access to user equipment (such as wireless hotspots).

[0045] It should be noted that the wireless network provided by the network device to the user device can be any form of wireless network, including but not limited to wireless local area network (WLAN) (such as wireless-fidelity (Wi-Fi)), Bluetooth, Star, ZigBee network, cellular network (such as 2G, 3G, 4G, 5G, 6G and future mobile communication networks).

[0046] It should be noted that the user devices in the embodiments of this application include, but are not limited to, mobile phones, laptops, tablets, wearable devices (such as smartwatches, smart bracelets, etc.), and mobile devices (such as virtual reality (VR) devices, augmented reality (AR) devices, devices in industrial control, devices in autonomous driving, devices in smart grids, devices in transportation safety, devices in smart cities, and devices in smart homes).

[0047] It should be noted that the same device can be either a user device or a network device in different situations. For example, when a mobile phone is connected to a router's WLAN, the mobile phone is the user device and the router is the network device; when the mobile phone provides a Wi-Fi hotspot for other devices to transmit data through the phone, the mobile phone is the network device.

[0048] For ease of description, the following uses router 20 as the network device, mobile phone 10 as the user device, and WLAN as the wireless network provided by router 20 to mobile phone 10 as an example to introduce the technical solution of this application.

[0049] As described in the background section, when a user device is within the coverage area of ​​a network device's wireless communication signal but the network device is not within the coverage area of ​​the user device's wireless communication signal, the user device may be able to receive the wireless communication signal sent by the network device but may be unable to transmit data, thus affecting the communication quality of the user device.

[0050] For example, FIG1 illustrates a schematic diagram of a wireless communication scenario according to some embodiments of this application.

[0051] As shown in Figure 1, a router 20 is installed in the user's home. The user's mobile phone 10 connects to the router 20 via WLAN and transmits data through the router 20. The coverage area of ​​the wireless communication signal of the mobile phone 10 is D1, and the coverage area of ​​the wireless communication signal of the router 20 is D2.

[0052] While the user is away from home with mobile phone 10, if mobile phone 10 remains within range D2 and the distance between router 20 and mobile phone 10 is greater than the coverage range D1 of mobile phone 10's wireless communication signal, mobile phone 10 can still maintain a WLAN connection with router 20 (the WLAN network still shows a signal on mobile phone 10). In this scenario, messages sent from router 20 to mobile phone 10 are reachable (mobile phone 10 can receive messages sent by router 20), but messages sent from mobile phone 10 to router 20 are unreachable (router 20 cannot receive messages sent by mobile phone 10), causing communication abnormalities on mobile phone 10. For example, applications on mobile phone 10 may be unable to access their corresponding servers, leading to application malfunctions (e.g., a ride-hailing application cannot access data on the server, causing the user to fail to hail a ride; a video application cannot access video data on the server, causing video playback to stutter).

[0053] To address the network failure issue of mobile phone 10 when it is within the coverage area of ​​router 20's wireless communication signal but router 20 is not, in some embodiments, router 20 can determine that the distance between mobile phone 10 and router 20 exceeds the coverage area of ​​mobile phone 10's wireless communication signal if the received signal strength indication (RSSI) of the WLAN between mobile phone 10 and router 20 is less than a preset RSSI (e.g., -88 dBm), and then send a network switching instruction to mobile phone 10. After receiving the network switching instruction, mobile phone 10 can switch to another network (e.g., a cellular network) other than the wireless network provided by router 20 for data transmission. Thus, when the RSSI of the WLAN between mobile phone 10 and router 20 is low, mobile phone 10 can promptly switch to another network other than the WLAN provided by router 20 for data transmission.

[0054] It should be noted that the RSSI of the WLAN between mobile phone 10 and router 20 can be the RSSI of the WLAN wireless communication signal sent by router 20 received by mobile phone 10, or the RSSI of the WLAN wireless communication signal sent by mobile phone 10 received by router 20.

[0055] However, the accuracy of the router 20's method of determining whether the distance between the mobile phone 10 and the router 20 will exceed the coverage range of the mobile phone 10's wireless communication signal based on a preset RSSI is relatively low, which may affect the network communication quality of the mobile phone 10 or increase the user's data consumption. For example, when a user moves around at home (or nearby) with the mobile phone 10, the RSSI of the WLAN between the mobile phone 10 and the router 20 will fluctuate around the preset RSSI, causing the mobile phone 10 to frequently switch between the WLAN provided by the router 20 and other networks. Since the mobile phone 10 usually cannot transmit data during network switching, the network quality of the mobile phone 10 will be poor.

[0056] For example, FIG2 illustrates a schematic diagram of the RSSI variation between a mobile phone 10 and a router 20 according to some embodiments of this application.

[0057] As shown in Figure 2:

[0058] The RSSI of the WLAN between mobile phone 10 and router 20 gradually decreases to less than -88dBm between time t0 and time t1. Mobile phone 10 can switch to the cellular network based on the network switching instruction sent by router 20 at time t1.

[0059] During the period from time t1 to time t2, the RSSI of the WLAN between mobile phone 10 and router 20 first decreases from less than -88dBm, then increases to greater than -88dBm, then decreases again, and finally decreases to less than -88dBm at time t2. During this process, mobile phone 10 can switch to data transmission via the WLAN provided by router 20 after the RSSI of the WLAN between mobile phone 10 and router 20 increases to greater than -88dBm, and then switch to the cellular network based on the network handover indication sent by router 20 at time t2.

[0060] Between time t2 and t3, the RSSI of the WLAN between mobile phone 10 and router 20 first decreases from less than -88dBm, then increases to greater than -88dBm, then decreases again, and finally decreases to less than -88dBm at time t3. Mobile phone 10 can switch to data transmission via the WLAN provided by router 20 after the RSSI of the WLAN between mobile phone 10 and router 20 increases to greater than -88dBm, and then switch to the cellular network based on the network handover indication sent by router 20 at time t3.

[0061] Between time t3 and t4, the RSSI of the WLAN between mobile phone 10 and router 20 first decreases from less than -88dBm, then increases to greater than -88dBm, then decreases again, and finally decreases to less than -88dBm at time t4. Mobile phone 10 can switch to data transmission via the WLAN provided by router 20 after the RSSI of the WLAN between mobile phone 10 and router 20 increases to greater than -88dBm, and then switch to the cellular network based on the network handover indication sent by router 20 at time t4.

[0062] Between time t4 and t5, the RSSI between mobile phone 10 and router 20 first decreases from less than -88dBm, then increases to greater than -88dBm, then decreases again, and finally decreases to less than -88dBm at time t5. Mobile phone 10 can switch to data transmission via the WLAN provided by router 20 after the RSSI between mobile phone 10 and router 20 increases to greater than -88dBm, and then switch to the cellular network based on the network switching indication sent by router 20 at time t5.

[0063] After time t5, the RSSI between mobile phone 10 and router 20 gradually increases from less than -88dBm. Mobile phone 10 can switch to data transmission through the WLAN provided by router 20 after the RSSI between mobile phone 10 and router 20 increases to greater than -88dBm.

[0064] During the period from time t0 to time t5, mobile phone 10 frequently switches between WLAN and cellular network. Since mobile phone 10 usually cannot transmit data during the network switching process, the network quality of mobile phone 10 will be poor.

[0065] For example, if the RSSI of the WLAN between the mobile phone 10 and the router 20 decreases to the aforementioned preset RSSI, instructing the mobile phone 10 to switch networks, and the user does not actually carry the mobile phone 10 away from the router 20 (for example, the distance between the mobile phone 10 and the router 20 is always less than the coverage range of the mobile phone 10's wireless communication signal), the mobile phone 10 will consume a large amount of cellular traffic to directly switch to the cellular network for data transmission based on the network switching instruction of the router 20, resulting in high communication costs for the user.

[0066] To improve the accuracy of network devices in determining whether the distance between a user equipment (UE) and the network device will exceed the coverage range of the UE's wireless communication signal, embodiments of this application provide a communication method. In this method, the network device sends a network handover indication to the UE when n (n is a positive integer greater than 1) RSSIs (hereinafter referred to as first RSSIs) of a first network between the network device and the UE satisfy a first condition (e.g., each of the n first RSSIs is less than a first threshold, and the rate of decrease of the n first RSSIs is greater than a second threshold). Upon receiving the network handover indication, the UE can switch to transmitting data through a second network in response to the network handover indication.

[0067] When the rate of change of the first RSSI decreases by more than the second threshold, the user equipment moves away from the network device faster, and the likelihood of the distance between the user equipment and the network device exceeding the coverage range of the user equipment's wireless communication signal is higher. Therefore, determining whether the distance between the user equipment and the network device will exceed the coverage range of the user equipment's wireless communication signal based on the first condition is more accurate, avoiding incorrect network switching by the user equipment due to misjudgment of the network device, and thus improving the network quality of the user equipment.

[0068] In some embodiments, the rate of change of the n first RSSI decreases is used to characterize how fast the first RSSI decreases.

[0069] For example, the rate of change of the n first RSSIs can be characterized by the amount of decrease in the first RSSIs per unit time. The greater the decrease in the first RSSIs per unit time, the greater the rate of change of the n first RSSIs. For instance, if the n first RSSIs decrease from RSSI1 to RSSI2 within a time period td, the rate of change of the first RSSIs can be (RSSI1-RSSI2) / td.

[0070] For example, the rate of change of the n first RSSIs can be characterized by the average of the decreases in the n first RSSIs. The larger the average decrease in the first RSSIs, the greater the rate of change of the decrease in the first RSSIs. For instance, in the n first RSSIs, the i-th first RSSI (denoted as RSSI) i (where i is an integer greater than 1 and less than or equal to n) The decrease in the first RSSI relative to the (i-1)th RSSI is D. i The rate of change of the first RSSI for n terms can be expressed as (D2 + D3 + ... + D n-1 +D n ) / (n-1).

[0071] For example, the rate of change of the first RSSI decrease can be characterized by the negative of the slope of the straight line fitted by n first RSSIs (used to indicate the relationship between the first RSSI and the acquisition time corresponding to the first RSSI). The larger the negative of the slope, the larger the rate of change of the first RSSI decrease. Based on this, the network device can determine that the rate of change of the n first RSSI decreases is greater than the second threshold if the negative of the slope of the straight line fitted by the n first RSSIs is greater than the second threshold. For example, if the straight line fitted by the n first RSSIs and their corresponding acquisition times is y = kx + b (where x represents the acquisition time of the first RSSI, y represents the first RSSI, and k represents the slope), the first condition can be -k greater than the second threshold.

[0072] In some embodiments, the acquisition time of the first RSSI may be the time when the network device measures the RSSI of the wireless communication signal of the first network sent by the user equipment, or the time when the network device receives the first RSSI sent by the user equipment.

[0073] It should be noted that in other embodiments, the rate of change of the first RSSI decrease can also be characterized in other ways, which are not limited here.

[0074] In some embodiments, the first RSSI may be the RSSI of the wireless communication signal transmitted by the user equipment to the first network collected by the network device, or it may be the RSSI of the wireless communication signal transmitted by the network device to the first network collected by the user equipment; there is no limitation on this.

[0075] In some embodiments, the specific values ​​of each parameter (e.g., the first threshold, the second threshold) in the first condition may be the same or the same for different user devices, and this is not limited here.

[0076] In some embodiments, the first threshold and the second threshold can be experimental values, empirical values, or network device configurations. This application does not limit the specific values ​​of the first threshold and the second threshold.

[0077] In some embodiments, the network device may also dynamically adjust the first threshold based on a first value of the RSSI of the first network when the user equipment is disconnected from the network device, to improve the accuracy of the network device in determining that the user equipment is far from the network device. For example, the network device may reduce the first threshold to a value between the value of the first threshold before adjustment and the first value.

[0078] In some embodiments, the RSSI at the moment of first network disconnection between the user equipment and the network device (hereinafter referred to as offline RSSI) can be the RSSI carried in offline information (such as deauthentication frames) sent by the user equipment to the network device, or the wireless network RSSI measured by the network device when the user equipment sends offline information to the network device. Since data transmission can occur between the user equipment and the network device when the user equipment sends offline information to the network device, adjusting the first threshold based on the offline RSSI can reduce the first threshold (equivalent to delaying the timing of the network device sending a network handover indication to the user equipment). In this way, it is possible to avoid the user equipment switching to the cellular network too early due to the first threshold being set too high, thereby reducing the amount of data transmitted by the user equipment through the cellular network and helping to reduce the user's cellular network traffic consumption.

[0079] In some embodiments, after sending a network handover instruction to the user equipment, the network device may further adjust the first threshold (e.g., decrease the first threshold) and / or adjust the second threshold (e.g., increase the second threshold) if the user equipment has not disconnected from the network device within a first time period (meaning the distance between the user equipment and the network device is consistently less than the coverage range of the user equipment's wireless communication signal), or if the user equipment reconnects to the network device within a short period (e.g., within a second time period) after disconnecting from the network device. This avoids situations where setting the first threshold too high or the second threshold too low results in low accuracy in determining whether the distance between the user equipment and the network device will exceed the coverage range of the user equipment's wireless communication signal.

[0080] The following section continues to use router 20 as the network device and mobile phone 10 as the user device as an example to introduce the technical solution of this application.

[0081] For example, FIG3 illustrates an interactive flow diagram of a communication method according to some embodiments of this application. As shown in FIG3, the method includes:

[0082] S301: Mobile phone 10 connects to router 20 via WLAN.

[0083] Mobile phone 10 can connect to router 20 via the WLAN provided by router 20 and transmit data via WLAN.

[0084] S302: Router 20 obtains n first RSSIs of the WLAN between Router 20 and Mobile Phone 10.

[0085] For example, router 20 may periodically or non-periodically acquire n first RSSIs of the WLAN network between router 20 and mobile phone 10.

[0086] In some embodiments, n can be a preset value, or the number of first RSSIs obtained by router 20 within a preset time period (in which case n may not be a fixed value), and is not limited here.

[0087] In some embodiments, the first RSSI may be the RSSI of the WLAN signal received by the router 20 from the mobile phone 10. In this case, the first RSSI can be obtained by the router 20 measuring the WLAN signal sent by the mobile phone 10.

[0088] In some embodiments, the first RSSI may be the RSSI of the WLAN signal received by the mobile phone 10 from the router 20. In this case, the first RSSI can be obtained by the mobile phone 10 by measuring the WLAN signal sent by the router 20 and transmitted to the router 20 via data frames, control frames, or management frames. Since the power of the WLAN signal transmitted by the router 20 is usually constant, while the power of the WLAN signal transmitted by the mobile phone 10 is usually variable, using the RSSI of the WLAN signal transmitted by the router 20 received by the mobile phone 10 as the first RSSI to determine whether the distance between the mobile phone 10 and the router 20 will exceed the coverage range of the mobile phone 10's wireless communication signal is more accurate.

[0089] S303: Router 20 responds to n first RSSIs satisfying the first condition by sending a network switching instruction to mobile phone 10.

[0090] After obtaining n first RSSIs, router 20 can send a network switching instruction to mobile phone 10 if the n first RSSIs meet the first condition.

[0091] In some embodiments, the first condition may include: each of the n first RSSIs is less than a first threshold, and the rate of change of the n first RSSIs is greater than a second threshold.

[0092] In some embodiments, the rate of change of the first RSSI decrease can be determined based on the slope of the straight line fitted by n first RSSIs. If the negative of the slope is greater than a second threshold, the router 20 can determine that the first RSSI satisfies a first condition.

[0093] In some embodiments, the first threshold may be a preset value (e.g., -85dBm, -80dBm, -75dBm, or any other arbitrary value), or it may be a value determined by the router 20 based on the historical connection data between the mobile phone 10 and the router 20 (e.g., the offline RSSI when the mobile phone 10 disconnects from the router 20's WLAN connection), and is not limited here. The method by which the router 20 adjusts the first threshold can be referred to in S305 or S505 below, and will not be elaborated here.

[0094] In some embodiments, the second threshold may be a preset value or a value determined by the router 20 based on the historical connection data between the mobile phone 10 and the router 20 (e.g., the offline RSSI when the mobile phone 10 disconnects from the router 20 via WLAN), and is not limited here.

[0095] In some embodiments, the router 20 can directly send a network switching instruction to the mobile phone 10 via a message of a communication protocol supported by the WLAN network, for example, by carrying a network switching instruction in the message. Exemplarily, the message can be any one of the following: Internet Protocol (IP) message, Transmission Control Protocol (TCP) message, TCP / IP message, Internet Control Message Protocol (ICMP) message, User Datagram Protocol (UDP) message, Address Resolution Protocol (ARP) message, or Stream Control Transmission Protocol (SCTP) message.

[0096] In other embodiments, the router 20 may also send a network switching instruction to the mobile phone 10 through messages corresponding to other protocols, or other forms of data frames, management frames, or control frames (e.g., by carrying the network switching instruction through messages, data frames, management frames, or control frames corresponding to the aforementioned other protocols), which is not limited here.

[0097] In some embodiments, router 20 may first send a network switching instruction to other devices (e.g., a server), which then forwards the instruction to mobile phone 10 via router 20 or other network devices. For example, applications (e.g., smart living applications) or services on mobile phone 10 and router 20 may both have permission to access the same server (e.g., a server provided by the manufacturer of router 20, or a server provided by the manufacturer of mobile phone 10, or a server provided by a third party). Router 20 can send the network switching instruction to this server, which then forwards it to mobile phone 10.

[0098] In some embodiments, after acquiring n first RSSIs, router 20 can determine whether the rate of change of the n first RSSIs is greater than a second threshold, provided that all n first RSSIs are less than a first threshold. If at least one first RSSI is greater than or equal to the first threshold, the process ends directly. Since calculating the rate of change consumes more computational resources, determining whether all n first RSSIs are less than the first threshold first reduces the likelihood of calculating the rate of change of the n first RSSIs, which helps reduce the power consumption of router 20.

[0099] Based on the first condition mentioned above, the router 20 sends a network switching indication that takes into account both the magnitude of the first RSSI and the changes in the first RSSI (e.g., the rate of change of decreasing RSSI), which can improve the accuracy of the router 20 in determining whether the distance between the mobile phone 10 and the router 20 will exceed the coverage range of the mobile phone 10's wireless communication signal.

[0100] S304: In response to the network switching instruction, mobile phone 10 sends offline information to router 20 and switches to data transmission via cellular network.

[0101] After receiving the network switching instruction, mobile phone 10 can send offline information to router 20 and switch to data transmission via cellular network.

[0102] In some embodiments, offline information is used to notify router 20 that mobile phone 10 will disconnect its WLAN connection with router 20. For example, the offline information may include a deauthentication frame or other frames. Optionally, the offline information may include an offline RSSI.

[0103] In other embodiments, when the location of mobile phone 10 can connect to the WLAN provided by other network devices (such as other routers, APs, CPEs, etc.), mobile phone 10 can also switch to the WLAN provided by other network devices for data transmission.

[0104] In some embodiments, after receiving a network switching instruction, the mobile phone 10 may display a prompt message to inform the user that it will switch to a cellular network. The mobile phone 10 may then switch to data transmission via the cellular network after the user confirms the switch (e.g., after detecting the user's confirmation operation or confirmation command).

[0105] For example, referring to Figure 4, after receiving a network switching instruction, mobile phone 10 can display a prompt box 31 to inform the user that "a network failure may occur, and the system will switch to cellular network." The prompt box 31 may include a confirmation control 32 and a cancellation control 33. If mobile phone 10 detects that the user clicks the confirmation control 32, it switches to data transmission via cellular network; if mobile phone 10 detects that the user clicks the cancellation control 33 (or if the user does not click the confirmation control 32 within a preset time), it continues to transmit data via the WLAN provided by router 20.

[0106] Based on the above method, mobile phone 10 can switch to other networks besides WLAN provided by router 20 in a timely manner for data transmission, which can avoid poor network quality of mobile phone 10 due to the distance between mobile phone 10 and router 20 exceeding the coverage range of mobile phone 10's wireless communication signal.

[0107] S305: Router 20 responds to offline information and adjusts the first condition.

[0108] After receiving offline information, router 20 can adjust the first condition based on the offline information.

[0109] For example, router 20 can adjust the first threshold and / or second threshold in the first condition based on the offline RSSI carried in the offline information or the offline RSSI measured by router 20. In some embodiments, router 20 can adjust the first condition (e.g., adjust the first threshold and / or the second threshold) when the difference between the offline RSSI and the first threshold is large (e.g., the difference between the offline RSSI and the first threshold is greater than a preset difference, and / or, the offline RSSI is less than the first threshold); and not adjust the first condition when the difference between the offline RSSI and the first threshold is small (e.g., the difference between the offline RSSI and the first threshold is not greater than a preset difference, and / or, the offline RSSI is greater than or equal to the first threshold).

[0110] In some embodiments, the adjusted first threshold may be between the original first threshold and the offline RSSI.

[0111] For example, router 20 can adjust the first threshold based on the following formula (1): RT1=a×RT0+b×R1 (1)

[0112] In formula (1), RT1 represents the first threshold after adjustment, RT0 represents the first threshold before adjustment, R1 represents the offline RSSI, a and b are positive numbers between 0 and 1 and the sum of a and b is less than or equal to 1, and a and b represent the weights of RT0 and offline RSSI, respectively.

[0113] In some embodiments, a and b can be empirical values, experimental values, or preset values.

[0114] For example, router 20 can adjust the first threshold based on the following formula (2): RT1=min(c×RT0,R1) (2)

[0115] In formula (2), RT1 represents the first threshold after adjustment, RT0 represents the first threshold before adjustment, R1 represents the offline RSSI, c is a positive number greater than 1, and min(c×RT0, R1) represents the minimum value between c×RT0 and R1.

[0116] For example, router 20 can adjust the first threshold based on the following formula (2): RT1 = min(RT0 - DR, R1) (3)

[0117] In formula (3), RT1 represents the first threshold after adjustment, RT0 represents the first threshold before adjustment, R1 represents the offline RSSI, DR is the amount of reduction in each adjustment (DR is a positive number), and min(RT0+DR, R1) represents the minimum value between RT0+DR and R1.

[0118] It should be noted that the method of adjusting the first threshold based on formulas (1) to (3) is only one example. In other embodiments, the router 20 may also adjust the first threshold to any value between the original first threshold and the offline RSSI in other ways, which is not limited here.

[0119] In some embodiments, the router 20 may increase the second threshold when it receives offline information, or when it receives offline information and the offline RSSI differs significantly from the first threshold (e.g., greater than a preset difference).

[0120] In some embodiments, if the router 20 reconnects to the router 20 via WLAN within a short period of time (e.g., a second duration, such as 3 seconds, 5 seconds, 8 seconds, 10 seconds, or other durations) after the WLAN connection between the mobile phone 10 and the router 20 is lost (receiving an offline information), indicating that the user's actual intention is not to move away from the router 20 (e.g., not leaving home but staying at home), and the determination result in S302 may be incorrect, the first condition is adjusted. For example, the router 20 may decrease the first threshold and / or increase the second threshold. This improves the accuracy of the next determination of whether the distance between the mobile phone 10 and the router 20 will exceed the coverage range of the mobile phone 10's wireless communication signal.

[0121] In some embodiments, while the mobile phone 10 maintains a WLAN connection with the router 20, the mobile phone 10 may periodically or non-periodically repeat the aforementioned S301 to S305.

[0122] Based on the above adjustment method, the router 20 can dynamically adjust the first condition based on offline information to avoid poor accuracy in determining whether the distance between the mobile phone 10 and the router 20 will exceed the coverage range of the wireless communication signal of the mobile phone 10 due to inappropriate setting of the first threshold or the second threshold in the first condition.

[0123] The following describes how the router 20 adjusts the first condition when the phone 10 does not switch to a network other than the WLAN provided by the router 20 after the router 20 sends a network switching instruction to the phone 10, or when the phone switches to a network other than the WLAN provided by the router 20 within a short period of time and then switches back to the WLAN provided by the router 20.

[0124] For example, Figure 5 illustrates an interactive flow diagram of another communication method according to some embodiments of this application. As shown in Figure 5, the method includes:

[0125] S501: Mobile phone 10 connects to router 20 via WLAN.

[0126] S502: Router 20 obtains n first RSSIs of the WLAN between Router 20 and Mobile Phone 10.

[0127] S503: Router 20 responds to n first RSSIs satisfying the first condition by sending a network handover instruction to mobile phone 10.

[0128] It should be noted that S501 to S503 are essentially the same as S301 to S303, and will not be elaborated upon here.

[0129] S504: Mobile phone 10 responds to network switching instructions and continues to transmit data via WLAN.

[0130] In some embodiments, after receiving a network switching instruction, the mobile phone 10 may continue to transmit data via the WLAN provided by the router 20 without switching networks. For example, in the scenario shown in Figure 4, after the mobile phone 10 displays the prompt box 31, it can continue to transmit data via WLAN if it detects that the user has clicked the cancel control 33.

[0131] S505: Router 20 responds to mobile phone 10 to maintain data transmission via WLAN network and adjusts the first condition.

[0132] Router 20 can adjust the first condition if mobile phone 10 continues to transmit data via WLAN network (e.g., if it does not receive offline information from mobile phone 10).

[0133] In some embodiments, if mobile phone 10 continues to transmit data via the WLAN network, it indicates that the first condition setting in S502 may be inaccurate (e.g., the first threshold is set too high, the second threshold is set too low, etc.), leading to an incorrect determination that the distance between mobile phone 10 and router 20 will exceed the coverage range of mobile phone 10's wireless communication signal. Router 20 may adjust the first condition in response to mobile phone 10 continuing to transmit data via the WLAN network.

[0134] For example, the adjustment of the first condition by mobile phone 10 in response to maintaining data transmission via the WLAN network may include at least one of the following: decreasing the first threshold and / or increasing the second threshold. Based on the above adjustment methods, the accuracy of the router 20 in determining whether the distance between mobile phone 10 and router 20 will exceed the coverage range of mobile phone 10's wireless communication signal can be improved in the next instance.

[0135] In some embodiments, while the mobile phone 10 maintains a WLAN connection with the router 20, the mobile phone 10 may periodically or non-periodically repeat the aforementioned S501 to S505.

[0136] In some embodiments, when mobile phone 10 continues to transmit data via the WLAN network (indicating that the result of determining that the first RSSI meets the first condition in S503 is incorrect), the distance between mobile phone 10 and router 20 will not exceed the coverage range of mobile phone 10's wireless communication signal for a short period of time. Router 20 may, within a third time period (e.g., 3 minutes, 5 minutes, 30 minutes, or other time periods), cease determining whether the distance between mobile phone 10 and router 20 will exceed the coverage range of mobile phone 10's wireless communication signal, or, if it determines that the first RSSI meets the first condition (in the case of determining to send a network switching instruction), skip sending the network switching instruction. That is, within the third time period, even if router 20 determines that the first RSSI meets the first condition, it will not send a network switching instruction to mobile phone 10.

[0137] This application also provides another communication method. Exemplarily, FIG6 illustrates an interactive flow diagram of yet another communication method according to some embodiments of this application. As shown in FIG3, the method includes:

[0138] S601, the first device establishes a communication connection with the second device through the first network provided by the first device.

[0139] In some embodiments, the first device may be a network device, such as the aforementioned router 20; the second device may be a user device, such as the aforementioned mobile phone 10.

[0140] In some embodiments, the first network may be any form of wireless network, including but not limited to cellular network, WLAN, Bluetooth, Starflash, and Purple Bee.

[0141] In some embodiments, after the second device is connected to the first device via the first network, it can transmit data based on the first network.

[0142] S602, the first device determines that n first RSSIs of the first network satisfy the first condition, and sends first information to the second device, wherein the first information instructs the second device to switch to data transmission through the second network.

[0143] If the first device receives n first RSSIs from the first network and a first condition is met, it can send first information to the second device. The first information can instruct the second device to switch to data transmission through a network other than the first network (e.g., the second network). Here, n is an integer greater than 1, and n can be a preset value or the number of first RSSIs acquired within a certain period of time (e.g., within a fourth time period).

[0144] In some embodiments, the types of the first network and the second network can be the same or different, and this is not limited thereto. For example, if the first network is a WLAN provided by the first device, the second network can be a different type of network than the WLAN (e.g., cellular, Bluetooth, Starlink, Purple Bee, etc.), or it can be a WLAN provided by a network device other than the first device. As another example, if the first network is a cellular network provided by the first device, the second network can be a different type of network than the cellular network (e.g., WLAN, Bluetooth, Starlink, Purple Bee, etc.), or it can be a cellular network provided by a network device other than the first device (e.g., different base stations of the same operator, base stations of different operators, etc.).

[0145] In some embodiments, when the first network is a WLAN, the first device can send the first information to the second device via IP packets, TCP packets, TCP / IP packets, ICMP packets, UDP packets, ARP packets, SCTP packets, or other data frames / management frames / control frames, or it can send the first information to the second device in other ways. This application does not limit the scope of the embodiments.

[0146] In some embodiments, when the first network is a cellular network, the first device may send the first information to the second device via the physical downlink control channel (PDCCH), physical downlink shared channel (PDSCH), or other channels, without limitation. For example, the first device may embed the first information into downlink control information (DCI) and send it to the second device. As another example, the first device may send a network handover instruction to a server, which then transmits it to the first device in the form of user data, and the first device then sends it to the second device in the form of user data via the PDSCH.

[0147] It should be noted that the first device can send the first information to the second device using any protocol, message, or frame supported by the first network. This application embodiment does not limit the method by which the first device sends the first information to the second device.

[0148] In some embodiments, the first information may be the aforementioned network switching indication.

[0149] In some embodiments, the type of the second network may or may not be indicated in the first information.

[0150] In some embodiments, the first condition may include: each of the n first RSSIs of the first network is less than a first threshold, and the rate of change of the n first RSSIs is greater than a second threshold.

[0151] In some embodiments, the rate of change of the n first RSSI decrease can be characterized by the negative of the slope of the straight line obtained by fitting the n first RSSIs. If the negative of the slope of the straight line is greater than a second threshold, it indicates that the rate of change of the n first RSSI decrease is greater than the second threshold.

[0152] In some embodiments, after receiving the first information, the second device may switch to another network different from the first network for data transmission in response to the first information, or it may continue to use the first network for data transmission without switching networks.

[0153] In some embodiments, when the second device switches to a network different from the first network for data transmission, the second device can disconnect from the first network and send offline information (or second information) to the first device. After receiving the offline information sent by the second device, the first device can adjust the first condition based on the offline information. For example, the first device can adjust the first condition by decreasing a first threshold (e.g., decreasing it to any value between the offline RSSI (or first value) and the first threshold before the decrease) or increasing a second threshold. Specific adjustment methods can be found in the aforementioned S305, and will not be elaborated upon here.

[0154] In some embodiments, the first value is the RSSI of the first network at the moment the second device disconnects from the first network. For example, the first value could be the RSSI of the wireless communication signal of the first network transmitted by the first device and measured by the second device before disconnecting from the first network, and this first value could be sent to the first device via second information. Alternatively, the first value could also be the RSSI of the wireless communication signal of the first network transmitted by the second device and measured by the first device in response to the second information.

[0155] In some embodiments, the first device adjusts the first condition when the second device is not offline (e.g., the second device continues to transmit data through the first network for a first period of time after sending the first information), or when the first device reconnects to the first device through the first network for a second period of time after being offline from the second device. For example, the first device can adjust the first condition by decreasing the first threshold or increasing the second threshold. Specific adjustment methods can be found in the aforementioned S305 and S505, and will not be elaborated here.

[0156] In some embodiments, if the second device continues to transmit data through the first network (without disconnecting the first network) for a first period of time after sending the first information, the first device may determine once or multiple times within a third period of time whether the RSSI of the first network meets the first condition. If the first device determines that the RSSI of the first network meets the first condition (equivalent to determining to send the first information to the second device), it skips sending the first information to the second device. That is, even if the first device determines that the RSSI of the first network meets the first condition within the third period of time, it does not send the first information to the second device.

[0157] In some embodiments, the first condition may differ for different devices connected to the first device. For example, when a third device is connected to the first device via a first network, the first device may send third information (e.g., the aforementioned network switching indication) to the third device if m (where m is an integer greater than 1, and m may be the same as or different from n) second RSSIs in the first network satisfy the second condition. The third information is used to instruct the third device to switch to data transmission via a second network different from the first network. The second condition may include: each of the m second RSSIs is less than a third threshold, and the rate of change of the m second RSSIs is greater than a fourth threshold, wherein the third threshold is different from the first threshold, and / or the fourth threshold is different from the second threshold. That is, for different user equipments, the first device may set different conditions to determine whether the distance between the user equipment and the network device will exceed the coverage range of the user equipment's wireless communication signal.

[0158] In some embodiments, the rate of change of the m second RSSIs can be characterized by the amount of decrease of the second RSSIs per unit time (the greater the amount of decrease of the second RSSIs per unit time, the greater the rate of change of the m second RSSIs), or by the average amount of decrease of the m second RSSIs (the greater the average amount of decrease of the second RSSIs, the greater the rate of change of the m second RSSIs), or by the inverse of the slope of the straight line fitted to the m second RSSIs with the corresponding acquisition time (used to indicate the relationship between the change of the second RSSIs and the acquisition time corresponding to the second RSSIs) (the greater the inverse of the slope, the greater the rate of change of the m second RSSIs), or by other means.

[0159] In some embodiments, the calculation method for the rate of change of the m second RSSI decreases can refer to the calculation method for the rate of change of the m first RSSI decreases described above, and will not be repeated here.

[0160] In some embodiments, m can be a preset value or the number of second RSSIs acquired within a certain period of time (e.g., within a fifth time period).

[0161] Based on the above method, the first device can more accurately determine whether the distance between the user equipment and the network device will exceed the coverage range of the user equipment's wireless communication signal (if the first condition is met in n first RSSIs, it means that the distance between the user equipment and the network device will exceed the coverage range of the user equipment's wireless communication signal), and instruct the first device to switch networks through the first information, which is beneficial to improving the network quality of the first device.

[0162] This application also provides a device 100. One or more of the network devices (e.g., routers) and user equipment in this application can adopt the structure of device 100.

[0163] Figure 7 shows a schematic diagram of the structure of a device 100 according to some embodiments of this application.

[0164] As shown in Figure 7, device 100 includes one or more processors 110, one or more memories 120, a communication interface 130, and a bus 140.

[0165] Processor 110 may include one or more processing units, such as a central processing unit (CPU), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a microcontroller unit (MCU), a video codec, a digital signal processor (DSP), a baseband processor, a neural network processing unit (NPU), a field-programmable gate array (FPGA), etc. In some embodiments, different processing units may be independent devices or integrated into one or more processors.

[0166] In some embodiments, at least one processor 110 may be used to execute one or more programs to implement the methods provided in the foregoing embodiments.

[0167] The memory 120 may include a memory for storing data or program code. For example, in some embodiments, at least one memory 120 may be used to store data transmitted by other devices (e.g., a first RSSI). As another example, in some embodiments, at least one memory 120 may be used to store instructions for the communication methods provided in the foregoing embodiments.

[0168] In some embodiments, the memory 120 may include a hard disk drive, a solid-state drive, flash memory, an optical disk, or a magneto-optical disk.

[0169] In some embodiments, the memory 120 may include removable or non-removable or fixed media.

[0170] In some embodiments, the memory 120 may be internal or external to the device 100.

[0171] Communication interface 130 is used to enable communication between device 100 and other devices. Communication interface 130 may include wired or wireless communication interfaces, allowing device 100 to communicate with other devices via wired or wireless networks. For example, if device 100 is a network device, it can provide access services to wireless networks such as WLAN, cellular, Bluetooth, Starlink, and ZigBee via communication interface 130, enabling user devices to connect to device 100 via communication interface 130. As another example, if device 100 is a user device, it can connect to a network device via a wireless network for data transmission via communication interface 130.

[0172] Bus 140 is used to connect processor 110, memory 120, communication interface 130 and other possible modules or circuits.

[0173] It should be understood that the structure of the device 100 shown in FIG7 is only an example. In other embodiments, the device 100 may include more or fewer modules, which is not limited here.

[0174] This application also provides a program product (also known as a computer program product) that, when executed on a device, enables the device to implement the communication methods provided in the foregoing embodiments.

[0175] This application also provides a readable storage medium (also referred to as a computer-readable storage medium) storing one or more programs, which, when executed by a device, enable the device to implement the communication methods provided in the foregoing embodiments.

[0176] This application also provides a system that includes the aforementioned network device (or first device) and user equipment (or second device).

[0177] In the accompanying drawings, some structural or methodological features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be necessary. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. Furthermore, the inclusion of structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments, these features may be omitted or may be combined with other features.

[0178] It should be noted that in the examples and description of this patent, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the term "comprising" or any other variations thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0179] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0180] In the description of the embodiments in this application, unless otherwise stated, " / " means "or", for example, A / B can mean A or B; "and / or" in this document describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. In this application, "at least one" means one or more, and "more" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items.

[0181] The use of prefixes such as "first" and "second" in this application embodiment is solely for distinguishing different descriptive objects and does not limit the position, order, priority, quantity, or content of the described objects. The use of ordinal numbers and other prefixes to distinguish descriptive objects in this application embodiment does not constitute a limitation on the described objects. The description of the described objects is found in the claims or the context of the embodiments, and the use of such prefixes should not constitute unnecessary restrictions.

[0182] In the embodiments provided in this application, the connection between devices, the connection between modules, and the connection between physical network interfaces can be a direct connection or an indirect connection, and the connection method can be a wired connection or a wireless connection.

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

Claims

1. A communication method, characterized in that, include: The first device is connected to the second device through a first network, wherein the first network is a wireless network provided by the first device; The first device determines that n first received signal strength indicators (RSSIs) of the first network meet a first condition, and sends first information to the second device, wherein the first information instructs the second device to switch to data transmission through the second network, and the first condition includes: each of the n first RSSIs is less than a first threshold, and the rate of change of the n first RSSIs is greater than a second threshold, where n is an integer greater than 1.

2. The method according to claim 1, characterized in that, The rate of change of the reduction of the n first RSSIs is greater than the second threshold, including: the opposite of the slope of the straight line obtained by fitting the n first RSSIs is greater than the second threshold.

3. The method according to claim 1 or 2, characterized in that, The method further includes: The first device receives a second message sent by the second device, the second message instructing the second device to disconnect from the first network; In response to the second information, the first device decreases the first threshold and / or increases the second threshold.

4. The method according to claim 3, characterized in that, The reduction of the first threshold includes: The first device reduces the first threshold to a value between the first threshold and a first value, wherein the first value is the RSSI of the first network at the moment when the second device disconnects the first network.

5. The method according to claim 1 or 2, characterized in that, The method further includes: The first device decreases the first threshold and / or increases the second threshold in response to the second device not disconnecting from the first network within a first time period after sending the first information, or in response to the second device reconnecting to the first network within a second time period after disconnecting from the first network.

6. The method according to claim 1, characterized in that, The method further includes: The first device, in response to the fact that the second device has not disconnected from the first network within a first time period after sending the first information, determines to send the first information to the second device within a third time period and skips sending the first information.

7. The method according to claim 1, characterized in that, The method further includes: The first device determines that m second RSSIs of the first network between the first device and the third device satisfy a second condition, wherein the second condition includes: each of the m second RSSIs is less than a third threshold, and the rate of change of the m second RSSIs is greater than a fourth threshold, where m is an integer greater than 1; The first device sends a third message to the third device, the third message instructing the third device to switch to data transmission via the second network; Wherein, the third threshold is different from the first threshold, and / or the fourth threshold is different from the second threshold.

8. A communication method, characterized in that, include: The first device is connected to the second device through a first network, wherein the first network is a wireless network provided by the first device; The first device determines that n first received signal strength indicators (RSSIs) of the first network meet a first condition, and sends first information to the second device, wherein the first condition includes: each of the n first RSSIs is less than a first threshold, and the rate of change of the n first RSSIs is greater than a second threshold, where n is an integer greater than 1; In response to the first information, the second device switches to data transmission via the second network.

9. A readable storage medium, characterized in that, It includes one or more programs that, when executed on a device, cause the device to perform the method of any one of claims 1 to 7.

10. A device, characterized in that, include: At least one memory for storing one or more programs; At least one processor is configured to execute the one or more programs to cause the device to implement the method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Wireless handovers based on device movement

    CN110945908A

  • Methods and apparatus for proactively switching between available networks

    CN112740759A

  • Portable network communication device, method of selecting active network interface and computer readable storage medium

    US20130107736A1

  • Method for handover in vehicular communications and on-board equipment using the same

    US20130260759A1

  • Methods and systems for scanning when mobile

    US20230208538A1