CN113596887B - Automatic restoration method, device and equipment for WiFi function abnormality and storage medium - Google Patents
Automatic restoration method, device and equipment for WiFi function abnormality and storage medium Download PDFInfo
- Publication number
- CN113596887B CN113596887B CN202110534187.3A CN202110534187A CN113596887B CN 113596887 B CN113596887 B CN 113596887B CN 202110534187 A CN202110534187 A CN 202110534187A CN 113596887 B CN113596887 B CN 113596887B
- Authority
- CN
- China
- Prior art keywords
- wifi
- wifi function
- function
- wpa
- detecting whether
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 157
- 230000005856 abnormality Effects 0.000 title claims abstract description 35
- 230000002159 abnormal effect Effects 0.000 claims abstract description 36
- 230000006870 function Effects 0.000 claims description 224
- 230000008569 process Effects 0.000 claims description 111
- 230000008439 repair process Effects 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 13
- 230000004064 dysfunction Effects 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000012795 verification Methods 0.000 claims description 2
- 230000000977 initiatory effect Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 4
- 208000033809 Suppuration Diseases 0.000 description 3
- 230000009471 action Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000007257 malfunction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the application provides a method, a device, equipment and a storage medium for automatically repairing WiFi function abnormality. The method comprises the following steps: acquiring operation information of a user and status information of a WiFi function; judging whether the WiFi function is abnormal or not according to the operation information and the state information of the WiFi function; if the WiFi function is abnormal, starting automatic restoration operation of the preset WiFi function; and after the automatic restoration operation of the preset WiFi function is finished, re-executing the operation. According to the WiFi function abnormality automatic restoration method, device, equipment and storage medium, wiFi function abnormality can be automatically restored.
Description
Technical Field
The application belongs to the technical field of wireless networks of mobile terminals, and particularly relates to an automatic restoration method, device and equipment for WiFi function abnormality and a storage medium.
Background
At present, networks are gradually penetrated into daily lives of people, wi-Fi is used as a common connection mode in the networks, and is widely applied to daily lives of people, whether at home or at a consumption place, or in public places such as companies, for example, work communication, videos, electronic payment, APP ordering and the like.
However, wi-Fi faults caused by hardware or software are frequently encountered in the Wi-Fi use process, so that abnormal phenomena such as incapability of normal opening or closing of Wi-Fi functions are caused, when the Wi-Fi functions are abnormal, the Wi-Fi functions can definitely cause various influences on the work and life of people, and when the WiFi functions are abnormal, the WiFi functions cannot be automatically repaired in the prior art.
Disclosure of Invention
The embodiment of the application provides an automatic repair method, device and equipment for WiFi function abnormality and a storage medium, which can automatically repair WiFi problems.
In a first aspect, an embodiment of the present application provides a method for automatically repairing WiFi dysfunction, where the method includes:
acquiring operation information of a user and status information of a WiFi function;
judging whether the WiFi function is abnormal or not according to the operation information and the state information of the WiFi function;
if the WiFi function is abnormal, starting automatic restoration operation of the preset WiFi function so as to restore the WiFi function;
after the automatic restoration operation of the preset WiFi function is completed, executing the operation corresponding to the operation information.
Further, according to the operation information and the status information of the WiFi function, determining whether the WiFi function is abnormal includes:
and comparing the corresponding relation between the operation information and the state information of the WiFi function with a preset information comparison table, and judging whether the WiFi function is abnormal or not based on a comparison result.
Further, in the operation information and the state information of the WiFi function:
the operation information includes one or more of the following: opening WiFi function, closing WiFi function, connecting network hot spot, closing network hot spot, and transmitting data.
The status information of the WiFi function includes one or more of the following: the WiFi function is in an on state, the WiFi function is in an off state, the WiFi function is connecting to a designated network hotspot, the network hotspot function is off, and the connected network is being utilized for data transmission.
Further, the automatic restoration operation of the preset WiFi function includes:
detecting whether a wpa_supplicant process exists or not;
if the wpa_supplicant process does not exist, detecting whether a wificond process exists or not; if the wpa_suppurative process exists, closing the wpa_suppurative process and detecting whether the wificond process exists or not;
if the WiFi process does not exist, detecting whether the WiFi driver is already loaded; if the WiFi process exists, closing the WiFi process and detecting whether the WiFi drive is loaded;
if the WiFi drive is not loaded, detecting whether the wpa_supplicant exists or not; if the WiFi drive is loaded, unloading the WiFi drive and detecting whether a wpa_suppicant process exists or not;
if the wpa_suppurative process does not exist, starting the wpa_suppurative process, and judging whether the wificond process exists or not; if the wpa_suppicant process exists, judging whether a wificond process exists or not;
if the WiFi process does not exist, starting the WiFi process, and detecting whether the WiFi drive is loaded; if the WiFi process exists, detecting whether the WiFi drive is already loaded;
if the WiFi drive is not loaded, loading the WiFi drive to complete WiFi function restoration.
Further, the method further comprises the following steps: after the automatic restoration operation of the preset WiFi function is finished, whether the WiFi function is normal or not is verified.
Further, verifying whether WiFi functions are normal includes: detecting whether a WiFi signal is connected; when the WiFi signal is connected, detecting whether the network can be connected through the WiFi signal;
if yes, judging that the WiFi function is normal.
In a second aspect, an embodiment of the present application provides an automatic repair device for WiFi dysfunction, where the device includes:
the information acquisition module is used for acquiring operation information of a user and status information of the WiFi function;
the judging module is used for judging whether the WiFi function is abnormal or not according to the operation information and the state information of the WiFi function;
the WiFi function restoration module is used for starting automatic restoration operation of a preset WiFi function when the WiFi function is abnormal so as to restore the WiFi function;
and the restarting module is used for executing the operation corresponding to the operation information after the automatic restoration operation of the preset WiFi function is completed.
Further, the judging module is configured to compare the corresponding relation between the operation information and the status information of the WiFi function with a preset information comparison table, and judge whether the WiFi function is abnormal based on the comparison result.
Further, the WiFi function repair module includes: the WiFi function overhauls the unit, and WiFi function overhauls the unit and is used for carrying out the following steps:
detecting whether a wpa_supplicant process exists or not;
if the wpa_supplicant process does not exist, detecting whether a wificond process exists or not; if the wpa_suppurative process exists, closing the wpa_suppurative process and detecting whether the wificond process exists or not;
if the WiFi process does not exist, detecting whether the WiFi driver is already loaded; if the WiFi process exists, closing the WiFi process and detecting whether the WiFi drive is loaded;
if the WiFi drive is not loaded, detecting whether the wpa_supplicant exists or not; if the WiFi drive is loaded, unloading the WiFi drive and detecting whether a wpa_suppicant process exists or not;
if the wpa_suppurative process does not exist, starting the wpa_suppurative process, and judging whether the wificond process exists or not; if the wpa_suppicant process exists, judging whether a wificond process exists or not;
if the WiFi process does not exist, starting the WiFi process, and detecting whether the WiFi drive is loaded; if the WiFi process exists, detecting whether the WiFi drive is already loaded;
if the WiFi drive is not loaded, loading the WiFi drive to complete WiFi function restoration.
Further, the method further comprises the following steps: and the WiFi function verification module is used for verifying whether the WiFi function is normal or not after the automatic restoration operation of the preset WiFi function is finished.
Further, the method further comprises the following steps: and the WiFi drive reset module is used for unloading and reloading the WiFi drive by one key and restarting the WiFi function.
In a third aspect, an embodiment of the present application provides an automatic repair device for WiFi dysfunction, where the device includes:
a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the automatic repair method of WiFi dysfunction as described above.
In a fourth aspect, an embodiment of the present application provides a storage medium, where computer program instructions are stored, and when executed by a processor, implement a method for automatically repairing a WiFi function abnormality as described above.
The automatic restoration method, the device, the equipment and the storage medium for WiFi function abnormality can automatically restore the problem of WiFi abnormality.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings that are needed to be used in the embodiments of the present application will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
Fig. 1 is a schematic flow chart of an automatic repair method for WiFi function abnormality provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a preset WiFi function automatic repair operation provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of an automatic device for repairing WiFi function abnormality according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an automatic repair device for WiFi function abnormality provided in an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings and the detailed embodiments. It should be understood that the particular embodiments described herein are meant to be illustrative of the application only and not limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the application by showing examples of the application.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
In order to solve the problems in the prior art, the embodiment of the application provides an automatic restoration method, device and equipment for WiFi function abnormality and a storage medium. In the prior art, users generally have no means to self-repair when a WiFi function is abnormal.
The automatic restoration method, the device, the equipment and the storage medium for WiFi function abnormality can automatically restore WiFi problems, are particularly applied to an Andorid system, and can take restoration measures aiming at a Framework (system Framework layer), a Hal (hardware abstraction layer), a driving layer, a hardware layer and the like so as to automatically restore WiFi abnormality.
The following first describes an automatic repair method for WiFi function abnormality provided by the embodiment of the present application.
Fig. 1 is a flow chart illustrating an automatic repair method for WiFi dysfunction according to an embodiment of the present application. As shown in fig. 1, the method may include the steps of:
n1: the terminal acquires operation information of user operation and status information of the WiFi function.
In this embodiment, the terminal obtains operation information of the user operation, where the operation information may include: switching on the WiFi function, switching off the WiFi function, connecting with a network hot spot, switching off the network hot spot, performing data transmission and the like. After the terminal obtains the operation information of the user operation, a corresponding WiFi function is executed according to the operation information, for example, when the terminal obtains the operation information of the user operation as "turning on the WiFi function", the terminal turns on the WiFi function of the terminal according to the operation information. The status information of the WiFi function may include: the WiFi function is in an on state, the WiFi function is in an off state, the WiFi function is connecting to a designated network hotspot, the network hotspot function is off, or data transmission is taking advantage of a connected network, etc. When the WiFi function is normal, the status information of the WiFi function is in one-to-one correspondence with the operation information. For example, if the operation information of the user operation is to turn on the WiFi function, if the WiFi function of the terminal is normal, the state information of the corresponding WiFi function is that the WiFi function is in an on state; if the WiFi function of the terminal is abnormal, the currently acquired state information of the WiFi function may not be that the WiFi function is in an on state.
N2: and the terminal judges whether the WiFi function is abnormal or not according to the operation information operated by the user and the state information of the WiFi function.
And (3) the terminal judges whether the WiFi function is abnormal or not according to the operation information of the user operation and the state information of the WiFi function obtained in the step (N1). In this embodiment, whether the WiFi function is abnormal may be determined by comparing the operation information and the state information of the WiFi function with a preset information comparison table, that is, whether the WiFi function is abnormal may be determined by comparing the correspondence between the operation information and the state information of the WiFi function with a preset information comparison table. The preset information comparison table may be pre-existing, and may include a corresponding relationship between operation information when the WiFi function is normal and state information of the WiFi function, or may include a corresponding relationship between operation information when the WiFi function is abnormal and state information of the WiFi function.
For example:
the obtained operation information of the user is as follows: the WiFi function of the terminal is turned on, the acquired status information of the WiFi function is in a closing state, in a preset information comparison table, the status information of the WiFi function corresponding to the WiFi function operation of the terminal is in an opening state when the WiFi function is normal, the WiFi function at the moment is in a closing state, and the situation is different from the situation when the WiFi function is normal in the comparison table, so that abnormality of the WiFi function can be determined; if the WiFi function is in the closed state at this time, the condition is the same as the condition when the WiFi function is normal in the comparison table, and the WiFi function can be judged to be normal. Similarly, when the user operates the terminal to close the WiFi function, the WiFi function of the terminal is in an on state and cannot be closed (the situation is the same as the situation of WiFi function abnormality in the preset information comparison table), and therefore the occurrence of WiFi function abnormality can be judged; and the user wants to transmit data by utilizing the WiFi function, but the WiFi function is in a standby state, and the like, so that the abnormality of the WiFi function can be judged.
In addition, in the preset information comparison table, the state information when the WiFi function corresponding to the operation information is in a normal state may be stored, the state information when the WiFi function corresponding to the operation information is in an abnormal state may be stored, or both may be recorded; when judging whether the WiFi function is abnormal, the WiFi function comparison method can compare with the normal condition (of the WiFi function) stored in the preset information comparison table, can also compare with the abnormal condition, and can also combine the WiFi function comparison method and the WiFi function comparison device to judge whether the WiFi function is abnormal.
And N3: if the WiFi function is abnormal, starting the automatic restoration operation of the preset WiFi function.
After judging that the WiFi function is abnormal, the automatic restoration operation of the preset WiFi function can be triggered, so that the terminal automatically restores the WiFi function.
N4: and after the automatic restoration operation of the preset WiFi function is finished, the terminal re-executes the operation corresponding to the operation information.
And when the automatic restoration operation of the preset WiFi function is finished, namely the restoration of the WiFi function is finished, re-executing the operation corresponding to the operation information.
It will be appreciated that the actual behaviour of the user is "user operation", which is "operation information" when it is reflected to the device, and that the effect of the code, program etc. in the device when it is executing "operation information" may replace the "operation" of the user, in which case the "operation" of the user and the "operation information" it is reflected to the device may be understood as the same concept. According to the embodiment, through acquiring the operation information of user operation and the state information of the WiFi function, whether the WiFi function is abnormal or not is judged according to the corresponding relation of the operation information and the state information of the WiFi function, and when the WiFi function is abnormal, the preset automatic restoration operation of the WiFi function is automatically triggered, so that the WiFi function is automatically restored. The problem that WiFi function cannot be automatically judged and repaired when abnormality occurs is solved.
In an embodiment of the present application, which is mainly applied to an Andorid system, in fact, a system with a similar structure may be evolved by the steps provided in the present embodiment, so as to repair a WiFi function, and in the present embodiment, the method for automatically repairing a WiFi function abnormality may include the following steps:
s1: detecting whether a wpa_supplicant process exists or not;
WPA (WiFi Protected Access, wiFi protection process), wpa_suppuration is a daemon running independently, the core of which is a message loop in which WPA state machines, control commands, driving events, configuration information, etc. are handled. Android uses a modified version wpa_supplicant as daemon to control WiFi, which is a secure middleware that provides a unified security mechanism for various wireless network cards.
The step is to judge the state of the WiFi function based on the wpa_suppuration from Hal (hardware abstraction layer) by detecting the wpa_suppuration process.
S2: if the wpa_supplicant process does not exist, detecting whether a wificond process exists or not; if the wpa_supplant process exists, closing the wpa_supplant process and detecting whether the wificond process exists or not;
the main management function of the wificond process comprises starting/closing the wpa_supplant process, and when the wpa_supplant process does not exist, the wpa_supplant process can be started through the wificond process, so that whether the wificond process exists or not needs to be detected; similarly, when the wpa_supplicant process exists, the restart can be performed through a wificond process. This step uses the wificond from the Framework layer to control the state of wpa_supplicant.
S3: if the WiFi process does not exist, detecting whether a WiFi drive is already loaded; if the WiFi process exists, closing the WiFi process and detecting whether a WiFi drive is loaded;
in this embodiment, the main role of the WiFi driver is to trigger a reset function pin of the WiFi function, which is intended to reset the WiFi function from the hardware layer. The step is based on a driving layer and a hardware layer of the WiFi function, and the WiFi function is reset.
S4: if the WiFi driver is not loaded, detecting whether the wpa_suppicant exists; if the WiFi drive is loaded, unloading the WiFi drive and detecting whether the wpa_supplicant process exists or not;
s5: if the wpa_suppurative process does not exist, starting the wpa_suppurative process through the wificond, and judging whether the wificond process exists or not; if the wpa_supplicant process exists, judging whether the wificond process exists or not;
steps S4 and S5 make further decisions from the hardware abstraction layer and the system framework layer, respectively.
S6: if the WiFi process does not exist, starting the WiFi process, and detecting whether the WiFi drive is loaded; if the WiFi process exists, detecting whether the WiFi driver is already loaded;
s7: and if the WiFi drive is not loaded, loading the WiFi drive to finish WiFi function restoration.
S1-S6, after the WiFi drive is reloaded, resetting the WiFi function through a reset pin of the WiFi drive, namely repairing; when the reset is completed, the WiFi function repair operation can be considered to be completed.
In this embodiment, different repair measures are applied to the system at the Framework (system Framework layer), hal (hardware abstraction layer), drive layer and hardware layer, so as to detect and repair the WiFi function, and realize automatic repair of the WiFi function abnormality.
In one embodiment of the present application, after the WiFi function repair operation is completed, the method further includes: verifying whether the WiFi function is normal; specifically, verifying whether the WiFi function is normal may include the following steps:
detecting whether a connected WiFi signal is generated;
when the WiFi signal is connected, detecting whether the network can be connected through the WiFi signal;
if yes, judging that the WiFi function is normal.
In this embodiment, whether the WiFi function can work normally after being repaired is automatically determined through network connection.
According to the embodiment, through obtaining the operation of the user and the state information of the WiFi function, when the relationship between the operation and the WiFi function is not corresponding, the abnormality of the WiFi function is judged, and at the moment, the preset WiFi function repairing operation is automatically triggered, so that the WiFi function is automatically repaired. The problem that WiFi function cannot be automatically judged and repaired when abnormality occurs is solved.
Fig. 3 is a schematic structural diagram of an automatic device for repairing WiFi function abnormality according to an embodiment of the present application. As shown in fig. 3, the apparatus may include an information acquisition module 200, a determination module 210, a WiFi function repair module 220, and a restart module 230.
The information acquisition module 200 is configured to acquire operation information of a user and status information of a WiFi function; the implementation process is as in step N1 in fig. 1.
A judging module 210, configured to judge whether the WiFi function is abnormal according to the operation information and the state information of the WiFi function; the implementation process of the judging module is shown as step N2 in fig. 1.
The WiFi function repair module 220 is configured to start a preset WiFi function automatic repair operation when the WiFi function is abnormal; the specific implementation process is as step N3 in fig. 1.
A restarting module 230, configured to re-execute the operation after the automatic repair operation of the preset WiFi function is completed; the specific implementation process is as in step N4 in fig. 1.
Each module/unit in the apparatus shown in fig. 3 has a function of implementing each step in fig. 1, and can achieve a corresponding technical effect, which is not described herein for brevity.
Fig. 4 shows a hardware structure schematic diagram of an automatic repair device for WiFi function abnormality provided by an embodiment of the present application.
An automatic repair device for a malfunction at WiFi may comprise a processor 301 and a memory 302 storing computer program instructions.
In particular, the processor 301 may include a central processing unit (Central Processing Unit, CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present application.
Memory 302 may include mass storage for data or instructions. By way of example, and not limitation, memory 302 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. In one example, memory 302 may include removable or non-removable (or fixed) media, or memory 302 may be a non-volatile solid state memory. Memory 302 may be internal or external to the integrated gateway disaster recovery device.
The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement the method steps N1 to N4 in the embodiment shown in fig. 1, and achieve the corresponding technical effects achieved by executing the method/steps in the embodiment shown in fig. 1, which are not described herein for brevity.
In one example, the WiFi malfunction auto-repair device may further include a communication interface 303 and a bus 310. As shown in fig. 4, the processor 301, the memory 302, and the communication interface 303 are connected to each other by a bus 310 and perform communication with each other.
The communication interface 303 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiment of the present application.
Bus 310 includes hardware, software, or both that couple the components of the online data flow billing device to each other. By way of example, and not limitation, the buses may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics Bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (Industry Standard Architecture, ISA) Bus, an infiniband interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a micro channel architecture (MCa) Bus, a Peripheral Component Interconnect (PCI) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a video electronics standards association local (VLB) Bus, or other suitable Bus, or a combination of two or more of the above. Bus 310 may include one or more buses, where appropriate. Although embodiments of the application have been described and illustrated with respect to a particular bus, the application contemplates any suitable bus or interconnect.
The automatic restoration device for WiFi function abnormality can execute the automatic restoration method for WiFi function abnormality in the embodiment of the application by acquiring the operation of a user and the state information of the WiFi function and based on the corresponding relation of the operation of the user and the state information of the WiFi function, thereby realizing the automatic restoration method for WiFi function abnormality described by combining with figures 1 and 2 and solving the problem that WiFi function abnormality cannot be automatically judged and restored
In addition, in combination with the method for automatically repairing the WiFi function abnormality in the above embodiment, the embodiment of the application may provide a storage medium to be implemented. The storage medium having stored thereon computer program instructions; the computer program instructions, when executed by the processor, implement the automatic repair method for the WiFi function abnormality in any of the above embodiments.
It should be understood that the application is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present application are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present application is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present application, and they should be included in the scope of the present application.
Claims (11)
1. An automatic repair method for WiFi function abnormality is characterized by comprising the following steps:
acquiring operation information of user operation and state information of a WiFi function;
judging whether the WiFi function is abnormal or not according to the operation information and the state information of the WiFi function;
if the WiFi function is abnormal, starting automatic restoration operation of a preset WiFi function to restore the WiFi function;
executing the operation corresponding to the operation information;
the automatic restoration operation of the preset WiFi function is started to restore the WiFi function, which comprises the following steps:
detecting whether a wpa_supplicant process exists or not;
if the wpa_supplicant process does not exist, detecting whether a wificond process exists or not; if the wpa_supplant process exists, closing the wpa_supplant process and detecting whether the wificond process exists or not;
if the WiFi process does not exist, detecting whether a WiFi drive is already loaded; if the WiFi process exists, closing the WiFi process and detecting whether a WiFi drive is loaded;
if the WiFi driver is not loaded, detecting whether the wpa_suppicant exists again; if the WiFi drive is loaded, unloading the WiFi drive and detecting whether the wpa_suppicant process exists or not again;
if the wpa_suppurative process does not exist, starting the wpa_suppurative process, and judging whether the wificond process exists or not; if the wpa_supplicant process exists, judging whether the wificond process exists or not;
if the WiFi process does not exist, starting the WiFi process, and detecting whether the WiFi drive is loaded; if the WiFi process exists, detecting whether the WiFi driver is already loaded;
and if the WiFi driver is not loaded, loading the WiFi driver to restore the WiFi function.
2. The method of claim 1, wherein determining whether the WiFi function is abnormal based on the operation information and the status information of the WiFi function comprises:
comparing the corresponding relation between the operation information and the state information of the WiFi function with a preset information comparison table;
and judging whether the WiFi function is abnormal or not based on the comparison result.
3. The method according to claim 1, characterized in that:
the operation information includes one or more of the following: opening a WiFi function, closing the WiFi function, connecting a network hot spot, closing the network hot spot, and carrying out data transmission;
the status information of the WiFi function includes one or more of the following: the WiFi function is in an on state, the WiFi function is in an off state, the WiFi function is connecting to a designated network hotspot, the network hotspot function is off, and the connected network is being utilized for data transmission.
4. The method of claim 1, wherein after the initiating a preset WiFi function automatic repair operation to repair the WiFi function, further comprising:
and verifying whether the WiFi function is normal.
5. The method of claim 4, wherein said verifying whether said WiFi function is normal comprises:
detecting whether a WiFi signal is connected;
when the WiFi signal is connected, detecting whether the network can be connected through the WiFi signal;
if yes, judging that the WiFi function is normal.
6. An automatic repair device for WiFi dysfunction, the device comprising:
the information acquisition module is used for acquiring operation information of a user and status information of the WiFi function;
the judging module is used for judging whether the WiFi function is abnormal or not according to the operation information and the state information of the WiFi function;
the WiFi function restoration module is used for starting automatic restoration operation of a preset WiFi function when the WiFi function is abnormal;
the restarting module is used for re-executing the operation after the automatic restoration operation of the preset WiFi function is completed;
the WiFi function repair module comprises: the WiFi function overhauls the unit, wiFi function overhauls the unit and is used for carrying out the following steps:
detecting whether a wpa_supplicant process exists or not;
if the wpa_supplicant process does not exist, detecting whether a wificond process exists or not; if the wpa_supplant process exists, closing the wpa_supplant process and detecting whether the wificond process exists or not;
if the WiFi process does not exist, detecting whether a WiFi drive is already loaded; if the WiFi process exists, closing the WiFi process and detecting whether a WiFi drive is loaded;
if the WiFi driver is not loaded, detecting whether the wpa_suppicant exists; if the WiFi drive is loaded, unloading the WiFi drive and detecting whether the wpa_supplicant process exists or not;
if the wpa_suppurative process does not exist, starting the wpa_suppurative process, and judging whether the wificond process exists or not; if the wpa_supplicant process exists, judging whether the wificond process exists or not;
if the WiFi process does not exist, starting the WiFi process, and detecting whether the WiFi drive is loaded; if the WiFi process exists, detecting whether the WiFi driver is already loaded;
and if the WiFi drive is not loaded, loading the WiFi drive to finish WiFi function restoration.
7. The apparatus according to claim 6, wherein the determination module
And comparing the corresponding relation between the operation information and the state information of the WiFi function with a preset information comparison table, and judging whether the WiFi function is abnormal or not based on a comparison result.
8. The apparatus according to claim 6 or 7, further comprising:
and the WiFi function verification module is used for verifying whether the WiFi function is normal or not after the automatic restoration operation of the preset WiFi function is finished.
9. The apparatus according to claim 6 or 7, further comprising:
and the WiFi drive reset module is used for unloading and reloading the WiFi drive by one key and restarting the WiFi function.
10. An automatic repair device for WiFi dysfunction, the device comprising:
a processor and a memory storing computer program instructions;
the processor is configured to read and execute the computer program instructions to implement the method of automatic repair of WiFi dysfunction according to any of claims 1-5.
11. A storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method of automatically repairing WiFi dysfunction according to any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110534187.3A CN113596887B (en) | 2021-05-17 | 2021-05-17 | Automatic restoration method, device and equipment for WiFi function abnormality and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110534187.3A CN113596887B (en) | 2021-05-17 | 2021-05-17 | Automatic restoration method, device and equipment for WiFi function abnormality and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113596887A CN113596887A (en) | 2021-11-02 |
CN113596887B true CN113596887B (en) | 2023-11-14 |
Family
ID=78243192
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110534187.3A Active CN113596887B (en) | 2021-05-17 | 2021-05-17 | Automatic restoration method, device and equipment for WiFi function abnormality and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113596887B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106020942A (en) * | 2016-05-05 | 2016-10-12 | 四川安嵌科技有限公司 | Multi-system based WiFi device reuse method and device |
CN106169965A (en) * | 2016-09-28 | 2016-11-30 | 北京金山安全软件有限公司 | Network repairing method, device and terminal |
CN108204653A (en) * | 2017-12-28 | 2018-06-26 | Tcl空调器(中山)有限公司 | Fault detection method, device, terminal and the storage medium of WIFI module |
CN108307414A (en) * | 2017-12-12 | 2018-07-20 | 广东小天才科技有限公司 | Wi-Fi connection abnormity processing method and device of application program, terminal and storage medium |
CN108600042A (en) * | 2018-03-27 | 2018-09-28 | 广州视源电子科技股份有限公司 | WiFi test method and device for electronic equipment, storage medium and test equipment |
CN109032826A (en) * | 2018-06-22 | 2018-12-18 | 北京蜂盒科技有限公司 | WiFi fault recovery method, device, storage medium and electronic equipment |
CN109587663A (en) * | 2018-10-25 | 2019-04-05 | 惠州市德赛西威汽车电子股份有限公司 | A kind of automated testing method and its system of vehicle-mounted Wi-Fi switch |
CN110011970A (en) * | 2019-02-28 | 2019-07-12 | 努比亚技术有限公司 | A kind of journal obtaining method, terminal and computer readable storage medium |
CN110290547A (en) * | 2019-06-28 | 2019-09-27 | 深圳市元征科技股份有限公司 | A kind of WiFi module fault recovery method, system and electronic equipment and storage medium |
WO2020102940A1 (en) * | 2018-11-19 | 2020-05-28 | 深圳市欢太科技有限公司 | Abnormality processing method, terminal device and storage medium |
CN112040535A (en) * | 2020-09-02 | 2020-12-04 | 青岛海信传媒网络技术有限公司 | Wifi processing method and display device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105263196A (en) * | 2015-08-31 | 2016-01-20 | 小米科技有限责任公司 | Connection state prompting method and device |
US10944632B2 (en) * | 2017-06-22 | 2021-03-09 | Texas Instruments Incorporated | Accelerated network reconnect using previous connection parameters |
-
2021
- 2021-05-17 CN CN202110534187.3A patent/CN113596887B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106020942A (en) * | 2016-05-05 | 2016-10-12 | 四川安嵌科技有限公司 | Multi-system based WiFi device reuse method and device |
CN106169965A (en) * | 2016-09-28 | 2016-11-30 | 北京金山安全软件有限公司 | Network repairing method, device and terminal |
CN108307414A (en) * | 2017-12-12 | 2018-07-20 | 广东小天才科技有限公司 | Wi-Fi connection abnormity processing method and device of application program, terminal and storage medium |
CN108204653A (en) * | 2017-12-28 | 2018-06-26 | Tcl空调器(中山)有限公司 | Fault detection method, device, terminal and the storage medium of WIFI module |
CN108600042A (en) * | 2018-03-27 | 2018-09-28 | 广州视源电子科技股份有限公司 | WiFi test method and device for electronic equipment, storage medium and test equipment |
CN109032826A (en) * | 2018-06-22 | 2018-12-18 | 北京蜂盒科技有限公司 | WiFi fault recovery method, device, storage medium and electronic equipment |
CN109587663A (en) * | 2018-10-25 | 2019-04-05 | 惠州市德赛西威汽车电子股份有限公司 | A kind of automated testing method and its system of vehicle-mounted Wi-Fi switch |
WO2020102940A1 (en) * | 2018-11-19 | 2020-05-28 | 深圳市欢太科技有限公司 | Abnormality processing method, terminal device and storage medium |
CN110011970A (en) * | 2019-02-28 | 2019-07-12 | 努比亚技术有限公司 | A kind of journal obtaining method, terminal and computer readable storage medium |
CN110290547A (en) * | 2019-06-28 | 2019-09-27 | 深圳市元征科技股份有限公司 | A kind of WiFi module fault recovery method, system and electronic equipment and storage medium |
CN112040535A (en) * | 2020-09-02 | 2020-12-04 | 青岛海信传媒网络技术有限公司 | Wifi processing method and display device |
Non-Patent Citations (1)
Title |
---|
姜惠娟.Wi-Fi网络故障诊断与解决措施研究.《 洛阳师范学院学报》.2014,全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN113596887A (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7840234B2 (en) | Method and mobile communication device capable of resuming operating function of temporarily disabled SIM card | |
US8768300B2 (en) | Remote control method and system for smart card | |
US10104535B2 (en) | Mobile terminal, maintenance server, and method and apparatus for maintaining virtual SIM card | |
CA3026587C (en) | Mobile payment method and device | |
KR100698141B1 (en) | A mobile terminal having a radio frequency calibration data recovering function and a method of backup and reinstalling | |
US20120220269A1 (en) | Anti-crack method and device for network-locked mobile terminal, and network-locked mobile terminal | |
JP2015517151A (en) | System, method, and computer program product for detecting and managing changes associated with a mobile wallet | |
CN103428333B (en) | Mobile terminal, server and errors repair method | |
US20140150104A1 (en) | Electronic assembly comprising a disabling module | |
CN105391865A (en) | Method and system for starting anti-theft function of mobile terminal via shutdown mode | |
CN104010077A (en) | Information processing method and electronic equipment | |
CN113596887B (en) | Automatic restoration method, device and equipment for WiFi function abnormality and storage medium | |
US20160189139A1 (en) | Public transportation fee payment system and operating method thereof | |
US20080070629A1 (en) | Method and mobile communication device for resuming a functioning of a subscriber identity module | |
CN105224416B (en) | Restorative procedure and related electronic device | |
CN116069751A (en) | Information processing method, apparatus, device and computer readable storage medium | |
US11068880B2 (en) | Control of applications in a mobile terminal | |
US11051148B2 (en) | USIM management device and industrial communication terminal | |
CN103118367A (en) | System and method for safety certification of mobile phones | |
KR20190017041A (en) | How to manage security elements | |
CN102572796B (en) | The data interactive processing method of mobile device and smart card and device | |
CN106921941A (en) | A kind of system and method and communication terminal for pursuing stolen communication terminal | |
CN104113631A (en) | Data transmission method and electronic apparatus | |
CN106211163A (en) | The method and apparatus of safe networking | |
CN111176936A (en) | Method and device for monitoring error rewriting of BMC FLASH |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |