CN105302364A - Android device remote controlling method and system - Google Patents

Android device remote controlling method and system Download PDF

Info

Publication number
CN105302364A
CN105302364A CN201510615425.8A CN201510615425A CN105302364A CN 105302364 A CN105302364 A CN 105302364A CN 201510615425 A CN201510615425 A CN 201510615425A CN 105302364 A CN105302364 A CN 105302364A
Authority
CN
China
Prior art keywords
android device
android
remote control
application program
touch screen
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
CN201510615425.8A
Other languages
Chinese (zh)
Other versions
CN105302364B (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.)
Fujian TQ Digital Co Ltd
Original Assignee
Fujian TQ Digital 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 Fujian TQ Digital Co Ltd filed Critical Fujian TQ Digital Co Ltd
Priority to CN201510615425.8A priority Critical patent/CN105302364B/en
Publication of CN105302364A publication Critical patent/CN105302364A/en
Application granted granted Critical
Publication of CN105302364B publication Critical patent/CN105302364B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an android device remote controlling method and system. The method comprises steps that a PC end calls an android debugging tool (adb) to be connected with an android device; a touch screen mapping module is preset and version information of a current application program of the android device is acquired; the android device acquires a remote control key value of a remote control end and transmits the key value to the touch screen mapping module; according to the version information of the current application program, the touch screen mapping module converts the key value into click even data of a touch screen and sends the data to the PC end; the PC end calls the android debugging tool (adb) to return the click event data to the android device; and the click event data is converted into a corresponding click order via the android device and executed. With the above method, the android device remote controlling method and system can be applied to current android devices; and user encoding operation is unnecessary and convenient and quick operation can be achieved.

Description

The method and system of remote control Android device
Technical field
The present invention relates to Android technical field, especially relate to a kind of method and system of remote control Android device.
Background technology
Existing patent (application number: 201210546040.7) disclose a kind of method for designing by smart mobile phone remote control home appliance, this smart mobile phone is touch-screen mobile phone and based on Android system, comprise following process: touch screen smart mobile phone arranges an infrared transmission module, the circuit of this infrared transmission module is connected with an I/O mouth of mobile phone master chip; The built-in software package of mobile phone master chip contains the APK application that formed of virtual remote control UI interface of infrared emission coded program, User Defined interface routine, mobile phone, and described infrared emission coded program presets the action command of plurality of target electrical equipment.Open target electric appliance switch, start smart mobile phone APK program, at APK interface by its virtual key, preference pattern, then user can send the action command needed for target electric appliance, this action command is encoded by infrared emission coded program, and the circuit of the instruction infrared transmission module after coding sends to target electric appliance receiving trap, realizes the intelligent distant control of multiple electrical equipment.Carry out remote control by infrared emission in this patent, need to encode to infrared emission coded program simultaneously.And know-how in practice due to individual subscriber is limited, cannot encode, therefore the application of this patent only can use in professional person, cannot operate in current obtainable equipment.
In addition, although some Android device can be connected with remote control end, but the pattern that Dou Shi producer is pre-set, as being equiped with TV and the glasses of Android system, if but user wishes that Android device end increases some APP, because these APP do not support remote pilot, just support that touch screen controls, user does not just control these APP by remote control end.
Summary of the invention
Technical matters to be solved by this invention is: the compatibility promoting Android device remote pilot, by realizing in the operation of remote control end the object controlling Android touch screen APP.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is: a kind of method providing remote control Android device, comprising:
PC end calls Android debugging acid adb, connect with Android device;
Preset touch screen mapping block, obtain the version information of Android device current application program;
Android device obtains the remote keying key assignments of remote control end, key assignments is transmitted to touch screen mapping block;
According to the version information of current application program, key assignments is converted to the click event data of touch-screen by touch screen mapping block, and is sent to PC end;
PC end calls Android debugging acid adb, and return and click event data to Android device, Android device is converted into corresponding click commands, and performs.
For solving the problem, the present invention also provides a kind of system of remote control Android device, comprises Android device, remote control end and PC end, and performs following step:
PC end calls Android debugging acid adb, connects with Android device;
Preset touch screen mapping block, obtain the version information of Android device current application program;
Android device obtains the remote keying key assignments of remote control end, key assignments is transmitted to touch screen mapping block;
According to the version information of current application program, key assignments is converted to the click event data of touch-screen by touch screen mapping block, and is sent to PC end;
PC end calls Android debugging acid adb, and return and click event data to Android device, Android device is converted into corresponding click commands, and performs.
Beneficial effect of the present invention is: be different from prior art, and PC end calls Android debugging acid adb, connects with Android device; Preset touch screen mapping block, and obtain the version information of current application program, determine the correspondence position on screen; At acquisition remote control end to the remote keying key assignments of current application program, be converted into click event data and on PC end after transfer, turn back to Android device, and being converted into the corresponding click commands of current application program, after performing this instruction, realize the straighforward operation of remote control end to Android device.By the way, the present invention can be useful in current Android device, and encodes without the need to user, convenient and swift in operation.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the inventive method embodiment one;
Fig. 2 is the schematic flow sheet of the inventive method embodiment two;
Fig. 3 is the structured flowchart of present system embodiment three;
Fig. 4 is remote control end interface buttons schematic diagram of the present invention.
Embodiment
By describing technology contents of the present invention in detail, realized object and effect, accompanying drawing is coordinated to be explained below in conjunction with embodiment.
The design of most critical of the present invention is: by arranging a click on area mapping ruler for each app, and remote control, by moving left and right click on area, reaches the object controlling touch screen app fast.
Please refer to Fig. 1, the embodiment of the present invention one provides a kind of method of remote control Android device, comprising:
S1:PC end calls Android debugging acid adb, connects with Android device;
S2: preset touch screen mapping block, obtains the version information of Android device current application program;
S3: Android device obtains the remote keying key assignments of remote control end, key assignments is transmitted to touch screen mapping block;
S4: according to the version information of current application program, key assignments is converted to the click event data of touch-screen by touch screen mapping block, and is sent to PC end;
S5:PC end calls Android debugging acid adb, and return and click event data to Android device, Android device is converted into corresponding click commands, and performs.
Particularly, the embodiment of the present invention one by calling the Android debugging acid adb on PC end, to realize by the connection of the Android device of remote control.Wherein, the full name of adb is AndroidDebugBridge, plays the effect of debugging bridge exactly.By adb, conveniently in Eclipse can debug Android program by DDMS, be exactly plainly debug instrument.The working method of adb is more special, adopts the mode monitoring the ports such as SocketTCP5554 allow IDE and Qemu communication, and under default situations, adb can the relevant network port of daemon, thus when when operation Eclipse adb process will automatically run.
Adb is an instrument in androidsdk, can direct control management android simulator or real android equipment (as G1 mobile phone etc.) with this instrument.
In addition, adb is a client-server end program, and wherein client is used to the computer of operation, and as the PC end in the present invention, server end is android equipment.
Particularly, PC end performs simulated operation by call instruction row, such as: the x coordinate of screen to be 40, y coordinate be 210 point on touch once, order as follows:
adbshellsendevent/dev/input/event03040
adbshellsendevent/dev/input/event031210
adbshellsendevent/dev/input/event013301//touch
adbshellsendevent/dev/input/event0000//itmusthave
adbshellsendevent/dev/input/event013300//untouch
adbshellsendevent/dev/input/event0000//itmusthave
Wherein, above six group commands must touch click event with the use of composition one.
Should be understood that, 3 equipment are needed: remote control equipment (can be common infrared remote control, Bluetooth remote control, also can be that Android mobile phone installs a remote control app), controlled Android device (be with Android system and have the equipment of display screen) and PC equipment in the present invention.In practice, mobile phone is by remote control Android device, and Android TV or virtual glasses are also by remote control Android device.
Any one Android device has and loads corresponding operating system and UI interface.Wherein, when each operating system or UI interface carry out renewal upgrading, its version information can be changed, therefore have therefore the present invention to need to obtain the version information at this operating system or UI interface.
Remote control end is when carrying out remote control, need to carry out thereon to slide or click keys operation up and down, each button value is all converted into click event data, these data can not directly by Android device identification, therefore need to be forwarded to PC end, on PC end after process, then turn back in Android device, just can be identified, and therefore be converted into sensing position command.By performing this instruction, the application program that clicking operation is corresponding in Android device can be realized, namely achieving the object of remote control.
Be different from prior art, PC end calls Android debugging acid, connects with Android device; Preset touch screen mapping block, and obtain the version information of application program; At acquisition remote control end to the remote keying key assignments of current application program, be converted into click event data and on PC end after transfer, turn back to Android device, and being converted into the instruction of current application program correspondence position, after performing lid instruction, realize the straighforward operation of remote control end to Android device.By the way, the present invention can be useful in current Android device, and encodes without the need to user, convenient and swift in operation.
As shown in Figure 2, on the basis of embodiment one, the step S1 of the embodiment of the present invention two is specially:
S11: Android device is set and PC holds under same LAN (Local Area Network);
S12: at PC end installing Android debugging acid adb, Android device opens debugging mode;
The Android debugging acid adb of S13:PC end and being connected by remote control Android device of unlatching debugging mode.
Particularly, only have client call Android debugging acid adb, Android device will open debugging mode simultaneously, could realize the connection of PC end and Android device like this.As used known at present 360 mobile phone assistants or other mobile phone fastening means etc.Under the present invention needs Android device and PC to hold and is in same LAN (Local Area Network), as in same WIFI to realize connecting.In practice, if the two is not under being positioned at consolidated network, only need set up transit server, also can realize connecting.
Wherein, step S2 is specially:
S21: Android device, by capture module, monitors current application program;
S22: the version information obtaining current application program;
S23: touch screen mapping block sets up map information list, map information associates and mates click commands.
The embodiment of the present invention two, by arranging capture module in Android device, for the application program in watch-dog, is specially operating system or UI interface, and obtains its version information.Search in mapping ruler module, wherein mapping ruler module sets up map information list, and every bar information is carried out associating with the position (or region) of Android device screen and mated, and then can determine respective operations instruction on screen.
By the Android device of remote control by monitoring the remote keying key assignments received from remote control termination, mainly button up and down, key assignments is transmitted to touch screen mapping ruler module, be converted to the click event data of touch-screen, such as: in data, comprise trigger coordinate (x, y), the mouse click event of (10,20) position.Because Android device itself can not identify this click event data, therefore need to be sent in the client of PC end by network.
Wherein, step S5 is specially:
S51:PC end calls Android debugging acid adb and sends click event data to Android device;
S52: Android device obtains clicks event data, and is converted into corresponding click commands;
S53: Android device performs corresponding click commands, operates current application program.
Particularly, click event data are transferred to PC by WIFI and hold client, and PC holds client to send click event data to by the Android device of remote control by calling Android debugging acid adb, realize by the manipulation of remote control Android device.
Such as: as shown in Figure 4, in figure, 1 to 8 is the mapping block screen areas on corresponding Android interface, and these regions are obtained by mapping ruler module definition, and can by the location of button realization up and down, then, by triggering click event, the object using remote control location is reached.As moved to 1 with regard to focused search frame, moving to 2 just can focused search button.Trigger event can also define some special events, and left and right slides up and down etc.
Accordingly, the embodiment of the present invention three provides a kind of system 100 of remote control Android device, comprising: Android device 110, PC end 120, remote control end 130; And perform following step:
S1:PC end 120 calls Android debugging acid adb, connects with Android device 110;
S2: preset touch screen mapping block, obtains the version information of Android device 110 current application program;
S3: Android device 110 obtains the remote keying key assignments of remote control end 130, key assignments is transmitted to touch screen mapping block;
S4: according to the version information of current application program, key assignments is converted to the click event data of touch-screen by touch screen mapping block, and is sent to PC end 120;
S5:PC end 120 calls Android debugging acid adb, and return and click event data to Android device 110, Android device 110 is converted into corresponding click commands, and performs.
Wherein, step S1 is specially:
S11: Android device 110 is set and holds 120 under same LAN (Local Area Network) with PC;
S12: at PC end 120 installing Android debugging acid adb, Android device 110 opens debugging mode;
The Android debugging acid adb of S13:PC end 120 and being connected by remote control Android device 110 of unlatching debugging mode.
Wherein, step S2 is specially:
S21: Android device 110, by capture module, monitors current application program;
S22: the version information obtaining current application program;
S23: touch screen mapping block sets up map information list, map information associates and mates click commands.
Wherein, step S5 is specially:
S51:PC end 120 calls Android debugging acid adb and sends click event data to Android device 110;
S52: Android device 110 obtains clicks event data, and is converted into corresponding click commands;
S53: Android device 110 performs corresponding click commands, operates current application program.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every equivalents utilizing instructions of the present invention and accompanying drawing content to do, or be directly or indirectly used in relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (8)

