CN103064812B - Method and device for quickly connecting mobile equipment and computer - Google Patents

Method and device for quickly connecting mobile equipment and computer Download PDF

Info

Publication number
CN103064812B
CN103064812B CN201210567127.2A CN201210567127A CN103064812B CN 103064812 B CN103064812 B CN 103064812B CN 201210567127 A CN201210567127 A CN 201210567127A CN 103064812 B CN103064812 B CN 103064812B
Authority
CN
China
Prior art keywords
mobile device
computing machine
android
information
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
CN201210567127.2A
Other languages
Chinese (zh)
Other versions
CN103064812A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Zhuhai Juntian Electronic Technology Co Ltd
Beijing Cheetah Mobile Technology Co Ltd
Beijing Cheetah Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Shell Internet Beijing Security Technology Co Ltd
Zhuhai Juntian Electronic Technology Co Ltd
Beijing Kingsoft Internet Science and 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 Beijing Kingsoft Internet Security Software Co Ltd, Shell Internet Beijing Security Technology Co Ltd, Zhuhai Juntian Electronic Technology Co Ltd, Beijing Kingsoft Internet Science and Technology Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201210567127.2A priority Critical patent/CN103064812B/en
Publication of CN103064812A publication Critical patent/CN103064812A/en
Application granted granted Critical
Publication of CN103064812B publication Critical patent/CN103064812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for quickly connecting mobile equipment and a computer, which is used for quickly establishing communication connection between the computer and the mobile equipment and comprises the following steps: after the mobile equipment is connected with the computer, reading the sub-equipment information of the mobile equipment; judging whether the mobile equipment is android mobile equipment or not according to the sub-equipment information, if so, enumerating all android equipment in the computer, and acquiring equipment IDs of all the android equipment; if not, enumerating all USB equipment and acquiring the equipment IDs of all the USB equipment; and reading the equipment ID of the mobile equipment, searching a driving program corresponding to the mobile equipment, and establishing communication connection between the mobile equipment and the computer. Through judging the ADB equipment, learn whether the mobile device is android mobile device, the device ID of rethread reading mobile device compares with the device ID of enumerated android device, has reduced the time of enumerating all USB devices one by one, has accelerated mobile device and computer connection speed, has reduced connection time.

Description

The method and apparatus that a kind of mobile device and computing machine are connected fast
Technical field
The present invention relates to mobile device to be connected with the communication of computing machine, the method and apparatus that especially a kind of mobile device is connected fast with computing machine.
Background technology
Along with the development of science and technology, computing machine can connect effectively and accurately for multiple common peripheral hardwares such as mouse, keyboard, printer, scanners.Current peripheral hardware is no longer limited to mouse, keyboard, camera, scanner, facsimile recorder etc., and Android mobile device is also more and more welcome, uses the user of Android device also to get more and more.The mode that current Android mobile device is connected with computing machine also rests on initial connected mode.When Android mobile device is connected with computing machine, all USB device enumerated by computing machine, the ID of fetch equipment, search one by one after obtaining facility information in type storehouse.Owing to enumerating all USB device, compared by the type of facility information with all USB device, then search from type storehouse, the time of much searching can be increased like this, be unfavorable for that mobile device is connected with the quick of computing machine.
Summary of the invention
Object of the present invention, overcomes the deficiencies in the prior art exactly, provides the method and apparatus that a kind of mobile device and computing machine are connected fast.The present invention and device are different from traditional computer and scan one by one all USB device, to be connected the mode of described mobile device after determining the type of mobile device and model again, have the advantages that to connect fast.
In order to achieve the above object, following technical scheme is adopted:
The method that mobile device and computing machine are connected fast, set up communication fast for computing machine and mobile device and be connected, comprise the following steps:
Step one: after mobile device is connected with computing machine, reads the subset information of mobile device;
Step 2: according to subset information, judges whether mobile device is Android mobile device, if so, enumerates all Android device in computing machine, obtains the device id of all Android device; If not, enumerate all USB device, obtain the device id of all USB device;
Step 3: the device id reading mobile device, searches the driver that mobile device is corresponding, sets up mobile device and be connected with the communication of computing machine.
Further, judge in step 2 whether the subset of mobile device is ADB equipment, if so, then mobile device is Android mobile device.
Further, step 3 comprises the following steps: the device id reading mobile device, judges the driver whether installing described mobile device in computing machine, if having, set up mobile device and be connected with the communication of computing machine; If not, then according to downloading in the device id of mobile device driver database beyond the clouds and installing corresponding driver, set up mobile device and be connected with the communication of computing machine.
Further, described download also, while installing corresponding driver, downloads the information of described mobile device, the information of described mobile device is deposited in the mobile device data storehouse in computing machine.
Further, after described step 3, further comprising the steps of: according to the device id of mobile device, in mobile device data storehouse, read the information of described mobile device.
The device that mobile device and computing machine are connected fast, sets up communication fast for computing machine and mobile device and is connected, comprise read module, after being connected, reads the subset information of mobile device for mobile device with computing machine; Judge module, for according to subset information, judges whether mobile device is Android mobile device, if so, enumerates all Android device in computing machine, obtains the device id of all Android device; If not, enumerate all USB device, obtain the device id of all USB device; Processing module, for reading the device id of mobile device, searches the driver that mobile device is corresponding, sets up mobile device and is connected with the communication of computing machine.
Further, described processing module comprises driving judge module, for judging the driver whether installing described mobile device in computing machine; Download and install module, for according to downloading in the device id of mobile device driver database beyond the clouds and installing corresponding driver.
Further, mobile device data storehouse is also comprised; The described module that downloads and installs is for downloading the driver of mobile device, and also for downloading the information of mobile device from high in the clouds, described information is stored to mobile device data storehouse.
Further, described information comprises one or more information in the model of mobile device, brand, outward appearance picture, driver download address or device id.
Further, described mobile device comprises smart mobile phone or panel computer.
Compared with prior art, beneficial effect of the present invention is:
When mobile device of the present invention and computing machine First Contact Connections, by enumerating Android device, can avoid enumerating all USB device, finding Android device fast.When second time connects, by storing mobile device information in a computer after First Contact Connections, the mobile device information of display connection fast.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of the method that mobile device of the present invention is connected fast with computing machine.
Fig. 2 is the structural representation of the device that mobile device of the present invention is connected fast with computing machine.
Diagram: 1-read module; 2-judge module; 3-processing module; 31-drive judge module;
32-download and install module; 4-driver database; 5-mobile device data storehouse.
Embodiment
Describe the present invention in detail below in conjunction with accompanying drawing and specific implementation method, be used for explaining the present invention in exemplary embodiment and description of the present invention, but not as a limitation of the invention.
Refer to Fig. 1, it is the flow chart of steps of the method that a kind of mobile device of the present invention is connected fast with computing machine.It is set up communication fast for computing machine and mobile device and is connected, and comprises the following steps:
S10: after mobile device is connected with computing machine, reads the subset information of mobile device.
Particularly, after described mobile device is connected with computing machine by USB data line, can see by the equipment manager of computing machine the subset that mobile device produces.Each mobile device can produce subset after being connected with computing machine.Such as USB flash disk is after being connected with computing machine, wherein can produce the subset of disc driver in equipment control.Android device, such as Android mobile phone or Android panel computer, after being connected with computing machine, can produce the subset of ADB equipment or the subset of Mobile portable equipment.Read the newly-increased subset detected in computing machine.
S20: according to subset information, judges whether mobile device is Android mobile device, if so, enumerates all Android device in computing machine, obtains the device id of all Android device; If not, enumerate all USB device, obtain the device id of all USB device.
Particularly, according to the subset information that step S10 reads.If subset newly-increased in step S10 is ADB equipment.Owing to all comprising ADB equipment in each Android device, can assert that this mobile device is Android mobile device thus.Now, enumerate all Android device in computing machine, obtain the device id of all Android device.The device id of Android mobile device is the information of VID and PID.VID is VendorID, PID is in fact then ProductID, represents the numbering of manufacturer and the production code member of manufacturer inside respectively.By the device id of Android mobile device with enumerate all Android device in computing machine, the driver whether having and installed this Android mobile device can be found out.If mobile device is not Android mobile device or does not open USB debugging, ADB equipment can not be produced in a computer.In like manner, obtain the device id of this mobile device, this device id can not illustrate that this mobile device is Android device, may be other USB device such as USB flash disk.Now only enumerate Android device, the device id of this equipment might not be found.Only has the device id that could may find this equipment by enumerating all USB device from the USB device computing machine.In like manner, if find device id, then this mobile device has installed driver, if cannot find device id, then this mobile device does not have install driver.
In this step, when this mobile device has installed driver, if only enumerate Android device, then there will be situation driver not detected, again again can download driving, lose time, the time that the mobile device that slows down is connected with computing machine.
S30: the device id reading mobile device, searches driver corresponding to mobile device according to the device id of mobile device, sets up mobile device and be connected with the communication of computing machine.
Particularly, in step S20, by judging whether mobile device is Android mobile device, can realize the quick connection of this step.If the device id of all Android device enumerated in a computer in step S20 comprises the device id of the mobile device that this step reads, mobile device existing driver in a computer is then described, directly start and drive, set up mobile device and be connected with the communication of computing machine.If the ID of the mobile device read in this step is different from all devices ID enumerated in a computer in step S20, then illustrates in computing machine and cannot get driving corresponding to mobile device, then need to download driver corresponding to this mobile device.As preferably, by being arranged on driver corresponding according to the device id download of mobile device in the driver database in high in the clouds, install in a computer.Download the information of described mobile device simultaneously, the information of described mobile device is deposited in the mobile device data storehouse in computing machine.After connecting, show the information of described mobile device.Described information comprises one or more information in the model of mobile device, brand, outward appearance picture, driver download address or device id.When second time connects, read this information by mobile device data storehouse, decrease the time of again downloading corresponding information from high in the clouds, accelerate connection speed.
Refer to Fig. 2, it is the device that a kind of mobile device of the present invention is connected fast with computing machine.It is set up communication fast for computing machine and mobile device and is connected.Comprise read module 1, judge module 2 and processing module 3.After described read module 1 is connected with computing machine for mobile device, read the subset information of mobile device.All one or more subset can be produced after described mobile device is connected with computing machine.Such as, after USB flash disk is connected with computing machine, corresponding subset can be produced in disc driver.After Android mobile phone is connected with computing machine, ADB equipment and portable equipment two subsets can be produced in equipment manager.Read the subset that mobile device produces.
Judge module 2, for the type according to subset, judges whether mobile device is Android mobile device.If the subset of mobile device comprises ADB equipment, then this mobile device is Android mobile device.Because each Android mobile device all can produce an ADB equipment in a computer.If the subset of mobile device does not comprise ADB equipment, then this mobile device is not Android mobile device.The subset that mobile device produces is visible in equipment manager.If the subset of mobile device comprises ADB equipment, enumerate Android device all in computing machine, obtain the device id of all Android device.If the subset of mobile device does not have ADB equipment, then this mobile device is not Android mobile device, enumerates all USB device in computing machine, obtains the device id of all USB device.
Processing module 3, for reading the device id of mobile device, contrasts with the device id in computing machine.Described processing module 3 comprises driving judge module 31 and downloads and installs module 32.If the device id of mobile device is included in the device id of computing machine, then drives judge module 31 to judge the driver being provided with this mobile device in computing machine, set up mobile device and be connected with the communication of computing machine.If the device id of mobile device is not included in the device id of computing machine, then judge module 31 is driven to judge the driver not installing this mobile device in computing machine.The described module 32 that downloads and installs for according to searching in the device id of mobile device driver database 4 beyond the clouds and downloading corresponding driver, and is installed in a computer.
By judging ADB equipment, learn whether described mobile device is Android mobile device, device id again by reading mobile device contrasts with the device id of the Android device enumerated, decrease the time of enumerating all USB device one by one, accelerate mobile device and computing machine connection speed, decrease the tie-time.
Further, mobile device data storehouse 5 is also comprised.Described information, for downloading and installing the driver of mobile device, also for downloading the information of mobile device from high in the clouds, is stored to mobile device data storehouse 5 by the described module 32 that downloads and installs.Described information comprises one or more information in the model of mobile device, brand, outward appearance picture, driver download address or device id.When mobile device is connected with computing machine second time, computing machine directly reads the information of this mobile device from mobile device data storehouse 5, and display in a computer, facilitates user to check.By arranging mobile device data storehouse 5, decrease the time of the information again downloading corresponding mobile device from high in the clouds.Accelerate mobile device be connected with computing machine after information displaying.
As preferably, described mobile device comprises smart mobile phone or panel computer.
Above the technical scheme that the embodiment of the present invention provides is described in detail, apply specific case herein to set forth the principle of the embodiment of the present invention and embodiment, the explanation of above embodiment is only applicable to the principle helping to understand the embodiment of the present invention; Meanwhile, for one of ordinary skill in the art, according to the embodiment of the present invention, embodiment and range of application all will change, and in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. the method that is connected fast of mobile device and computing machine, set up communication fast for computing machine and mobile device and be connected, it is characterized in that, comprise the following steps:
Step one: after mobile device is connected with computing machine, reads the subset information of mobile device;
Step 2: according to subset information, judges whether mobile device is Android mobile device, if so, enumerates all Android device in computing machine, obtains the device id of all Android device; If not, enumerate all USB device, obtain the device id of all USB device;
Step 3: the device id reading mobile device, searches the driver that mobile device is corresponding, sets up mobile device and be connected with the communication of computing machine.
2. the method that is connected fast of mobile device according to claim 1 and computing machine, it is characterized in that, judge in step 2 whether the subset of mobile device is ADB equipment, if so, then mobile device is Android mobile device.
3. the method that is connected fast of mobile device according to claim 1 and computing machine, it is characterized in that, step 3 comprises the following steps: the device id reading mobile device, judge the driver whether installing described mobile device in computing machine, if have, set up mobile device and be connected with the communication of computing machine; If not, then according to downloading in the device id of mobile device driver database beyond the clouds and installing corresponding driver, set up mobile device and be connected with the communication of computing machine.
4. the method that is connected fast of mobile device according to claim 3 and computing machine, it is characterized in that, described download also, while installing corresponding driver, downloads the information of described mobile device, the information of described mobile device is deposited in the mobile device data storehouse in computing machine.
5. the method that is connected fast of mobile device according to claim 4 and computing machine, is characterized in that, after described step 3, further comprising the steps of: according to the device id of mobile device, reads the information of described mobile device in mobile device data storehouse.
6. the device that is connected fast of mobile device and computing machine, sets up communication fast for computing machine and mobile device and is connected, it is characterized in that: comprise read module, after being connected, reads the subset information of mobile device for mobile device with computing machine; Judge module, for according to subset information, judges whether mobile device is Android mobile device, if so, enumerates all Android device in computing machine, obtains the device id of all Android device; If not, enumerate all USB device, obtain the device id of all USB device; Processing module, for reading the device id of mobile device, searches the driver that mobile device is corresponding, sets up mobile device and is connected with the communication of computing machine.
7. the device that is connected fast of mobile device according to claim 6 and computing machine, is characterized in that: described processing module comprises driving judge module, for judging the driver whether installing described mobile device in computing machine; Download and install module, for according to downloading in the device id of mobile device driver database beyond the clouds and installing corresponding driver.
8. the device of mobile device according to claim 7 and computing machine quick links, is characterized in that: also comprise mobile device data storehouse; The described module that downloads and installs is for downloading the driver of mobile device, and also for downloading the information of mobile device from high in the clouds, described information is stored to mobile device data storehouse.
9. the device that is connected fast with computing machine of described mobile device according to claim 8, is characterized in that: described information comprises one or more information in the model of mobile device, brand, outward appearance picture, driver download address or device id.
10. the device that the mobile device according to the arbitrary claim of claim 6-9 is connected fast with computing machine, is characterized in that: described mobile device comprises smart mobile phone or panel computer.
CN201210567127.2A 2012-12-24 2012-12-24 Method and device for quickly connecting mobile equipment and computer Active CN103064812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210567127.2A CN103064812B (en) 2012-12-24 2012-12-24 Method and device for quickly connecting mobile equipment and computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210567127.2A CN103064812B (en) 2012-12-24 2012-12-24 Method and device for quickly connecting mobile equipment and computer

