CN103516567A - Method and system for equipment discovery and server - Google Patents

Method and system for equipment discovery and server Download PDF

Info

Publication number
CN103516567A
CN103516567A CN201210213335.2A CN201210213335A CN103516567A CN 103516567 A CN103516567 A CN 103516567A CN 201210213335 A CN201210213335 A CN 201210213335A CN 103516567 A CN103516567 A CN 103516567A
Authority
CN
China
Prior art keywords
equipment
described
information
gateway device
connected
Prior art date
Application number
CN201210213335.2A
Other languages
Chinese (zh)
Inventor
张新辉
毛小波
陈柏松
欧阳剑玲
王灿
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to CN201210213335.2A priority Critical patent/CN103516567A/en
Publication of CN103516567A publication Critical patent/CN103516567A/en

Links

Abstract

The invention, which belongs to the internet terminal field, discloses a method and system for equipment discovery and a server. The method comprises the following steps that: at least two piece of equipment send respective equipment information to the server, wherein each piece of equipment information includes information of gateway equipment connected with the corresponding equipment; the server determines whether the two piece of equipment are connected or not according to the information of the gateway equipment; if the server determines that the two piece of equipment can be connected, all or parts of equipment information of the two piece of equipment is feedbakced to each other. According to the invention, the server is used for collecting and issuing equipment information, thereby solving a problem that equipment discovery can not be realized when broadcasting or multi-broadcasting can not be realized in a local area network. Therefore, an effect that equipment discovery can be realized perfectly even when the broadcasting or multi-broadcasting can not be used in the local area network and thus communication between equipment can be established can be realized.

Description

Method for discovering equipment, system and server

Technical field

The present invention relates to internet terminal field, particularly a kind of method for discovering equipment, system and server.

Background technology

Along with the development of computer technology and the Internet, the various device that appears at family, small business or public place is more and more.Such as under same local area network (LAN), may there is many smart mobile phones, personal desktop computer, notebook, printer, TV or panel computer etc. equipment simultaneously.Between these equipment, there is the demand of communication mutually.

In prior art, conventionally adopting Upnp(Universal Plug and Play, UPnP) technology solves under same local area network (LAN), the communication requirement between each equipment.Specifically, the method for discovering equipment that adopts Upnp technology to realize can comprise: first, current device is sent and has claim information to the miscellaneous equipment in same local area network (LAN) by the mode of broadcast or multicast, there is the relevant recommended information that includes the service that current device can provide in claim information in this, such as, current device can be a printer, and the service that can provide comprises scanning and prints; The 3rd, miscellaneous equipment is receiving after this exists claim information, set up and communicate by letter with the current device that has its interested service, such as, miscellaneous equipment can be a PC, there is demand in the print service that it provides current device, between PC and printer, can set up communication.

In realizing process of the present invention, inventor finds that prior art at least exists following problem: owing to there is claim information, be that mode by broadcast or multicast sends, but on the one hand, (router is the networking equipment that builds the most frequently used and most critical of local area network (LAN) to the router of selling on market, being commonly used to use as gateway device) major part all gives tacit consent to and closes Upnp function, now in local area network (LAN), cannot adopt Upnp technology to realize above-mentioned method for discovering equipment; On the other hand, even if router has been enabled Upnp function, but because the reason of router bridge joint or setting, cannot use broadcast or multicast, so also cannot adopt Upnp technology to realize above-mentioned method for discovering equipment, such as, two router bridge joints are realized large-scale local area network (LAN), if now the subnet section under two routers is different, cannot realize the broadcast across subnet section; If router is set up, forbid broadcast or multicast, also cannot realize broadcast or multicast.

Summary of the invention

In order to solve broadcast in local area network (LAN) or multicast cannot use time, cannot realize the problem of existing equipment discover method, the embodiment of the present invention provides a kind of method for discovering equipment, system and server.Described technical scheme is as follows:

On the one hand, provide a kind of method for discovering equipment, described method comprises:

At least two device-to-servers send facility information separately, and each facility information comprises the information of the gateway device being connected with corresponding device;

Described server judges according to the information of described gateway device whether two equipment can be communicated with;

If described server determines two equipment, can be communicated with, all or part of facility information of described two equipment be fed back to the other side.

Further, described at least two device-to-servers also comprise before sending facility information separately:

Under each equipment judgement, in local area network (LAN), can use broadcast or multicast transmitting apparatus information;

If can, in affiliated local area network (LAN), use broadcast or multicast to send described facility information;

If not, carry out to the step of server transmitting apparatus information.

Further, described server also comprises before judging according to the information of described gateway device whether two equipment can be communicated with:

The facility information of at least two equipment described in described server receives, each facility information comprises the unique identification information of the gateway device being connected with corresponding device, and according to the data packet analysis of the described facility information of carrying, obtains the public network address of the gateway device that is connected with corresponding device.

Further, described server judges that according to the information of described gateway device whether two equipment can be communicated with, and specifically comprise:

Whether the information of the gateway device that described server judgement is connected with two equipment conforms to a predetermined condition, and if so, judges that described two equipment can be communicated with, and wherein, the information of described gateway device comprises unique identification information or public network address; Described predetermined condition comprise in following condition any one or multiple:

The unique identification information of the gateway device that described two equipment are connected is identical;

And/or the public network address of the gateway device that described two equipment are connected is identical;

And/or the public network address of the gateway device that described two equipment are connected belongs to same C class subnet.

Further, each facility information comprises at least one in arranging of unique identifying information, LAN IP address, device name, device type, information on services and the observability of corresponding device.

Further, described at least two equipment belong to identical or different local area network (LAN)s, and described server is positioned at outside described local area network (LAN).

On the other hand, the invention provides a kind of system for discovering, described system comprises: at least two equipment and server;

At least two equipment, for sending facility information separately to described server, each facility information comprises the information of the gateway device being connected with corresponding device;

Described server, for judging according to the information of described gateway device whether two equipment can be communicated with; If described server determines two equipment, can be communicated with, all or part of facility information of described two equipment be fed back to the other side.

Further, described each equipment, also comprises:

Network judge module, the first sending module and the second sending module;

Can described network judge module, use broadcast or multicast transmitting apparatus information for local area network (LAN) under judging;

Described the first sending module, if for described network judge module judgment result is that can, in affiliated local area network (LAN), use broadcast or multicast to send described facility information;

Described the second sending module, if the determination result is NO for described network judge module, carries out to the step of server transmitting apparatus information.

Further, described server, also comprises:

Information receiving module and information analysis module;

Described information receiving module, for the facility information of at least two equipment described in receiving, each facility information comprises the unique identification information of the gateway device being connected with corresponding device;

Described information analysis module, for obtaining the public network address of the gateway device that is connected with corresponding device according to the data packet analysis of the described facility information of carrying.

Further, described server, specifically comprises:

Condition judgment module;

Described condition judgment module, for judging whether the information of the gateway device being connected with two equipment conforms to a predetermined condition, if so, judge that described two equipment can be communicated with, wherein, the information of described gateway device comprises unique identification information or public network address; Described predetermined condition comprise in following condition any one or multiple:

The unique identification information of the gateway device that described two equipment are connected is identical;

And/or the public network address of the gateway device that described two equipment are connected is identical;

And/or the public network address of the gateway device that described two equipment are connected belongs to same C class subnet.

Further, each facility information comprises at least one in arranging of unique identifying information, LAN IP address, device name, device type, information on services and the observability of corresponding device.

Further, described at least two equipment belong to identical or different local area network (LAN)s, and described server is positioned at outside described local area network (LAN).

On the one hand, the embodiment of the present invention also provides a kind of server, comprising again:

Information receiving module, the facility information sending for receiving at least two equipment, each facility information comprises the information of the gateway device being connected with corresponding device;

Condition judgment module, for judging according to the information of described gateway device whether two equipment can be communicated with;

Information feedback module, can be communicated with if determine two equipment for described condition judgment module, all or part of facility information of described two equipment is fed back to the other side.

Further, described server, also comprises:

Information analysis module;

Described information receiving module, specifically for the facility information of at least two equipment described in receiving, each facility information comprises the unique identification information of the gateway device being connected with corresponding device;

Described information analysis module, for obtaining the public network address of the gateway device that is connected with corresponding device according to the data packet analysis of the described facility information of carrying.

Further, described condition judgment module, whether the information of the gateway device being connected with two equipment specifically for judgement conforms to a predetermined condition, if, judge that described two equipment can be communicated with, wherein, the information of described gateway device comprises unique identification information or public network address; Described predetermined condition comprise in following condition any one or multiple:

The unique identification information of the gateway device being connected with described two equipment is identical;

And/or the public network address of the gateway device being connected with described two equipment is identical;

And/or the public network address of the gateway device being connected with described two equipment belongs to same C class subnet.

The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:

By utilizing server to gather and issuing facility information, can solve broadcast in local area network (LAN) or multicast cannot use time, cannot realize the problem of device discovery, even if having reached broadcast or the multicast in local area network (LAN) cannot use, also can comparatively ideally realize device discovery, and then the effect of the communication between apparatus for establishing.

Accompanying drawing explanation

In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.

Fig. 1 is the structural representation of the related implementation environment of the embodiment of the present invention;

Fig. 2 is the method flow diagram of the method for discovering equipment that provides of the embodiment of the present invention one;

Fig. 3 is the method flow diagram of the method for discovering equipment that provides of the embodiment of the present invention two;

Fig. 4 A to Fig. 4 E is the enforcement schematic diagram of the method for discovering equipment that provides of the embodiment of the present invention two;

Fig. 5 is the system construction drawing of the system for discovering that provides of the embodiment of the present invention three;

Fig. 6 is the block diagram of the server that provides of the embodiment of the present invention four.

Embodiment

For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.

Please refer to Fig. 1, it shows the structural representation of the related implementation environment of the embodiment of the present invention.This implementation environment comprises at least two equipment 120 and server 140.

At least two equipment 120 can be smart mobile phone, personal desktop computer, notebook, printer, TV or panel computer etc. equipment.Each equipment 120 is the equipment that is positioned at local area network (LAN) conventionally.

Server 140 can be one, two or multiple servers or virtual cloud computing center, and server 140 is connected with at least two equipment 120 by network.

Embodiment mono-

Please refer to Fig. 2, it shows the method flow diagram of the method for discovering equipment that the embodiment of the present invention one provides.This method for discovering equipment can be applied in implementation environment as shown in Figure 1, and this method for discovering equipment can comprise:

Step 202, at least two device-to-servers send facility information separately, and each facility information comprises the information of the gateway device being connected with corresponding device;

In the present embodiment, first a server is set, this server can be arranged in local area network (LAN) or outside local area network (LAN), and when this Servers installed is within local area network (LAN), a plurality of equipment in same local network can send facility information separately to this server; When this Servers installed is outside local area network (LAN), a plurality of equipment that are positioned within identical or LAN all can send facility information separately to this default server.Each facility information at least comprises the information of the gateway device being connected with corresponding device, such as, device A is a panel computer, gateway device in local area network (LAN) under it is router-A, when device A is to server transmitting apparatus information outside affiliated local area network (LAN), this facility information at least comprises the MAC Address of router-A, and MAC Address can be thought the unique identifying information of router-A.

Step 204, server judges according to the information of gateway device whether two equipment can be communicated with;

Server receives the facility information that each equipment sends, owing to including the information of the gateway device being connected with corresponding device in each facility information, so server can judge whether two equipment can be communicated with according to the information of the gateway device comprising in each facility information.The information of gateway device can be unique identifying information (such as MAC Address) or the public network IP address of gateway device.Simply, server judges according to the information of the gateway device comprising in each facility information whether two equipment belong to same local area network (LAN), and if so, two equipment can be communicated with.

Step 206, can be communicated with if server determines two equipment, all or part of facility information of two equipment is fed back to the other side.

If server determines two equipment, can be communicated with, all or part of facility information of two equipment be fed back to the other side.Such as, server determines device A and equipment B can be communicated with, and the facility information of device A is fed back to equipment B; And/or, the facility information of equipment B is fed back to device A.The facility information of an equipment, not only can comprise the information of the gateway device being connected with this equipment, at least one during unique identifying information, LAN IP address, device name, device type, information on services and the observability that can also comprise this equipment arranges.

In sum, the method for discovering equipment that the present embodiment provides, by utilizing server to gather and issuing facility information, can solve broadcast in local area network (LAN) or multicast cannot use time, cannot realize the problem of device discovery, even if reached broadcast or the multicast in local area network (LAN), cannot use, also can comparatively ideally realize device discovery, and then the effect of the communication between apparatus for establishing.

Embodiment bis-

Please refer to Fig. 3, it shows the method flow diagram that the embodiment of the present invention two provides.This method for discovering equipment can be applied in implementation environment as shown in Figure 1, and this method for discovering equipment can comprise:

Can step 302, use broadcast or multicast transmitting apparatus information in local area network (LAN) under each equipment judgement;