1. a method for remote control Android device, is characterized in that, comprising:
PC end calls Android debugging acid adb, connects with Android device;
Preset touch screen mapping block, obtain the version information of Android device current application program;
Android device obtains the remote keying key assignments of remote control end, key assignments is transmitted to touch screen mapping block;
According to the version information of current application program, key assignments is converted to the click event data of touch-screen by touch screen mapping block, and is sent to PC end;
PC end calls Android debugging acid adb, and return and click event data to Android device, Android device is converted into corresponding click commands, and performs.
2. the method for remote control Android device according to claim 1, is characterized in that, PC end calls Android debugging acid adb, connects be specially with Android device:
Android device is set and PC holds under same LAN (Local Area Network);
At PC end installing Android debugging acid adb, Android device opens debugging mode;
The Android debugging acid adb of PC end and being connected by remote control Android device of unlatching debugging mode.
3. the method for remote control Android device according to claim 1, is characterized in that, presets touch screen mapping block, and the step obtaining the version information of Android device current application program is specially:
Android device, by capture module, monitors current application program;
Obtain the version information of current application program;
Touch screen mapping block sets up map information list, and map information associates and mates click commands.
4. the method for remote control Android device according to claim 1, is characterized in that, PC end calls Android debugging acid adb, and return and click event data to Android device, Android device is converted into corresponding click commands, and the step performed is specially:
PC end calls Android debugging acid adb and sends click event data to Android device;
Android device obtains clicks event data, and is converted into corresponding click commands;
Android device performs corresponding click commands, operates current application program.
5. a system for remote control Android device, is characterized in that, comprising: Android device, PC end, remote control end; And perform following step:
PC end calls Android debugging acid adb, connects with Android device;
Preset touch screen mapping block, obtain the version information of Android device current application program;
Android device obtains the remote keying key assignments of remote control end, key assignments is transmitted to touch screen mapping block;
According to the version information of current application program, key assignments is converted to the click event data of touch-screen by touch screen mapping block, and is sent to PC end;
PC end calls Android debugging acid adb, and return and click event data to Android device, Android device is converted into corresponding click commands, and performs.
6. the system of remote control Android device according to claim 5, is characterized in that, PC end calls Android debugging acid adb, connects be specially with Android device:
Android device is set and PC holds under same LAN (Local Area Network);
At PC end installing Android debugging acid adb, Android device opens debugging mode;
The Android debugging acid adb of PC end and being connected by remote control Android device of unlatching debugging mode.
7. the system of remote control Android device according to claim 5, is characterized in that, presets touch screen mapping block, and the step obtaining the version information of Android device current application program is specially:
Android device, by capture module, monitors current application program;
Obtain the version information of current application program;
Touch screen mapping block sets up map information list, and map information associates and mates click commands.
8. the system of remote control Android device according to claim 5, is characterized in that, PC end calls Android debugging acid adb, and return and click event data to Android device, Android device is converted into corresponding click commands, and the step performed is specially:
PC end calls Android debugging acid adb and sends click event data to Android device;
Android device obtains clicks event data, and is converted into corresponding click commands;
Android device performs corresponding click commands, operates current application program.
CN201510615425.8A 2015-09-24 2015-09-24 It is remotely controlled the method and system of Android device Active CN105302364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510615425.8A CN105302364B (en) 2015-09-24 2015-09-24 It is remotely controlled the method and system of Android device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510615425.8A CN105302364B (en) 2015-09-24 2015-09-24 It is remotely controlled the method and system of Android device

Publications (2)

Publication Number Publication Date
CN105302364A true CN105302364A (en) 2016-02-03
CN105302364B CN105302364B (en) 2018-08-28

Family

ID=55199701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510615425.8A Active CN105302364B (en) 2015-09-24 2015-09-24 It is remotely controlled the method and system of Android device

Country Status (1)

Country Link
CN (1) CN105302364B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107797732A (en) * 2016-09-07 2018-03-13 中兴通讯股份有限公司 A kind of application control method and device
CN110764840A (en) * 2019-09-29 2020-02-07 北京东软望海科技有限公司 Method, device and system for wirelessly debugging android device
CN110874241A (en) * 2018-08-10 2020-03-10 北京融汇智能科技有限公司 Centralized control device based on android system
CN111629020A (en) * 2019-12-03 2020-09-04 蘑菇车联信息科技有限公司 Remote input method, device, PC (personal computer) terminal, android device and system
CN112486392A (en) * 2020-12-02 2021-03-12 广州朗国电子科技有限公司 Android main board parameter configuration method, system and storage medium
CN113805970A (en) * 2021-09-18 2021-12-17 湖南小算科技信息有限公司 Android system shell permission-based handle operation method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750146A (en) * 2012-06-07 2012-10-24 惠州Tcl移动通信有限公司 Method for realizing simulated mouse control in intelligent terminal and intelligent terminal
KR101251439B1 (en) * 2010-12-23 2013-04-05 주식회사 이노와이어리스 Automatical test system and method performance of smart phone using android debug bridge interface
CN103425408A (en) * 2012-05-23 2013-12-04 深圳富泰宏精密工业有限公司 Mouse and keyboard sharing method and system
CN103747311A (en) * 2013-12-18 2014-04-23 华为技术有限公司 Application control method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101251439B1 (en) * 2010-12-23 2013-04-05 주식회사 이노와이어리스 Automatical test system and method performance of smart phone using android debug bridge interface
CN103425408A (en) * 2012-05-23 2013-12-04 深圳富泰宏精密工业有限公司 Mouse and keyboard sharing method and system
CN102750146A (en) * 2012-06-07 2012-10-24 惠州Tcl移动通信有限公司 Method for realizing simulated mouse control in intelligent terminal and intelligent terminal
CN103747311A (en) * 2013-12-18 2014-04-23 华为技术有限公司 Application control method, device and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107797732A (en) * 2016-09-07 2018-03-13 中兴通讯股份有限公司 A kind of application control method and device
CN110874241A (en) * 2018-08-10 2020-03-10 北京融汇智能科技有限公司 Centralized control device based on android system
CN110764840A (en) * 2019-09-29 2020-02-07 北京东软望海科技有限公司 Method, device and system for wirelessly debugging android device
CN110764840B (en) * 2019-09-29 2023-11-03 望海康信(北京)科技股份公司 Method, device and system for wirelessly debugging android device
CN111629020A (en) * 2019-12-03 2020-09-04 蘑菇车联信息科技有限公司 Remote input method, device, PC (personal computer) terminal, android device and system
CN112486392A (en) * 2020-12-02 2021-03-12 广州朗国电子科技有限公司 Android main board parameter configuration method, system and storage medium
CN113805970A (en) * 2021-09-18 2021-12-17 湖南小算科技信息有限公司 Android system shell permission-based handle operation method