Publications (2)

Publication Number Publication Date
CN103064812A CN103064812A (en) 2013-04-24
CN103064812B true CN103064812B (en) 2016-04-06

Family

ID=48107443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210567127.2A Active CN103064812B (en) 2012-12-24 2012-12-24 Method and device for quickly connecting mobile equipment and computer

Country Status (1)

Country Link
CN (1) CN103064812B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593309B (en) * 2013-10-21 2016-06-15 杭州魔品科技股份有限公司 A kind of PC of solution end occurs the method for off-line problem with Android mobile phone in being connected
CN104065747A (en) * 2014-07-08 2014-09-24 马传军 System and method for managing mobile terminal in charger on basis of could network center
CN104038564A (en) * 2014-07-08 2014-09-10 马传军 System and method for achieving mobile terminal management in router based on cloud network center
CN104834612B (en) * 2015-04-20 2018-08-17 杭州魔品科技股份有限公司 A kind of startup method of Android mobile phone USB debugging modes
CN108572929B (en) * 2017-03-07 2022-01-04 腾讯科技(深圳)有限公司 Method and device for starting debugging mode of equipment
CN108536479A (en) * 2018-04-17 2018-09-14 百度在线网络技术(北京)有限公司 Method and apparatus for restarting Android device
CN109344096A (en) * 2018-09-07 2019-02-15 彩讯科技股份有限公司 A kind of method, apparatus, equipment and storage medium connecting external equipment
CN114070721B (en) * 2021-11-16 2023-07-28 中国联合网络通信集团有限公司 Module information determining method, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023882A (en) * 2010-12-22 2011-04-20 福建天晴在线互动科技有限公司 System and method for computer to automatically identify mobile phone and install mobile phone driver
CN102591809A (en) * 2011-12-27 2012-07-18 华为终端有限公司 Method and device for implementation of cellphone USB binding
CN102662897A (en) * 2012-03-31 2012-09-12 北京壹人壹本信息科技有限公司 Mobile terminal and data interaction method between mobile terminals
CN102724356A (en) * 2012-05-25 2012-10-10 中兴通讯股份有限公司 Information synchronization method and device of access device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023882A (en) * 2010-12-22 2011-04-20 福建天晴在线互动科技有限公司 System and method for computer to automatically identify mobile phone and install mobile phone driver
CN102591809A (en) * 2011-12-27 2012-07-18 华为终端有限公司 Method and device for implementation of cellphone USB binding
CN102662897A (en) * 2012-03-31 2012-09-12 北京壹人壹本信息科技有限公司 Mobile terminal and data interaction method between mobile terminals
CN102724356A (en) * 2012-05-25 2012-10-10 中兴通讯股份有限公司 Information synchronization method and device of access device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
新手学安卓-adb是什么;百度文库;《百度文库》;20100409;全文 *

Also Published As

Publication number Publication date
CN103064812A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
CN103064812B (en) Method and device for quickly connecting mobile equipment and computer
TWI510913B (en) Testing device and testing method thereof
CN103049404B (en) Method and system for obtaining android mobile phone model
CN107704282B (en) Loading method and device applied to embedded system
CN104407874A (en) Embedded equipment compatible to a plurality of types of LCD screens
US20120178378A1 (en) Wireless test server and method for testing electronic devices
WO2018040746A1 (en) Driver installation method, device, and electronic apparatus
CN102520975B (en) Intelligent updating method of external equipment driver, device and system
CN107678949B (en) Automatic testing method for realizing different communication modes of embedded equipment
CN103902480A (en) Android phone driving method and system
CN103019797A (en) Method for upgrading firmware of advertising machine terminal through USB (Universal Serial Bus) interface
CN111782492A (en) Page first screen loading duration testing method and device, computer equipment and medium
CN109783351A (en) Interface detection method, apparatus and computer readable storage medium
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
CN103369105A (en) Mobile phone assistant software automatic starting method and mobile phone assistant software automatic starting method system
CN111638916B (en) General android mobile terminal driving system and method for data forensics
CN106933754A (en) A kind of USB drives recognition methods and device
US20170163979A1 (en) Testing device of display devices and testing method thereof
CN104951700A (en) Webpage loophole detecting method and device
CN112860325B (en) Automatic and rapid hardware drive preassembling method and system in diskless environment
CN104053030A (en) Combined television starting method and combined television
CN109189486A (en) Loading method, device, terminal and the storage medium of display screen driving
CN104459515A (en) Mainboard production testing method
CN110989883B (en) Recording method and device for data transfer mode, storage medium and terminal
CN111128139B (en) Non-invasive voice test method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: KINGSOFT CORPORATION LIMITED BEIKE INTERNET (BEIJI

Effective date: 20130503

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20130503

Address after: Jingshan Hill Road, Lane 519015 Lianshan Jida Guangdong province Zhuhai City No. 8

Applicant after: ZHUHAI JUNTIAN ELECTRONIC TECHNOLOGY Co.,Ltd.

Applicant after: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

Applicant after: SHELL INTERNET (BEIJING) SECURITY TECHNOLOGY Co.,Ltd.

Applicant after: BEIJING KINGSOFT NETWORK TECHNOLOGY Co.,Ltd.

Address before: Jingshan Hill Road, Lane 519015 Lianshan Jida Guangdong province Zhuhai City No. 8

Applicant before: Zhuhai Juntian Electronic Technology Co.,Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 519070 Guangdong city of Zhuhai Province town Harbour Road Technology Road No. 10 building six layer 601F

Co-patentee after: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

Patentee after: ZHUHAI JUNTIAN ELECTRONIC TECHNOLOGY Co.,Ltd.

Co-patentee after: Beijing Cheetah Mobile Technology Co.,Ltd.

Co-patentee after: Beijing Cheetah Network Technology Co.,Ltd.

Address before: Jingshan Hill Road, Lane 519015 Lianshan Jida Guangdong province Zhuhai City No. 8

Co-patentee before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

Patentee before: Zhuhai Juntian Electronic Technology Co.,Ltd.

Co-patentee before: SHELL INTERNET (BEIJING) SECURITY TECHNOLOGY Co.,Ltd.

Co-patentee before: BEIJING KINGSOFT NETWORK TECHNOLOGY Co.,Ltd.