CN107341026A - The control method and device of driver - Google Patents

The control method and device of driver Download PDF

Info

Publication number
CN107341026A
CN107341026A CN201610287332.1A CN201610287332A CN107341026A CN 107341026 A CN107341026 A CN 107341026A CN 201610287332 A CN201610287332 A CN 201610287332A CN 107341026 A CN107341026 A CN 107341026A
Authority
CN
China
Prior art keywords
driver
information
running state
state information
case
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.)
Granted
Application number
CN201610287332.1A
Other languages
Chinese (zh)
Other versions
CN107341026B (en
Inventor
黄家隆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610287332.1A priority Critical patent/CN107341026B/en
Priority to PCT/CN2017/079858 priority patent/WO2017190575A1/en
Publication of CN107341026A publication Critical patent/CN107341026A/en
Application granted granted Critical
Publication of CN107341026B publication Critical patent/CN107341026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

This application provides a kind of control method and device of driver, method therein includes:Obtain running state information corresponding to driver;First identification information of the running state information for the sign previous operation exception of driver is being determined, the current system information of operating system is being obtained, the current system information is reported to network side;Receive the driver control information that network side issues.The technical scheme that the application provides improves the stability of driver, and improves the stability of operating system.

Description

The control method and device of driver
Technical field
The application is related to computer technology, more particularly to a kind of control method of driver and driving journey The control device of sequence.
Background technology
It would generally be installed in the intelligent electronic devices such as computer, intelligent mobile phone and tablet personal computer multiple Application software, such as application software based on checking and killing virus, computer house keeper application software and mobile phone assistant should With software etc..The driver of application software is a kind of program of specific type, and part driver is usual Highly important role can be play in the operating system of intelligent electronic device, if any application software Driver can be from beginning to end as the basic function service of operating system operate in intelligent electricity always In sub- equipment, then if any application software highest access rights of the driver due to possessing operating system And play central role in the information safety system of intelligent electronic device.
Inventor has found during the application is realized, the stability problem meeting of the driver of application software It is caused to occur exception in the process of running, the driver of the application software of operation exception is often to behaviour The normal operation for making system has an impact, and resulting even in operating system collapse sometimes (such as causes operation system There is blue screen phenomenon etc. in system), and operating system is after system crash restarts, generally still can be after The continuous driver for starting application software, if the driver of application software still has exception, no But the problem of driver is present cannot solve, the stability of operating system can also be produced and had a strong impact on.
The content of the invention
The purpose of the application is to provide a kind of control method and device of driver.
According to the one side of the application, there is provided a kind of control method of driver, and this method master Comprise the following steps:In the case where needing to start the driver of predetermined application software, described in acquisition Running state information corresponding to driver;Determining the running state information for sign driver First identification information of previous operation exception, obtains the current system information of operating system, and to network side Report the current system information;The driver control information issued according to network side performs corresponding operating.
According to further aspect of the application, a kind of control device of driver, and the dress are additionally provided Putting mainly includes:Status information module is obtained, for needing to start the driver of predetermined application software In the case of, obtain running state information corresponding to the driver;First control module, for Determine that the running state information to characterize the first identification information of the previous operation exception of driver, obtains The current system information of extract operation system, and report the current system information to network side;Operation performs Module, the driver control information for being issued according to network side perform corresponding operating.
Compared with prior art, advantages below is embodied in each embodiment of the application:According to driver The value of running state information judge the previous operation of the driver with the presence or absence of abnormal;The application is led to Cross when judging that the previous operation of driver has abnormal, collect the current system information of operating system simultaneously Reported to network side, and in the case where being not received by the driver control information that network side issues, The start-up operation of the driver is not carried out, so that the startup of the driver is in blown state, Operating system is avoided after system crash restarts, still may proceed to start the driving that exception be present The phenomenon of program;Because network side can be according to the driving that user side is analyzed when the preceding system information reported Program with the presence or absence of problem and exist how the problem of, and network side can determine according to its analysis result What kind of driver control information is issued to user side, therefore, the application can issue according to network side Driver control information perform and operate accordingly to realize the normal startup of driver so that this Shen The driver that destabilizing factor be present please be avoid to bad shadow caused by the stability of operating system Ring;So as to which the technical scheme that the application provides improves the stability of the driver of application software, and carry The high stability of operating system.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, this Shen Other features, objects and advantages please will become more apparent upon:
Fig. 1 is the control method flow chart of the driver of the embodiment of the present application one;
Fig. 2 is the control method flow chart of the driver of the embodiment of the present application two;
Fig. 3 is the first structure schematic diagram of the control device of the driver of the embodiment of the present application three;
Fig. 4 is the structural representation of the acquisition status information module of the embodiment of the present application three;
Fig. 5 is the second structural representation of the control device of the driver of the embodiment of the present application three.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with accompanying drawing to this Shen Embodiment please is described in detail.
It should be mentioned that some exemplary embodiments before exemplary embodiment is discussed in greater detail It is described as processing or the method described as flow chart.Although the flow chart of the application retouches operations The processing of order is stated into, still, many of which operation can be by concurrently, concomitantly or simultaneously real Apply.In addition, the order of operations can be rearranged.The processing when its operations are completed can be with It is terminated, it is also possible to the additional step being not included in accompanying drawing.The processing can correspond to Method, function, code, subroutine, subprogram etc..
Server in the present embodiment includes but is not limited to single network server, multiple webserver groups Into server group either based on cloud computing (Cloud Computing) by a large amount of computers or network The cloud that server is formed, wherein, cloud computing is one kind of Distributed Calculation, by the meter of a group loose couplings One super virtual computer of calculation machine collection composition.Wherein, the server can access network and with net Other equipment in network carries out information exchange operation.Wherein, the network bag that the server is had access to Include but be not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN etc..
It should be noted that the server and network etc. are only for example, other are existing or from now on may be used Can occur server or network be such as applicable to the application, also should be included in the application protection domain with It is interior, and be incorporated herein by reference.
Describing discussed method (some of them are illustrated by flow) embodiment below can be by hard Part, software, firmware, middleware, microcode, hardware description language or its form being combined are come Implement.When with software, firmware, middleware or microcode to implement, to implement necessary task Program code or code segment can be stored in machine or computer-readable medium (such as storage medium) In.(one or more) processor can implement necessary task.
Concrete structure and function detail disclosed herein are only representational, and are to be used to describe this The purpose of the exemplary embodiment of application, still, the application can be by many alternative forms come specific real It is existing, and be not interpreted as being limited only by the embodiments set forth herein.
It should be appreciated that although term " first ", " second " etc. are may have been used herein Unit is described, but these units should not be limited by these terms.It is only using these terms In order to which a unit is made a distinction with another unit.For example, without departing substantially from exemplary embodiment Scope in the case of, first module can be referred to as second unit, and similarly second unit can be with It is referred to as first module.Term "and/or" used herein above is included listed by one of them or more Any and all combination of associated item.
It should be appreciated that when a unit is referred to as " connecting " or " coupled " to another unit When, it can be directly connected to or be coupled to another described unit, and there may also be temporary location.With This is relative, and another unit is arrived when a unit is referred to as " being directly connected to " or " direct-coupling " When, then in the absence of temporary location.It should in a comparable manner explain and be used between description unit Relation other words (for example, " between being in ... " compared to " between being directly in ... ", " with ... It is neighbouring " compared to " with ... it is directly adjacent to " etc.).
Term used herein above is exemplary without being intended to limit just for the sake of description specific embodiment Embodiment.Unless clearly referred else in context, otherwise, singulative " one used herein above It is individual ", " one " also attempt to include plural number.It is to be further understood that term " bag used herein above Include " and/or "comprising" define stated feature, integer, step, operation, unit and/or group The presence of part, and do not preclude the presence or addition of other one or more features, integer, step, behaviour Work, unit, component and/or its combination.
It should further be mentioned that in implementations of some replacements, function/action for being previously mentioned can be by Occur according to the order different from being indicated in accompanying drawing.For example, depending on involved function/action, phase It can essentially substantially simultaneously perform after the two width figures shown or can come in a reverse order sometimes Perform.
Technical term explanation:
Driver is the special defects that one kind can make predetermined module (such as application software) normal work The program of type.
First identification information is used to characterize the previous operation exception of driver.
Second identification information is used to characterize the previous normal operation of driver.
Operation exception refers to occur anomaly in the process of running, does not exit normally such as.
Network side is corresponding with user side, and network side can be specially server being located in network etc..
System information typically refers to operating system caused information in the process of running.
The technical scheme of the application is described in further detail below in conjunction with the accompanying drawings.
Embodiment one, the control method of driver.
Fig. 1 is the control method flow chart of the driver of the present embodiment.In Fig. 1, the present embodiment Method mainly includes:Step S100, step S110, step S120 and step S130.The present embodiment In driver be usually application software driver, for need with intelligent electronic device operation The startup of system and for the application software that starts, the method for the present embodiment can be run in system service (i.e. the executive agent of the method for the present embodiment can be system service), because system service is with behaviour Make the startup of system and start, therefore, the method for the present embodiment can be able to after system service startup Perform.Application software in the present embodiment can answer for the application software based on checking and killing virus, computer house keeper With software and mobile phone assistance application software etc..Intelligent electronic device in the present embodiment can be computer, Intelligent mobile phone or tablet personal computer etc., and the operating system of intelligent electronic device can be WINDOWS Operating system.
Each step included below to the method for the present embodiment illustrates respectively.
S100, obtain running state information corresponding to driver.
As an example, the present embodiment can need the feelings of startup driver (such as predetermined application software) Under condition, running state information corresponding to the driver is obtained.Predetermined application software in the present embodiment is Need to be driven the application software that program starts control, and the predetermined application software in the present embodiment is the Tripartite's application software, such as it is installed on the application software based on checking and killing virus in intelligent electronic device, computer House keeper's application software and mobile phone assistance application software etc..The quantity of predetermined application software in the present embodiment Can be one or more.The present embodiment does not limit the specific manifestation form and number of predetermined application software Amount.Below so that driver is the driver of predetermined application software as an example, to each step in the application It is described in detail.
As an example, the driver of predetermined application software in the present embodiment is to need as operation is The startup of system and in the case of the driver that starts therewith, the method for the present embodiment can be taken by system It is engaged in realize, i.e., the present embodiment is directed in advance needs to be driven the application software setting that program starts control There is system service, such as the system service can be created by CreateService interfaces.Normal conditions Under, the system service in the present embodiment can correspond to one or more driver, that is to say, that this Embodiment can be directed to the driver of application software or the driver of multiple application software is set One system service.Certainly, the present embodiment is also not excluded for the driver difference for each application software The possibility of one system service is set.
As an example, in the present embodiment in the case where needing to start the driver of predetermined application software Can be specially:In the case where system service starts therewith with the startup of operating system, i.e. this reality Example is applied after system service starts therewith with the startup of operating system, obtains and is transported corresponding to driver Row status information;In addition, the feelings in the driver for needing to start predetermined application software in the present embodiment Can also be specially that driver successful installation of to the control of driver according to network side under condition In the case of, i.e., the present embodiment successful installation of driver according to network side to the control of driver In the case of, obtain running state information corresponding to driver.
As an example, running state information corresponding to driver in the present embodiment is used to represent driving journey The previous running status of sequence, and previous running status generally can be specially previous operation exception or previous It is different that running state information corresponding to normal operation, i.e. driver can represent the previous operation of driver The normal or previous normal operation of driver;Previous operation exception therein can be specially previous abnormal Exit, and previous normal operation therein can be specially before subnormal exit.Needing to multiple drivings In the case that program carries out startup control, each driver in the present embodiment is generally corresponding with each respectively Running state information, i.e., be man-to-man corresponding relation between driver and running state information;When So, each driver in the present embodiment can also correspond to same running state information, i.e. driver It is many-to-one corresponding relation between running state information.
, such as can be with as an example, the running state information in the present embodiment can be specially a flag bit Running state information is realized using a bit, and running state information corresponding to driver can be by It is pre-set in the registration table of the operating system of intelligent electronic device, intelligence can also be arranged in advance In the disk (such as hard disk) of electronic equipment.
As an example, each run that the present embodiment can be directed to driver can configuration driver correspondence Running state information, in order to which this can be got in the start-up course next time of the driver Running state information corresponding to driver, and driver is started according to the running state information Control.One specific example, in the case where the driver of predetermined application software is activated, this reality Example is applied to be arranged to running state information corresponding to driver to characterize the of the previous operation exception of driver Corresponding flag bit (is such as arranged to 1) by one identification information;Another specific example, needing to close In the case of the driver for closing predetermined application software, the present embodiment is by running status corresponding to driver Information is arranged to characterize the second identification information of the previous normal operation of driver (such as by corresponding flag bit It is arranged to 0), and closes the driver of the predetermined application software.Run in the method for the present embodiment In the case of in system service, the above-mentioned driver for needing to close predetermined application software can be specially to be System service is closed with the closing of operating system, i.e. closing of the present embodiment in system service with operating system And during being accordingly turned off, running state information corresponding to driver is arranged to characterize driver Second identification information of previous normal operation.In addition, the method in the present embodiment is run in system service In the case of, the present embodiment can be in the case of the system service initial start-up, by predetermined application software Driver corresponding to running state information be initialized as characterize the previous normal operation of driver second Identification information, such as it is provided with system service in the application software for needing to be driven program startup control And after being mounted with driver, the system service starts first after the setup, the system service will be pre- Determine running state information corresponding to the driver of application software to be initialized as characterizing the previous operation of driver Normal second identification information.
S110, determining first mark of the running state information for the sign previous operation exception of driver Information, then obtain the current system information of operating system.
As an example, the present embodiment is judged the running state information that above-mentioned steps are got, if Judged result be the driver corresponding to running state information be characterize the previous normal operation of driver Second identification information (such as 0), then the present embodiment can directly perform start the predetermined application software drive The operation of dynamic program, and running state information corresponding to the driver is arranged to before characterizing driver The first identification information (such as 1) of secondary operation exception;And if it is judged that corresponding to the driver Running state information is characterizes the first identification information (such as 1) of the previous operation exception of driver, then originally Embodiment will not directly perform the operation for the driver for starting the predetermined application software, but obtain operation The current system information of system.
Because the present embodiment is when running state information corresponding to driver is the first identification information, it is determined that It is abnormal to go out the previous running status of driver, and the present embodiment is determining the previous operation of driver Abnormal state and before the driver control information that network side issues is not received, is not carried out starting The operation of driver, therefore, the present embodiment are substantially for the abnormal driving journey of previous running status Sequence performs the startup fusing operation of driver, to avoid generation operating system in system crash again After startup, continue to start the phenomenon for the driver that abnormal predetermined application software be present.
As an example, the current system information for the operating system that the present embodiment is got generally includes intelligent electricity The system crash information stored in the internal memory of the memory information of sub- equipment, such as intelligent electronic device;At this Hardware environment residing for the method for embodiment is the feelings of the intelligent electronic device based on WINDOWS operating systems Under condition, because WINDOWS operating systems can be when there is blue screen phenomenon in system crash, the generation of active Include the Dump files of memory information, and be locally stored, and WINDOWS operating systems provide acquisition The interface of Dump files, therefore, the present embodiment can based on WINDOWS operating systems provide interface come Obtain Dump files, and the current system information using the Dump files as operating system.The present embodiment Do not limit the specific implementation for the current system information for obtaining operating system.S120, report to network side Current system information.
As an example, the present embodiment reports its current system got to believe to the respective server of network side Breath, and the driver control information for waiting network side to issue.
As an example, the present embodiment according to the server address pre-set and can be got current System information forms driver and starts control data, and passes through the networks such as WIFI or mobile data network Connected mode sends the driver startup control data for including current system information to network side.This reality Apply example and do not limit the particular content that driver startup control data is included.In addition, the present embodiment to During network side reporting system information, driver identification information can be reported net together with system information Network side, and the driver identification information can include:Application software title and driver version letter Breath etc..
S130, receive the driver control information that network side issues.
As an example, the driver control information that the network side of the present embodiment issues is used primarily for family Side can normally start the driver of predetermined application software.The driver control information that network side issues It is that network side is formed according to the current system information of its operating system received, i.e., network side passes through The current system information that it is received is analyzed, can be to judge the predetermined application software of user side Driver whether there is problem, if it is judged that problem be present for the driver of user side, then Network side can obtain the driver of the predetermined application software (such as the latest edition after amendment problem from local This driver), and form the driving journey for including more newer driver notice and driver package Sequence control information, and to reporting the user side of current system information to issue the driver control information, and If it is judged that problem not be present for the driver of user side, then network side, which is formed, includes driving The driver control information that program normally notifies, and to reporting the user side of current system information to issue this Driver control information.
As an example, the network side of the present embodiment can utilize manual analysis or automated analysis technology etc. Mode is analyzed current system information, as network side is searched in current system information, to sentence Whether include predetermined description in disconnected current system information, if it is judged that predetermined description to be present, then Determine that the driver of the predetermined application software of user side has problem, it is necessary to issue new driver Bag, and notify user side to perform the operation for starting driver again after the driver package is installed, and such as Fruit judged result is in the absence of predetermined description, it is determined that goes out the driver of the predetermined application software of user side And there is no problem, it is not necessary to new driver package is issued to user side, only notifies user side performs to open The operation of dynamic driver.The present embodiment does not limit what network side was analyzed current system information The specific manifestation form for the driver control information that specific implementation and network side issue.
As an example, include renewal driving journey receiving the driver control information that network side issues In the case of sequence notice and driver package, the present embodiment should notify to perform according to the more newer driver Corresponding driver installation operation, set with the driver package renewal smart electronicses issued using network side Standby local original driver, and the present embodiment should also be by running state information corresponding to the driver It is arranged to characterize the second identification information of the previous normal operation of driver, in order to complete driver Installation operation and after returning to step S100, the method for the present embodiment can continue executing with driver Start-up operation, that is to say, that the present embodiment is performing driver peace according to more newer driver notice After dress operation, the needs startup met due to the successful installation of driver in above-mentioned steps S100 is predetermined This condition of the driver of application software, therefore, the method for the present embodiment return to step S100, and When sequentially performing step S100 and step S110, the operation corresponding to the driver that gets Status information is characterizes the second identification information of the previous normal operation of driver, and therefore, the present embodiment can So that the driver after successfully installing is activated.
As an example, including driver just receiving the driver control information that network side issues In the case that normal open is known, the present embodiment should normally notify to perform the startup of driver according to the driver Operation (is such as operated) by corresponding interface interchange driver, so that driver is activated, and Running state information corresponding to driver should also be arranged to characterize the previous operation of driver by the present embodiment Abnormal the first identification information (such as 1).
Embodiment two, the control method of driver.
The present embodiment is based on system service to realize the control of driver, and is pre- in driver In the case of the driver for determining application software, the method flow of the present embodiment is as shown in Figure 2.
In Fig. 2, S200, system service start, as the system service with the startup of operating system and with Startup, driver (such as application based on checking and killing virus of predetermined application software is successfully being installed for another example The driver of software), and after being successfully provided with system service for the driver, the system service Start.
S210, judge whether the system service is to start first, if system service is to start first, To step S211, if system service is not to start first, to step S220.
S211, running state information corresponding to the driver of the predetermined application software is arranged to characterize and is somebody's turn to do Second identification information of the previous normal operation of driver, to step S220.
S220, running state information corresponding to the driver of the predetermined application software is obtained, to step S230。
S230, the running state information is judged, to determine that the running state information is to characterize the driver First identification information of previous operation exception, still characterize the second mark of the previous normal operation of the driver Information is known, if the first identification information, then to step S240, if the second identification information, then arrive Step S270.
S240, the fusing Initiated Mechanism for opening the driver, i.e., do not perform the behaviour for starting the driver Make, but perform the operation for the current system information for obtaining operating system, and perform the service to network side Device reports the operation of the current system information got, then, the driver control that waiting for server issues Information processed, and when receiving the driver control information that server issues, to step S250, and In the case of being not received by the driver control information that server issues, wait state can be continuously in.
In addition, this step can also be reported to the server of network side include predetermined application software title with And the driver identification information of driver version information, be advantageous to server to driver whether Analysis of problems.
Judgement is identified in the driver control information that S250, the server to network side issue, true Make the driver control information that server issues and include more newer driver notice and driver Bao Shi, to step S260, and determining that the driver control information that server issues includes driving When program normally notifies, to step S270.
S260, the driver package issued according to server perform driver installation operation, and in the drive After dynamic program successfully installs (now driver is not activated), by operation corresponding to the driver Status information is arranged to the second identification information, then, returns to step S220.
S270, the start-up operation for performing driver, and by running state information corresponding to the driver The first identification information is arranged to, and when needing to close system service, to step S280.
S280, need close system service when, running state information corresponding to the driver is set For the second identification information.
The control device of embodiment three, driver.
Driver in the present embodiment is usually the driver of application software, for needing with intelligent electricity The startup of the operating system of sub- equipment and for the application software that starts, the device of the present embodiment can be set In system service (i.e. the device of the present embodiment shows as the form of system service), due to system service It is to start with the startup of operating system, therefore, each module in the device of the present embodiment can be System service is carried out its respective operation after starting.Application software in the present embodiment can be based on Application software, computer house keeper application software and mobile phone assistance application software of checking and killing virus etc..This implementation The intelligent electronic device that the device of example is applicable can be computer, intelligent mobile phone or tablet personal computer Deng, and the operating system of intelligent electronic device can be WINDOWS operating systems.
Fig. 3 is the control device schematic diagram of the driver of the present embodiment.In figure 3, the present embodiment Device mainly includes:Obtain status information module 300, the first control module 310, reporting module 320 with And receiving module 330.
Above-mentioned acquisition status information module 300 is mainly used in obtaining running status letter corresponding to driver Breath;And the acquisition status information module 300 can need to start driver (such as predetermined application software) In the case of, obtain running state information corresponding to the driver.The acquisition status information module 300 It can include:In first acquisition submodule 301 and the second acquisition submodule 302 (as shown in Figure 4) Any one or two;First acquisition submodule 301 therein is mainly used in system service with operation The startup of system and in the case of starting, obtain running state information corresponding to driver;Therein Two acquisition submodules 302 are mainly used in determining to need to start predetermined application when driver is successfully installed The driver of software, obtain running state information corresponding to the driver.
Above-mentioned first control module 310 is mainly used in determining to obtain what status information module 300 obtained Running state information obtains operating system to characterize the first identification information of the previous operation exception of driver Current system information
Above-mentioned reporting module 320 is mainly used in reporting the current system information to network side.
Above-mentioned receiving module 330 is mainly used in receiving the driver control information that network side issues.
In addition, the device of the present embodiment can also optionally include:Initialization module 340, second controls Module 350, the 3rd control module 360, the first operation executing module 370 and the second operation executing module In 380 any one or it is multiple (as shown in Figure 5);And initialization module 340 therein is main For in the case of system service initial start-up, will be run corresponding to the driver of predetermined application software Status information is initialized as characterizing the second identification information of the previous normal operation of driver;Therein second Control module 350 is mainly used in determining running state information for the sign previous normal operation of driver The second identification information in the case of, start the driver of predetermined application software, and running status is believed Breath is arranged to characterize the first identification information of the previous operation exception of driver;3rd control module therein 360 are mainly used in the case where closing the driver of predetermined application software, by corresponding to driver Running state information is arranged to characterize the second identification information of the previous normal operation of driver;Therein The driver control information that one operation executing module 370 is mainly used in issuing in network side includes renewal and driven In the case of dynamic program notice and driver package, driver installation behaviour is performed according to driver package Make, and running state information is arranged to characterize to the second identification information of the previous normal operation of driver; Second operation executing module 380 therein is mainly used in the driver control information bag issued in network side In the case of including the normal notice of driver, the start-up operation of driver is performed, and running status is believed Breath is arranged to characterize the first identification information of the previous operation exception of driver.
Below so that driver is the driver of predetermined application software as an example, to the device institute of the present embodiment Comprising each module illustrate respectively.
As an example, the predetermined application software in the present embodiment is to need to be driven program startup control Application software, and the predetermined application software in the present embodiment is third-party application software, is such as installed on intelligence The application software based on checking and killing virus, computer house keeper application software and mobile phone assistant in electronic equipment should With software etc..The quantity of predetermined application software in the present embodiment can be one or more.This implementation Example does not limit the specific manifestation form and quantity of predetermined application software.
As an example, the driver of predetermined application software in the present embodiment is to need as operation is The startup of system and in the case of the driver that starts therewith, the device of the present embodiment can be taken by system It is engaged in realize, i.e., the present embodiment is directed in advance needs to be driven the application software setting that program starts control There is system service, such as the system service can be created by CreateService interfaces.Normal conditions Under, the system service in the present embodiment can correspond to one or more driver, that is to say, that this Embodiment can be directed to the driver of application software or the driver of multiple application software is set One system service.Certainly, the present embodiment is also not excluded for the driver difference for each application software The possibility of one system service is set.
As an example, in the present embodiment in the case where needing to start the driver of predetermined application software It can be specially in the case where system service starts therewith with the startup of operating system, that is, obtain shape State information module 300 (such as the first acquisition submodule 301) system service with the startup of operating system and After starting therewith, running state information corresponding to driver is obtained;In addition, needed in the present embodiment Can also be specially in the case of starting the driver of predetermined application software according to network side to driving The control of program and in the case of successful installation of driver, that is, obtain status information module 300 (such as Second acquisition submodule 302) driving journey successful installation of to the control of driver according to network side In the case of sequence, running state information corresponding to driver is obtained.
As an example, obtain running status letter corresponding to the driver that status information module 300 is got The previous running status for representing driver is ceased, and previous running status generally can be specially previous Operation exception or previous normal operation, i.e. running state information corresponding to driver can represent drive The previous operation exception of dynamic program or the previous normal operation of driver;Previous operation exception therein can be with It is specially previous not exit normally, and previous normal operation therein can be specially before subnormal exit.
In the case where the device of the present embodiment needs to carry out startup control to multiple drivers, this implementation Each driver in example is generally corresponding with respective running state information, i.e. driver and operation respectively It is man-to-man corresponding relation between status information;Certainly, each driver in the present embodiment can also Corresponding same running state information, i.e., be many-to-one corresponding between driver and running state information Relation.
As an example, it can be specially one to obtain the running state information that status information module 300 is got Individual flag bit, such as running state information can be realized using a bit, and be transported corresponding to driver Row status information can be pre-arranged in the registration table of the operating system of intelligent electronic device, can also It is arranged in advance in the disk (such as hard disk) of intelligent electronic device.
As an example, the device of the present embodiment can configuration driver for each run of driver Corresponding running state information, in order to be obtained in the start-up course next time of the driver Status information module 300 can get running state information corresponding to the driver, and make this implementation The device of example can carry out corresponding start according to the running state information to driver and control.One tool The example of body, in the case where the driver of predetermined application software is activated, the device of the present embodiment is (such as Second control module 350) running state information corresponding to driver is arranged to before characterizing driver The first identification information (corresponding flag bit is such as arranged to 1) of secondary operation exception;Another is specific Example, in the case where needing to close the driver of predetermined application software, the device of the present embodiment is (such as 3rd control module 360) running state information corresponding to driver is arranged to before characterizing driver The second identification information (corresponding flag bit is such as arranged to 0) of secondary normal operation, and it is predetermined to close this The driver of application software.
In the case where the device of the present embodiment is arranged in system service, above-mentioned needs close predetermined application The driver of software can be specially that system service is closed with the closing of operating system, i.e. the present embodiment Device during system service is accordingly turned off with the closing of operating system, the 3rd control module 360 Running state information corresponding to driver is arranged to characterize to the second mark of the previous normal operation of driver Know information.In addition, in the case where the device of the present embodiment is arranged in system service, initialization module 340 can be corresponding by the driver of predetermined application software in the case of the system service initial start-up Running state information be initialized as characterize the previous normal operation of driver the second identification information, such as exist For needing the application software for being driven program startup control to be provided with system service and being mounted with to drive journey After sequence, the system service starts first after the setup, and the initialization module 340 in system service will Running state information corresponding to the driver of predetermined application software is initialized as characterizing the previous fortune of driver Normal second identification information of row.
As an example, the operation shape that the first control module 310 is got to obtaining status information module 300 State information is judged, if it is judged that running state information corresponding to being the driver is to characterize to drive The second identification information (such as 0) of the previous normal operation of dynamic program, then the second control module 350 can be straight The operation for performing the driver for starting the predetermined application software is connect, and will be run corresponding to the driver Status information is arranged to characterize the first identification information (such as 1) of the previous operation exception of driver;And such as Fruit judged result be the driver corresponding to running state information be characterize the previous operation exception of driver The first identification information (such as 1), then the device of the present embodiment will not directly perform the startup predetermined application The operation of the driver of software, but the current system of operating system is obtained by the first control module 310 Information, and report its current system got to believe from reporting module 320 to the respective server of network side Breath, and the driver control information for waiting network side to issue.
Due to when running state information corresponding to driver is the first identification information, the first control module 310 determine that the previous running status of driver is abnormal, and the device of the present embodiment is being determined to drive The previous running status of program is abnormal and does not receive the driver that network side issues in receiving module 330 Before control information, it is not carried out starting the operation of driver, therefore, the device essence of the present embodiment On be the startup fusing operation that driver is performed for the abnormal driver of previous running status, with Avoid occurring operating system after system crash restarts, continue to start in the presence of the predetermined of exception The phenomenon of the driver of application software.
As an example, the first control module 310 can be according to the server address and acquisition pre-set The current system information arrived forms driver and starts control data, and passes through WIFI by reporting module 320 Or the internetwork connection mode such as mobile data network sends the driving for including current system information to network side Program starts control data.The present embodiment does not limit the driver that the first control module 310 is formed and opened The particular content that dynamic control data is included.
As an example, the current system information for the operating system that the first control module 310 is got generally wraps Include the memory information of intelligent electronic device, as intelligent electronic device internal memory in the system crash information that stores Deng;Hardware environment residing for device in the present embodiment is the smart electronicses based on WINDOWS operating systems In the case of equipment, because WINDOWS operating systems can be main when blue screen phenomenon occurs in system crash Dynamic generation includes the Dump files of memory information, and is locally stored, and WINDOWS operating systems carry The interface of acquisition Dump files is supplied, therefore, the first control module 310 can be based on WINDOWS and operate The interface that system provides obtains Dump files, and the current system using the Dump files as operating system System information.The present embodiment does not limit the current system information of the first control module 310 acquisition operating system Specific implementation.In addition, reporting module 320 will can drive when to network side reporting system information Dynamic program identification information reports network side together with system information, and the driver identification information can be with Including:Application software title and driver version information etc..
As an example, the driver control that the network side that the receiving module 330 of the present embodiment receives issues Information processed, which is used primarily for family side, can normally start the driver of predetermined application software, and network side The driver control information issued is current system information of the network side according to its operating system received And formed, i.e. network side is by analyzing the current system information that it is received, it can be determined that goes out The driver of the predetermined application software of user side whether there is problem, if it is judged that being user side There is problem in driver, then network side can obtain the driver of the predetermined application software (such as from local The driver of latest edition after amendment problem), and formed include more newer driver notice and The driver control information of driver package, and to reporting the user side of current system information to issue the drive Dynamic program control information, and if it is judged that problem be present for the driver of user side, then net Network side, which is formed, includes the driver control information that driver normally notifies, and to reporting current system The user side of information issues the driver control information.
As an example, the network side of the present embodiment can utilize manual analysis or automated analysis technology etc. Mode is analyzed current system information, as network side is searched in current system information, to sentence Whether include predetermined description in disconnected current system information, if it is judged that predetermined description to be present, then Determine that the driver of the predetermined application software of user side has problem, it is necessary to issue new driver Bag, and notify user side to perform the operation for starting driver again after the driver package is installed, and such as Fruit judged result is in the absence of predetermined description, it is determined that goes out the driver of the predetermined application software of user side And there is no problem, it is not necessary to new driver package is issued to user side, only notifies user side performs to open The operation of dynamic driver.The present embodiment does not limit what network side was analyzed current system information The specific manifestation form for the driver control information that specific implementation and network side issue.
As an example, the receiving module 330 of the present embodiment is in the driver control for receiving network side and issuing In the case that packet processed contains more newer driver notice and driver package, the first operation performs mould Block 370 should notify to perform corresponding driver installation operation according to the more newer driver, to utilize net Driver package renewal intelligent electronic device locally original driver, and the first operation that network side issues Running state information corresponding to the driver should be also arranged to before characterizing driver by execution module 370 Second identification information of secondary normal operation, in order to complete driver installation operation after, this implementation The device of example can continue executing with the start-up operation of driver, that is to say, that the first operation executing module 370 according to more newer driver notice after driver installation operation is performed, due to driver The driver for needing to start predetermined application software for meeting and obtaining status information module 300 is installed in success This condition, therefore, the acquisition status information module 300 of the present embodiment, which continues executing with, obtains the driving journey The operation of running state information corresponding to sequence, the driving journey got due to obtaining status information module 300 Running state information corresponding to sequence is characterizes the second identification information of the previous normal operation of driver, therefore, The device (such as the second control module 350) of the present embodiment can be opened the driver after successfully installing It is dynamic.
As an example, the device of the present embodiment is in the driver control information bag for receiving network side and issuing In the case of normally being notified containing driver, the second operation executing module 380) should be according to the driving journey Sequence normally notifies the start-up operation for performing driver (such as to be grasped by corresponding interface interchange driver Make) so that driver is activated, and the second operation executing module 380 should also be corresponding by driver Running state information be arranged to characterize the previous operation exception of driver the first identification information (such as 1).
It should be noted that a part of of the application can be applied to computer program product, such as count Calculation machine programmed instruction, when it is performed by intelligent electronic device (such as computer or server), lead to Crossing the operation of the intelligent electronic device can call or provide according to the present processes and/or technical side Case.And the programmed instruction of the present processes is called, it is possibly stored in fixed or moveable record In medium, and/or it is transmitted by the data flow in broadcast or other signal bearing medias, and/or It is stored in the working storage according to the intelligent electronic device of described program instruction operation.Here, root Include a device according to one embodiment of the application, the device includes being used to store computer program instructions Memory and processor for execute program instructions, wherein, when the computer program instructions are by this Manage device perform when, trigger method of the plant running based on foregoing multiple embodiments according to the application and/ Or technical scheme.
It is obvious to a person skilled in the art that the application is not limited to above-mentioned one exemplary embodiment Details, and in the case of without departing substantially from spirit herein or essential characteristic, can have with others Body form realizes the application.Which point therefore, no matter from the point of view of, embodiments herein all should be regarded as It is exemplary, and is nonrestrictive, scope of the present application is by appended claims rather than above-mentioned Illustrate to limit, it is intended that all changes in the implication and scope of the equivalency of claim will be fallen It is included in the application.Any reference in claim should not be considered as to the involved right of limitation It is required that.Furthermore, it is to be understood that the word of " comprising " one is not excluded for other units or step, odd number is not excluded for plural number.Dress Putting the multiple units stated in claim, either device or module can also be by a unit or devices Either module is realized by software or hardware.The first, the second grade word is used for representing title, and simultaneously Any specific order is not indicated that.

Claims (22)

1. a kind of control method of driver, wherein, and the described method comprises the following steps:
Obtain running state information corresponding to driver;
Believe determining the running state information to characterize the first of the previous operation exception of driver the mark Breath, obtain the current system information of operating system;
The current system information is reported to network side, the current system information is used for network side and forms drive Dynamic program control information;
Receive the driver control information that network side issues.
2. according to the method for claim 1, wherein, shape is run corresponding to the acquisition driver The step of state information, includes:
In the case where needing to start driver, running state information corresponding to the driver is obtained.
3. according to the method for claim 2, wherein, methods described is run in system service;And It is described need start driver in the case of, obtain running state information corresponding to the driver The step of include:
In the case where the system service starts with the startup of operating system, the driver is obtained Corresponding running state information.
4. according to the method for claim 3, wherein, methods described also includes:
In the case of the system service initial start-up, running status corresponding to the driver is believed Breath is initialized as characterizing the second identification information of the previous normal operation of driver.
5. according to the method for claim 1, wherein, methods described also includes:
Believe determining the running state information to characterize the second of the previous normal operation of driver the mark In the case of breath, start the driver, and the running state information is arranged to characterize and drives journey First identification information of the previous operation exception of sequence.
6. according to the method for claim 1, wherein, methods described also includes:
In the case where closing the driver, running state information corresponding to the driver is set It is set to the second identification information for characterizing the previous normal operation of driver.
7. according to the method for claim 6, wherein, methods described is run in system service;And It is described in the case where closing the driver, running state information corresponding to the driver is set The step of being set to the second identification information for characterizing the previous normal operation of driver includes:
During the system service is closed with the closing of operating system, the driver is closed, And running state information corresponding to the driver is arranged to characterize the previous normal operation of driver Second identification information.
8. the method according to any claim in claim 1 to 7, wherein, it is described to obtain behaviour The step of current system information for making system, includes:
Dump files are obtained based on the interface that operating system provides.
9. the method according to any claim in claim 2 to 7, wherein, methods described is also Including:
Include more newer driver notice and driver in the driver control information that network side issues In the case of bag, driver installation operation is performed according to the driver package, and by the operation shape State information is arranged to characterize the second identification information of the previous normal operation of driver.
10. the method according to claim 11, wherein, it is described to need the feelings of startup driver Under condition, the step of obtaining running state information corresponding to the driver, includes:
Determine to need to start driver when the driver is successfully installed, obtain the driving journey Running state information corresponding to sequence.
11. the method according to any claim in claim 1 to 7, wherein, the side of connecing The step of method, also includes:
In the case where the driver control information that network side issues includes the normal notice of driver, hold The start-up operation of the row driver, and the running state information is arranged to before characterizing driver First identification information of secondary operation exception.
12. a kind of startup control device of the driver of application software, wherein, described device includes:
Status information module is obtained, for obtaining running state information corresponding to driver;
First control module, for characterizing the previous fortune of driver determining the running state information The first abnormal identification information of row, obtain the current system information of operating system;
Reporting module, for reporting the current system information to network side;
Receiving module, the driver control information issued for receiving network side.
13. device according to claim 12, wherein, the acquisition status information module is specifically used In, need start driver in the case of, obtain running state information corresponding to the driver.
14. device according to claim 13, wherein, described device is arranged in system service; And the acquisition status information module includes:
First acquisition submodule, for situation about starting in the system service with the startup of operating system Under, obtain running state information corresponding to the driver.
15. device according to claim 14, wherein, described device also includes:
Initialization module, in the case of the system service initial start-up, by the driver Corresponding running state information is initialized as characterizing the second identification information of the previous normal operation of driver.
16. device according to claim 12, wherein, described device also includes:
Second control module, for characterizing the previous fortune of driver determining the running state information In the case of normal second identification information of row, start the driver, and the running status is believed Breath is arranged to characterize the first identification information of the previous operation exception of driver.
17. device according to claim 12, wherein, described device also includes:
3rd control module, in the case where closing the driver, by the driver pair The running state information answered is arranged to characterize the second identification information of the previous normal operation of driver.
18. device according to claim 17, wherein, described device is arranged in system service; And the 3rd control module is specifically used for, and is closed in the system service with the closing of operating system During, the driver is closed, and running state information corresponding to the driver is arranged to Characterize the second identification information of the previous normal operation of driver.
19. the device according to any claim in claim 12 to 18, wherein, described One control module is specifically used for, and Dump files are obtained based on the interface that operating system provides.
20. the device according to any claim in claim 13 to 18, wherein, the dress Putting also includes:
First operation executing module, the driver control information for being issued in network side include renewal and driven In the case of dynamic program notice and driver package, driver peace is performed according to the driver package Dress operation, and the running state information is arranged to characterize the second of the previous normal operation of driver and marked Know information.
21. device according to claim 20, wherein, the acquisition status information module includes:
Second acquisition submodule, for determining to need to start driving when the driver is successfully installed Program, obtain running state information corresponding to the driver.
22. the device according to any claim in claim 12 to 18, wherein, the dress Putting also includes:
Second operation executing module, the driver control information for being issued in network side include driving journey Sequence normally in the case of notice, performs the start-up operation of the driver, and the running status is believed Breath is arranged to characterize the first identification information of the previous operation exception of driver.
CN201610287332.1A 2016-05-03 2016-05-03 Method and device for controlling driver Active CN107341026B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610287332.1A CN107341026B (en) 2016-05-03 2016-05-03 Method and device for controlling driver
PCT/CN2017/079858 WO2017190575A1 (en) 2016-05-03 2017-04-10 Driver control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610287332.1A CN107341026B (en) 2016-05-03 2016-05-03 Method and device for controlling driver

Publications (2)

Publication Number Publication Date
CN107341026A true CN107341026A (en) 2017-11-10
CN107341026B CN107341026B (en) 2020-08-04

Family

ID=60202732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610287332.1A Active CN107341026B (en) 2016-05-03 2016-05-03 Method and device for controlling driver

Country Status (2)

Country Link
CN (1) CN107341026B (en)
WO (1) WO2017190575A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228259A (en) * 2017-12-28 2018-06-29 珠海市君天电子科技有限公司 Installation method, server, client and the electronic equipment of hardware driving
CN108874454A (en) * 2018-06-27 2018-11-23 郑州云海信息技术有限公司 A kind of self-adaptive starting method and device of target drives program

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354677A (en) * 2008-09-11 2009-01-28 青岛海信移动通信技术股份有限公司 Method for detecting and restoring application program running state and restoring device thereof
CN102073519A (en) * 2010-12-31 2011-05-25 青岛海信宽带多媒体技术有限公司 Software updating method
CN102880488A (en) * 2012-09-12 2013-01-16 北京奇虎科技有限公司 Method, equipment and system for restoring drive program
CN103902338A (en) * 2014-03-21 2014-07-02 珠海市君天电子科技有限公司 Drive loading method, drive processing method, client side, server and system
CN104461847A (en) * 2014-12-03 2015-03-25 北京国双科技有限公司 Data processing program detection method and device
US20150205656A1 (en) * 2011-08-16 2015-07-23 Future Dial, Inc. System and method for identifying operational disruptions in mobile computing devices
CN105045617A (en) * 2015-07-03 2015-11-11 Tcl集团股份有限公司 Application recovery method and system for Android system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10187452A (en) * 1996-12-27 1998-07-21 F F C:Kk Abnormal sign detection system for program
CN105354131A (en) * 2015-12-11 2016-02-24 北京慧眼智行科技有限公司 Monitoring method for running of service program and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354677A (en) * 2008-09-11 2009-01-28 青岛海信移动通信技术股份有限公司 Method for detecting and restoring application program running state and restoring device thereof
CN102073519A (en) * 2010-12-31 2011-05-25 青岛海信宽带多媒体技术有限公司 Software updating method
US20150205656A1 (en) * 2011-08-16 2015-07-23 Future Dial, Inc. System and method for identifying operational disruptions in mobile computing devices
CN102880488A (en) * 2012-09-12 2013-01-16 北京奇虎科技有限公司 Method, equipment and system for restoring drive program
CN103902338A (en) * 2014-03-21 2014-07-02 珠海市君天电子科技有限公司 Drive loading method, drive processing method, client side, server and system
CN104461847A (en) * 2014-12-03 2015-03-25 北京国双科技有限公司 Data processing program detection method and device
CN105045617A (en) * 2015-07-03 2015-11-11 Tcl集团股份有限公司 Application recovery method and system for Android system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228259A (en) * 2017-12-28 2018-06-29 珠海市君天电子科技有限公司 Installation method, server, client and the electronic equipment of hardware driving
CN108874454A (en) * 2018-06-27 2018-11-23 郑州云海信息技术有限公司 A kind of self-adaptive starting method and device of target drives program
CN108874454B (en) * 2018-06-27 2021-12-17 郑州云海信息技术有限公司 Adaptive starting method and device of target driver

Also Published As

Publication number Publication date
WO2017190575A1 (en) 2017-11-09
CN107341026B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN102419729B (en) Parallel test execution
US8225142B2 (en) Method and system for tracepoint-based fault diagnosis and recovery
CN105446834A (en) Virtual machine snapshot generation method and apparatus
CN107368353B (en) Method and device for realizing hot addition of virtual machine memory
CN109302321A (en) Server, service demand processing system, method and monitoring system
US11709756B2 (en) Dynamic distributed tracing instrumentation in a microservice architecture
CN100501757C (en) Virtual executive system and method based on code slice
CN105843697B (en) A kind of the interruption restoration methods and system of browser control part
CN106569876A (en) Direct device visiting model-based virtual machine migrating method and apparatus
CN106776342B (en) Method and device for analyzing memory object of mobile application
CN112988185A (en) Cloud application updating method, device and system, electronic equipment and storage medium
CN107908420A (en) A kind of code process method, apparatus and system
CN107341026A (en) The control method and device of driver
CN105138366A (en) Recognition software silent installation method and device
CN106294089A (en) The method and apparatus assisting the access monitoring to monitored memory headroom
CN102129385B (en) Management method capable of dynamically expanding management function of virtual machine
CN107621945A (en) A kind of method and device for the mark for determining ios device
US10061681B2 (en) System for discovering bugs using interval algebra query language
CN104699570A (en) Intelligent network flow desktop method allowing virtual desktop and physical desktop to share mirror image
CN111752682A (en) Network port resource management method and device, electronic equipment and storage medium
CN116795520A (en) Resource scheduling method, device, electronic equipment and storage medium
CN110543365A (en) Memory optimization method and device, computer readable medium and electronic device
CN109445913A (en) Resource object leakage detection method and device
Stoddart et al. Modelling and proof analysis of interrupt driven scheduling
CN118364495B (en) Real-time access control method and computer device based on Linux application layer

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