Network connection method, system and related device
By detecting the wake-up event frequency and the device's low power consumption mode, turning off the Wi-Fi module, solving the high power consumption problem caused by the wearable device running on the Wi-Fi network for a long time, and re-activate the Wi-Fi module when needed. Ensure user experience.
Patent Information
- Application Number
- CN202311023846.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2025-02-21
AI Technical Summary
Under Wi-Fi networks, wearable devices often receive multicast packets, unicast packets and broadcast packets, causing the device to be in operation for a long time and increase power consumption.
Turn off the Wi-Fi module by detecting the frequency of wake-up events and the device's low power consumption mode; restart the Wi-Fi module when certain conditions are met to reduce the device's power consumption.
It effectively avoids the increase in power consumption caused by frequent wake-up devices in low-power mode, and ensures the Wi-Fi module is turned on when needed to ensure user experience.
Smart Images

Figure CN119497195A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a network connection method, system and related devices. Background Art
[0002] With the continuous development of communication technology, more and more wearable devices are integrated with wireless fidelity (Wi-Fi) chips, so that the wearable devices can connect to Wi-Fi networks.
[0003] However, in a Wi-Fi network, wearable devices often receive multicast packets, unicast packets, and broadcast packets in the Wi-Fi network. These data packets usually do not have specific services, but will cause the wearable device system to be in operation for a long time, which will cause the wearable device to consume too much power. Summary of the invention
[0004] The present application provides a network connection method, system and related devices, which realize turning off a wireless fidelity Wi-Fi module when a first electronic device is in a low power consumption mode, and keeping the Wi-Fi module turned on in a non-low power consumption mode, thereby reducing the power consumption of the first electronic device.
[0005] In a first aspect, the present application provides a network connection method, which is applied to a first electronic device, and the method includes: establishing a Wi-Fi connection with a network connection device through a wireless fidelity Wi-Fi module; when it is detected that the number of occurrences of a wake-up event within a first time period is greater than the first number, and the first electronic device is in a low power consumption mode, turning off the Wi-Fi module; the wake-up event is an event in which an interrupt controller is triggered to wake up the first electronic device from a sleep state to a working state when the first electronic device receives a data packet through a Wi-Fi connection.
[0006] In this way, power consumption caused by frequently waking up the electronic device in low power consumption mode can be avoided.
[0007] In some possible implementations, the sleep state of the first electronic device is a state in which the first electronic device stops supplying power to a central processing unit (CPU) of the first electronic device, and the working state of the first electronic device is a state in which the first electronic device supplies power to the CPU.
[0008] In some possible implementations, the method further includes: when it is detected that the first electronic device has kept the screen off and has not been worn by the user for a first period of time, and the first electronic device is in a low power consumption mode, turning off the Wi-Fi module.
[0009] In this way, the Wi-Fi module can be turned off when the watch is not worn to reduce power consumption.
[0010] In some possible implementations, the method further includes: when it is detected that the lock duration of the Wi-Fi module reaches a second duration and the first electronic device is in a low power consumption mode, turning off the Wi-Fi module.
[0011] In this way, the power consumption caused by long-term Wi-Fi lock can be avoided.
[0012] In some possible implementations, detecting that the first electronic device is in a low power consumption mode specifically includes: detecting that the power level of the first electronic device is less than a power threshold; or, detecting that the first electronic device is in a screen-off state; or, detecting that the first electronic device is not executing any service or that the service being executed is not a perceptible service, and perceptible services include: download service, music service, video service, call service, and applications on the first list applying for network keep-alive service.
[0013] In some possible implementations, after turning off the Wi-Fi module, the method further includes: turning on the Wi-Fi module when it is detected that a turn-on condition is met; the turn-on condition includes any one or more of the following: the first electronic device is in a charging state and the power is greater than a power threshold, an application on the first list applies for a network keep-alive service, an operation by a user on a button is received, the first electronic device is in a screen-on state and a touch screen operation is received, or an operation by a user to pull down a shortcut menu is received.
[0014] In this way, when the activation condition is met, the first electronic device can re-activate the Wi-Fi module.
[0015] In some possible implementations, the method further includes: establishing a communication connection with a second electronic device when a Wi-Fi connection is established with a network connection device via a Wi-Fi module, the second electronic device being used for communication between the first electronic device and a third electronic device; and after establishing a communication connection with the second electronic device, turning off the Wi-Fi module.
[0016] In this way, the first electronic device can communicate with the third electronic device through the second electronic device. The power consumption can also be reduced by turning off the Wi-Fi module.
[0017] In some possible implementations, the communication connection established between the first electronic device and the second electronic device includes: a Bluetooth connection, a near-field wireless communication NFC connection, and an infrared IR connection.
[0018] In some possible implementations, after establishing a communication connection with a second electronic device, turning off the Wi-Fi module specifically includes: after establishing a communication connection with the second electronic device, receiving network connection information sent by the second electronic device, the network connection information including any one or more of the following: network status, operating system identification, power status; when it is determined based on the network connection information that the second electronic device supports the first electronic device to communicate with the third electronic device through the second electronic device, turning off the Wi-Fi module.
[0019] In this way, the first electronic device can determine whether the second electronic device supports the first electronic device to communicate with the third electronic device through the second electronic device based on the network connection information.
[0020] In some possible implementations, after establishing a communication connection with a second electronic device, turning off the Wi-Fi module specifically includes: after establishing a communication connection with the second electronic device, receiving a first notification sent by the second electronic device, the first notification being used to indicate that the second electronic device supports the first electronic device to communicate with a third electronic device through the second electronic device; after receiving the first notification, turning off the Wi-Fi module.
[0021] In this way, the second electronic device can determine whether to support the communication between the first electronic device and the third electronic device, and send the determination result to the first electronic device.
[0022] In some possible implementations, the method further includes: after establishing a communication connection with the second electronic device and turning off the Wi-Fi module, detecting that a network data transmission speed between the first electronic device and the second electronic device is less than a first speed; and turning on the Wi-Fi module.
[0023] In this way, if the first electronic device detects that the network data transmission speed is low, the Wi-Fi module can be turned on.
[0024] In some possible implementations, the method also includes: after establishing a communication connection with the second electronic device and turning off the Wi-Fi module, receiving a second notification sent by the second electronic device, the second notification being used to indicate that the second electronic device does not support the first electronic device to communicate with the third electronic device through the second electronic device; after receiving the second notification, turning on the Wi-Fi module.
[0025] In this way, when the second electronic device does not support communication between the first electronic device and the third electronic device, the Wi-Fi module can be turned on.
[0026] In some possible implementations, the method also includes: after turning off the Wi-Fi module, sending a first request for the first service to the second electronic device, the first request including a first address, and the first request being used to request the second electronic device to obtain the first data based on the first address; receiving a third notification sent by the second electronic device, the third notification being used to indicate that the second electronic device cannot obtain the first data; after receiving the third notification, turning on the Wi-Fi module; establishing a Wi-Fi connection with a network connection device through the Wi-Fi module; and obtaining the first data based on the first address through the Wi-Fi connection.
[0027] In this way, when the second electronic device cannot obtain the first data, the first electronic device can turn on the Wi-Fi module to obtain the first data. The second electronic device cannot obtain the first data may include the second electronic device temporarily cannot obtain the first data.
[0028] In some possible implementations, after receiving the third notification, turning on the Wi-Fi module specifically includes: after receiving the third notification, when it is detected that the priority of the first service is greater than or equal to a priority threshold, turning on the Wi-Fi module.
[0029] In this way, when the priority of the first service is higher, the first electronic device can turn on the Wi-Fi module to execute the first service.
[0030] In some possible implementations, the method further includes: after turning off the Wi-Fi module, establishing a communication connection with a second electronic device; sending data to a third electronic device through the second electronic device, or receiving data sent by the third electronic device through the second electronic device.
[0031] In this way, after the first electronic device turns off the Wi-Fi module, the first electronic device can also communicate with the third electronic device through the second electronic device. The third electronic device can be the above-mentioned network connection device or other electronic devices.
[0032] In a second aspect, the present application provides an electronic device, which is a first electronic device, and the first electronic device includes one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the communication device executes the network connection method in any possible implementation of any of the above aspects.
[0033] In a third aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, which, when executed on a first electronic device, enables the first electronic device to execute a network connection method in any possible implementation of any of the above aspects.
[0034] In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a first electronic device, the first electronic device executes the network connection method in any possible implementation of any of the above aspects.
[0035] The beneficial effects of the second to fourth aspects can refer to the beneficial effects of the first aspect mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1A A schematic diagram of the system architecture of a network connection system 10 provided in an embodiment of the present application;
[0037] Figure 1B A schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;
[0038] Figure 2 A flowchart of a network connection method provided in an embodiment of the present application;
[0039] Figure 3 A flowchart of a network connection method provided in an embodiment of the present application;
[0040] Figure 4 A flowchart of a network connection method provided in an embodiment of the present application;
[0041] Figure 5 A flowchart of a network connection method provided in an embodiment of the present application;
[0042] Figure 6 A flowchart of a network connection method provided in an embodiment of the present application;
[0043] Figure 7 A schematic diagram of functional modules of an electronic device 100 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0045] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0046] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0047] Some professional terms involved in the embodiments of the present application are introduced below.
[0048] Wireless fidelity (Wi-Fi) technology: Wi-Fi technology is the most widely used wireless network transmission technology today. Wi-Fi is a trademark of the Wi-Fi Alliance manufacturer as a brand certification for products. It is a wireless local area network technology created based on the IEEE 802.11 standard. Due to the close relationship between the two systems, some people often use Wi-Fi as a synonym for the IEEE 802.11 standard.
[0049] Sleep state: When an electronic device does not receive any user operation for a period of time, it can temporarily stop supplying power to the central processing unit (CPU) to save power consumption of the electronic device. The state in which the electronic device temporarily stops supplying power to the central processing unit can be called the sleep state.
[0050] Working state: The state in which the electronic device supplies power to the central processing unit can be called the working state.
[0051] Wi-Fi wake-up: Wi-Fi wake-up refers to waking up an electronic device from a dormant state to a working state through a Wi-Fi signal. Specifically, when an electronic device is in a dormant state, the electronic device can wake up the electronic device from a dormant state to a working state (i.e., re-supply power to the CPU) through an interrupt controller when receiving a Wi-Fi signal.
[0052] Wi-Fi's long-hold lock function: The long-hold lock (also called the resident lock) is a function that ensures that Wi-Fi-related services are not terminated due to system sleep and prevents the system from entering sleep mode. In addition, the long-hold lock can also be used to maintain the connection between the service and the peer device specified by the service. For some services of electronic devices, in order to ensure user experience, these services need to communicate with the peer device through a network connection for a period of time during execution. During this period of time, the service can use the Wi-Fi's long-hold lock function to ensure the connection between the service and the peer device.
[0053] Network keep-alive: Network keep-alive is a function used to maintain the connection between an application program (hereinafter referred to as application) and a peer device specified by the application. Applications installed in electronic devices can apply to the electronic devices for network keep-alive. After detecting that the application has applied for network keep-alive, the electronic device can maintain the connection between the application and the peer device (such as a server, etc.), and the peer device is the device specified by the application. Through network keep-alive, the application can perform operations such as real-time data transmission and receiving push notifications without the application being automatically closed by the system and without disconnecting the connection between the application and the peer device.
[0054] Figure 1A A schematic diagram of the system architecture of a network connection system 10 provided in an embodiment of the present application is shown.
[0055] like Figure 1A As shown, the network connection system 10 may include an electronic device 100 , an electronic device 200 , and a network connection device, which may be a router 300 .
[0056] Both the electronic device 100 and the electronic device 200 can access the network through the router 300. In the embodiment of the present application, the network accessed by the electronic device 100 through the router 300 may refer to the global Internet, that is, a huge network system formed by interconnecting computer networks around the world. The network accessed by the electronic device 100 through the router 300 may also refer to a local area network, that is, a group of computer systems connected through a computer network within a local area, and the local area network can realize functions such as resource sharing and information transmission.
[0057] In some embodiments, the electronic device 100 can establish a communication connection 2 with the router 300 through a Wi-Fi module, and based on the communication connection 2, access the network through the router 300. Communication connection 2 is a Wi-Fi connection. In other embodiments, the electronic device 100 can also establish a communication connection 1 with the electronic device 200, and the communication connection 1 can be a Bluetooth connection, or a wireless communication connection such as an infrared connection, a short-range wireless communication connection, etc. The electronic device 200 can establish a communication connection 3 with the router 300. At this time, the electronic device 100 can access the network through the electronic device 200 and the router 300. In other embodiments, the electronic device 200 can also access the network through another network connection device (such as a base station, or other routers, etc.), and the electronic device 100 can access the network through the electronic device 100 and the base station.
[0058] In the network connection system 10, the electronic device 100 may be Figure 1A The watch shown may also be other types of wearable devices such as a bracelet; the electronic device 200 may be Figure 1A The mobile phone shown may also be other types of electronic devices such as a tablet, a laptop computer, etc.; the router 300 may be replaced by a base station, or replaced by other types of electronic devices.
[0059] Understandably, Figure 1A The embodiment shown is only an example. In the embodiment of the present application, the network connection system 10 may also include Figure 1A More, less, or with Figure 1A The present application does not limit the devices in the different embodiments shown.
[0060] In the embodiment of the present application, the electronic device 100 may also be referred to as a first electronic device, and the electronic device 200 may also be referred to as a second electronic device.
[0061] Figure 1B A schematic structural diagram of an electronic device 100 is shown.
[0062] The electronic device 100 may be a wearable device such as a watch, a bracelet, or smart glasses. In some embodiments, the electronic device 100 may also be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a vehicle-mounted device, a smart home device, and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device.
[0063] The electronic device 100 may include a processor 110, an internal memory 121, a charging management module 140, a power management module 141, a battery 142, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a display screen 194, and an interrupt controller 195, etc. The sensor module 180 may include a touch sensor 180K, and optionally, may also include any one or more of the following sensors: a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0064] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0065] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The processor 110 may include a central processing unit.
[0066] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0067] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved. In some embodiments, the processor 110 may record wake-up events, count the number of occurrences of wake-up events, and may also determine whether the electronic device 100 is in a low power consumption scenario (also referred to as a low power consumption mode).
[0068] In some embodiments, the processor 110 may include one or more interfaces. The interface 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.
[0069] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through a USB interface. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0070] The power management module 141 is used to connect 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, and provides power to the processor 110, the internal memory 121, the display screen 194, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0071] The wireless communication module 160 can provide wireless communication solutions 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), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module, such as a Wi-Fi module and a Bluetooth module, etc. When the electronic device 100 establishes a Wi-Fi connection, the electronic device 100 can receive one or more data packets (for example, multicast packets, unicast packets, and broadcast packets, etc.) through the Wi-Fi module. After receiving the data packet, the Wi-Fi module can send a signal to the interrupt controller 195, which is used to indicate that the Wi-Fi module has received the data packet.
[0072] The interrupt controller 195 can receive the signal sent by the Wi-Fi module. If the electronic device 100 is in a dormant state at this time, the interrupt controller 195 can wake up the electronic device 100 from the dormant state to the working state and re-power the processor 110. If the electronic device 100 is in a working state, the interrupt controller 195 can trigger the processor 110 to execute the Wi-Fi interrupt handler.
[0073] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0074] 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), and the display panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0075] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data. The non-volatile memory can also store executable programs and store user and application data, etc., and can be loaded into the random access memory in advance for direct reading and writing by the processor 110.
[0076] The audio module 170 may include any one or more of the following: a speaker, a receiver, a microphone, and a headphone jack. The electronic device 100 may implement audio functions through the audio module 170 and the application processor. For example, music playing, recording, etc. The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0077] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass 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 the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0078] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0079] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0080] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0081] It should be noted that in the embodiment of the present application, the hardware structure of the electronic device 200 can also refer to the above Figure 1B The hardware structure of the electronic device 100 is shown, and the electronic device 200 may include more, less or different hardware from the electronic device 100, which is not limited in the present application.
[0082] The present application provides a network connection method, in which a first electronic device (also referred to as electronic device 100) establishes a Wi-Fi connection with a network connection device through a wireless fidelity Wi-Fi module; when it is detected that the number of occurrences of a wake-up event within a first time period is greater than the first number, and the first electronic device is in a low power consumption mode, the Wi-Fi module is turned off; the wake-up event is an event in which an interrupt controller is triggered to wake up the first electronic device from a sleep state to a working state when the first electronic device receives a data packet through a Wi-Fi connection.
[0083] By using the network connection method provided by the present application, it is possible to determine whether to access the network according to the current scenario and the wake-up frequency, thereby avoiding frequent wake-up of the first electronic device in the low power consumption mode and reducing the power consumption of the first electronic device.
[0084] The following describes a specific process of a network connection method provided in an embodiment of the present application.
[0085] like Figure 2 As shown, a specific process of a network connection method may include the following steps:
[0086] S201, when the Wi-Fi module is turned on, the electronic device 100 monitors and records Wi-Fi wake-up events.
[0087] The electronic device 100 can determine whether the Wi-Fi module is turned on by whether the power supply module supplies power to the Wi-Fi module. If it is detected that the power supply module supplies power to the Wi-Fi module, it is determined that the Wi-Fi module is turned on; if it is detected that the power supply module does not supply power to the Wi-Fi module, it is determined that the Wi-Fi module is not turned on.
[0088] When the Wi-Fi module is turned on, the electronic device 100 can connect to a network connection device (eg Figure 1A The electronic device 100 may establish a Wi-Fi connection with the router 300 shown in the figure. When the Wi-Fi connection is established, the electronic device 100 may receive data packets sent through the Wi-Fi connection through the Wi-Fi module. If the electronic device 100 is in a dormant state when receiving the above-mentioned data packets, these data packets will trigger the interrupt controller to wake up the electronic device 100 from the dormant state to the working state. Among them, when the electronic device 100 supplies power to the central processing unit, the electronic device 100 is in a working state; when the electronic device 100 stops supplying power to the central processing unit, the electronic device 100 is in a dormant state. The event in which the interrupt controller wakes up the electronic device 100 from the dormant state to the working state can be called a wake-up event.
[0089] After the electronic device 100 is awakened, the electronic device 100 may record the awakening event through the CPU.
[0090] Illustratively, Table 1 shows a wake-up event table recorded by an electronic device 100 provided in an embodiment of the present application.
[0091] Table 1
[0092] Wake-up time Wake-up event 10:01:30 Event A 10:02:15 Event B 10:02:59 Event C 10:03:35 Event D
[0093] As shown in Table 1, the wake-up event table recorded by the electronic device 100 may include the wake-up event and the occurrence time of the wake-up event (also referred to as the wake-up time). According to Table 1, at 10:01:30, the electronic device 100 detects event A; at 10:02:15, the electronic device 100 detects event B; at 10:02:59, the electronic device 100 detects event C; at 10:03:35, the electronic device 100 detects event D.
[0094] It is understandable that the wake-up event table shown in Table 1 is only an example. In an embodiment of the present application, the wake-up event table recorded by the electronic device 100 may also include more, less or different content than Table 1, and the present application does not limit this.
[0095] In some embodiments, the electronic device 100 may store the recorded wake-up event table (such as Table 1 above) in a database or in other files. In other embodiments, the electronic device 100 may also be provided with a variable for counting the number of wake-up event occurrences, and the electronic device 100 may also temporarily store the wake-up event table in the variable.
[0096] S202: The electronic device 100 counts the number of wake-up events detected within a monitoring cycle.
[0097] In some embodiments, the monitoring period may be a preset time period, such as 30 seconds, 1 minute, or 5 minutes. For example, taking the wake-up event table shown in Table 1 as an example, if the monitoring period is 2 minutes, the number of wake-ups in a monitoring period corresponding to 10:01:30-10:03:30 may be 3. In some embodiments, the monitoring period may be set to a slightly longer time such as 30 minutes, 60 minutes, etc., so that the probability of false detection can be reduced.
[0098] In some embodiments, the electronic device 100 can start the wake-up monitoring as the starting time, divide the subsequent time into equal time periods, and the length of each time period is a monitoring cycle. The electronic device 100 can determine the number of occurrences of the wake-up event in each monitoring cycle according to the wake-up event table obtained in step S201.
[0099] In other embodiments, there may be a certain time interval between two adjacent monitoring cycles. For example, if the electronic device 100 detects that the number of wake-up events in the current monitoring cycle is greater than the wake-up threshold, the electronic device 100 may wait for a period of time (e.g., 3 minutes or 5 minutes) and then use the current time as the start time of a new monitoring cycle. In this way, meaningless wake-up monitoring can be avoided and power consumption can be reduced.
[0100] S203: When the electronic device 100 detects that the number of occurrences of the wake-up event within a monitoring period is greater than the wake-up threshold, it determines whether the current scene belongs to a low power consumption scene.
[0101] The wake-up threshold (also referred to as the first number) may be a preset number of times, such as 5 times, 10 times, etc. In some embodiments, the setting of the wake-up threshold may also be related to the length of the monitoring cycle. The longer the length of the monitoring cycle, the greater the wake-up threshold.
[0102] Low power consumption scenarios (also called low power consumption modes) may include any one or more of the following: low power consumption scenarios, screen off scenarios, non-perceivable service scenarios, where perceivable services may include any one or more of the following: download services, music services, video services, call services, network keep-alive services for specific applications, etc. Non-perceivable service scenarios refer to scenarios where the currently executed service does not belong to any of the above perceivable services.
[0103] The following describes several exemplary methods for determining whether the current scene is a low power consumption scene.
[0104] In some embodiments, the electronic device 100 may determine whether the current scene is a low-battery scene based on whether the battery level is lower than a preset level. In other embodiments, the electronic device 100 may also determine whether the current scene is a low-battery scene based on whether the electronic device 100 is in a charging state and whether the battery level of the electronic device 100 is lower than a preset level.
[0105] In some embodiments, the electronic device 100 can determine whether the current scene is a screen-off scene based on whether power is currently supplied to the display screen (or whether power is supplied to all areas of the display screen). It should be noted that when the electronic device 100 executes step S203, there is a time interval (for example, 2 minutes, 15 minutes, etc.) between the electronic device 100 and the above-mentioned step S201. When the electronic device 100 executes step S203, the electronic device 100 may receive and respond to the user's operation to end the screen-off state. In this case, the current scene is not a screen-off scene, nor is it a low-power consumption scene. Therefore, even if it has been detected in step S201 that the electronic device 100 is in a dormant state, the electronic device 100 can determine again whether it is in a screen-off scene in step S203.
[0106] In some embodiments, the electronic device 100 can determine whether the current scene is a non-perceptible business scene based on whether the currently executed business does not belong to the above-mentioned perceptible business. In some embodiments, the electronic device 100 can store a list of application identifiers of specific applications (also referred to as a first list). When the electronic device 100 detects that an application has applied for a network keep-alive service, it can obtain the application identifier of the application and compare it with the application identifier list of specific applications stored by the electronic device 100 to determine whether the application belongs to a specific application. After determining that the application belongs to a specific application, the electronic device 100 can determine that the current scene is not a non-perceptible business scene.
[0107] It can be understood that the low-power consumption scenarios and judgment methods described in the above embodiments are just some examples. In the embodiments of the present application, the electronic device 100 may also store more, fewer or different low-power consumption scenarios and corresponding judgment methods from the embodiments here, and the present application does not limit this.
[0108] When the electronic device 100 detects that the number of wake-up times in a monitoring cycle is greater than the wake-up threshold, it can determine whether the current scene belongs to a low power consumption scene. In the embodiment of the present application, this monitoring cycle can also be referred to as a first time period.
[0109] If the current scenario is a low power consumption scenario, the electronic device 100 may determine that the electronic device 100 has no business to be performed via Wi-Fi in the current scenario. In this case, the electronic device 100 may perform the following step S204 to turn off the Wi-Fi module.
[0110] If the current scene does not belong to the low power consumption scene, the electronic device 100 may determine that there may be services that need to be performed through Wi-Fi in the current scene, and the electronic device 100 may keep the Wi-Fi module turned on. In some embodiments, when it is detected that the number of wake-up times within the monitoring period is greater than the wake-up threshold, the electronic device 100 may re-determine whether the current scene belongs to the low power consumption scene.
[0111] In some embodiments, if the current scene does not belong to the low power consumption scene, the electronic device 100 may also wait for a fixed period of time (e.g., 5 minutes) while keeping the Wi-Fi module turned on before executing the above step S202. In this way, it is possible to avoid multiple identifications of the current scene during the execution of the same service by the electronic device 100, which results in unnecessary power consumption.
[0112] S204, the electronic device 100 turns off the Wi-Fi module and stops monitoring Wi-Fi wake-up events.
[0113] In some embodiments, after turning off the Wi-Fi module, the electronic device 100 can establish a communication connection with the electronic device 200 and connect to the network using the electronic device 200. The communication connection between the electronic device 100 and the electronic device 200 can be a Bluetooth connection or other wireless communication connection except the Wi-Fi connection.
[0114] S205: When the electronic device 100 detects that the activation condition is met, the Wi-Fi module is activated.
[0115] The activation conditions may include any one or more of the following: charging and the power level is greater than the preset power level, a specific application requests network keep-alive, receiving a user's button operation, the screen is in the on state and receiving a user's touch screen operation, receiving a user's pull-down shortcut menu operation, etc.
[0116] After the electronic device 100 turns off the Wi-Fi module, the electronic device 100 can turn on the Wi-Fi module again when it detects that the turn-on condition is met. In this way, the electronic device 100 can turn on the Wi-Fi module again when Wi-Fi is needed, thereby saving power consumption and ensuring normal use of the user.
[0117] By using the network connection method provided by the present application, when it is detected that the electronic device 100 is frequently awakened, it can be identified whether the current scene belongs to a low-power scene, and the Wi-Fi module can be turned off in the low-power scene. In this way, the Wi-Fi module can be turned off in the low-power scene to avoid power consumption caused by frequent awakening. Moreover, the Wi-Fi module will not be turned off in non-low-power scenes to avoid missing important business data.
[0118] In some embodiments, the electronic device 100 may also turn off the Wi-Fi module when it detects that the user is not wearing the device and the screen has been off for a preset time (also called a first time), and is in a low-power scenario, thereby saving power consumption.
[0119] The following describes the specific process of another network connection method provided by an embodiment of the present application.
[0120] like Figure 3 As shown, a specific process of a network connection method may include the following steps:
[0121] S301 , when the Wi-Fi module is turned on, the electronic device 100 monitors the wearing state of the electronic device 100 .
[0122] In some embodiments, the electronic device 100 may monitor in real time whether the user is wearing the electronic device 100 after being powered on.
[0123] In other embodiments, the electronic device 100 may also monitor in real time whether the user is wearing the electronic device 100 when the Wi-Fi module is turned on.
[0124] Two wearing detection methods for the electronic device 100 provided in the embodiments of the present application are introduced below.
[0125] In some embodiments, a photoplethysmography (PPG) module may be provided in the electronic device 100, and the electronic device 100 may determine whether the user is wearing the electronic device 100 based on whether the PPG module can detect a regular pulse wave signal.
[0126] In other embodiments, a capacitive sensor may also be provided inside the electronic device 100. When the user wears the electronic device 100, the capacitive sensor contacts the user's skin, which causes a change in capacitance. The electronic device 100 may also determine whether the user is wearing the electronic device 100 by detecting the change in capacitance through the capacitive sensor.
[0127] It can be understood that the above two methods of determining whether the electronic device 100 is worn are just some examples. In the embodiment of the present application, the electronic device 100 can also use other methods to determine whether it is worn by the user, and the present application does not limit this.
[0128] S302, when it is detected that the user is not wearing the electronic device 100, determine whether the screen of the electronic device 100 is turned off.
[0129] In some embodiments, the electronic device 100 can determine whether the electronic device 100 is in the screen-off state or the screen-on state by determining whether the power supply module supplies power to the display screen (or to the entire area of the display screen). If the electronic device 100 supplies power to the display screen through the power supply module, the electronic device 100 is in the screen-on state; if the electronic device 100 does not supply power to the display screen through the power supply module, the electronic device 100 is in the screen-off state.
[0130] In other embodiments, when the screen of the electronic device 100 turns off / on, the display manager in the electronic device 100 (e.g., the displaymanager module in the Android system) can broadcast a screen off notification / screen on notification, and the electronic device 100 can determine whether the screen turns off / on based on the screen off notification / screen on notification.
[0131] If the electronic device 100 is currently in the screen-off state, the electronic device 100 may execute the following step S303 .
[0132] If the electronic device 100 is currently in the screen-on state, the electronic device 100 may execute the following step S304.
[0133] S303, the electronic device 100 determines whether an interruption event occurs within the monitoring time period, the interruption events include the user putting on the electronic device 100 again and the screen of the electronic device 100 lighting up, the start time of the monitoring time period is the current time, and the duration is the preset duration.
[0134] The way in which the electronic device 100 determines the screen-off state and the screen-on state may refer to the relevant content in the above step S302.
[0135] The electronic device 100 may determine whether the user puts on the electronic device 100 again based on the result of real-time wearing monitoring.
[0136] The following introduces two timing methods for monitoring time periods.
[0137] In some embodiments, the electronic device 100 can set a timer for the wear monitoring service, and the timer can correspond to the monitoring time period, the time when the timer is set is the start time of the monitoring time period, and the time when the timer counts down is the end time of the monitoring time period. In this way, the electronic device 100 can be triggered in time to perform subsequent steps.
[0138] In other embodiments, the electronic device 100 can reuse the timers of other services in the system. In this case, the electronic device 100 can record the current moment as the starting moment of the monitoring time period, and when detecting that the timer of other services has ended, determine whether the duration between the current moment and the starting moment of the monitoring time period has reached the preset duration. If the duration between the current moment and the starting moment of the monitoring time period is less than the preset duration, the electronic device 100 can wait for the timer of the next service to end, and re-determine the relationship between the duration between the current moment and the starting moment of the monitoring time period and the preset duration. If the duration between the current moment and the starting moment of the monitoring time period is greater than or equal to the preset duration, the electronic device 100 can determine that the monitoring time period has ended. In this way, the power consumption overhead of a timer can be reduced.
[0139] During the monitoring period, if the screen of the electronic device 100 turns on, the electronic device 100 may execute the following step S304.
[0140] During the monitoring period, if it is detected that the user wears the electronic device 100 again, the electronic device 100 may execute the above step S302.
[0141] If no interruption event is detected during the monitoring period, the electronic device 100 may execute the following step S305.
[0142] It should be noted that if the electronic device 100 detects an interruption event, the electronic device 100 can immediately execute the steps corresponding to the above different situations without waiting for the monitoring period to end. At this time, the electronic device 100 can delete the timer corresponding to the wear monitoring service, or terminate the timer multiplexing other services.
[0143] S304, after the screen of the electronic device 100 is turned off, determine whether an interruption event occurs within a monitoring time period, where the start time of the monitoring time period is the screen turning off time and the duration is a preset duration.
[0144] The timing method of the monitoring time period and the specific content of the interruption event can refer to the relevant content in the above step S303.
[0145] During the monitoring period, if the screen of the electronic device 100 turns on, the electronic device 100 may re-execute step S304.
[0146] During the monitoring period, if it is detected that the user wears the electronic device 100 again, the electronic device 100 may execute the above step S302.
[0147] If no interruption event is detected during the monitoring period, the electronic device 100 may execute the following step S305.
[0148] S305: Determine whether the current scene is a low power consumption scene.
[0149] The specific content and judgment method of low power consumption scenarios can be referred to above Figure 2 The relevant description in step S202 is not repeated here.
[0150] If the current scenario is a low power consumption scenario, the electronic device 100 may execute the following step S306 to turn off the Wi-Fi module.
[0151] If the current scenario is not a low power consumption scenario, the electronic device 100 may maintain the Wi-Fi module turned on. Optionally, the electronic device 100 may re-execute step S302 or re-execute step S302 after waiting for a period of time, and the waiting period may be a preset period of time.
[0152] In some embodiments, if the electronic device 100 detects that a specific application requests network keep-alive, the electronic device 100 re-executes the above step S302 after detecting that the application releases the network keep-alive.
[0153] S306, the electronic device 100 turns off the Wi-Fi module.
[0154] S307: When the electronic device 100 detects that the Wi-Fi activation condition is met, the Wi-Fi module is activated.
[0155] The specific contents of step S306 to step S307 can refer to the above Figure 2 The relevant descriptions of step S204 to step S205 are shown.
[0156] By adopting the network connection method provided in the present application, when the user is not wearing the electronic device 100 and the electronic device 100 is in a low power consumption scenario, the Wi-Fi module can be turned off to save the power consumption of the electronic device 100.
[0157] In some embodiments, the electronic device 100 may also turn off the Wi-Fi module when a Wi-Fi long-hold lock event is detected and the device is in a low-power consumption scenario, thereby saving power consumption.
[0158] The following describes the specific process of another network connection method provided by an embodiment of the present application.
[0159] like Figure 4 As shown, a specific process of a network connection method may include the following steps:
[0160] S401, when the electronic device 100 detects that the Wi-Fi module is turned on, monitors and records a Wi-Fi lock event.
[0161] Illustratively, Table 2 shows a lock event table recorded by an electronic device 100 provided in an embodiment of the present application.
[0162] Table 2
[0163] Locking Events Locking time Release Moment Event A1 10:01:30 10:03:50 Event B1 10:04:01 10:05:20 Event C1 10:15:30 10:20:43 Event D1 11:01:30 11:05:30
[0164] As shown in Table 2, the lock event table recorded by the electronic device 100 may include lock events and lock times (including lock time and release time). According to Table 2, the lock time of event A1 is 10:01:30 and the release time is 10:03:50; the lock time of event B1 is 10:04:01 and the release time is 10:05:20; the lock time of event C1 is 10:15:30 and the release time is 10:20:43; the lock time of event D1 is 11:01:30 and the release time is 11:05:30.
[0165] It is understandable that the lock event table shown in Table 2 is only an example. In the embodiment of the present application, the lock event table recorded by the electronic device 100 may also include more, less or different content than Table 2, and the present application does not limit this.
[0166] In some embodiments, in an operating system that is in standby mode based on a lock mechanism, the electronic device 100 can obtain the lock duration of each service based on the record of the operating system. Taking the Android system as an example, the electronic device 100 can obtain the lock duration of each service from the / proc / wakeup_sources of the Android system. In other embodiments, the electronic device 100 can also regularly record the lock duration of each service. Taking the Android system as an example, the electronic device 100 can store the lock event table in the / proc / wakeup_sources of the Android system.
[0167] S402: When the electronic device 100 detects that the lock holding time is greater than the lock holding threshold, it determines whether the current scene belongs to a low power consumption scene.
[0168] In some embodiments, the lock duration may refer to the lock duration of a single lock event. The electronic device 100 may determine the lock duration of each lock event based on the recorded lock moment and release moment of the lock event. In other embodiments, when the electronic device 100 detects that a lock event has occurred and the lock event has not been released, it may determine the locked duration of the lock event based on the lock moment of the lock event and the current moment, and when it is detected that the locked duration is greater than the locked threshold, it may determine whether the current scene belongs to a low power consumption scene.
[0169] The lock holding threshold may be a preset duration, such as 3 minutes, 10 minutes, etc. In the embodiment of the present application, the lock holding duration may also be referred to as a second duration.
[0170] If the current scenario belongs to a low power consumption scenario, the electronic device 100 may execute the following step S403 to turn off the Wi-Fi module.
[0171] If the current scenario does not belong to the low power consumption scenario, the electronic device 100 may maintain the Wi-Fi module turned on, and execute step S402 when another locking event with a locking duration greater than the locking threshold is detected.
[0172] In other embodiments, the lock duration may also refer to the total lock duration of all lock events within a lock cycle. The lock cycle may be a preset time period. The electronic device 100 may also count the total lock duration of the lock events within a lock cycle and determine whether the lock duration is greater than the lock threshold.
[0173] If the current scenario belongs to a low power consumption scenario, the electronic device 100 may execute the following step S403 to turn off the Wi-Fi module.
[0174] If the current scenario does not belong to the low power consumption scenario, the electronic device 100 may maintain the Wi-Fi module turned on, and execute step S402 when a lock event is detected in which the lock duration of the next lock cycle is greater than the lock threshold.
[0175] S403, the electronic device 100 turns off the Wi-Fi module.
[0176] In some embodiments, after turning off the Wi-Fi module, the electronic device 100 can establish a communication connection with the electronic device 200 and connect to the network using the electronic device 200. The communication connection between the electronic device 100 and the electronic device 200 can be a Bluetooth connection or other wireless communication connection except the Wi-Fi connection.
[0177] S404: When the electronic device 100 detects that the Wi-Fi activation condition is met, the Wi-Fi module is activated.
[0178] The specific contents of step S403 to step S404 can refer to the above Figure 2 The related descriptions in step S203 to step S204 are not repeated here.
[0179] By adopting the network connection method provided in the present application, when a long-hold lock event is detected and the electronic device 100 is in a low-power scenario, the Wi-Fi module can be turned off to avoid functional loss caused by long-hold lock of non-essential services.
[0180] In some embodiments, when the Wi-Fi module of the electronic device 100 is turned on, the electronic device 100 may also determine whether the current scene is a low-power scene when any one of the scene recognition conditions is detected, and turn off the Wi-Fi module when it is identified that the current scene belongs to a low-power scene. The scene recognition conditions may include: detecting that the number of wake-up events within a first time period (a monitoring cycle) is greater than the wake-up threshold, the duration of not wearing and screen-off events reaches a first duration, the Wi-Fi lock duration reaches a second duration, etc. The specific judgment method of the above-mentioned scene recognition conditions, the judgment method of low-power scenes, and whether to turn on the Wi-Fi module subsequently, etc., can be referred to the above Figures 2 to 5 The relevant description in the illustrated embodiment will not be repeated here.
[0181] It is understandable that after turning off the Wi-Fi module, the electronic device 100 can also re-establish a communication connection with the electronic device 200 through wireless communication methods such as Bluetooth, and connect to the network through the electronic device 200 to communicate with other electronic devices in the network.
[0182] In some embodiments, when the Wi-Fi module of the electronic device 100 is turned on, the electronic device 100 can turn off the Wi-Fi module after detecting that a communication connection is established with the electronic device 200, and access the network through the electronic device 200. In this way, the power consumption of maintaining the Wi-Fi module can be saved.
[0183] In other embodiments, after the electronic device 100 establishes a communication connection with the electronic device 200, the electronic device 100 may further determine whether the electronic device 100 can access the network through the electronic device 200. The specific process can be referred to as follows Figure 5 The embodiment shown.
[0184] like Figure 5 As shown, a specific process of a network connection method may include the following steps:
[0185] S501 , when the Wi-Fi module of the electronic device 100 is turned on, the electronic device 100 establishes a communication connection with the electronic device 200 .
[0186] The communication connection established between the electronic device 100 and the electronic device 200 may be a Bluetooth connection, or may be other wireless communication connection except a Wi-Fi connection.
[0187] S502 , the electronic device 100 sends an acquisition request to the electronic device 200 , where the acquisition request is used to request the electronic device 200 to send network connection information to the electronic device 100 .
[0188] S503, the electronic device 200 sends network connection information to the electronic device 100, where the network connection information includes any one or more of the following: a network status, an operating system identifier, and a power status of the electronic device 200.
[0189] In some embodiments, the network status may include an available state and an unavailable state. When the network status of the electronic device 200 is an available state, the electronic device 200 is connected to the network; when the network status of the electronic device 200 is an unavailable state, the connection between the electronic device 200 and the network is disconnected. In other embodiments, the network status may also include one or more network states such as excellent network quality, good network quality, and poor network quality, and these network states are used to indicate the network quality of the electronic device 200.
[0190] The operating system identifier is used to indicate the operating system (or operating platform) used by the electronic device 200. In some embodiments, when the electronic device 200 is equipped with a specific operating system, the electronic device 200 does not support other electronic devices to use the network of the electronic device 200.
[0191] The power status can be used to indicate the remaining power of the electronic device 200 .
[0192] It is understandable that the embodiments herein are merely examples, and in the embodiments of the present application, the network connection information may also include more, less, or different content than that in the embodiments herein, and the present application does not limit this.
[0193] S504 , the electronic device 100 determines whether the electronic device 100 can access the network through the electronic device 200 based on the network connection information.
[0194] The electronic device 100 can access the network through the electronic device 200, which means that the electronic device 100 can communicate with the opposite device through the electronic device 200. The opposite device can be a network connection device or other electronic devices in the network connected to the network through the network connection device. In the embodiment of the present application, the opposite device can also be referred to as a third electronic device.
[0195] In some embodiments, the electronic device 100 may determine whether the electronic device 100 can access the network through the electronic device 200 based on the network status of the electronic device 200 in the network connection information. If the network status of the electronic device 200 is in an available state, the electronic device 100 may determine that the network can be accessed through the electronic device 200; if the network status of the electronic device 200 is in an unavailable state, the electronic device 100 may determine that the network cannot be accessed through the electronic device 200. In other embodiments, the electronic device 100 may also determine whether the electronic device 100 can access the network through the electronic device 200 based on the network quality in the network status, which is not limited in this application.
[0196] In some embodiments, the electronic device 100 may determine whether the electronic device 100 can access the network through the electronic device 200 based on the operating system identifier of the electronic device 200 in the network connection information. The electronic device 100 may store one or more operating system identifiers, and determine whether the operating system identifier of the electronic device 200 belongs to the one or more operating system identifiers. If the operating system identifier stored in the electronic device 100 includes the operating system identifier of the electronic device 200, the electronic device 100 may determine that the network can be accessed through the electronic device 200; if the operating system identifier stored in the electronic device 100 does not include the operating system identifier of the electronic device 200, the electronic device 100 may determine that the network cannot be accessed through the electronic device 200.
[0197] In other embodiments, the electronic device 100 may determine whether the electronic device 100 can access the network through the electronic device 200 based on the power status of the electronic device 200 in the network connection information. The electronic device 100 may store a power threshold, and if the power of the electronic device 200 is greater than the power threshold, the electronic device 100 may determine that the network can be accessed through the electronic device 200; if the power of the electronic device 200 is less than or equal to the power threshold, the electronic device 100 may determine that the network cannot be accessed through the electronic device 200.
[0198] In some embodiments, the electronic device 100 may also determine whether the electronic device 100 can access the network through the electronic device 200 based on multiple contents in the network connection information. Exemplarily, if the power of the electronic device 200 is greater than the power threshold, the network state is in an available state, and the operating system of the electronic device 200 supports other electronic devices to use the network of the electronic device 200, the electronic device 100 may determine that it can access the network through the electronic device 200; if the power of the electronic device 200 is less than the power threshold, or the network state is in an unavailable state, or the operating system of the electronic device 200 does not support other electronic devices to use the network of the electronic device 200, the electronic device 100 may determine that it cannot access the network through the electronic device 200.
[0199] It will be understood that the above embodiments are merely examples, and in the embodiments of the present application, the specific method of determining whether the electronic device 100 can access the network through the electronic device 200 based on the network connection information may also include more, fewer or different methods than the above, and the present application does not limit this.
[0200] If the electronic device 100 can access the network through the electronic device 200, the electronic device 100 may perform the following step S505.
[0201] If the electronic device 100 cannot access the network through the electronic device 200, the electronic device 100 may keep the Wi-Fi module turned on.
[0202] S505, the electronic device 100 turns off the Wi-Fi module.
[0203] S506: When the electronic device 100 detects that the network data transmission speed between the electronic device 100 and the electronic device 200 is lower than the first speed, the Wi-Fi module is turned on.
[0204] After turning off the Wi-Fi module, the electronic device 100 can monitor in real time the current network data transmission speed between the electronic device 100 and the electronic device 200. When detecting that the network data transmission speed is lower than the first speed, the electronic device 100 can turn on the Wi-Fi module again.
[0205] In other embodiments, the network data transmission speed may also be replaced by the network signal strength of the electronic device 200 (e.g., Wi-Fi signal strength, mobile data signal strength, etc.). The electronic device 100 may obtain the network signal strength of the electronic device 200 in real time and determine whether the network signal strength is less than the first signal strength. When it is detected that the network signal strength of the electronic device 200 is lower than the first signal strength, the electronic device 100 may re-enable the Wi-Fi module.
[0206] In other embodiments, the electronic device 100 may also obtain the power and network status of the electronic device 200 in real time, and determine whether the electronic device 100 can access the network through the electronic device 200 based on the power and network status of the electronic device 200. If it is determined that the electronic device 100 cannot access the network through the electronic device 200, the electronic device 100 may re-enable the Wi-Fi module.
[0207] By adopting the network connection method provided by the present application, the electronic device 100 can access the network through the electronic device 200, and can also re-enable the Wi-Fi module when the network quality of the electronic device 200 is poor. In this way, not only can the power consumption of the Wi-Fi module in the electronic device 100 be saved, but also a good network usage experience can be provided to the user.
[0208] In some embodiments, when the Wi-Fi module of the electronic device 100 is not turned on, the electronic device 100 establishes a communication connection with the electronic device 200. In this case, the electronic device 100 can obtain the network connection information sent by the electronic device 200, and determine whether the electronic device 100 can access the network through the electronic device 200. If the electronic device 100 can access the network through the electronic device 200, the electronic device 100 can directly access the network through the electronic device 200, and when it is detected that the network transmission speed between the electronic device 100 and the electronic device 200 is lower than the first speed, the Wi-Fi module of the electronic device 100 is turned on. If the electronic device 100 cannot access the network through the electronic device 200, the electronic device 100 can turn on the Wi-Fi module.
[0209] In this way, when the network of the electronic device 200 can be used, there is no need to turn on the Wi-Fi module, which can save power consumption caused by turning on and off the Wi-Fi module.
[0210] In some embodiments, after the electronic device 100 establishes a communication connection with the electronic device 200, the electronic device 100 may send a network use request to the electronic device 200, and the network use request is used to request access to the network through the electronic device 200. The electronic device 200 may receive and respond to the network use request, determine whether the electronic device 100 can access the network through the electronic device 200 based on the network connection information, and send the determination result to the electronic device 100, and the determination result may be used to notify the electronic device 100 whether the electronic device 100 can access the network through the electronic device 200. In the case that the electronic device 100 can access the network through the electronic device 200, the electronic device 100 may perform the above-mentioned Figure 5 In step S505 to step S506, the judgment result sent by the electronic device 200 to the electronic device 100 may be a first notification. In the case where the electronic device 100 cannot access the network through the electronic device 200, the electronic device 100 may keep the Wi-Fi module turned on. The method in which the electronic device 200 judges whether the electronic device 100 can access the network through the electronic device 200 based on the network connection information may refer to the above Figure 5 Related description in the illustrated embodiment.
[0211] In this way, the electronic device 200 can directly send the judgment result to the electronic device 100 without sending the network connection information, thereby reducing the transmission power consumption.
[0212] In other embodiments, when the electronic device 100 accesses the network through the electronic device 200, the electronic device 200 can determine in real time based on the network connection information whether the electronic device 100 is supported to access the network. If it is determined that the electronic device 200 does not support the electronic device 100 to access the network, the electronic device 200 can send a second notification to the electronic device 100, and the second notification is used to indicate that the electronic device 200 does not support the electronic device 100 to access the network through the electronic device 200; after receiving the second notification, the electronic device 100 turns on the Wi-Fi module.
[0213] In some embodiments, when the electronic device 100 accesses the network through the electronic device 200 and uses the network service, the electronic device 200 can coordinate the network service usage (such as usage time and / or bandwidth) of the electronic device 100 and the electronic device 200. The electronic device 100 can dynamically turn on or off the Wi-Fi module of the electronic device 100 according to the notification sent by the electronic device 200. The specific process can be referred to as follows Figure 6 The embodiment shown.
[0214] like Figure 6 As shown, a specific process of a network connection method may include the following steps:
[0215] S601 , when the electronic device 100 accesses a network through the electronic device 200 , the electronic device 100 detects a network request 1 of a service 1 , where the network request 1 includes a type of the service 1 and a resource address 1 .
[0216] Network request 1 may include the type of service 1 and resource address 1. Network request 1 is used to request to obtain resource 1 corresponding to service 1. The acquisition address of resource 1 is resource address 1. In the embodiment of the present application, service 1 may also be referred to as the first service, network request 1 may also be referred to as the first request, resource 1 may also be referred to as the first data, and resource address 1 may also be referred to as the first address.
[0217] The types of services may include but are not limited to the following services: food delivery service, taxi service, web browsing service, chat service, video call service, video service, audio service, navigation service, ticket booking service, application upgrade service, etc.
[0218] In some embodiments, the electronic device 100 can receive and generate a network request in response to a user operation. For example, the electronic device 100 can receive and generate a network request in response to a user operation of opening a map application, where the network request is used to request a map near the current location of the electronic device 100.
[0219] In other embodiments, the electronic device 100 may also receive a request from an application and generate a network request. For example, the electronic device 100 may receive an upgrade request from an application and generate a network request, where the network request is used to obtain an upgraded installation package of the application.
[0220] S602 , the electronic device 100 sends a network request 1 to the electronic device 200 .
[0221] S603 , the electronic device 200 detects a network request 2 of a service 2 of the electronic device 200 , where the network request 2 includes a type of the service 2 and a resource address 2 .
[0222] The manner in which the electronic device 200 generates the network request 2 and the specific content description of the network request 2 can refer to the relevant description of the network request 1 in the above step S601, which will not be repeated here.
[0223] It should be noted that the electronic device 200 may detect the network request 2 before receiving the network request 1 or when receiving the network request 1 .
[0224] S604: The electronic device 200 determines whether the priority of service 1 is higher than that of service 2 based on the types of service 1 and service 2.
[0225] The electronic device 200 may store a correspondence between service types and service priorities.
[0226] Exemplarily, Table 3 shows the correspondence between service types and priorities stored in an electronic device 200 provided in an embodiment of the present application.
[0227] Table 3
[0228] Business Type Priority Navigation business high Takeaway business high Video Services middle Web browsing service middle Application upgrade service Low
[0229] As shown in Table 3, the electronic device 200 can determine the priority of the service according to the service type. For example, when the service type is a navigation service, the priority of the service is high; when the service type is a takeaway service, the priority of the service is high; when the service type is a video service, the priority of the service is medium; when the service type is a web browsing service, the priority of the service is medium; when the service type is an application upgrade service, the priority of the service is low.
[0230] It can be understood that the embodiment shown in Table 3 is only an example. In the embodiment of the present application, the electronic device 200 may store more, fewer or different correspondences between business types and priorities than those in the embodiment shown in Table 3, and the present application does not limit this.
[0231] The electronic device 200 can determine whether the priority of service 2 is higher than the priority of service 1 based on the type of service 1 in network request 1, the type of service 2 in network request 2, and the correspondence between service type and service priority.
[0232] If the priority of service 1 is higher than the priority of service 2, the electronic device 200 may execute the following steps S605 to S606.
[0233] If the priority of service 2 is higher than the priority of service 1, the electronic device 200 may execute the following step S607 and subsequent steps.
[0234] It should be noted that if the priorities of service 1 and service 2 are the same, the electronic device 200 may preferentially execute the service of the electronic device 200, that is, preferentially execute service 2.
[0235] S605 , the electronic device 200 obtains resource 1 based on the resource address 1 in the network request 1 .
[0236] S606 , the electronic device 200 sends the resource 1 to the electronic device 100 .
[0237] After acquiring resource 1, the electronic device 200 may execute step S607 without executing step S608.
[0238] S607 , the electronic device 200 obtains resource 2 based on resource address 2 in the network request 2 .
[0239] S608, the electronic device 200 sends a waiting notification to the electronic device 100, where the waiting notification is used to notify the electronic device 100 that the network request 1 needs to wait.
[0240] In some embodiments, the waiting notification may also include a waiting time, which may be a waiting time estimated by the electronic device 200 based on the size of the resource 2 and the current network transmission rate. In some embodiments, the waiting notification may also be referred to as a third notification, which is used to indicate that the electronic device 200 is unable (including temporarily unable) to obtain the resource 1.
[0241] S609, the electronic device 100 determines whether to wait.
[0242] In some embodiments, after receiving the waiting notification, the electronic device 100 may display a prompt window, which may be used to ask the user whether to wait, and the prompt window may also include a waiting control and a rejection waiting control. In this case, the electronic device 100 may determine whether to wait for the electronic device 200 to obtain and send the resource 1 according to the user's operation on the prompt window.
[0243] In other embodiments, the electronic device 100 may also store a correspondence between the service type and the service priority. For the specific correspondence, reference may be made to the relevant description in the embodiment shown in Table 3 above. The electronic device 100 may be set with a priority threshold, such as high (or medium), etc. If the electronic device 100 detects that the priority of service 1 reaches the priority threshold, the electronic device 100 may determine not to wait any longer.
[0244] It is understandable that the embodiments herein are only examples. In the embodiments of the present application, the electronic device 100 may also use other methods to determine whether to wait, which is not limited in the present application.
[0245] If the electronic device 100 determines to wait, the electronic device 100 may wait for the electronic device 200 to obtain the resource 1 and then send the resource 1 to the electronic device 100 .
[0246] If the electronic device 100 determines not to wait, the electronic device 100 may execute the following step S610.
[0247] S610, the electronic device 100 turns on the Wi-Fi module.
[0248] The network connection method provided in the embodiment of the present application can not only save the power consumption caused by maintaining the Wi-Fi module for a long time, but also coordinate and ensure the network usage experience of the user of the electronic device 100.
[0249] In other embodiments, Figure 6The network request in the illustrated embodiment (e.g., network request 1, network request 2, etc.) may also include the type of service, the identification of the receiving device (e.g., the identification of the third electronic device), and the service data to be sent. In this case, the network request may be used to request the electronic device 200 to send the service data to the receiving device. The electronic device 200 may also determine the priority of each service based on the service type in the multiple network requests received, and send the service data in the network request (or obtain the data requested by the network request) in order according to the priority. This application does not limit the specific service requested by the network request.
[0250] In some embodiments, if electronic device 200 receives network request 1 sent by electronic device 100, and electronic device 200 is obtaining resource 2 requested by network request 2, it is necessary to wait until electronic device 200 obtains resource 2, and then electronic device 200 can obtain resource 1 according to network request 1.
[0251] In this way, the electronic device 200 can also determine the order of acquiring resources according to the order of receiving network requests.
[0252] In other embodiments, the electronic device 200 may also allocate different bandwidths to different services according to the priorities of multiple services, for example, a wider bandwidth is allocated to a service with a higher priority, and a narrower bandwidth is allocated to a service with a lower priority, etc. The electronic device 100 may turn on the Wi-Fi module when it detects that the currently allocated bandwidth is less than the bandwidth threshold. The specific process may also be referred to in the above Figure 6 The present application is not limited to the embodiments shown.
[0253] In this way, the electronic device 200 can also allocate different bandwidths to different services according to the service priorities, so as to ensure that the services with higher priorities have a better network experience.
[0254] The following introduces the functional modules of an electronic device 100 provided in an embodiment of the present application.
[0255] like Figure 7 As shown, the electronic device 100 may include a wake-up monitoring module 701, a scene recognition module 702, a Wi-Fi control module 703, a wearing detection module 704, a lock holding monitoring module 705, a pairing detection module 706, and the like.
[0256] Among them, the wake-up monitoring module 701 can monitor and record Wi-Fi wake-up events and wake-up times, and determine the number of Wi-Fi wake-ups of the electronic device 100 within the monitoring period. The wake-up monitoring module 701 can also store a preset wake-up threshold and determine whether the number of Wi-Fi wake-ups within the monitoring period is greater than the wake-up threshold. When the number of Wi-Fi wake-ups within the monitoring period is greater than the wake-up threshold, the wake-up monitoring module 701 can send a scene recognition instruction to the scene recognition module 702, and the scene recognition instruction is used to instruct the scene recognition module 702 to determine whether the current scene belongs to a low-power scene.
[0257] The scene recognition module 702 can receive and respond to the scene recognition instruction sent by the wake-up monitoring module 701 (or the wearing detection module 704, the lock holding monitoring module 705, etc.), identify the current scene, and determine whether the current scene belongs to a low-power consumption scene. In the case where the current scene belongs to a low-power consumption scene, the scene recognition module 702 can send a shutdown instruction to the Wi-Fi control module 703, and the shutdown instruction is used to instruct the Wi-Fi control module 703 to turn off the Wi-Fi module (such as a Wi-Fi chip, etc.). In some embodiments, the scene recognition module 702 may also store one or more opening conditions. After turning off the Wi-Fi module, the scene recognition module 702 can detect whether the electronic device 100 meets the opening condition. When it is detected that any one of the opening conditions is met, the scene recognition module 702 can send an opening instruction to the Wi-Fi control module 703, and the opening instruction is used to instruct the Wi-Fi control module 703 to turn on the Wi-Fi module.
[0258] The Wi-Fi control module 703 may receive and respond to a shutdown instruction sent by the scene recognition module 702 or the pairing detection module 706 to shut down the Wi-Fi module. In some embodiments, the Wi-Fi control module 703 may also receive and respond to a startup instruction sent by the scene recognition module 702 or the pairing detection module 706 to turn on the Wi-Fi device.
[0259] The wearing detection module 704 can detect whether the electronic device 100 is worn by the user. When it is detected that the user is not wearing the electronic device 100, the wearing detection module 704 can also record the non-wearing time of the user not wearing the electronic device 100. When it is detected that the screen is off and the duration of the non-wearing state is greater than the preset time threshold, the wearing detection module 704 can send a scene recognition instruction to the scene recognition module 702, and the scene recognition instruction is used to instruct the scene recognition module 702 to determine whether the current scene belongs to a low power consumption scene.
[0260] The lock monitoring module 705 can monitor and record Wi-Fi lock events and lock times (including lock moments and release moments), and determine the lock duration of each lock time. The lock monitoring module 705 can also store a preset lock threshold, and determine whether the lock duration of each lock event is greater than the lock threshold. When it is detected that the lock duration of a lock event is greater than the lock threshold, the lock monitoring module 705 can send a scene recognition instruction to the scene recognition module 702, and the scene recognition instruction is used to instruct the scene recognition module 702 to determine whether the current scene belongs to a low power consumption scene.
[0261] The pairing detection module 706 can detect whether the electronic device 100 has established a communication connection with another electronic device (e.g., the electronic device 200). In some embodiments, the pairing detection module 706 can also receive the network connection information of the electronic device 200 sent by the electronic device 200, and determine whether the electronic device 100 can access the network through the electronic device 200 according to the network connection information of the electronic device 200. In other embodiments, the pairing detection module 706 can also receive the judgment result sent by the electronic device 200, and the judgment result is used to indicate whether the electronic device 100 can access the network through the electronic device 200. In this case, the pairing detection module 706 can also determine whether the electronic device 100 can access the network through the electronic device 200 based on the judgment result.
[0262] In the case of determining that the electronic device 100 can access the network through the electronic device 200, the pairing detection module 706 can send a shutdown instruction to the Wi-Fi control module 703, and the shutdown instruction is used to instruct the Wi-Fi control module 703 to turn off the Wi-Fi module. In some embodiments, after turning off the Wi-Fi module, the pairing detection module 706 can also obtain the network status and / or power status of the electronic device 200 in real time, and determine whether the electronic device 200 can still support the electronic device 100 to use the network of the electronic device 200 according to the network status and / or power status of the electronic device 200. In some embodiments, the electronic device 100 can also obtain the network data transmission speed between the electronic device 100 and the electronic device 200 in real time. When it is detected that the network data transmission speed is less than the first speed, the electronic device 100 can also determine that the electronic device 100 cannot access the network through the electronic device 200. In the case of determining that the electronic device 100 cannot access the network through the electronic device 200, the pairing detection module 706 can send an opening instruction to the Wi-Fi control module 703, and the opening instruction is used to instruct the Wi-Fi control module 703 to turn on the Wi-Fi module. In other embodiments, when it is determined that the electronic device 200 cannot support the electronic device 100 using the network of the electronic device 200, the pairing detection module 706 may also send a start instruction to the wake-up monitoring module 701 and / or the lock monitoring module 705, and the start instruction is used to instruct the wake-up monitoring module 701 or the lock monitoring module 705 to enable wake-up monitoring or lock monitoring.
[0263] Understandably, Figure 7 The embodiment shown is only an example. In the embodiment of the present application, the electronic device 100 may also include Figure 7 The embodiments shown are more, less or more Figure 7 Different functional modules or combinations of the embodiments shown Figure 7 The multiple functional modules shown in Figure 7 The one functional module shown is split into multiple functional modules, which is not limited in this application.
[0264] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0265] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0266] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0267] In short, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.
Claims
1. A network connection method, characterized in that: Applied to a first electronic device, the method includes: Establish Wi-Fi connection with network connection device through wireless fidelity Wi-Fi module; When it is detected that the number of occurrences of the wake-up event within the first time period is greater than the first number and the first electronic device is in a low power consumption mode, the Wi-Fi module is turned off; the wake-up event is an event in which the first electronic device receives a data packet through the Wi-Fi connection, triggering an interrupt controller to wake up the first electronic device from a sleep state to a working state.
2. The method according to claim 1, characterized in that: The sleep state of the first electronic device is a state in which the first electronic device stops supplying power to a central processing unit (CPU) of the first electronic device, and the working state of the first electronic device is a state in which the first electronic device supplies power to the CPU.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: When it is detected that the first electronic device has been kept screen-off and not worn by the user for a first time period, and the first electronic device is in a low power consumption mode, the Wi-Fi module is turned off.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: When it is detected that the lock holding time of the Wi-Fi module reaches a second time period and the first electronic device is in a low power consumption mode, the Wi-Fi module is turned off.
5. The method according to any one of claims 1 to 4, characterized in that The detecting that the first electronic device is in a low power consumption mode specifically includes: detecting that the power level of the first electronic device is less than a power threshold; or, Detecting that the first electronic device is in a screen-off state; or, It is detected that the first electronic device is not executing any service or the service being executed is not a perceptible service, wherein the perceptible service includes: download service, music service, video service, call service, and application for network keep-alive service on the first list.
6. The method according to any one of claims 1 to 5, characterized in that After turning off the Wi-Fi module, the method further includes: When it is detected that the enabling condition is met, the Wi-Fi module is enabled; The opening conditions include any one or more of the following: The first electronic device is in a charging state and the power level is greater than a power threshold, an application on the first list applies for a network keep-alive service, a user's button operation is received, the first electronic device is in a screen-on state and a user's touch screen operation is received, and a user's pull-down shortcut menu operation is received.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: When a Wi-Fi connection is established with the network connection device through the Wi-Fi module, a communication connection is established with the second electronic device, where the second electronic device is used for the first electronic device to communicate with a third electronic device; After establishing the communication connection with the second electronic device, turning off the Wi-Fi module.
8. The method according to claim 7, characterized in that The communication connection established between the first electronic device and the second electronic device includes: Bluetooth connection, NFC connection, and infrared IR connection.
9. The method according to claim 7 or 8, characterized in that: After establishing the communication connection with the second electronic device, turning off the Wi-Fi module specifically includes: After establishing the communication connection with the second electronic device, receiving network connection information sent by the second electronic device, the network connection information including any one or more of the following: network status, operating system identifier, and power status; When it is determined based on the network connection information that the second electronic device supports the first electronic device to communicate with the third electronic device through the second electronic device, the Wi-Fi module is turned off.
10. The method according to claim 7 or 8, characterized in that: After establishing the communication connection with the second electronic device, turning off the Wi-Fi module specifically includes: After establishing the communication connection with the second electronic device, receiving a first notification sent by the second electronic device, wherein the first notification is used to indicate that the second electronic device supports the first electronic device to communicate with the third electronic device through the second electronic device; After receiving the first notification, turning off the Wi-Fi module.
11. The method according to any one of claims 7 to 10, characterized in that: The method further comprises: After establishing the communication connection with the second electronic device and turning off the Wi-Fi module, detecting that the network data transmission speed between the first electronic device and the second electronic device is less than a first speed; Turn on the Wi-Fi module.
12. The method according to any one of claims 7 to 10, characterized in that: The method further comprises: After establishing the communication connection with the second electronic device and turning off the Wi-Fi module, receiving a second notification sent by the second electronic device, the second notification being used to indicate that the second electronic device does not support the first electronic device to communicate with the third electronic device through the second electronic device; After receiving the second notification, turning on the Wi-Fi module.
13. The method according to any one of claims 7 to 9, characterized in that: The method further comprises: After turning off the Wi-Fi module, sending a first request for a first service to the second electronic device, the first request including a first address, the first request being used to request the second electronic device to obtain first data based on the first address; receiving a third notification sent by the second electronic device, where the third notification is used to indicate that the second electronic device cannot obtain the first data; After receiving the third notification, turning on the Wi-Fi module; Establishing a Wi-Fi connection with a network connection device through the Wi-Fi module; The first data is obtained based on the first address through the Wi-Fi connection.
14. The method according to claim 13, characterized in that After receiving the third notification, turning on the Wi-Fi module specifically includes: After receiving the third notification, when it is detected that the priority of the first service is greater than or equal to a priority threshold, the Wi-Fi module is turned on.
15. The method according to any one of claims 1 to 5, characterized in that The method further comprises: After turning off the Wi-Fi module, establishing a communication connection with a second electronic device; The second electronic device sends data to the third electronic device, or the second electronic device receives data sent by the third electronic device.
16. An electronic device, being a first electronic device, characterized in that: include: One or more processors and one or more memories; the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the first electronic device executes the method described in any one of claims 1 to 15.
17. A computer-readable storage medium comprising computer instructions, characterized in that: When the computer instructions are executed on the first electronic device, the first electronic device is caused to execute the method described in any one of claims 1 to 15.
Citation Information
Cited By
Network connection method and system, and related apparatus
EP4694381A1
Network connection method and system, and related apparatus
WO2025036322A1