CN104699516A - Method and device for automatically recognizing Android cellphone and installing drive in Windows system - Google Patents

Method and device for automatically recognizing Android cellphone and installing drive in Windows system Download PDF

Info

Publication number
CN104699516A
CN104699516A CN201510154349.5A CN201510154349A CN104699516A CN 104699516 A CN104699516 A CN 104699516A CN 201510154349 A CN201510154349 A CN 201510154349A CN 104699516 A CN104699516 A CN 104699516A
Authority
CN
China
Prior art keywords
guid
exe
driver library
equipment
file
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
CN201510154349.5A
Other languages
Chinese (zh)
Other versions
CN104699516B (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.)
SICHUAN SALVATIONDATA INFORMATION SAFETY TECHNOLOGY Co Ltd
Original Assignee
SICHUAN SALVATIONDATA INFORMATION SAFETY 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 SICHUAN SALVATIONDATA INFORMATION SAFETY TECHNOLOGY Co Ltd filed Critical SICHUAN SALVATIONDATA INFORMATION SAFETY TECHNOLOGY Co Ltd
Priority to CN201510154349.5A priority Critical patent/CN104699516B/en
Publication of CN104699516A publication Critical patent/CN104699516A/en
Application granted granted Critical
Publication of CN104699516B publication Critical patent/CN104699516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a device for automatically recognizing an Android cellphone and installing a drive in a Windows system, and belongs to the field of installation of drives. The method includes the following steps: S1, connecting the Android cellphone to a computer with the Windows system; S2, by the Windows system, judging whether a new device accesses to the computer or not via a device interface Device Io Control, and if yes, reading PID &VID of the new device. The method and the device have the advantages that the model of the cellphone accessing to the computer is matched rapidly and accurately by the aid of a GUID (globally unique identifier) code, so that a proper drive program is selected.

Description

Automatically identify Android mobile phone under Windows and the method and apparatus driven is installed
Technical field
The invention belongs to drive installation field, automatically identify Android mobile phone under being specifically related to a kind of Windows and the method and apparatus driven is installed.
Background technology
Current Android mobile phone brand on the market gets more and more, and the inconvenience that the installation that meanwhile mobile phone drives brings to consumer also grows with each passing day, and the defect that conventional mobile phone installs driving is as follows:
1. be difficult to mate mobile phone model accurately fast;
2. mobile phone drive installation process is complicated and need manual intervention.
Summary of the invention
The present invention is directed to the deficiencies in the prior art, automatically identify Android mobile phone under providing a kind of Windows and the method and apparatus driven be installed, to solve the problem of prior art mobile phone drive installation complexity.
In order to realize above goal of the invention, the technical scheme that the present invention takes is as follows: automatically identify Android mobile phone under a kind of Windows and install the method driven, comprising the following steps:
S1, by the computer of Android mobile phone equipment connection to band Windows operating system;
By equipment interface Device Io Control, S2, Windows operating system has judged whether that new equipment accesses, if there is new equipment to access, read the PID & VID of new equipment;
Whether S3, Windows operating system is mobile phone by inquiring about new equipment in PID & VID to international standard storehouse;
S4, Windows operating system enumerates all devices by equipment interface Setup DiEnum Device Interfaces, obtain equipment collection, equipment collection comprises PID, VID and GUID attribute one to one, obtains corresponding GUID by PID & VID in cluster tool;
S5, builds two Driver Libraries, comprises exe Driver Library and Inf Driver Library; Under exe directly drives file and configuration file together to put into catalogue at the same level by exe Driver Library; Inf Driver Library then leave in acquiescence C: in BackUpdr file.
GUID code in the GUID code that S6, exe Driver Library is obtained by S4 and configuration file contrasts, and selects corresponding driving; Inf Driver Library is then by identifying the GUID code in Driver Library in Inf file, and the GUID code obtained with S4 contrasts, thus selects corresponding driving.
As preferably, the concrete grammar that the installation exe described in S6 drives is as follows:
1. the GUID code that input is corresponding, needs to repeat to input four lines;
2. after filename=, input will perform the exe filename of installation, comprises suffix name;
3. under configuration file and exe file being put into the catalogue at the same level of file directory.
In order to realize above goal of the invention, the present invention also takes following technical scheme: automatically identify Android mobile phone under a kind of Windows and install the device driven, comprising access device information reading unit, access device type judging unit, GUID acquiring unit, Driver Library unit; Access device information reading unit is used for having judged whether that new equipment accesses, if there is new equipment to access, reads the PID & VID of new equipment; Whether access device type judging unit is used for by inquiring about new equipment in PID & VID to international standard storehouse is mobile phone; GUID acquiring unit is used for enumerating all devices, obtains equipment collection, and equipment collection comprises PID, VID and GUID attribute one to one, obtains corresponding GUID by PID & VID in cluster tool; Driver Library unit comprises exe Driver Library and Inf Driver Library; Under exe directly drives file and configuration file together to put into catalogue at the same level by exe Driver Library; Inf Driver Library then leave in acquiescence C: in BackUpdr file; Described Inf Driver Library is by identifying the GUID code in Driver Library in Inf file, and the GUID code obtained with S4 contrasts, thus selects corresponding driving; GUID code in the GUID code that described exe Driver Library is obtained by S4 and configuration file contrasts, and selects correct driving.
As preferably, judge whether that new equipment accesses by equipment interface Device Io Control.
As preferably, read the PID & VID of new equipment by equipment interface Device Io Control.
As preferably, enumerate all devices by equipment interface Setup DiEnum Device Interfaces.
Beneficial effect of the present invention is as follows:
1. use GUID code (global unique identification) to mate the mobile phone model being connected to computer fast accurately, to select suitable driver fast;
2. mounting means is divided into two kinds, and mobile phone driver can be installed on backstage automatically, compared with conventional mobile phone drive installation, has and completely automatically carries out on backstage, do not need user to carry out any operation, fast, and the advantage of exact matching.Without any interface, the process of running background only can be seen at task manager.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of embodiment.
Embodiment
For making object of the present invention, technical scheme and advantage clearly understand, to develop simultaneously embodiment referring to accompanying drawing, the present invention is described in further details.
Automatically identify Android mobile phone under Windows and the method driven be installed, comprising the following steps:
S1, by the computer of Android mobile phone equipment connection to band Windows operating system;
By equipment interface Device Io Control, S2, Windows operating system has judged whether that new equipment accesses, if there is new equipment to access, read the PID & VID of new equipment;
Device Io Control is the equipment interface class of Windows operating system, is generally used for the list of refreshing a device, obtains equipment essential information.
Whether S3 is mobile phone by inquiring about new equipment in PID & VID to international standard storehouse;
S4, Windows operating system enumerates all devices by equipment interface Setup DiEnum Device Interfaces, obtain equipment collection, equipment collection comprises PID, VID and GUID attribute one to one, obtains corresponding GUID by PID & VID in cluster tool;
Setup DiEnum Device Interfaces is the equipment interface class of Windows operating system, is generally used for apparatus for establishing information aggregate.
S5, builds two Driver Libraries, comprises exe Driver Library and Inf Driver Library; Under exe directly drives file and configuration file together to put into catalogue at the same level by exe Driver Library; Inf Driver Library then leave in acquiescence C: in BackUpdr file.
GUID code in the GUID code that S6, exe Driver Library is obtained by S4 and configuration file contrasts, and selects corresponding driving; Inf Driver Library is then by identifying the GUID code in Driver Library in Inf file, and the GUID code obtained with S4 contrasts, thus selects corresponding driving.
The concrete grammar that installation exe described in S6 drives is as follows, as shown in Figure 1:
1. the GUID code that input is corresponding, needs to repeat to input four lines;
2. after filename=, input will perform the exe filename of installation, comprises suffix name;
3. under configuration file and exe file being put into the catalogue at the same level of file directory.
The present invention also takes following technical scheme: automatically identify Android mobile phone under a kind of Windows and install the device driven, comprising access device information reading unit, access device type judging unit, GUID acquiring unit, Driver Library unit; Access device information reading unit is used for having judged whether that new equipment accesses, if there is new equipment to access, reads the PID & VID of new equipment; Whether access device type judging unit is used for by inquiring about new equipment in PID & VID to international standard storehouse is mobile phone; GUID acquiring unit is used for enumerating all devices, obtains equipment collection, and equipment collection comprises PID, VID and GUID attribute one to one, obtains corresponding GUID by PID & VID in cluster tool; Driver Library unit comprises exe Driver Library and Inf Driver Library; Under exe directly drives file and configuration file together to put into catalogue at the same level by exe Driver Library; Inf Driver Library then leave in acquiescence C: in BackUpdr file; Described Inf Driver Library is by identifying the GUID code in Driver Library in Inf file, and the GUID code obtained with S4 contrasts, thus selects corresponding driving; GUID code in the GUID code that described exe Driver Library is obtained by S4 and configuration file contrasts, and selects correct driving.
Judge whether that new equipment accesses by equipment interface Device Io Control.
The PID & VID of new equipment is read by equipment interface Device Io Control.
All devices is enumerated by equipment interface Setup DiEnum Device Interfaces.
Embodiment: drive installation method is divided into two kinds, one is exe drive installation, and one is that Inf drive installation: exe installs, and the driving file of namely traditional exe form is installed; The present invention changes traditional exe mounting means, user is not needed to carry out any manual operation, only need to add configuration file, when user is by the mobile phone of corresponding model access computer, the present invention understands exe installation procedure corresponding to Auto-matching, therefrom extract the driving file of needs, put into Windows and drive catalogue, reach the object of mourning in silence and installing.
The present invention installs the necessary configuration file of exe file driving, according to set form, inserts information, comprises GUID code and exe execute file name:
1. the GUID code that input is corresponding, needs to repeat to input four lines.
2. after filename=, input will perform the exe filename of installation, comprises suffix name.
3. under configuration file and exe file being put into the catalogue at the same level of this device file directory.
Inf installs, and namely only needs Inf installation kit to install.The present invention by identifying that the GUID code that in Inf installation kit, Inf file records identifies mobile phone model, only need Inf installation kit to be placed on C: under BackUpdr, when user is by the mobile phone of specific model access computer, can drive installation be carried out.
Those of ordinary skill in the art will appreciate that, embodiment described here is to help reader understanding's implementation method of the present invention, should be understood to that protection scope of the present invention is not limited to so special statement and embodiment.Those of ordinary skill in the art can make various other various concrete distortion and combination of not departing from essence of the present invention according to these technology enlightenment disclosed by the invention, and these distortion and combination are still in protection scope of the present invention.

