WO2025123735A1 - Procédé de commande de puce wifi et dispositif électronique - Google Patents

Procédé de commande de puce wifi et dispositif électronique Download PDF

Info

Publication number
WO2025123735A1
WO2025123735A1 PCT/CN2024/111564 CN2024111564W WO2025123735A1 WO 2025123735 A1 WO2025123735 A1 WO 2025123735A1 CN 2024111564 W CN2024111564 W CN 2024111564W WO 2025123735 A1 WO2025123735 A1 WO 2025123735A1
Authority
WO
WIPO (PCT)
Prior art keywords
wifi
wifi chip
electronic device
chip
indicate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/111564
Other languages
English (en)
Chinese (zh)
Inventor
张云华
杨鹏
陈明皓
马红阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Publication of WO2025123735A1 publication Critical patent/WO2025123735A1/fr
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present application relates to the field of terminal technology, and in particular to a control method and electronic device of a Wireless Fidelity (WiFi) chip.
  • WiFi Wireless Fidelity
  • the present application provides a control method for a WiFi chip and an electronic device.
  • the WiFi chip is promptly controlled to power off, thereby realizing self-healing of the WiFi chip, so that the electronic device can access the network normally through WiFi, meet the user's Internet access needs, and improve the user experience.
  • the present application provides a control method for a WiFi chip, which is applied to an electronic device including a WiFi chip.
  • the electronic device obtains a flag bit of the WiFi chip, which can be used to indicate whether the WiFi chip needs to be powered off; in response to the flag bit indicating that the WiFi chip needs to be powered off, the WiFi chip is controlled to be powered off.
  • the flag is used to indicate that the WiFi chip needs to be powered off when the WiFi chip is abnormal.
  • the WiFi chip is controlled to be powered off, so that when a scanning abnormality caused by the abnormality of the WiFi chip occurs, the WiFi chip is controlled to be powered off so that it can self-heal within a certain period of time, so that the electronic device can access the network normally through WiFi, meet the user's Internet access needs, and enhance the user's Internet access experience.
  • the electronic device may monitor whether there is a screen-off broadcast before controlling the WiFi chip to power off. If the screen-off broadcast is monitored, it indicates that the electronic device is in a screen-off state. In the screen-off state, the WiFi chip is controlled to power off, so as not to affect the user experience.
  • the electronic device can set a flag bit to a first value, such as true, to indicate that the WiFi chip needs to be powered off when the information of the WiFi chip is used to indicate that the WiFi chip is abnormal.
  • the information of the WiFi chip may include: the WiFi scan result of the WiFi chip, the status information of the WiFi switch of the WiFi chip, and the scan result list of the WiFi chip.
  • the electronic device such as the processor of the electronic device, can determine whether the WiFi chip needs to be powered off by periodically or when a predetermined condition is met. The operation is simple, time-saving, and further ensures the user's Internet experience.
  • the information of the WiFi chip can be used to indicate that the WiFi chip is abnormal, or to indicate that the current scene is a scene of WiFi chip abnormality.
  • the first condition may include: the WiFi scan result is used to indicate that the WiFi chip scan is successful, the state of the WiFi switch The information is used to indicate that the WiFi switch is in the on state, and the scan result list is empty.
  • the electronic device such as the processor of the electronic device, can determine that the first condition is met when the WiFi scan result is used to indicate that the WiFi chip scan is successful, the status information of the WiFi switch is used to indicate that the WiFi switch is in the on state, and the scan result list is empty, it can be determined that the WiFi chip is abnormal or the current scene is a WiFi chip abnormal scene.
  • the scan result of the WiFi chip is identified as a successful scan, but the reported scan result list is empty. This is a scan abnormality scene caused by the abnormal WiFi chip, which improves the ability of the WiFi chip in the electronic device to automatically recover during use.
  • the information of the WiFi chip can be used to indicate that the WiFi chip is abnormal, or to indicate that the current scene is a scene of WiFi chip abnormality.
  • the first condition may further include location information of the current location of the electronic device, which is used to indicate that the electronic device is in a preset location set.
  • location information of the current location of the electronic device which is used to indicate that the electronic device is in a preset location set.
  • the flag bit may be set to a first value based on a WiFi scan result of the WiFi chip. That is, when the WiFi scan result of the WiFi chip is used to indicate that the WiFi chip is abnormal, the flag bit is set to the first value to indicate that the WiFi chip needs to be powered off.
  • the WiFi scanning result is that the WiFi chip scanning fails, and the reason for the scanning failure is a preset reason
  • the WiFi scanning result is used to indicate that the WiFi chip is abnormal, or to indicate that the current scene is a WiFi chip abnormal scene.
  • the scanning abnormal scene in which the WiFi chip scanning fails due to the preset reason is identified, the ability of the WiFi chip in the electronic device to automatically recover during use is improved, and the user experience is improved.
  • the WiFi chip when the WiFi chip fails to scan and the number of times the reason for the scan failure is a preset reason is greater than a second threshold, it can be determined that the WiFi chip is abnormal. In this way, by determining that the WiFi chip is abnormal when the WiFi chip scan fails for multiple times and the reason for the scan failure is a preset reason, the accuracy of identifying the WiFi chip abnormal scene is improved.
  • the flag bit may be set to a second value, such as setting the second value to false, to indicate that the WiFi chip does not need to be powered off.
  • the present application provides a control method for a WiFi chip, which is applied to an electronic device including a WiFi chip.
  • information of the WiFi chip is obtained; the information of the WiFi chip includes change information of a WiFi switch of the WiFi chip, status information of the WiFi switch, a cached scan result list of the WiFi chip, and a timestamp of the cached scan result list of the WiFi chip; in response to the information of the WiFi chip indicating that the WiFi chip is abnormal, the WiFi chip is controlled to be powered off.
  • the WiFi chip when the acquired WiFi chip information indicates that the WiFi chip is abnormal, the WiFi chip is controlled to be powered off.
  • the WiFi chip is controlled to be powered off so that it can self-heal within a certain period of time, so that the electronic device can access the network normally through WiFi, meeting the needs of the user. Users' Internet access needs are met and their Internet experience is enhanced.
  • the WiFi chip when the user senses that the WiFi chip is abnormal and manually operates the WiFi switch, the WiFi chip can be powered off so that it can successfully self-heal, further ensuring the user experience.
  • the WiFi chip it is possible to determine whether the WiFi chip is abnormal, or to determine whether the current scene is an abnormal WiFi chip scene, based on the change information of the WiFi switch of the WiFi chip, the status information of the WiFi switch, the cached scan result list of the WiFi chip, and the timestamp of the cached scan result list of the WiFi chip. For example, when the state of the WiFi switch changes, the status information of the WiFi switch is used to indicate that the WiFi switch is in the off state, the scan result list is not empty, and the timestamp is greater than a preset threshold, the electronic device, such as the processor of the electronic device, can determine that the information of the WiFi chip is used to indicate that the WiFi chip is abnormal. Based on this, the abnormal WiFi chip scene can be accurately identified, further ensuring the user experience.
  • the present application provides a control device for a WiFi chip, which has the function of implementing the behavior of the electronic device in the method of the first aspect.
  • the function can be implemented by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions, for example, an acquisition unit or module, a control unit or module, and a monitoring unit or module.
  • an electronic device comprising: a memory, a WiFi chip and one or more processors; the memory, the WiFi chip and the processor are coupled;
  • the memory is used to store computer program code
  • the computer program code includes computer instructions; when the computer instructions are executed by the processor, the electronic device executes the control method of the WiFi chip in the above-mentioned first aspect, second aspect and any implementation method thereof.
  • a computer-readable storage medium including a computer program, and when the computer program runs on an electronic device, the electronic device can execute a control method for a WiFi chip as in the first aspect, the second aspect, and any implementation thereof.
  • a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the control method of the WiFi chip in the first aspect, the second aspect and any implementation manner thereof.
  • an embodiment of the present application provides a chip system, the chip system including a processor, the processor being used to call a computer program in a memory to execute a control method for a WiFi chip as in the first aspect, the second aspect, and any implementation thereof.
  • beneficial effects that can be achieved by the device described in the third aspect, the electronic device described in the fourth aspect, the computer-readable storage medium described in the fifth aspect, the computer program product described in the sixth aspect, and the chip system described in the seventh aspect provided above can refer to the beneficial effects in the first aspect, the second aspect and any possible implementation methods thereof, and will not be repeated here.
  • FIG1 is a schematic diagram of a WiFi chip of an electronic device surfing the Internet in the related art
  • FIG2 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application.
  • FIG3 is a schematic flow chart of a control method for a WiFi chip provided in an embodiment of the present application.
  • FIG4 is a schematic diagram of a first process flow of a method for handling abnormal scenarios of a WiFi chip provided by an embodiment of the present application;
  • FIG5 is a second flow chart of a method for handling abnormal scenarios of a WiFi chip according to an embodiment of the present application
  • FIG6 is a third flow chart of a method for handling abnormal scenarios of a WiFi chip provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of another abnormal scenario method for a WiFi chip provided by an embodiment of the present application.
  • FIG8 is a second flow chart of another abnormal scenario method for a WiFi chip provided by an embodiment of the present application.
  • FIG9 is a flow chart of another control method for a WiFi chip provided in an embodiment of the present application.
  • FIG10 is a schematic diagram of a flow chart of another abnormal scenario method for a WiFi chip provided in an embodiment of the present application.
  • FIG. 11 is a schematic diagram of the structure of a chip system provided in an embodiment of the present application.
  • a and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.
  • plural means two or more than two.
  • At least one of the following or similar expressions refers to any combination of these items, including any combination of single items or plural items.
  • at least one of a, b, or c can mean: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.
  • words such as “first” and “second” are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as “first” and “second” do not limit the quantity and execution order, and words such as “first” and “second” do not necessarily limit the difference.
  • words such as “exemplary” or “for example” are used to indicate examples, illustrations or descriptions. Any embodiment or design described as “exemplary” or “for example” in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as “exemplary” or “for example” is intended to present related concepts in a concrete way for easy understanding.
  • the electronic device In addition to surfing the Internet through traffic, current electronic devices can also use WiFi to provide users with Internet access functions.
  • the electronic device is a mobile phone for demonstration.
  • the user needs to turn on the WiFi function on the mobile phone.
  • the user can enter the setting interface of the WiFi function through the interface of the setting application, such as the interface 11 shown in (a) of FIG1, such as the interface 12 shown in (b) of FIG1.
  • the user can operate the WiFi switch in the interface 12 for controlling the opening/closing of the mobile phone WiFi function to trigger the mobile phone to turn on/off the WiFi function of the mobile phone.
  • the mobile phone can perform periodic scanning to scan the available WiFi networks around. After scanning the available WiFi network, the mobile phone can display the identifier of the available WiFi network scanned by the mobile phone in the available WiFi list of the interface 12 shown in (b) of FIG1, such as the name of the WiFi network, such as XXX1, XXX2, etc. Afterwards, the user can select the WiFi network that the mobile phone needs to connect to in the available WiFi list, such as selecting the identifier of the WiFi network that the mobile phone needs to connect to. After receiving the operation of the user selecting the identifier of a WiFi network in the available WiFi list, the mobile phone can connect to the WiFi network selected by the user for the user to surf the Internet.
  • the mobile phone performs periodic scanning: the WiFi chip of the mobile phone periodically scans the available WiFi channels, such as periodically scanning the available WiFi channels in the 5G frequency band, so as to determine the available WiFi networks, and display the scanned information of the available WiFi networks to the user through the available WiFi list for the user to select.
  • the WiFi chip of the mobile phone periodically scans the available WiFi channels, such as periodically scanning the available WiFi channels in the 5G frequency band, so as to determine the available WiFi networks, and display the scanned information of the available WiFi networks to the user through the available WiFi list for the user to select.
  • the available WiFi list displayed by the mobile phone does not include any WiFi network information, which causes the user to be unable to select the WiFi network to which the mobile phone needs to connect, thereby causing the user to be unable to use WiFi to access the Internet.
  • the embodiment of the present application provides a control method for a WiFi chip, which controls the WiFi chip to be powered off when it is determined that the current scene is a scene of WiFi chip abnormality, that is, when the scanning is abnormal due to the abnormal WiFi chip.
  • the electronic device can be a mobile phone, a tablet computer, a smart watch, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) or a virtual reality (VR) device, etc., which includes a WiFi chip.
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • AR augmented reality
  • VR virtual reality
  • the control method of the WiFi chip provided in the embodiment of the present application can be applied to the scene of abnormal scanning caused by abnormal WiFi chip of the electronic device.
  • the scene of abnormal scanning caused by abnormal WiFi chip can be that the WiFi chip scans successfully, but the available WiFi list does not include the information of the successfully scanned WiFi network; it can also be that the WiFi chip scans failed, such as the WiFi chip receives the scan instruction but does not scan, resulting in a scan failure; or the WiFi function is abnormal, and the electronic device detects that the user manually operates the WiFi switch in the setting interface, etc.
  • FIG2 shows a schematic diagram of the structure of the mobile phone 200.
  • the mobile phone 200 may include a processor 210, an external memory interface 220, an internal memory 221, a mobile communication module 230, a wireless communication module 240, a charging management module 250, a power management module 260, a battery 270, an antenna 1, an antenna 2, an audio module 280, a sensor module 290, a button 291, a motor 292, an indicator 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc.
  • SIM subscriber identification module
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 200.
  • the mobile phone 200 may include more or fewer components than those shown in the figure, or combine some components, or separate some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU). Different processing units may be independent devices. It may also be integrated into one or more processors.
  • AP application processor
  • modem processor e.g., a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU).
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices. It may also be integrated into one or more processors.
  • 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.
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the memory in the processor 210 is a cache memory.
  • the memory may store instructions or data that the processor 210 has just used or circulated. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
  • the processor 210 may include one or more interfaces. In an embodiment of the present application, the processor 210 may be used to control the WiFi chip to power off when it is determined that the current scene is a scene of scanning abnormality caused by an abnormal WiFi chip, so that the WiFi chip can self-heal.
  • the charging management module 250 is used to receive charging input from a charger.
  • the charger can be a wireless charger or a wired charger. While the charging management module 250 charges the battery 270, it can also power the mobile phone 200 through the power management module 260.
  • the power management module 260 is used to connect to the battery 270.
  • the power management module 260 receives input from the battery 270 and/or the charging management module 250, and supplies power to the processor 210, the internal memory 221, the display screen 294, and the wireless communication module 240 (such as a WiFi chip).
  • the power management module 260 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the power management module 260 can also be set in the processor 210.
  • the power management module 260 and the charging management module 250 can also be set in the same device.
  • the wireless communication function of the mobile phone 200 can be realized through the antenna 1, the antenna 2, the mobile communication module 230, the wireless communication module 240, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in mobile phone 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 230 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the mobile phone 200.
  • the mobile communication module 230 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 230 can receive electromagnetic waves from the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the wireless communication module 240 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the mobile phone 200.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the wireless communication module 240 may include the WiFi chip in the present application.
  • the antenna 1 of the mobile phone 200 is coupled to the mobile communication module 230, and the antenna 2 is coupled to the wireless communication module 240, so that the mobile phone 200 can communicate with the network and other devices through wireless communication technology.
  • the mobile phone 200 realizes the display function through the GPU, the display screen 294, and the application processor.
  • a microprocessor for processing connected to the display screen 294 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 294 is used to display images, videos, etc.
  • the display screen 294 includes a display panel.
  • the display screen 294 may be a touch screen.
  • the display screen 294 may be used for a settings interface for the WiFi function.
  • the settings interface may include a WiFi switch for turning on/off the WiFi function.
  • the settings interface may also be used to display information about the scanned WiFi network, such as the WiFi network identifier, for the user to select the WiFi network to be connected.
  • the external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 200.
  • an external memory card such as a Micro SD card
  • the internal memory 221 can be used to store computer executable program codes, which include instructions.
  • the internal memory 221 can include a program storage area and a data storage area.
  • the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the data storage area can store data created during the use of the mobile phone 200 (such as audio data, a phone book, etc.), etc.
  • the internal memory 221 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (universal flash storage, UFS), etc.
  • the processor 210 executes various functions and data processing of the mobile phone 200 by running instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor 210.
  • the audio module 280 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 280 can also be used to encode and decode audio signals.
  • the audio module 280 can be arranged in the processor 210, or some functional modules of the audio module 280 can be arranged in the processor 210.
  • the sensor module 290 may include a pressure sensor 290A, a fingerprint sensor 290B, a temperature sensor 290C, a touch sensor 290D, and the like.
  • the pressure sensor 290A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 290A can be set on the display screen 294.
  • pressure sensors 290A such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
  • a capacitive pressure sensor can be a parallel plate including at least two conductive materials.
  • the fingerprint sensor 290B is used to collect fingerprints.
  • the mobile phone 200 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.
  • the temperature sensor 290C is used to detect temperature.
  • the mobile phone 200 uses the temperature detected by the temperature sensor 290C to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 290C exceeds a threshold, the mobile phone 200 reduces the performance of the processor located near the temperature sensor 290C to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the mobile phone 200 heats the battery 270 to avoid abnormal shutdown of the mobile phone 200 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the mobile phone 200 performs a boost on the output voltage of the battery 270 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 290D is also called a "touch device”.
  • the touch sensor 290D can be set on the display screen 294.
  • the touch sensor 290D and the display screen 294 form a touch screen, also called a "touch screen”.
  • the touch sensor 290D is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 294.
  • the touch sensor 290D can also be set on the surface of the mobile phone 200, which is different from the position of the display screen 294.
  • the key 291 includes a power key, a volume key, etc.
  • the key 291 can be a mechanical key or a touch key.
  • the mobile phone 200 can receive key input and generate key signal input related to the user settings and function control of the mobile phone 200.
  • Motor 292 can generate vibration prompts.
  • Motor 292 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • touch operations acting on different areas of the display screen 294, motor 292 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminders, receiving messages, alarm clocks, games, etc.
  • the touch vibration feedback effect can also support customization.
  • Indicator 293 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
  • the SIM card interface 295 is used to connect a SIM card.
  • the SIM card can be connected to or disconnected from the mobile phone 200 by inserting the SIM card interface 295 or pulling the SIM card out of the SIM card interface 295.
  • Figure 3 is a schematic flow chart of a control method for a WiFi chip provided in an embodiment of the present application, and the method may include: S301-S302.
  • the electronic device such as the processor of the electronic device, can periodically monitor the WiFi chip, that is, execute S301 to determine whether the WiFi chip has an abnormality, thereby ensuring the user's Internet experience when using WiFi.
  • an electronic device such as a processor of an electronic device, may monitor the WiFi chip when it is determined that a predetermined condition is met, that is, execute S301 to determine whether an abnormality occurs in the WiFi chip.
  • the predetermined condition may include whether a screen-off broadcast is monitored.
  • An electronic device such as a processor of an electronic device, may monitor the WiFi chip when a screen-off broadcast is monitored to determine whether an abnormality occurs in the WiFi chip.
  • an electronic device such as an electronic device processor, may periodically monitor whether there is a screen-off broadcast.
  • the processor may send a screen-off broadcast. Turning off the screen of an electronic device may be triggered by a user or automatically by the electronic device. For example, if the electronic device does not receive any user operation on the electronic device after a predetermined period of time, the electronic device will automatically turn off the screen.
  • the flag of the WiFi chip can be a flag for indicating whether the WiFi chip needs to be powered off.
  • the flag can also be called a power-off flag, a power-off self-healing flag, or a screen-off power-off self-healing flag, etc.
  • the flag can be set in the WiFi chip, or it can be set in other devices of the electronic device, such as a processor.
  • the acquired WiFi chip flag is used to indicate that the WiFi chip does not need to be powered off. In this case, it indicates that the WiFi chip is not abnormal, that is, the WiFi chip can scan normally, and the user can use WiFi to surf the Internet normally, and S301 can be executed again. In the case where the acquired WiFi chip flag is used to indicate that the WiFi chip needs to be powered off, it indicates that the WiFi chip is abnormal, such as the WiFi chip may not be able to scan normally, and the user cannot use WiFi to surf the Internet normally, and the following S302 can be executed.
  • the electronic device When it is determined that the flag bit is used to indicate that the WiFi chip needs to be powered off, the electronic device, such as the processor of the electronic device, can control the WiFi chip to be powered off. Powering off means disconnecting the WiFi chip from the power supply, such as stopping the power supply to the WiFi chip.
  • the electronic device when it is determined that the flag bit of the WiFi chip is used to indicate that the WiFi chip needs to be powered off, the electronic device, such as the processor of the electronic device, can send a power-off control instruction to the power management module of the electronic device, and the power-off control instruction is used to instruct to stop supplying power to the WiFi chip. After receiving the power-off control instruction, the power management module of the electronic device stops supplying power to the WiFi chip.
  • S301 can be executed periodically.
  • an electronic device such as a processor of an electronic device
  • the electronic device such as the processor of an electronic device
  • S301 can also be executed when a predetermined condition is met, such as when a screen-off broadcast is monitored.
  • the electronic device such as the processor of an electronic device, can monitor the screen-off broadcast, execute S301, and when it is determined based on the acquired WiFi chip flag that the WiFi chip needs to be powered off, control the WiFi chip to power off.
  • the above embodiments are introduced by first monitoring whether there is a screen-off broadcast and then monitoring the WiFi chip, or first monitoring the WiFi chip and then monitoring whether there is a screen-off broadcast.
  • electronic devices such as the processor of an electronic device, can also monitor the WiFi chip and whether there is a screen-off broadcast at the same time, and control the WiFi chip to power off when the screen-off broadcast is monitored and the flag of the WiFi chip is used to indicate that the WiFi chip needs to be powered off.
  • the embodiments of the present application do not specifically limit the execution order of monitoring the screen-off broadcast and monitoring the WiFi chip.
  • the WiFi chip when the flag of the WiFi chip is used to indicate that the WiFi chip needs to be powered off, it indicates that the WiFi chip may be abnormal.
  • the WiFi chip can be controlled to be powered off to restore the function of the WiFi chip, so that the current scene no longer causes scanning abnormalities due to the abnormality of the WiFi chip, so that the user can normally use the WiFi function of the electronic device to surf the Internet, thereby improving the user experience.
  • the WiFi chip can be controlled to be powered off when the screen of the electronic device is turned off, so as not to affect the user experience.
  • the scenario that can indicate that the WiFi chip is abnormal is: the scan result of the WiFi chip is a successful scan, but the reported scan result list is empty, such as the number of available WiFi networks in the scan result list reported to the upper-layer application is 0.
  • the WiFi chip can scan normally and successfully scans the WiFi network, but the available WiFi list displayed in the setting interface does not display the logo of the scanned WiFi network, resulting in the user being unable to select the WiFi network that the electronic device needs to access, resulting in the inability to use WiFi to access the Internet. Users are usually unable to perceive this WiFi chip abnormal scenario.
  • the scenario that can indicate that the WiFi chip is abnormal is: after the WiFi chip performs a scan, the scan result is a scan failure, and the reason for the scan failure is a preset reason.
  • the user cannot use WiFi to access the Internet. And the user is usually unaware of this WiFi chip abnormal scenario.
  • the WiFi chip flag can be set to indicate that the WiFi chip needs to be powered off, so as to control the WiFi chip to power off, so as to restore the function of the WiFi chip and ensure that users can use WiFi to surf the Internet normally.
  • the electronic device such as the processor of the electronic device, can set the flag of the WiFi chip based on the information of the WiFi chip. For example, when the information of the WiFi chip is used to indicate that the WiFi chip is abnormal, the flag of the WiFi chip is set to a first value to indicate that the WiFi chip needs to be powered off.
  • the specific process can be as follows:
  • an electronic device such as a processor of an electronic device, can determine whether a first condition is satisfied based on information of the WiFi chip to determine whether the WiFi chip is abnormal, or determine whether the current scene is a WiFi chip abnormal scene.
  • the information of the WiFi chip may include a WiFi scan result of the WiFi chip, status information of a WiFi switch of the WiFi chip, and a scan result list of the WiFi chip.
  • the scanning results of the WiFi chip may include a successful scan and a failed scan.
  • the processor of an electronic device such as an electronic device
  • monitors the WiFi scan broadcast it can be determined that the scan result is a successful scan.
  • the processor of an electronic device does not monitor the WiFi scan broadcast, it can be determined that the scan result is a failed scan.
  • the switch of the WiFi chip can be a control for the user to turn on/off the WiFi function.
  • the control can be included in the setting application of the electronic device, or in the control center of the electronic device, and of course can also be included in other applications for the user to turn on/off the WiFi function of the electronic device.
  • the status information of the WiFi switch may include an on state and an off state.
  • the scan result list can be a list for displaying information about scanned available WiFi networks to the user.
  • the method of displaying the information about scanned available WiFi networks to the user may not be in the form of a list, but in other forms, and this embodiment does not make specific restrictions here.
  • the first condition may include a WiFi scan result indicating that the WiFi chip scan is successful, the status information of the WiFi switch is used to indicate that the WiFi switch is in the on state, and the scan result list is empty. That is, the electronic device, such as the processor of the electronic device, can obtain the information of the WiFi chip, that is, obtain the WiFi scan result of the WiFi chip, the status information of the WiFi switch of the WiFi chip, and the scan result list of the WiFi chip.
  • the electronic device such as the processor of the electronic device, can determine that the information of the WiFi chip meets the first condition, that is, determine that the information of the WiFi chip indicates that the WiFi chip is abnormal, or determine that the current scene is a WiFi chip abnormal scene.
  • the electronic device such as the processor of the electronic device, can set the flag bit of the WiFi chip to the first value to indicate that the WiFi chip needs to be powered off.
  • the specific process of determining whether the current scene is a WiFi chip abnormal scene is as follows:
  • Electronic devices can first obtain the WiFi scanning results of the WiFi chip, such as electronic
  • the processor of the device can monitor whether there is a broadcast of WiFi scan results (such as android.net.wifi.SCAN_RESULTS). In the case where the broadcast of WiFi scan results is not monitored, the operation of monitoring whether there is a broadcast of WiFi scan results can be re-executed.
  • the electronic device such as the processor of the electronic device, can obtain the status information of the WiFi switch to further determine whether the WiFi switch is in the on state. In the case of determining that the WiFi switch is in the off state, the operation of monitoring whether there is a broadcast of WiFi scan results can be re-executed.
  • the WiFi switch In the case of determining that the WiFi switch is in the on state, continue to determine whether the scan result list of the WiFi chip is empty. In the case of determining that the scan result list is not empty, the operation of monitoring whether there is a broadcast of WiFi scan results can be re-executed. In the case of determining that the scan result list is empty, it is indicated that the current scene is an abnormal scene of the WiFi chip, and the electronic device, such as the processor of the electronic device, can set the flag bit of the WiFi chip to the first value to indicate that the WiFi chip needs to be powered off.
  • the first condition may also include the location information of the current location of the electronic device for indicating that the electronic device is in a preset location set. That is, in addition to the WiFi scan result of the WiFi chip, the status information of the WiFi switch of the WiFi chip, and the scan result list of the WiFi chip mentioned above, the electronic device, such as the processor of the electronic device, needs to determine whether the WiFi chip is abnormal based on the location information of the current location of the electronic device, that is, to determine whether the current scene is a WiFi chip abnormal scene based on these four parameters, so as to determine whether it is necessary to control the WiFi chip to power off for self-healing.
  • the electronic device in addition to obtaining the WiFi scan result of the WiFi chip, the status information of the WiFi switch of the WiFi chip, and the scan result list of the WiFi chip, the electronic device, such as the processor of the electronic device, can also obtain the location information of the current location of the electronic device.
  • the electronic device such as the processor of the electronic device, can determine that the information of the WiFi chip meets the first condition, that is, it can be determined that the WiFi chip is abnormal, or it can be determined that the current scene is a WiFi chip abnormal scene.
  • the electronic device such as the processor of the electronic device, can set the flag bit of the WiFi chip to a first value to indicate that the WiFi chip needs to be powered off.
  • the current location information of the electronic device is used as a judgment condition to avoid the situation when the user takes the electronic device to some unfamiliar environments that the user does not often go to. For example, there may be no WiFi network deployed in these unfamiliar environments (such as mountainous areas). If this judgment is not performed, the current scene may be misjudged as a WiFi chip abnormality scene.
  • the specific process of determining whether the current scene is a WiFi chip abnormal scene is as follows:
  • An electronic device such as a processor of an electronic device, can first obtain the WiFi scan results of a WiFi chip, such as the processor of an electronic device can monitor whether there is a broadcast of WiFi scan results (e.g., android.net.wifi.SCAN_RESULTS). In the event that the broadcast of WiFi scan results is not monitored, the operation of monitoring whether there is a broadcast of WiFi scan results can be re-executed. In the event that the broadcast of WiFi scan results is monitored, an electronic device, such as a processor of an electronic device, can obtain the status information of a WiFi switch to further determine whether the WiFi switch is in the on state.
  • a broadcast of WiFi scan results e.g., android.net.wifi.SCAN_RESULTS
  • the operation of monitoring whether there is a broadcast of WiFi scan results can be re-executed.
  • the WiFi switch is determined to be in the on state
  • the operation of listening for the broadcast of the WiFi scan result can be re-executed.
  • the identifier of the cell to which the current electronic device is accessed (referred to as the current cell identifier, current cell id) can be obtained to determine whether the current cell id is included in the commonly used cell id set, which is pre-configured in the electronic device.
  • the operation of listening for the broadcast of the WiFi scan result can be re-executed.
  • the electronic device such as the processor of the electronic device, can set the flag bit of the WiFi chip to a first value to indicate that the WiFi chip needs to be powered off.
  • an electronic device such as a processor of an electronic device, can determine whether the first condition is met multiple times based on the information of the WiFi chip, that is, determine whether the number of times the first condition is met is greater than the first threshold, so as to determine whether the current scene is a WiFi chip abnormal scene.
  • the number of times the first condition is met is greater than the first threshold, it can be considered that the information of the WiFi chip is used to indicate that the WiFi chip is abnormal, or it can be determined that the current scene is a WiFi chip abnormal scene, based on which the flag bit of the WiFi chip can be set to a first value.
  • the specific description of the information of the WiFi chip and the first condition can refer to the description of the corresponding content of the above embodiment, and will not be repeated here.
  • the first condition includes: the WiFi scan result is used to indicate that the WiFi chip scan is successful, the status information of the WiFi switch is used to indicate that the WiFi switch is in the on state, the scan result list is empty, and the location information of the current location of the electronic device is used to indicate that the electronic device is in a preset location set, as an example, and this embodiment is illustrated in conjunction with Figure 6.
  • an electronic device such as a processor of an electronic device, can obtain the WiFi scan result of a WiFi chip, such as a processor of an electronic device, can monitor whether there is a broadcast of a WiFi scan result. In the case where the broadcast of the WiFi scan result is not monitored, the operation of monitoring whether there is a broadcast of the WiFi scan result can be re-executed. In the case where the broadcast of the WiFi scan result is monitored, the electronic device, such as the processor of the electronic device, can obtain the status information of the WiFi switch to further determine whether the WiFi switch is in an on state. In the case where it is determined that the WiFi switch is in an off state, the operation of monitoring whether there is a broadcast of the WiFi scan result can be re-executed.
  • the WiFi switch In the case where it is determined that the WiFi switch is in an on state, it is continued to determine whether the scan result list is empty. In the case where it is determined that the scan result list is not empty, the cumulative number of times the scan result list is empty is cleared, and the operation of monitoring whether there is a broadcast of the WiFi scan result is re-executed. In the case where it is determined that the scan list is empty, it is continued to determine whether the current electronic device is located in a preset position set. In the case where the current electronic device is located not in the preset position set, the operation of monitoring whether there is a broadcast of the WiFi scan result can be re-executed.
  • the cumulative number of times the scan result list is empty is increased by one. Afterwards, it can be further determined whether the cumulative number of times the scan result list is empty is greater than the first threshold, such as whether the cumulative number of times the scan result list is empty is greater than 5. If the cumulative number of times the scan result list is empty is not greater than the first threshold, the operation of monitoring whether there is a broadcast of WiFi scan results can be re-executed.
  • the cumulative number of times the scan result list is empty is greater than the first threshold, it indicates that the number of times the first condition is satisfied is greater than the first threshold, that is, it can be determined that the WiFi chip is abnormal, or it can be determined that the current scene is a scene of WiFi chip abnormality, and the electronic device, such as the processor of the electronic device, can set the flag bit of the WiFi chip to the first value to indicate that the WiFi chip needs to be powered off.
  • the parameter judgments in the first condition are not restricted in the order of execution.
  • the WiFi scan result is judged first, then the WiFi switch status is judged, then the scan result list is judged, and finally the The location information of the current location of the electronic device only exemplifies an execution order and is not a sole limitation.
  • the electronic device can set the flag of the WiFi chip based on the information of the WiFi chip. For example, when the information of the WiFi chip is used to indicate that the WiFi chip is abnormal, the flag of the WiFi chip is set to a first value to indicate that the WiFi chip needs to be powered off.
  • the specific process can be as follows:
  • an electronic device such as a processor of an electronic device, can determine whether the WiFi chip is abnormal based on the WiFi scan result of the WiFi chip, or determine whether the current scene is a WiFi chip abnormal scene. For example, when the WiFi scan result of the WiFi chip is that the WiFi chip scan fails, and the reason for the scan failure is a preset reason, it is determined that the WiFi chip is abnormal. For example, when the WiFi scan result of the WiFi chip is determined to be a scan failure, the electronic device, such as the processor of the electronic device, can continue to determine the cause of the scan failure, so as to determine whether it is necessary to control the WiFi chip to power off to make it self-healing according to the cause of the scan failure.
  • the reason for determining the scan failure is that there are many reasons for the WiFi chip scan failure, and only when the cause of the scan failure is a preset reason, it can be triggered to power off the WiFi chip to make it self-healing.
  • the preset reasons can be 1, 22, 95, 100.
  • the preset reason 1 corresponds to unauthorized operation (Operation not permitted, EPERM).
  • the preset reason 22 corresponds to invalid parameter (Invalid argument, EINVAL).
  • the preset reason 95 corresponds to the transport endpoint does not support the operation (Operation not supported on transport endpoint, EOPNOTSUPP).
  • the preset reason 100 corresponds to the network is down (ENETDOWN).
  • the flag bit of the WiFi chip is set to the first value to indicate that the WiFi chip is abnormal, so that the WiFi chip can be controlled to power off to make it self-healing.
  • the specific process of determining whether the current scene is a WiFi chip abnormal scene, or determining whether the current scene is a WiFi chip scanning failure scene is as follows:
  • An electronic device such as a processor of an electronic device, can determine whether a WiFi scan result of a WiFi chip is a scan failure. For example, the processor of the electronic device can determine whether the broadcast of the WiFi scan result is monitored within a preset time. If the broadcast of the scan result is not monitored within the preset time, it can be determined that the scan has failed. In the case where it is determined that the WiFi scan result of the WiFi chip is a scan failure, the cause of the scan failure is determined (e.g., Handle wifi condsc an fail). Next, it is determined whether the cause of the scan failure is a preset cause. In the case where the cause of the scan failure is not a preset cause, it can be re-determined whether the WiFi scan result of the WiFi chip is a scan failure.
  • the processor of the electronic device can determine whether the broadcast of the WiFi scan result is monitored within a preset time. If the broadcast of the scan result is not monitored within the preset time, it can be determined that the scan has failed. In the case where it is determined that the WiFi
  • the cause of the scan failure is a preset cause
  • the electronic device such as the processor of the electronic device, can set the flag bit of the WiFi chip to a first value to indicate that the WiFi chip needs to be powered off.
  • an electronic device such as a processor of an electronic device, can determine multiple times whether the WiFi scan result is a scan failure and whether the failure reason is a preset reason based on the WiFi scan result of the WiFi chip, that is, whether the number of times the WiFi scan result is a scan failure and the failure reason is a preset reason is greater than a second threshold, so as to consider that the information of the WiFi chip is used to indicate that the WiFi chip is abnormal. Based on this, the flag bit of the WiFi chip can be set to the first value.
  • the specific description of the WiFi scan result of the WiFi chip can refer to the corresponding internal The description of the content will not be repeated here.
  • an electronic device such as a processor of an electronic device, can determine whether the WiFi scan result of the WiFi chip is a scan failure. If the broadcast of the WiFi scan result is not heard within a preset time, it is considered that the scan has failed. In the case where it is determined that the WiFi scan result of the WiFi chip is a scan failure, the cause of the scan failure is determined. Next, it is determined whether the cause of the scan failure is a preset cause.
  • the cumulative number of causes of the scan failure is cleared, and the operation of determining whether the WiFi scan result of the WiFi chip is a scan failure is re-executed.
  • the cumulative number of causes of the scan failure is increased by one, and it is continued to be determined whether the cumulative number of causes of the scan failure is greater than a second threshold, such as whether the cumulative number of causes of the scan failure is greater than 3.
  • the operation of determining whether the WiFi scan result of the WiFi chip is a scan failure can be re-executed.
  • the cumulative number of reasons for scan failure is greater than the second threshold, it indicates that the scan failed and the number of times the failure reason is a preset reason is greater than the second threshold, that is, it can be determined that the WiFi chip is abnormal, or it can be determined that the current scene is a scene of WiFi chip abnormality.
  • the electronic device such as the processor of the electronic device, can set the flag bit of the WiFi chip to the first value to indicate that the WiFi chip needs to be powered off.
  • the WiFi chip when the cumulative number of reasons for scan failure is equal to the second threshold, the WiFi chip can be considered abnormal, that is, the operation of setting the flag to the first value is performed, or the operation of determining whether the WiFi scan result of the WiFi chip is a scan failure is re-executed.
  • the embodiment of the present application does not impose specific restrictions on the operations performed by the electronic device when the cumulative number of reasons is equal to the second threshold, and can be set according to the needs of the actual application scenario.
  • the electronic device such as the processor of the electronic device, can set the flag bit of the WiFi chip to the first value when the conditions are met, such as the first value can be set to true, so as to indicate that the WiFi chip needs to be powered off. Then, by executing the embodiment shown in Figure 3, the purpose of controlling the WiFi chip to power off and make it self-healing can be achieved when the flag bit of the WiFi chip is set to the first value.
  • the electronic device such as the processor of the electronic device, can control the WiFi chip to power on after controlling the WiFi chip to power off. Alternatively, it can also be controlled to power on after a preset time after controlling the WiFi chip to power off.
  • the embodiment of the present application does not specifically limit the timing and triggering conditions for re-controlling the WiFi chip to power on after controlling the WiFi chip to power off.
  • the electronic device such as the processor of the electronic device, can set the flag bit to a second value, such as setting the second value to flase, to indicate that the WiFi chip does not need to be powered off.
  • the explanation is given by setting a flag bit after the corresponding conditions are met so that the WiFi chip can be powered off based on the flag bit.
  • the WiFi chip can be powered off after it is determined that the corresponding conditions are met. For example, when it is determined that the above-mentioned first condition is met or the number of times the above-mentioned first condition is met is greater than the first threshold, the electronic device, such as the processor of the electronic device, controls the WiFi chip to power off. For another example, when it is determined that the WiFi scan result is a scan failure and the reason for the failure is a preset reason, the WiFi chip can be controlled to power off.
  • the two WiFi chip abnormality scenarios in the above embodiments may not be perceived by the user.
  • the user may be able to perceive the abnormality.
  • the user has used a mobile phone to connect to the home WiFi network before, but the user is currently at home and the WiFi switch is turned on, but the mobile phone cannot access the home WiFi network.
  • the user generally manually operates the WiFi switch to try to restore the WiFi function.
  • the user manually operates the WiFi switch to restore the WiFi function.
  • the WiFi switch may not be able to restore the WiFi function.
  • the WiFi switch when the user manually operates the WiFi switch, it can be determined whether the current scene is a WiFi chip abnormal scene, and if the current scene is a WiFi chip abnormal scene, the WiFi chip is controlled to power off to achieve self-healing.
  • Figure 9 is a flow chart of another control method of a WiFi chip according to an embodiment of the present application, and the method includes S901-S902.
  • the information of the WiFi chip includes change information of the WiFi switch of the WiFi chip, status information of the WiFi switch, a cached scan result list of the WiFi chip, and a timestamp of the cached scan result list of the WiFi chip.
  • the electronic device such as the processor of the electronic device, can obtain information about the WiFi chip, that is, execute S901 to determine whether an abnormality occurs in the WiFi chip, or determine whether the current scene is an abnormal WiFi chip scene, so as to ensure the user's Internet experience when using WiFi.
  • the information of the WiFi chip may include the change information of the WiFi switch of the WiFi chip, the status information of the WiFi switch, the cached scan result list of the WiFi chip and the timestamp of the cached scan result list of the WiFi chip.
  • the change information of the WiFi chip switch refers to whether the state of the WiFi switch in the electronic device setting interface has changed, such as the WiFi switch changes from the on state to the off state, or the WiFi switch changes from the off state to the on state.
  • the status information of the WiFi switch of the WiFi chip refers to whether the WiFi switch is in the on state or the off state.
  • the cached scan result list of the WiFi chip refers to the WiFi scan result list stored in the cache of the electronic device, that is, the scan result list of the WiFi network scanned by the WiFi chip last time.
  • the above timestamp may refer to the time when the scan result list is stored in the cache of the electronic device or the cache time of the scan result list.
  • the cache time of the scan result list that is, the above timestamp may be the time when the first WiFi network is scanned.
  • the scan result list includes information of two WiFi networks, namely WiFi1 and WiFi2. The time when WiFi1 is scanned is 12:02, and the time when WiFi2 is scanned is 12:03. Then the cache time of the scan result list is 12:02, that is, the timestamp is 12:02.
  • the electronic device such as the processor of the electronic device, can control the WiFi chip to power off.
  • an electronic device such as a processor of an electronic device, can determine whether a WiFi chip is abnormal based on information about the WiFi chip, or determine whether the current scene is a scene where the WiFi chip is abnormal.
  • the change information of the WiFi switch is used to indicate that the state of the WiFi switch has changed
  • the state information of the WiFi switch is used to indicate that the WiFi switch is in an off state
  • the scan result list is not empty
  • the timestamp is greater than a preset threshold
  • an electronic device such as a processor of an electronic device, can obtain the change information of the WiFi switch of the WiFi chip, the state information of the WiFi switch, the cached scan result list of the WiFi chip, and the timestamp of the cached scan result list of the WiFi chip.
  • the state information of the WiFi switch is used to indicate that the WiFi switch is in an off state
  • the scan result list is not empty
  • the timestamp is greater than a preset threshold
  • an electronic device such as a processor of an electronic device
  • the information of the WiFi chip is used to determine whether the WiFi chip is abnormal. Based on this, the electronic device, such as the processor of the electronic device, can control the WiFi chip to power off.
  • the change information of the WiFi switch of the WiFi chip can be as follows:
  • An electronic device such as a processor of an electronic device, may first monitor the change information of a WiFi switch, such as the processor of an electronic device may monitor whether there is a broadcast indicating a change in the state of the WiFi switch. In the case of not monitoring the broadcast indicating a change in the state of the WiFi switch, the operation of monitoring the change information of the state of the WiFi switch is re-executed. In the case of monitoring the broadcast indicating a change in the state of the WiFi switch, the electronic device, such as the processor of the electronic device, may obtain the state information of the WiFi switch to further determine whether the WiFi switch is in a closed state. In the case of determining that the WiFi switch is in an open state, the operation of monitoring the change information of the state of the WiFi switch is re-executed.
  • the electronic device In the case of determining that the state of the WiFi switch is in a closed state, the electronic device, such as the processor of the electronic device, may obtain a cached scan result list of the WiFi chip, and then determine whether the cached scan result list of the WiFi chip is empty. In the case that the cached scan result list of the WiFi chip is empty, the operation of monitoring the change information of the state of the WiFi switch is re-executed. In the case that the acquired cached scan result list of the WiFi chip is not empty, it is further determined whether the timestamp of the cached scan result list of the WiFi chip is greater than a preset threshold, such as determining whether the timestamp is greater than 20s. In the case where the above timestamp is greater than the preset threshold, the electronic device, such as the processor of the electronic device, controls the WiFi chip to power off.
  • a preset threshold such as determining whether the timestamp is greater than 20s.
  • the electronic device such as the processor of the electronic device, may consider that the WiFi chip is abnormal, that is, execute the operation of controlling the WiFi chip to power off, or re-execute the operation of monitoring the change information of the WiFi switch state.
  • the embodiment of the present application does not impose specific restrictions on the operation performed by the electronic device when the timestamp is equal to the preset threshold, and can be set according to the needs of the actual application scenario.
  • the preset threshold can be set based on empirical values. Specifically, the preset threshold can be set to a value greater than the scanning period, which is not limited here.
  • the WiFi chip can be powered off to achieve self-healing within a certain period of time, thereby ensuring the normal use of the user's WiFi function and improving the user's Internet experience.
  • Some other embodiments of the present application provide an electronic device, which may include: a memory, a WiFi chip, and one or more processors.
  • the memory, the WiFi chip, and the processor are coupled.
  • the memory is used to store computer program code, and the computer program code includes computer instructions.
  • the processor executes the computer instructions, the electronic device can perform each function or step performed in the above method embodiment.
  • the structure of the electronic device can refer to the structure of the electronic device shown in Figure 2, taking a mobile phone as an example.
  • the chip system 1100 includes at least one processor 1101 and at least one interface circuit 1102.
  • the processor 1101 and the interface circuit 1102 can be interconnected via a line.
  • the interface circuit 1102 can be used to receive signals from other devices (such as a memory of an electronic device).
  • the interface circuit 1102 may be used to send a signal to another device (e.g., the processor 1101).
  • the interface circuit 1102 may read an instruction stored in the memory and send the instruction to the processor 1101.
  • the electronic device may perform the various steps in the above embodiment.
  • the chip system may also include other discrete devices, which is not specifically limited in the embodiment of the present application.
  • An embodiment of the present application also provides a computer storage medium, which includes computer instructions.
  • the computer instructions When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed by the electronic device in the above-mentioned method embodiment.
  • the embodiment of the present application also provides a computer program product.
  • the computer program product When the computer program product is run on a computer, the computer is enabled to execute each function or step executed by the electronic device in the above method embodiment.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

La présente demande se rapporte au domaine technique des terminaux. Sont divulgués un procédé de commande de puce WiFi et un dispositif électronique. En ce qui concerne une anomalie de balayage provoquée par une anomalie d'une puce WiFi, la puce WIFI est commandée pour être mise hors tension et est ainsi réparée automatiquement, ce qui permet d'assurer les besoins d'utilisation quotidienne d'un utilisateur pour une connexion à un réseau. Le procédé peut être appliqué à un dispositif électronique comprenant une puce WiFi, et la solution spécifique peut comprendre : l'acquisition d'un bit indicateur de la puce WiFi, le bit indicateur étant utilisé pour indiquer si la puce WiFi doit être mise hors tension ; et en réponse au fait que le bit indicateur est utilisé pour indiquer que la puce WiFi doit être mise hors tension, la commande de la puce WiFi pour la mise hors tension.
PCT/CN2024/111564 2023-12-15 2024-08-12 Procédé de commande de puce wifi et dispositif électronique Pending WO2025123735A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311735273.6 2023-12-15
CN202311735273.6A CN120201474A (zh) 2023-12-15 2023-12-15 一种WiFi芯片的控制方法及电子设备

Publications (1)

Publication Number Publication Date
WO2025123735A1 true WO2025123735A1 (fr) 2025-06-19

Family

ID=96056403

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/111564 Pending WO2025123735A1 (fr) 2023-12-15 2024-08-12 Procédé de commande de puce wifi et dispositif électronique

Country Status (2)

Country Link
CN (1) CN120201474A (fr)
WO (1) WO2025123735A1 (fr)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150312857A1 (en) * 2014-04-29 2015-10-29 Samsung Electronics Co., Ltd. Apparatus and method for controlling communication module
CN109032826A (zh) * 2018-06-22 2018-12-18 北京蜂盒科技有限公司 WiFi故障恢复方法,装置,存储介质和电子设备
CN116668583A (zh) * 2023-08-02 2023-08-29 荣耀终端有限公司 一种WiFi的连接方法、电子设备、存储介质和芯片
CN116700802A (zh) * 2022-11-15 2023-09-05 荣耀终端有限公司 指纹模组的控制方法和控制装置
CN116866968A (zh) * 2023-05-11 2023-10-10 深圳市酷开网络科技股份有限公司 一种WiFi切换崩溃的检测方法及相关设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150312857A1 (en) * 2014-04-29 2015-10-29 Samsung Electronics Co., Ltd. Apparatus and method for controlling communication module
CN109032826A (zh) * 2018-06-22 2018-12-18 北京蜂盒科技有限公司 WiFi故障恢复方法,装置,存储介质和电子设备
CN116700802A (zh) * 2022-11-15 2023-09-05 荣耀终端有限公司 指纹模组的控制方法和控制装置
CN116866968A (zh) * 2023-05-11 2023-10-10 深圳市酷开网络科技股份有限公司 一种WiFi切换崩溃的检测方法及相关设备
CN116668583A (zh) * 2023-08-02 2023-08-29 荣耀终端有限公司 一种WiFi的连接方法、电子设备、存储介质和芯片

Also Published As

Publication number Publication date
CN120201474A (zh) 2025-06-24

Similar Documents

Publication Publication Date Title
CN108476060B (zh) 用于双模蓝牙设备之间建立经典蓝牙连接的方法和双模蓝牙设备
CN107329559B (zh) 一种应用程序控制方法、装置、终端和存储介质
EP2533064B1 (fr) Appareil et procédé pour déterminer la durée de vie restante d'une batterie d'un terminal portable
KR20150026652A (ko) 전자장치에서 수신된 정보를 사용자에게 제공하기 위한 방법 및 장치
EP2649859B1 (fr) Autorisation automatique pour la communication sans fil
WO2023284415A1 (fr) Procédé de détection de mauvaise manipulation tactile de touche d'alimentation et dispositif électronique
CN110837343B (zh) 处理快照的方法、装置及终端
US11816200B2 (en) Terminal and method for managing launch of an application of a terminal
CN107231434A (zh) 终端设备的控制方法及装置
CN115562570A (zh) 数据迁移方法、系统及电子设备
CN112269086A (zh) 充电线缆的识别方法、装置、充电线缆及可读存储介质
WO2025123735A1 (fr) Procédé de commande de puce wifi et dispositif électronique
CN114980045B (zh) 蓝牙连接方法及电子设备
CN112866983B (zh) 控制方法、控制装置以及电子设备
EP4683396A1 (fr) Procédé et appareil de planification de ressources
CN112566086A (zh) 数据传输方法、装置、电子设备及可读存储介质
CN113282361B (zh) 一种窗口的处理方法及电子设备
CN114143765B (zh) 蓝牙回连方法、装置和存储介质
CN117254539A (zh) 充电方法及电子设备
CN116662024B (zh) 进程间通信监控方法、装置、电子设备及存储介质
WO2025148709A1 (fr) Procédé de commande d'itinérance wi-fi, dispositif électronique et support de stockage lisible par ordinateur
CN117135263B (zh) 日志信息获取方法、电子设备及计算机可读存储介质
CN118474239B (zh) 一种用户标识模块sim卡的上电方法及电子设备
CN117135600B (zh) 一种蓝牙广播请求的处理方法及设备
EP4647884A1 (fr) Procédé de travail collaboratif et dispositif électronique

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24902161

Country of ref document: EP

Kind code of ref document: A1