CN109921951A - A kind of processing method and electronic equipment - Google Patents
A kind of processing method and electronic equipment Download PDFInfo
- Publication number
- CN109921951A CN109921951A CN201910254471.8A CN201910254471A CN109921951A CN 109921951 A CN109921951 A CN 109921951A CN 201910254471 A CN201910254471 A CN 201910254471A CN 109921951 A CN109921951 A CN 109921951A
- Authority
- CN
- China
- Prior art keywords
- network
- network equipment
- service
- state
- test point
- 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
Links
Abstract
This application discloses a kind of processing method and electronic equipments, this method comprises: if network is in first state, start the service of corresponding network equipment, wherein the service is to detect the application of the network equipment, the corresponding multiple test points of the service, when the test point is the service execution, the needing to detect of the task;The network equipment is detected according to the multiple test point;It executes at least one and repairs instruction, the reparation instruction is can be by the network from first state reparation to the instruction of the second state.The processing method is used have to network failure according to the detection mode of multiple test points and targetedly be detected, and network failure can be repaired based on testing result, it is easily operated, it avoids causing network paralysis and property loss due to that cannot detect and repair network failure.
Description
Technical field
This application involves the network construction field of electronic equipment, in particular to a kind of processing method and electronic equipment.
Background technique
In current such as computer electronic equipment, needs using network, but actually using in many cases
Network failure often occurs in journey, and not can be carried out thorough detection for network failure at present, and then can not know net
The reason of network failure occurs, for general user, has no ability to repair it at all for the network failure of appearance,
To cause network paralysis, cause any property loss to user.
Summary of the invention
The embodiment of the present application is designed to provide a kind of processing method and electronic equipment.
Embodiments herein adopts the technical scheme that a kind of processing method, comprising:
If network is in first state, start the service of corresponding network equipment, wherein the service is the detection net
The application of network equipment, the corresponding multiple test points of the service, when the test point is the service execution, need to detect appoints
Business;
The network equipment is detected according to the multiple test point;
It executes at least one and repairs instruction, the reparation instruction is can be by the network from first state reparation to the second shape
The instruction of state.
Preferably, detecting the network equipment according to the multiple test point;It executes to repair to instruct and includes:
Multiple hardware components of the network equipment are detected according to the multiple test point;
It executes and repairs instruction set, to repair the hardware component at least partly.
Preferably, the service of starting corresponding network equipment includes:
When the network equipment enables, the network driver operation of the corresponding network equipment, so that the service
It can be activated;
Wherein, the service is added in the network driver in the form of application.
Preferably, the network hardware includes at least one firmware, it is described according to described in the detection of the multiple test point
The network equipment includes:
Using contacting for the network driver and the firmware, at least one described firmware is detected;
Wherein, after the connection is the network driver operation, the network driver and the firmware are established
's.
Preferably, wherein, at least one described firmware includes multiple firmwares;
To at least one described firmware carry out detection include: according to the multiple firmware detection ordering detection it is the multiple
Firmware.
Preferably, instruction set is repaired in the execution, at least partly include: with repair the hardware component
Restart the network equipment, and executes the reparation instruction in the reboot process, it is corresponding to determining Network Abnormal
The hardware component carry out repair operation with by the network from first state reparation to the second state.
Preferably, described include: according to the multiple test point detection network equipment
The network equipment is detected according to particular order according to the multiple test point.
Preferably, described carry out detection packet to the network equipment according to particular order according to the multiple test point
It includes:
The test point with weight is compared according to default weight rule with the off-note detected one by one,
To detect the network equipment.
Preferably, the reparation instruction of execution at least one includes:
Recovery operation is carried out at least one apparatus assembly associated with Network Abnormal, wherein the apparatus assembly includes
It is relevant to the network equipment for carrying out the interface data of data interaction, the recovery behaviour with application program in operating system
Work includes carrying out reset operation to the interface data.
The embodiment of the present application also provides a kind of electronic equipment, including;
Starting module starts the service of corresponding network equipment, wherein the clothes if being configured to network is in first state
Business is the application for detecting the network equipment, and the service corresponds to multiple test points, when the test point is the service execution,
The needing to detect of the task;
Detection module is configured to detect the network equipment according to the multiple test point;
Repair module is configured to execute at least one and repairs instruction, reparations instruct be can be by the network from first
State reparation to the second state instruction.
The processing method is used have to network failure according to the detection mode of multiple test points and targetedly be examined
It surveys, and network failure can be repaired based on testing result, it is easily operated, it avoids due to that cannot detect and repair network
Failure and he causes network paralysis and property loss.
Detailed description of the invention
Fig. 1 is the flow chart of the processing method of the embodiment of the present application;
Fig. 2 is the structural schematic diagram of the electronic equipment of the embodiment of the present application.
Specific embodiment
The various schemes and feature of the application are described herein with reference to attached drawing.
It should be understood that various modifications can be made to the embodiment applied herein.Therefore, description above should not regard
To limit, and only as the example of embodiment.Those skilled in the art will expect in the scope and spirit of the present application
Other modifications.
The attached drawing being included in the description and forms part of the description shows embodiments herein, and with it is upper
What face provided is used to explain the application together to substantially description and the detailed description given below to embodiment of the application
Principle.
By the description of the preferred form with reference to the accompanying drawings to the embodiment for being given as non-limiting example, the application's
These and other characteristic will become apparent.
It is also understood that although the application is described referring to some specific examples, those skilled in the art
Member realizes many other equivalents of the application in which can determine, they have feature as claimed in claim and therefore all
In the protection scope defined by whereby.
When read in conjunction with the accompanying drawings, in view of following detailed description, above and other aspect, the feature and advantage of the application will become
It is more readily apparent.
The specific embodiment of the application is described hereinafter with reference to attached drawing;It will be appreciated, however, that applied embodiment is only
Various ways implementation can be used in the example of the application.Known and/or duplicate function and structure and be not described in detail to avoid
Unnecessary or extra details makes the application smudgy.Therefore, applied specific structural and functionality is thin herein
Section is not intended to restrictions, but as just the basis of claim and representative basis be used to instructing those skilled in the art with
Substantially any appropriate detailed construction diversely uses the application.
This specification can be used phrase " in one embodiment ", " in another embodiment ", " in another embodiment
In " or " in other embodiments ", it can be referred to one or more of the identical or different embodiment according to the application.
Fig. 1 is the flow chart of the processing method of the embodiment of the present application, as shown in Figure 1, the embodiment of the present application discloses one kind
Processing method, the processing method can apply the detection in the network failure to electronic equipment, and this method comprises the following steps:
S1 starts the service of corresponding network equipment if network is in first state, wherein service is the detection network equipment
Application, the corresponding multiple test points of service, when test point is service execution, the needing to detect of the task.First shape locating for network
State is that the state before handling it is also possible to net if first state can be the state that network failure has occurred in network
Network configuration more it is old make user want the maintenance being maintained before state etc..Network is corresponding with the network equipment, electronics
Equipment can access network by the network equipment, and the service of corresponding network equipment is provided in the present embodiment, which can be with
The network equipment is served, the network failure that can such as occur to the network equipment detects, and with software, hardware or both phase
In conjunction with formation occur.In one embodiment, which can be the application of the detection network equipment, and application can be and net
The relevant program of network or hardware such as detect the hardware of bus chip or the program segment for detecting the bus chip.This implementation
In example, service is corresponding with multiple test points, and the detection target of test point can be set according to actual needs, as test point can be with
It is set as detection and easily causes the program of network failure and/or the task of firmware.
S2 detects the network equipment according to multiple test points.Test point is the needing to detect when detecting network failure of the task, and
The quantity of test point can be set according to the quantity for the fault point for being likely to occur failure in the network equipment, can also be according to user
Experience is set, and furthermore test point can occur in the form of program code, the program code can be run in service execution.
When detecting to the network equipment, service can be executed, to execute the task, such as runs the corresponding program segment of test point
And then execute corresponding task.In the present embodiment, the network equipment can be detected according to multiple test points, and the test point is corresponding
Detection task may be arranged as detecting multiple tasks of the more frequent target objects of network failure occur.
S3 executes at least one and repairs instruction, and repairing instruction can be by network from first state reparation to the second state
Instruction.Specifically, after network breaks down, the network equipment is detected according to multiple test points, generates testing result,
It may include at least one fault message in the testing result, at least one can be executed according to the fault message detected at this time
It repairs instruction to be repaired to be directed to the network failure that the fault message is characterized, and then by network from first state reparation to the
Second state of two-state, network can be unfaulty conditions after reparation, be also possible to the old configuration to the network equipment and carry out
Updated state.
The processing method can utilize multiple test points, have to network failure and targetedly detect, can expand
The purpose of detection is had both while big test object again, and then can carry out that there is targetedly network event according to testing result
Barrier is repaired, and is improved detection and is repaired the efficiency and accuracy of network failure.
In one embodiment of the application, the network equipment is detected according to multiple test points;Execute repair instruction include with
Lower step:
Multiple hardware components according to multiple test points detection network equipment;
It executes and repairs instruction set, to repair hardware component at least partly.
Specifically, it can detecte the hardware component of the network equipment according to test point, such as detect the firmware of the network equipment, by
It is larger in the probability that can know the first firmware generation network failure during actually using electronic equipment, such as wireless network
Equipment firmware, therefore can will test and a little be set as detecting first firmware, after executing service, it can be held according to test point
The task of row the first firmware of detection.Of course, it is possible to preset it is multiple there is targetedly test point, each test point is corresponding
There is respective hardware component, after executing service, can be provided according to default detection ordering to execute the corresponding task of test point,
To detect corresponding multiple hardware components respectively.It can be executed according to testing result after detection opposite with the testing result
The reparation instruction set answered, repairing instruction set includes at least one reparation instruction, therefore can after executing reparation instruction set
To execute all reparation instructions in the reparation instruction set, broken down in hardware component or other want to repair with repairing
Target, to realize the repair function to the hardware (including firmware) of the network equipment.
In one embodiment of the application, start the service of corresponding network equipment the following steps are included: the network equipment opens
Used time, the network driver operation of corresponding network equipment, so that service can be activated;Wherein, service is the shape with application
Formula is added in network driver.Network driver is that one kind can make electronic equipment itself logical with the network equipment
The program of letter, is considered as the interface for the network hardware, and operating system just can control network equipment working by the interface.Therefore
Need operational network driver when starting the network equipment, and the application will service it is associated with the network driver,
Such as service is added in network driver in the form applied, when network driver operation and is able to carry out described
Service, it is convenient and efficient, and since network driver will necessarily be run during using electronic equipment, it is added to
Service in network driver also can be necessarily run, thus will not there is a situation where forget operation service.
In one embodiment of the application, the network hardware includes at least one firmware, described to examine according to multiple test points
Surveying the network equipment includes:
Using contacting for network driver and firmware, at least one firmware is detected;Wherein, the connection is net
After the operation of network driver, network driver is established with firmware.
The firmware of network driver and electronic equipment has natural relationship, and network driver can carry out firmware
Operation, if the service of setting is added in network driver in the form applied, wherein servicing corresponding test point can be with
Occur with the formation of program segment, and associated with specific firmware, is closed so that network driver and the specific firmware have
Connection relationship, be based on the incidence relation, network driver operation after can be established with firmware it is described contact, thus realize to this
The detection of specific firmware, such as the first program segment detected to WIFI firmware is added in network driver,
After network driver starting, the first program segment can be also run, so that network driver and WIFI firmware are just
Connection can be established, to detect to WIFI firmware.
Furthermore, it is understood that at least one described firmware includes multiple firmwares in the present embodiment;At least one firmware is carried out
Detection includes: the multiple firmwares of detection ordering detection according to multiple firmwares.Firmware tool relevant to the network equipment in electronic equipment
Having multiple such as above-mentioned WIFI firmware, there are also PCIE SOC, correspondingly, can also add it in network driver
His program segment, such as above-mentioned the first program segment associated with WIFI firmware, and associated with PCIE SOC second
Program segment, to be contacted after network driver starts with corresponding each firmware foundation, and by the first program segment of operation with
The application such as second program segment is to detect each firmware, and specifically adding service associated with which firmware can basis
The object of detection is actually needed to determine in user.Since in this way, only need operational network driver just can be using addition in net
Multiple test points in network driver carry out accurately having needle to each firmware relevant to the network equipment in electronic equipment
Detection to property improves detection efficiency, and then can repair according to testing result while to expand test object
Each firmware has effectively achieved the reparation task to the bottom hardware of electronic equipment.
In one embodiment of the application, instruction set is repaired in the execution, to repair at least portion of hardware component
Dividing includes: to restart the network equipment, and execute repair instruction in the reboot process, to the determining corresponding hardware component of Network Abnormal
Carry out repair operation with by network from first state reparation to the second state.
Specifically, hardware component includes each hardware relevant to network, such as wireless network chip, cable network core
Piece, network data processing chip etc. can pass through the side of hardware or software when executing reparation instruction set reparation hardware component
Formula restarts the network equipment, is such as restarted by way of software to Wireless Communication Equipment, powers on again after a loss of power
During, it executes and repairs instruction, based on the Network Abnormal determined after the network equipment is detected according to multiple test points, and then to true
The corresponding hardware component of fixed Network Abnormal carries out reparation operation, is such as matched again to the hardware for network abnormal situation occur
It sets, so that Network Abnormal can be eliminated after hardware restarting, and then by network from first state reparation to the second state, i.e.,
It repairs to Network Abnormal is eliminated, so that electronic equipment is in the second state that can re-start normal network communication.
It include: according to multiple test points according to multiple test points detection network equipment in one embodiment of the application
The network equipment is detected according to particular order.
Particular order can be user and carry out preset sequence according to actual needs, can such as hold according in the network equipment
The height that the frequency of network failure occurs in the target object (including hardware and software relevant to network) of network failure easily occurs
Low and setting sequence, detects the target object for being easy to happen network failure according to test point in advance, and opposite is not easy
The target object that network failure occurs then is detected, in this way since, can be improved detection efficiency, shortening detection time.
For example, being respectively necessary for detecting multiple target objects when detecting the network equipment, comprising: the
One, PCIE SOC chip state is read using the network driver of the program segment added with corresponding test point;Second, in utilization
State the wake-up position data that network driver reads PCIE SOC chip;Third utilizes above-mentioned network driver detecting system
Switch to whether normal operating conditions (S0 state or D0 state) succeeds by dormant state (S3 state or D3 state);4th, benefit
Judge whether that continuous several times appearance can not be correctly received the event of scanning through into from firmware with above-mentioned network driver.Due to
First object object to the probability that the 4th target object goes wrong be it is descending, therefore, according to multiple test points to net
Network equipment can be detected when being detected according to first to fourth sequence, and then can be improved detection efficiency, be shortened
Detection time.When being detected to first object object, if PCIE SOC chip state address shows 0xFFFFFFFF,
It can then be judged according to the state address content at this time without discovery PCIE SOC chip or without discovery network interface card etc., thus raw
At corresponding testing result;When being detected to the second target object, if reading the wake-up position data of PCIE SOC chip
Failure, which then may determine that, does not wake up the network equipment, specifically can be the wake-up bitmask (wake bit mask) for reading PCIE
Time time-out, which then may determine that, does not wake up the network equipment;When being detected to third target object, if it is determined that electronics is set
It then may determine that for normal operating conditions (S0 state or D0 state) failure is switched to by dormant state (S3 state or D3 state)
System is not worked with normal condition;It, three times can not be from firmware just if continuous when being detected to the 4th target object
True receives the event of scanning through into, and deadline time-out then illustrates that the firmware breaks down, is unable to complete scanning work.Inspection
Corresponding testing result is generated after the completion of surveying.Certainly can also more target objects be detected and be generated with testing result,
After the completion of such as being detected to the 4th target object, it can also be carried out for wireless network driver (such as WIFI Driver)
Detection, if it find that the reason of mistake then can determine wireless network failure occurs in the wireless network driver.
In addition, if detected wireless network failure, it is abnormal such as to detect that wireless device firmware calls, wireless device drives
Dynamic abnormal or the corresponding wireless network of operating system interface function is abnormal, then can wirelessly be set by software restarting
Standby mode come repair wireless device generation failure.Since the embodiment of the present application can be detected specifically for wireless device
And reparation, the wireless device include at least following one: WIFI adapter, Bluetooth adapter, wireless wide area network (WWAN) adaptation
Device and near-field communication (NFC) adapter etc., therefore when users state wireless network in use, then in case of network failure
Quickly wireless network failure can detect and repair network failure, there is very strong timeliness.
It is described that the network equipment is carried out according to particular order according to multiple test points in one embodiment of the application
Detection includes: to be compared the test point with weight one by one with the off-note detected according to default weight rule, with
Detect the network equipment.
It recombines above-described embodiment to be illustrated, the first test point is corresponding with first object object, the second test point
Corresponding with the second target object, third test point is corresponding with third target object, the 4th test point and the 4th target object
Corresponding, the weight of the first test point to the 4th test point is gradually reduced from high to low, and default weight rule is that will weigh first
The high test point of weight is compared one by one with the off-note detected, when generation testing result (including off-note)
Afterwards, target object feature represented by the first test point can be compared with the off-note, and then judges whether first
Network failure has occurred in target object, then carries out by target object feature represented by the second test point and the off-note
It compares, and then judges whether that network failure etc. has occurred in the second target object.Thus it can quickly detect since and relatively attach most importance to
Whether the target object wanted has occurred network failure, to guarantee the reparation to more important target object.
In one embodiment of the application, the execution at least one repair instruction the following steps are included: to net
At least one extremely associated apparatus assembly of network carries out recovery operation, and wherein apparatus assembly includes setting in operating system with network
Standby relevant for carrying out the interface data of data interaction with application program, recovery operation includes carrying out resetting behaviour to interface data
Make.Apparatus assembly can be hardware component associated with Network Abnormal and software program, including in operating system with net
The relevant interface data of network equipment and other underlying programs, the interface data can be used to make operating system and application program into
Row data interaction, the interface data can be interface function, such as application programming interface, i.e. API (Application
Programming Interface), API is some functions predetermined, it is therefore an objective to provide application program and developer's base
Mr. Yu's software or hardware are able to the ability of one group of routine of access, and are not necessarily to access source code, or understand the thin of internal work mechanism
Section.Therefore in the present embodiment recovery operation include reset operation is carried out to interface data relevant to the network equipment so that
Interface data with repair after hardware component (including firmware) and be adapted, avoid leading since the configuration of interface data is improper
Cause the event that not can be carried out network connection.
Present invention also provides a kind of electronic equipment, which can be the setting with network function such as computer
It is standby, as shown in Fig. 2, the electronic equipment includes;
Starting module starts the service of corresponding network equipment, wherein the clothes if being configured to network is in first state
Business is the application for detecting the network equipment, and the service corresponds to multiple test points, when the test point is the service execution,
The needing to detect of the task.First state locating for network is the state before handling it, as first state can be network
The state that network failure has occurred, be also possible to network configuration more it is old make user want the maintenance being maintained before
State etc..Network is corresponding with the network equipment, and electronic equipment can access network by the network equipment, and be provided in the present embodiment
The service of corresponding network equipment, the service can serve the network equipment, such as can to the network failure that the network equipment occurs into
Row detection, and occur with the formation that software, hardware or both combine.In one embodiment, which can be detection
The application of the network equipment, and application can be program relevant to network or hardware, such as detect the hardware or use of bus chip
In the program segment for detecting the bus chip.In the present embodiment, service is corresponding with multiple test points, and the detection target of test point can be with
It sets according to actual needs, easily causes the program of network failure and/or appointing for firmware as test point can be set to detection
Business.
Detection module is configured to detect the network equipment according to multiple test points.Test point needs when being detection network failure
The task of detection, and the quantity of test point can be set according to the quantity for the fault point for being likely to occur failure in the network equipment,
It can also be set according to user experience, furthermore test point can occur in the form of program code, can be in service execution
Run the program code.When detection module detects the network equipment, service can be executed, to execute the task,
It such as runs the corresponding program segment of test point and then executes corresponding task.In the present embodiment, detection module can be according to multiple inspections
Measuring point detects the network equipment, and the corresponding Detection task of the test point may be arranged as detecting multiple generation network failures compared with
For the task of frequent target object.
Repair module is configured to execute at least one and repairs instruction, repair instruction be can be by network from first state reparation
To the instruction of the second state.Specifically, after network breaks down, the network equipment is detected according to multiple test points,
Testing result is generated, may include at least one fault message in the testing result, repair module can be according to detecting at this time
Fault message execute at least one repair instruction repaired to be directed to the network failure that the fault message is characterized, and then will
For network from first state reparation to the second state, the second state of network can be unfaulty conditions after repairing, and be also possible to pair
The old configuration of the network equipment be updated after state.
The electronic equipment (such as computer equipment) can utilize test point, have and targetedly detect, Ke Yi
The purpose of detection is had both again while expanding test object, therefore can be avoided blindly relevant to network soft using restarting
The rough repair mode of part and hardware improves the efficiency and accuracy of detection network failure.
In one embodiment of the application, detection module is further configured to detect the network equipment according to multiple test points
Multiple hardware components;Correspondingly, repair module, which is further configured to execute, repairs instruction set, to repair hardware component extremely
Small part.
Specifically, detection module can detecte the hardware component of the network equipment according to test point, such as detect the network equipment
Firmware, due to can know during actually using electronic equipment the first firmware occur network failure probability it is larger,
Such as Wireless Communication Equipment firmware, therefore it can will test and a little be set as detecting first firmware, after executing service, detection module
The task of the first firmware of detection can be executed according to test point.Of course, it is possible to preset it is multiple have aimed detection point,
Each test point is corresponding with respective hardware component, after executing service, can provide according to default detection ordering to execute
The corresponding task of test point, to detect corresponding multiple hardware components respectively.Repair module can be according to inspection after detection
It surveys result and executes reparation instruction set corresponding with the testing result, repairing instruction set includes that at least one repairs instruction,
Therefore reparation instruction all in the reparation instruction set can be executed, after repair module executes and repairs instruction set to repair
It breaks down in hardware component or other wants the target repaired, to realize to the hardware of the network equipment (including firmware)
Repair function.
In one embodiment of the application, starting module is further configured to: when the network equipment enables, corresponding network is set
Standby network driver operation, so that service can be activated;Wherein, service is to be added to network-driven in the form of application
In program.Network driver is that one kind can make electronic equipment itself that can see with the program of network device communications
As the interface of the network hardware, operating system just can control network equipment working by the interface.Therefore start in starting module
Need operational network driver when the network equipment, and the application will service associated with the network driver, will such as take
Business is added in network driver in the form applied, and when network driver operation and is able to carry out the service,
It is convenient and efficient, and since network driver will necessarily be run during using electronic equipment, it is added to network
Service in driver also can be necessarily run, thus will not there is a situation where forget operation service.
In one embodiment of the application, the network hardware includes at least one firmware, and detection module is further configured to:
Using contacting for network driver and firmware, at least one firmware is detected;Wherein, the connection is network-driven journey
After sort run, network driver is established with firmware.
The firmware of network driver and electronic equipment has natural relationship, and network driver can carry out firmware
Operation, if the service of setting is added in network driver in the form applied, wherein servicing corresponding test point can be with
Occur with the formation of program segment, and associated with specific firmware, is closed so that network driver and the specific firmware have
Connection relationship, be based on the incidence relation, network driver operation after can be established with firmware it is described contact, to realize detection
Detection of the module to the specific firmware, such as added with the detected to WIFI firmware in network driver
One program segment, after network driver starting, the first program segment can be also run, so that network driver and WIFI
Firmware just can establish connection, so that detection module can detect WIFI firmware.
Furthermore, it is understood that at least one described firmware includes multiple firmwares in the present embodiment;Detection module is further specific
It is configured that the detection ordering according to multiple firmwares detects multiple firmwares.Firmware relevant to the network equipment has in electronic equipment
There are also PCIE SOC by multiple such as above-mentioned WIFI firmware, correspondingly, can also add other in network driver
Program segment, such as above-mentioned the first program segment associated with WIFI firmware, and the second journey associated with PCIE SOC
Sequence section, to contact after network driver starts with corresponding each firmware foundation, detection module passes through the first program of operation
Section is applied to detect each firmware with the second program segment etc., and specifically adding service associated with which firmware can be with
The object of detection is actually needed according to user to determine.Since in this way, only need operational network driver just can be using addition
Multiple test points in network driver accurately have each firmware relevant to the network equipment in electronic equipment
Targetedly detection, improves detection efficiency, and then can come according to testing result while to expand test object
Each firmware is repaired, the reparation task to the bottom hardware of electronic equipment is had effectively achieved.
In one embodiment of the application, repair module is further configured to: restarting the network equipment, and in restarting process
Instruction is repaired in middle execution, repair operation to the determining corresponding hardware component of Network Abnormal to repair network from first state
Again to the second state.
Specifically, hardware component includes each hardware relevant to network, such as wireless network chip, cable network core
Piece, network data processing chip etc., repair module execute repair instruction set and repair hardware component when, can by hardware or
The mode of software restarts the network equipment, is such as restarted by way of software to Wireless Communication Equipment, is powering off
During powering on again afterwards, execute repair instruction, based on according to multiple test points detect the network equipment after determine Network Abnormal,
And then reparation operation is carried out to the determining corresponding hardware component of Network Abnormal, such as the hardware for network abnormal situation occur is carried out
It reconfigures, so that Network Abnormal can be eliminated after hardware restarting, and then by network from first state reparation to second
State is repaired to Network Abnormal is eliminated, so that electronic equipment, which is in, can re-start the second of normal network communication
State.
In one embodiment of the application, detection module is further configured to: according to multiple test points according to specific suitable
The ordered pair network equipment is detected.
Particular order can be user and carry out preset sequence according to actual needs, can such as hold according in the network equipment
The height that the frequency of network failure occurs in the target object (including hardware and software relevant to network) of network failure easily occurs
Low and setting sequence, detection module detects the target object for being easy to happen network failure according to test point in advance, and phase
The target object that network failure is less likely to occur then is detected, in this way since, can be improved detection efficiency, shorten detection
Time.
For example, detection module is respectively necessary for examining multiple target objects when detecting the network equipment
It surveys, comprising: first, PCIE SOC chip state is read using the network driver of the program segment added with corresponding test point;
Second, the wake-up position data of PCIE SOC chip are read using above-mentioned network driver;Third utilizes above-mentioned network-driven journey
Sequence detecting system by dormant state (S3 state or D3 state) switch to normal operating conditions (S0 state or D0 state) whether at
Function;4th, judge whether that continuous several times appearance can not be correctly received from firmware using above-mentioned network driver and scans through
At event.Due to first object object to the probability that the 4th target object goes wrong be it is descending, detection module exists
It can be detected according to first to fourth sequence when being detected according to multiple test points to the network equipment, and then can
Detection efficiency is improved, detection time is shortened.When being detected to first object object, if PCIE SOC chip state address
It shows 0xFFFFFFFF, then can be judged according to the state address content at this time without finding PCIE SOC chip or not having
It was found that network interface card etc., to generate corresponding testing result;When being detected to the second target object, if reading PCIE SOC
The wake-up position data failure of chip, which then may determine that, does not wake up the network equipment, specifically can be the wake-up bitmask for reading PCIE
(wake bit mask) time time-out then may determine that and not wake up the network equipment;When being detected to third target object,
If it is determined that electronic equipment switchs to normal operating conditions (S0 state or D0 state) by dormant state (S3 state or D3 state)
Failure then may determine that system not with normal condition work status;When being detected to the 4th target object, if continuously
The event of scanning through into can not be correctly received from firmware three times, deadline time-out then illustrates that the firmware breaks down, nothing
Method completes scanning work.Detection module generates corresponding testing result upon completion of the assays.It certainly can also be to more targets
Object is detected and is generated testing result, after the completion of such as detecting to the 4th target object, can also be directed to wireless network
Driver (such as WIFI Driver) is detected, and then can determine if it find that mistake occurs in the wireless network driver
The reason of wireless network failure.
In addition, if detected wireless network failure, it is abnormal such as to detect that wireless device firmware calls, wireless device drives
Dynamic abnormal or the corresponding wireless network of operating system interface function is abnormal, then can wirelessly be set by software restarting
Standby mode come repair wireless device generation failure.Since the embodiment of the present application can be detected specifically for wireless device
And reparation, the wireless device include at least following one: WIFI adapter, Bluetooth adapter, wireless wide area network (WWAN) adaptation
Device and near-field communication (NFC) adapter etc., therefore when users state wireless network in use, then in case of network failure
Quickly wireless network failure can detect and repair network failure, there is very strong timeliness.
In one embodiment of the application, detection module is further configured to: by the test point with weight according to pre-
If weight rule is compared one by one with the off-note detected, to detect the network equipment.
It recombines above-described embodiment to be illustrated, the first test point is corresponding with first object object, the second test point
Corresponding with the second target object, third test point is corresponding with third target object, the 4th test point and the 4th target object
Corresponding, the weight of the first test point to the 4th test point is gradually reduced from high to low, and default weight rule is that will weigh first
The high test point of weight is compared one by one with the off-note detected, when detection module generates testing result (including different
After Chang Tezheng), target object feature represented by the first test point can be compared with the off-note, and then judgement is
Network failure has occurred in no first object object, then target object feature represented by the second test point is abnormal special with this
Sign is compared, and then judges whether that network failure etc. has occurred in the second target object.Thus it can have been quickly detected since
Whether more important target object has occurred network failure, to guarantee the reparation to more important target object.
In one embodiment of the application, repair module is further configured to: to it is associated with Network Abnormal at least
One apparatus assembly carries out recovery operation, and wherein apparatus assembly includes relevant to the network equipment in operating system is used for and application
Program carries out the interface data of data interaction, and recovery operation includes carrying out reset operation to interface data.Apparatus assembly can be
Hardware component associated with Network Abnormal and software program, including number of ports relevant to the network equipment in operating system
Accordingly and other underlying programs, the interface data can be used to that operating system and application program is made to carry out data interaction, the interface
Data can be interface function, such as application programming interface, i.e. API (Application Programming
Interface), API is some functions predetermined, it is therefore an objective to provide application program and developer is based on certain software or hard
Part is able to the ability of one group of routine of access, and is not necessarily to access source code, or understand the details of internal work mechanism.Therefore this implementation
Example in repair module carry out recovery operation include to interface data relevant to the network equipment carry out reset operation so that
Interface data with repair after hardware component (including firmware) and be adapted, avoid leading since the configuration of interface data is improper
Cause the event that not can be carried out network connection.
Above embodiments are only the exemplary embodiment of the application, are not used in limitation the application, the protection scope of the application
It is defined by the claims.Those skilled in the art can make respectively the application in the essence and protection scope of the application
Kind modification or equivalent replacement, this modification or equivalent replacement also should be regarded as falling within the scope of protection of this application.
Claims (10)
1. a kind of processing method, comprising:
If network is in first state, start the service of corresponding network equipment, wherein the service sets to detect the network
Standby application, the corresponding multiple test points of the service, when the test point is the service execution, the needing to detect of the task;
The network equipment is detected according to the multiple test point;
It executes at least one and repairs instruction, the reparation instruction can be by the network from first state reparation to the second state
Instruction.
2. according to the method described in claim 1, detecting the network equipment according to the multiple test point;It executes and repairs instruction
Include:
Multiple hardware components of the network equipment are detected according to the multiple test point;
It executes and repairs instruction set, to repair the hardware component at least partly.
3. according to the method described in claim 1, the service of starting corresponding network equipment includes:
When the network equipment enables, the network driver operation of the corresponding network equipment, so that the service energy quilt
It enables;
Wherein, the service is added in the network driver in the form of application.
4. described according to the multiple inspection according to the method described in claim 3, the network hardware includes at least one firmware
Measuring point detects the network equipment
Using contacting for the network driver and the firmware, at least one described firmware is detected;
Wherein, after the connection is the network driver operation, the network driver is established with the firmware.
5. according to the method described in claim 4, wherein, at least one described firmware includes multiple firmwares;
To at least one described firmware carry out detection include: according to the multiple firmware detection ordering detection it is the multiple solid
Part.
6. according to the method described in claim 2, instruction set is repaired in the execution, to repair the hardware component at least
Part includes:
Restart the network equipment, and execute the reparation instruction in the reboot process, to the determining corresponding institute of Network Abnormal
State hardware component carry out repair operation with by the network from first state reparation to the second state.
7. according to the method described in claim 1, described include: according to the multiple test point detection network equipment
The network equipment is detected according to particular order according to the multiple test point.
8. according to the method described in claim 7, it is described according to the multiple test point according to particular order to the network
Equipment carries out detection
The test point with weight is compared according to default weight rule with the off-note detected one by one, with inspection
Survey the network equipment.
9. according to the method described in claim 1, the reparation instruction of execution at least one includes:
Recovery operation is carried out at least one apparatus assembly associated with Network Abnormal, wherein the apparatus assembly includes operation
It is relevant to the network equipment for carrying out the interface data of data interaction, the recovery operation packet with application program in system
It includes and reset operation is carried out to the interface data.
10. a kind of electronic equipment, including;
Starting module starts the service of corresponding network equipment, wherein the service is if being configured to network is in first state
The application of the network equipment is detected, the service corresponding multiple test points need when the test point is the service execution
The task of detection;
Detection module is configured to detect the network equipment according to the multiple test point;
Repair module is configured to execute at least one and repairs instruction, reparations instruct be can be by the network from first state
It repairs to the instruction of the second state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910254471.8A CN109921951A (en) | 2019-03-31 | 2019-03-31 | A kind of processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910254471.8A CN109921951A (en) | 2019-03-31 | 2019-03-31 | A kind of processing method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109921951A true CN109921951A (en) | 2019-06-21 |
Family
ID=66967919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910254471.8A Pending CN109921951A (en) | 2019-03-31 | 2019-03-31 | A kind of processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109921951A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111682977A (en) * | 2020-04-30 | 2020-09-18 | 普联技术有限公司 | Method and device for processing exception of network equipment, storage medium and network equipment |
CN113825164A (en) * | 2021-10-29 | 2021-12-21 | 中国电信股份有限公司 | Network fault repairing method and device, storage medium and electronic equipment |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106169965A (en) * | 2016-09-28 | 2016-11-30 | 北京金山安全软件有限公司 | Network repairing method, device and terminal |
-
2019
- 2019-03-31 CN CN201910254471.8A patent/CN109921951A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106169965A (en) * | 2016-09-28 | 2016-11-30 | 北京金山安全软件有限公司 | Network repairing method, device and terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111682977A (en) * | 2020-04-30 | 2020-09-18 | 普联技术有限公司 | Method and device for processing exception of network equipment, storage medium and network equipment |
CN113825164A (en) * | 2021-10-29 | 2021-12-21 | 中国电信股份有限公司 | Network fault repairing method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4924514B2 (en) | Virtual machine management program, management server device, and virtual machine management method | |
JP5365051B2 (en) | Management program, management apparatus and management method | |
US20120192003A1 (en) | Computer status monitoring device, computer monitoring system and computer status monitoring method | |
CN103377094A (en) | Abnormity monitoring method and abnormity monitoring device | |
US8683438B2 (en) | System, computer program product and method for comparative debugging | |
US8055887B2 (en) | Dynamically updating barcode data | |
CN110765018B (en) | Automatic interface testing method and equipment | |
EP2641178A1 (en) | Analyzing performance of computing devices in usage scenarios | |
CN101751329B (en) | Method and system for realizing automatic testing | |
EP3076641A1 (en) | Method for detecting whether hardware of intelligent terminal is running abnormally and intelligent terminal | |
CN109921951A (en) | A kind of processing method and electronic equipment | |
CN111949551A (en) | Application program testing method, device, equipment and storage medium | |
CN107783844A (en) | A kind of computer program operation exception detection method, device and medium | |
JP2009244999A (en) | Virtual machine management program and management server device | |
CN111338698A (en) | Method and system for accurately booting server by BIOS (basic input output System) | |
TW201324141A (en) | Testing method and testing apparatus for testing function of electronic apparatus | |
US20070245341A1 (en) | System and method for performing automatic software installations and automatic software executions in a to-be-tested computer | |
JP4558376B2 (en) | controller | |
CN112965865A (en) | Personal computer restart testing method, device and system | |
CN112817421B (en) | Battery hot plug method of portable electronic equipment | |
CN113836035B (en) | Battery management system testing method and device and electronic equipment | |
JP2018136608A (en) | Firmware execution device, driver execution device, driver management device, firmware management device, computer apparatus, method and program | |
JP2018185720A (en) | Test system and test method | |
CN111090574B (en) | Regression testing method, device and storage medium | |
KR102087209B1 (en) | Color difference based method for gui test automation and apparatus using the same |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190621 |