Claims (6)

1. automatically identify Android mobile phone under Windows and the method driven be installed, it is characterized in that, comprise the following steps:
S1, by the computer of Android mobile phone equipment connection to band Windows operating system;
By equipment interface Device Io Control, S2, Windows operating system has judged whether that new equipment accesses, if there is new equipment to access, read the PID & VID of new equipment;
Whether S3 is mobile phone by inquiring about new equipment in PID & VID to international standard storehouse;
S4, Windows operating system enumerates all devices by equipment interface Setup DiEnum Device Interfaces, obtain equipment collection, equipment collection comprises PID, VID and GUID attribute one to one, obtains corresponding GUID by PID & VID in cluster tool;
S5, builds two Driver Libraries, comprises exe Driver Library and Inf Driver Library; Under exe directly drives file and configuration file together to put into catalogue at the same level by exe Driver Library; Inf Driver Library then leave in acquiescence C: in BackUpdr file.
GUID code in the GUID code that S6, exe Driver Library is obtained by S4 and configuration file contrasts, and selects corresponding driving; Inf Driver Library is then by identifying the GUID code in Driver Library in Inf file, and the GUID code obtained with S4 contrasts, thus selects corresponding driving.
2. automatically identify Android mobile phone under Windows according to claim 1 and install the method driven, it is characterized in that, the concrete grammar that the installation exe described in S6 drives is as follows:
A. input corresponding GUID code, need to repeat to input four lines;
B. after filename=, input will perform the exe filename of installation, comprises suffix name;
C. under configuration file and exe file being put into the catalogue at the same level of file directory.
3. automatically identify Android mobile phone under Windows according to claim 1 and the device driven is installed, it is characterized in that, comprise access device information reading unit, access device type judging unit, GUID acquiring unit, Driver Library unit; Access device information reading unit is used for having judged whether that new equipment accesses, if there is new equipment to access, reads the PID & VID of new equipment; Whether access device type judging unit is used for by inquiring about new equipment in PID & VID to international standard storehouse is mobile phone; GUID acquiring unit is used for enumerating all devices, obtains equipment collection, and equipment collection comprises PID, VID and GUID attribute one to one, obtains corresponding GUID by PID & VID in cluster tool; Driver Library unit comprises exe Driver Library and Inf Driver Library; Under exe directly drives file and configuration file together to put into catalogue at the same level by exe Driver Library; Inf Driver Library then leave in acquiescence C: in BackUpdr file; Described Inf Driver Library is by identifying the GUID code in Driver Library in Inf file, and the GUID code obtained with S4 contrasts, thus selects corresponding driving; GUID code in the GUID code that described exe Driver Library is obtained by S4 and configuration file contrasts, and selects correct driving.
4. automatically identify Android mobile phone under Windows according to claim 3 and the device driven is installed, it is characterized in that, judged whether that new equipment accesses by equipment interface Device Io Control.
5. automatically identify Android mobile phone under Windows according to claim 4 and the device driven is installed, it is characterized in that, read the PID & VID of new equipment by equipment interface Device Io Control.
6. automatically identify Android mobile phone under the Windows according to claim 4 or 5 and the device driven is installed, it is characterized in that, enumerate all devices by equipment interface Setup DiEnum Device Interfaces.
CN201510154349.5A 2015-04-02 2015-04-02 Automatic identification Android mobile phone and the method and apparatus for installing driving under Windows Active CN104699516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510154349.5A CN104699516B (en) 2015-04-02 2015-04-02 Automatic identification Android mobile phone and the method and apparatus for installing driving under Windows

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510154349.5A CN104699516B (en) 2015-04-02 2015-04-02 Automatic identification Android mobile phone and the method and apparatus for installing driving under Windows

Publications (2)

Publication Number Publication Date
CN104699516A true CN104699516A (en) 2015-06-10
CN104699516B CN104699516B (en) 2017-11-10

Family

ID=53346682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510154349.5A Active CN104699516B (en) 2015-04-02 2015-04-02 Automatic identification Android mobile phone and the method and apparatus for installing driving under Windows

Country Status (1)

Country Link
CN (1) CN104699516B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404529A (en) * 2015-10-19 2016-03-16 北京奇虎科技有限公司 Popup method, device and system of operation system popup for reinstallation
CN106354603A (en) * 2016-08-31 2017-01-25 福建联迪商用设备有限公司 Method and system for solving occupation problem of ADB port
WO2018040929A1 (en) * 2016-08-31 2018-03-08 福建联迪商用设备有限公司 Method for managing adb device, and system therefor
CN109726774A (en) * 2017-10-27 2019-05-07 神讯电脑(昆山)有限公司 UUID test macro and its test method
CN112698843A (en) * 2020-12-28 2021-04-23 浙江国利网安科技有限公司 Industrial control software installation method and device, storage medium and industrial control equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222053A (en) * 2011-06-20 2011-10-19 迈奔灵动科技(北京)有限公司 Drive identification method and system
CN103440334A (en) * 2013-09-05 2013-12-11 南京朗睿软件科技有限公司 Driver matching method and device of mobile terminal
CN103902480A (en) * 2013-05-03 2014-07-02 哈尔滨安天科技股份有限公司 Android phone driving method and system
CN104461630A (en) * 2014-12-09 2015-03-25 深圳市东信时代信息技术有限公司 PC terminal and method thereof for installing cellphone driving programs

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222053A (en) * 2011-06-20 2011-10-19 迈奔灵动科技(北京)有限公司 Drive identification method and system
CN103902480A (en) * 2013-05-03 2014-07-02 哈尔滨安天科技股份有限公司 Android phone driving method and system
CN103440334A (en) * 2013-09-05 2013-12-11 南京朗睿软件科技有限公司 Driver matching method and device of mobile terminal
CN104461630A (en) * 2014-12-09 2015-03-25 深圳市东信时代信息技术有限公司 PC terminal and method thereof for installing cellphone driving programs

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404529A (en) * 2015-10-19 2016-03-16 北京奇虎科技有限公司 Popup method, device and system of operation system popup for reinstallation
CN105404529B (en) * 2015-10-19 2019-03-19 北京奇虎科技有限公司 Method of ejecting, apparatus and system of the brush machine with operating system pop-up
CN106354603A (en) * 2016-08-31 2017-01-25 福建联迪商用设备有限公司 Method and system for solving occupation problem of ADB port
WO2018040929A1 (en) * 2016-08-31 2018-03-08 福建联迪商用设备有限公司 Method for managing adb device, and system therefor
CN106354603B (en) * 2016-08-31 2018-11-13 福建联迪商用设备有限公司 Solve the occupied method in the ports ADB and its system
CN109726774A (en) * 2017-10-27 2019-05-07 神讯电脑(昆山)有限公司 UUID test macro and its test method
CN112698843A (en) * 2020-12-28 2021-04-23 浙江国利网安科技有限公司 Industrial control software installation method and device, storage medium and industrial control equipment

Also Published As

Publication number Publication date
CN104699516B (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN104699516A (en) Method and device for automatically recognizing Android cellphone and installing drive in Windows system
CN105912340A (en) Primary device, remote control and overhead upgrading method of remote control
CN103902480A (en) Android phone driving method and system
CN102375786A (en) Automatic operating system identifying method and system for USB (Universal Serial Bus) equipment
CN105335264A (en) Computer PCIE adapter card function test method based on UEFI
CN103164237A (en) Firmware upgrade method and system
CN103064812A (en) Method and device for quick connection of mobile device and computer
CN105354071A (en) Method for realizing compatibility between embedded software and hardware
CN111638916B (en) General android mobile terminal driving system and method for data forensics
CN102609285A (en) Method for intelligent drive matched loading
CN103677812A (en) Hardware equipment state adaptive method and device
CN106775897B (en) Method and system for starting driver of set top box
CN111580837A (en) Method, device, terminal and storage medium for burning MAC address
WO2020000657A1 (en) Method and apparatus for establishing operation and maintenance monitoring connection, terminal device, and medium
CN104602124A (en) Multi-screen driving method and system of LCD TV and driving main board module
CN104156328A (en) Method for identifying type of operating system and USB device
CN104516743A (en) Upgrading method and system of embedded device firmware based on ActiveX
CN104714810A (en) Drive method and device for optical distance sensor in mobile terminal and drive generating method for optical distance sensor in mobile terminal
CN104063306A (en) Automatic login method, device and system in intelligent terminal software testing
CN106383796A (en) Method and system for identifying type of host operating system
CN105915975B (en) The asynchronous control system and method for LED screen content are updated with mobile device
CN103686013A (en) Television peripheral recognizing method, television and television system
CN104899483A (en) Boot permission verification method based on intelligent terminal and system of boot permission verification method
CN111786837A (en) System and method for wirelessly modifying configuration parameters of KNX (Konnex) equipment
CN106406856A (en) Standalone one-key automatic deployment method for Oracle

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: 641000 Sichuan province Neijiang City Songshan Road No. 183

Applicant after: SICHUAN XLY INFORMATION SAFETY TECHNOLOGY CO., LTD.

Address before: 641000 Sichuan province Neijiang City Songshan Road No. 183

Applicant before: Sichuan SalvationData Information Safety Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Liang Xiaoning

Inventor after: Gan Yuanjun

Inventor after: Huang Xu

Inventor before: Liang Xiaoning

CB03 Change of inventor or designer information