Network connection method and system, and related apparatus
By detecting wake-up events and low-power modes in wearable devices, intelligent control of Wi-Fi modules is achieved, which solves the problem of excessive power consumption of devices under Wi-Fi networks and reduces the total power consumption of devices.
Patent Information
- Application Number
- PCT/CN2024/111412
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-14
- Filing Date
- 2024-08-12
- Publication Date
- 2025-02-20
AI Technical Summary
Under Wi-Fi networks, wearable devices often receive multicast packets, unicast packets and broadcast packets, resulting in the device running for a long time and excessive power consumption.
Turn off the Wi-Fi module to reduce power consumption by detecting the frequency of wake-up events and the device's low power mode. In low power mode, if the number of wake-up events is detected greater than the preset number, or the device is not worn and the screen off time reaches the threshold, turn off the Wi-Fi module.
It effectively avoids the increase in power consumption caused by frequent wake-up devices in low-power mode and reduces the total power consumption of the device.
Smart Images

Figure CN2024111412_20022025_PF_FP_ABST
Abstract
Description
Network connection method, system and related device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 14, 2023, with application number 202311023846.2 and application name “A network connection method, system and related devices”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to a network connection method, system and related devices. Background Art
[0003] With the continuous development of communication technology, more and more wearable devices are integrated with wireless fidelity (Wi-Fi) chips, allowing the wearable devices to connect to Wi-Fi networks.
[0004] However, in a Wi-Fi network, wearable devices often receive multicast packets, unicast packets, and broadcast packets from the Wi-Fi network. These data packets usually do not contain specific services, but they 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.
[0005] Summary of the Invention
[0006] The present application provides a network connection method, system, and related apparatus, which realize turning off a wireless fidelity Wi-Fi module when a first electronic device is in a low-power mode, and keeping the Wi-Fi module turned on in a non-low-power mode, thereby reducing the power consumption of the first electronic device.
[0007] In a first aspect, the present application provides a network connection method, applied to a first electronic device, the method comprising: 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 the first electronic device receives a data packet through a Wi-Fi connection, triggering an interrupt controller to wake up the first electronic device from a sleep state to a working state.
[0008] In this way, the power consumption caused by frequently waking up the electronic device in low power mode can be avoided.
[0009] 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.
[0010] In some possible implementations, the method further includes: turning off the Wi-Fi module when it is detected that the first electronic device has been kept off and not worn by the user for a first time period and the first electronic device is in a low power consumption mode.
[0011] In this way, the Wi-Fi module can be turned off when the watch is not worn to reduce power consumption.
[0012] 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.
[0013] In this way, the power consumption caused by long-term Wi-Fi lock can be avoided.
[0014] 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 performing any service or that the service being performed 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.
[0015] 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 the turning-on condition is met; the turning-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, a user operation on a button is received, the first electronic device is in a screen-on state and a user touch operation is received, or a user pull-down shortcut menu operation is received.
[0016] In this way, when the activation condition is met, the first electronic device can re-activate the Wi-Fi module.
[0017] 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 the third electronic device; and after establishing the communication connection with the second electronic device, turning off the Wi-Fi module.
[0018] In this way, the first electronic device can communicate with the third electronic device through the second electronic device. Power consumption can also be reduced by turning off the Wi-Fi module.
[0019] 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.
[0020] In some possible implementations, after establishing a communication connection with the 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, and power status; when determining 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.
[0021] 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.
[0022] In some possible implementations, after establishing a communication connection with the 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 the third electronic device through the second electronic device; after receiving the first notification, turning off the Wi-Fi module.
[0023] In this way, the second electronic device can determine whether to support communication between the first electronic device and the third electronic device, and send the determination result to the first electronic device.
[0024] 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 the network data transmission speed between the first electronic device and the second electronic device is less than the first speed; and turning on the Wi-Fi module.
[0025] 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.
[0026] 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, 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.
[0027] 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.
[0028] 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 the network connection device through the Wi-Fi module; and obtaining the first data based on the first address through the Wi-Fi connection.
[0029] 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 being unable to obtain the first data.
[0030] In some possible implementations, after receiving the third notification, turning on the Wi-Fi module specifically includes: after receiving the third notification, when detecting that the priority of the first service is greater than or equal to a priority threshold, turning on the Wi-Fi module.
[0031] 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.
[0032] 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.
[0033] 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.
[0034] In a second aspect, the present application provides an electronic device, which is a first electronic device, comprising 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 code, wherein the computer program code includes computer instructions. When the one or more processors execute the computer instructions, a communication device performs the network connection method in any possible implementation of any of the above aspects.
[0035] In a third aspect, an embodiment of the present application provides a computer storage medium comprising 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.
[0036] In a fourth aspect, an embodiment of the present application provides a computer program product, which, when executed on a first electronic device, enables the first electronic device to execute the network connection method in any possible implementation of any of the above aspects.
[0037] 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
[0038] FIG1A is a schematic diagram of the system architecture of a network connection system 10 provided in an embodiment of the present application;
[0039] FIG1B is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;
[0040] FIG2 is a flow chart of a network connection method provided in an embodiment of the present application;
[0041] FIG3 is a flow chart of a network connection method according to an embodiment of the present application;
[0042] FIG4 is a flow chart of a network connection method provided in an embodiment of the present application;
[0043] FIG5 is a flow chart of a network connection method according to an embodiment of the present application;
[0044] FIG6 is a flow chart of a network connection method according to an embodiment of the present application;
[0045] FIG7 is a schematic diagram of functional modules of an electronic device 100 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following is a clear and detailed description of the technical solutions in the embodiments of the present application 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 between related 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.
[0047] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0048] The term "user interface (UI)" in the following embodiments of this 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 the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is 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.
[0049] The following introduces some professional terms involved in the embodiments of this application.
[0050] Wireless Fidelity (Wi-Fi) technology: Wi-Fi is the most widely used wireless network transmission technology today. Wi-Fi is a trademark of the Wi-Fi Alliance used as a manufacturer's brand certification for products. It is a wireless local area network technology based on the IEEE 802.11 standard. Due to the close relationship between the two systems, Wi-Fi is often used as a synonym for the IEEE 802.11 standard.
[0051] Sleep mode: When an electronic device has not received any user input for a period of time, it can temporarily stop supplying power to the central processing unit (CPU) to save power. This state is called sleep mode.
[0052] Working state: The state in which the electronic device supplies power to the central processing unit can be called the working state.
[0053] Wake-on-Wi-Fi: Wake-on-Wi-Fi refers to waking up electronic devices from sleep mode to working mode via Wi-Fi signals. Specifically, when an electronic device is in sleep mode, it can wake up from sleep mode to working mode (i.e., re-power the CPU) via an interrupt controller when it receives a Wi-Fi signal.
[0054] 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 hibernation and prevents the system from entering a dormant state. 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.
[0055] Network keep-alive: Network keep-alive is a function used to maintain the connection between an application (hereinafter referred to as the application) and the peer device specified by the application. Applications installed in electronic devices can apply to the electronic device 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 real-time data transmission, receive push notifications, and other operations without the system automatically closing the application or disconnecting the connection between the application and the peer device.
[0056] FIG1A shows a schematic diagram of the system architecture of a network connection system 10 provided in an embodiment of the present application.
[0057] As shown in FIG. 1A , a 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 .
[0058] Both electronic device 100 and electronic device 200 can access the network through router 300. In the embodiment of the present application, the network that electronic device 100 accesses through router 300 can refer to the global Internet, that is, a huge network system formed by interconnected computer networks around the world. The network that electronic device 100 accesses through router 300 can also refer to a local area network, that is, a group of computer systems connected through a computer network within a local area, which can realize functions such as resource sharing and information transmission.
[0059] 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.
[0060] In the network connection system 10, the electronic device 100 can be the watch shown in Figure 1A, or other types of wearable devices such as a bracelet; the electronic device 200 can be the mobile phone shown in Figure 1A, or other types of electronic devices such as a tablet, laptop computer, etc.; the router 300 can be replaced by a base station, or replaced by other types of electronic devices.
[0061] It is understandable that the embodiment shown in FIG1A is only an example. In the embodiment of the present application, the network connection system 10 may also include more, fewer, or different devices than those in the embodiment shown in FIG1A , and the present application does not limit this.
[0062] 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.
[0063] FIG. 1B shows a schematic structural diagram of the electronic device 100 .
[0064] The electronic device 100 can be a wearable device such as a watch, a bracelet, smart glasses, etc. In some embodiments, the electronic device 100 can 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, as well as a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, an in-vehicle 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.
[0065] 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. The sensor module 180 may include a touch sensor 180K, and optionally, may further 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, and the like.
[0066] It should be understood that the structure illustrated in the embodiments 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, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0067] 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 processing unit (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). The different processing units may be independent devices or integrated into one or more processors. The processor 110 may include a central processing unit (CPU).
[0068] 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.
[0069] 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 is cyclically used. 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).
[0070] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0071] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via a USB port. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device through the power management module 141.
[0072] 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 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 count, and battery health status (leakage, impedance). 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.
[0073] The wireless communication module 160 can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 can be one or more devices that integrate 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.
[0074] The interrupt controller 195 can receive signals sent by the Wi-Fi module. If the electronic device 100 is in a dormant state, 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 the working state, the interrupt controller 195 can trigger the processor 110 to execute the Wi-Fi interrupt handler.
[0075] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0076] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). 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), a MiniLED, a MicroLED, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.
[0077] The internal memory 121 may include one or more random access memories (RAMs) and one or more non-volatile memories (NVMs). The RAM can be directly read and written by the processor 110 and can be used to store executable programs (e.g., machine instructions) of the operating system or other running programs, as well as user and application data. The NVM can also store executable programs and user and application data, and can be pre-loaded into the RAM for direct reading and writing by the processor 110.
[0078] 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 an application processor, such as music playback and recording. 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 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or some functional modules of the audio module 170 may be provided in the processor 110.
[0079] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.
[0080] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0081] 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.
[0082] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0083] 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 hardware structure of the electronic device 100 shown in Figure 1B above, and the electronic device 200 may include more, less or different hardware than the electronic device 100, and the present application does not limit this.
[0084] 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 wake-up events occurring 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 the first electronic device receives a data packet through the Wi-Fi connection, triggering an interrupt controller to wake the first electronic device from a sleep state to an active state.
[0085] By using the network connection method provided by this application, it is possible to determine whether network access is required based on the current scenario and wake-up frequency. This can avoid frequent wake-up of the first electronic device in low-power mode, thereby reducing the power consumption of the first electronic device.
[0086] The following describes a specific process of a network connection method provided in an embodiment of the present application.
[0087] As shown in FIG2 , a specific process of a network connection method may include the following steps:
[0088] S201 : When the Wi-Fi module is turned on, the electronic device 100 monitors and records a Wi-Fi wake-up event.
[0089] The electronic device 100 can determine whether the Wi-Fi module is turned on by detecting whether the power supply module is supplying power to the Wi-Fi module. If the power supply module is detected to be supplying power to the Wi-Fi module, the Wi-Fi module is determined to be turned on; if the power supply module is detected to be not supplying power to the Wi-Fi module, the Wi-Fi module is determined to be turned off.
[0090] When the Wi-Fi module is turned on, the electronic device 100 can establish a Wi-Fi connection with a network connection device (such as the router 300 shown in Figure 1A). When the electronic device 100 has established a Wi-Fi connection, it can receive data packets sent via the Wi-Fi connection through the Wi-Fi module. If the electronic device 100 is in a dormant state when it receives 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.
[0091] After the electronic device 100 is awakened, the electronic device 100 may record the awakening event through the CPU.
[0092] Illustratively, Table 1 shows a wake-up event table recorded by an electronic device 100 provided in an embodiment of the present application.
[0093] Table 1
[0094] As shown in Table 1, the wake-up event table recorded by the electronic device 100 may include the wake-up event and the time of occurrence of the wake-up event (also called the wake-up time). According to Table 1, at 10:01:30, the electronic device 100 detected event A; at 10:02:15, the electronic device 100 detected event B; at 10:02:59, the electronic device 100 detected event C; and at 10:03:35, the electronic device 100 detected event D.
[0095] 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.
[0096] In some embodiments, the electronic device 100 may store the recorded wake-up event table (e.g., Table 1 above) in a database or other file. 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.
[0097] S202: The electronic device 100 counts the number of wake-up events detected within a monitoring period.
[0098] In some embodiments, the monitoring period can be a preset time period, such as 30 seconds, 1 minute, or 5 minutes. For example, taking the wakeup event table shown in Table 1 as an example, if the monitoring period is 2 minutes, then the number of wakeups within a monitoring period corresponding to 10:01:30-10:03:30 can be 3. In some embodiments, the monitoring period can be set to a slightly longer time, such as 30 minutes or 60 minutes, to reduce the probability of false detection.
[0099] In some embodiments, the electronic device 100 may use the time when the wake-up monitoring is started as the starting time and divide the subsequent time into equal time periods, with the length of each time period being a monitoring cycle. The electronic device 100 may determine the number of occurrences of the wake-up event in each monitoring cycle based on the wake-up event table obtained in step S201.
[0100] In other embodiments, a certain time interval may exist 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) before starting a new monitoring cycle with the current time as the starting time. This can avoid meaningless wake-up monitoring and reduce power consumption.
[0101] S203: When the electronic device 100 detects that the number of occurrences of the wake-up event in a monitoring period is greater than the wake-up threshold, it determines whether the current scene belongs to a low power consumption scene.
[0102] The wake-up threshold (also referred to as the first number) can be a preset number of times, such as 5 times, 10 times, etc. In some embodiments, the setting of the wake-up threshold can also be related to the length of the monitoring period. The longer the monitoring period, the greater the wake-up threshold.
[0103] Low-power consumption scenarios (also known as low-power modes) may include any one or more of the following: low-battery scenarios, screen-off scenarios, and non-perceivable service scenarios. Perceivable services may include any one or more of the following: download services, music services, video services, call services, and network keep-alive services requested by specific applications. Non-perceivable service scenarios refer to scenarios where the currently executed service does not fall under any of the aforementioned perceivable services.
[0104] The following describes several ways to determine whether the current scene is a low-power scene.
[0105] 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.
[0106] In some embodiments, the electronic device 100 can determine whether the current scene is a screen-off scene based on whether power is currently being 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 again determine whether it is in a screen-off scene in step S203.
[0107] 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.
[0108] 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.
[0109] When the electronic device 100 detects that the number of wake-up times in a monitoring period 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 period can also be referred to as a first time period.
[0110] If the current scenario is a low power consumption scenario, the electronic device 100 may determine that the electronic device 100 has no services 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.
[0111] If the current scene is not a low-power scene, the electronic device 100 may determine that there may be services that need to be performed via Wi-Fi in the current scene, and the electronic device 100 may keep the Wi-Fi module turned on. In some embodiments, when the number of wake-up times within the monitoring period is detected to be greater than the wake-up threshold, the electronic device 100 may re-determine whether the current scene is a low-power scene.
[0112] In some embodiments, if the current scenario is not a low-power scenario, 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 step S202. This can avoid multiple recognitions of the current scenario while the electronic device 100 is executing the same service, which would result in unnecessary power consumption.
[0113] S204: The electronic device 100 turns off the Wi-Fi module and stops monitoring Wi-Fi wake-up events.
[0114] 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 other than a Wi-Fi connection.
[0115] S205 , when the electronic device 100 detects that the activation condition is met, it turns on the Wi-Fi module.
[0116] 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 button operation, being in the screen-on state and receiving a user touch screen operation, receiving a user pull-down shortcut menu operation, etc.
[0117] After the electronic device 100 turns off the Wi-Fi module, the electronic device 100 can turn the Wi-Fi module back on when it detects that the turn-on condition is met. In this way, the electronic device 100 can turn the Wi-Fi module back on when Wi-Fi is needed, thereby saving power and ensuring normal use by the user.
[0118] 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 scenario is a low-power scenario, and the Wi-Fi module can be turned off in the low-power scenario. In this way, the Wi-Fi module can be turned off in the low-power scenario to avoid the power consumption caused by frequent awakening. Moreover, the Wi-Fi module will not be turned off in non-low-power scenarios to avoid missing important business data.
[0119] 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 the first time), and is in a low-power scenario, thereby saving power consumption.
[0120] The following describes the specific process of another network connection method provided by an embodiment of the present application.
[0121] As shown in FIG3 , a specific process of a network connection method may include the following steps:
[0122] S301 , when the Wi-Fi module is turned on, the electronic device 100 monitors the wearing state of the electronic device 100 .
[0123] 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.
[0124] 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.
[0125] The following describes two wearing detection methods for the electronic device 100 provided in embodiments of the present application.
[0126] In some embodiments, the electronic device 100 may be provided with a photoplethysmography (PPG) module, 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.
[0127] In other embodiments, a capacitive sensor may be provided on the inner side of the electronic device 100. When a user wears the electronic device 100, the capacitive sensor contacts the user's skin, causing a change in capacitance. The electronic device 100 may also detect the change in capacitance using the capacitive sensor to determine whether the user is wearing the electronic device 100.
[0128] It can be understood that the above two methods of determining whether the electronic device 100 is worn are just 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.
[0129] 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.
[0130] 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 is supplying 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.
[0131] In other embodiments, when the screen of the electronic device 100 turns off / on, the display manager in the electronic device 100 (such as 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.
[0132] If the electronic device 100 is currently in the screen-off state, the electronic device 100 may execute the following step S303 .
[0133] If the electronic device 100 is currently in the screen-on state, the electronic device 100 may execute the following step S304 .
[0134] S303, the electronic device 100 determines whether an interruption event occurs within the monitoring time period. The interruption event includes the user putting on the electronic device 100 again and the screen of the electronic device 100 being turned on. The starting time of the monitoring time period is the current time, and the duration is the preset duration.
[0135] The way in which the electronic device 100 determines the screen-off state and the screen-on state can refer to the relevant content in the above step S302.
[0136] 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.
[0137] The following introduces two timing methods for monitoring time periods.
[0138] In some embodiments, the electronic device 100 can set a timer for the wearable monitoring service. The timer can correspond to the monitoring time period. The timer is set at the start time of the monitoring time period, and the timer countdown ends at the end time of the monitoring time period. In this way, the electronic device 100 can be triggered in time to execute subsequent steps.
[0139] 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 it detects that the timer of other services has ended, it determines 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.
[0140] During the monitoring period, if the screen of the electronic device 100 turns on, the electronic device 100 may execute the following step S304.
[0141] 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.
[0142] If no interruption event is detected during the monitoring period, the electronic device 100 may execute the following step S305 .
[0143] 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.
[0144] 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 starting moment of the monitoring time period is the screen-off moment and the duration is a preset duration.
[0145] 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.
[0146] During the monitoring period, if the screen of the electronic device 100 turns on, the electronic device 100 may re-execute step S304.
[0147] 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.
[0148] If no interruption event is detected during the monitoring period, the electronic device 100 may execute the following step S305 .
[0149] S305: Determine whether the current scene is a low power consumption scene.
[0150] The specific content and determination method of the low power consumption scenario can be referred to the relevant description in step S202 shown in FIG. 2 , which will not be repeated here.
[0151] 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.
[0152] If the current scenario is not a low power consumption scenario, the electronic device 100 may keep 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 time may be a preset time.
[0153] 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.
[0154] S306: The electronic device 100 turns off the Wi-Fi module.
[0155] S307: When the electronic device 100 detects that the Wi-Fi activation condition is met, it activates the Wi-Fi module.
[0156] For the specific contents of steps S306 to S307 , reference may be made to the description of steps S204 to S205 shown in FIG. 2 .
[0157] 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 scenario, the Wi-Fi module can be turned off to save power consumption of the electronic device 100.
[0158] In some embodiments, the electronic device 100 may also turn off the Wi-Fi module when detecting a Wi-Fi long-hold lock event and is in a low-power scenario, thereby saving power consumption.
[0159] The following describes the specific process of another network connection method provided by an embodiment of the present application.
[0160] As shown in FIG4 , a specific process of a network connection method may include the following steps:
[0161] S401: When the electronic device 100 detects that the Wi-Fi module is turned on, it monitors and records a Wi-Fi lock event.
[0162] Illustratively, Table 2 shows a table of lock events recorded by an electronic device 100 provided in an embodiment of the present application.
[0163] Table 2
[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). Table 2 shows that 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; and 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 uses a lock mechanism for standby, the electronic device 100 can obtain the lock duration of each service based on the operating system's records. Taking the Android system as an example, the electronic device 100 can obtain the lock duration of each service from the Android system's / proc / wakeup_sources. In other embodiments, the electronic device 100 can also periodically 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 Android system's / proc / wakeup_sources.
[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 lock 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 lock duration is greater than the lock threshold, it determines whether the current scene belongs to a low-power 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 is not a low power consumption scenario, the electronic device 100 may keep the Wi-Fi module turned on, and execute step S402 when another lock event with a lock duration greater than the lock 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 is not a low power scenario, the electronic device 100 may keep the Wi-Fi module turned on and execute step S402 when detecting a lock event 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 other than a Wi-Fi connection.
[0177] S404: When the electronic device 100 detects that the Wi-Fi activation condition is met, it activates the Wi-Fi module.
[0178] The specific contents of step S403 to step S404 can refer to the relevant description of step S203 to step S204 shown in Figure 2 above, and will not be repeated here.
[0179] By adopting the network connection method provided in this 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 electronic device 100 turns on the Wi-Fi module, the electronic device 100 may also determine whether the current scene is a low-power scene when it detects that any one of the scene recognition conditions is met, and turn off the Wi-Fi module when it recognizes that the current scene belongs to a low-power scene. Among them, 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 the specific contents of whether to turn on the Wi-Fi module subsequently can refer to the relevant descriptions in the embodiments shown in Figures 2 to 5 above, and 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 may turn off the Wi-Fi module after detecting that a communication connection has been 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. For the specific process, please refer to the embodiment shown in FIG5 below.
[0184] As shown in FIG5 , 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 connections other than 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 available, the electronic device 200 is connected to the network; when the network status of the electronic device 200 is unavailable, 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, which 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 using 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. 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 ability of electronic device 100 to access the network through electronic device 200 means that electronic device 100 can communicate with a peer device through electronic device 200. The peer device can be a network connection device or another electronic device in the network connected to the network through the network connection device. In the embodiment of the present application, the peer 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 available, 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 unavailable, 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 identifiers stored by the electronic device 100 include 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 identifiers stored by the electronic device 100 do 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. If the power level of the electronic device 200 is greater than the power threshold, the electronic device 100 may determine that the electronic device 200 can access the network; if the power level of the electronic device 200 is less than or equal to the power threshold, the electronic device 100 may determine that the electronic device 200 cannot access the network.
[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 items of content in the network connection information. For example, if the power level of the electronic device 200 is greater than the power threshold, the network status is available, and the operating system of the electronic device 200 supports other electronic devices using 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 level of the electronic device 200 is less than the power threshold, or the network status is unavailable, or the operating system of the electronic device 200 does not support other electronic devices using 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. 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 execute 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 can also be replaced by the network signal strength of the electronic device 200 (such as Wi-Fi signal strength, mobile data signal strength, etc.). The electronic device 100 can 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 can re-enable the Wi-Fi module.
[0206] In other embodiments, the electronic device 100 may also obtain the power level 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 level 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 using the network connection method provided in this application, electronic device 100 can access the network through electronic device 200, and can also re-enable the Wi-Fi module when the network quality of electronic device 200 is poor. In this way, not only can the power consumption of the Wi-Fi module in 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 electronic device 100 is not turned on, electronic device 100 establishes a communication connection with electronic device 200. In this case, electronic device 100 can obtain network connection information sent by electronic device 200 and determine whether electronic device 100 can access the network through electronic device 200. If electronic device 100 can access the network through electronic device 200, electronic device 100 can directly access the network through electronic device 200 and turn on the Wi-Fi module of electronic device 100 when detecting that the network transmission speed between electronic device 100 and electronic device 200 is lower than the first speed. If electronic device 100 cannot access the network through electronic device 200, 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 usage request to the electronic device 200, where the network usage 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 usage 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, where the determination result may be used to notify the electronic device 100 whether it 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 may perform steps S505 to S506 shown in FIG5 above, where the determination result sent by the electronic device 200 to the electronic device 100 may be a first notification. 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. The manner in which the electronic device 200 determines whether the electronic device 100 can access the network through the electronic device 200 based on the network connection information may refer to the relevant description in the embodiment shown in FIG5 above.
[0211] In this way, the electronic device 200 can directly send the judgment result to the electronic device 100 without sending network connection information, thereby reducing transmission power consumption.
[0212] In other embodiments, when electronic device 100 accesses the network through electronic device 200, electronic device 200 may determine in real time based on the network connection information whether electronic device 100 is supported to access the network. If it is determined that electronic device 200 does not support electronic device 100 accessing the network, electronic device 200 may send a second notification to electronic device 100, the second notification being used to indicate that electronic device 200 does not support electronic device 100 accessing the network through electronic device 200; after receiving the second notification, electronic device 100 turns on the Wi-Fi module.
[0213] In some embodiments, when electronic device 100 accesses a network through electronic device 200 and uses network services, electronic device 200 may coordinate the use of network services (e.g., usage time and / or bandwidth) between electronic device 100 and electronic device 200. Electronic device 100 may dynamically turn on or off the Wi-Fi module of electronic device 100 based on notifications sent by electronic device 200. For a specific process, please refer to the embodiment shown in FIG6 below.
[0214] As shown in FIG6 , 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 resource 1 corresponding to service 1, and the address for obtaining 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: 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's operation. For example, the electronic device 100 can receive and generate a network request in response to a user's operation of opening a map application. 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 an application request and generate a network request. For example, the electronic device 100 may receive an application upgrade request and generate a network request for obtaining 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] Illustratively, 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] As shown in Table 3, the electronic device 200 can determine the priority of a service based on 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 takeout 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; and when the service type is an application upgrade service, the priority of the service is low.
[0229] 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 the embodiment shown in Table 3, and the present application does not limit this.
[0230] 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 types and service priorities.
[0231] 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.
[0232] 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.
[0233] 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 .
[0234] S605 , the electronic device 200 obtains resource 1 based on the resource address 1 in the network request 1 .
[0235] S606 , the electronic device 200 sends resource 1 to the electronic device 100 .
[0236] After acquiring resource 1, the electronic device 200 may execute step S607 without executing step S608.
[0237] S607 , the electronic device 200 obtains resource 2 based on the resource address 2 in the network request 2 .
[0238] 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.
[0239] In some embodiments, the waiting notification may further 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.
[0240] S609: The electronic device 100 determines whether to wait.
[0241] In some embodiments, after receiving the wait 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 wait control and a refuse wait control. In this case, the electronic device 100 may determine whether to wait for the electronic device 200 to obtain and send resource 1 based on the user's operation on the prompt window.
[0242] In other embodiments, the electronic device 100 may also store a correspondence between service types and service priorities. For specific correspondences, 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). 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.
[0243] It is understandable that the embodiments herein are merely 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.
[0244] 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 .
[0245] If the electronic device 100 determines not to wait, the electronic device 100 may execute step S610 described below.
[0246] S610: The electronic device 100 turns on the Wi-Fi module.
[0247] 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.
[0248] In other embodiments, the network request (e.g., network request 1, network request 2, etc.) in the embodiment shown in Figure 6 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 can be used to request the electronic device 200 to send the service data to the receiving device. The electronic device 200 can 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.
[0249] 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.
[0250] In this way, the electronic device 200 can also determine the order of acquiring resources according to the order of receiving network requests.
[0251] In other embodiments, the electronic device 200 may also allocate different bandwidths to different services based on the priorities of multiple services, for example, allocating a wider bandwidth to a high-priority service and a narrower bandwidth to a low-priority service, 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 can also be analogously referred to the embodiment shown in Figure 6 above, and this application does not limit it here.
[0252] In this way, the electronic device 200 can also allocate different bandwidths to different services according to the service priorities, ensuring that services with higher priorities have a better network experience.
[0253] The following introduces the functional modules of an electronic device 100 provided in an embodiment of the present application.
[0254] As shown in FIG7 , 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.
[0255] 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. If 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.
[0256] 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 monitoring module 705, etc.), identify the current scene, and determine whether the current scene belongs to a low-power scene. When the current scene belongs to a low-power 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 conditions. 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.
[0257] 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 shut down the Wi-Fi device.
[0258] The wearing detection module 704 can detect whether the electronic device 100 is being 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 length of time the user is 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 a preset time threshold, the wearing detection module 704 can send a scene recognition instruction to the scene recognition module 702, which is used to instruct the scene recognition module 702 to determine whether the current scene is a low-power scene.
[0259] The lock monitoring module 705 can monitor and record Wi-Fi lock events and lock durations (including lock and release times), and determine the lock duration of each lock event. The lock monitoring module 705 can also store a preset lock threshold and determine whether the lock duration of each lock event exceeds the lock threshold. If the lock monitoring module 705 detects that the lock duration of a lock event is greater than the lock threshold, it can send a scene recognition instruction to the scene recognition module 702, which is used to instruct the scene recognition module 702 to determine whether the current scene is a low-power scene.
[0260] 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 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 based on the network connection information of the electronic device 200. In other embodiments, the pairing detection module 706 can also receive a 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.
[0261] If it is determined that electronic device 100 can access the network through electronic device 200, pairing detection module 706 may send a shutdown instruction to Wi-Fi control module 703, which instructs Wi-Fi control module 703 to shut down the Wi-Fi module. In some embodiments, after shutting down the Wi-Fi module, pairing detection module 706 may also obtain the network status and / or battery status of electronic device 200 in real time, and determine whether electronic device 200 can still support electronic device 100 using the network of electronic device 200 based on the network status and / or battery status of electronic device 200. In some embodiments, electronic device 100 may also obtain the network data transmission speed between electronic device 100 and electronic device 200 in real time. If the network data transmission speed is detected to be less than a first speed, electronic device 100 may also determine that electronic device 100 cannot access the network through electronic device 200. If it is determined that electronic device 100 cannot access the network through electronic device 200, pairing detection module 706 may send a startup instruction to Wi-Fi control module 703, which instructs 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 to use 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.
[0262] It can be understood that the embodiment shown in Figure 7 is only an example. In the embodiment of the present application, the electronic device 100 may also include more, fewer or different functional modules than the embodiment shown in Figure 7, or combine multiple functional modules shown in Figure 7, or split a functional module shown in Figure 7 into multiple functional modules. This application does not limit this.
[0263] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.
[0264] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented 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, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may 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 therein. The available medium may 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 drive (SSD)).
[0265] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0266] In short, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection 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
Patent Citations
Network connection method, system and related device
CN119497195A
Method for preventing WIFI malicious frequent awakening
CN106686633A
Multi-device communication method, electronic device and computer readable storage medium
CN114584930A
Mode control method and system of wearable device and wearable device
CN114697444A
Method for managing terminal equipment, electronic equipment and computer readable storage medium
CN116056190A