CN103401738A - Terminal connecting method and terminal connecting device - Google Patents

Terminal connecting method and terminal connecting device Download PDF

Info

Publication number
CN103401738A
CN103401738A CN2013103298785A CN201310329878A CN103401738A CN 103401738 A CN103401738 A CN 103401738A CN 2013103298785 A CN2013103298785 A CN 2013103298785A CN 201310329878 A CN201310329878 A CN 201310329878A CN 103401738 A CN103401738 A CN 103401738A
Authority
CN
China
Prior art keywords
terminal
broadcast
address
network
operational order
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
CN2013103298785A
Other languages
Chinese (zh)
Other versions
CN103401738B (en
Inventor
梁鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Original Assignee
Beijing Xiaomi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Technology Co Ltd filed Critical Beijing Xiaomi Technology Co Ltd
Priority to CN201310329878.5A priority Critical patent/CN103401738B/en
Publication of CN103401738A publication Critical patent/CN103401738A/en
Application granted granted Critical
Publication of CN103401738B publication Critical patent/CN103401738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a terminal connecting method and a terminal connecting device, belonging to the technical field of communication. The method comprises the following steps: periodically sending a broadcast message for detecting a first terminal to a network, wherein the broadcast message carries a self IP (internet protocol) address; receiving a feedback message returned by the first terminal, wherein the feedback message carries the IP address of the first terminal, and identification of the first terminal; sending a connecting message to the first terminal according to the IP address of the first terminal; and identifying the first terminal according to the identification of the first terminal. With the adoption of the method and the device, the terminal and control equipments such as a personal computer are connected through a network connection manner, and a process of handshaking, connection confirmation and identification of the control equipments and an Android terminal, so that the connection manners of the terminal and the control equipments such as the personal computer are increased, and the efficiency of controlling the terminal, which is inconveniently to be connected by using a USB (universal serial bus) connecting line, is improved.

Description

A kind of method and device that connects terminal
Technical field
The present invention relates to communication technical field, particularly a kind of method and device that connects terminal.
Background technology
Along with the development of terminal technology, people can pass through PC(Personal Computer, personal computer very easily) end the terminal unit management instrument contents such as the application in terminal or file are managed.Before the operation that manages, terminal and PC end need to be carried out attended operation,, so that the PC end can identify this terminal, just can apply afterwards or the management of file.
For the Android(Android) terminal of operating system is connected with the PC end, by USB(Universal Serial BUS, USB) mode of data wire is connected, and transmits the operational order of applying or file manages by the usb data line afterwards.After terminal and PC end is connected by the usb data line, terminal can send master-slave equipment number to the PC end, PC end is inquired about number corresponding driving of this master-slave equipment in the master-slave equipment of self storage number and the corresponding relation that drives, and according to the driving that finds, identifies terminal.After identifying terminal, then by calling ADB(Android Debug Bridge, Android debugging bridge) terminal is applied or the management of file.
In realizing process of the present invention, the inventor finds that there is following problem at least in above-mentioned technology:
Some terminal that adopts Android operating system is fixed placement and is inconvenient to move, to such an extent as to inconvenient hold to be connected by usb data line and PC apply or the management of file, therefore, by usb data line and relative limitation of mode that the PC end is connected, be unfavorable for the management of these terminals.
Summary of the invention
In order to solve the problems of the technologies described above, the embodiment of the present invention provides a kind of method and device that connects terminal.Described technical scheme is as follows:
On the one hand, provide a kind of method that connects terminal, described method comprises:
Periodically send the broadcast that is used for surveying first terminal in network, carry the protocol IP address that interconnects between the network of self in described broadcast;
Receive by network the feedback message that described first terminal returns, carry the IP address of described first terminal and the sign of described first terminal in described feedback message;
, according to the IP address of described first terminal, send connection message to described first terminal, and according to the sign of described first terminal, identify described first terminal.
On the other hand, provide a kind of method that connects terminal, described method comprises:
After being connected by USB interface with third terminal, periodically send the broadcast that is used for surveying first terminal in network, carry the IP address of self in described broadcast;
Receive by network the feedback message that described first terminal returns, carry the IP address of described first terminal and the sign of described first terminal in described feedback message;
, according to the IP address of described first terminal, send connection message to described first terminal, and the sign of described first terminal is sent to third terminal, so that described third terminal identifies described first terminal according to the sign of described first terminal.
On the other hand, provide a kind of method that connects terminal, described method comprises:
Receive broadcast by network, carry the IP address of the terminal that sends described broadcast in described broadcast;
According to the IP address of the terminal that sends described broadcast, send feedback message to described terminal, carry the IP address of self and the sign of self in described feedback message;
Receive the connection message that described terminal sends, with described terminal, by network, connect.
On the other hand, provide a kind of device that connects terminal, described device comprises:
The first sending module, be used for periodically to network, sending the broadcast that is used for surveying first terminal, carries the protocol IP address that interconnects between the network of self in described broadcast;
The first receiver module, be used for receiving by network the feedback message that described first terminal returns, and carries the IP address of described first terminal and the sign of described first terminal in described feedback message;
The first link block, be used for the IP address according to described first terminal, sends connection message to described first terminal, and according to the sign of described first terminal, identify described first terminal.
On the other hand, provide a kind of device that connects terminal, described device comprises:
The 3rd sending module, after being used for being connected by USB interface with third terminal, periodically send the broadcast that is used for surveying first terminal in network, carry the IP address of self in described broadcast;
The 3rd receiver module, be used for receiving by network the feedback message that described first terminal returns, and carries the IP address of described first terminal and the sign of described first terminal in described feedback message;
The second link block, be used for the IP address according to described first terminal, send connection message to described first terminal, and the sign of described first terminal is sent to third terminal, so that described third terminal identifies described first terminal according to the sign of described first terminal.
On the other hand, provide a kind of device that connects terminal, described device comprises:
The 5th receiver module, be used for receiving broadcast by network, carries the IP address of the terminal that sends described broadcast in described broadcast;
The 5th sending module, be used for the IP address according to the terminal that sends described broadcast, to described terminal, sends feedback message, carries the IP address of self and the sign of self in described feedback message;
The 3rd link block, be used for receiving the connection message that described terminal sends, and with described terminal, by network, connects.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
Shake hands, confirm by the mode that network connects the process that is connected and identifies with the Android terminal, terminal is connected with control appliances such as PC.Increased the mode that the control appliances such as terminal and PC are connected, improved and controlled the efficiency of being inconvenient to use the terminal that the USB connecting line connects.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, in below describing embodiment, the accompanying drawing of required use is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow diagram of the connection terminal that provides of the embodiment of the present invention one;
Fig. 2 is the method flow diagram of the connection terminal that provides of the embodiment of the present invention two;
Fig. 3 is the method flow diagram of the connection terminal that provides of the embodiment of the present invention three;
Fig. 4 is the method flow diagram of the connection terminal that provides of the embodiment of the present invention four;
Fig. 5 is the method flow diagram of the connection terminal that provides of the embodiment of the present invention five;
Fig. 6 is the apparatus structure schematic diagram of the connection terminal that provides of the embodiment of the present invention six;
Fig. 7 is the apparatus structure schematic diagram of the connection terminal that provides of the embodiment of the present invention seven;
Fig. 8 is the apparatus structure schematic diagram of the connection terminal that provides of the embodiment of the present invention eight.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment one
The embodiment of the present invention provides a kind of method that connects terminal, referring to Fig. 1.
Wherein, the method flow of this connection terminal comprises:
101: periodically send the broadcast that is used for surveying first terminal in network, carry the protocol IP address that interconnects between the network of self in described broadcast;
102: receive by network the feedback message that described first terminal returns, carry the IP address of described first terminal and the sign of described first terminal in described feedback message;
103:, according to the IP address of described first terminal, send connection message to described first terminal, and according to the sign of described first terminal, identify described first terminal.
The embodiment of the present invention shakes hands, confirms by the mode that network connects the process that is connected and identifies with the Android terminal, terminal is connected with control appliances such as PC.Increased the mode that the control appliances such as terminal and PC are connected, improved and controlled the efficiency of being inconvenient to use the terminal that the USB connecting line connects.
Embodiment two
The embodiment of the present invention provides a kind of method that connects terminal, referring to Fig. 2.
Wherein, the method flow of this connection terminal comprises:
201: after being connected by USB interface with third terminal, periodically send the broadcast that is used for surveying first terminal in network, carry the IP address of self in described broadcast;
202: receive by network the feedback message that described first terminal returns, carry the IP address of described first terminal and the sign of described first terminal in described feedback message;
203: according to the IP address of described first terminal, send connection message to described first terminal, and the sign of described first terminal is sent to third terminal, so that described third terminal identifies described first terminal according to the sign of described first terminal, wherein said third terminal is to be connected with self by USB interface.
The embodiment of the present invention shakes hands, confirms by the mode that network connects the process that is connected and identifies with the Android terminal, terminal is connected with control appliances such as PC.Increased the mode that the control appliances such as terminal and PC are connected, improved and controlled the efficiency of being inconvenient to use the terminal that the USB connecting line connects.
Embodiment three
The embodiment of the present invention provides a kind of method that connects terminal, referring to Fig. 3.
Wherein, the method flow of this connection terminal comprises:
301: receive broadcast by network, carry the IP address of the terminal that sends described broadcast in described broadcast;
302:, according to the IP address of the terminal that sends described broadcast, to described terminal, send feedback message, carry the IP address of self and the sign of self in described feedback message;
303: receive the connection message that described terminal sends, with described terminal, by network, connect.
The embodiment of the present invention shakes hands, confirms by the mode that network connects the process that is connected and identifies with the Android terminal, terminal is connected with control appliances such as PC.Increased the mode that the control appliances such as terminal and PC are connected, improved and controlled the efficiency of being inconvenient to use the terminal that the USB connecting line connects.
Embodiment four
The embodiment of the present invention provides a kind of method that connects terminal, referring to Fig. 4.
Need to prove, the executive agent of the embodiment of the present invention is that PC is third terminal, connects terminal by self network interface card to needs and sends broadcast, and by the network bind command of ADB, connect.
Further, first terminal in embodiments of the present invention, for being equipped with the Android(Android) terminal of operating system, can include but not limited to mobile phone, TV, set-top box etc.
Wherein, the method flow of this connection terminal comprises:
401: third terminal periodically sends the broadcast that is used for surveying first terminal in network, carry the protocol IP address that interconnects between the network of self in described broadcast.
Third terminal, by the network interface card of self, periodically sends broadcast in network, being used for needing the Android that is connected terminal between detection network and third terminal.
Preferably, before third terminal sends broadcast, can the broadcast that send be configured, be used to specify the terminal that receives this broadcast.
Therefore, the step that can also carry out before step 401 is:
Receive the configuration information that is used for sending broadcast, carry the IP address of first terminal or the terminal name of first terminal in described configuration information.
Wherein, when the IP address of the first terminal that carries appointment in configuration information, the destination address that will send broadcast is set as the IP address of first terminal; When the terminal name of the first terminal that carries appointment in configuration information, this terminal name is added in the specific field in broadcast, make each terminal that receives broadcast first according to the terminal name in the specific field in broadcast and the terminal name of self, mate, match and carry out the follow-up process of shaking hands and connecting.This kind mode can be used for current network environment and have a plurality of Android terminals, can specify the terminal that connection need to connect to carry out follow-up operation.
Therefore, specified the IP address or terminal name of the terminal that connects at third terminal after, step 401 can be:
, according to the IP address of the described first terminal that carries in described configuration information, periodically send the broadcast that is used for surveying described first terminal in network; Perhaps,
The terminal name of described first terminal is added in broadcast, and periodically send the broadcast that is used for surveying described first terminal in network, so that described first terminal when receiving described broadcast, determines according to the terminal name of described first terminal whether described broadcast is to send to self.
402: first terminal receives broadcast by network, carries the IP address of the third terminal that sends described broadcast in described broadcast.
Wherein, first terminal can be after opening the functional switch of network, to receive broadcast, starts to carry out to shake hands and the step that is connected with third terminal; Perhaps, first terminal can be opened the function of network always, just connects when the user need to connect, and need to connect by startup the functional switch of third terminal this moment, just starts to carry out to shake hands and the step that is connected with third terminal.
403:, according to the IP address of the third terminal that sends described broadcast, to third terminal, send feedback message, carry the IP address of self and the sign of self in described feedback message.
After third terminal in step 401 had carried out specifying the process of receiving terminal, while for the first, having specified the IP address of the terminal that receives, the implementation of step 403 was constant; While for the second, having specified the terminal name of the terminal that receives, also can carry the title of the terminal of appointment in broadcast, the process of step 403 is:
When the terminal name that carries is identical with self terminal name,, according to the IP address of the terminal of the described broadcast of transmission, to described terminal, return to feedback message in determining described broadcast.
Preferably, while to third terminal, returning to feedback message, the port information of presetting can also be returned to third terminal.This port information is used for receiving the operational order after connecting with third terminal.
If it is not identical with the terminal name of self to judge the terminal name that carries in broadcast, this broadcast is abandoned, do not do follow-up connection and process.
404: third terminal receives by network the feedback message that described first terminal returns, and carries the IP address of described first terminal and the sign of described first terminal in described feedback message.
At this moment, the process that third terminal and first terminal are shaken hands is completed, the process that connects afterwards, execution step 405.
Preferably, can also identify the port information that first terminal sends in feedback message.After being used for connecting with first terminal, during to first terminal transmit operation order, according to IP address and the port information of first terminal, send.
405: third terminal, according to the IP address of described first terminal, sends connection message to described first terminal, and according to the sign of described first terminal, identifies described first terminal.
Wherein, connection message is specially the network bind command of third terminal to the ADB of first terminal transmission, is used for setting up network with first terminal and is connected.
Sign by first terminal identifies first terminal, is specifically as follows the model that identifies terminal.
406: receive the connection message that third terminal sends, with third terminal, by network, connect.
After connecting, the user can send various operational orders to first terminal, and wherein operational order can be: the operational order that the information such as the short message in transmission terminal, address list are preserved to third terminal; The operational order that application in first terminal is deleted; The operational order that application in first terminal is installed; To the operational order of first terminal the transmission of data etc., the process execution step 407 of transmit operation order.
407: third terminal receives the operational order that described first terminal is sent, and described operational order is encapsulated, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
Operational order is encapsulated into the order that sends by network, and obtains the IP address of first terminal and the operational order that port numbers sends this encapsulation when with first terminal, shaking hands.
408: first terminal receives the operational order of the terminal transmission that connects with self by network, and according to described operational order, operates.
The embodiment of the present invention shakes hands, confirms by the mode that network connects the process that is connected and identifies with the Android terminal, terminal is connected with control appliances such as PC.Increased the mode that the control appliances such as terminal and PC are connected, improved and controlled the efficiency of being inconvenient to use the terminal that the USB connecting line connects.
Embodiment five
The embodiment of the present invention provides a kind of method that connects terminal, referring to Fig. 5.
Need to prove, the executive agent of the embodiment of the present invention is and the PC(third terminal) by USB interface second terminal that is connected, carry network access device in this terminal, and by this network access device, to needs, connect terminal transmission broadcast, and the network bind command by ADB connects after handshake procedure.Wherein, it is identical that the description in part steps and the step in embodiment four are described, at this and repeat no more.
Further, first terminal in embodiments of the present invention, for being equipped with the Android(Android) terminal of operating system, can include but not limited to mobile phone, TV, set-top box etc.
Wherein, the method flow of this connection terminal comprises:
After terminal was connected by USB interface with third terminal in 501: the second, periodically send the broadcast that is used for surveying first terminal in network, carry the IP address of self in described broadcast.
Preferably, before the second terminal sends broadcast, can the broadcast that send be configured, be used to specify the terminal that receives this broadcast.
Therefore, the step that can also carry out before step 501 is:
Receive the configuration information that is used for sending broadcast that third terminal sends, carry the IP address of first terminal or the terminal name of first terminal in described configuration information.
Wherein, when the IP address of the first terminal that carries appointment in configuration information, the destination address that will send broadcast is set as the IP address of first terminal; When the terminal name of the first terminal that carries appointment in configuration information, this terminal name is added in the specific field in broadcast, make each terminal that receives broadcast first according to the terminal name in the specific field in broadcast and the terminal name of self, mate, match and carry out the follow-up process of shaking hands and connecting.This kind mode can be used for current network environment and have a plurality of Android terminals, can specify the terminal that connection need to connect to carry out follow-up operation.
Therefore, specified IP address or the terminal name of the terminal that connects at third terminal, and after configuration information was sent to the second terminal, step 501 can be:
, according to the IP address of the described first terminal that carries in described configuration information, periodically send the broadcast that is used for surveying described first terminal in network; Perhaps,
The terminal name of described first terminal is added in broadcast, and periodically send the broadcast that is used for surveying described first terminal in network, so that described first terminal when receiving described broadcast, determines according to the terminal name of described first terminal whether described broadcast is to send to self.
502: first terminal receives broadcast by network, carries the IP address of the second terminal that sends described broadcast in described broadcast.
503:, according to the IP address of the second terminal that sends described broadcast, to the second terminal, send feedback message, carry the IP address of self and the sign of self in described feedback message.
After third terminal in step 501 had carried out specifying the process of receiving terminal, while for the first, having specified the IP address of the terminal that receives, the implementation of step 503 was constant; While for the second, having specified the terminal name of the terminal that receives, also can carry the title of the terminal of appointment in broadcast, the process of step 503 is:
When the terminal name that carries is identical with self terminal name,, according to the IP address of the terminal of the described broadcast of transmission, to described terminal, return to feedback message in determining described broadcast.
If it is not identical with the terminal name of self to judge the terminal name that carries in broadcast, this broadcast is abandoned, do not do follow-up connection and process.
Preferably, while to third terminal, returning to feedback message, the port information of presetting can also be returned to third terminal.This port information is used for receiving the operational order after connecting with third terminal.
Terminal received by network the feedback message that described first terminal returns in 504: the second, carried the IP address of described first terminal and the sign of described first terminal in described feedback message.
At this moment, the process that the second terminal and first terminal are shaken hands is completed, the process that connects afterwards, execution step 505.
Preferably, can also identify the port information that first terminal sends in feedback message.After being used for connecting with first terminal, during to first terminal transmit operation order, according to IP address and the port information of first terminal, send.
505: according to the IP address of described first terminal, the second terminal sends connection message to described first terminal, and the sign of described first terminal is sent to third terminal, so that described third terminal identifies described first terminal according to the sign of described first terminal, wherein said third terminal is to be connected with self by USB interface.
Wherein, connection message is specially the network bind command of the second terminal to the ADB of first terminal transmission, is used for setting up network with first terminal and is connected.
506: third terminal receives the sign of the second terminal by the described first terminal of general-purpose serial bus USB interface transmission, and according to the sign of described first terminal, identifies described first terminal; Wherein said the second terminal is connected with self by USB interface.
The process that identifies third terminal is, receive the sign of the first terminal that the second terminal sends by USB interface after,, by the sign of inquiry terminal and the corresponding relation of driving, inquire the driving of the sign correspondence of first terminal, and according to this driving, identify first terminal.
507: third terminal sends to the second terminal with described operational order by USB interface, so that described the second terminal encapsulates described operational order, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
The user, need to send to the second terminal with operational order by USB interface, and by the second terminal, this order be encapsulated during to first terminal transmit operation order at the operation third terminal, then by forwarded to first terminal.
Further, the data that first terminal returns, also received and to third terminal, forwarded by the second terminal.
508: the second terminals receive the operational order that described third terminal sends, and described operational order is encapsulated, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
509: first terminal receives the operational order of the terminal transmission that connects with self by network, and according to described operational order, operates.
The embodiment of the present invention shakes hands, confirms by the mode that network connects the process that is connected and identifies with the Android terminal, terminal is connected with control appliances such as PC.Increased the mode that the control appliances such as terminal and PC are connected, improved and controlled the efficiency of being inconvenient to use the terminal that the USB connecting line connects.
Embodiment six
The embodiment of the present invention provides a kind of device that connects terminal, and referring to Fig. 6, this device comprises:
The first sending module 601, be used for periodically to network, sending the broadcast that is used for surveying first terminal, carries the protocol IP address that interconnects between the network of self in described broadcast;
The first receiver module 602, be used for receiving by network the feedback message that described first terminal returns, and carries the IP address of described first terminal and the sign of described first terminal in described feedback message;
The first link block 603, be used for the IP address according to described first terminal, sends connection message to described first terminal, and according to the sign of described first terminal, identify described first terminal.
In embodiment, described device also comprises:
The second receiver module 604, be used for receiving the configuration information that is used for sending broadcast, carries the IP address of first terminal or the terminal name of first terminal in described configuration information.
Wherein, described the first sending module 601 comprises:
The first transmitting element,, for the IP address of the described first terminal that carries according to described configuration information, periodically send the broadcast that is used for surveying described first terminal in network;
The second transmitting element, be used for the terminal name of described first terminal is added into broadcast, and periodically send the broadcast that is used for surveying described first terminal in network, so that described first terminal when receiving described broadcast, determines according to the terminal name of described first terminal whether described broadcast is to send to self.
Wherein, described the first link block 603 specifically is used for:
Receive the sign of the second terminal by the described first terminal of general-purpose serial bus USB interface transmission, and according to the sign of described first terminal, identify described first terminal; Wherein said the second terminal is connected with self by USB interface.
Wherein, described device also comprises:
The second sending module 605, be used for to receive the operational order that described first terminal is sent, and described operational order encapsulated, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
Wherein, described the second sending module 605 specifically is used for:
Described operational order is sent to the second terminal by USB interface, so that described the second terminal encapsulates described operational order, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
The embodiment of the present invention shakes hands, confirms by the mode that network connects the process that is connected and identifies with the Android terminal, terminal is connected with control appliances such as PC.Increased the mode that the control appliances such as terminal and PC are connected, improved and controlled the efficiency of being inconvenient to use the terminal that the USB connecting line connects.
Embodiment seven
The embodiment of the present invention provides a kind of device that connects terminal, and referring to Fig. 7, this device comprises:
The 3rd sending module 701, after being used for being connected by USB interface with third terminal, periodically send the broadcast that is used for surveying first terminal in network, carry the IP address of self in described broadcast;
The 3rd receiver module 702, be used for receiving by network the feedback message that described first terminal returns, and carries the IP address of described first terminal and the sign of described first terminal in described feedback message;
The second link block 703, be used for the IP address according to described first terminal, send connection message to described first terminal, and the sign of described first terminal is sent to third terminal, so that described third terminal identifies described first terminal according to the sign of described first terminal.
In embodiment, described device also comprises:
The 4th receiver module 704, be used for receiving the configuration information that is used for sending broadcast that third terminal sends, and carries the IP address of first terminal or the terminal name of first terminal in described configuration information.
Wherein, described the 3rd sending module 701 comprises:
The 3rd transmitting element,, for the IP address of the described first terminal that carries according to described configuration information, periodically send the broadcast that is used for surveying described first terminal in network; Perhaps,
The 4th transmitting element, be used for the terminal name of described first terminal is added into broadcast, and periodically send the broadcast that is used for surveying described first terminal in network, so that described first terminal when receiving described broadcast, determines according to the terminal name of described first terminal whether described broadcast is to send to self.
Wherein, described device also comprises:
The 4th sending module 705, be used for receiving the operational order that described third terminal sends, and described operational order encapsulated, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
The embodiment of the present invention shakes hands, confirms by the mode that network connects the process that is connected and identifies with the Android terminal, terminal is connected with control appliances such as PC.Increased the mode that the control appliances such as terminal and PC are connected, improved and controlled the efficiency of being inconvenient to use the terminal that the USB connecting line connects.
Embodiment eight
The embodiment of the present invention provides a kind of device that connects terminal, and referring to Fig. 8, this device comprises:
The 5th receiver module 801, be used for receiving broadcast by network, carries the IP address of the terminal that sends described broadcast in described broadcast;
The 5th sending module 802, be used for the IP address according to the terminal that sends described broadcast, to described terminal, sends feedback message, carries the IP address of self and the sign of self in described feedback message;
The 3rd link block 803, be used for receiving the connection message that described terminal sends, and with described terminal, by network, connects.
Wherein, in embodiment, also carry the title of terminal to be connected in described broadcast;
Described the 5th sending module 802 specifically is used for:
When the terminal name that carries is identical with self terminal name,, according to the IP address of the terminal of the described broadcast of transmission, to described terminal, return to feedback message in determining described broadcast.
Wherein, described device also comprises:
The 6th receiver module 804, be used for receiving by network the operational order of the terminal transmission that connects with self, and according to described operational order, operate.
The embodiment of the present invention shakes hands, confirms by the mode that network connects the process that is connected and identifies with the Android terminal, terminal is connected with control appliances such as PC.Increased the mode that the control appliances such as terminal and PC are connected, improved and controlled the efficiency of being inconvenient to use the terminal that the USB connecting line connects.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the relevant hardware of instruction to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (26)

1. a method that connects terminal, is characterized in that, described method comprises:
Periodically send the broadcast that is used for surveying first terminal in network, carry the protocol IP address that interconnects between the network of self in described broadcast;
Receive by network the feedback message that described first terminal returns, carry the IP address of described first terminal and the sign of described first terminal in described feedback message;
, according to the IP address of described first terminal, send connection message to described first terminal, and according to the sign of described first terminal, identify described first terminal.
2. method according to claim 1, is characterized in that, described periodically to before sending in network and being used for surveying the broadcast of first terminal, described method also comprises:
Receive the configuration information that is used for sending broadcast, carry the IP address of first terminal or the terminal name of first terminal in described configuration information.
3. method according to claim 2, is characterized in that, describedly periodically sends the broadcast that is used for surveying first terminal in network, comprising:
, according to the IP address of the described first terminal that carries in described configuration information, periodically send the broadcast that is used for surveying described first terminal in network; Perhaps,
The terminal name of described first terminal is added in broadcast, and periodically send the broadcast that is used for surveying described first terminal in network, so that described first terminal when receiving described broadcast, determines according to the terminal name of described first terminal whether described broadcast is to send to self.
4. method according to claim 1, is characterized in that, described sign according to described first terminal identifies described first terminal, comprising:
Receive the sign of the second terminal by the described first terminal of general-purpose serial bus USB interface transmission, and according to the sign of described first terminal, identify described first terminal; Wherein said the second terminal is connected with self by USB interface.
5. method according to claim 1, is characterized in that, described IP according to described first terminal address sends connection message to described first terminal, and after identifying described first terminal according to the sign of described first terminal, described method also comprises:
Reception, to the operational order that described first terminal sends, encapsulates described operational order, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
6. method according to claim 5, is characterized in that, the operational order that described reception sends described first terminal, described operational order is encapsulated, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal, comprising:
Described operational order is sent to the second terminal by USB interface, so that described the second terminal encapsulates described operational order, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
7. a method that connects terminal, is characterized in that, described method comprises:
After being connected by USB interface with third terminal, periodically send the broadcast that is used for surveying first terminal in network, carry the IP address of self in described broadcast;
Receive by network the feedback message that described first terminal returns, carry the IP address of described first terminal and the sign of described first terminal in described feedback message;
, according to the IP address of described first terminal, send connection message to described first terminal, and the sign of described first terminal is sent to third terminal, so that described third terminal identifies described first terminal according to the sign of described first terminal.
8. method according to claim 7, is characterized in that, described periodically to before sending in network and being used for surveying the broadcast of first terminal, described method also comprises:
Receive the configuration information that is used for sending broadcast that third terminal sends, carry the IP address of first terminal or the terminal name of first terminal in described configuration information.
9. method according to claim 8, is characterized in that, describedly periodically sends the broadcast that is used for surveying first terminal in network, comprising:
, according to the IP address of the described first terminal that carries in described configuration information, periodically send the broadcast that is used for surveying described first terminal in network; Perhaps,
The terminal name of described first terminal is added in broadcast, and periodically send the broadcast that is used for surveying described first terminal in network, so that described first terminal when receiving described broadcast, determines according to the terminal name of described first terminal whether described broadcast is to send to self.
10. method according to claim 7, is characterized in that, described IP according to described first terminal address send connection message to described first terminal, and after the sign of described first terminal was sent to third terminal, described method also comprised:
Receive the operational order that described third terminal sends, described operational order is encapsulated, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
11. a method that connects terminal, is characterized in that, described method comprises:
Receive broadcast by network, carry the IP address of the terminal that sends described broadcast in described broadcast;
According to the IP address of the terminal that sends described broadcast, send feedback message to described terminal, carry the IP address of self and the sign of self in described feedback message;
Receive the connection message that described terminal sends, with described terminal, by network, connect.
12. method according to claim 11, is characterized in that, also carries the title of terminal to be connected in described broadcast;
The IP address of described terminal according to sending described broadcast, send feedback message to described terminal, comprising:
When the terminal name that carries is identical with self terminal name,, according to the IP address of the terminal of the described broadcast of transmission, to described terminal, return to feedback message in determining described broadcast.
13. method according to claim 11, is characterized in that, the connection message that the described terminal of described reception sends, and after connecting by network with described terminal, described method also comprises:
Receive the operational order of the terminal transmission that connects with self by network, and according to described operational order, operate.
14. a device that connects terminal, is characterized in that, described device comprises:
The first sending module, be used for periodically to network, sending the broadcast that is used for surveying first terminal, carries the protocol IP address that interconnects between the network of self in described broadcast;
The first receiver module, be used for receiving by network the feedback message that described first terminal returns, and carries the IP address of described first terminal and the sign of described first terminal in described feedback message;
The first link block, be used for the IP address according to described first terminal, sends connection message to described first terminal, and according to the sign of described first terminal, identify described first terminal.
15. device according to claim 14, is characterized in that, described device also comprises:
The second receiver module, be used for receiving the configuration information that is used for sending broadcast, carries the IP address of first terminal or the terminal name of first terminal in described configuration information.
16. device according to claim 15, is characterized in that, described the first sending module comprises:
The first transmitting element,, for the IP address of the described first terminal that carries according to described configuration information, periodically send the broadcast that is used for surveying described first terminal in network;
The second transmitting element, be used for the terminal name of described first terminal is added into broadcast, and periodically send the broadcast that is used for surveying described first terminal in network, so that described first terminal when receiving described broadcast, determines according to the terminal name of described first terminal whether described broadcast is to send to self.
17. device according to claim 14, is characterized in that, described the first link block specifically is used for:
Receive the sign of the second terminal by the described first terminal of general-purpose serial bus USB interface transmission, and according to the sign of described first terminal, identify described first terminal; Wherein said the second terminal is connected with self by USB interface.
18. device according to claim 14, is characterized in that, described device also comprises:
The second sending module, be used for to receive the operational order that described first terminal is sent, and described operational order encapsulated, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
19. device according to claim 18, is characterized in that, described the second sending module specifically is used for:
Described operational order is sent to the second terminal by USB interface, so that described the second terminal encapsulates described operational order, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
20. a device that connects terminal, is characterized in that, described device comprises:
The 3rd sending module, after being used for being connected by USB interface with third terminal, periodically send the broadcast that is used for surveying first terminal in network, carry the IP address of self in described broadcast;
The 3rd receiver module, be used for receiving by network the feedback message that described first terminal returns, and carries the IP address of described first terminal and the sign of described first terminal in described feedback message;
The second link block, be used for the IP address according to described first terminal, send connection message to described first terminal, and the sign of described first terminal is sent to third terminal, so that described third terminal identifies described first terminal according to the sign of described first terminal.
21. device according to claim 20, is characterized in that, described device also comprises:
The 4th receiver module, be used for receiving the configuration information that is used for sending broadcast that third terminal sends, and carries the IP address of first terminal or the terminal name of first terminal in described configuration information.
22. device according to claim 21, is characterized in that, described the 3rd sending module comprises:
The 3rd transmitting element,, for the IP address of the described first terminal that carries according to described configuration information, periodically send the broadcast that is used for surveying described first terminal in network; Perhaps,
The 4th transmitting element, be used for the terminal name of described first terminal is added into broadcast, and periodically send the broadcast that is used for surveying described first terminal in network, so that described first terminal when receiving described broadcast, determines according to the terminal name of described first terminal whether described broadcast is to send to self.
23. device according to claim 20, is characterized in that, described device also comprises:
The 4th sending module, be used for receiving the operational order that described third terminal sends, and described operational order encapsulated, and, according to the IP address of described first terminal, by network, the operational order of described encapsulation is transmitted to described first terminal.
24. a device that connects terminal, is characterized in that, described device comprises:
The 5th receiver module, be used for receiving broadcast by network, carries the IP address of the terminal that sends described broadcast in described broadcast;
The 5th sending module, be used for the IP address according to the terminal that sends described broadcast, to described terminal, sends feedback message, carries the IP address of self and the sign of self in described feedback message;
The 3rd link block, be used for receiving the connection message that described terminal sends, and with described terminal, by network, connects.
25. device according to claim 24, is characterized in that, also carries the title of terminal to be connected in described broadcast;
Described the 5th sending module specifically is used for:
When the terminal name that carries is identical with self terminal name,, according to the IP address of the terminal of the described broadcast of transmission, to described terminal, return to feedback message in determining described broadcast.
26. device according to claim 24, is characterized in that, described device also comprises:
The 6th receiver module, be used for receiving by network the operational order of the terminal transmission that connects with self, and according to described operational order, operate.
CN201310329878.5A 2013-07-31 2013-07-31 A kind of method and device connecting terminal Active CN103401738B (en)

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 true CN103401738A (en) 2013-11-20
CN103401738B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
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
CN105991386A (en) * 2015-01-28 2016-10-05 阿里巴巴集团控股有限公司 Computer and terminal connection method, device and system
CN107102874A (en) * 2017-04-10 2017-08-29 南京优通信息科技股份有限公司 A kind of concurrent installation method of application program and system
CN110418311A (en) * 2018-04-28 2019-11-05 华为技术有限公司 A kind of interconnected method based on multiple terminals, device 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)

* Cited by examiner, † Cited by third party
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
CN103051694A (en) * 2012-12-12 2013-04-17 北京奇虎科技有限公司 Method for controlling equipment by mobile communication terminal and mobile communication terminal
CN103051693A (en) * 2012-12-12 2013-04-17 北京奇虎科技有限公司 Equipment control method and mobile communication terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
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
CN103051694A (en) * 2012-12-12 2013-04-17 北京奇虎科技有限公司 Method for controlling equipment by mobile communication terminal and mobile communication terminal
CN103051693A (en) * 2012-12-12 2013-04-17 北京奇虎科技有限公司 Equipment control method and mobile communication terminal
CN103024062A (en) * 2012-12-24 2013-04-03 腾讯科技(深圳)有限公司 Data sharing method, clients and data sharing system

Cited By (6)

* Cited by examiner, † Cited by third party
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
CN105991386A (en) * 2015-01-28 2016-10-05 阿里巴巴集团控股有限公司 Computer and terminal connection method, device and system
CN107102874A (en) * 2017-04-10 2017-08-29 南京优通信息科技股份有限公司 A kind of concurrent installation method of application program and system
CN110418311A (en) * 2018-04-28 2019-11-05 华为技术有限公司 A kind of interconnected method based on multiple terminals, device 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