In the specific implementation, local area network (LAN) can be more than one, equipment can be two or more, each equipment may be arranged in identical or different local area network (LAN)s, can under first each equipment judge, use broadcast or multicast transmitting apparatus information in local area network (LAN), facility information now can comprise at least one in arranging of unique identifying information, LAN IP address, device name, device type, information on services and the observability of corresponding device.If can, enter step 304; If not, enter step 306.

Step 304, if can, broadcast or multicast transmitting apparatus information in affiliated local area network (LAN), used;

If local area network (LAN) can be used broadcast or multicast transmitting apparatus information under equipment judgement self, equipment directly carrys out transmitting apparatus information with broadcast or multicast in affiliated local area network (LAN) so.Now, equipment comes the process of transmitting apparatus information identical or similar with Upnp technology in prior art with broadcast or multicast.

Step 306, if not, sends facility information separately to server, and each facility information comprises the information of the gateway device being connected with corresponding device.

If local area network (LAN) can not carry out transmitting apparatus information with broadcast or multicast under equipment judgement self, also cannot be with identical or carry out device discovery similar in appearance to the mode of Upnp technology, the form that equipment adopts clean culture is so to being positioned at server outside local area network (LAN) and sending self facility information.Now, the facility information of equipment at least comprises the information of the gateway device being connected with this equipment, at least one during unique identifying information, LAN IP address, device name, device type, information on services and the observability that can also comprise this equipment arranges.Such as, for device A, its facility information can comprise:

The information of the gateway device being connected with device A: the MAC Address of the router-A being connected with device A;

The unique identifying information of this device A: the MAC Address of device A;

The IP address of device A in local area network (LAN): 192.168.1.120;

The title of device A: panel computer A;

The type of device A: IOS(I Operating System, the handheld equipment operating system that American apple company produces) equipment;

The information on services of device A: take pictures, demonstration, accesses network;

The observability setting of device A: visible in local area network (LAN).

Step 308, server receives the facility information of at least two equipment, each facility information comprises the unique identification information of the gateway device being connected with corresponding device, and according to the data packet analysis of load bearing equipment information, obtains the public network address of the gateway device that is connected with corresponding device.

Server receives the facility information that each equipment sends, in these facility informations, at least include the unique identification information of the gateway device being connected with corresponding device, then server can also obtain according to the data packet analysis of load bearing equipment information the public network address of the gateway device that is connected with corresponding device.Such as, server can receive the facility information of device A, and this facility information comprises the mac address information of the router-A being connected with device A, and meanwhile, server can also obtain according to the data packet analysis of load bearing equipment information the public network address of router-A.

Step 310, whether the information of the gateway device that server judgement is connected with two equipment conforms to a predetermined condition;

Server can judge whether two equipment can be communicated with.Say simply, the information of the gateway device that server is connected according to each equipment judges whether two equipment belong to same local area network (LAN), and if so, two equipment can be communicated with.Wherein, the information of gateway device can be the unique identification information of gateway device and/or the public network address of gateway device.When specifically judging whether two equipment can be communicated with, server can judge whether the information of the gateway device that two equipment are connected conforms to a predetermined condition, and if so, judges that two equipment can be communicated with.Predetermined condition can be in following condition any one or multiple:

The unique identification information of the gateway device that two equipment is connected is identical;

And/or the public network address of the gateway device that two equipment is connected is identical;

And/or the public network address of the gateway device that two equipment is connected belongs to same C class subnet.

Also, if the unique identification information of the gateway device that two equipment is connected is identical, the gateway device that represents two equipment is same router, and two equipment should belong to same local area network (LAN) so; If the public network address of the gateway device that two equipment is connected is identical, the gateway device that represents two equipment is a plurality of routers of same router or bridge joint, and two equipment also should belong to same local area network (LAN) so; If the public network address of the gateway device that two equipment is connected belongs to same C class subnet, the gateway device that represents two equipment is a plurality of routers of bridge joint, and two equipment also should belong to same local area network (LAN) so.

More particularly, when the unique identification information of gateway device utilizes the MAC Address of router to represent, predetermined condition can be also:

The MAC Address of the gateway device that two equipment is connected is identical, and public network address is also identical, and corresponding network topology as shown in Figure 4 A;

The MAC Address of the gateway device that two equipment is connected is identical, and public network address belongs to same C class subnet, and corresponding network topology as shown in Figure 4 B;

The MAC Address of the gateway device that two equipment is connected is different, and public network address belongs to same C class subnet, and corresponding network topology as shown in Figure 4 C;

The MAC Address of the gateway device that two equipment is connected is different, and public network address is identical, and corresponding network topology as shown in Figure 4 D;

The MAC Address of the gateway device that two equipment is connected is identical, and public network address is different, and corresponding network topology as shown in Figure 4 E.

In summary, the unique identification information of the gateway device being only connected at two equipment is different, public network address also not identical, public network address do not belong to three conditions such as same C class subnet all in ungratified situation yet, just judge that two equipment can not be communicated with.

Step 312, can be communicated with if server determines two equipment, all or part of facility information of two equipment is fed back to the other side.

If server determines two equipment, can be communicated with, all or part of facility information of two equipment be fed back to the other side.Such as, server determines device A and equipment B can be communicated with, and the facility information of device A is fed back to equipment B; And/or, the facility information of equipment B is fed back to device A.

Several points to note are: first, server is when feeding back to device A, the list of devices of all equipment that can be communicated with device A can be fed back to device A simultaneously, such as, equipment B, equipment C and equipment E can be communicated with device A, and server can feed back to device A by the facility information generation list information of equipment B, equipment C and equipment E; The second, server is during to the facility information of device A feedback device B, and the part in can the facility information of a feedback device B, such as a unique identifying information of feedback device B is, the information on services of the title of equipment B and equipment B.

In sum, the method for discovering equipment that the present embodiment provides, by utilizing server to gather and issuing facility information, can solve broadcast in local area network (LAN) or multicast cannot use time, cannot realize the problem of device discovery, even if reached broadcast or the multicast in local area network (LAN), cannot use, also can comparatively ideally realize device discovery, and then the effect of the communication between apparatus for establishing.

Embodiment tri-

Please refer to Fig. 5, it shows the block diagram of the system for discovering that the embodiment of the present invention three provides.This system for discovering comprises at least two equipment 520 and server 540.

At least two equipment 520 facility information for sending separately to server 540, each facility information comprises the information of the gateway device being connected with corresponding device.At least two equipment 520 can belong to identical or different local area network (LAN)s, and server 540 can be positioned at outside local area network (LAN).

Server 540 is for judging according to the information of gateway device whether two equipment can be communicated with; If server 540 determines two equipment, can be communicated with, all or part of facility information of two equipment be fed back to the other side.

Specifically, each equipment 520 can comprise: network judge module 522, the first sending module 524 and the second sending module 526.Wherein, can network judge module 522 use broadcast or multicast transmitting apparatus information for local area network (LAN) under judging; If the first sending module 524, for the energy that judgment result is that of network judge module 522, is used broadcast or multicast transmitting apparatus information in affiliated local area network (LAN); If the second sending module 526 is for network judge module 522, the determination result is NO, carries out to the step of server transmitting apparatus information.

Specifically, server 540 can comprise: information receiving module 542, information analysis module 544, condition judgment module 546 and information feedback module 548.Wherein, information receiving module 542 is for receiving the facility information of at least two equipment, each facility information comprises the unique identification information of the gateway device being connected with corresponding device, and each facility information can also comprise at least one in arranging of unique identifying information, LAN IP address, device name, device type, information on services and the observability of corresponding device; Information analysis module 544 is for the public network address of the gateway device that obtains being connected with corresponding device according to the data packet analysis of load bearing equipment information.Condition judgment module 546, for judging whether the information of the gateway device being connected with two equipment conforms to a predetermined condition, if so, judges that two equipment can be communicated with, and wherein, the information of gateway device comprises unique identification information or public network address; Predetermined condition comprise in following condition any one or multiple:

The unique identification information of the gateway device that two equipment is connected is identical;

And/or the public network address of the gateway device that two equipment is connected is identical;

And/or the public network address of the gateway device that two equipment is connected belongs to same C class subnet.

Information feedback module 548 determines two equipment for condition judgment module 546 and can be communicated with, and all or part of facility information of two equipment is fed back to the other side.

In sum, the system for discovering that the present embodiment provides, by utilizing server to gather and issuing facility information, can solve broadcast in local area network (LAN) or multicast cannot use time, cannot realize the problem of device discovery, even if reached broadcast or the multicast in local area network (LAN), cannot use, also can comparatively ideally realize device discovery, and then the effect of the communication between apparatus for establishing.

It should be noted that: the system for discovering that above-described embodiment provides is when discovering device, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure of the equipment of being about to is divided into different functional modules, to complete all or part of function described above.In addition, the system for discovering that above-described embodiment provides and method for discovering equipment embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.

Embodiment tetra-

Please refer to Fig. 6, it shows the block diagram of the server that the embodiment of the present invention four provides.This server can comprise information receiving module 620, condition judgment module 640 and information feedback module 660.

The facility information that information receiving module 620 sends for receiving at least two equipment, each facility information comprises the information of the gateway device being connected with corresponding device.

Condition judgment module 640 is for judging according to the information of gateway device whether two equipment can be communicated with.

If information feedback module 660 determines two equipment for condition judgment module 640, can be communicated with, all or part of facility information of two equipment be fed back to the other side.

This server can also comprise: information analysis module 630.Specifically:

Information receiving module 620 is specifically for receiving the facility information of at least two equipment, and each facility information comprises the unique identification information of the gateway device being connected with corresponding device.

Information analysis module 640 is for the public network address of the gateway device that obtains being connected with corresponding device according to the data packet analysis of load bearing equipment information.

Specifically, whether the information of the gateway device that condition judgment module 640 is connected with two equipment specifically for judgement conforms to a predetermined condition, and if so, judges that two equipment can be communicated with, wherein, the information of gateway device comprises unique identification information or public network address; Predetermined condition comprise in following condition any one or multiple:

The unique identification information of the gateway device that two equipment is connected is identical;

And/or the public network address of the gateway device that two equipment is connected is identical;

And/or the public network address of the gateway device that two equipment is connected belongs to same C class subnet.

In sum, the server that the present embodiment provides, by gathering and issue the facility information of the equipment in each local area network (LAN), can solve broadcast in local area network (LAN) or multicast cannot use time, cannot realize the problem of device discovery, even if reached broadcast or the multicast in local area network (LAN), cannot use, also can comparatively ideally realize device discovery, and then the effect of the communication between apparatus for establishing.

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 hardware that instruction is relevant 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 (15)

1. a method for discovering equipment, is characterized in that, described method comprises:
At least two device-to-servers send facility information separately, and each facility information comprises the information of the gateway device being connected with corresponding device;
Described server judges according to the information of described gateway device whether two equipment can be communicated with;
If described server determines two equipment, can be communicated with, all or part of facility information of described two equipment be fed back to the other side.
2. method for discovering equipment according to claim 1, is characterized in that, described at least two device-to-servers also comprise before sending facility information separately:
Under each equipment judgement, in local area network (LAN), can use broadcast or multicast transmitting apparatus information;
If can, in affiliated local area network (LAN), use broadcast or multicast to send described facility information;
If not, carry out to the step of server transmitting apparatus information.
3. method for discovering equipment according to claim 1, is characterized in that, described server also comprises before judging according to the information of described gateway device whether two equipment can be communicated with:
The facility information of at least two equipment described in described server receives, each facility information comprises the unique identification information of the gateway device being connected with corresponding device, and according to the data packet analysis of the described facility information of carrying, obtains the public network address of the gateway device that is connected with corresponding device.
4. according to the method for discovering equipment described in claim 1 or 3, it is characterized in that, described server judges that according to the information of described gateway device whether two equipment can be communicated with, and specifically comprise:
Whether the information of the gateway device that described server judgement is connected with two equipment conforms to a predetermined condition, and if so, judges that described two equipment can be communicated with, and wherein, the information of described gateway device comprises unique identification information or public network address; Described predetermined condition comprise in following condition any one or multiple:
The unique identification information of the gateway device that described two equipment are connected is identical;
And/or the public network address of the gateway device that described two equipment are connected is identical;
And/or the public network address of the gateway device that described two equipment are connected belongs to same C class subnet.
5. according to the arbitrary described method for discovering equipment of claims 1 to 3, it is characterized in that, each facility information also comprises at least one in arranging of unique identifying information, LAN IP address, device name, device type, information on services and the observability of corresponding device.
6. method for discovering equipment according to claim 1, is characterized in that, described at least two equipment belong to identical or different local area network (LAN)s, and described server is positioned at outside described local area network (LAN).
7. a system for discovering, is characterized in that, described system comprises: at least two equipment and server;
At least two equipment, for sending facility information separately to described server, each facility information comprises the information of the gateway device being connected with corresponding device;
Described server, for judging according to the information of described gateway device whether two equipment can be communicated with; If described server determines two equipment, can be communicated with, all or part of facility information of described two equipment be fed back to the other side.
8. system for discovering according to claim 7, is characterized in that, described each equipment, specifically comprises:
Network judge module, the first sending module and the second sending module;
Can described network judge module, use broadcast or multicast transmitting apparatus information for local area network (LAN) under judging;
Described the first sending module, if for described network judge module judgment result is that can, in affiliated local area network (LAN), use broadcast or multicast to send described facility information;
Described the second sending module, if the determination result is NO for described network judge module, carries out to the step of server transmitting apparatus information.
9. system for discovering according to claim 7, is characterized in that, described server, specifically comprises:
Information receiving module and information analysis module;
Described information receiving module, for the facility information of at least two equipment described in receiving, each facility information comprises the unique identification information of the gateway device being connected with corresponding device;
Described information analysis module, for obtaining the public network address of the gateway device that is connected with corresponding device according to the data packet analysis of the described facility information of carrying.
10. according to the system for discovering described in claim 7 or 9, it is characterized in that, described server, specifically comprises: condition judgment module;
Described condition judgment module, for judging whether the information of the gateway device being connected with two equipment conforms to a predetermined condition, if so, judge that described two equipment can be communicated with, wherein, the information of described gateway device comprises unique identification information or public network address; Described predetermined condition comprise in following condition any one or multiple:
The unique identification information of the gateway device that described two equipment are connected is identical;
And/or the public network address of the gateway device that described two equipment are connected is identical;
And/or the public network address of the gateway device that described two equipment are connected belongs to same C class subnet.
11. according to the arbitrary described system for discovering of claim 7 to 9, it is characterized in that, each facility information also comprises at least one in arranging of unique identifying information, LAN IP address, device name, device type, information on services and the observability of corresponding device.
12. system for discovering according to claim 7, is characterized in that, described at least two equipment belong to identical or different local area network (LAN)s, and described server is positioned at outside described local area network (LAN).
13. 1 kinds of servers, is characterized in that, comprising:
Information receiving module, the facility information sending for receiving at least two equipment, each facility information comprises the information of the gateway device being connected with corresponding device;
Condition judgment module, for judging according to the information of described gateway device whether two equipment can be communicated with;
Information feedback module, can be communicated with if determine two equipment for described condition judgment module, all or part of facility information of described two equipment is fed back to the other side.
14. servers according to claim 13, is characterized in that, described server, also comprises:
Information analysis module;
Described information receiving module, specifically for the facility information of at least two equipment described in receiving, each facility information comprises the unique identification information of the gateway device being connected with corresponding device;
Described information analysis module, for obtaining the public network address of the gateway device that is connected with corresponding device according to the data packet analysis of the described facility information of carrying.
15. according to the server described in claim 13 or 14, it is characterized in that,
Described condition judgment module, whether the information of the gateway device being connected with two equipment specifically for judgement conforms to a predetermined condition, and if so, judges that described two equipment can be communicated with, wherein, the information of described gateway device comprises unique identification information or public network address; Described predetermined condition comprise in following condition any one or multiple:
The unique identification information of the gateway device that described two equipment are connected is identical;
And/or the public network address of the gateway device that described two equipment are connected is identical;
And/or the public network address of the gateway device that described two equipment are connected belongs to same C class subnet.
CN201210213335.2A 2012-06-26 2012-06-26 Method and system for equipment discovery and server CN103516567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210213335.2A CN103516567A (en) 2012-06-26 2012-06-26 Method and system for equipment discovery and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210213335.2A CN103516567A (en) 2012-06-26 2012-06-26 Method and system for equipment discovery and server

Publications (1)

Publication Number Publication Date
CN103516567A true CN103516567A (en) 2014-01-15

Family

ID=49898643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210213335.2A CN103516567A (en) 2012-06-26 2012-06-26 Method and system for equipment discovery and server

Country Status (1)

Country Link
CN (1) CN103516567A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618672A (en) * 2014-12-31 2015-05-13 小米科技有限责任公司 Video recording method and device
CN104660685A (en) * 2015-01-30 2015-05-27 小米科技有限责任公司 Method and device for obtaining equipment information
CN105873202A (en) * 2016-06-20 2016-08-17 腾讯科技(深圳)有限公司 Method for starting equipment finding function, server and terminal equipment
WO2017000147A1 (en) * 2015-06-30 2017-01-05 深圳走天下科技有限公司 Data transmission method and apparatus, and data reception method and apparatus
WO2017067327A1 (en) * 2015-10-22 2017-04-27 上海斐讯数据通信技术有限公司 Method for establishing persistent connection between multiple smart devices and server, and smart device
CN107493213A (en) * 2017-09-26 2017-12-19 四川长虹电器股份有限公司 A kind of method for improving lan device ability of discovery

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842995A (en) * 2003-06-24 2006-10-04 特鲁波斯网络公司 A method of wireless roaming
CN101043405A (en) * 2006-03-23 2007-09-26 株式会社日立制作所 Network system, network device, and network belonging judgment method
CN101902826A (en) * 2010-06-30 2010-12-01 北京乔讯科技有限公司 Method and system for establishing data connection
CN102130807A (en) * 2011-04-21 2011-07-20 中国科学技术大学苏州研究院 Equipment discovery method for realizing real-time dynamic networking in personal internet

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1842995A (en) * 2003-06-24 2006-10-04 特鲁波斯网络公司 A method of wireless roaming
CN101043405A (en) * 2006-03-23 2007-09-26 株式会社日立制作所 Network system, network device, and network belonging judgment method
CN101902826A (en) * 2010-06-30 2010-12-01 北京乔讯科技有限公司 Method and system for establishing data connection
CN102130807A (en) * 2011-04-21 2011-07-20 中国科学技术大学苏州研究院 Equipment discovery method for realizing real-time dynamic networking in personal internet

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618672A (en) * 2014-12-31 2015-05-13 小米科技有限责任公司 Video recording method and device
CN104618672B (en) * 2014-12-31 2018-09-04 小米科技有限责任公司 video recording method and device
CN104660685A (en) * 2015-01-30 2015-05-27 小米科技有限责任公司 Method and device for obtaining equipment information
WO2017000147A1 (en) * 2015-06-30 2017-01-05 深圳走天下科技有限公司 Data transmission method and apparatus, and data reception method and apparatus
WO2017067327A1 (en) * 2015-10-22 2017-04-27 上海斐讯数据通信技术有限公司 Method for establishing persistent connection between multiple smart devices and server, and smart device
CN105873202A (en) * 2016-06-20 2016-08-17 腾讯科技(深圳)有限公司 Method for starting equipment finding function, server and terminal equipment
CN107493213A (en) * 2017-09-26 2017-12-19 四川长虹电器股份有限公司 A kind of method for improving lan device ability of discovery

Similar Documents

Publication Publication Date Title
EP2692087B1 (en) Method of distributing information regarding one or more electrical devices and systems for the same
CN103428556B (en) The method and system of multi-screen interactive
CN102868916B (en) A kind ofly share the method for information, terminal and system to digital TV terminal
US9883376B2 (en) Apparatus and method for providing universal plug and play service based on Wi-Fi direct connection in portable terminal
US9923978B2 (en) Automated network service discovery and communication
CN101626596B (en) Method, device and system for generating service distributing strategy
CN104254844B (en) The network printer is exposed to WI FI clients
CN103944869B (en) Access the method and high in the clouds connector of remote resource
TWI509544B (en) Advertising, discovering, and using services through virtual access point interfaces
CN105430760B (en) Connection method and system between equipment
US8170481B2 (en) Techniques for discovering services provided in a wireless network
CN103581161B (en) Zero initialization system of network equipment and method thereof
CN100481832C (en) Communication device, edge router device, server device, communication system and communication method
CN103116477B (en) Output distribution system and method, output distributor
US20130039352A1 (en) Configuring a wireless network interface to provide a network service
CN102594711A (en) Message forwarding method and edge device therefor
TWI244295B (en) Method and system for simulating multiple independent client devices in a wired or wireless network
WO2013008998A1 (en) Wireless local area network access apparatus and operating method thereof
CN103763327A (en) Account number logging-in method and system
CN102916866B (en) A kind of data sharing method, terminal, server and system
AU2010307479A1 (en) Apparatus and method for establishing a personal network for providing a CPNS service
CN105759937A (en) Method for lowering terminal power consumption and terminal
JP2006129355A (en) Information processor, data transmission system, data transmission method, and program for performing the data transmission method on the information processor
CN101779477A (en) Base station initiated proximity service discovery be connected foundation
JP2015534677A (en) Instant messaging method, terminal, server and system

Legal Events

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

Application publication date: 20140115