Specific embodiment
Embodiments herein is described below in detail, the example of the embodiment is shown in the drawings, wherein certainly
Beginning to same or similar label eventually represents same or similar module or the mould with same or like function
Block.Embodiment below with reference to Description of Drawings is exemplary, is only used for explaining the application, and can not
It is interpreted as the limitation to the application.Conversely, embodiments herein includes falling into attached claims
All changes, modification and equivalent in the range of spirit and intension.
Fig. 1 is the schematic flow sheet of the control method that the embodiment of the application one is proposed, the method includes:
S11:Set up with controlled device and be connected.
Controlled device is referred to as target device, for example, mobile device such as mobile phone.
In some embodiments, controlled device can be one, and control device can be controlled with one
Equipment sets up connection.Or,
In some embodiments, controlled device can be multiple (at least two), control device with it is many
Can be that concurrent foundation with multiple controlled devices is connected when individual controlled device sets up connection, so that
The control simultaneously to multiple controlled devices can be realized.
In addition, according to the difference of control device, setting up can be in different ways when connecting.
For example, if control device is the physical equipment (real PC or mobile phone etc.) of necessary being,
USB (Universal Serial Bus, USB) connection can be set up with controlled device,
Or, if control device is the simulator of Software Create, control device can be with controlled device
Set up transmission control protocol (Transmission Control Protocol, TCP) connection.
It is, of course, understood that in the embodiment of the present application, when control device is physical equipment,
The essence of USB connections is TCP to USB to TCP.
S12:If controlled device is fitted without target program, the connection that target program is passed through to have set up
Controlled device is sent to, the target program includes the control content to controlled device.
In some embodiments, referring to Fig. 2, set up with controlled device after being connected (S21), the method is also
Including:
S22:The agreement supported is given tacit consent to using the operating system of the controlled device, described control is detected
Equipment whether installation targets program.
The operating system of controlled device is, for example, Android (android) system.
When the operating system of controlled device is Android system, the operating system of controlled device
It is, for example, that Android debugs bridge agreement (Android Debug Bridge, ADB) to give tacit consent to the agreement supported
Agreement.
It is, of course, understood that controlled device be not limited to Android system, or
Other operating systems, such as ios systems.In other operating systems, other systems branch can be used
The respective protocol held.
By taking ADB agreements as an example, ADB agreements are a client-server end programs, and wherein client is control
Control equipment, service end is as the android equipment of controlled device.
Control device can first download installation ADB clients, to realize to ADB service ends (controlled device)
Control, or, it is (controlled to ADB service ends to realize that control device can also directly input ADB orders
Control equipment) control.Because ADB agreements are existing agreements, specifically used mode may refer to prior art.
By ADB agreements, whether control device can detect controlled device installation targets program.
Referring to Fig. 2, if be fitted without, can by the connection set up by target program be sent to by
Control device (S23).S25 as will be shown later can be directly performed if installed, after S22.
Target program is the program comprising control content.By taking controlled device to be controlled activation as an example, target journey
Sequence is particularly used for activating the program of controlled device.
It is, of course, understood that when needing to carry out controlled device other controls, target program can
To be updated to other corresponding programs.
S13:After target program is sent into controlled device, triggering controlled device installs the target
Program, and, after controlled device installation targets program, triggering controlled device performs the target journey
Sequence, so that the controlled device completes the control content when the target program is performed.
For example, control device is gone out after controlled device is fitted without target program by ADB protocol detections, can
Target program is sent to controlled device with as shown in previous step.
After target program is sent into controlled device, control device can trigger controlled device and install mesh
Beacon course sequence (S24).
After control device triggering controlled device installation targets program, or, control device passes through ADB
Protocol detection goes out controlled device after installation targets program, and control device can trigger controlled device execution
Target program (S25).
Due to having included control content in target program, during controlled device performance objective program, it is possible to real
Existing control of the control device to controlled device.For example, target program is the journey for activating controlled device
Sequence, comprising the content of control controlled device activation in target program, therefore, when controlled device performs mesh
During beacon course sequence, the content of control activation can be performed, so that controlled device is activated, realize control and set
The standby activation to controlled device.
It is described after target program is sent into controlled device referring to Fig. 3 in some embodiments, triggering
Controlled device installs the target program, and, after controlled device installation targets program, trigger quilt
Control device performs the target program, including:
S31:After target program is sent into controlled device, the operation system of the controlled device is used
The agreement that system acquiescence is supported, triggering controlled device installs the target program, and, in controlled device
After installation targets program, the agreement supported is given tacit consent to using the operating system of the controlled device, triggering is controlled
Control equipment performs the target program.
For example, control device can send installation instruction by ADB agreements to controlled device, to trigger quilt
Control device installation targets program, in addition, control device can also be sent out by ADB agreements to controlled device
Execute instruction is sent, to trigger controlled device performance objective program.
In the present embodiment, controlled device is sent to by by target program, and trigger controlled device installation
And performance objective program, control content can be completed in controlled device performance objective program, realize automatic
Control to controlled device, so as to improve treatment effeciency.Further, the present embodiment is set up by controlled
The agreement triggering controlled device that standby operating system acquiescence is supported is installed and performance objective program, and need not
Controlled device is actively engaged in installing, it is not required that invade the system running environment and process of controlled device,
Control of the completion invaded such that it is able to convenient nothing to controlled device.
Fig. 4 is the schematic flow sheet of the control method that another embodiment of the application is proposed, the method includes:
S41:Set up with control device and be connected.
For example, setting up USB connections or TCP connections.
S42:If controlled device is fitted without target program, receiving control apparatus pass through the company for having set up
The target program for receiving and sending, the target program includes the control content to controlled device.
For example, control device is after detecting that controlled device is fitted without target program, can be by target journey
Sequence is sent to controlled device.Accordingly, the target program that controlled device can be sent with receiving control apparatus.
Target program is, for example, the program for activating controlled device.
S43:After the target program is received, the target program is installed in the triggering according to control device,
And, after installation targets program, the triggering according to control device performs the target program, to hold
The control content is completed during the row target program.
Described after the target program is received in some embodiments, the triggering according to control device is installed
The target program, and, after installation targets program, the triggering according to control device performs the target
Program, including:
After the target program is received, receiving control apparatus are given tacit consent to using the operating system of controlled device
The instruction that the triggering that the agreement of support sends is installed, and the instruction installation targets journey installed according to the triggering
Sequence;
After installation targets program, receiving control apparatus give tacit consent to what is supported using the operating system of controlled device
The instruction that the triggering that agreement sends is performed, and the instruction performance objective program performed according to the triggering.
For example, if the operating system of controlled device were Android system, the operation system of controlled device
The agreement supported of uniting is ADB agreements.
By target program be for activate controlled device program as a example by, when controlled device receives triggering
After the instruction of execution, the program for activating controlled device can be performed.
Wherein, can be specifically included for the control content included in the program for activating controlled device:Unblock
Content (keyguardManager disable Keyguard ()) and bright light content (PowerManager
NewwakeLock acquire ()) so that controlled device is completed after unblock content and bright light content is performed
The activation of controlled device itself.
In the present embodiment, the target program sent by receiving control apparatus, and install and execute target journey
Sequence, can complete control content in controlled device performance objective program, be automatically performed control content, real
Existing control device is automatically controlled to controlled device, so as to improve treatment effeciency.Further, this implementation
Example gives tacit consent to the agreement supported triggering controlled device and installs and perform mesh by the operating system of controlled device
Beacon course sequence, and do not need controlled device to be actively engaged in installing, it is not required that the system for invading controlled device
Running environment and process, control of the completion invaded such that it is able to convenient nothing to controlled device.
Fig. 5 is the structural representation of the control device that another embodiment of the application is proposed, the equipment 50 includes:
Link block 51, sending module 52 and control module 53.
Link block 51, is connected for being set up with controlled device.
Controlled device is referred to as target device, for example, mobile device such as mobile phone.
Optionally, if the controlled device is multiple, the link block 51 specifically for:
Concurrently set up with multiple controlled devices and be connected.
In some embodiments, controlled device can be one, and control device can be controlled with one
Equipment sets up connection.Or,
In some embodiments, controlled device can be multiple (at least two), control device with it is many
Can be that concurrent foundation with multiple controlled devices is connected when individual controlled device sets up connection, so that
The control simultaneously to multiple controlled devices can be realized.
Optionally, link block 51 specifically for:
USB is set up with controlled device to be connected, or, set up TCP with controlled device and be connected.
For example, if control device is the physical equipment (real PC or mobile phone etc.) of necessary being,
USB (Universal Serial Bus, USB) connection can be set up with controlled device,
Or, if control device is the simulator of Software Create, control device can be with controlled device
Set up transmission control protocol (Transmission Control Protocol, TCP) connection.
It is, of course, understood that in the embodiment of the present application, when control device is physical equipment,
The essence of USB connections is TCP to USB to TCP.
Sending module 52, if being fitted without target program for controlled device, target program is passed through
The linkup transmit set up is included in the control of controlled device to controlled device, the target program
Hold.
In some embodiments, referring to Fig. 6, the equipment 50 also includes:
Detection module 54, the agreement supported, inspection are given tacit consent to for the operating system using the controlled device
Survey the controlled device whether installation targets program.
The operating system of controlled device is, for example, Android (android) system.
When the operating system of controlled device is Android system, the operating system of controlled device
It is, for example, that Android debugs bridge agreement (Android Debug Bridge, ADB) to give tacit consent to the agreement supported
Agreement.
It is, of course, understood that controlled device be not limited to Android system, or
Other operating systems, such as ios systems.In other operating systems, other systems branch can be used
The respective protocol held.
By taking ADB agreements as an example, ADB agreements are a client-server end programs, and wherein client is control
Control equipment, service end is as the android equipment of controlled device.
Control device can first download installation ADB clients, to realize to ADB service ends (controlled device)
Control, or, it is (controlled to ADB service ends to realize that control device can also directly input ADB orders
Control equipment) control.Because ADB agreements are existing agreements, specifically used mode may refer to prior art.
By ADB agreements, whether control device can detect controlled device installation targets program.
If be fitted without, target program can be sent to by controlled device by the connection set up.
Target program is the program comprising control content.By taking controlled device to be controlled activation as an example, target journey
Sequence is particularly used for activating the program of controlled device.
It is, of course, understood that when needing to carry out controlled device other controls, target program can
To be updated to other corresponding programs.
Control module 53, for after target program is sent into controlled device, triggering controlled device
The target program is installed, and, after controlled device installation targets program, triggering controlled device is held
The row target program, so that the controlled device is completed in the control when the target program is performed
Hold.
For example, control device is gone out after controlled device is fitted without target program by ADB protocol detections, can
Target program is sent to controlled device with as shown in previous step.
After target program is sent into controlled device, control device can trigger controlled device and install mesh
Beacon course sequence.
After control device triggering controlled device installation targets program, or, control device passes through ADB
Protocol detection goes out controlled device after installation targets program, and control device can trigger controlled device execution
Target program.
Due to having included control content in target program, during controlled device performance objective program, it is possible to real
Existing control of the control device to controlled device.For example, target program is the journey for activating controlled device
Sequence, comprising the content of control controlled device activation in target program, therefore, when controlled device performs mesh
During beacon course sequence, the content of control activation can be performed, so that controlled device is activated, realize control and set
The standby activation to controlled device.
Optionally, control module 53 specifically for:
After target program is sent into controlled device, the operating system using the controlled device is given tacit consent to
The agreement of support, triggering controlled device installs the target program, and, mesh is installed in controlled device
After beacon course sequence, the agreement supported is given tacit consent to using the operating system of the controlled device, trigger controlled device
Perform the target program.
For example, control device can send installation instruction by ADB agreements to controlled device, to trigger quilt
Control device installation targets program, in addition, control device can also be sent out by ADB agreements to controlled device
Execute instruction is sent, to trigger controlled device performance objective program.
In the present embodiment, controlled device is sent to by by target program, and trigger controlled device installation
And performance objective program, control content can be completed in controlled device performance objective program, realize automatic
Control to controlled device, so as to improve treatment effeciency.
Fig. 7 is the structural representation of the controlled device that another embodiment of the application is proposed, the equipment 70 is wrapped
Include:Link block 71, receiver module 72 and processing module 73.
Link block 71, is connected for being set up with control device.
Optionally, link block 71 specifically for:
USB is set up with control device to be connected, or, set up TCP with control device and be connected.
Receiver module 72, if being fitted without target program for controlled device, receiving control apparatus lead to
After the target program of the linkup transmit set up, the target program is included in the control of controlled device
Hold.
For example, control device is after detecting that controlled device is fitted without target program, can be by target journey
Sequence is sent to controlled device.Accordingly, the target program that controlled device can be sent with receiving control apparatus.
Target program is, for example, the program for activating controlled device.
Processing module 73, for after the target program is received, the triggering according to control device to be installed
The target program, and, after installation targets program, the triggering according to control device performs the target
Program, to complete the control content when the target program is performed.
Optionally, processing module 73 specifically for:
After the target program is received, receiving control apparatus are given tacit consent to using the operating system of controlled device
The instruction that the triggering that the agreement of support sends is installed, and the instruction installation targets journey installed according to the triggering
Sequence;
After installation targets program, receiving control apparatus give tacit consent to what is supported using the operating system of controlled device
The instruction that the triggering that agreement sends is performed, and the instruction performance objective program performed according to the triggering.
Optionally, if the target program is the program for activating controlled device, processing module 73
For performing the target program according to the triggering of control device, to be completed when the target program is performed
The control content, including:
According to the triggering of control device, the unblock content and bright light content included in performance objective program.
For example, if the operating system of controlled device were Android system, the operation system of controlled device
The agreement supported of uniting is ADB agreements.
By target program be for activate controlled device program as a example by, when controlled device receives triggering
After the instruction of execution, the program for activating controlled device can be performed.
Wherein, can be specifically included for the control content included in the program for activating controlled device:Unblock
Content (keyguardManager disable Keyguard ()) and bright light content (PowerManager
NewwakeLock acquire ()) so that controlled device is completed after unblock content and bright light content is performed
The activation of controlled device itself.
In the present embodiment, the target program sent by receiving control apparatus, and install and execute target journey
Sequence, can complete control content in controlled device performance objective program, be automatically performed control content, real
Existing control device is automatically controlled to controlled device, so as to improve treatment effeciency.
Fig. 8 is the structural representation of the control system that another embodiment of the application is proposed, the system 80 includes:
Control device 81 and controlled device 82.Wherein, control device 81 can as shown in Figure 5 or Figure 6,
Controlled device 82 can be as shown in Figure 7.
In the present embodiment, by control device to controlled device send target program, controlled device according to
The triggering of control device installs and executes target program, can be completed in controlled device performance objective program
Control content, is automatically performed control content, realizes that control device is automatically controlled to controlled device, so that
Improve treatment effeciency.
It should be noted that in the description of the present application, term " first ", " second " etc. are only used for retouching
Purpose is stated, and it is not intended that indicating or implying relative importance.Additionally, in the description of the present application, removing
Non- to be otherwise noted, the implication of " multiple " refers at least two.
Any process described otherwise above or method description in flow chart or herein is construed as, table
Show including it is one or more for realizing specific logical function or process the step of executable instruction generation
The scope of the module of code, fragment or part, and the preferred embodiment of the application includes other realization,
Can not wherein press order that is shown or discussing, including function involved by basis by it is basic and meanwhile in the way of
Or in the opposite order, carrying out perform function, this should be by embodiments herein those of skill in the art
Member is understood.
It should be appreciated that each several part of the application can be realized with hardware, software, firmware or combinations thereof.
In the above-described embodiment, multiple steps or method can in memory and by suitable instruction be held with storage
The software or firmware that row system is performed are realized.If for example, realized with hardware, and in another embodiment party
It is the same in formula, can be realized with any one of following technology well known in the art or their combination:Have
Discrete logic for realizing the logic gates of logic function to data-signal, with suitable combination
The application specific integrated circuit of logic gates, programmable gate array (PGA), field programmable gate array (FPGA)
Deng.
Those skilled in the art be appreciated that to realize the whole that above-described embodiment method carries or
The hardware that part steps can be by program to instruct correlation is completed, and described program can be stored in one kind
In computer-readable recording medium, the program upon execution, including one of the step of embodiment of the method or its group
Close.
Additionally, during each functional unit in the application each embodiment can be integrated in a processing module,
Can also be that unit is individually physically present, it is also possible to which two or more units are integrated in a module
In.Above-mentioned integrated module can both be realized in the form of hardware, it would however also be possible to employ software function module
Form is realized.If the integrated module is to realize in the form of software function module and as independent product
When selling or using, it is also possible to which storage is in a computer read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ",
The description of " specific example " or " some examples " etc. means to combine that the embodiment or example describe is specific
Feature, structure, material or feature are contained at least one embodiment of the application or example.In this theory
In bright book, the schematic representation to above-mentioned term is not necessarily referring to identical embodiment or example.And,
The specific features of description, structure, material or feature can be in one or more any embodiments or examples
In combine in an appropriate manner.
Although embodiments herein has been shown and described above, it is to be understood that above-described embodiment
It is exemplary, it is impossible to be interpreted as the limitation to the application, one of ordinary skill in the art is the application's
In the range of above-described embodiment can be changed, change, replace and modification.