CN103927256A - Method for controlling multiple Android devices - Google Patents

Method for controlling multiple Android devices Download PDF

Info

Publication number
CN103927256A
CN103927256A CN201310016754.1A CN201310016754A CN103927256A CN 103927256 A CN103927256 A CN 103927256A CN 201310016754 A CN201310016754 A CN 201310016754A CN 103927256 A CN103927256 A CN 103927256A
Authority
CN
China
Prior art keywords
android
simulator
equipment
computing machine
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310016754.1A
Other languages
Chinese (zh)
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
Shell Internet Beijing Security Technology Co Ltd
Zhuhai Juntian Electronic Technology Co Ltd
Beijing Kingsoft Internet Science and 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 CN201310016754.1A priority Critical patent/CN103927256A/en
Publication of CN103927256A publication Critical patent/CN103927256A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for controlling a plurality of android devices, which comprises the following steps: searching an android device by an android debugging bridge; step two: and setting the communication ports of the android debugging bridge and the android device, and establishing communication connection between the android debugging bridge and the android device, wherein the number of the android devices is more than one. Through setting for the communication port of each android device, establish the communication connection of android debugging bridge and android device, control a plurality of android devices and can not produce the command conflict in a computer, saved the time and fully utilized the ability of the high-speed operation of computer, improved efficiency of software testing.

Description

A kind of method of controlling a plurality of Android devices
Technical field
The present invention relates to communication technical field, especially a kind of method of controlling a plurality of Android devices.
Background technology
The English full name of " ADB " is " Android Debug Bridge ", Android debugging bridge.By ADB, can in Eclipse, by DDMS, debug Android program, actual is exactly program debugging instrument.Eclipse is an open source code, based on Java can regarded as output controlling platform.The working method of ADB is more special, and mode that adopt to monitor the PORT COM such as Socket TCP5554 allows IDE and Qemu communication, and under default situations, ADB can the relevant network port of daemon, so ADB process will be moved automatically when moving Eclipse.Daemon program, is called again finger daemon, conventionally at system backstage long-play, cannot be mutual with foreground owing to there is no control terminal, and Daemon program is generally used as system service.
ADB is an inner instrument of Android SDK (Software Development Kit) (Android SDK), can direct control management Android simulator or real Android equipment with this instrument.SDK(Software Development Kit, i.e. SDK (Software Development Kit)).
By ADB instrument, can management equipment or the state of mobile phone Android simulator, can also carry out a lot of mobile phone operations, as mounting software, system upgrade, operation shell-command etc.Letter and putting into words in fact, ADB connects Android equipment and the bridge that PC holds, and can allow user on computers mobile phone comprehensively be operated.
Current existing technology is only can operate an Android simulator or Android equipment by ADB in the operating system of a computer.If will, to a plurality of Android simulators or Android operate, carry out again another operation after completing with an operation only.
Summary of the invention
Object of the present invention, overcome exactly the deficiencies in the prior art, provide a kind of and can in an operating system, control the method for a plurality of Android devices, the method can each Android simulator of independent operation or Android equipment, can realize and on a computer, move a plurality of simulators simultaneously and do not produce command collision.
In order to achieve the above object, adopt following technical scheme:
A method of controlling a plurality of Android devices, comprises the following steps:
Step 1: Android debugging bridge search Android device;
Step 2: set the PORT COM of described Android debugging bridge and described Android device, set up Android debugging bridge and be connected with the communication of Android device, the quantity of described Android device is greater than one.
Further, described step 1 comprises: the Android debugging bridge of being located at computing machine is located at the Android simulator of computing machine according to default frequency search, or the Android equipment that is connected with computing machine according to default frequency search of the Android debugging bridge of being located at computing machine, or the Android of being located at computing machine is debugged the Android equipment that bridge is connected with computing machine according to default frequency search and the Android simulator of being located at computing machine.
Further, described step 2 comprises: distribute each Android device one PORT COM, set a computer port, described PORT COM is redirected to described computer port, by PORT COM and the described computer port of each Android device, sets up the PORT COM of each Android device and the corresponding relation of described computer port.
Further, described Android device comprises one or both in Android simulator or Android equipment; If Android device is Android simulator, distribute each Android simulator one communication terminal slogan; If Android device is Android equipment, specify the sequence number of each Android equipment as communication terminal slogan; If Android device comprises Android simulator and Android equipment, distribute each Android simulator one communication terminal slogan and specify the sequence number of each Android equipment as PORT COM.
Further, the PORT COM of described distribution Android simulator comprises manual allocation or distribution automatically, and described communication terminal slogan is greater than 5554, and is even number.
Compared with prior art, beneficial effect of the present invention is:
The present invention is by specifying the PORT COM of Android device, set up each Android simulator or the PORT COM of each Android equipment and the corresponding relation of computer port, the PORT COM that realizes each Android simulator PORT COM or each Android equipment is connected with computer port communication.By ADB, can realize order and accurately be communicated to each Android simulator or Android equipment.The ADB that also can realize a plurality of Android simulators or connect a plurality of Android equipment in a computing machine controls, and has saved the time and has utilized fully the ability of computing machine high-speed computation, has improved testing efficiency.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of a plurality of Android devices of control of the present invention.
Embodiment
Below in conjunction with accompanying drawing and specific implementation method, describe the present invention in detail, in exemplary embodiment and description of the present invention, be used for explaining the present invention, but not as a limitation of the invention.
Refer to Fig. 1, the flow chart of steps of a plurality of Android devices of its control that is the present embodiment, comprising:
S10: Android debugging bridge search Android device.
Android debugging bridge (ADB) is installed in computing machine.Start after ADB the Android equipment that it can be located at the Android simulator in computing machine or be connected with computing machine according to a default frequency search.Described Android equipment comprises the electronic equipment such as mobile phone, panel computer that Android operating system is installed.Be located at the Android debugging bridge of computing machine and according to default frequency search, be located at the Android simulator of computing machine, or the Android equipment that is connected with computing machine according to default frequency search of the Android debugging bridge of being located at computing machine, or the Android of being located at computing machine is debugged bridge and is located at the Android simulator of computing machine and the Android equipment being connected with computing machine according to default frequency search.Described frequency is per second being greater than once.Automatic search Android device, can find Android device fast incessantly, exempts the trouble of manual search.ADB identification Android device is that the feature by Android operating system realizes, and the equipment of every installation Android operating system or Android simulator all have the feature of Android operating system.By this feature, can identify Android simulator or Android equipment, for basis has been set up in next step effective connection.
S20: set the PORT COM of described Android debugging bridge and described Android device, set up Android debugging bridge and be connected with the communication of Android device, the quantity of described Android device is greater than one.
Particularly, distribute each Android device one PORT COM, set a computer port, described PORT COM is redirected to described computer port, by PORT COM and the described computer port of each Android device, sets up the PORT COM of each Android device and the corresponding relation of described computer port.Through step S10, ADB has identified Android device, and distributes PORT COM to this Android device, by redirecting technique, the PORT COM of Android device is redirected to a computer port, has set up the corresponding relation of Android device and computer port.ADB just can find corresponding Android simulator or Android equipment by computer port.The name of Android simulator is called " emulator-character string " this class formation, and character string is the communication terminal slogan of 4 bit digital, and it is greater than 5554, and is even number.For example distribute an Android simulator name to be called " emulator-5554 ", the communication terminal slogan of specifying this Android simulator is 5544.Name by manual allocation the second Android simulator is called " emulator-5558 ", and the name of the 3rd Android simulator is called " emulator-5560 ".Also can automatically distribute communication terminal slogan by ADB.Automatically distributing communication terminal slogan is to add that by 5554 the twice of existing Android simulator quantity obtains the communication terminal slogan of newly-increased Android simulator.Obtain after the communication terminal slogan of Android simulator, by instruction: " adb.exe – avd establish a standby name – port communication terminal slogan " instruction type start Android simulator.The title of equipment Android simulator by name.After starting Android simulator, just can realize the control of ADB to Android simulator.Android equipment, for really the electronic product of Android operating system to be installed, comprises Android mobile phone, Android panel computer etc.Each Android equipment has a sequence number.Mobile phone has No. ID, and No. ID of each mobile phone is different.Have uniqueness due to No. ID, using No. ID as the communication terminal slogan that connects computer port, each Android equipment can be distinguished like this, does not produce command collision while being connected with ADB.Finally by this instruction: " adb – s communication terminal slogan " realized an ADB and connected a plurality of Android simulators or Android equipment.
The technical scheme above embodiment of the present invention being provided is described in detail, applied specific case herein the principle of the embodiment of the present invention and embodiment are set forth, the explanation of above embodiment is only applicable to help to understand the principle of the embodiment of the present invention; , for one of ordinary skill in the art, according to the embodiment of the present invention, in embodiment and range of application, all will change, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (5)

1. control a method for a plurality of Android devices, it is characterized in that, comprise the following steps:
Step 1: Android debugging bridge search Android device;
Step 2: set the PORT COM of described Android debugging bridge and described Android device, set up Android debugging bridge and be connected with the communication of Android device, the quantity of described Android device is greater than one.
2. the method for a plurality of Android devices of control according to claim 1, is characterized in that, described step 1 comprises:
Be located at the Android debugging bridge of computing machine and according to default frequency search, be located at the Android simulator of computing machine, or
Be located at the Android of computing machine and debug the Android equipment that bridge is connected with computing machine according to default frequency search, or
Be located at Android debugging bridge the Android equipment being connected with computing machine according to default frequency search and the Android simulator of being located at computing machine of computing machine.
3. the method for a plurality of Android devices of control according to claim 1, is characterized in that, described step 2 comprises:
Distribute each Android device one PORT COM, set a computer port, described PORT COM is redirected to described computer port, by PORT COM and the described computer port of each Android device, sets up the PORT COM of each Android device and the corresponding relation of described computer port.
4. the method for a plurality of Android devices of control according to claim 3, is characterized in that: described Android device comprises one or both in Android simulator or Android equipment; If Android device is Android simulator, distribute each Android simulator one communication terminal slogan; If Android device is Android equipment, specify the sequence number of each Android equipment as communication terminal slogan; If Android device comprises Android simulator and Android equipment, distribute each Android simulator one communication terminal slogan and specify the sequence number of each Android equipment as PORT COM.
5. the method for a plurality of Android devices of control according to claim 4, is characterized in that: the PORT COM of described distribution Android simulator comprises manual allocation or distribution automatically, and described communication terminal slogan is greater than 5554, and is even number.
CN201310016754.1A 2013-01-16 2013-01-16 Method for controlling multiple Android devices Pending CN103927256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310016754.1A CN103927256A (en) 2013-01-16 2013-01-16 Method for controlling multiple Android devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310016754.1A CN103927256A (en) 2013-01-16 2013-01-16 Method for controlling multiple Android devices

Publications (1)

Publication Number Publication Date
CN103927256A true CN103927256A (en) 2014-07-16

Family

ID=51145481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310016754.1A Pending CN103927256A (en) 2013-01-16 2013-01-16 Method for controlling multiple Android devices

Country Status (1)

Country Link
CN (1) CN103927256A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268112A (en) * 2014-09-19 2015-01-07 福州瑞芯微电子有限公司 Method and device for connecting ADB devices
CN104394131A (en) * 2014-11-12 2015-03-04 国云科技股份有限公司 Method for debugging multiple Android devices via wifi
CN104468260A (en) * 2014-11-13 2015-03-25 百度在线网络技术(北京)有限公司 Recognition method, device and system for mobile terminal device
CN105141484A (en) * 2015-10-12 2015-12-09 天津市普迅电力信息技术有限公司 Android equipment remote debugging method based on cloud server
CN105182111A (en) * 2015-08-17 2015-12-23 上海斐讯数据通信技术有限公司 Mobile terminal performance test method and system
CN106708598A (en) * 2016-07-29 2017-05-24 腾讯科技(深圳)有限公司 Setup method and device for virus analysis environment
CN106844120A (en) * 2017-02-06 2017-06-13 深圳芯智汇科技有限公司 A kind of method and apparatus for binding multi-channel A/D B device and USB port
CN107102885A (en) * 2017-04-14 2017-08-29 北京洋浦伟业科技发展有限公司 The method and device of Android simulator is detected using ADB modes
CN107544900A (en) * 2016-06-27 2018-01-05 北京优朋普乐科技有限公司 Android device and its open method and device, control system for debugging bridge
CN108073514A (en) * 2017-07-18 2018-05-25 北京微应软件科技有限公司 PC connects the method and device of multiple mobile phone terminals simultaneously
CN108388506A (en) * 2018-01-05 2018-08-10 郑州信大捷安信息技术股份有限公司 ADB multiplex systems based on the more android systems of single linux kernel and ADB multiplexing methods
CN110969815A (en) * 2018-09-28 2020-04-07 北京国双科技有限公司 Alarm method and device based on android device
CN112543478A (en) * 2020-12-04 2021-03-23 深圳市康冠商用科技有限公司 WiFi module automatic test method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102323893A (en) * 2011-09-07 2012-01-18 福州博远无线网络科技有限公司 Method for managing application program on Android mobile phone through PC (Personal Computer)
CN102446083A (en) * 2011-09-07 2012-05-09 福州博远无线网络科技有限公司 Method for reading and storing Android cellphone screen display contents at PC terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102323893A (en) * 2011-09-07 2012-01-18 福州博远无线网络科技有限公司 Method for managing application program on Android mobile phone through PC (Personal Computer)
CN102446083A (en) * 2011-09-07 2012-05-09 福州博远无线网络科技有限公司 Method for reading and storing Android cellphone screen display contents at PC terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘俊桢: ""基于Windows的Android应用系统的设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑 2013年》, no. 01, 15 January 2013 (2013-01-15) *
王保卫等: "《Google Android应用开发与系统改造实践》", 29 February 2012, article ""8.3 adb"" *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268112A (en) * 2014-09-19 2015-01-07 福州瑞芯微电子有限公司 Method and device for connecting ADB devices
CN104394131A (en) * 2014-11-12 2015-03-04 国云科技股份有限公司 Method for debugging multiple Android devices via wifi
CN104468260A (en) * 2014-11-13 2015-03-25 百度在线网络技术(北京)有限公司 Recognition method, device and system for mobile terminal device
CN105182111A (en) * 2015-08-17 2015-12-23 上海斐讯数据通信技术有限公司 Mobile terminal performance test method and system
CN105141484A (en) * 2015-10-12 2015-12-09 天津市普迅电力信息技术有限公司 Android equipment remote debugging method based on cloud server
CN107544900A (en) * 2016-06-27 2018-01-05 北京优朋普乐科技有限公司 Android device and its open method and device, control system for debugging bridge
CN106708598A (en) * 2016-07-29 2017-05-24 腾讯科技(深圳)有限公司 Setup method and device for virus analysis environment
CN106844120A (en) * 2017-02-06 2017-06-13 深圳芯智汇科技有限公司 A kind of method and apparatus for binding multi-channel A/D B device and USB port
CN106844120B (en) * 2017-02-06 2020-05-05 深圳芯智汇科技有限公司 Method and device for binding multiple ADB devices and USB ports
CN107102885A (en) * 2017-04-14 2017-08-29 北京洋浦伟业科技发展有限公司 The method and device of Android simulator is detected using ADB modes
CN108073514A (en) * 2017-07-18 2018-05-25 北京微应软件科技有限公司 PC connects the method and device of multiple mobile phone terminals simultaneously
CN108073514B (en) * 2017-07-18 2023-09-05 北京微应软件科技有限公司 Method and device for simultaneously connecting multiple mobile phone terminals by personal computer
CN108388506A (en) * 2018-01-05 2018-08-10 郑州信大捷安信息技术股份有限公司 ADB multiplex systems based on the more android systems of single linux kernel and ADB multiplexing methods
CN110969815A (en) * 2018-09-28 2020-04-07 北京国双科技有限公司 Alarm method and device based on android device
CN112543478A (en) * 2020-12-04 2021-03-23 深圳市康冠商用科技有限公司 WiFi module automatic test method and device, computer equipment and storage medium
CN112543478B (en) * 2020-12-04 2023-06-06 深圳市康冠商用科技有限公司 WiFi module automatic test method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103927256A (en) Method for controlling multiple Android devices
CN105306225B (en) A kind of physical machine remote power-off method based on Openstack
CN106371847B (en) CPCI bus RS422 communication driving method and system under Windows xp system
CN103744761A (en) Method and system for controlling multiple mobile terminals to automatically execute tasks
CN105302732A (en) Automatic mobile terminal testing method and device
CN105426298A (en) ADB (Android debug bridge)-based software test method and system
CN108804313B (en) Method and device for remotely debugging program and server
US20140040441A1 (en) System and method for the configuration of a clustered simulation network
CN104268074A (en) Application software online debugging method based on DCS
CN104298602A (en) Method and device for debugging application program
CN104468260A (en) Recognition method, device and system for mobile terminal device
CN111194046A (en) Automatic WIFI module testing system and method
CN104991806A (en) Remote firmware upgrading system and method for single-chip microcomputer program
CN103457761A (en) Cross-platform command line configuration interface implementation method
CN105468817A (en) Multi-model real-time simulation system
CN113709243B (en) Equipment remote control method and device, electronic equipment and storage medium
CN103927257A (en) Method and device for triggering android behavior event
CN105141484A (en) Android equipment remote debugging method based on cloud server
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN102902526A (en) Automatic setting method for realizing BMC (Baseboard Management Controller) and IP (Internet Protocol) information through time delay
CN103677845A (en) Website application deployment method
CN103473173A (en) Method and device for performing assembly-level dynamic debugging of iOS system
CN104461603A (en) Information processing method and electronic equipment
CN104731611A (en) Mobile terminal operation mode configuring method and system based on application programs
CN104461629B (en) PC terminals and its method for installing application program of mobile phone

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140716