CN103401738B - A kind of method and device connecting terminal - Google Patents
A kind of method and device connecting terminal Download PDFInfo
- Publication number
- CN103401738B CN103401738B CN201310329878.5A CN201310329878A CN103401738B CN 103401738 B CN103401738 B CN 103401738B CN 201310329878 A CN201310329878 A CN 201310329878A CN 103401738 B CN103401738 B CN 103401738B
- Authority
- CN
- China
- Prior art keywords
- terminal
- broadcast
- network
- address
- sends
- 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
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of method and device connecting terminal, belong to communication technical field.Methods described includes:To in network, periodically send the broadcast for detecting first terminal, in described broadcast, carry the Protocol IP address of interconnection between the network of itself;The feedback message that first terminal returns is received by network, in described feedback message, carries the IP address of described first terminal and the mark of described first terminal;According to the IP address of described first terminal, send connection message to described first terminal, and described first terminal is identified according to the mark of described first terminal.The present invention carries out with android terminal shaking hands by way of network connection, confirm the process that is connected and identifies, and terminal is attached with control devices such as PC.Increased the mode that terminal is connected with control devices such as PC, improve the efficiency controlling the terminal being inconvenient to use USB connecting line to be attached.
Description
Technical field
The present invention relates to communication technical field, particularly to a kind of method and device connecting terminal.
Background technology
With the development of terminal technology, people can very easily pass through PC(Personal Computer, individual calculus
Machine)The terminal unit management instrument at end is managed to contents such as the application in terminal or files.The operation being managed it
Before, need by terminal and PC end be attached operate so that this terminal can be identified in PC end, just may be employed afterwards or
The management of file.
For Android(ARIXTRA)The terminal of operating system is connected with PC end, is by USB(Universal
Serial BUS, USB (universal serial bus))The mode of data wire is connected, and is transmitted by USB data line afterwards to application or literary composition
The operational order that part is managed.After terminal is connected by USB data line with PC end, terminal can send principal and subordinate to PC end and set
Standby number, PC end inquires about the corresponding driving of this master-slave equipment number in the master-slave equipment number that itself stores with the corresponding relation driving,
And terminal is identified according to the driving finding.After identifying terminal, then by calling ADB(Android Debug Bridge,
ARIXTRA debugs bridge)Terminal is applied or file management.
During realizing the present invention, inventor finds that above-mentioned technology at least has problems with:
Some terminals using Android operation system are that fixed placement is not moved easily, so that being inconvenient to pass through
USB data line and PC end be attached being applied or file management, the side being therefore connected with PC end by USB data line
Formula is limited to relatively, is unfavorable for the management of these terminals.
Content of the invention
In order to solve above-mentioned technical problem, embodiments provide a kind of method and device connecting terminal.Described
Technical scheme is as follows:
On the one hand, there is provided a kind of method connecting terminal, methods described includes:
To in network, periodically send the broadcast for detecting first terminal, in described broadcast, carry itself
Network between interconnection Protocol IP address;
The feedback message that described first terminal returns is received by network, in described feedback message, carries described first terminal
IP address and described first terminal mark;
According to the IP address of described first terminal, send connection message to described first terminal, and according to described first eventually
The mark at end identifies described first terminal.
On the other hand, there is provided a kind of method connecting terminal, methods described includes:
After being connected by USB interface with third terminal, periodically send for detecting first terminal in network
Broadcast, carries the IP address of itself in described broadcast;
The feedback message that described first terminal returns is received by network, in described feedback message, carries described first terminal
IP address and described first terminal mark;
According to the IP address of described first terminal, send connection message to described first terminal, and by described first terminal
Mark be sent to third terminal, so that described third terminal identifies described first eventually according to the mark of described first terminal
End.
On the other hand, there is provided a kind of method connecting terminal, methods described includes:
Broadcast is received by network, in described broadcast, carries the IP ground of the terminal sending described broadcast
Location;
According to the IP address of the terminal sending described broadcast, send feedback message to described terminal, described feedback disappears
The IP address of itself and the mark of itself is carried in breath;
Receive the connection message that described terminal sends, set up by network with described terminal and be connected.
On the other hand, there is provided a kind of device connecting terminal, described device includes:
First sending module, for periodically sending the broadcast for detecting first terminal in network, described
The Protocol IP address of interconnection between the network of itself is carried in broadcast;
First receiver module, for receiving the feedback message that described first terminal returns, described feedback message by network
In carry the IP address of described first terminal and the mark of described first terminal;
First link block, for the IP address according to described first terminal, sends connection message to described first terminal,
And described first terminal is identified according to the mark of described first terminal.
On the other hand, there is provided a kind of device connecting terminal, described device includes:
3rd sending module, after being connected by USB interface with third terminal, is sent periodically in network and uses
In the broadcast detecting first terminal, in described broadcast, carry the IP address of itself;
3rd receiver module, for receiving the feedback message that described first terminal returns, described feedback message by network
In carry the IP address of described first terminal and the mark of described first terminal;
Second link block, for the IP address according to described first terminal, sends connection message to described first terminal,
And the mark of described first terminal is sent to third terminal, so that described third terminal is known according to the mark of described first terminal
Do not go out described first terminal.
On the other hand, there is provided a kind of device connecting terminal, described device includes:
5th receiver module, for receiving broadcast by network, carries transmission described wide in described broadcast
Broadcast the IP address of the terminal of message;
5th sending module, for the IP address according to the terminal sending described broadcast, sends anti-to described terminal
Feedback message, carries the IP address of itself and the mark of itself in described feedback message;
3rd link block, for receiving the connection message that described terminal sends, is set up even by network with described terminal
Connect.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
Carry out with android terminal shaking hands by way of network connection, confirm the process that is connected and identifies, by terminal with
The control devices such as PC are attached.Increased the mode that terminal is connected with control devices such as PC, improve control and be inconvenient to make
The efficiency of the terminal being attached with USB connecting line.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below
Accompanying drawing be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the method flow diagram of the connection terminal that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of the connection terminal that the embodiment of the present invention two provides;
Fig. 3 is the method flow diagram of the connection terminal that the embodiment of the present invention three provides;
Fig. 4 is the method flow diagram of the connection terminal that the embodiment of the present invention four provides;
Fig. 5 is the method flow diagram of the connection terminal that the embodiment of the present invention five provides;
Fig. 6 is the apparatus structure schematic diagram of the connection terminal that the embodiment of the present invention six provides;
Fig. 7 is the apparatus structure schematic diagram of the connection terminal that the embodiment of the present invention seven provides;
Fig. 8 is the apparatus structure schematic diagram of the connection terminal that the embodiment of the present invention eight provides.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
Embodiments provide a kind of method connecting terminal, referring to Fig. 1.
Wherein, the method flow of this connection terminal includes:
101:To in network, periodically send the broadcast for detecting first terminal, carry in described broadcast
The Protocol IP address of interconnection between the network of itself;
102:The feedback message that described first terminal returns is received by network, in described feedback message, carries described first
The IP address of terminal and the mark of described first terminal;
103:According to the IP address of described first terminal, send connection message to described first terminal, and according to described the
The mark of one terminal identifies described first terminal.
The embodiment of the present invention carries out with android terminal shaking hands by way of network connection, confirm the mistake that is connected and identifies
Journey, terminal is attached with control devices such as PC.Increased the mode that terminal is connected with control devices such as PC, improve control
Make the efficiency of the terminal being inconvenient to use USB connecting line to be attached.
Embodiment two
Embodiments provide a kind of method connecting terminal, referring to Fig. 2.
Wherein, the method flow of this connection terminal includes:
201:After being connected by USB interface with third terminal, periodically send in network for detecting first eventually
The broadcast at end, carries the IP address of itself in described broadcast;
202:The feedback message that described first terminal returns is received by network, in described feedback message, carries described first
The IP address of terminal and the mark of described first terminal;
203:According to the IP address of described first terminal, send connection message to described first terminal, and by described first
The mark of terminal is sent to third terminal, so that described third terminal identifies described first according to the mark of described first terminal
Terminal, wherein said third terminal is to be connected with itself by USB interface.
The embodiment of the present invention carries out with android terminal shaking hands by way of network connection, confirm the mistake that is connected and identifies
Journey, terminal is attached with control devices such as PC.Increased the mode that terminal is connected with control devices such as PC, improve control
Make the efficiency of the terminal being inconvenient to use USB connecting line to be attached.
Embodiment three
Embodiments provide a kind of method connecting terminal, referring to Fig. 3.
Wherein, the method flow of this connection terminal includes:
301:Broadcast is received by network, in described broadcast, carries the terminal sending described broadcast
IP address;
302:According to the IP address of the terminal sending described broadcast, send feedback message to described terminal, described anti-
The IP address of itself and the mark of itself is carried in feedback message;
303:Receive the connection message that described terminal sends, set up by network with described terminal and be connected.
The embodiment of the present invention carries out with android terminal shaking hands by way of network connection, confirm the mistake that is connected and identifies
Journey, terminal is attached with control devices such as PC.Increased the mode that terminal is connected with control devices such as PC, improve control
Make the efficiency of the terminal being inconvenient to use USB connecting line to be attached.
Example IV
Embodiments provide a kind of method connecting terminal, referring to Fig. 4.
It should be noted that the executive agent of the embodiment of the present invention is third terminal for PC, by the network interface card of itself to need
Connect terminal and send broadcast, and be attached by the network connection order of ADB.
Further, first terminal in embodiments of the present invention, is equipped with Android(ARIXTRA)The end of operating system
End, can include but is not limited to mobile phone, TV, Set Top Box etc..
Wherein, the method flow of this connection terminal includes:
401:Third terminal periodically sends the broadcast for detecting first terminal in network, and described broadcast disappears
The Protocol IP address of interconnection between the network of itself is carried in breath.
The network interface card by itself for the third terminal, periodically in network send broadcast, in detection network with
The android terminal being attached is needed between third terminal.
Preferably, before third terminal sends broadcast, the broadcast sending can be configured, for referring to
Surely receive the terminal of this broadcast.
Therefore, the step that can also carry out before step 401 is:
Receive the configuration information for sending broadcast, in described configuration information, carry the IP address or of first terminal
The terminal name of one terminal.
Wherein, when carrying the IP address of the first terminal specified in configuration information, then the purpose of broadcast will be sent
Address is set as the IP address of first terminal;When carrying the terminal name of the first terminal specified in configuration information, then should
Terminal name is added into the specific field in broadcast Nei so that receiving each terminal of broadcast first according to broadcast
In specific field in terminal name mated with the terminal name of itself, match, carry out follow-up connection of shaking hands
Process.This kind of mode can be used for existing multiple android terminal in current network environment, it is possible to specify connects and needs connection
Terminal carries out follow-up operation.
Therefore, specify IP address or the terminal name of the terminal of connection in third terminal after, step 401 can be:
According to the IP address of the described first terminal carrying in described configuration information, periodically send in network and be used for
Detect the broadcast of described first terminal;Or,
The terminal name of described first terminal is added in broadcast, and periodically sends for visiting in network
Survey the broadcast of described first terminal, so that described first terminal is when receiving described broadcast, according to described first
The terminal name of terminal determines whether described broadcast is to be sent to itself.
402:First terminal receives broadcast by network, carries the described broadcast of transmission in described broadcast
Third terminal IP address.
Wherein, after first terminal can be the functional switch opening network, receive broadcast, proceed by and the 3rd
The step that terminal is shaken hands and connected;Or, first terminal can need to carry out even in user with the function of always on network
Just it is attached when connecing, now need, by starting the functional switch connecting third terminal, just to proceed by with the 3rd eventually
Hold the step shaken hands and connected.
403:According to the IP address of the third terminal sending described broadcast, send feedback message, institute to third terminal
State the mark carrying the IP address of itself and itself in feedback message.
After third terminal has carried out the process of specified receiving terminal in step 401, reception is specified for the first
During the IP address of terminal, the implementation procedure of step 403 is constant;During the terminal name of terminal second being specified to reception,
The title of the terminal specified also can be carried, the process of step 403 is in broadcast:
When determining that the terminal name carrying in described broadcast is identical with the terminal name of itself, according to send
The IP address of the terminal of broadcast, returns feedback message to described terminal.
When preferably, to third terminal return feedback message, default port information can also be returned to third terminal.
This port information is used for receiving sets up the operational order after being connected with third terminal.
If it is judged that the terminal name carrying in broadcast is differed with the terminal name of itself, then this broadcast is disappeared
Breath is abandoned, and does not do follow-up connection and processes.
404:Third terminal receives, by network, the feedback message that described first terminal returns, and carries in described feedback message
The IP address of described first terminal and the mark of described first terminal.
Now, the process that third terminal and first terminal are shaken hands completes, the process being attached afterwards, execution step 405.
Preferably, may recognize that the port information that first terminal sends in feedback message.For with first terminal
Set up after connecting, during to first terminal transmission operational order, the IP address according to first terminal and port information are transmitted.
405:Third terminal, according to the IP address of described first terminal, sends connection message to described first terminal, and root
Identify described first terminal according to the mark of described first terminal.
Wherein, connection message is specially the network connection order of ADB that third terminal sends to first terminal, for the
One terminal sets up network connection.
First terminal is identified by the mark of first terminal, is specifically as follows the model identifying terminal.
406:Receive the connection message that third terminal sends, set up by network with third terminal and be connected.
Set up after connecting, user can send various operational orders to first terminal, and wherein operational order can be:Pass
The operational order that the information such as the short message in defeated terminal, address list preserve to third terminal;Application in first terminal is carried out
The operational order deleted;The operational order that application in first terminal is installed;Operation to first terminal transmission data
Order etc., sends the procedure performance step 407 of operational order.
407:Third terminal receives the operational order that described first terminal is sent, and described operational order is packaged,
And the IP address according to described first terminal, the operational order of described encapsulation is transmitted to by described first terminal by network.
Operational order is encapsulated into the order sending by network, and is obtained first to when shaking hands with first terminal
The IP address of terminal and port numbers send the operational order of this encapsulation.
408:First terminal is received by network and sets up, with itself, the operational order that the terminal being connected sends, and according to institute
State operational order to be operated.
The embodiment of the present invention carries out with android terminal shaking hands by way of network connection, confirm the mistake that is connected and identifies
Journey, terminal is attached with control devices such as PC.Increased the mode that terminal is connected with control devices such as PC, improve control
Make the efficiency of the terminal being inconvenient to use USB connecting line to be attached.
Embodiment five
Embodiments provide a kind of method connecting terminal, referring to Fig. 5.
It should be noted that the executive agent of the embodiment of the present invention is and PC(Third terminal)It is connected the by USB interface
Two terminals, carry network access device in this terminal, and by this network access device to need connect terminal send broadcast disappear
Breath, and be attached by the network connection order of ADB after handshake procedure.Wherein, the description in part steps and embodiment
Step in four describes identical, and here simultaneously repeats no more.
Further, first terminal in embodiments of the present invention, is equipped with Android(ARIXTRA)The end of operating system
End, can include but is not limited to mobile phone, TV, Set Top Box etc..
Wherein, the method flow of this connection terminal includes:
501:After second terminal is connected by USB interface with third terminal, periodically send for visiting in network
Survey the broadcast of first terminal, in described broadcast, carry the IP address of itself.
Preferably, before second terminal sends broadcast, the broadcast sending can be configured, for referring to
Surely receive the terminal of this broadcast.
Therefore, the step that can also carry out before step 501 is:
Receive the configuration information for sending broadcast that third terminal sends, carry first in described configuration information eventually
The IP address at end or the terminal name of first terminal.
Wherein, when carrying the IP address of the first terminal specified in configuration information, then the purpose of broadcast will be sent
Address is set as the IP address of first terminal;When carrying the terminal name of the first terminal specified in configuration information, then should
Terminal name is added into the specific field in broadcast Nei so that receiving each terminal of broadcast first according to broadcast
In specific field in terminal name mated with the terminal name of itself, match, carry out follow-up connection of shaking hands
Process.This kind of mode can be used for existing multiple android terminal in current network environment, it is possible to specify connects and needs connection
Terminal carries out follow-up operation.
Therefore, specify IP address or the terminal name of the terminal of connection in third terminal, and send configuration information to
After second terminal, step 501 can be:
According to the IP address of the described first terminal carrying in described configuration information, periodically send in network and be used for
Detect the broadcast of described first terminal;Or,
The terminal name of described first terminal is added in broadcast, and periodically sends for visiting in network
Survey the broadcast of described first terminal, so that described first terminal is when receiving described broadcast, according to described first
The terminal name of terminal determines whether described broadcast is to be sent to itself.
502:First terminal receives broadcast by network, carries the described broadcast of transmission in described broadcast
Second terminal IP address.
503:According to the IP address of the second terminal sending described broadcast, send feedback message, institute to second terminal
State the mark carrying the IP address of itself and itself in feedback message.
After third terminal has carried out the process of specified receiving terminal in step 501, reception is specified for the first
During the IP address of terminal, the implementation procedure of step 503 is constant;During the terminal name of terminal second being specified to reception,
The title of the terminal specified also can be carried, the process of step 503 is in broadcast:
When determining that the terminal name carrying in described broadcast is identical with the terminal name of itself, according to send
The IP address of the terminal of broadcast, returns feedback message to described terminal.
If it is judged that the terminal name carrying in broadcast is differed with the terminal name of itself, then this broadcast is disappeared
Breath is abandoned, and does not do follow-up connection and processes.
When preferably, to third terminal return feedback message, default port information can also be returned to third terminal.
This port information is used for receiving sets up the operational order after being connected with third terminal.
504:Second terminal receives, by network, the feedback message that described first terminal returns, and carries in described feedback message
The IP address of described first terminal and the mark of described first terminal.
Now, the process that second terminal and first terminal are shaken hands completes, the process being attached afterwards, execution step 505.
Preferably, may recognize that the port information that first terminal sends in feedback message.For with first terminal
Set up after connecting, during to first terminal transmission operational order, the IP address according to first terminal and port information are transmitted.
505:According to the IP address of described first terminal, second terminal sends connection message to described first terminal, and will
The mark of described first terminal is sent to third terminal, so that described third terminal identifies according to the mark of described first terminal
Described first terminal, wherein said third terminal is to be connected with itself by USB interface.
Wherein, connection message is specially the network connection order of ADB that second terminal sends to first terminal, for the
One terminal sets up network connection.
506:Third terminal receives the mark of the described first terminal that second terminal is sent by general-purpose serial bus USB interface
Know, and described first terminal is identified according to the mark of described first terminal;Wherein said second terminal passes through USB interface and oneself
Body connects.
The process identifying third terminal is to receive the mark of the first terminal of second terminal transmission by USB interface
Afterwards, by inquiring about the mark of terminal and the corresponding relation driving, inquire the corresponding driving of mark of first terminal, and according to this
Driving identifies first terminal.
507:Described operational order is sent to second terminal by USB interface by third terminal, so that described second terminal
Described operational order is packaged, and the IP address according to described first terminal, by network, the operation of described encapsulation is ordered
Order is transmitted to described first terminal.
User, when operating third terminal to send operational order to first terminal, needs operational order by USB interface
It is sent to second terminal, and by second terminal, this order is packaged, then pass through forwarded to first terminal.
Further, the data that first terminal returns, is also to be received and forwarded to third terminal from second terminal.
508:Second terminal receives the operational order that described third terminal sends, and described operational order is packaged, and
According to the IP address of described first terminal, the operational order of described encapsulation is transmitted to by described first terminal by network.
509:First terminal is received by network and sets up, with itself, the operational order that the terminal being connected sends, and according to institute
State operational order to be operated.
The embodiment of the present invention carries out with android terminal shaking hands by way of network connection, confirm the mistake that is connected and identifies
Journey, terminal is attached with control devices such as PC.Increased the mode that terminal is connected with control devices such as PC, improve control
Make the efficiency of the terminal being inconvenient to use USB connecting line to be attached.
Embodiment six
Embodiments provide a kind of device connecting terminal, referring to Fig. 6, this device includes:
First sending module 601, for periodically sending the broadcast for detecting first terminal, institute in network
State the Protocol IP address carrying interconnection between the network of itself in broadcast;
First receiver module 602, for receiving, by network, the feedback message that described first terminal returns, described feedback disappears
The IP address of described first terminal and the mark of described first terminal is carried in breath;
First link block 603, for the IP address according to described first terminal, sends connection to described first terminal and disappears
Breath, and described first terminal is identified according to the mark of described first terminal.
In a specific embodiment, described device also includes:
Second receiver module 604, for receiving the configuration information for sending broadcast, carries in described configuration information
The IP address of first terminal or the terminal name of first terminal.
Wherein, described first sending module 601, including:
First transmitting element, for the IP address according to the described first terminal carrying in described configuration information, periodically
The broadcast sending in network for detecting described first terminal;
Second transmitting element, for being added into the terminal name of described first terminal in broadcast, and periodically
Send the broadcast for detecting described first terminal in network, so that described first terminal disappears receiving described broadcast
During breath, determine whether described broadcast is to be sent to itself according to the terminal name of described first terminal.
Wherein, described first link block 603 specifically for:
Receive the mark of the described first terminal that second terminal is sent by general-purpose serial bus USB interface, and according to institute
The mark stating first terminal identifies described first terminal;Wherein said second terminal is connected with itself by USB interface.
Wherein, described device also includes:
Second sending module 605, for receiving the operational order that described first terminal is sent, enters to described operational order
The operational order of described encapsulation is transmitted to described first by network by row encapsulation, and the IP address according to described first terminal
Terminal.
Wherein, described second sending module 605 specifically for:
Described operational order is sent to second terminal by USB interface, so that described second terminal is to described operation life
Order is packaged, and the IP address according to described first terminal, is transmitted to the operational order of described encapsulation by network described
First terminal.
The embodiment of the present invention carries out with android terminal shaking hands by way of network connection, confirm the mistake that is connected and identifies
Journey, terminal is attached with control devices such as PC.Increased the mode that terminal is connected with control devices such as PC, improve control
Make the efficiency of the terminal being inconvenient to use USB connecting line to be attached.
Embodiment seven
Embodiments provide a kind of device connecting terminal, referring to Fig. 7, this device includes:
3rd sending module 701, after being connected by USB interface with third terminal, is sent out periodically in network
Send the broadcast for detecting first terminal, in described broadcast, carry the IP address of itself;
3rd receiver module 702, for receiving, by network, the feedback message that described first terminal returns, described feedback disappears
The IP address of described first terminal and the mark of described first terminal is carried in breath;
Second link block 703, for the IP address according to described first terminal, sends connection to described first terminal and disappears
Breath, and the mark of described first terminal is sent to third terminal, so that described third terminal is according to the mark of described first terminal
Identify described first terminal.
In a specific embodiment, described device also includes:
4th receiver module 704, for receiving the configuration information for sending broadcast of third terminal transmission, described
The IP address of first terminal or the terminal name of first terminal is carried in configuration information.
Wherein, described 3rd sending module 701, including:
3rd transmitting element, for the IP address according to the described first terminal carrying in described configuration information, periodically
The broadcast sending in network for detecting described first terminal;Or,
4th transmitting element, for being added into the terminal name of described first terminal in broadcast, and periodically
Send the broadcast for detecting described first terminal in network, so that described first terminal disappears receiving described broadcast
During breath, determine whether described broadcast is to be sent to itself according to the terminal name of described first terminal.
Wherein, described device also includes:
4th sending module 705, for receiving the operational order that described third terminal sends, is carried out to described operational order
The operational order of described encapsulation is transmitted to described first eventually by network by encapsulation, and the IP address according to described first terminal
End.
The embodiment of the present invention carries out with android terminal shaking hands by way of network connection, confirm the mistake that is connected and identifies
Journey, terminal is attached with control devices such as PC.Increased the mode that terminal is connected with control devices such as PC, improve control
Make the efficiency of the terminal being inconvenient to use USB connecting line to be attached.
Embodiment eight
Embodiments provide a kind of device connecting terminal, referring to Fig. 8, this device includes:
5th receiver module 801, for receiving broadcast by network, carries transmission described in described broadcast
The IP address of the terminal of broadcast;
5th sending module 802, for the IP address according to the terminal sending described broadcast, sends to described terminal
Feedback message, carries the IP address of itself and the mark of itself in described feedback message;
3rd link block 803, for receiving the connection message that described terminal sends, is set up by network with described terminal
Connect.
Wherein, in a specific embodiment, also carry the title of terminal to be connected in described broadcast;
Described 5th sending module 802 specifically for:
When determining that the terminal name carrying in described broadcast is identical with the terminal name of itself, according to send
The IP address of the terminal of broadcast, returns feedback message to described terminal.
Wherein, described device also includes:
6th receiver module 804, sets up, with itself, the operational order that the terminal being connected sends for receiving by network, and
Operated according to described operational order.
The embodiment of the present invention carries out with android terminal shaking hands by way of network connection, confirm the mistake that is connected and identifies
Journey, terminal is attached with control devices such as PC.Increased the mode that terminal is connected with control devices such as PC, improve control
Make the efficiency of the terminal being inconvenient to use USB connecting line to be attached.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardware
To complete it is also possible to the hardware being instructed correlation by program is completed, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvement made etc., should be included within the scope of the present invention.
Claims (18)
1. a kind of method connecting terminal is it is characterised in that methods described includes:
Third terminal periodically sends the broadcast for detecting first terminal in network, carries in described broadcast
The Protocol IP address of interconnection between the network of itself;
Described third terminal receives, by network, the feedback message that described first terminal returns, and carries described in described feedback message
The IP address of first terminal and the mark of described first terminal;
Described third terminal, according to the IP address of described first terminal, sends connection message to described first terminal, and according to institute
The mark stating first terminal identifies described first terminal, and wherein, described connection message is described third terminal to described first
The ARIXTRA that terminal sends debugs the network connection order of bridge ADB, for setting up network connection with described first terminal;
Described third terminal, according to the IP address of described first terminal, sends connection message to described first terminal, and according to institute
State first terminal mark identify described first terminal after, methods described also includes:
Operational order is sent to second terminal by USB interface by described third terminal, so that described second terminal is to described behaviour
It is packaged as order, and the IP address according to described first terminal, by network, the operational order of described encapsulation is transmitted to
Described first terminal.
2. method according to claim 1 is it is characterised in that described third terminal periodically sends in network is used for
Before detecting the broadcast of first terminal, methods described also includes:
Described third terminal receives the configuration information for sending broadcast, carries the IP of first terminal in described configuration information
Address or the terminal name of first terminal.
3. method according to claim 2 is it is characterised in that described third terminal periodically sends in network is used for
Detect the broadcast of first terminal, including:
Described third terminal according to the IP address of the described first terminal carrying in described configuration information, periodically in network
Send the broadcast for detecting described first terminal;Or,
The terminal name of described first terminal is added in broadcast described third terminal, and periodically sends out in network
Send the broadcast for detecting described first terminal, so that described first terminal is when receiving described broadcast, according to
The terminal name of described first terminal determines whether described broadcast is to be sent to itself.
4. method according to claim 1 is it is characterised in that described third terminal is known according to the mark of described first terminal
Do not go out described first terminal, including:
Described third terminal receives the mark of the described first terminal that second terminal is sent by general-purpose serial bus USB interface,
And described first terminal is identified according to the mark of described first terminal;Wherein said second terminal pass through USB interface with described
Third terminal connects.
5. a kind of method connecting terminal is it is characterised in that methods described includes:
After second terminal is connected by USB interface with third terminal, periodically send in network for detecting first eventually
The broadcast at end, carries the IP address of itself in described broadcast;
Described second terminal receives, by network, the feedback message that described first terminal returns, and carries described in described feedback message
The IP address of first terminal and the mark of described first terminal;
Described second terminal, according to the IP address of described first terminal, sends connection message to described first terminal, and will be described
The mark of first terminal is sent to third terminal, so that described third terminal is according to the mark of described first terminal identifies
First terminal, wherein, described connection message is that described second terminal debugs the net of bridge ADB to the ARIXTRA that described first terminal sends
Network bind command, for setting up network connection with described first terminal;
Described second terminal, according to the IP address of described first terminal, sends connection message to described first terminal, and will be described
After the mark of first terminal is sent to third terminal, methods described also includes:
Described second terminal receives the operational order that described third terminal sends, and described operational order is packaged, and according to
The operational order of described encapsulation is transmitted to described first terminal by network by the IP address of described first terminal.
6. method according to claim 5 is it is characterised in that described periodically send for detecting first in network
Before the broadcast of terminal, methods described also includes:
Described second terminal receives the configuration information for sending broadcast that third terminal sends, and takes in described configuration information
IP address with first terminal or the terminal name of first terminal.
7. method according to claim 6 is it is characterised in that described periodically send for detecting first in network
The broadcast of terminal, including:
Described second terminal according to the IP address of the described first terminal carrying in described configuration information, periodically in network
Send the broadcast for detecting described first terminal;Or,
The terminal name of described first terminal is added in broadcast described second terminal, and periodically sends out in network
Send the broadcast for detecting described first terminal, so that described first terminal is when receiving described broadcast, according to
The terminal name of described first terminal determines whether described broadcast is to be sent to itself.
8. a kind of method connecting terminal is it is characterised in that methods described includes:
First terminal receives broadcast by network, carries the terminal sending described broadcast in described broadcast
IP address;
Described first terminal, according to the IP address of the terminal sending described broadcast, sends feedback message, institute to described terminal
State the mark carrying the IP address of itself and itself in feedback message;
Described first terminal receives the connection message that described terminal sends, and is set up by network with described terminal and is connected, wherein, institute
Stating connection message is that described terminal debugs the network connection order of bridge ADB to the ARIXTRA that described first terminal sends, for described
Terminal and described first terminal set up network connection;
Described first terminal receives the connection message that described terminal sends, and is set up after being connected by network with described terminal, institute
Method of stating also includes:
Described first terminal is received by network and sets up, with itself, the operational order that the terminal being connected sends, and according to described operation
Order is operated, and described operational order is sent to second terminal by USB interface by third terminal, and by described second eventually
End is packaged to described operational order, according to the IP address of first terminal, is turned the operational order of described encapsulation by network
Send out.
9. method according to claim 8 is it is characterised in that also carry the name of terminal to be connected in described broadcast
Claim;
Described first terminal, according to the IP address of the terminal sending described broadcast, sends feedback message, bag to described terminal
Include:
Described first terminal when determining that in described broadcast, the terminal name that carries is identical with the terminal name of itself, according to
Send the IP address of the terminal of described broadcast, return feedback message to described terminal.
10. a kind of device connecting terminal is it is characterised in that described device includes:
First sending module, for periodically sending the broadcast for detecting first terminal, described broadcast in network
The Protocol IP address of interconnection between the network of itself is carried in message;
First receiver module, for receiving, by network, the feedback message that described first terminal returns, takes in described feedback message
IP address with described first terminal and the mark of described first terminal;
First link block, for the IP address according to described first terminal, sends connection message to described first terminal, and root
Identify described first terminal according to the mark of described first terminal, wherein, described connection message is described device to described first
The ARIXTRA that terminal sends debugs the network connection order of bridge ADB, for setting up network connection with described first terminal;
Second sending module, for operational order is sent to second terminal by USB interface, so that described second terminal is to institute
State operational order to be packaged, and the IP address according to described first terminal, by network, the operational order of described encapsulation is turned
Issue described first terminal.
11. devices according to claim 10 are it is characterised in that described device also includes:
Second receiver module, for receiving the configuration information for sending broadcast, carries first eventually in described configuration information
The IP address at end or the terminal name of first terminal.
12. devices according to claim 11 it is characterised in that described first sending module, including:
First transmitting element, for the IP address according to the described first terminal carrying in described configuration information, periodically to
The broadcast for detecting described first terminal is sent in network;
Second transmitting element, for being added into the terminal name of described first terminal in broadcast, and periodically to net
The broadcast for detecting described first terminal is sent, so that described first terminal is receiving described broadcast in network
When, determine whether described broadcast is to be sent to itself according to the terminal name of described first terminal.
13. devices according to claim 10 it is characterised in that described first link block specifically for:
Receive the mark of described first terminal that second terminal is sent by general-purpose serial bus USB interface, and according to described the
The mark of one terminal identifies described first terminal;Wherein said second terminal is connected with described device by USB interface.
A kind of 14. devices connecting terminal are it is characterised in that described device includes:
3rd sending module, after being connected by USB interface with third terminal, is periodically sent for visiting in network
Survey the broadcast of first terminal, in described broadcast, carry the IP address of itself;
3rd receiver module, for receiving, by network, the feedback message that described first terminal returns, takes in described feedback message
IP address with described first terminal and the mark of described first terminal;
Second link block, for the IP address according to described first terminal, sends connection message to described first terminal, and will
The mark of described first terminal is sent to third terminal, so that described third terminal identifies according to the mark of described first terminal
Described first terminal, wherein, described connection message is that described device debugs the net of bridge ADB to the ARIXTRA that described first terminal sends
Network bind command, for setting up network connection with described first terminal;
4th sending module, for receiving the operational order that described third terminal sends, is packaged to described operational order, and
According to the IP address of described first terminal, the operational order of described encapsulation is transmitted to by described first terminal by network.
15. devices according to claim 14 are it is characterised in that described device also includes:
4th receiver module, for receiving the configuration information for sending broadcast of third terminal transmission, described configuration letter
The IP address of first terminal or the terminal name of first terminal is carried in breath.
16. devices according to claim 15 it is characterised in that described 3rd sending module, including:
3rd transmitting element, for the IP address according to the described first terminal carrying in described configuration information, periodically to
The broadcast for detecting described first terminal is sent in network;Or,
4th transmitting element, for being added into the terminal name of described first terminal in broadcast, and periodically to net
The broadcast for detecting described first terminal is sent, so that described first terminal is receiving described broadcast in network
When, determine whether described broadcast is to be sent to itself according to the terminal name of described first terminal.
A kind of 17. devices connecting terminal are it is characterised in that described device includes:
5th receiver module, for receiving broadcast by network, carries the described broadcast of transmission and disappears in described broadcast
The IP address of the terminal of breath;
5th sending module, for the IP address according to the terminal sending described broadcast, sends feedback to described terminal and disappears
Breath, carries the IP address of itself and the mark of itself in described feedback message;
3rd link block, for receiving the connection message that described terminal sends, is set up by network with described terminal and is connected, its
In, described connection message is that described terminal debugs the network connection order of bridge ADB to the ARIXTRA that described device sends, for described
Terminal and described device set up network connection;
6th receiver module, sets up, with itself, the operational order that the terminal being connected sends for receiving by network, and according to institute
State operational order to be operated, wherein, described operational order is sent to second terminal by USB interface by third terminal, and
By described second terminal, described operational order is packaged, according to the IP address of described device, by network by described encapsulation
Operational order forward.
18. devices according to claim 17 are it is characterised in that also carry terminal to be connected in described broadcast
Title;
Described 5th sending module specifically for:
When determining that the terminal name carrying in described broadcast is identical with the terminal name of itself, according to the described broadcast of transmission
The IP address of the terminal of message, returns feedback message to described terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310329878.5A CN103401738B (en) | 2013-07-31 | 2013-07-31 | A kind of method and device connecting terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310329878.5A CN103401738B (en) | 2013-07-31 | 2013-07-31 | A kind of method and device connecting terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103401738A CN103401738A (en) | 2013-11-20 |
CN103401738B true CN103401738B (en) | 2017-03-01 |
Family
ID=49565268
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310329878.5A Active CN103401738B (en) | 2013-07-31 | 2013-07-31 | A kind of method and device connecting terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103401738B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104468260A (en) * | 2014-11-13 | 2015-03-25 | 百度在线网络技术(北京)有限公司 | Recognition method, device and system for mobile terminal device |
CN105991386B (en) * | 2015-01-28 | 2020-04-07 | 阿里巴巴集团控股有限公司 | Method, device and system for connecting computer and terminal |
CN107102874B (en) * | 2017-04-10 | 2021-04-20 | 南京优通信息科技股份有限公司 | Application concurrent installation method and system |
CN110418311B (en) * | 2018-04-28 | 2021-08-31 | 华为技术有限公司 | Interconnection method and device based on multiple terminals and terminal |
CN111766788A (en) * | 2020-06-01 | 2020-10-13 | 珠海格力电器股份有限公司 | Intelligent household control method and device |
CN112911021A (en) * | 2021-03-23 | 2021-06-04 | 厦门四信通信科技有限公司 | Method, device and equipment for actively connecting terminal |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1430339A (en) * | 2001-12-20 | 2003-07-16 | 诺基亚有限公司 | Terminal identification |
CN1543732A (en) * | 2001-07-18 | 2004-11-03 | ������������ʽ���� | Communication system and method |
CN1725200A (en) * | 2004-07-22 | 2006-01-25 | 三星电子株式会社 | Be used for equipment and method in portable terminal storage and reading of data |
CN101075938A (en) * | 2006-05-19 | 2007-11-21 | 深圳艾科创新微电子有限公司 | System and method for converting between cell-phone telecommunication protocol and USB mass storage protocol |
CN103024062A (en) * | 2012-12-24 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Data sharing method, clients and data sharing system |
CN103037535A (en) * | 2011-10-10 | 2013-04-10 | 华移联科(沈阳)技术有限公司 | Method of connecting panel personal computer to network, panel personal computer and mobile terminal |
CN103051693A (en) * | 2012-12-12 | 2013-04-17 | 北京奇虎科技有限公司 | Equipment control method and mobile communication terminal |
CN103051694A (en) * | 2012-12-12 | 2013-04-17 | 北京奇虎科技有限公司 | Method for controlling equipment by mobile communication terminal and mobile communication terminal |
-
2013
- 2013-07-31 CN CN201310329878.5A patent/CN103401738B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1543732A (en) * | 2001-07-18 | 2004-11-03 | ������������ʽ���� | Communication system and method |
CN1430339A (en) * | 2001-12-20 | 2003-07-16 | 诺基亚有限公司 | Terminal identification |
CN1725200A (en) * | 2004-07-22 | 2006-01-25 | 三星电子株式会社 | Be used for equipment and method in portable terminal storage and reading of data |
CN101075938A (en) * | 2006-05-19 | 2007-11-21 | 深圳艾科创新微电子有限公司 | System and method for converting between cell-phone telecommunication protocol and USB mass storage protocol |
CN103037535A (en) * | 2011-10-10 | 2013-04-10 | 华移联科(沈阳)技术有限公司 | Method of connecting panel personal computer to network, panel personal computer and mobile terminal |
CN103051693A (en) * | 2012-12-12 | 2013-04-17 | 北京奇虎科技有限公司 | Equipment control method and mobile communication terminal |
CN103051694A (en) * | 2012-12-12 | 2013-04-17 | 北京奇虎科技有限公司 | Method for controlling equipment by mobile communication terminal and mobile communication terminal |
CN103024062A (en) * | 2012-12-24 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Data sharing method, clients and data sharing system |
Also Published As
Publication number | Publication date |
---|---|
CN103401738A (en) | 2013-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103401738B (en) | A kind of method and device connecting terminal | |
CN107026764B (en) | Remote debugging method, device, server and system | |
US7610410B2 (en) | Method and a system for establishing a connection with identification and group information | |
US20080005395A1 (en) | Adapter to convert USB device into WUSB device | |
CN102891890B (en) | Exchange method between a kind of terminal and relevant device, system | |
CN102075389B (en) | Debugging method and equipment | |
CN109873728A (en) | A kind of terminal test method, device and storage medium | |
JP2007214654A5 (en) | ||
CN113037737B (en) | Method for external network card application of user terminal equipment | |
KR101588993B1 (en) | Protocol translating adapter | |
CN103024462A (en) | Method for network detection and digital terminal | |
CN104270204A (en) | Testing method and testing equipment for wireless communication module | |
CN102571492A (en) | Method and device for detecting failure of routing equipment | |
CN1717953B (en) | Remote control device, remote control method, and remotely controlled device | |
CN204989857U (en) | Remote control device based on pioneer robot | |
CN104242998A (en) | Method and system for fast sharing various types of information through magnetic sensor | |
CN112422485B (en) | Communication method and device of transmission control protocol | |
CN110446191B (en) | Setting method of data transmission radio station, mobile terminal equipment and storage medium | |
CN105451228A (en) | Information processing method and device | |
CN111737084A (en) | Information monitoring method and device, intelligent equipment, computer equipment and medium | |
CN112165715B (en) | Equipment detection method and device, storage medium and electronic device | |
CN103092794B (en) | Transmission method and electronic equipment | |
CN109714734B (en) | DMR system, wireless communication method and device of DMR and terminal equipment | |
CN112423068A (en) | Smart television debugging method and device, mobile terminal and readable storage medium | |
CN105450264A (en) | Data transmission 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 | ||
C53 | Correction of patent for invention or patent application | ||
CB02 | Change of applicant information |
Address after: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12 Applicant after: Xiaomi Technology Co., Ltd. Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12 Applicant before: Beijing Xiaomi Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |