CN103885802B - Installation method, device and the client of driver - Google Patents

Installation method, device and the client of driver Download PDF

Info

Publication number
CN103885802B
CN103885802B CN201410098999.8A CN201410098999A CN103885802B CN 103885802 B CN103885802 B CN 103885802B CN 201410098999 A CN201410098999 A CN 201410098999A CN 103885802 B CN103885802 B CN 103885802B
Authority
CN
China
Prior art keywords
mobile terminal
driver
code
information
universal driver
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410098999.8A
Other languages
Chinese (zh)
Other versions
CN103885802A (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.)
Guangzhou Cheetah Network Technology Co Ltd
Original Assignee
Guangzhou Cheetah Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Cheetah Network Technology Co Ltd filed Critical Guangzhou Cheetah Network Technology Co Ltd
Priority to CN201410098999.8A priority Critical patent/CN103885802B/en
Publication of CN103885802A publication Critical patent/CN103885802A/en
Application granted granted Critical
Publication of CN103885802B publication Critical patent/CN103885802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention proposes a kind of installation method of driver, device and client, wherein, this method comprises the following steps:The attribute information of mobile terminal is obtained, wherein, attribute information includes compatible identification code and hardware identifier code;According to compatible identification code judge mobile terminal whether compatible universal driver;If it is determined that mobile terminal compatible universal driver, then obtain universal driver;And universal driver is modified according to hardware identifier code, and amended universal driver is attached to client.The method of the embodiment of the present invention, the installation less universal driver of inclusion quantity is obtained according to the attribute information of mobile terminal, the capacity of the driver installation kit of the offers such as official website is be provided, has saved the memory space of Internet resources and local disk.Especially when network condition is not very good, the time for downloading driver can be greatly reduced, lift Consumer's Experience.

Description

Installation method, device and the client of driver
Technical field
The present invention relates to communication technical field, more particularly to a kind of installation method of driver, device and client.
Background technology
As Android operation system is popularized, the activation amount that the mobile terminal of Android Android operation system is daily has reached To 1,500,000 or so.When user uses the mobile terminal of Android operation system, mobile terminal is often passed through into application program (Such as mobile phone assistant etc.)It is connected to PC(Personal Computer, personal computer), afterwards again by PC to mobile terminal It is managed.After mobile terminal connects with PC it may first have to driver corresponding to mobile terminal to be installed in PC, is being driven After dynamic program is installed successfully, mobile terminal will be used as a USB(Universal Serial Bus, USB)It is compound Equipment(USB Composite Device), and an ADB can be generated(Android Debug Bridge, Android debugging bridge) Sub- equipment.After the driver of ADB equipment is installed successfully, the connection that could establish between mobile terminal and PC, in PC Application program(Such as mobile phone assistant etc.)Could normal use.
During the present invention is realized, inventor has found that prior art at least has problems with:In driver In installation process, application program(Such as mobile phone assistant etc.)Corresponding driver is inquired according to the attribute information of mobile terminal Installation kit, then it is downloaded and installs.However, due to service provider provide driver installation kit Capacity Ratio compared with Greatly, for example, the mobile phone of Samsung series, the size and capacity for the driver installation kit that its official website provides is 23,000,000 or so;Rub Toro draws the mobile phone of series, and the driver installation inclusion quantity that its official website provides is 2.13 million or so etc., therefore, is being downloaded During driver installation kit, substantial amounts of Internet resources are not only consumed, and occupy user's valuable time, especially in net When network situation is not very good, downloading the time of driver installation kit cost can grow very much.Further, since the peace of driver Dress inclusion quantity is big, and the time of the standby communication terminal such as user installation driver installation kit also can be very long, and user is not often because have It is patient to wait the operation for cancelling and downloading and installing driver installation kit, therefore, cause Consumer's Experience excessively poor.
The content of the invention
It is contemplated that at least solves one of above-mentioned technical problem.
Therefore, first purpose of the present invention is to propose a kind of installation method of driver.This method greatly reduces The capacity of the driver installation kits of offer such as official website, has saved the memory space of Internet resources and local disk.Especially It can greatly reduce the time for downloading driver when network condition is not very good, lift Consumer's Experience.
Second object of the present invention is to propose a kind of erecting device of driver.
Third object of the present invention is to propose a kind of client.
To achieve these goals, the installation method of the driver of first aspect present invention embodiment, including following step Suddenly:The attribute information of mobile terminal is obtained, wherein, the attribute information includes compatible identification code and hardware identifier code;According to institute State compatible identification code judge the mobile terminal whether compatible universal driver;If it is determined that described in the mobile terminal compatibility Universal driver, then obtain universal driver;And the universal driver is carried out according to the hardware identifier code Modification, and the amended universal driver is attached to client.
The installation method of the driver of the embodiment of the present invention, judge that mobile terminal is according to the attribute information of mobile terminal No compatible universal driver, the less universal driver of installation inclusion quantity is obtained in compatible universal driver, and Universal driver is modified, and amended universal driver is attached to client, thus, it is possible to subtract significantly The capacity of the small driver installation kit by offers such as official websites, the storage for having saved Internet resources and local disk are empty Between.Especially when network condition is not very good, the time for downloading driver can be greatly reduced, lift Consumer's Experience.
To achieve these goals, the erecting device of the driver of second aspect of the present invention embodiment, including:First obtains Modulus block, for obtaining the attribute information of mobile terminal, wherein, the attribute information includes compatible identification code and hardware identifier Code;Judge module, for according to the compatible identification code judge the mobile terminal whether compatible universal driver;Second obtains Modulus block, for when judging the mobile terminal compatibility universal driver, then obtaining universal driver;And peace Die-filling piece, for being modified according to the hardware identifier code to the universal driver, and will be amended described general Driver is attached to client.
The erecting device of the driver of the embodiment of the present invention, judge that mobile terminal is according to the attribute information of mobile terminal No compatible universal driver, the small universal driver of the installation inclusion quantity is obtained in compatible universal driver, and it is right Universal driver is modified, and amended universal driver is attached into client, thus, it is possible to greatly reduce By the capacity of the driver installation kit of the offers such as official website, the memory space of Internet resources and local disk has been saved. Especially when network condition is not very good, the time for downloading driver can be greatly reduced, lift Consumer's Experience.
To achieve these goals, the client of third aspect present invention embodiment, including:Shell, screen, processor and Circuit board;On the housing, the circuit board is placed in the interior volume that the shell surrounds, the place for the screen placement Reason device is arranged on the circuit board;The processor is used for processing data, is specifically used for:Obtain the attribute letter of mobile terminal Breath, wherein, the attribute information includes compatible identification code and hardware identifier code;The movement is judged according to the compatible identification code Terminal whether compatible universal driver;If it is determined that the compatible universal driver of the mobile terminal, then obtain general Driver;And the universal driver is modified according to the hardware identifier code, and will be amended described logical Client is attached to driver.
The client of the embodiment of the present invention, judge whether compatible universal drives mobile terminal according to the attribute information of mobile terminal Dynamic program, the small universal driver of the installation inclusion quantity is obtained in compatible universal driver, and to universal driver Modify, and amended universal driver is attached to client, pass through official website thus, it is possible to greatly reduce Deng the capacity of the driver installation kit of offer, the memory space of Internet resources and local disk has been saved.Especially in network feelings When condition is not very good, the time for downloading driver can be greatly reduced, lift Consumer's Experience.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein,
Fig. 1 is the flow chart of the installation method of the driver of one embodiment of the invention;
Fig. 2 is the flow chart of the installation method of the driver of a specific embodiment of the invention;
Fig. 3 is the structural representation of the erecting device of the driver of one embodiment of the invention;
Fig. 4 is the structural representation of the erecting device of the driver of a specific embodiment of the invention;And
Fig. 5 is the structural representation of the erecting device of the driver of another specific embodiment of the invention;
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.On the contrary, this All changes that the embodiment of invention includes falling into the range of the spirit and intension of attached claims, modification and equivalent Thing.
In the description of the invention, it is to be understood that term " first ", " second " etc. are only used for describing purpose, without It is understood that to indicate or implying relative importance.In the description of the invention, it is necessary to which explanation, is provided unless otherwise clear and definite And restriction, term " connected ", " connection " should be interpreted broadly, for example, it may be fixedly connected or be detachably connected, Or it is integrally connected;Can be mechanical connection or electrical connection;Can be joined directly together, intermediary can also be passed through It is indirectly connected.For the ordinary skill in the art, the tool of above-mentioned term in the present invention can be understood with concrete condition Body implication.In addition, in the description of the invention, unless otherwise indicated, " multiple " are meant that two or more.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
At present, the mobile terminal with Android operation system is often passed through application program by user(Such as mobile phone assistant Deng)It is connected to PC(Personal Computer, personal computer), to realize management of the PC to mobile terminal.In mobile terminal During connecting PC, PC has to first download and install the driver corresponding to mobile terminal.However, at present, by servicing The driver installation inclusion quantity for the mobile terminal that provider provides is larger, therefore, when downloading driver installation kit, under required The load time is longer and takes a large amount of Internet resources, and especially when network condition is bad, required download time is longer, therefore, user Experience extreme difference.If can provide a kind of installation inclusion quantity small driver, Internet resources can be not only saved, improve installation Bag speed of download is fast, can also save user time, lifts Consumer's Experience.Therefore, the present invention proposes a kind of driver Installation method.A kind of installation method of driver, comprises the following steps:The attribute information of mobile terminal is obtained, wherein, attribute Information includes compatible identification code and hardware identifier code;Judge whether compatible universal drives journey to mobile terminal according to compatible identification code Sequence;If it is determined that mobile terminal compatible universal driver, then obtain universal driver;And according to hardware identifier code to logical Modified with driver, and amended universal driver is attached to client.
Fig. 1 is the flow chart of the installation method of the driver of one embodiment of the invention, and Fig. 2 is that the present invention one is specific The flow chart of the installation method of the driver of embodiment.
As illustrated in fig. 1 and 2, the installation method of driver comprises the following steps.
S11, the attribute information of mobile terminal is obtained, wherein, attribute information includes compatible identification code and hardware identifier code.
In an embodiment of the present invention, mobile terminal can be e.g. mobile phone, tablet personal computer, personal digital assistant, electronics Book etc. has the hardware device of various operating systems.
Specifically, compatible identification code, i.e. compatible ID(Identity, identity number), can determine whether according to it mobile whole The type that end equipment belongs to.Hardware identifier code, i.e. hardware ID, it is unique identification code of the hardware device provided by manufacturer, A numbering of hardware device namely in mobile terminal.For example, hardware ID:VEN_1106&DEV_3038, wherein, VEN is represented The manufacturer of hardware device, DEV represent the numbering of hardware device.For another example the hardware ID of USB hardware equipment:VID_045E& PID_0039, VID table show the manufacturer of hardware device, and PID represents the numbering of hardware device.By detecting current mobile terminal Attribute information, and obtain compatible identification code and the hardware identifier code that the mobile terminal attribute information includes.For example, application program (Such as mobile phone assistant)Compatible identification code and the hardware identifier code of equipment can be read from the descriptor of hardware device.
S12, according to compatible identification code judge mobile terminal whether compatible universal driver.
Wherein, universal driver for example can be the universal driver of the mobile terminal based on Android operation system, The installation inclusion quantity of the universal driver is smaller, and the mobile terminal of different model can install the universal driver, and Its filial generation equipment is generated after the universal driver is installed, thus, client can be made for example, by application programs such as mobile phone assistants Realize and connected with the mobile terminal after installation universal driver.
In one embodiment of the invention, step S12 specifically includes following steps.
S121, client extract multiple classification informations of mobile terminal from compatible identification code, and obtain multiple classes respectively Classification code corresponding to other information.
In one embodiment of the invention, multiple classification informations include base class Base Class information, subclass Sub Class information and agreement Protocol information.Specifically, each classification information corresponds to a classification code respectively, that is to say, that class Other code is the value of classification information.By Base Class information, Sub Class information and Protocol information and it is right respectively The classification code answered, it may be determined that the type of mobile terminal.For example, as shown in table 1, classification code corresponding to Base Class information is Classification code corresponding to 06h, Sub Class information is that classification code is 01h corresponding to 01h and Protocol information, thus, it is possible to really The type for determining mobile terminal is static images device type(Still Imaging device).
Base Class Sub Class Protocol Type
06h 01h 01h Static images equipment
Table 1
Specifically, classification code is stored in the compatible identification code of mobile terminal, therefore, can be from the compatibility mark of mobile terminal Base Class information, Sub Class information and Protocol information are extracted in code, and each classification information institute can be obtained respectively Corresponding classification code.More specifically, for example, the mobile terminal can be extracted by the explorer of the mobile terminal more Individual classification information.
S122, judges whether classification code corresponding to multiple classification informations matches with pre-set categories code, and if default Classification code matches, then mobile terminal compatible universal driver.
In one embodiment of the invention, pre-set categories code can be " 00h ", that is to say, that when Base Class information When classification code corresponding to classification code corresponding to corresponding classification code, Sub Class information and Protocol information is 00h, Then judge the type of mobile terminal for USB composite device types.If the type of mobile terminal is USB equipment complexes, it is determined that Mobile terminal compatible universal driver.
S13, if it is determined that mobile terminal compatible universal driver, then obtain universal driver.
For example, universal driver that the application program such as mobile phone assistant can provide from server download service provider.
S14, universal driver is modified according to hardware identifier code, and amended universal driver is installed To client.
In an embodiment of the invention, step S14 specifically includes following steps.
S141, obtain the facility information file INF of universal driver(Device INFormation File).Wherein, Facility information file INF includes the letters such as driver version information, the facility information supported and suitable mobile-terminal platform Breath.
S142, hardware identifier code is added in facility information file INF, so as to can pass through during installation universal driver Hardware identifier code finds mobile terminal.For example, in facility information file INF INF model parts(INF Models Section)In, the hardware identifier code of mobile terminal is added, thus, amended universal driver is installed in the client When, corresponding mobile terminal can be matched according to hardware identifier code.After universal driver installation, one is generated ADB equipment, the connection of client and mobile terminal can be established.
The installation method of the driver of the embodiment of the present invention, judge that mobile terminal is according to the attribute information of mobile terminal No compatible universal driver, the small universal driver of the installation inclusion quantity is obtained in compatible universal driver, and it is right Universal driver is modified, and amended universal driver is attached into client, thus, it is possible to greatly reduce By the capacity of the driver installation kit of the offers such as official website, the memory space of Internet resources and local disk has been saved. Especially when network condition is not very good, the time for downloading driver can be greatly reduced, lift Consumer's Experience.
In order to realize above-described embodiment, the present invention also proposes a kind of erecting device of driver.
A kind of erecting device of driver, including:First acquisition module, for obtaining the attribute information of mobile terminal, Wherein, attribute information includes compatible identification code and hardware identifier code;Judge module, it is mobile whole for being judged according to compatible identification code End whether compatible universal driver;Second acquisition module, for when judging mobile terminal compatible universal driver, then obtaining Take universal driver;And installation module, for being modified according to hardware identifier code to universal driver, and will modification Universal driver afterwards is attached to client.
Fig. 3 is the structural representation of the erecting device of the driver of one embodiment of the invention.
As shown in figure 3, the erecting device of driver includes:First acquisition module 100, judge module 200, second obtain Module 300 and installation module 400.
Specifically, the first acquisition module 100 is used for the attribute information for obtaining mobile terminal, wherein, attribute information includes simultaneous Hold identification code and hardware identifier code.Wherein, mobile terminal can be e.g. mobile phone, tablet personal computer, personal digital assistant, e-book Deng the hardware device with various operating systems.More specifically, compatible identification code, i.e. compatible ID(Identity, identity number Code), type that mobile terminal device belongs to can determine whether according to it.Hardware identifier code, i.e. hardware ID, it is by the hard of manufacturer's offer Unique identification code of part equipment, that is, one of hardware device numbering in mobile terminal.For example, hardware ID:VEN_1106& DEV_3038, wherein, VEN represents the manufacturer of hardware device, and DEV represents the numbering of hardware device.For another example USB hardware is set Standby hardware ID:VID_045E&PID_0039, VID table show the manufacturer of hardware device, and PID represents the numbering of hardware device.The One acquisition module 100 detects the attribute information of current mobile terminal, and obtains the compatibility that the mobile terminal attribute information includes Identification code and hardware identifier code.For example, the first acquisition module 100 can read the compatible mark of equipment from the descriptor of hardware device Know code and hardware identifier code.
Judge module 200 be used for according to compatible identification code judge mobile terminal whether compatible universal driver.Wherein, lead to For example can be the universal driver of the mobile terminal based on Android operation system with driver, the universal driver Installation inclusion quantity is smaller, and the mobile terminal of different model can install the universal driver, and install the general driving journey Its filial generation equipment is generated after sequence, thus, client can be made to realize and install general drive for example, by application programs such as mobile phone assistants Mobile terminal connection after dynamic program.
Second acquisition module 300 is used for when judging mobile terminal compatible universal driver, then obtains general driving journey Sequence.For example, universal driver that the second acquisition module 300 can provide from server download service provider.
Installation module 400 is used to modify to universal driver according to hardware identifier code, and will be amended general Driver is attached to client.
The erecting device of the driver of the embodiment of the present invention, judge that mobile terminal is according to the attribute information of mobile terminal No compatible universal driver, the small universal driver of the installation inclusion quantity is obtained in compatible universal driver, and it is right Universal driver is modified, and amended universal driver is attached into client, thus, it is possible to greatly reduce By the capacity of the driver installation kit of the offers such as official website, the memory space of Internet resources and local disk has been saved. Especially when network condition is not very good, the time for downloading driver can be greatly reduced, lift Consumer's Experience.
Fig. 4 is the structural representation of the erecting device of the driver of a specific embodiment of the invention.
As shown in figure 4, the erecting device of driver includes:First acquisition module 100, judge module 200, second obtain Module 300 and installation module 400.Wherein, judge module 200 includes:Extraction unit 210, judging unit 220 and determining unit 230。
Specifically, extraction unit 210 is used for multiple classification informations that mobile terminal is extracted from compatible identification code, and respectively Obtain classification code corresponding to multiple classification informations.Wherein, multiple classification informations include base class Base Class information, subclass Sub Class information and agreement Protocol information.Each classification information corresponds to a classification code respectively, that is to say, that classification code is class The value of other information.Pass through classification corresponding to Base Class information, Sub Class information and Protocol information and its difference Code, it may be determined that the type of mobile terminal.For example, as shown in table 1, classification code corresponding to Base Class information is 06h, Sub Classification code corresponding to Class information is that classification code is 01h corresponding to 01h and Protocol information, thus, it is possible to determine mobile whole The type at end is static images device type(Still Imaging device).
Base Class Sub Class Protocol Type
06h 01h 01h Static images equipment
Table 1
More specifically, classification code is stored in the compatible identification code of mobile terminal, therefore, extraction unit 210 can be from movement Base Class information, Sub Class information and Protocol information are extracted in the compatible identification code of terminal, and can be obtained respectively Classification code corresponding to each classification information.Wherein, extraction unit 420 can also be carried by the explorer of the mobile terminal Take multiple classification informations of the mobile terminal.
Judging unit 220 is used to judge whether classification code corresponding to multiple classification informations matches with pre-set categories code.Its In, pre-set categories code can be " 00h ", that is to say, that judging unit 220 judges classification code, Sub corresponding to Base Class information Whether classification code is 00h corresponding to classification code corresponding to Class information and Protocol information.
Determining unit 230 be used for classification code corresponding to multiple classification informations and pre-set categories code matching when, judge to move Dynamic terminal compatible universal driver.More specifically, in classification code, Sub Class information pair corresponding to Base Class information When classification code corresponding to the classification code and Protocol information answered is preset kind code " 00h ", determining unit 230 determines to move The type of dynamic terminal is USB composite device types.If the type of mobile terminal is USB equipment complexes, it is determined that mobile terminal Compatible universal driver.
The erecting device of the driver of the embodiment of the present invention, by extracting multiple classification informations of mobile terminal, and divide Whether and pre-set categories classification code corresponding to multiple classification informations is not obtained, and judge classification code corresponding to multiple classification informations Code whether match, it can be determined that mobile terminal whether compatible universal driver.
Fig. 5 is the structural representation of the erecting device of the driver of another specific embodiment of the invention.
As shown in figure 5, the erecting device of driver includes:First acquisition module 100, judge module 200, second obtain Module 300 and installation module 400.Wherein, judge module 200 includes:Extraction unit 210, judging unit 220 and determining unit 230, installation module 400 includes:Acquiring unit 410 and adding device 420.
Specifically, acquiring unit 410 is used for the facility information file INF for obtaining universal driver.Wherein, facility information File INF includes the information such as driver version information, the facility information supported and suitable mobile-terminal platform.
Adding device 420 is used to hardware identifier code being added in facility information file INF, so that installation general driving journey Mobile terminal can be found by hardware identifier code during sequence.For example, INF model of the adding device 420 in facility information file INF Part(INF Models Section)In, the hardware identifier code of mobile terminal is added, thus, is installed in the client after changing Universal driver when, corresponding mobile terminal can be matched according to hardware identifier code.Installed in universal driver Cheng Hou, an ADB equipment is generated, the connection of client and mobile terminal can be established.
The erecting device of the driver of the embodiment of the present invention, by the facility information file for obtaining universal driver INF, and hardware identifier code is added in facility information file INF so that when installing universal driver, hardware can be passed through Identification code finds mobile terminal.
In order to realize above-described embodiment, the present invention also proposes a kind of client.
A kind of client, including:Shell, screen, processor and circuit board;Screen is placed on shell, circuit board placement In the interior volume that shell surrounds, processor is set on circuit boards;Processor is used for processing data, following specifically for performing Step:
S11 ', the attribute information of mobile terminal is obtained, wherein, attribute information includes compatible identification code and hardware identifier code.
In an embodiment of the present invention, mobile terminal can be e.g. mobile phone, tablet personal computer, personal digital assistant, electronics Book etc. has the hardware device of various operating systems.
Specifically, compatible identification code, i.e. compatible ID(Identity, identity number), can determine whether according to it mobile whole The type that end equipment belongs to.Hardware identifier code, i.e. hardware ID, it is unique identification code of the hardware device provided by manufacturer. A numbering of hardware device namely in mobile terminal.For example, hardware ID:VEN_1106&DEV_3038, wherein, VEN is represented The manufacturer of hardware device, DEV represent the numbering of hardware device.For another example the hardware ID of USB hardware equipment:VID_045E& PID_0039, VID table show the manufacturer of hardware device, and PID represents the numbering of hardware device.Set by detecting current mobile terminal Standby attribute information, and obtain compatible identification code and the hardware identifier code that the mobile terminal attribute information includes.For example, using Program(Such as mobile phone assistant)The hardware compatibility identification code and hardware identifier code that can be read from the descriptor of hardware device.
S12 ', according to compatible identification code judge mobile terminal whether compatible universal driver.
Wherein, universal driver for example can be the universal driver of the mobile terminal based on Android operation system, The installation inclusion quantity of the universal driver is smaller, and the mobile terminal of different model can install the universal driver, and Its filial generation equipment is generated after the universal driver is installed, thus, client can be made for example, by application programs such as mobile phone assistants Realize and connected with the mobile terminal after installation universal driver.
In one embodiment of the invention, step S12 ' specifically includes following steps.
S121 ', extracts multiple classification informations of mobile terminal from compatible identification code, and obtains multiple classification informations respectively Corresponding classification code.
In one embodiment of the invention, multiple classification informations include base class Base Class information, subclass Sub Class information and agreement Protocol information.Specifically, each classification information corresponds to a classification code respectively, that is to say, that class Other code is the value of classification information.By Base Class information, Sub Class information and Protocol information and it is right respectively The classification code answered, it may be determined that the type of mobile terminal.For example, as shown in table 1, classification code corresponding to Base Class information is Classification code corresponding to 06h, Sub Class information is that classification code is 01h corresponding to 01h and Protocol information, thus, it is possible to really The type for determining mobile terminal is static images device type(Still Imaging device).
Base Class Sub Class Protocol Type
06h 01h 01h Static images equipment
Table 1
Specifically, classification code is stored in the compatible identification code of mobile terminal, and therefore, processor can be from the simultaneous of mobile terminal Hold and Base Class information, Sub Class information and Protocol information are extracted in identification code, and each classification can be obtained respectively Classification code corresponding to information.More specifically, for example, processor can be by described in the explorer extraction of the mobile terminal Multiple classification informations of mobile terminal.
S122 ', judges whether classification code corresponding to multiple classification informations matches with pre-set categories code, and if default Classification code matches, then mobile terminal compatible universal driver.
In one embodiment of the invention, pre-set categories code can be " 00h ", that is to say, that when Base Class information When classification code corresponding to classification code corresponding to corresponding classification code, Sub Class information and Protocol information is 00h, Then judge the type of mobile terminal for USB composite device types.If the type of mobile terminal is USB equipment complexes, it is determined that Mobile terminal compatible universal driver.
S13 ', if it is determined that mobile terminal compatible universal driver, then obtain universal driver.
For example, universal driver that the application program such as mobile phone assistant can provide from server download service provider.
S14 ', universal driver is modified according to hardware identifier code, and amended universal driver is pacified It is filled to client.
In an embodiment of the invention, step S14 ' specifically includes following steps.
S141 ', obtain the facility information file INF of universal driver(Device INFormation File).Its In, facility information file INF includes driver version information, the facility information supported and suitable mobile-terminal platform etc. Information.
S142 ', hardware identifier code is added in facility information file INF, so as to can lead to during installation universal driver Cross hardware identification code and find mobile terminal.For example, in facility information file INF INF model parts(INF ModelsSection)In, the hardware identifier code of mobile terminal is added, thus, amended general driving is installed in the client During program, corresponding mobile terminal can be matched according to hardware identifier code.After universal driver installation, generation one Individual ADB equipment, the connection of client and mobile terminal can be established.
The client of the driver of the embodiment of the present invention, whether mobile terminal is judged according to the attribute information of mobile terminal Compatible universal driver, the less universal driver of installation inclusion quantity is obtained in compatible universal driver, and it is right Universal driver is modified, and amended universal driver is attached into client, thus, it is possible to greatly reduce By the capacity of the driver installation kit of the offers such as official website, the memory space of Internet resources and local disk has been saved. Especially when network condition is not very good, the time for downloading driver can be greatly reduced, lift Consumer's Experience.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array(PGA), scene Programmable gate array(FPGA)Deng.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any One or more embodiments or example in combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not In the case of departing from the principle and objective of the present invention a variety of change, modification, replacement and modification can be carried out to these embodiments, this The scope of invention is limited by claim and its equivalent.

Claims (6)

1. a kind of installation method of driver, it is characterised in that comprise the following steps:
The attribute information of mobile terminal is obtained, wherein, the attribute information includes compatible identification code and hardware identifier code;
According to the compatible identification code judge the mobile terminal whether compatible universal driver, specifically include:From described simultaneous Hold in identification code and extract multiple classification informations of the mobile terminal, and obtain classification corresponding to the multiple classification information respectively Code;Judge whether classification code corresponding to the multiple classification information matches with pre-set categories code;It is and and if described pre- If classification code matches, then the compatible universal driver of the mobile terminal, wherein, the multiple classification information includes base class Base Class information, subclass Sub Class information and agreement Protocol information, pass through Base Class information, Sub Class information and Protocol information respectively corresponding to classification code and pre-set categories code, judge the mobile terminal whether be USB composite device types, if the type of the mobile terminal is USB composite device types, it is determined that the mobile terminal is simultaneous Hold universal driver;
If it is determined that the compatible universal driver of the mobile terminal, then obtain universal driver;And
The universal driver is modified according to the hardware identifier code, and by the amended universal driver Client is attached to, after driver installation, generates an ADB equipment, to establish client and mobile terminal Connection.
2. according to the method for claim 1, it is characterised in that described that the mobile terminal is extracted from compatible identification code Multiple classification informations specifically include:
Multiple classification informations of the mobile terminal are extracted by the explorer of the mobile terminal.
3. according to the method for claim 1, it is characterised in that it is described according to hardware identifier code to the universal driver Modify and specifically include:
The facility information file INF of the universal driver is obtained, and the hardware identifier code is believed added to the equipment Cease in file INF, so as to which when installing the universal driver mobile terminal can be found by the hardware identifier code.
A kind of 4. erecting device of driver, it is characterised in that including:
First acquisition module, for obtaining the attribute information of mobile terminal, wherein, the attribute information include compatible identification code and Hardware identifier code;
Judge module, for according to the compatible identification code judge the mobile terminal whether compatible universal driver, it is described Judge module includes:Extraction unit, for extracting multiple classification informations of the mobile terminal from the compatible identification code, and Classification code corresponding to the multiple classification information is obtained respectively;Judging unit, for judging corresponding to the multiple classification information Whether classification code matches with pre-set categories code;And determining unit, in classification code corresponding to the multiple classification information When and the pre-set categories code matches, the compatible universal driver of the mobile terminal is judged, wherein, the multiple class Other information includes base class Base Class information, subclass Sub Class information and agreement Protocol information, passes through Base Class information, Sub Class information and Protocol information respectively corresponding to classification code and pre-set categories code, described in judgement Whether mobile terminal is USB composite device types, if the type of the mobile terminal is USB composite device types, it is determined that The mobile terminal compatible universal driver;
Second acquisition module, for when judging the mobile terminal compatibility universal driver, then obtaining general driving Program;And
Module is installed, for being modified according to the hardware identifier code to the universal driver, and by amended institute State universal driver and be attached to client, after driver installation, an ADB equipment is generated, to establish client End and the connection of mobile terminal.
5. device according to claim 4, it is characterised in that the extraction unit is additionally operable to, from described mobile terminal Explorer in obtain multiple classification informations of the mobile terminal.
6. device according to claim 4, it is characterised in that the installation module includes:
Acquiring unit, for obtaining the facility information file INF of the universal driver;And
Adding device, for the hardware identifier code to be added in the facility information file INF, so that installation is described general The mobile terminal can be found by the hardware identifier code during driver.
CN201410098999.8A 2014-03-17 2014-03-17 Installation method, device and the client of driver Active CN103885802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410098999.8A CN103885802B (en) 2014-03-17 2014-03-17 Installation method, device and the client of driver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410098999.8A CN103885802B (en) 2014-03-17 2014-03-17 Installation method, device and the client of driver

Publications (2)

Publication Number Publication Date
CN103885802A CN103885802A (en) 2014-06-25
CN103885802B true CN103885802B (en) 2018-03-06

Family

ID=50954712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410098999.8A Active CN103885802B (en) 2014-03-17 2014-03-17 Installation method, device and the client of driver

Country Status (1)

Country Link
CN (1) CN103885802B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778135B (en) * 2015-04-15 2018-04-27 上海与德通讯技术有限公司 A kind of device compatibility method and system
CN105094934A (en) * 2015-09-22 2015-11-25 北京金山安全软件有限公司 Drive installation method and device, terminal and cloud server
CN105843652A (en) * 2016-04-07 2016-08-10 乐视控股(北京)有限公司 System installation method and device of mobile terminal
CN106354603B (en) * 2016-08-31 2018-11-13 福建联迪商用设备有限公司 Solve the occupied method in the ports ADB and its system
CN106502686B (en) * 2016-10-31 2019-12-10 青岛海信移动通信技术股份有限公司 specification adaptation method and device
CN109144586A (en) * 2018-08-03 2019-01-04 彩讯科技股份有限公司 A kind of driving adaptation method, device, computer equipment and storage medium
CN113254035A (en) * 2021-06-29 2021-08-13 武汉深之度科技有限公司 Driver installation method, computing device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999056207A1 (en) * 1998-04-30 1999-11-04 Intervu, Inc. System and method for automated identification, retrieval and installation of software components
CN1577252A (en) * 2003-07-29 2005-02-09 刘丁阳 Method and equipment for automatic assembling equipment and driving program
CN101520757A (en) * 2009-04-07 2009-09-02 深圳华为通信技术有限公司 Equipment driving method, equipment driving device and communication system
CN102023882A (en) * 2010-12-22 2011-04-20 福建天晴在线互动科技有限公司 System and method for computer to automatically identify mobile phone and install mobile phone driver

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999056207A1 (en) * 1998-04-30 1999-11-04 Intervu, Inc. System and method for automated identification, retrieval and installation of software components
CN1577252A (en) * 2003-07-29 2005-02-09 刘丁阳 Method and equipment for automatic assembling equipment and driving program
CN101520757A (en) * 2009-04-07 2009-09-02 深圳华为通信技术有限公司 Equipment driving method, equipment driving device and communication system
CN102023882A (en) * 2010-12-22 2011-04-20 福建天晴在线互动科技有限公司 System and method for computer to automatically identify mobile phone and install mobile phone driver

Also Published As

Publication number Publication date
CN103885802A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN103885802B (en) Installation method, device and the client of driver
CN104008060B (en) Method for detecting compatibility of plug-in and host, and detection server
CN103810008B (en) Plug-in loading method and system
CN109446072A (en) The generation method and device of test script
CN101393524A (en) Firmware update method and system using the same
CN106293734A (en) The method and device of detection android terminal information
US8949821B2 (en) Cap file for the personalization of a java application
CN104866293B (en) A kind of method and device to Android application extensions for Microsoft Internet Explorer & Microsoft Office
CN107153535B (en) Method and device for operating elastic search
CN103838610B (en) A kind of method for product software automatic identification motherboard configuration information
CN111930395B (en) Program downloading method of intelligent terminal and intelligent terminal
CN106708704A (en) Method and device for classifying crash logs
CN103164245B (en) The method of application display language-specific and terminal
CN103647775A (en) Method and apparatus for registration in webpage
CN109002305A (en) A kind of update method and its system of device program
CN110399151A (en) A kind of firmware update, device, equipment and medium
CN105988943B (en) A kind of method and device driving wireless adapter
CN107590064A (en) A kind of application upgrade method of testing, device and system
JP2007094506A (en) System, method and program for verifying circuit
CN107291637A (en) The method and apparatus of compatible polytypic mobile communication module in Android system
CN104239112B (en) A kind of installation method of device drive program and device
CN109299960B (en) Method and device for monitoring advertisement, computer readable storage medium and terminal equipment
CN107172610B (en) GSM network self-adaption method and device and electronic equipment
CN106919407A (en) The method of the embedded product information synchronized update of computer
CN105162799A (en) Method for checking whether client is legal mobile terminal or not and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510623 Guangdong, Tianhe District, Huaxia Road, No. 26 agile Music Center, floor 07,, 08A unit fifteenth

Applicant after: Guangzhou cheetah Network Technology Co., Ltd.

Address before: 510623 unit 01-B, Guangzhou bank building, No. 30 Zhujiang Road, Guangzhou, Guangdong, Tianhe District, China

Applicant before: Kingsoft, Guangzhou network technology Co., Ltd

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant