Control method and electronic equipment

By monitoring and automatically switching to a target network with better performance, the problem of intelligence and timeliness of electronic devices during network switching is solved, and the dynamic demand for network performance is met.

CN119584234APending Publication Date: 2025-03-07LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411749295.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The prior art is difficult to realize the intelligence and timeliness of electronic devices during network switching, and cannot meet the dynamic demands of electronic devices for network performance.

Method used

By monitoring the network parameters currently connected to the electronic device, if the parameter change exceeds the threshold, a connection is automatically established with the target network in the spatial environment, and at least one network parameter of the target network is better than the current network.

Benefits of technology

It realizes that electronic devices automatically switch to better performance networks when network performance deteriorates, ensuring that electronic devices always have a good network connection experience in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119584234A_ABST
    Figure CN119584234A_ABST
Patent Text Reader

Abstract

The invention provides a control method and electronic equipment. The method comprises the following steps: monitoring network parameters of a first network currently connected with the electronic equipment; under the condition that the variable quantity of the network parameter is greater than a corresponding threshold value, controlling the electronic equipment to establish connection with a target network in the space environment; wherein at least one network parameter of the target network is superior to that of the first network, and the first network can be found by the electronic equipment in the space environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network switching, and in particular to a control method and electronic equipment. Background Art

[0002] When electronic devices are carried and used, they may have different requirements for network performance in the space environment they are in. When electronic devices are using the network, if the performance of the currently connected network cannot meet the requirements and other networks need to be connected or switched, the currently connected network can only be manually disconnected or the current network can be switched only after it disappears. The network switching cannot be completed in a timely and intelligent manner, and the requirements of electronic devices for network performance cannot be met. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a control method and an electronic device.

[0004] The embodiment of the present application adopts the following technical solution: a control method, comprising:

[0005] Monitoring network parameters of a first network to which the electronic device is currently connected;

[0006] When the change in the network parameter is greater than the corresponding threshold, controlling the electronic device to establish a connection with a target network in the space environment;

[0007] Among them, at least one network parameter of the target network is better than that of the first network, and the first network can be discovered by the electronic device in the space environment.

[0008] In some embodiments, monitoring the network parameters of the first network to which the electronic device is currently connected includes at least one of the following:

[0009] In response to the electronic device moving from a current first location to a second location different from the first location, detecting a network parameter of the first network;

[0010] In response to the electronic device discovering a second network at a first location currently located, detecting a network parameter of the first network, at least one network parameter of the second network being superior to that of the first network;

[0011] Monitoring network parameters of a first network to which the electronic device is currently connected according to a first interval duration;

[0012] In response to a change in usage information of the electronic device, detecting a network parameter of the first network;

[0013] In response to a change in the operating state of the electronic device, a network parameter of the first network is detected.

[0014] In some embodiments, when the change amount of the network parameter is greater than the corresponding threshold, controlling the electronic device to establish a connection with the target network in the space environment includes:

[0015] When the change amount of at least one network parameter of the first network is greater than a corresponding threshold, determining a target network from the spatial environment where the electronic device is currently located;

[0016] In the case where the electronic device supports multi-network access, controlling the electronic device to establish a connection with the target network;

[0017] or,

[0018] In the case that the electronic device does not support multi-network access, the electronic device is controlled to disconnect from the first network and establish a connection with the target network to obtain target network parameters of the target network, and the electronic device is controlled to connect to the target network or the first network based on a comparison result between the target network parameters and corresponding network parameters of the first network.

[0019] In some embodiments, when the change amount of the network parameter is greater than the corresponding threshold, controlling the electronic device to establish a connection with the target network in the space environment includes:

[0020] When the change amount of at least one network parameter of the first network is greater than a corresponding threshold, determining a target network from the spatial environment where the electronic device is currently located;

[0021] Controlling the electronic device to disconnect from the first network and establish a connection with the target network to obtain a target network parameter of the target network;

[0022] When the target network parameter is better than the corresponding network parameter of the first network, controlling the electronic device to remain connected to the target network; and / or,

[0023] In a case where the target network parameters are not better than the corresponding network parameters of the first network, the electronic device is controlled to disconnect from the target network and reconnect to the first network.

[0024] In some embodiments, when the target network includes a third network and a fourth network, at least one of the following is further included:

[0025] When the target network parameters of the third network and the fourth network are better than the corresponding network parameters of the first network, controlling the electronic device to remain connected to the third network, and / or controlling the electronic device to remain connected to the fourth network;

[0026] When the target network parameters of the third network are better than the corresponding network parameters of the first network, and the target network parameters of the fourth network are not better than the corresponding network parameters of the first network, controlling the electronic device to remain connected to the third network, and controlling the electronic device to disconnect from the fourth network;

[0027] When the target network parameters of the third network are better than the corresponding network parameters of the first network, and the target network parameters of the fourth network are not better than the corresponding network parameters of the first network, the electronic device is controlled to remain connected to the third network, the electronic device is controlled to disconnect from the fourth network, and the electronic device is controlled to reconnect to the first network.

[0028] In some embodiments, determining the target network from within the spatial environment in which the electronic device is currently located includes at least one of the following:

[0029] Determine the network with the largest signal strength in the spatial environment as the target network;

[0030] Determining a network newly discovered by the electronic device in the space environment as the target network;

[0031] Determine a fifth network in the spatial environment that has a target association relationship with the first network as the target network;

[0032] Determine a network in the spatial environment that matches the configuration operation of the target user as the target network;

[0033] Determine a network in the space environment that matches the operating state of the electronic device as the target network;

[0034] A network in the spatial environment that matches the usage information of the electronic device is determined as the target network.

[0035] In some embodiments, when the change amount of the network parameter is greater than the corresponding threshold, controlling the electronic device to establish a connection with the target network in the space environment includes:

[0036] When a change in at least one network parameter of the first network is greater than a corresponding threshold, sequentially acquiring delay parameters and / or packet loss rates of networks in a target sequence, wherein the target sequence is a sequence obtained by sorting the networks in the spatial environment based on signal strength;

[0037] comparing delay parameters and / or packet loss rates of the first network and networks in the target sequence;

[0038] If the delay parameter and / or packet loss rate of the sixth network in the target sequence is smaller than that of the first network, the sixth network is determined as the target network, and the electronic device is controlled to remain connected to the sixth network; and / or,

[0039] If the delay parameter and / or the packet loss rate of the network in the target sequence are both greater than those of the first network, the electronic device is controlled to re-establish a connection with the first network.

[0040] In some embodiments, the method further includes at least one of the following: after controlling the electronic device to establish a connection with the target network, controlling an operating parameter of the first network;

[0041] monitoring relative position change data between the electronic device and a first network provider, and adjusting at least one of a transmission power, a radiation frequency, and a signal frequency band of the first network provider based on the relative position change data, wherein the first network provider is a device that provides the first network;

[0042] Monitor the relative position change data between the electronic device and the first network provider, and adjust the working parameters of the first communication module of the electronic device based on the relative position change data. The first communication module is different from the second communication module of the electronic device used to send and receive the first network.

[0043] The embodiment of the present application further provides an electronic device, comprising a body and a wireless communication module disposed on the body, wherein the wireless communication module is capable of monitoring network parameters of a first network to which the electronic device is currently connected;

[0044] and, when the change in the network parameter is greater than a corresponding threshold, establishing a connection with a target network in the spatial environment where the electronic device is located;

[0045] Among them, at least one network parameter of the target network is better than that of the first network, and the first network can be discovered by the wireless communication module in the space environment.

[0046] In some embodiments, the body includes a first body and a second body that are rotatably connected, the wireless communication module is disposed on the second body, and the relative rotation of the first body and the second body enables the electronic device to have different device forms;

[0047] When the change in at least one network parameter of the first network is greater than the corresponding threshold, the controller of the electronic device can determine the target network from the spatial environment in which the electronic device is currently located based on the device form, so as to control the wireless communication module to establish a connection with the target network. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0049] Figure 1 A flow chart of the control method for this application;

[0050] Figure 2 For this application Figure 1 A flowchart of an embodiment of step S20;

[0051] Figure 3 For this application Figure 1 A flowchart of another embodiment of step S20;

[0052] Figure 4 For this application Figure 3 A flowchart of an embodiment of step S206;

[0053] Figure 5 For this application Figure 1 A flowchart of another embodiment of step S20;

[0054] Figure 6 This is a structural block diagram of the electronic device for this application;

[0055] Figure 7 This is the structural diagram of the main body of this application;

[0056] Figure 8 This is a structural block diagram of the control device of this application. DETAILED DESCRIPTION

[0057] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0058] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0059] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0060] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0061] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.

[0062] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0063] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0064] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0065] To solve the problems in the background technology, the present application provides a control method, which can be applied to electronic devices. The electronic devices may include but are not limited to laptops, desktop computers, tablet computers, smart phones, game consoles, wearable devices, smart home devices, etc.

[0066] Combination Figure 1 , the control method comprises:

[0067] S10, monitoring network parameters of a first network to which the electronic device is currently connected.

[0068] For example, the network parameters of the first network to which the electronic device is currently connected may change as the position of the electronic device changes. Alternatively, when the position of the electronic device does not change, the network environment in the space where the electronic device is located changes, thereby causing the network parameters of the first network to change. That is, the network parameters of the first network to which the electronic device is currently connected may change in real time. Changes in the network parameters of the first network may affect the performance of the first network.

[0069] For example, if the network parameters of the first network change significantly, the first network may not be able to provide network function support for the electronic device, resulting in the electronic device being unable to use the first network to implement the corresponding function. For example, before the network parameters of the first network change significantly, the electronic device can smoothly refresh the web page through the first network and send and obtain information. After the network parameters of the first network change significantly, the electronic device cannot perform any network access through the first network.

[0070] For another example, when the network parameters of the first network change slightly, the first network can still provide network function support for the electronic device, but the network performance provided by the first network to the electronic device decreases, affecting the electronic device's demand for the network. For example, before the network parameters of the first network change, the time required for the electronic device to refresh a web page is 0.5 seconds, and after the parameters of the first network change, the time required for the electronic device to refresh the web page is 2 seconds.

[0071] Of course, the change in the network parameters of the first network may also have other effects on the electronic device, and the degree of the effects on the electronic device may also be different. This is only used as an example and does not constitute a limitation on the protection scope of the claims.

[0072] Therefore, in order to ensure that the electronic device has a good network environment and can realize some of its functions through the network, such as accessing web pages, receiving and sending data, etc., the network parameters of the first network to which the electronic device is currently connected can be monitored. The first network can be provided by a first network provider (wireless access point (AP) or hotspot device), which is specifically determined according to the type of the first network. For example, if the first network is a wireless network, the first network can be provided by an AP device; and if the first network is a cellular network, the first network can be provided by a base station device. The network parameters of the first network may include reference signal received power (RSRP), delay time (delaytime), packet loss rate (lost package%), etc.

[0073] S20, when the change in the network parameter is greater than the corresponding threshold, controlling the electronic device to establish a connection with the target network in the spatial environment.

[0074] Among them, at least one network parameter of the target network is better than that of the first network, and the first network can be discovered by the electronic device in the space environment.

[0075] Exemplarily, a corresponding threshold value of the network parameter change amount can be set, and the threshold value can be stored in advance on the electronic device, or it can be set and changed as needed. By comparing the monitored network parameters of the first network with the corresponding threshold value, if the change amount of the network parameter is greater than the corresponding threshold value, it means that the performance of the first network may be affected. At this time, you can consider looking for other networks. If there are other networks with better network performance than the first network in the spatial environment where the electronic device is located, you can consider connecting the electronic device to the other network to ensure the network performance of the network to which the electronic device is connected.

[0076] It should be noted here that the change in network parameters is greater than the corresponding threshold value, which can be understood as the network performance of the first network represented by the network parameters of the first network has dropped to a certain extent. If the change in the network parameters of the first network becomes better than the network performance represented by the current network parameters, there is no need to control the electronic device to establish a connection with other networks.

[0077] Before the electronic device establishes a connection with other networks in the space environment, the network parameters of the other networks can be obtained first. If at least one network parameter of the other networks is better than that of the first network, the other networks can be determined as target networks, and the target networks can be one or more than two. Of course, it is understandable that if two or more network parameters of one or more networks in the other networks are better than those of the first network, such networks can be preferentially determined as target networks, and the electronic device can be controlled to establish a connection with the determined target network.

[0078] For example, when the change in the network parameter of the first network is greater than the corresponding threshold, other networks are searched in the space environment where the electronic device is located. If it is found that the signal strength of two other networks (for example, network A and network B) different from the first network is greater than the signal strength of the first network, or the packet loss rate is less than the packet loss rate of the first network, then both network A and network B can be determined as target networks, and the electronic device is controlled to establish a connection with network A and / or network B. If, based on the above conditions, the delay parameter of network A is less than the delay parameter of the first network, and the delay parameter of network B is not less than the delay parameter of the first network, or the delay parameter of network B is less than the delay parameter of the first network but greater than the delay parameter of network A, network A can also be determined as the target network first, and the electronic device is controlled to establish a connection with network A first. Of course, when all network parameters of network A are better than those of the first network and network B, there is more reason to determine network A as the target network and control the electronic device to establish a connection with network A first. This allows the electronic device to establish a connection with a network with better performance within its spatial environment even if the electronic device moves or the network performance of the first network it is currently connected to changes, ensuring that the connected network can meet the electronic device's requirements for network performance.

[0079] Determination of the target network is a real-time process, that is, when the electronic device establishes a connection with the target network, at least one network parameter of the target network is better than the network parameters of the first network, and the network parameters of the target network and the network parameters of the first network are compared in real time to ensure that the electronic device can establish a connection with the network corresponding to the current optimal network parameters.

[0080] Of course, it is understandable that there may be only one or more than three other networks in the spatial environment where the electronic device is located, and the network parameters may not be the packet loss rate, but other network parameters such as the reference signal receiving power. This is only used as an example and does not constitute a limitation on the scope of protection of the claims.

[0081] When the electronic device establishes a connection with the target network, the electronic device may disconnect from the first network or may not disconnect from the first network, which is specifically determined according to the network access configuration of the electronic device. For example, when the electronic device supports dual network access, it is not necessary to disconnect the electronic device from the first network, and the first network and the target network may be connected at the same time. The target network is provided by a router, AP or hotspot device in the spatial environment, which is specifically determined according to the type of the target network. For example, if the target network is a wireless network, the target network may be provided by an AP device or a hotspot device in the spatial environment; and if the target network is a cellular network, the target network may be provided by a base station device in the spatial environment.

[0082] What the present application wants to emphasize is that, when the change in the network parameters of the first network is greater than the corresponding threshold, the first network can still be discovered by the electronic device, that is, the present application is that when the electronic device discovers a target network with better network parameters than the first network, it actively establishes a connection with the target network with better network parameters in the spatial environment, rather than triggering the connection between the electronic device and the target network because the signal strength of the first network is reduced to the point where the disconnection condition is reached.

[0083] In some embodiments, monitoring the network parameters of the first network to which the electronic device is currently connected includes at least one of the following:

[0084] In a first case, in response to the electronic device moving from a current first location to a second location different from the first location, the network parameters of the first network are detected.

[0085] Exemplarily, after detecting that the position of the electronic device has moved, the network parameters of the first network after the movement are detected. For example, there are two different APs (such as AP1 and AP2) in the living room and bedroom of the home. In the case of APs with different service set identifiers, the driver of the corresponding AP will not set the optimization management between different APs, and can only identify whether the strength of the AP connected to the electronic device reaches the disconnection condition. In an environment with two or more APs, and the distance between the APs is not too far, there can be an overlapping coverage area. In the case where the smart device moves from the network environment of the first network provided by AP1 to another network environment provided by AP2, the network signal and performance of AP2 may be significantly weaker than AP1. However, the conditions for the electronic device to disconnect AP1 have not been met, so the electronic device maintains the connection relationship with the first network and will not establish a connection with other networks provided by AP2. Or the signal strength of AP1 is displayed very well, but the Internet access rate of the electronic device is obviously very slow, and the electronic device will not automatically disconnect from the first network and establish a connection with other networks provided by another AP with better performance.

[0086] In the embodiment of the present application, the electronic device is a game console (switch) as an example. When the user carries the game console from the living room (first position) to the bedroom (second position), the spatial environment where the game console is located changes, and the first network may not be able to cover the spatial environment where the bedroom is located, or the first network can partially or completely cover the spatial environment where the bedroom is located, but the network performance of the first network in the bedroom may be different from the network performance of the first network in the living room. For example, the game console can still maintain a connection with the first network in the bedroom, but the rate of sending and / or obtaining game interface data is significantly reduced. It is necessary to detect the network parameters of the first network to compare the detected network parameters of the first network with the network parameters of other networks (which may be one or more than two) in the bedroom where the electronic device is located, and determine which of the current network parameters of the first network have changed. Which one or several network parameters of the network in the bedroom may be better than the corresponding parameters of the first network, so as to serve as a basis for judging whether the game console establishes a connection with the network in the bedroom.

[0087] In a second case, in response to the electronic device discovering a second network at a current first location, the network parameters of the first network are detected, and at least one network parameter of the second network is better than that of the first network.

[0088] Exemplarily, the first position of the electronic device has not changed, and a second network is found at the first position where the electronic device is currently located. The network parameters of the first network and the second network can be detected, wherein at least one network parameter of the second network is better than that of the first network, such as the signal strength of the second network is better than that of the first network.

[0089] For example, taking the electronic device as a smart phone, the first location is the study, and the first network is the wireless network. The smart phone is currently connected to the wireless network in the study, and when other people such as family members or friends enter or approach the study, the smart phone finds a second network in the study, and the second network is the mobile hotspot network of other people such as family members or friends. At this time, the network parameters of the wireless network in the study can be detected, and the network parameters of the mobile hotspot network can also be detected. The delay parameter in the network parameters of the mobile hotspot network is smaller than the delay parameter of the wireless network. The mobile hotspot network can provide a better network environment for electronic devices than the wireless network. Therefore, the electronic device can establish a connection with the mobile hotspot network.

[0090] In a third case, network parameters of a first network to which the electronic device is currently connected are monitored according to a first interval duration.

[0091] Exemplarily, regardless of whether the location of the electronic device changes or whether a second network is found in the environment where the electronic device is located, the network parameters of the first network to which the electronic device is currently connected are monitored at certain time intervals. For example, the network parameters of the first network to which the electronic device is currently connected may be monitored according to a first interval duration. The first interval duration may be very small, and the specific size may be set as needed. The purpose of setting the first interval duration very small is to achieve real-time monitoring of the network parameters of the first network to which the electronic device is currently connected, so as to be able to obtain the network performance of the first network in a timely manner.

[0092] In a fourth situation, in response to a change in usage information of the electronic device, the network parameters of the first network are detected.

[0093] Exemplarily, changes in usage information of an electronic device include, but are not limited to, changes in user information and changes in usage status information.

[0094] The user information changes. For example, the user of the electronic device changes from user A to user B. User A and user B may have different requirements for network performance, so it is possible to detect whether the first network to which the electronic device is currently connected meets the requirements of user B. For example, user A is a child and user B is an adult (such as a parent). The child may have lower requirements for network performance, while the adult may have higher requirements for network performance. Therefore, after the adult obtains the right to use the electronic device from the child, the user information changes, and the changed user has higher requirements for network performance. Therefore, it is possible to detect whether the first network to which the electronic device is currently connected meets the requirements of the adult.

[0095] The usage status information changes. For example, the electronic device switches from a notebook form to a tablet form or a book form. Different forms may affect the reception and transmission of the WiFi antenna, or different forms may have different usage requirements, so it is possible to detect whether the current first network meets the current usage requirements. When an electronic device switches from one form to another, its physical structure (such as the relative position of the display and keyboard, the overall thickness and shape of the device, etc.) may change. These changes in physical structure may affect the position, orientation and surrounding environment of the WiFi antenna, thereby affecting the reception and transmission performance of the WiFi signal. For example, in tablet form, the device may be thinner and the antenna may be closer to the user's hand or other objects, which may cause signal interference or weakening.

[0096] The notebook form is more suitable for word processing, programming or tasks that require keyboard input. The tablet form is more suitable for touch operation, drawing, handwriting input or viewing media content. The book form may be more suitable for presentations, watching videos or video conferencing. Therefore, electronic devices have different requirements for network performance in different forms. You can check whether the current first network meets the current usage requirements.

[0097] In a fifth situation, in response to a change in the operating state of the electronic device, the network parameters of the first network are detected.

[0098] For example, the electronic device can run multiple applications, such as audio and video playback, games, video conferencing, social media, etc. When the user switches from one application to another, the running state and requirements of the electronic device may change, and it is necessary to detect whether the current first network meets the current requirements.

[0099] The change in the operating state of the electronic device includes, but is not limited to, a change in the running application of the electronic device and a change in the running mode.

[0100] The running application changes, for example, switching from audio and video to a game application or a video conferencing application. Audio and video playback applications usually have relatively low requirements for network bandwidth and latency, because video and audio data can be streamed at a lower rate. Game applications, especially online multiplayer games, usually have higher requirements for network bandwidth, latency, and stability to ensure a smooth gaming experience. Video conferencing applications also require a stable network connection and low latency to ensure clear video calls and audio quality. Therefore, when the running application of an electronic device changes, it is necessary to detect whether the current first network meets the current needs.

[0101] The operating mode changes, such as switching from normal mode to performance mode or network mode. Normal mode may be suitable for daily tasks, such as browsing the web, sending emails, etc., while performance mode may be designed for tasks that require higher processing power and faster response speeds, such as gaming, video editing, etc. The network mode may be a setting that focuses on optimizing the performance of the network connection, for example, by increasing the priority of the network connection or enabling specific network functions to ensure the stability and speed of data transmission. When an electronic device switches from normal mode to performance mode, the device may require more bandwidth and lower latency to support higher-performance applications and tasks. Switching to network mode may mean that the electronic device needs a more stable and faster network connection to support data-intensive tasks, such as high-definition video streaming, large file downloads, or real-time communications. Therefore, after the operating mode of the electronic device changes, it is necessary to evaluate whether the currently connected first network can meet the needs of the new operating mode.

[0102] In some embodiments, in combination Figure 2 , wherein, when the change amount of the network parameter is greater than the corresponding threshold value, controlling the electronic device to establish a connection with the target network in the space environment includes:

[0103] S201: When a change in at least one network parameter of the first network is greater than a corresponding threshold, determine a target network from a spatial environment in which the electronic device is currently located.

[0104] Exemplarily, according to the comparison result of the detected network parameters of the first network and the corresponding threshold, when the change amount of at least one network parameter of the first network exceeds the threshold corresponding to the network parameter, it indicates that the performance of the first network to which the electronic device is currently connected may have declined, and the network environment provided by the first network for the electronic device may not meet the network usage requirements of the electronic device, and it is necessary to determine another network as the target network from the spatial environment in which the electronic device is currently located. The determined target network can be one, or two or more. The number of target networks can be determined based on the network access configuration of the electronic device.

[0105] For example, the electronic device only supports one AP access and can only determine one target network. Again in combination with the above-mentioned embodiment in which the user carries a game console from the living room (first position) to the bedroom (second position), when the change in RSRP (Reference Signal Received Power) of AP1 is greater than the corresponding threshold, for example, RSRP changes from -45 to -70, but the disconnection condition has not been reached, the electronic device can be controlled to obtain the RSRP value of AP2. If the RSRP value of AP2 is greater than the RSRP value of the first network, the network provided by AP2 in the bedroom can be determined as the target network. Of course, it is understandable that the range of RSRP changes can also be other ranges, such as a change greater than 15dbm, to prevent frequent switching and troubles caused to the electronic device. The change in RSRP is not limited to a change from -45 to -70. This is only used as an example and does not constitute a limitation on the scope of protection of the claims.

[0106] For example, wifi7 can support multiple AP accesses at the same time. If the electronic device supports wifi7, you can consider determining two or more target networks and simultaneously accessing two APs corresponding to the two target networks or multiple APs corresponding to multiple target networks.

[0107] S202: When the electronic device supports multiple network accesses, control the electronic device to establish a connection with the target network.

[0108] Exemplarily, when the electronic device supports multiple network access, the electronic device is controlled to establish a connection with the target network. In all the following embodiments, the "multiple networks" in which the electronic device supports multiple network access include two networks and more than three networks.

[0109] For example, as one of the embodiments, the electronic device supports simultaneous connection to two APs. In one of the company's offices, three APs can be provided for the electronic device at the same time. AP1 provides the electronic device with a first network, AP2 provides the electronic device with a first target network, and AP3 provides the electronic device with a second target network. The electronic device can directly establish a connection with AP1 and AP2, so that the electronic device is connected to AP1 and AP2 at the same time, thereby enabling the electronic device to have network support for the first target network and network support for the second target network.

[0110] For another example, as another embodiment, the electronic device supports simultaneous connection to two APs, AP1 provides a first network for the electronic device, and AP2 provides a target network for the electronic device. The electronic device can directly establish a connection with AP2, so that the electronic device is connected to AP1 and AP2 at the same time, thereby enabling the electronic device to have network support for the first network and network support for the target network.

[0111] Of course, it is understandable that when the electronic device supports simultaneous connection to more than three APs, the electronic device can also simultaneously connect to more than three APs, so that the electronic device can obtain network support for more networks. This is only taken as an example and does not constitute a limitation on the protection scope of the claims.

[0112] or,

[0113] In the case that the electronic device does not support multi-network access, the electronic device is controlled to disconnect from the first network and establish a connection with the target network to obtain target network parameters of the target network, and the electronic device is controlled to connect to the target network or the first network based on a comparison result between the target network parameters and corresponding network parameters of the first network.

[0114] Exemplarily, when the electronic device does not support multi-network access, the electronic device can only establish a connection with one network, and can first disconnect the connection with the first network and establish a connection with the target network to obtain the target network parameters of the target network.

[0115] For example, the electronic device is disconnected from AP1 providing the first network, and is temporarily connected to AP2 providing the target network to obtain the delay parameter and / or packet loss rate of AP2, and based on the comparison result of the two, it is selected whether the electronic device is connected to AP1 or AP2. That is, after obtaining the target network parameters of the target network, the target network parameters can be compared with the network parameters of the first network. Here, the target network parameters can be multiple (delay parameters, packet loss rate, etc.), and the network parameters of the first network can also be multiple (delay parameters, packet loss rate, etc.). The delay parameters and packet loss rate of the target network parameters can be compared with the delay parameters and packet loss rate in the network parameters of the first network at the same time to obtain the corresponding comparison results. Alternatively, the delay parameters and packet loss rate in the target network parameters are compared with the delay parameters and packet loss rate in the network parameters of the first network respectively.

[0116] In the case where a corresponding network parameter that is better than the first network appears in the delay parameter / or packet loss rate of the target network parameter, it is no longer necessary to compare with other network parameters, that is, control the electronic device to connect to the target network so that the electronic device and the target network remain in a connected state. That is, in order to obtain a better network environment, the electronic device can first disconnect from the first network and temporarily establish a connection with the target network. In the case where at least one of the target network parameters of the target network is better than the network parameters of the first network, the connection relationship between the electronic device and the target network is maintained; in the case where all the target network parameters of the target network are not better than the network parameters of the first network, the electronic device is controlled to re-establish the connection with the first network and maintain the connection state with the first network.

[0117] Again in combination with the above-mentioned embodiment in which the user carries the game console from the living room (first position) to the bedroom (second position), after determining that AP2 in the bedroom is the target network, the electronic device is controlled to disconnect from AP1 in the living room and establish a connection with AP2 in the bedroom. At this time, the delay parameter and packet loss rate of AP2 can be obtained again, and the delay parameter and packet loss rate of AP2 obtained can be compared with the delay parameter and packet loss rate of the first network to ensure that the AP2 after the connection is established is a better connection than AP1. On the contrary, the next target network determination can be triggered, or the electronic device can be switched to reconnect AP1. It should be noted that the delay parameter and packet loss rate of the first network can be saved when establishing a connection with AP2, so as to facilitate comparison after obtaining the delay parameter and packet loss rate of AP2. The user does not need to manually trigger the disconnection of the first network and the connection of the target network to automatically determine the target network in the spatial environment where the electronic device is located and establish a connection with the target network.

[0118] In some embodiments, in combination Figure 3 , wherein, when the change amount of the network parameter is greater than the corresponding threshold value, controlling the electronic device to establish a connection with the target network in the space environment includes:

[0119] S201: When a change in at least one network parameter of the first network is greater than a corresponding threshold, determine a target network from a spatial environment in which the electronic device is currently located.

[0120] Exemplarily, according to the comparison result of the detected network parameters of the first network and the corresponding threshold, when the change amount of at least one network parameter of the first network exceeds the threshold corresponding to the network parameter, it indicates that the performance of the first network to which the electronic device is currently connected may have declined, and the network environment provided by the first network for the electronic device may not meet the network usage requirements of the electronic device, and it is necessary to determine another network as the target network from the spatial environment in which the electronic device is currently located. The determined target network can be one, or two or more. The number of target networks can be determined based on the network access configuration of the electronic device.

[0121] For example, wifi7 can support multiple AP accesses at the same time. If the electronic device supports wifi7, you can consider determining two or more target networks and simultaneously accessing two APs corresponding to the two target networks or multiple APs corresponding to multiple target networks.

[0122] S203: Control the electronic device to disconnect from the first network and establish a connection with the target network to obtain target network parameters of the target network.

[0123] Exemplarily, for example, the electronic device only supports access to one AP, so it is necessary to first control the connection between the electronic device and the first network so that the electronic device can establish a connection with a network provided by other APs, such as a target network. Otherwise, the target network cannot establish a connection with the electronic device. When the connection between the electronic device and the target network is established, the target network parameters of the target network can be obtained. Here, the target network can be one or more than two.

[0124] In the case of finding two APs with better signal strength than the first network, you can consider disconnecting AP1 that provides the first network first, and then obtain the network parameters of the two networks that provide better signal strength, and then compare them with the network parameters of the first network, and then select the network with better network parameters as the target network. For example, after scanning and finding two APs with better signal strength, you can disconnect AP1 that provides the first network, and then obtain the network parameters such as delay parameters and packet loss rate of AP2 that provides the first target network and the network parameters such as delay parameters and packet loss rate of AP3 that provides the second target network, and then compare the first target network parameters of the first target network, the second target network parameters of the second target network, and the network parameters of the first network to select the AP corresponding to the better network parameters. The network parameters can be delay parameters and / or packet loss rate.

[0125] S204: When the target network parameters are better than the corresponding network parameters of the first network, control the electronic device to remain connected to the target network.

[0126] Exemplarily, in combination with the embodiment of step S205, for example, when the packet loss rate of the first target network is less than the packet loss rate of the first network, the electronic device can be controlled to connect to AP2 providing the first target network and maintain the connection relationship with AP2. Or when the packet loss rate of the second target network is less than the packet loss rate of the first network, the electronic device can be controlled to connect to AP3 providing the second target network and maintain the connection relationship with AP3. Alternatively, when the packet loss rate or delay of AP2 and AP3 is better than that of the first network, AP2 and AP3 can be selected as the target network, and the network connection state with AP1 and AP2 can be maintained.

[0127] Alternatively, when the packet loss rate of the first target network is lower than that of the first network, the packet loss rate of the first target network can be compared with the packet loss rate of the second target network. When the packet loss rate of the second target network is lower than that of the first target network, the electronic device can be controlled to connect to AP3 providing the second target network and maintain the connection with AP3.

[0128] Of course, other network parameters such as the delay time of the first target network, the second target network and the first network may also be compared to control the electronic device to maintain a connection with the target network according to the comparison result of the delay parameters.

[0129] and / or,

[0130] In a case where the target network parameters are not better than the corresponding network parameters of the first network, the electronic device is controlled to disconnect from the target network and reconnect to the first network.

[0131] Exemplarily, continuing with the embodiment of step S205, when all network parameters of the first target network and all network parameters of the second target network are not better than the corresponding network parameters of the first network, the electronic device can be controlled to disconnect from the target network, and the electronic device can be controlled to re-establish the connection with AP1 providing the first network, and maintain the connection with AP1.

[0132] In some embodiments, in combination Figure 4 , wherein, when the target network includes a third network and a fourth network, at least one of the following is further included:

[0133] S2041: When the target network parameters of the third network and the fourth network are better than the corresponding network parameters of the first network, control the electronic device to remain connected to the third network, and / or control the electronic device to remain connected to the fourth network.

[0134] Exemplarily, when at least one target network parameter of the third network is better than the corresponding network parameter of the first network to which the electronic device is currently connected, and at least one target network parameter of the fourth network is better than the corresponding network parameter of the first network to which the electronic device is currently connected, one of the third network and the fourth network can be selected to remain in a connected state, or the connection state with the third network and the fourth network can be maintained. For example, when the electronic device supports connection with only one AP, one of the third network and the fourth network can be selected to remain in a connected state, and the one with better network parameters among the third network and the fourth network can be preferentially selected to remain in a connected state. When the electronic device supports multi-network access, the electronic device can choose to remain in a connected state with the third network and the fourth network. Among them, the target network parameters can be delay parameters and / or packet loss rate, etc.

[0135] S2042, when the target network parameters of the third network are better than the corresponding network parameters of the first network, and the target network parameters of the fourth network are not better than the corresponding network parameters of the first network, control the electronic device to remain connected to the third network, and control the electronic device to disconnect from the fourth network.

[0136] Exemplarily, when at least one target network parameter of the third network is better than the corresponding network parameter of the first network, and the target network parameter of the fourth network is not better than the corresponding network parameter of the first network, the third network can provide the electronic device with network performance that is better than the first network and the fourth network, so the connection state of the electronic device and the third network can be maintained. At the same time, when the electronic device supports connection with only one AP, the electronic device can be controlled to disconnect from the fourth network.

[0137] S2043, when the target network parameters of the third network are better than the corresponding network parameters of the first network, and the target network parameters of the fourth network are not better than the corresponding network parameters of the first network, control the electronic device to remain connected to the third network, control the electronic device to disconnect from the fourth network, and control the electronic device to reconnect to the first network.

[0138] Exemplarily, when at least one target network parameter of the third network is better than the corresponding network parameter of the first network, and the target network parameter of the fourth network is not better than the corresponding network parameter of the first network, the third network can provide the electronic device with network performance that is better than the first network and the fourth network, so the connection between the electronic device and the third network can be maintained. At the same time, when the electronic device supports multi-network access, it is also possible to control the electronic device to disconnect from the fourth network, re-establish the connection between the electronic device and the first network, and maintain the connection relationship between the electronic device and the first network.

[0139] In some embodiments, determining the target network from the spatial environment in which the electronic device is currently located includes at least one of the following six situations:

[0140] In the first case, the network with the largest signal strength in the spatial environment is determined as the target network.

[0141] For example, the signal strength of the network is an important indicator for evaluating network connection quality, data transmission rate, connection stability, coverage, communication quality, etc. In order for the electronic device to obtain the best network performance, the network environment with the strongest signal strength in the space environment where the electronic device is located is preferentially selected, that is, the network with the strongest signal strength is preferentially selected as the target network.

[0142] In a second case, a network newly discovered by the electronic device in the space environment is determined as the target network.

[0143] For example, a newly discovered network in the spatial environment where the electronic device is located may be a network newly added by the user or a network with a sudden increase in network performance represented by signal strength or other network parameters. Such a network may provide a better network environment for the electronic device. Therefore, the newly discovered network may be preferably determined as the target network.

[0144] For example, the user already knows that the network performance of the first network in the space environment where the current electronic device is located is poor, and updates the network to add a network with better network performance to the space environment. Therefore, the newly added network can be used as the target network.

[0145] In a third case, a fifth network in the spatial environment that has a target association relationship with the first network is determined as the target network.

[0146] Exemplarily, for example, the target association relationship with the first network includes but is not limited to: having a service set identifier of the same series, such as lenvo1, lenvo2...; or belonging to the same manufacturer's AP, such as tp-link or Lenovo; or having similar naming rules, such as kt1, kt2... Of course, it is understandable that the fifth network can also have other association relationships with the first network, which are not listed here one by one. This is only used as an example and does not constitute a limitation on the scope of protection of the claims. The fifth network can include one or more than two, and the specific number can be determined according to the configuration of the number of network accesses by the electronic device. The specific details have been discussed in the above embodiments and will not be repeated here.

[0147] In a fourth case, a network in the spatial environment that matches the configuration operation of the target user is determined as the target network.

[0148] Exemplarily, the user manually selects or the user configures the network requirements of the electronic device, and the electronic device can search for a network that matches its network requirements based on the network requirements configured by the user. For example, the user needs a network with a small packet loss rate or a network with a small delay parameter. When the user needs a network with a small packet loss rate, and two APs (AP4 and AP5) are found in the space environment where the electronic device is located, where the delay parameter of AP5 is smaller than the delay of AP4, but the packet loss rate of AP4 is smaller than the packet loss rate of AP5, the network provided by AP4 is determined as the target network to meet the user's demand for a small packet loss rate.

[0149] In a fifth case, a network in the space environment that matches the operating state of the electronic device is determined as the target network.

[0150] Exemplarily, the running state may include, but is not limited to, different running applications and running modes. The electronic device may run multiple applications and have multiple running modes. A network matching the current running application or running mode of the electronic device is selected as the target network.

[0151] For example, different running applications or running modes have different requirements for network parameters, so the corresponding network can be selected as the target network for connection. For example, the application currently running on the electronic device is a massively multiplayer online game, which has high requirements for network performance, so a network that meets the network performance required by the electronic device to run the game application can be selected as the target network.

[0152] In a sixth case, a network in the spatial environment that matches the usage information of the electronic device is determined as the target network.

[0153] Exemplarily, usage information includes, but is not limited to, user profile information and device usage patterns for the user.

[0154] The network that matches the user profile information of the current user of the electronic device can be determined as the target network, for example, the network that the current user frequently uses; the network that the user frequently uses can, to a certain extent, represent the user's preference for network use and the understanding of the network performance of the frequently used network. The frequently used network may be able to meet the user's demand for network performance in the case of network switching. Therefore, the network that the current user frequently uses can be used as the target network.

[0155] The network that matches the use form of the electronic device can also be determined as the target network. For example, in different device forms, different networks can be used to enable the electronic device to have the best network connection experience, for example, wifi can be used when the electronic device is in the open and closed state, and mobile networks can be used in the closed state, etc. The function of electronic devices to select network connections in different device states is an important manifestation of the intelligence and convenience of electronic devices. For some electronic devices (such as laptops, two-in-one tablets, etc.), they have an open or foldable design. When the electronic device is in the open and closed state, it usually means that the user is using the screen and keyboard of the electronic device for work or entertainment. When the electronic device is in the open and closed state, the system can intelligently choose to use a wifi network for connection. Wifi networks usually provide faster download and upload speeds, as well as more stable connections, which are very useful for online work, entertainment, and downloading large files. When the device is in the closed state, it may mean that the user is on the move or does not need to use the device's screen and keyboard temporarily. At this time, the device can automatically switch to a mobile network (such as 4G / 5G) for connection. The mobile network is used as a backup, that is, the mobile network provides a wider coverage, and users can still stay online even without a wifi network. This is very important for users who need to stay connected or handle urgent matters at all times.

[0156] In some embodiments, in combination Figure 5 , when the change amount of the network parameter is greater than the corresponding threshold value, controlling the electronic device to establish a connection with the target network in the space environment, including:

[0157] S205, when the change in at least one network parameter of the first network is greater than the corresponding threshold, sequentially obtain the delay parameters and / or packet loss rates of the networks in the target sequence, wherein the target sequence is a sequence obtained by sorting the networks in the spatial environment based on signal strength.

[0158] Exemplarily, when the change amount of at least one network parameter of the first network is greater than the corresponding threshold value, a connection is established between the electronic device and a network in the target sequence, and the network parameters of the network to which the connection is established are obtained, and the network parameters may be delay parameters and / or packet loss rate. If the network parameters of the network obtained from the target sequence are not better than the network parameters corresponding to the first network, the connection with the connected network in the target sequence is disconnected. Continue to establish a connection with the next network in the target sequence, and obtain the network parameters of the next network.

[0159] Among them, the target sequence is a sequence obtained by sorting the various networks in the space environment where the electronic device is located based on signal strength, and the signal strength of the network in the target sequence is better than the first network. For example, based on signal strength, the various networks in the space environment where the electronic device is located are arranged in order of decreasing signal strength, with the network with the strongest signal strength at the front. When the delay parameters and / or packet loss rates of the networks in the target sequence are obtained in sequence, they can be obtained starting from the network with the strongest signal strength, so that the electronic device can find at least one network parameter better than the first network from the target sequence more quickly.

[0160] S206: Compare the delay parameters and / or packet loss rates of the first network and the networks in the target sequence.

[0161] Exemplarily, after obtaining the network parameters of a certain network in the target sequence, the obtained network parameters are compared with the network parameters corresponding to the first network. For example, there are 5 networks in the target sequence arranged in order of signal strength, and the delay parameters of the network with the strongest signal strength in the target sequence are compared with the delay parameters of the first network. When the delay parameter of the network with the strongest signal strength in the target sequence is greater than the delay parameter of the first network, the packet loss rate of the network with the strongest signal strength in the target sequence is compared with the packet loss rate of the first network. When the packet loss rate of the network with the strongest signal strength in the target sequence is greater than the packet loss rate of the first network, the delay parameter and / or packet loss rate of the network with the second highest signal strength in the target sequence is compared with the delay parameter and / or packet loss rate of the first network, and the process is carried out downward in sequence until at least one network with better network parameters than the first network is found in the target sequence.

[0162] Of course, it is understandable that one of the delay parameters and / or packet loss rate of the network can be better than the first network, or both can be better than the first network. For example, when the electronic device switches the operating mode, the switched operating mode has higher requirements for the delay parameter and the packet loss rate, then a network whose delay parameter and packet loss rate are better than the first network can be selected from the target sequence to maintain a connection relationship. If only one of the delay parameter and packet loss rate of a network in the target sequence meets the requirement of being better than the first network, the electronic device can be disconnected from it first, and the next network can be searched from the target sequence until a network whose delay parameter and packet loss rate are better than the first network is found in the target sequence, and the electronic device is controlled to maintain a connection relationship with the network.

[0163] S207: If the delay parameter and / or packet loss rate of the sixth network in the target sequence is smaller than that of the first network, determine the sixth network as the target network, and control the electronic device to maintain a connection with the sixth network.

[0164] Exemplarily, when obtaining network parameters in the target sequence, a connection is first established with a network in the target sequence, and the corresponding network parameters are compared. If the network parameters of the connected network are not better than the first network, it is disconnected and the next connection is continued. If the network parameters of the connected network are better than the corresponding network parameters of the first network, the connection relationship between the electronic device and the current network is maintained.

[0165] For example, the current operating mode of the electronic device has higher requirements for delay parameters and lower requirements for packet loss rate. If the delay parameters of the sixth network in the target sequence are better than the delay parameters of the first network, the sixth network is determined as the target network, and the electronic device is controlled to remain connected to the sixth network.

[0166] and / or,

[0167] If the delay parameter and / or packet loss rate of the network in the target sequence are greater than those of the first network, control the electronic device to reconnect with the first network.

[0168] For example, if no network with better signal strength than the first network and better delay parameters and / or packet loss rate than the first network is found in the target sequence, the network performance of the electronic device connected to any network in the target sequence is not better than the network performance of the electronic device connected to the first network. Therefore, the connection between the electronic device and the currently connected network in the target sequence can be disconnected, and the electronic device can be controlled to reconnect to the first network and maintain the connection relationship with the first network.

[0169] In some embodiments, the method further comprises at least one of the following three situations:

[0170] In the first case, after controlling the electronic device to establish a connection with the target network, the operating parameters of the first network are controlled.

[0171] Exemplarily, after the electronic device establishes a connection with the target network, the operating parameters of the first network are controlled.

[0172] For example, after the electronic device establishes a connection with the target network, if the electronic device only supports one network access at this time, the electronic device only provides a network environment through the target network and no longer uses the first network; if the electronic device supports dual network access or multiple network access, the electronic device mainly provides a network environment through the target network, and the frequency of use of the first network is relatively low. In the above two cases, if the provider of the first network still maintains a normal power consumption state, the power consumption of the electronic device will increase, which may affect the performance of the electronic device and also increase the power consumption of the electronic device. Therefore, the first network provider can be controlled to enter a low power consumption state to reduce its power consumption. At the same time, if the electronic device needs to use the first network, the low power consumption state of the first network provider can also enable it to quickly provide the electronic device with an indication of the network environment.

[0173] Of course, it is understandable that other operating parameters of the first network may also be changed. This is only used as an example and does not constitute a limitation on the protection scope of the claims.

[0174] In the second case, the relative position change data between the electronic device and the first network provider is monitored, and at least one of the transmission power, radiation frequency, and signal frequency band of the first network provider is adjusted based on the relative position change data. The first network provider is a device that provides the first network.

[0175] Exemplarily, the relative position change data between the electronic device and the first network provider can be monitored in real time. It should be noted that the "real-time monitoring" here can be monitoring at a certain interval, and the specific interval can be set as needed. The interval is very short, so it can also be understood as real-time monitoring of the electronic device.

[0176] For example, when the two are far away from each other, at least one of the transmission power, radiation frequency, and signal frequency band of the first network provider can be adjusted. For example, the transmission power of the first network provider can be increased to increase the coverage of the first network provided by the first network provider, so that even if the electronic device is far away from the first network provider, the first network provider can still provide a better network environment for the electronic device. Similarly, the radiation frequency and / or signal frequency band of the first network provider can also be increased at the same time to improve the delay performance of the first network provided by the first network provider and reduce the packet loss rate.

[0177] On the contrary, when the two are close to each other, the first network provider can provide a better first network for the electronic device. At this time, at least one of the transmission power, radiation frequency, and signal frequency band of the first network provider can be reduced, which helps to reduce energy consumption while ensuring the network performance requirements of the electronic device, and is conducive to extending the service life of the electronic device and reducing operating costs.

[0178] The radiation frequency refers to the frequency of electromagnetic radiation generated by the network provider when transmitting wireless signals. When the electronic device does not use the first network or the frequency of using the first network is reduced, the signal transmission speed can be reduced by reducing the radiation frequency of the first network, thereby reducing the impact of the high radiation frequency of the first network on the performance of the electronic device. Reducing the radiation frequency also means reducing the transmission power of the electronic device to a certain extent, thereby helping to reduce energy consumption.

[0179] In the third case, the relative position change data between the electronic device and the first network provider is monitored, and the working parameters of the first communication module of the electronic device are adjusted based on the relative position change data. The first communication module is different from the second communication module of the electronic device used to send and receive the first network.

[0180] Exemplarily, the relative position change data between the electronic device and the first network provider can be monitored in real time. It should be noted that the "real-time monitoring" here can be monitoring at a certain interval, and the specific interval can be set as needed. The interval is very short, so it can also be understood as real-time monitoring of the electronic device.

[0181] The electronic device has a first communication module and a second communication module, wherein the electronic device can receive and send data from the first network through the second communication module. The first communication module can be used for, but is not limited to, switching networks.

[0182] For example, the first network currently connected to the electronic device is wifi. When the relative position change data is greater than the position change threshold, the first communication module can switch from wifi to mobile network, and the first communication module is switched from wifi module to mobile network module. For example, if a user is dining in a restaurant with a smartphone, the smartphone is currently connected to the restaurant's wifi (first network). When the user finishes dining and leaves the restaurant with the smartphone, the distance between the smartphone and the first network provider increases, and the smartphone can no longer connect to the restaurant's wifi. At this time, the smartphone's wifi module is switched to the mobile network module, so that the user's smartphone can send and receive data through the mobile network.

[0183] The present application also provides an electronic device, Figure 6 The electronic device includes a main body and a wireless communication module arranged on the main body, wherein the wireless communication module can monitor the network parameters of the first network to which the electronic device is currently connected.

[0184] Exemplarily, the body of the electronic device includes a housing, a display screen, and a plurality of functional components disposed in the housing. A wireless communication module is disposed on the body, wherein the wireless communication module can monitor network parameters of a first network to which the electronic device is currently connected. The wireless communication module can be a wireless network card or a mobile data network card.

[0185] The network parameters of the first network to which the electronic device is currently connected may change as the position of the electronic device changes. It is also possible that when the position of the electronic device does not change, the network environment in the space where the electronic device is located changes, thereby causing the network parameters of the first network to change. That is, the network parameters of the first network to which the electronic device is currently connected may change in real time. The change in the network parameters of the first network may affect the performance of the first network, so the network parameters of the first network to which the electronic device is currently connected can be monitored through the wireless communication module.

[0186] For example, if the network parameters of the first network change significantly, the first network may not be able to provide network function support for the electronic device, resulting in the electronic device being unable to use the first network to implement the corresponding function. For example, before the network parameters of the first network change significantly, the electronic device can smoothly refresh the web page through the first network and send and obtain information. After the network parameters of the first network change significantly, the electronic device cannot perform any network access through the first network.

[0187] For another example, when the network parameters of the first network change slightly, the first network can still provide network function support for the electronic device, but the network performance provided by the first network to the electronic device decreases, affecting the electronic device's demand for the network. For example, before the network parameters of the first network change, the time required for the electronic device to refresh a web page is 0.5 seconds, and after the parameters of the first network change, the time required for the electronic device to refresh the web page is 2 seconds.

[0188] Of course, the change in the network parameters of the first network may also have other effects on the electronic device, and the degree of the effects on the electronic device may also be different. This is only used as an example and does not constitute a limitation on the protection scope of the claims.

[0189] Therefore, in order to ensure that the electronic device has a good network environment and can realize some of its functions through the network, such as accessing web pages, receiving and sending data, etc., the network parameters of the first network to which the electronic device is currently connected can be monitored. The first network can be provided by a first network provider (wireless access point (AP) or hotspot device), which is specifically determined according to the type of the first network. For example, if the first network is a wireless network, the first network can be provided by an AP device; and if the first network is a cellular network, the first network can be provided by a base station device. The network parameters of the first network may include reference signal received power (RSRP), delay time (delaytime), packet loss rate (lost package%), etc.

[0190] And, when the change in the network parameter is greater than the corresponding threshold, a connection is established with the target network in the spatial environment where the electronic device is located.

[0191] Among them, at least one network parameter of the target network is better than that of the first network, and the first network can be discovered by the wireless communication module in the space environment.

[0192] Exemplarily, a corresponding threshold value of the network parameter change amount can be set, and the threshold value can be stored in advance on the electronic device, or it can be set and changed as needed. By comparing the monitored network parameters of the first network with the corresponding threshold value, if the change amount of the network parameter is greater than the corresponding threshold value, it means that the performance of the first network may be affected. At this time, you can consider looking for other networks. If there are other networks with better network performance than the first network in the spatial environment where the electronic device is located, you can consider connecting the electronic device to the other network to ensure the network performance of the network to which the electronic device is connected.

[0193] It should be noted here that the change in network parameters is greater than the corresponding threshold value, which can be understood as the network performance of the first network represented by the network parameters of the first network has dropped to a certain extent. If the change in the network parameters of the first network becomes better than the network performance represented by the current network parameters, there is no need to control the electronic device to establish a connection with other networks.

[0194] Before the electronic device establishes a connection with other networks in the space environment, the network parameters of the other networks can be obtained first. If at least one network parameter of the other networks is better than that of the first network, the other networks can be determined as target networks, and the target networks can be one or more than two. Of course, it is understandable that if two or more network parameters of one or more networks in the other networks are better than those of the first network, such networks can be preferentially determined as target networks, and the electronic device can be controlled to establish a connection with the determined target network.

[0195] For example, when the change in the network parameter of the first network is greater than the corresponding threshold, other networks are searched from the space environment where the electronic device is located. If the wireless communication module finds that there are two (for example, network A and network B) that are different from the first network and have a signal strength greater than the signal strength of the first network, or the packet loss rate of other networks is less than the packet loss rate of the first network, then both network A and network B can be determined as target networks, and the electronic device is controlled to establish a connection with network A and / or network B. If, based on the above conditions, the delay parameter of network A is less than the delay parameter of the first network, and the delay parameter of network B is not less than the delay parameter of the first network, or the delay parameter of network B is less than the delay parameter of the first network but greater than the delay parameter of network A, network A can also be determined as the target network first, and the electronic device is controlled to establish a connection with network A first. Of course, when all network parameters of network A are better than those of the first network and network B, there is more reason to determine network A as the target network and control the electronic device to establish a connection with network A first. This allows the electronic device to establish a connection with a network with better performance within its spatial environment even if the electronic device moves or the network performance of the first network it is currently connected to changes, ensuring that the connected network can meet the electronic device's requirements for network performance.

[0196] Determination of the target network is a real-time process, that is, when the electronic device establishes a connection with the target network, at least one network parameter of the target network is better than the network parameters of the first network, and the network parameters of the target network and the network parameters of the first network are compared in real time to ensure that the electronic device can establish a connection with the network corresponding to the current optimal network parameters.

[0197] Of course, it is understandable that there may be only one or more than three other networks in the spatial environment where the electronic device is located, and the network parameters may not be the packet loss rate, but other network parameters such as the reference signal receiving power. This is only used as an example and does not constitute a limitation on the scope of protection of the claims.

[0198] When the electronic device establishes a connection with the target network, the electronic device may disconnect from the first network or may not disconnect from the first network, which is specifically determined according to the network access configuration of the electronic device. For example, when the electronic device supports dual network access, it is not necessary to disconnect the electronic device from the first network, and the first network and the target network may be connected at the same time. The target network is provided by a router, AP or hotspot device in the spatial environment, which is specifically determined according to the type of the target network. For example, if the target network is a wireless network, the target network may be provided by an AP device or a hotspot device in the spatial environment; and if the target network is a cellular network, the target network may be provided by a base station device in the spatial environment.

[0199] What the present application wants to emphasize is that, when the change in the network parameters of the first network is greater than the corresponding threshold, the first network can still be discovered by the electronic device, that is, the present application is that when the electronic device discovers a target network with better network parameters than the first network, it actively establishes a connection with the target network with better network parameters in the spatial environment, rather than triggering the connection between the electronic device and the target network because the signal strength of the first network is reduced to the point where the disconnection condition is reached.

[0200] In some embodiments, in combination Figure 7 , wherein the body includes a first body and a second body that are rotatably connected, the wireless communication module is arranged on the second body, and the relative rotation of the first body and the second body can enable the electronic device to have different device forms.

[0201] Exemplarily, the electronic device can switch from a notebook form to a tablet form or a book form. The notebook form may refer to an electronic device having a traditional laptop form, including a keyboard, a touchpad and a display screen. The tablet form may refer to an electronic device that can be folded or rotated so that the display screen and the keyboard portion are in the same plane, similar to a tablet computer. Book form is sometimes also referred to as tent mode or book mode, which may refer to an electronic device that can be folded in half and opened like a book, usually for watching videos or making presentations. The first body may refer to the display screen in the notebook form, and the second body may refer to the keyboard in the notebook form. The first body and the second body can be rotatably connected, and the wireless communication module is arranged on the second body, and the second body is mainly used to set various functional components and control parts of the electronic device, such as wireless communication modules, controllers, etc.

[0202] When the change in at least one network parameter of the first network is greater than the corresponding threshold, the controller of the electronic device can determine the target network from the spatial environment in which the electronic device is currently located based on the device form, so as to control the wireless communication module to establish a connection with the target network.

[0203] Exemplarily, according to the comparison result of the detected network parameters of the first network and the corresponding threshold, when the change amount of at least one network parameter of the first network exceeds the threshold corresponding to the network parameter, it indicates that the performance of the first network currently connected to the electronic device may have declined, and the network environment provided by the first network for the electronic device may not meet the network usage requirements of the electronic device. At this time, the controller of the electronic device needs to determine another network as the target network from the spatial environment where the electronic device is currently located. The determined target network can be one, or two or more. The number of target networks can be determined based on the network access configuration of the electronic device.

[0204] For example, wifi7 can support multiple AP accesses at the same time. If the electronic device supports wifi7, you can consider determining two or more target networks and simultaneously accessing two APs corresponding to the two target networks or multiple APs corresponding to multiple target networks.

[0205] The controller can determine the target network from the spatial environment where the electronic device is currently located based on the device form of the electronic device, so as to control the wireless communication module to establish a connection with the target network.

[0206] It should be noted that the controller may be independent of the wireless communication module, or may be a part of the wireless communication module. For example, the controller may be a driver of a wireless network card.

[0207] The present application also provides a control device, in combination with Figure 8 , the control device comprises:

[0208] The monitoring module is configured to monitor network parameters of a first network to which the electronic device is currently connected.

[0209] For example, the network parameters of the first network to which the electronic device is currently connected may change as the position of the electronic device changes. Alternatively, when the position of the electronic device does not change, the network environment in the space where the electronic device is located changes, thereby causing the network parameters of the first network to change. That is, the network parameters of the first network to which the electronic device is currently connected may change in real time. Changes in the network parameters of the first network may affect the performance of the first network.

[0210] For example, if the network parameters of the first network change significantly, the first network may not be able to provide network function support for the electronic device, resulting in the electronic device being unable to use the first network to implement the corresponding function. For example, before the network parameters of the first network change significantly, the electronic device can smoothly refresh the web page through the first network and send and obtain information. After the network parameters of the first network change significantly, the electronic device cannot perform any network access through the first network.

[0211] For another example, when the network parameters of the first network change slightly, the first network can still provide network function support for the electronic device, but the network performance provided by the first network to the electronic device decreases, affecting the electronic device's demand for the network. For example, before the network parameters of the first network change, the time required for the electronic device to refresh a web page is 0.5 seconds, and after the parameters of the first network change, the time required for the electronic device to refresh the web page is 2 seconds.

[0212] Of course, the change in the network parameters of the first network may also have other effects on the electronic device, and the degree of the effects on the electronic device may also be different. This is only used as an example and does not constitute a limitation on the protection scope of the claims.

[0213] Therefore, in order to ensure that the electronic device has a good network environment and can realize some of its functions through the network, such as accessing web pages, receiving and sending data, etc., the network parameters of the first network to which the electronic device is currently connected can be monitored. The first network can be provided by a first network provider (wireless access point (AP) or hotspot device), which is specifically determined according to the type of the first network. For example, if the first network is a wireless network, the first network can be provided by an AP device; and if the first network is a cellular network, the first network can be provided by a base station device. The network parameters of the first network may include reference signal received power (RSRP), delay time (delaytime), packet loss rate (lost package%), etc.

[0214] The control module is configured to control the electronic device to establish a connection with a target network in the spatial environment when the change in the network parameter is greater than a corresponding threshold.

[0215] Among them, at least one network parameter of the target network is better than that of the first network, and the first network can be discovered by the electronic device in the space environment.

[0216] Exemplarily, a corresponding threshold value of the network parameter change amount can be set, and the threshold value can be stored in advance on the electronic device, or it can be set and changed as needed. By comparing the monitored network parameters of the first network with the corresponding threshold value, if the change amount of the network parameter is greater than the corresponding threshold value, it means that the performance of the first network may be affected. At this time, you can consider looking for other networks. If there are other networks with better network performance than the first network in the spatial environment where the electronic device is located, you can consider connecting the electronic device to the other network to ensure the network performance of the network to which the electronic device is connected.

[0217] It should be noted here that the change in network parameters is greater than the corresponding threshold value, which can be understood as the network performance of the first network represented by the network parameters of the first network has dropped to a certain extent. If the change in the network parameters of the first network becomes better than the network performance represented by the current network parameters, there is no need to control the electronic device to establish a connection with other networks.

[0218] Before the electronic device establishes a connection with other networks in the space environment, the network parameters of the other networks can be obtained first. If at least one network parameter of the other networks is better than that of the first network, the other networks can be determined as target networks, and the target networks can be one or more than two. Of course, it is understandable that if two or more network parameters of one or more networks in the other networks are better than those of the first network, such networks can be preferentially determined as target networks, and the electronic device can be controlled to establish a connection with the determined target network.

[0219] For example, when the change in the network parameter of the first network is greater than the corresponding threshold, other networks are searched in the space environment where the electronic device is located. If it is found that the signal strength of two other networks (for example, network A and network B) different from the first network is greater than the signal strength of the first network, or the packet loss rate is less than the packet loss rate of the first network, then both network A and network B can be determined as target networks, and the electronic device is controlled to establish a connection with network A and / or network B. If, based on the above conditions, the delay parameter of network A is less than the delay parameter of the first network, and the delay parameter of network B is not less than the delay parameter of the first network, or the delay parameter of network B is less than the delay parameter of the first network but greater than the delay parameter of network A, network A can also be determined as the target network first, and the electronic device is controlled to establish a connection with network A first. Of course, when all network parameters of network A are better than those of the first network and network B, there is more reason to determine network A as the target network and control the electronic device to establish a connection with network A first. This allows the electronic device to establish a connection with a network with better performance within its spatial environment even if the electronic device moves or the network performance of the first network it is currently connected to changes, ensuring that the connected network can meet the electronic device's requirements for network performance.

[0220] Determination of the target network is a real-time process, that is, when the electronic device establishes a connection with the target network, at least one network parameter of the target network is better than the network parameters of the first network, and the network parameters of the target network and the network parameters of the first network are compared in real time to ensure that the electronic device can establish a connection with the network corresponding to the current optimal network parameters.

[0221] Of course, it is understandable that there may be only one or more than three other networks in the spatial environment where the electronic device is located, and the network parameters may not be the packet loss rate, but other network parameters such as the reference signal receiving power. This is only used as an example and does not constitute a limitation on the scope of protection of the claims.

[0222] When the electronic device establishes a connection with the target network, the electronic device may disconnect from the first network or may not disconnect from the first network, which is specifically determined according to the network access configuration of the electronic device. For example, when the electronic device supports dual network access, it is not necessary to disconnect the electronic device from the first network, and the first network and the target network may be connected at the same time. The target network is provided by a router, AP or hotspot device in the spatial environment, which is specifically determined according to the type of the target network. For example, if the target network is a wireless network, the target network may be provided by an AP device or a hotspot device in the spatial environment; and if the target network is a cellular network, the target network may be provided by a base station device in the spatial environment.

[0223] An embodiment of the present application further provides a storage medium on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the steps of the method described in the above embodiment are implemented.

[0224] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, electronic equipment, computer-readable storage media or computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media that include computer-usable program code. When implemented by software, these functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.

[0225] The processor may be a general purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The general purpose processor may be a microprocessor or any conventional processor.

[0226] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0227] The above-mentioned readable storage medium can be a disk, an optical disk, a DVD, a USB, a read-only memory (ROM) or a random access memory (RAM), etc. This application does not limit the specific form of the storage medium.

[0228] Multiple embodiments of the present application are described in detail above, but the present application is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications to the embodiments based on the concept of the present application, and these variations and modifications should all fall within the scope of protection required by the present application.

Claims

1. A control method, comprising: Monitoring network parameters of a first network to which the electronic device is currently connected; When the change in the network parameter is greater than the corresponding threshold, controlling the electronic device to establish a connection with a target network in the space environment; Among them, at least one network parameter of the target network is better than that of the first network, and the first network can be discovered by the electronic device in the space environment.

2. The method according to claim 1, wherein: Monitoring a network parameter of a first network to which the electronic device is currently connected includes at least one of the following: In response to the electronic device moving from a current first location to a second location different from the first location, detecting a network parameter of the first network; In response to the electronic device discovering a second network at a first location currently located, detecting a network parameter of the first network, at least one network parameter of the second network being superior to that of the first network; Monitoring network parameters of a first network to which the electronic device is currently connected according to a first interval duration; In response to a change in usage information of the electronic device, detecting a network parameter of the first network; In response to a change in the operating state of the electronic device, a network parameter of the first network is detected.

3. The method according to claim 1, wherein: When the change amount of the network parameter is greater than the corresponding threshold, controlling the electronic device to establish a connection with a target network in the space environment includes: When the change amount of at least one network parameter of the first network is greater than a corresponding threshold, determining a target network from the spatial environment where the electronic device is currently located; In the case where the electronic device supports multi-network access, controlling the electronic device to establish a connection with the target network; or, In the case that the electronic device does not support multi-network access, the electronic device is controlled to disconnect from the first network and establish a connection with the target network to obtain target network parameters of the target network, and the electronic device is controlled to connect to the target network or the first network based on a comparison result between the target network parameters and corresponding network parameters of the first network.

4. The method according to claim 1, wherein: When the change amount of the network parameter is greater than the corresponding threshold, controlling the electronic device to establish a connection with a target network in the space environment includes: When the change amount of at least one network parameter of the first network is greater than a corresponding threshold, determining a target network from the spatial environment where the electronic device is currently located; Controlling the electronic device to disconnect from the first network and establish a connection with the target network to obtain a target network parameter of the target network; When the target network parameter is better than the corresponding network parameter of the first network, controlling the electronic device to remain connected to the target network; and / or, In a case where the target network parameters are not better than the corresponding network parameters of the first network, the electronic device is controlled to disconnect from the target network and reconnect to the first network.

5. The method according to claim 4, wherein: In the case where the target network includes the third network and the fourth network, at least one of the following is further included: When the target network parameters of the third network and the fourth network are better than the corresponding network parameters of the first network, controlling the electronic device to remain connected to the third network, and / or controlling the electronic device to remain connected to the fourth network; When the target network parameters of the third network are better than the corresponding network parameters of the first network, and the target network parameters of the fourth network are not better than the corresponding network parameters of the first network, controlling the electronic device to remain connected to the third network, and controlling the electronic device to disconnect from the fourth network; When the target network parameters of the third network are better than the corresponding network parameters of the first network, and the target network parameters of the fourth network are not better than the corresponding network parameters of the first network, the electronic device is controlled to remain connected to the third network, the electronic device is controlled to disconnect from the fourth network, and the electronic device is controlled to reconnect to the first network.

6. The method according to claim 3 or 4, wherein: Determining a target network from within a spatial environment where the electronic device is currently located includes at least one of the following: Determine the network with the largest signal strength in the spatial environment as the target network; Determining a network newly discovered by the electronic device in the space environment as the target network; Determine a fifth network in the spatial environment that has a target association relationship with the first network as the target network; Determine a network in the spatial environment that matches the configuration operation of the target user as the target network; Determine a network in the space environment that matches the operating state of the electronic device as the target network; A network in the spatial environment that matches the usage information of the electronic device is determined as the target network.

7. The method according to claim 1 or 2, wherein when the change in the network parameter is greater than a corresponding threshold, controlling the electronic device to establish a connection with a target network in the space environment, comprises: When a change in at least one network parameter of the first network is greater than a corresponding threshold, sequentially acquiring delay parameters and / or packet loss rates of networks in a target sequence, wherein the target sequence is a sequence obtained by sorting the networks in the spatial environment based on signal strength; comparing delay parameters and / or packet loss rates of the first network and networks in the target sequence; If the delay parameter and / or packet loss rate of the sixth network in the target sequence is smaller than that of the first network, the sixth network is determined as the target network, and the electronic device is controlled to remain connected to the sixth network; and / or, If the delay parameter and / or the packet loss rate of the network in the target sequence are both greater than those of the first network, the electronic device is controlled to re-establish a connection with the first network.

8. The method according to claim 1, further comprising at least one of the following: after controlling the electronic device to establish a connection with the target network, controlling an operating parameter of the first network; monitoring relative position change data between the electronic device and a first network provider, and adjusting at least one of a transmission power, a radiation frequency, and a signal frequency band of the first network provider based on the relative position change data, wherein the first network provider is a device that provides the first network; Monitor the relative position change data between the electronic device and the first network provider, and adjust the working parameters of the first communication module of the electronic device based on the relative position change data. The first communication module is different from the second communication module of the electronic device used to send and receive the first network.

9. An electronic device, comprising a body and a wireless communication module arranged on the body, wherein: The wireless communication module is capable of monitoring network parameters of a first network to which the electronic device is currently connected; and, when the change in the network parameter is greater than a corresponding threshold, establishing a connection with a target network in the spatial environment where the electronic device is located; Among them, at least one network parameter of the target network is better than that of the first network, and the first network can be discovered by the wireless communication module in the space environment.

10. The electronic device according to claim 9, wherein: The body comprises a first body and a second body which are rotatably connected, the wireless communication module is arranged on the second body, and the relative rotation of the first body and the second body can make the electronic device have different device forms; When the change in at least one network parameter of the first network is greater than the corresponding threshold, the controller of the electronic device can determine the target network from the spatial environment in which the electronic device is currently located based on the device form, so as to control the wireless communication module to establish a connection with the target network.