Also Published As

Publication number Publication date
CN103401738B (en) 2017-03-01

Similar Documents

Publication Publication Date Title
CN103401738A (en) Terminal connecting method and terminal connecting device
CN107463499B (en) ADB remote connection method, device, equipment and storage medium
KR102110698B1 (en) Terminal interconnection method, device and storage medium
CN102891890B (en) Exchange method between a kind of terminal and relevant device, system
CN113301568B (en) Network distribution method and device and intelligent household equipment
CN104967585A (en) Method for remote debugging of mobile terminal and apparatus thereof
CN104503378A (en) Robot and household electrical appliance control method based on robot
CN102869123A (en) Virtual peripheral data acquisition method and system applicable to intelligent display equipment
WO2013129102A1 (en) Information processing system, information processing method, mobile phone unit, server and control method and control program for system, phone unit, and server
US9836958B2 (en) Device control method, server, system and computer storage medium
KR20060082700A (en) Apparatus and method for checking performance of wireless data network
JP2010093735A (en) Communication system, host apparatus and terminal device
CN110062054B (en) Remote control method and system for Internet of things equipment
CN109873728A (en) A kind of terminal test method, device and storage medium
EP2905938B1 (en) Method for acquiring locating information, terminal and mobile broadband interface model (mbim) device
CN103823771A (en) Remote communication method and remote communication system
CN104181880A (en) Communication remote control system and method based on mobile terminal
CN104461978B (en) Method and device for unidirectional data transmission
CN104076792A (en) Frequency converter remote monitoring system based on internet
CN204089848U (en) A kind of television teaching system based on NFC
CN106850554B (en) Method and device for dual-system directional connection
CN107465724A (en) Download method, user equipment and the application server of application program
CN107277107B (en) Application debugging method, device and system
CN103078902A (en) Data transmission method and device of embedded monitoring equipment
CN105263194A (en) Method and device for establishing communication connection between mobile equipment and fixed equipment

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 of 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