Online connection method, terminal device, network device and storage medium

By detecting channel load and interference values, terminal devices can switch channels in service scenarios that are imperceptible to users, thus solving Wi-Fi network lag and improving user experience and network stability.

CN119967514BActive Publication Date: 2025-11-25HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311435363.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2025-11-25
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

For terminal devices experiencing internet lag in Wi-Fi networks due to high channel load or significant interference, existing solutions such as connecting to other routers or cellular base stations can negatively impact user experience or increase data charges.

Method used

Terminal devices detect channel load and interference levels and select the channel with the least interference for switching, ensuring that network devices are restarted to switch channels in service scenarios that are imperceptible to users, thereby improving network connection stability.

Benefits of technology

It effectively solves the problem of Wi-Fi network lag, improves the user's online experience, and avoids the impact of network disconnection caused by restarting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119967514B_ABST
    Figure CN119967514B_ABST
Patent Text Reader

Abstract

The application relates to an online connection method, a terminal device, a network device and a storage medium. In the online connection method, when it is determined that an online lag event caused by an air interface reason occurs, the terminal device scans interference values of other channels, selects a channel with the minimum interference value as a switching channel, and sends a channel switching instruction to the network device when it is determined that the terminal device has no user-perceived service. The network device parses the switching channel from the switching instruction, sets the working channel of the network device as the switching channel, restarts the network device, and after the terminal device reconnects to the network device, the terminal device is connected to the network device through the new working channel, thereby solving the problem of online lag of the terminal device and improving the online experience of the user. In addition, the application confirms the user-perceived service, so that the user can avoid the problem of network disconnection during the process of restarting and setting the channel of the network device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more specifically, to an internet connection method, a terminal device, a network device, and a storage medium. Background Technology

[0002] When a terminal device connects to a Wi-Fi network, its network speed is related to the air interface quality of the current channel. The more routers connected to that channel, or the higher the data traffic on those routers, the higher the channel load, resulting in slower network speeds and buffering issues. Solutions to this include connecting the device to another router or a cellular base station. However, if the device cannot connect to other routers (e.g., a private router requiring password authentication), or if connecting to a cellular base station consumes additional bandwidth, the stability of the network connection cannot be guaranteed, negatively impacting the user's online experience. Summary of the Invention

[0003] In view of the above, it is necessary to provide an internet connection method, terminal device, network device, and storage medium to solve the problem of internet lag.

[0004] In a first aspect, embodiments of this application provide an internet connection method applied to a communication system, the communication system including a terminal device and a network device. The method includes: when the terminal device determines that the network device has a channel switching function, it acquires the channel load of the terminal device's working channel; if it is determined based on the channel load of the working channel that an internet connection lag event caused by an air interface issue has occurred, the terminal device determines whether an interference value of at least one channel is detected to be less than a preset interference value; if at least one channel's interference value is detected to be less than the preset interference value, the terminal device acquires the screen state and motion state; if it is determined based on the screen state and motion state that the terminal device has no user-perceptible service, the terminal device determines a switching channel from the detected at least one channel and sends a switching command carrying the switching channel to the network device; the network device responds to the switching command, parses the switching command to determine the switching channel, sets the switching channel as the updated working channel, and restarts the network device; in response to a notification from the network device that the channel setting was successful, the terminal device re-establishes a communication connection with the network device. In the above technical solution, when the terminal device determines that an internet connection lag event is caused by an air interface issue, it scans the interference values ​​of other channels and selects the channel with the lowest interference value as the switching channel. If it determines that the terminal device has no user-perceptible service, it sends a channel switching command to the network device. The network device parses the switching channel from the command, sets its own operating channel as the switching channel, restarts the network device, and puts it into operation on the new operating channel. After reconnecting to the network device, the terminal device communicates with it through the new operating channel, thus resolving the internet connection lag issue and improving the user's internet experience. Furthermore, by confirming user-perceptible services, this technical solution avoids the problem of users perceiving network disconnection during the network device's channel restart and reconfiguration process if user-perceptible services are present at the terminal device.

[0005] In one embodiment of this application, determining whether an internet lag event caused by an air interface issue has occurred based on the channel load of the working channel includes: if the channel load of the working channel is greater than or equal to a preset channel load threshold, determining that the air interface quality of the working channel does not meet the preset conditions, and determining that an internet lag event caused by an air interface issue has occurred. In the above technical solution, by comparing the channel load of the working channel with the preset channel load threshold, it is possible to accurately determine whether an internet lag event caused by an air interface issue has occurred in the terminal device.

[0006] In one embodiment of this application, detecting that the interference value of a channel is less than a preset interference value includes: acquiring beacon frames of multiple channels other than the working channel; parsing the beacon frame of each channel to obtain the identity information of at least one device carried in the beacon frame of each channel, and determining the number of devices connected to each channel based on the identity information of at least one device, using the number of devices connected to each channel as the interference value of the corresponding channel; comparing the interference value of each channel with the preset interference value, and determining that a channel with an interference value less than the preset interference value has been detected if the interference value of at least one channel is less than the preset interference value. In the above technical solution, by acquiring the number of devices connected to multiple channels other than the working channel, channels with interference values ​​less than the preset interference value can be accurately detected.

[0007] In one embodiment of this application, determining the switching channel from at least one detected channel includes: selecting the channel with the smallest interference value from all channels with interference values ​​less than a preset interference value as the switching channel. In the above scheme, selecting the channel with the smallest interference value as the switching channel can reduce the channel load on the working channel between the terminal device and the network device, and improve the data transmission rate between the terminal device and the network device.

[0008] In one embodiment of this application, the network device responds to a handover command and parses the handover command to determine the handover channel, including: the network device determining the number of devices connected to the network device; if the network device is connected to one device, obtaining the channel load of the working channel, and if the channel load of the working channel is greater than or equal to a preset channel load threshold, parsing the handover channel from the handover command. In the above technical solution, when the number of devices connected to the network device is determined to be one, it can be determined that the network device only connects to the terminal device. Thus, when the network device responds to the handover command and restarts, even if there is a brief disconnection between the network device and the terminal device, it will not affect the normal internet access of other devices connected to the network device.

[0009] In one embodiment of this application, the method further includes: if the network device is connected to multiple devices, the network device does not respond to the switching command. In the above technical solution, when it is determined that the number of devices connected to the network device is one, it can be determined that the network device is connected to multiple devices, including terminal devices. Thus, the network device does not respond to the switching command, avoiding the impact on the normal internet access of other devices connected to the network device when the network device restarts in response to the switching command.

[0010] In one embodiment of this application, the terminal device obtains the screen state by: calling the isScreenOn() function of the terminal device's power management system; if the isScreenOn() function returns a boolean value of true, the terminal device's screen state is determined to be on; if the isScreenOn() function returns a boolean value of false, the terminal device's screen state is determined to be off. The above technical solution can accurately identify the terminal device's screen state by calling the isScreenOn() function of the terminal device's power management system.

[0011] In one embodiment of this application, the terminal device acquires its motion state by: detecting the terminal device's movement acceleration using an accelerometer; determining that the terminal device is in a moving state if the movement acceleration is greater than or equal to a preset acceleration value; and determining that the terminal device is in a stationary state if the movement acceleration is less than the preset acceleration value. The above technical solution, by detecting the terminal device's movement acceleration using an accelerometer, can accurately identify the motion state of the terminal device.

[0012] In one embodiment of this application, determining that the terminal device has no user-perceptible services based on screen state and motion state includes: if the screen state is determined to be off and the motion state is determined to be stationary, the terminal device determines that there are no user-perceptible services. In the above technical solution, by confirming user-perceptible services, the process of network devices restarting and setting up channels can be made imperceptible to the user, improving the user's internet browsing experience.

[0013] In one embodiment of this application, determining whether a network device has channel switching functionality includes: a terminal device sending a lookup request to the network device, the lookup request being used to determine whether the network device has channel switching functionality; and if the terminal device receives an acknowledgment response from the network device, the terminal device determines that the network device has channel switching functionality. In the above technical solution, the terminal device can accurately obtain information about whether the network device has channel switching functionality by sending a lookup request to the network device.

[0014] Secondly, embodiments of this application provide an internet connection method, in which a terminal device communicates with a network device. The method includes: when it is determined that the network device has a channel switching function, obtaining the channel load of the terminal device's working channel; if it is determined based on the channel load of the working channel that an internet lag event caused by an air interface reason has occurred, determining whether an interference value of a channel is detected to be less than a preset interference value; if at least one channel's interference value is detected to be less than the preset interference value, obtaining the screen state and motion state of the terminal device; if it is determined based on the screen state and motion state that the terminal device has no user-perceptible service, determining a switching channel from the detected at least one channel, and sending a switching instruction carrying the switching channel to the network device, the switching instruction being used to instruct the network device to set the working channel according to the switching channel carried in the switching instruction; and responding to a notification from the network device that the channel setting was successful, the terminal device re-establishes a connection with the network device. In the above technical solution, when the terminal device determines that an internet lag event is caused by an air interface issue, it scans the interference values ​​of other channels and selects the channel with the lowest interference value as the switching channel. If it determines that the terminal device has no user-perceptible services, it sends a channel switching command to the network device, instructing the network device to set its working channel as the switching channel. After reconnecting to the network device, the terminal device communicates with the network device through the new working channel, thereby resolving the internet lag issue and improving the user's internet experience. Furthermore, by confirming user-perceptible services, this technical solution avoids the problem of users noticing network disconnections during the network device's channel reconfiguration process when user-perceptible services are present at the terminal device, thus preventing the impact on the internet experience caused by the network disconnection.

[0015] In one embodiment of this application, determining whether an internet lag event caused by an air interface issue has occurred based on the channel load of the working channel includes: if the channel load of the working channel is greater than or equal to a preset channel load threshold, determining that the air interface quality of the working channel does not meet the preset conditions, and determining that an internet lag event caused by an air interface issue has occurred. In the above technical solution, by comparing the channel load of the working channel with the preset channel load threshold, it is possible to accurately determine whether an internet lag event caused by an air interface issue has occurred in the terminal device.

[0016] In one embodiment of this application, detecting that the interference value of a channel is less than a preset interference value includes: acquiring beacon frames of multiple channels other than the working channel; parsing the beacon frame of each channel to obtain the identity information of at least one device carried in the beacon frame of each channel, and determining the number of devices connected to each channel based on the identity information of at least one device, using the number of devices connected to each channel as the interference value of the corresponding channel; comparing the interference value of each channel with the preset interference value, and determining that a channel with an interference value less than the preset interference value has been detected if the interference value of at least one channel is less than the preset interference value. In the above technical solution, by acquiring the number of devices connected to multiple channels other than the working channel, channels with interference values ​​less than the preset interference value can be accurately detected.

[0017] In one embodiment of this application, determining the switching channel from at least one detected channel includes: selecting the channel with the smallest interference value from all channels with interference values ​​less than a preset interference value as the switching channel. In the above scheme, selecting the channel with the smallest interference value as the switching channel can reduce the channel load on the working channel between the terminal device and the network device, and improve the data transmission rate between the terminal device and the network device.

[0018] In one embodiment of this application, determining that the terminal device has no user-perceptible services based on screen state and motion state includes: if the screen state is determined to be off and the motion state is determined to be stationary, then it is determined that there are no user-perceptible services. In the above technical solution, by confirming user-perceptible services, the process of network devices restarting and setting up channels can be made imperceptible to the user, thus improving the user's internet browsing experience.

[0019] In one embodiment of this application, determining whether a network device has channel switching functionality includes: sending a lookup request to the network device, the lookup request being used to determine whether the network device has channel switching functionality; and if an acknowledgment response is received from the network device, it is determined that the network device has channel switching functionality. In the above technical solution, the terminal device can accurately obtain information about whether the network device has channel switching functionality by sending a lookup request to the network device.

[0020] Thirdly, embodiments of this application provide an internet connection method where a network device and a terminal device are communicatively connected. The method includes: responding to a search request sent by the terminal device; sending an acknowledgment reply to the terminal device to indicate that the network device has channel switching functionality; receiving a switching command sent by the terminal device; parsing the switching command to determine the switching channel; setting the switching channel as the updated working channel and restarting the network device; and sending a notification of successful channel setting to the terminal device. In the above technical solution, the network device parses the switching channel from the switching command sent by the terminal device, sets the network device's working channel as the switching channel, restarts the network device, and enables the network device to work on the new working channel. After reconnecting to the network device, the terminal device communicates with the network device through the new working channel, thereby resolving the problem of internet lag on the terminal device and improving the user's internet experience.

[0021] In one embodiment of this application, parsing the handover command to determine the handover channel includes: determining the number of devices connected to the network device; if the network device is connected to one device, obtaining the channel load of the working channel, and if the channel load of the working channel is greater than or equal to a preset channel load threshold, parsing the handover channel from the handover command. In the above technical solution, when the number of devices connected to the network device is determined to be one, it can be determined that the network device only connects to the terminal device. Thus, when the network device responds to the handover command and restarts, even if there is a brief disconnection between the network device and the terminal device, it will not affect the normal internet access of other devices connected to the network device.

[0022] In one embodiment of this application, the method further includes: if the network device is connected to multiple devices, not responding to the switching command. In the above technical solution, when it is determined that the number of devices connected to the network device is one, it can be determined that the network device is connected to multiple devices, including terminal devices. Thus, the network device does not respond to the switching command, avoiding the impact on the normal internet access of other devices connected to the network device when the network device restarts in response to the switching command.

[0023] Fourthly, embodiments of this application provide a terminal device, including a processor and a memory; wherein the processor is connected to the memory; the memory is used to store program instructions; and the processor is used to read the program instructions stored in the memory to implement the above-mentioned Internet connection method.

[0024] Fifthly, embodiments of this application provide a network device, including a processor and a memory; wherein the processor is connected to the memory; the memory is used to store program instructions; and the processor is used to read the program instructions stored in the memory to implement the above-mentioned Internet connection method.

[0025] Sixthly, embodiments of this application provide a computer-readable storage medium storing program instructions that, when executed on an electronic device, cause the electronic device to perform the aforementioned internet connection method.

[0026] Furthermore, the technical effects brought about by aspects four through six can be found in the descriptions of the methods in the above-mentioned method section, and will not be repeated here. Attached Figure Description

[0027] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0028] Figure 1 This is a schematic diagram of the load of a channel provided in an embodiment of this application.

[0029] Figure 2 This is an application scenario diagram of an Internet connection method provided in an embodiment of this application.

[0030] Figure 3 A flowchart of a method for reducing power consumption provided in an embodiment of this application.

[0031] Figure 4 This is a schematic diagram of a network settings interface provided in an embodiment of this application.

[0032] Figure 5 This is a schematic diagram illustrating the communication connection between a mobile phone and a router according to an embodiment of this application.

[0033] Figure 6 This is a schematic diagram of a terminal device provided in an embodiment of this application. Detailed Implementation

[0034] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used in this application's specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It should be understood that, unless otherwise stated, " / " in this application means "or". For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. "At least one" refers to one or more. "More than one" refers to two or more. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, and a, b, and c (seven cases).

[0036] When a terminal device is connected to a Wi-Fi network, its network speed is related to the air interface quality of the current channel. The more routers connected to that channel, or the higher the data traffic volume of those routers, the higher the channel load, resulting in slower network speeds and buffering issues for the terminal device. (Reference) Figure 1 As shown, starting from the 2.4GHz frequency, channels 1, 2, and 3 are formed sequentially every 5MHz, and so on, up to channel 14. Figure 1 As shown, there are 5 routers communicating with channel 1 and 2 routers communicating with channel 12. Since the number of routers connected to channel 1 is greater than the number connected to channel 12, the load on channel 1 is higher than the load on channel 12. Assuming that router A operates on channel 1 and router B operates on channel 12, based on the above situation, the network speed of the terminal device when communicating with router A will be lower than the network speed when communicating with router B, and may even result in internet lag. Related technologies address internet lag by connecting the terminal device to other routers or to a cellular base station. However, if the terminal device cannot use other routers for internet access (e.g., a private router requires password verification before allowing connection), and connecting the terminal device to a cellular base station consumes additional bandwidth, increasing user costs and impacting the user's internet experience, the situation becomes problematic.

[0037] To address the issue of internet lag when terminal devices are connected to a wireless network (e.g., Wi-Fi), embodiments of this application provide an internet connection method. (See reference...) Figure 2 The diagram shown illustrates an application scenario of a power reduction method provided in an embodiment of this application. The method is applied to terminal devices (such as…). Figure 2 The terminal device 100 shown) and network equipment (such as Figure 2 In the network device 200 shown, the terminal device 100 establishes a communication connection with the network device 200 (e.g., through a Wi-Fi channel) and can communicate with the network connected to the network device 200, thereby enabling internet access. When the terminal device 100 determines that the air interface quality of the working channel for communicating with the network device 200 is poor (e.g., the number of routers connected to the working channel exceeds a preset number, or the data traffic of the router exceeds a preset data traffic volume), it scans the interference values ​​of other channels and selects the channel with the lowest interference value as the switching channel. When it determines that the terminal device meets the preset working conditions, it sends a channel switching command to the network device 200. The network device 200 sets its working channel to the switching channel according to the switching channel information carried in the channel switching command and restarts. After the network device 200 restarts, the terminal device 100 reconnects to the network device 200 and communicates with the network device 200 through the new working channel (i.e., the switching channel), thereby resolving the problem of internet lag experienced by the terminal device 100 and improving the user's internet experience.

[0038] In one embodiment of this application, the terminal device 100 may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device, and / or smart city device, etc. In one embodiment of this application, the network device 200 may be a switch, router, or hub.

[0039] In one embodiment of this application, the terminal device 100 includes a screen-on sensing module 101, a motion state sensing module 102, a service scenario sensing module 103, a first decision module 104, a user experience quality assessment module 105, a first Wi-Fi driver 106, a first Wi-Fi chip 107, and a kernel protocol stack 108.

[0040] The screen-on sensing module 101 is used to obtain the screen state of the terminal device 100 and send the screen state to the service scenario sensing module 103. In one embodiment of this application, the screen state of the terminal device 100 includes a screen-on state and a screen-off state. The screen-on sensing module 101 obtains whether the screen is on by calling the isScreenOn() function of the power management system. After calling the isScreenOn() function, if the boolean value returned by the isScreenOn() function is true, it is determined that the screen state of the terminal device 100 is a screen-on state; if the boolean value returned by the isScreenOn() function is false, it is determined that the screen state of the terminal device 100 is a screen-off state.

[0041] The motion state sensing module 102 is used to determine the motion state of the terminal device 100 and send the motion state to the service scenario sensing module 103. In one embodiment of this application, the motion state sensing module 102 can detect the motion state of the terminal device 100 through sensors of the terminal device 100, such as an accelerometer or a gravity sensor, and send the motion state to the service scenario sensing module 103. In one embodiment of this application, the motion state includes a moving state and a stationary state.

[0042] The service scenario perception module 103 obtains the screen state of the terminal device 100 from the screen-on perception module 101 and the motion state of the terminal device 100 from the motion state perception module 102. Based on the screen state and motion state of the terminal device 100, it determines whether the terminal device 100 has no user-perceptible service. If it is determined that the terminal device 100 has no user-perceptible service, the terminal device 100 issues a channel switching command, instructing the network device 200 to reset the channel according to the channel switching command. During the channel reset process, the connection with the network device 100 is briefly lost. Since the terminal device is in a state of having no user-perceptible service, the user of the terminal device 100 is unaware of this, thus not affecting the user's internet browsing experience.

[0043] In one embodiment of this application, the service scenario perception module 103 determines that the terminal device 100 has no user-perceptible services when it determines that the screen state of the terminal device 100 is off. For example, in a scenario where the terminal device 100 is off at night, the service scenario perception module 103 can determine that the terminal device 100 has no user-perceptible services when it determines that the screen state of the terminal device 100 is off. In another embodiment of this application, the service scenario perception module 103 determines that the terminal device 100 has no user-perceptible services when it determines that the screen state of the terminal device 100 is off and the motion state is stationary. For example, in a phone call scenario, terminal device 100 may be in a screen-off state, but the terminal device may still have user-perceptible services (such as data communication services for the current call). Therefore, simply determining whether terminal device 100 is not experiencing user-perceptible services based solely on whether its screen is off is insufficient to accurately determine if it is not. The motion state of terminal device 100 must also be evaluated. If it is determined that terminal device 100's screen is off and its motion is stationary, then it is determined that terminal device 100 has no user-perceptible services. For instance, in a phone call scenario, if terminal device 100's screen is off and its motion is moving, then it is determined that terminal device 100 is experiencing user-perceptible services.

[0044] The user experience quality assessment module 105 sends a first acquisition request to the first Wi-Fi chip 107 to obtain the channel load of the working channel of the terminal device 100. Specifically, the user experience quality assessment module 105 sends the first acquisition request to the first Wi-Fi chip 107 through the first Wi-Fi driver 106. The first Wi-Fi chip 107 obtains the channel load of the terminal device 100 according to the first acquisition request and sends the channel load to the first Wi-Fi driver 106. The first Wi-Fi driver 106 sends the channel load to the user experience quality assessment module 105. The user experience quality assessment module 105 determines the air interface quality of the working channel of the terminal device 100 based on the channel load, and determines whether an internet access lag event caused by air interface issues has occurred based on the air interface quality of the working channel. In one embodiment of this application, the working channel refers to the channel used by the terminal device 100 when communicating with the network device 200. In one embodiment of this application, if the channel load of the working channel is greater than or equal to a preset channel load threshold, i.e., the channel load of the working channel is high, the user experience quality assessment module 105 determines that the air interface quality of the working channel is poor and determines that an internet lag event caused by air interface issues has occurred, and sends the internet lag event caused by air interface issues to the first decision module 104; if the channel load of the working channel is less than the preset channel load threshold, i.e., the channel load is low, the user experience quality assessment module 105 determines that the air interface quality of the working channel of the terminal device 100 is good and determines that no internet lag event caused by air interface issues has occurred. In one embodiment of this application, the preset channel load threshold can be set according to the number of network devices connected to the working channel or the data traffic volume of the network device 200.

[0045] In another embodiment of this application, the kernel protocol stack 108 is used to determine whether a packet retransmission event has occurred on the terminal device 100. In one embodiment, after the terminal device 100 sends a packet to the network device 200, if it determines that no ACK response has been received from the network device 200 in response to the packet, the kernel protocol stack 108 determines that a packet retransmission event has occurred on the terminal device 100 and sends the retransmission event to the user experience quality assessment module 105. Based on the packet retransmission event, the user experience quality assessment module 105 determines that the terminal device 100 is experiencing internet lag. However, this internet lag event is not caused by poor air interface quality.

[0046] In one embodiment of this application, the user experience quality assessment module 105 is further configured to acquire interference values ​​of multiple channels other than the operating channel. Specifically, the user experience quality assessment module 105 sends a second acquisition request to the first Wi-Fi chip 107 to acquire beacon frames of multiple channels other than the operating channel. For example, refer to... Figure 1If the working channel is channel 1, the user experience quality assessment module 105 sends a second acquisition request to the first Wi-Fi chip 107 to obtain beacon frames from channels other than channel 1, such as channel 2, channel 3, and channel 4. Specifically, the user experience quality assessment module 105 sends the second acquisition request to the first Wi-Fi chip 107 through the first Wi-Fi driver 106. The first Wi-Fi chip 107, according to the second acquisition request, obtains beacon frames from multiple channels other than the working channel. Each channel's beacon frame carries the identity information of at least one device (such as a mobile phone, laptop, etc.) connected to the channel. The first Wi-Fi chip 107 sends all the acquired beacon frames to the first Wi-Fi driver 106. The first Wi-Fi driver 106 then sends all the beacon frames to the user experience quality assessment module 105. The user experience quality assessment module 105 parses each beacon frame to obtain the device identity information included in each beacon frame, determines the number of devices connected to the channel corresponding to the beacon frame based on the device identity information included in each beacon frame, determines the channel interference value based on the number of devices connected to the channel, and sends the channel interference value to the first decision module 104. In one embodiment of this application, the more devices connected to the channel, the greater the interference value of the channel; the fewer devices connected to the channel, the smaller the interference value of the channel.

[0047] When the first decision module 104 determines that the network device 200 has channel switching functionality, the terminal device 100 experiences internet lag due to air interface issues, and the interference values ​​of channels other than the working channel are low, if it receives a message from the service scenario awareness module 10 indicating that there are no user-perceptible services, it selects at least one channel from channels other than the working channel as the switching channel based on the channel interference value, and sends a switching command carrying the switching channel to the network device 200. In one embodiment of this application, the first decision module 105 sends an inquiry request to the network device 200 regarding whether it has channel switching functionality, and determines that the network device 200 has channel switching functionality upon receiving a reply from the network device 200 confirming that it does. For example, the first decision module 105 sends an inquiry request to the first Wi-Fi driver 106 regarding whether it has channel switching functionality, and the first Wi-Fi driver 106 sends the inquiry request to the first Wi-Fi chip 107. The first Wi-Fi chip 107 sends an inquiry request to the network device 200 and receives a reply from the network device 200 confirming that it has channel switching functionality. The first Wi-Fi chip 107 sends a response indicating channel switching functionality to the first decision module 105 via the first Wi-Fi driver 106. The first decision module 105 determines that the network device 200 possesses channel switching functionality based on the response sent by the network device 200.

[0048] In one embodiment of this application, the network device 200 includes a monitoring module 201, a second decision module 202, a second Wi-Fi driver 203, and a second Wi-Fi chip 204.

[0049] The monitoring module 201 receives the switching instruction sent by the terminal device 100, determines the number of devices connected to the network device 200, and sends the switching instruction and the number of devices connected to the network device 200 to the second decision module 202. In one embodiment of this application, the monitoring module 201 determines the number of devices connected to the network device 200 by obtaining the number of identity identifiers of the devices communicating with the network device 200. For example, if the number of identity identifiers of the devices communicating with the network device 200 includes the identifier of the terminal device 100 and the identifier of the laptop computer, a total of two identity identifiers, then the monitoring module 201 determines that the number of devices connected to the network device 200 is 2.

[0050] The second decision module 202 receives the switching command and the number of devices connected to the network device 200 from the monitoring module 201. If it is determined that the number of devices connected to the network device 200 is greater than one, the second decision module 202 does not respond to the switching command. If it is determined that the number of devices connected to the network device 200 is one, that is, it is determined that the network device 200 is only connected to the terminal device 100, the second decision module 202 obtains the channel load of the working channel from the second Wi-Fi chip 204 to verify the channel load of the working channel between the terminal device 100 and the network device 200. Specifically, the second decision module 202 sends a third acquisition request to the second Wi-Fi chip 204 through the second Wi-Fi driver 203. The second Wi-Fi chip 204 obtains the channel load of the working channel of the network device 200 according to the third acquisition request and sends the channel load of the working channel of the network device 200 to the second Wi-Fi driver 203. The second Wi-Fi driver 203 sends the channel load to the second decision module 202. If the channel load of the working channel is determined to be greater than or equal to the preset channel load threshold (i.e., the channel load of the working channel is determined to be high), and the number of devices connected to network device 200 is one, then the second decision module 202 parses the switching channel from the switching command, sets the working channel of network device 200 as the switching channel, restarts network device 200, and makes network device 200 work on the new working channel. After reconnecting to network device 200, terminal device 100 communicates with network device 200 through the new working channel, thereby resolving the problem of lag when accessing the Internet on terminal device 100 and improving the user's Internet experience.

[0051] refer to Figure 3The diagram shown is a flowchart of an internet connection method according to an embodiment of this application. The method disclosed in this application, or the method shown in the flowchart, includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchanged, and some steps can be omitted. Some embodiments will be described below with reference to the accompanying drawings. The internet connection method includes the following steps.

[0052] Step S301: The terminal device establishes a communication connection with the network device.

[0053] To facilitate clear description of the example, the following description uses a mobile phone as the terminal device, a router as the network device 200, and a Wi-Fi connection as the communication connection to illustrate the specific implementation of the internet connection method. In one embodiment of this application, the mobile phone responds to the user's selection of the Wi-Fi network option in the phone's network settings interface and establishes a Wi-Fi connection with the router. (See reference...) Figure 4 The diagram shown is a schematic representation of a network settings interface provided in an embodiment of this application. The network settings interface includes a Wi-Fi network switch option and at least one Wi-Fi network connection option. Each Wi-Fi network connection option corresponds to a router. After the mobile phone detects that the user has enabled the Wi-Fi network switch option and selected a Wi-Fi network connection option on the network settings interface, a Wi-Fi connection is established between the mobile phone and the router corresponding to the selected Wi-Fi network connection option.

[0054] refer to Figure 5The diagram illustrates a communication connection between a mobile phone and a router according to an embodiment of this application. In one embodiment, the mobile phone and the router establish a Wi-Fi connection via Wi-Fi network protocols (such as 802.11a, 802.11b, and 802.11e). In another embodiment, the mobile phone can interact with the router sequentially through a sequence of Probe frames, Authentication frames, Association frames, and Dynamic Host Configuration Protocol (DHCP) frames to establish the Wi-Fi connection. Specifically, in the Probe frame interaction, the mobile phone sends a Probe Request to discover if there is a connectable router in the surrounding environment. If the mobile phone receives a Probe Response frame from the router, it confirms the presence of a connectable router. In the Authentication frame interaction, the mobile phone sends an Authentication Request frame to determine if the capabilities of the mobile phone and the router are compatible. If the mobile phone receives a Successful Authentication Response frame from the router, it confirms that the capabilities of the mobile phone and the router are compatible. In the Association frame interaction process, the mobile phone sends an Association Request frame to request an association with the router. If the mobile phone receives an Association Response frame from the router carrying a successful association reply, then the mobile phone is confirmed to be associated with the router. In the DHCP frame interaction process, the mobile phone can establish a communication connection with the router based on the IP address configured on the router. The methods by which a mobile phone establishes a Wi-Fi connection with a router via the Wi-Fi network protocol can refer to existing related technologies; the detailed interaction process of establishing a Wi-Fi connection between a mobile phone and a router will not be described here.

[0055] In one embodiment of this application, establishing a Wi-Fi connection between a mobile phone and a router via the Wi-Fi network protocol includes: the first Wi-Fi chip of the mobile phone can establish a connection with the second Wi-Fi chip of the router via the Wi-Fi network protocol.

[0056] In step S302, the terminal device sends a lookup request to the network device, wherein the lookup request is used to determine whether the network device has channel switching functionality.

[0057] In one embodiment of this application, reference is made to Figure 5After establishing a connection with the router, the mobile phone sends a discover request frame to the router to determine whether the network device has channel switching capability. Channel switching capability refers to the router's ability to set and update its operating channels.

[0058] In step S303, after receiving the confirmation response sent by the network device in response to the search request, the terminal device determines that the network device has the channel switching function.

[0059] In one embodiment of this application, after the mobile phone receives the support (Ack) response frame sent by the network device in response to the lookup request, it determines that the router has the channel switching function, thus realizing the mobile phone's confirmation of the router's channel switching function.

[0060] In step S304, the terminal device obtains the channel load of the working channel and determines whether the channel load of the working channel is less than a preset channel load threshold. If the channel load of the working channel is greater than or equal to the preset channel load threshold, proceed to step S305; if the channel load of the working channel is less than the preset channel load threshold, return to step S304 and continue monitoring the channel load of the working channel.

[0061] In one embodiment of this application, the user experience quality assessment module of the mobile phone sends a first acquisition request to the first Wi-Fi chip of the mobile phone via the first Wi-Fi driver. The first Wi-Fi chip, based on the first acquisition request, acquires the channel load of the mobile phone's working channel and sends the channel load of the working channel to the first Wi-Fi driver. The first Wi-Fi driver then sends the channel load of the working channel to the user experience quality assessment module of the mobile phone. The user experience quality assessment module compares the channel load of the working channel with a preset channel load threshold to determine the comparison result between the channel load of the working channel and the preset channel load threshold. In one embodiment of this application, the preset channel load threshold can be set according to the number of routers connected to the working channel or the data traffic volume of the routers. The user experience quality assessment module compares the number of routers on the working channel with the number of routers corresponding to the preset channel load threshold to determine the comparison result between the channel load of the working channel and the preset channel load threshold.

[0062] Step S305: The terminal device determines that an internet access lag event has occurred due to an air interface issue.

[0063] In one embodiment of this application, if it is determined that the channel load of the working channel is greater than or equal to a preset channel load threshold, it is determined that the air interface quality of the mobile phone's working channel does not meet the preset conditions. For air interface quality that does not meet the preset conditions, it can be determined that the air interface quality is poor, and it can be determined that an internet access lag event caused by air interface reasons has occurred. The internet access lag event caused by air interface reasons is then sent to the first decision module of the mobile phone. If it is determined that the channel load of the working channel is less than the preset channel load threshold, it is determined that the air interface quality of the mobile phone's working channel meets the preset conditions (i.e., it indicates that the air interface quality of the working channel is good), and it is determined that no internet access lag event caused by air interface reasons has occurred.

[0064] In step S306, the terminal device determines whether it has detected a channel with an interference value less than a preset interference value. If the terminal device detects a channel with an interference value less than the preset interference value, it proceeds to step S307; otherwise, if the terminal device has not detected a channel with an interference value less than the preset interference value, it returns to step S306.

[0065] In one embodiment of this application, the user experience quality assessment module of the mobile phone acquires the interference values ​​of multiple channels other than the working channel, and determines the channel whose interference value is less than a preset interference value based on the interference values ​​of the multiple channels. Specifically, the user experience quality assessment module of the mobile phone sends a second acquisition request to the first Wi-Fi chip of the mobile phone through the first Wi-Fi driver of the mobile phone. The first Wi-Fi chip acquires beacon frames of multiple channels other than the working channel according to the second acquisition request. Each beacon frame of a channel carries the identity information of at least one device. The first Wi-Fi chip sends all acquired beacon frames to the first Wi-Fi driver. The first Wi-Fi driver sends all beacon frames to the user experience quality assessment module of the mobile phone. The user experience quality assessment module parses each beacon frame to obtain the identity information of the device included in each beacon frame, and determines the number of devices connected on the channel corresponding to the beacon frame based on the identity information of the device included in each beacon frame, uses the number of devices connected on the channel as the interference value of the channel, and sends the interference value of the channel to the first decision module of the mobile phone. The devices connected on the channel can be laptops, tablets, or other users' mobile phones. The first decision module compares the channel's interference value with a preset interference value, and determines that a channel with an interference value less than the preset interference value has been detected when the channel's interference value is less than the preset interference value. In one embodiment of this application, the more devices connected to the channel, the greater the interference value of the channel; conversely, the fewer devices connected to the channel, the smaller the interference value of the channel.

[0066] In step S307, the terminal device acquires the screen state and motion state of the terminal device, and determines whether the terminal device has no user-perceptible service based on the screen state and motion state. If it is determined that the terminal device has no user-perceptible service, proceed to step S308; if it is determined that the terminal device has user-perceptible service, return to step S307.

[0067] In one embodiment of this application, the screen-on sensing module of the mobile phone acquires the screen state of the mobile phone and sends the screen state to the service scenario sensing module of the mobile phone. The screen state of the mobile phone includes a screen-on state and a screen-off state. For example, the screen-on sensing module of the mobile phone calls the isScreenOn() function of the power management system. If the isScreenOn() function returns a boolean value of true, the screen state of the mobile phone is determined to be a screen-on state; if the isScreenOn() function returns a boolean value of false, the screen state of the mobile phone is determined to be a screen-off state.

[0068] The phone's motion state perception module determines the phone's motion state and sends this state to the service scenario perception module. The motion state includes both moving and stationary states. For example, the phone's motion state perception module detects the phone's acceleration or speed using an accelerometer. If the phone's acceleration is greater than or equal to a preset acceleration value, or its speed is greater than or equal to a preset speed value, the phone is determined to be in a moving state. If the phone's acceleration is less than the preset acceleration value, or its speed is less than the preset speed value, the phone is determined to be stationary.

[0069] The mobile phone's service scenario perception module obtains the screen state from the screen-on perception module and the motion state from the motion state perception module, and determines whether the mobile phone has no user-perceptible services based on the screen state and motion state. In one embodiment of this application, the service scenario perception module determines that the mobile phone has no user-perceptible services when it determines that the screen state is off and the motion state is stationary. In another embodiment of this application, the service scenario perception module determines that the mobile phone has no user-perceptible services when it determines that the screen state is off.

[0070] In step S308, the terminal device selects at least one channel from all channels with interference values ​​less than a preset interference value as the switching channel, and sends a switching instruction carrying the switching channel to the network device.

[0071] In one embodiment of this application, the first decision module of the mobile phone selects the channel with the lowest interference value from all channels with interference values ​​less than a preset interference value as the switching channel, and sends a switching command carrying the switching channel to the network device. The switching command is used to instruct the network device to set the working channel according to the switching channel carried in the switching command. In this embodiment, the first decision module of the mobile phone selects the channel with the lowest interference value from all channels with interference values ​​less than a preset interference value as the switching channel, and instructs the network device to set the working channel according to the switching channel. This can reduce the channel load of the working channel between the mobile phone and the router, improve the data transmission rate between the mobile phone and the router, and thus improve the mobile phone's Internet access experience.

[0072] refer to Figure 5 As shown in one embodiment of this application, after the terminal device sends a handover command to the network device, if it receives an Ack response frame from the network device in response to the handover command, it determines that the network device has received the handover command.

[0073] Step S309: The network device parses the switching channel from the switching command sent by the terminal device, sets the working channel of the network device as the switching channel, and restarts the network device.

[0074] In one embodiment of this application, the router's monitoring module receives a handover command sent by a mobile phone. For example, the router's monitoring module receives the handover command sent by the mobile phone through the router's second Wi-Fi chip. The monitoring module is also used to determine the number of devices connected to the router and send the handover command and the number of devices connected to the router to the router's second decision module. If it is determined that the number of devices connected to the router is greater than one, the second decision module does not respond to the handover command. If it is determined that the number of devices connected to the router is one, that is, it is determined that the router is only connected to the mobile phone, the second decision module sends a third acquisition request to the router's second Wi-Fi chip through the router's second Wi-Fi driver. The second Wi-Fi chip acquires the channel load of the router's working channel according to the third acquisition request and sends the channel load of the working channel to the second Wi-Fi driver. The second Wi-Fi driver sends the channel load to the second decision module. If the channel load of the working channel is determined to be greater than or equal to the preset channel load threshold, that is, if the working channel load is high or the channel is busy, and the number of devices connected to the router is 1, then the second decision module parses the switching channel from the switching instruction, sets the router's working channel to the switching channel, restarts the router, and makes the router work on the new working channel, that is, the switching channel.

[0075] In step S310, the network device sends a channel setup success notification to the terminal device.

[0076] In one embodiment of this application, reference is made to Figure 5 As shown, after the router completes the setting of the working channel and restarts to take effect, it sends a notification of successful channel setting to the mobile phone.

[0077] In step S311, the terminal device responds to the channel setting success notification by sending an Ack reply to the network device.

[0078] In one embodiment of this application, the mobile phone responds to the channel setup success notification sent by the router by replying with an Ack response to the router, indicating that it has received the channel setup success notification.

[0079] Step S312: The terminal device re-establishes a connection with the network device.

[0080] In one embodiment of this application, the mobile phone interacts with the router sequentially according to the interaction flow of probe frames, authentication frames, association frames, and dynamic host configuration protocol frames, and then re-establishes the Wi-Fi connection between the mobile phone and the router. The process of establishing a Wi-Fi connection between the mobile phone and the router can be referred to the description of step S301, and will not be repeated here.

[0081] In another embodiment of this application, in step S309, the network device parses the switching channel from the switching instruction sent by the terminal device, sets the working channel of the network device as the switching channel, and sends a setting success notification to the terminal device. After sending the setting success notification, the network device restarts so that the set working channel takes effect.

[0082] In the above embodiments, when the terminal device determines that the air interface quality of the working channel for communication with the network device is poor, it scans the interference values ​​of other channels and selects the channel with the lowest interference value as the switching channel. When it is determined that there are no user-perceptible services on the terminal device, it sends a channel switching command to the network device. The network device parses the switching channel from the switching command, sets the network device's working channel as the switching channel, restarts the network device, and makes the network device work on the new working channel. After reconnecting to the network device, the terminal device communicates with the network device through the new working channel, thereby solving the problem of lag when the terminal device accesses the internet and improving the user's internet experience. In addition, by confirming user-perceptible services in the above embodiments, the problem of the user being able to perceive the network disconnection during the network device's channel restart and setting process, which affects the internet experience, can be avoided. The terminal device involved in the embodiments of this application will be described below.

[0083] refer to Figure 6 The diagram shown is a hardware structure schematic of a terminal device provided in an embodiment of this application. The terminal device may be... Figure 1Terminal device 100.

[0084] In this embodiment, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0085] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0086] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0087] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0088] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0089] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0090] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the terminal device 100.

[0091] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.

[0092] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0093] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.

[0094] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the shooting function of the terminal device 100. The processor 110 and the display screen 194 communicate via the DSI interface to enable the display function of the terminal device 100.

[0095] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0096] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge terminal device 100, and can also be used for data transfer between terminal device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other terminal devices 100, such as AR devices.

[0097] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may also adopt different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.

[0098] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the terminal device 100. While charging the battery 142, the charging management module 140 can also supply power to the terminal device 100 via the power management module 141.

[0099] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0100] The wireless communication function of the terminal device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.

[0101] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0102] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0103] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0104] The wireless communication module 160 can provide solutions for wireless communication applications on the terminal device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0105] In some embodiments, antenna 1 of terminal device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling terminal device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0106] Terminal device 100 implements display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0107] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0108] Terminal device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0109] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0110] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the terminal device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0111] A digital signal processor (DSP) is used to process digital signals. Besides digital image signals, it can also process other digital signals. For example, when terminal device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0112] Video codecs are used to compress or decompress digital video. Terminal device 100 may support one or more video codecs. Thus, terminal device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.

[0113] NPU stands for Neural Network (NN) Computing Processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in terminal devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0114] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM).

[0115] Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), and double data rate synchronous dynamic random access memory (DDR SDRAM, such as fifth-generation DDR SDRAM, which is generally called DDR5 SDRAM). Non-volatile memory can include disk storage devices and flash memory.

[0116] Flash memory can be classified according to its operating principle, including NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.; according to the level of the storage cell, including single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc.; and according to the storage specification, including universal flash storage (UFS) and embedded multimedia card (eMMC), etc.

[0117] The random access memory can be directly read and written by the processor 110. It can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data.

[0118] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 110.

[0119] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the terminal device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.

[0120] Internal memory 121 or external memory interface 120 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 110. The one or more computer programs include multiple instructions, which, when executed by the processor 110, can implement the internet connection method on the terminal device 100 in the above embodiments to achieve the function of preventing internet lag on the terminal device 100.

[0121] Terminal device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0122] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0123] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or make hands-free calls through the speaker 170A.

[0124] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the terminal device 100 answers a phone call or voice message, the receiver 170B can be brought close to the listener's ear to hear the voice.

[0125] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Terminal device 100 may be equipped with at least one microphone 170C. In some embodiments, terminal device 100 may be equipped with two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, terminal device 100 may be equipped with three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0126] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0127] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Terminal device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, terminal device 100 detects the intensity of the touch operation based on pressure sensor 180A. Terminal device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example: when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0128] The gyroscope sensor 180B can be used to determine the motion attitude of the terminal device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the terminal device 100 around three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the terminal device 100's shake, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the terminal device 100 through reverse movement, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.

[0129] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0130] The magnetic sensor 180D includes a Hall sensor. The terminal device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. In some embodiments, when the terminal device 100 is a flip phone, the terminal device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.

[0131] The 180E accelerometer can detect the magnitude of acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the terminal device 100, and can be applied to applications such as landscape / portrait switching and pedometers.

[0132] A distance sensor 180F is used to measure distance. The terminal device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, the terminal device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.

[0133] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The terminal device 100 emits infrared light outward through the LED. The terminal device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100. The terminal device 100 may use the proximity sensor 180G to detect when a user holds the terminal device 100 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and screen locking.

[0134] The ambient light sensor 180L is used to sense the ambient light intensity. The terminal device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light intensity. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the terminal device 100 is in a pocket to prevent accidental touches.

[0135] The fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0136] Temperature sensor 180J is used to detect temperature. In some embodiments, terminal device 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, terminal device 100 reduces the performance of the processor located near temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is below another threshold, terminal device 100 heats battery 142 to prevent abnormal shutdown of terminal device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, terminal device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.

[0137] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of terminal device 100, in a different position than display screen 194.

[0138] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180M can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 180M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 180M to realize heart rate detection functionality.

[0139] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Terminal device 100 can receive button input and generate key signal inputs related to user settings and function control of terminal device 100.

[0140] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0141] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0142] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the terminal device 100. The terminal device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.

[0143] This embodiment also provides a computer storage medium storing computer instructions. When the computer instructions are executed on the terminal device 100, the terminal device 100 performs the aforementioned related method steps to implement the Internet connection method in the above embodiment.

[0144] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the Internet connection method described in the above embodiment.

[0145] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute the Internet connection method in the above method embodiments.

[0146] In this embodiment, the terminal device 100, computer storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0147] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0148] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0149] The unit described as a separate component may or may not be physically separate. The component shown as a unit can be one physical unit or multiple physical units, that is, it can be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of the solution in this embodiment according to actual needs.

[0150] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0151] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0152] The above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to the above preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions to the technical solutions of this application should not depart from the spirit and scope of the technical solutions of this application.

Claims

1. A method for connecting to the Internet, applied in a communication system, characterized in that, The communication system includes terminal equipment and network equipment, and the method includes: When the terminal device determines that the network device has a channel switching function, it obtains the channel load of the terminal device's working channel. If an internet lag event caused by an air interface problem is determined based on the channel load of the working channel, the terminal device determines whether it has detected an interference value of a channel that is less than a preset interference value. If the interference value of at least one channel is detected to be less than the preset interference value, the terminal device acquires the screen status and motion status. If it is determined from the screen state and the motion state that the terminal device has no user-perceptible service, the terminal device determines the switching channel from at least one detected channel and sends a switching instruction carrying the switching channel to the network device. The network device responds to the handover command, parses the handover command to determine the handover channel, sets the handover channel as the updated working channel, and restarts the network device; In response to a notification of successful channel setup sent from the network device, the terminal device re-establishes a communication connection with the network device.

2. The Internet connection method as described in claim 1, characterized in that, The determination of internet lag events caused by air interface issues based on the channel load of the working channel includes: If the channel load of the working channel is greater than or equal to a preset channel load threshold, it is determined that the air interface quality of the working channel does not meet the preset conditions, and it is determined that an internet lag event caused by the air interface issue has occurred.

3. The Internet connection method as described in claim 1, characterized in that, The detection that the interference value of a channel is less than a preset interference value includes: Acquire beacon frames from multiple channels other than the operating channel; The beacon frames of each channel are parsed to obtain the identity information of at least one device carried in the beacon frames of each channel, and the number of devices connected to each channel is determined based on the identity information of the at least one device. The number of devices connected to each channel is used as the interference value of the corresponding channel. The interference value of each channel is compared with a preset interference value, and if the interference value of at least one channel is less than the preset interference value, the channel with the interference value less than the preset interference value is determined.

4. The Internet connection method as described in claim 1, characterized in that, Determining the switching channel from at least one detected channel includes: The channel with the smallest interference value is selected from all channels whose interference value is less than a preset interference value as the switching channel.

5. The Internet connection method as described in claim 1, characterized in that, The network device responds to the handover command and parses the handover command to determine the handover channel, including: The network device determines the number of devices connected to it; If the network device connects to a device, it obtains the channel load of the working channel, and if it determines that the channel load of the working channel is greater than or equal to a preset channel load threshold, it parses the switching channel from the switching instruction.

6. The Internet connection method as described in claim 5, characterized in that, The method further includes: If the network device is connected to multiple devices, the network device does not respond to the switching command.

7. The Internet connection method as described in claim 1, characterized in that, The terminal device acquires screen status including: This function invokes the isScreenOn() function of the power management system of the terminal device. If the isScreenOn() function returns a boolean value of true, the screen state of the terminal device is determined to be on; if the isScreenOn() function returns a boolean value of false, the screen state of the terminal device is determined to be off.

8. The Internet connection method as described in claim 1, characterized in that, The terminal device acquires motion status including: The terminal device detects the moving acceleration of the terminal device through an acceleration sensor; If the moving acceleration is greater than or equal to a preset acceleration value, it is determined that the terminal device is in a moving state; If the moving acceleration is less than the preset acceleration value, the terminal device is determined to be in a stationary state.

9. The Internet connection method as described in claim 1, characterized in that, The step of determining that the terminal device has no user-perceptible service based on the screen state and the motion state includes: If the screen state is determined to be off and the motion state is determined to be stationary, the terminal device determines that there is no user-perceptible service.

10. The Internet connection method as described in claim 1, characterized in that, The step of determining that the network device has channel switching functionality includes: The terminal device sends a lookup request to the network device, the lookup request being used to determine whether the network device has a channel switching function; If the terminal device receives an acknowledgment response from the network device, it determines that the network device has channel switching functionality.

11. An internet connection method, applied to a terminal device, characterized in that, The terminal device is communicatively connected to the network device, and the method includes: If it is determined that the network device has a channel switching function, the channel load of the working channel of the terminal device is obtained; If an internet lag event caused by an air interface problem is determined based on the channel load of the working channel, it is determined whether an interference value of a channel is detected to be less than a preset interference value. If the interference value of at least one channel is detected to be less than the preset interference value, the screen state and motion state of the terminal device are obtained. If it is determined from the screen state and the motion state that the terminal device has no user-perceptible service, a switching channel is determined from at least one detected channel, and a switching instruction carrying the switching channel is sent to the network device. The switching instruction is used to instruct the network device to set the working channel according to the switching channel carried in the switching instruction. In response to a notification of successful channel setup sent from the network device, the terminal device re-establishes a connection with the network device.

12. The Internet connection method as described in claim 11, characterized in that, The determination of internet lag events caused by air interface issues based on the channel load of the working channel includes: If the channel load of the working channel is greater than or equal to a preset channel load threshold, it is determined that the air interface quality of the working channel does not meet the preset conditions, and it is determined that an internet lag event caused by the air interface issue has occurred.

13. The Internet connection method as described in claim 11, characterized in that, The detection that the interference value of a channel is less than a preset interference value includes: Acquire beacon frames from multiple channels other than the operating channel; The beacon frames of each channel are parsed to obtain the identity information of at least one device carried in the beacon frames of each channel, and the number of devices connected to each channel is determined based on the identity information of the at least one device. The number of devices connected to each channel is used as the interference value of the corresponding channel. The interference value of each channel is compared with a preset interference value, and if the interference value of at least one channel is less than the preset interference value, the channel with the interference value less than the preset interference value is determined.

14. The Internet connection method as described in claim 11, characterized in that, Determining the switching channel from at least one detected channel includes: The channel with the smallest interference value is selected from all channels whose interference value is less than a preset interference value as the switching channel.

15. The Internet connection method as described in claim 11, characterized in that, The step of determining that the terminal device has no user-perceptible service based on the screen state and the motion state includes: If the screen state is determined to be off and the motion state is determined to be stationary, then there is no user-perceptible service.

16. The Internet connection method as described in claim 11, characterized in that, The step of determining that the network device has channel switching functionality includes: Send a lookup request to the network device, the lookup request being used to determine whether the network device has channel switching functionality; If an acknowledgment response is received from the network device, it is determined that the network device has channel switching functionality.

17. An internet connection method, applied to a network device, characterized in that, The network device is communicatively connected to the terminal device in the method as described in any one of claims 11-16, the method comprising: In response to the search request sent by the terminal device, an acknowledgment reply is sent to the terminal device to indicate that the network device has channel switching functionality; The network device receives a handover command sent by the terminal device, parses the handover command to determine the handover channel, sets the handover channel as the updated working channel, and restarts the network device. A notification of successful channel setup will be sent to the terminal device.

18. The Internet connection method as described in claim 17, characterized in that, The process of parsing the switching command to determine the switching channel includes: Determine the number of devices connected to the network device; If the network device connects to a device, it obtains the channel load of the working channel, and if it determines that the channel load of the working channel is greater than or equal to a preset channel load threshold, it parses the switching channel from the switching instruction.

19. The Internet connection method as described in claim 17, characterized in that, The method further includes: If the network device is connected to multiple devices, it does not respond to the switching command.

20. A terminal device, characterized in that, Includes a processor and a memory; wherein the processor is connected to the memory; The memory is used to store program instructions; The processor is configured to read the program instructions stored in the memory to implement the Internet connection method as described in any one of claims 11 to 16.

21. A network device, characterized in that, Includes a processor and a memory; wherein the processor is connected to the memory; The memory is used to store program instructions; The processor is configured to read the program instructions stored in the memory to implement the Internet connection method as described in any one of claims 17 to 19.

22. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program instructions that, when executed on an electronic device, cause the electronic device to perform the Internet connection method as described in any one of claims 1 to 19.

Citation Information

Patent Citations

  • Link quality assessment method of multi-channel wireless network

    CN104853380A

  • Dynamic adjustment method for metallurgical machinery monitoring communication network channel under complex working conditions

    CN116232500A