Also Published As

Publication number Publication date
CN105302364B (en) 2018-08-28

Similar Documents

Publication Publication Date Title
CN105302364A (en) Android device remote controlling method and system
CN103051693B (en) Apparatus control method and mobile communication terminal
CN102932695B (en) A kind of remote control thereof, intelligent terminal and intelligent remote control system
CN103312814B (en) The method for building up of VNC concealed channel between cloud management platform and virtual machine terminal user
CN204759403U (en) System based on data pass realization equipment internal module thoroughly and upgrade
CN103927256A (en) Method for controlling multiple Android devices
CN105430468A (en) Remote control method and device for television set-top box
CN103634169A (en) A household electrical appliance control system realized based on intelligent terminals
CN106325119A (en) Method of man-machine interactive control device
CN104426990A (en) Control method and control device
CN103596027A (en) Method and device for retrieving keyboards under different scenes of intelligent television
CN102637127A (en) Method for controlling mouse modules and electronic device
CN104378674B (en) Establish the method and system of the communication connection between intelligent handhold device and smart television
CN105100208A (en) Communication method of mobile terminal and wearable device
CN109885236B (en) Method for realizing interactive operation with remote system desktop based on mobile equipment
CN204989857U (en) Remote control device based on pioneer robot
CN103533085A (en) Method and system for remotely controlling computer
CN105611375A (en) Smart TV remote control method and terminal based on HTTP
CN105007377A (en) Cellphone remote control device, system and method
CN102929159B (en) State control method and device for simulation model
CN105451051A (en) Key remote control and method for controlling electronic device by use of key remote control
CN110543264B (en) Method, equipment and storage medium for application interaction based on split screen mode
CN108919942A (en) Mixed type augmented reality man-machine interactive system
CN103841445A (en) Set top box control device and method
CN103473170A (en) Test system and test method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant