CN103986631B - Lan device discover method and device - Google Patents

Lan device discover method and device Download PDF

Info

Publication number
CN103986631B
CN103986631B CN201410225973.5A CN201410225973A CN103986631B CN 103986631 B CN103986631 B CN 103986631B CN 201410225973 A CN201410225973 A CN 201410225973A CN 103986631 B CN103986631 B CN 103986631B
Authority
CN
China
Prior art keywords
described
equipment
found
agreements
agreement
Prior art date
Application number
CN201410225973.5A
Other languages
Chinese (zh)
Other versions
CN103986631A (en
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 CN201410225973.5A priority Critical patent/CN103986631B/en
Publication of CN103986631A publication Critical patent/CN103986631A/en
Application granted granted Critical
Publication of CN103986631B publication Critical patent/CN103986631B/en

Links

Abstract

The disclosure is directed to a kind of lan device discover method and device, relate to wireless communication technology field, lan device can be solved and find slower technical problem.Described method comprises: send at least two multicast messages in a local network according at least two agreements that discovering device self is supported; The the first multicast response message fed back after each is found device responds first multicast message described in receiving; Whether effective according to the described described listening port that each is found corresponding with other agreements in equipment of device identification detection that each is found equipment, obtain result of detection; The agreement that each equipment that is found described is supported is determined according to described result of detection.The disclosure is for finding the agreement that lan device and equipment are supported.

Description

Lan device discover method and device

Technical field

The disclosure relates to wireless communication technology field, particularly relates to a kind of lan device discover method and device.

Background technology

Along with the further covering of the universal of intelligent terminal and WLAN (wireless local area network), realizing file-sharing between multiple terminals in a local network becomes a kind of trend gradually, such as, the local file on mobile phone can be projected on TV and show.

When needs are in a local network to multimedia files such as the projection of other equipment picture, video, music, first need the protocol type that other equipment in discovery local area network (LAN) and other equipment are supported.In correlation technique, the main mode sending out multicast that adopts carrys out discovering device.Such as, A, B agreement supported by mobile phone, and mobile phone, when finding other equipment in local area network (LAN), needs in current local area network, send A agreement multicast and B agreement multicast; If there is Set Top Box in current local area network, and this Set Top Box supports A agreement and B agreement, then Set Top Box is successively to the listening port number of self institute's supported protocol of mobile phone feedback; Mobile phone, after the listening port number receiving Set Top Box feedback, just can find Set Top Box and know the protocol type that Set Top Box is supported.

In correlation technique, there are the following problems: when mobile phone and Set Top Box compatibility overlap agreement more, because the multicast mechanism of different agreement is different, there is the problem that certain protocol discovery Set Top Box process is slower.

Summary of the invention

For overcoming Problems existing in correlation technique, disclosure embodiment provides a kind of lan device discover method and device.

According to the first aspect of disclosure embodiment, a kind of lan device discover method is provided, comprises:

At least two multicast messages are sent in a local network according at least two agreements that discovering device self is supported, whether described at least two multicast messages are effective for detecting the listening port that in described local area network (LAN), each is found corresponding with described at least two agreements in equipment, and described at least two agreements are corresponding with described at least two multicast messages;

The the first multicast response message fed back after each is found device responds first multicast message described in receiving, described first multicast response message comprises the described effective information of each listening port being found corresponding with the first agreement in equipment and described each is found the device identification of equipment, described first agreement is the arbitrary agreement in described at least two agreements, and described first multicast message is multicast message corresponding with described first agreement in described at least two multicast messages;

Whether effective according to described device identification detection each listening port being found corresponding with other agreements in equipment described that each is found equipment, obtain result of detection, other agreements described for described in residue agreement at least two agreements except described first agreement, described result of detection comprises described each and is found effective listening port of equipment;

The agreement that each equipment that is found described is supported is determined according to described result of detection.

The technical scheme that embodiment of the present disclosure provides can realize following beneficial effect: use other agreements finding that fastest agreement is supported with regard to energy discovering device, compare and often overlap the mode that agreement all goes to send out other agreements that multicast message ability discovering device is supported, the protocol discovery speed that equipment and equipment are supported is faster.

Optionally, described whether effective according to the described listening port that each is found corresponding with other agreements in equipment of described device identification detection, obtain result of detection, comprising:

Send point-to-point probe message according to the described device identification that each is found equipment to each equipment of being found described, whether described point-to-point probe message is effective for detecting each listening port being found corresponding with other agreements described in equipment described;

Describedly determine to comprise the agreement that each equipment that is found described is supported according to described result of detection:

The Point-to-Point Data bag fed back after each is found point-to-point probe message described in device responds described in receiving, described Point-to-Point Data bag comprises the whether effective information of the described listening port that each is found corresponding with other agreements described in equipment;

The agreement that each equipment that is found described is supported is determined according to described Point-to-Point Data bag.

In possibility, can after discovering device supports an agreement, whether effective by sending the listening port that on point-to-point probe message detecting devices, other agreements are corresponding, because the transmitting procedure of Point-to-Point Data will faster than the transmitting procedure of multicast packet, so whether effective by the listening port sent on point-to-point probe message detecting devices, the speed that discovering device finds other agreements that other equipment are supported in local area network (LAN) can be improved.

Optionally, before the Point-to-Point Data bag that described in described reception, each feeds back after being found point-to-point probe message described in device responds, described method also comprises:

Receive described each be found other multicast messages of equipment feedback response after other multicast response message of feeding back, other multicast response message described comprise described each and are found the effective information of listening port corresponding with other agreements described in equipment and described each is found the device identification of equipment; Other multicast messages described are corresponding with other agreements described;

The agreement that each equipment that is found described is supported is determined according to other multicast response message described.

In possibility, Point-to-Point Data bag and multicast response message which, which discovering device just determine the protocol type that equipment is supported according to morning that feed back.Like this, ensure equipment and equipment supported protocol send out speed while, also improve the accuracy of discovery.

Optionally, the device identification that described in described basis, each is found equipment sends point-to-point probe message to each equipment of being found described, comprising:

Be found the device identification of equipment according to described each, be found to described each listening port that described in equipment, other agreements are corresponding and send point-to-point probe message;

Describedly determine to comprise the agreement that each equipment that is found described is supported according to described result of detection:

The Point-to-Point Data bag that described in receiving, each feeds back after being found the described point-to-point probe message of listening port response that described in equipment, other agreements are corresponding, described Point-to-Point Data bag comprises the whether effective information of the described listening port that each is found corresponding with other agreements described in equipment;

The agreement that each equipment that is found described is supported is determined according to described Point-to-Point Data bag.

In possibility, because the multicast response message by receiving at first has obtained the device identification of this equipment as IP address, and other agreements corresponding listening port numbering be known, therefore, point-to-point probe message can be sent directly to other listening ports of this equipment, and then whether can effectively determine according to these listening ports the agreement that this equipment is supported rapidly.

Optionally, described whether effective according to the described listening port that each is found corresponding with other agreements in equipment of described device identification detection, obtain result of detection, comprising:

Connect described each according to the described device identification that each is found equipment by transmission control protocol TCP and be found the listening port that described in equipment, other agreements are corresponding;

Describedly determine to comprise the agreement that each equipment that is found described is supported according to described result of detection:

When successfully connecting described listening port, determine that each equipment of being found described supports the agreement that described listening port is corresponding.

In possibility, adopt the agreement that direct TCP connected mode determination equipment is supported, due to after determining the equipment of being found, to set up the speed that TCP is connected faster with this equipment of being found, and therefore, the protocol discovery speed that equipment and equipment are supported is also faster.

According to the second aspect of disclosure embodiment, provide a kind of lan device to find device, comprising:

Sending module, at least two agreements for supporting according to discovering device self send at least two multicast messages in a local network, whether described at least two multicast messages are effective for detecting the listening port that in described local area network (LAN), each is found corresponding with described at least two agreements in equipment, and described at least two agreements are corresponding with described at least two multicast messages;

Receiver module, for receive described each be found device responds first multicast message after the first multicast response message of feeding back, described first multicast response message comprises the described effective information of each listening port being found corresponding with the first agreement in equipment and described each is found the device identification of equipment, described first agreement is the arbitrary agreement in described at least two agreements, and described first multicast message is multicast message corresponding with described first agreement in described at least two multicast messages;

Detecting module, for whether effective according to described device identification detection each listening port being found corresponding with other agreements in equipment described that each is found equipment, obtain result of detection, other agreements described for described in residue agreement at least two agreements except described first agreement, described result of detection comprises described each and is found effective listening port of equipment;

Analysis module, for determining the agreement that each equipment that is found described is supported according to described result of detection.

The technical scheme that embodiment of the present disclosure provides can realize following beneficial effect: use other agreements finding that fastest agreement is supported with regard to energy discovering device, compare and often overlap the mode that agreement all goes to send out other agreements that multicast message ability discovering device is supported, the protocol discovery speed that equipment and equipment are supported is faster.

Optionally, described detecting module, for sending point-to-point probe message according to the described device identification that each is found equipment to each equipment of being found described, whether described point-to-point probe message is effective for detecting each listening port being found corresponding with other agreements described in equipment described;

Described analysis module comprises:

Receiving element, for receive described each be found point-to-point probe message described in device responds after the Point-to-Point Data bag that feeds back, described Point-to-Point Data bag comprises the whether effective information of the described listening port that each is found corresponding with other agreements in equipment;

Determining unit, for determining the agreement that each equipment that is found described is supported according to described Point-to-Point Data bag.

In possibility, can after discovering device supports an agreement, whether effective by sending the listening port that on point-to-point probe message detecting devices, other agreements are corresponding, because the transmitting procedure of Point-to-Point Data will faster than the transmitting procedure of multicast packet, so whether effective by the listening port sent on point-to-point probe message detecting devices, the speed that discovering device finds other agreements that other equipment are supported in local area network (LAN) can be improved.

Optionally, described receiver module, before being found the Point-to-Point Data bag of equipment feedback at described each of described receiving element reception, receive described each be found other multicast messages of equipment feedback response after other multicast response message of feeding back, other multicast response message described comprise the described effective information of each listening port being found corresponding with other agreements in equipment and described each is found the device identification of equipment; Described determining unit, for determining the agreement that each equipment that is found described is supported according to other multicast response message described.

In possibility, Point-to-Point Data bag and multicast response message which, which discovering device just determine the protocol type that equipment is supported according to morning that feed back.Like this, ensure equipment and equipment supported protocol send out speed while, also improve the accuracy of discovery.

Optionally, described detecting module, for being found the device identification of equipment according to described each, being found to described each listening port that described in equipment, other agreements are corresponding and sending point-to-point probe message;

Described receiving element, for receive described each be found the described point-to-point probe message of listening port response that described in equipment, other agreements are corresponding after the Point-to-Point Data bag that feeds back, described Point-to-Point Data bag comprises the whether effective information of the described listening port that each is found corresponding with other agreements described in equipment;

Described determining unit, for determining the agreement that each equipment that is found described is supported according to described Point-to-Point Data bag.

In possibility, because the multicast response message by receiving at first has obtained the device identification of this equipment as IP address, and other agreements corresponding listening port numbering be known, therefore, point-to-point probe message can be sent directly to other listening ports of this equipment, and then whether can effectively determine according to these listening ports the agreement that this equipment is supported rapidly.

Optionally, described detecting module, is found for connecting described each according to the described device identification that each is found equipment by transmission control protocol TCP the listening port that in equipment, other agreements are corresponding;

Described analysis module, for when successfully connecting described listening port, determines that each equipment of being found described supports the agreement that described listening port is corresponding.

In possibility, adopt the agreement that direct TCP connected mode determination equipment is supported, due to after determining the equipment of being found, to set up the speed that TCP is connected faster with this equipment of being found, and therefore, the protocol discovery speed that equipment and equipment are supported is also faster.

According to the third aspect of disclosure embodiment, provide a kind of lan device to find device, comprising:

Processor;

For the memory of storage of processor executable instruction;

Wherein, described processor is configured to:

At least two multicast messages are sent in a local network according at least two agreements that discovering device self is supported, whether described at least two multicast messages are effective for detecting the listening port that in described local area network (LAN), each is found corresponding with described at least two agreements in equipment, and described at least two agreements are corresponding with described at least two multicast messages;

The the first multicast response message fed back after each is found device responds first multicast message described in receiving, described first multicast response message comprises the described effective information of each listening port being found corresponding with the first agreement in equipment and described each is found the device identification of equipment, described first agreement is the arbitrary agreement in described at least two agreements, and described first multicast message is multicast message corresponding with described first agreement in described at least two multicast messages;

Whether effective according to described device identification detection each listening port being found corresponding with other agreements in equipment described that each is found equipment, obtain result of detection, other agreements described for described in residue agreement at least two agreements except described first agreement, described result of detection comprises described each and is found effective listening port of equipment;

The agreement that each equipment that is found described is supported is determined according to described result of detection.

The technical scheme that embodiment of the present disclosure provides can realize following beneficial effect: use other agreements finding that fastest agreement is supported with regard to energy discovering device, compare and often overlap the mode that agreement all goes to send out other agreements that multicast message ability discovering device is supported, the protocol discovery speed that equipment and equipment are supported is faster.

Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.

Accompanying drawing explanation

Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.

Fig. 1 is the flow chart of a kind of lan device discover method according to an exemplary embodiment;

Fig. 2 is the flow chart of a kind of lan device discover method according to an exemplary embodiment;

Fig. 3 is the flow chart of a kind of lan device discover method according to another exemplary embodiment;

Fig. 4 is the block diagram of a kind of lan device discovery device according to an exemplary embodiment;

Fig. 5 is the block diagram of the analysis module according to an exemplary embodiment;

Fig. 6 is the block diagram of a kind of device 800 for lan device discovery according to an exemplary embodiment.

Embodiment

Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.

The disclosure provides the method for quick discovering device on a kind of equipment overlapping agreement in compatibility more, the protocol type that the equipment fast in discovery local area network (LAN) and this equipment are supported.

Fig. 1 is the flow chart of a kind of lan device discover method according to an exemplary embodiment, and as shown in Figure 1, this lan device discover method is applied in discovering device, comprises the following steps.

In step s 11, at least two multicast messages are sent in a local network according at least two agreements that discovering device self is supported, whether at least two multicast messages are effective for the listening port detecting in local area network (LAN) each and be found corresponding with at least two agreements in equipment, and at least two agreements are corresponding with at least two multicast messages;

In step s 12, receive the first multicast response message fed back after each is found device responds first multicast message, first multicast response message comprises the effective information of each listening port being found corresponding with the first agreement in equipment and each is found the device identification of equipment, first agreement is the arbitrary agreement at least two agreements, and the first multicast message is multicast message corresponding with the first agreement at least two multicast messages;

In step s 13, whether effectively each listening port being found corresponding with other agreements in equipment is detected according to each device identification being found equipment, obtain result of detection, other agreements are the residue agreement at least two agreements except the first agreement, and result of detection comprises effective listening port that each is found equipment;

In step S14, determine that each is found the agreement of equipment support according to result of detection.

For convenience, the protocol service of on equipment is represented with " module ".Such as certain equipment supports that A, B and C tri-overlaps agreement, then think that this equipment possesses three modules, be respectively A module, B module and C module.A, B, C agreement in disclosure embodiment can be the agreement that DLNA, AirPlay and Airkan etc. are different.

Suppose that certain Equipments Setting in local area network (LAN) has A module and B module, on this equipment, the discovery speed of A module is faster than B module.So, discovering device is after having found A module, owing to having obtained the device identification of this equipment as IP address by the multicast response message of A module, and the listening port numbering of B module is known, whether therefore whether discovering device can go the listening port of the B module detected on this equipment effective at once, just can detect B module and find.If find B module, so by a multicast of A module, just can find other modules on this equipment, and need not wait until that the multicast reciprocal process of other modules just determines the protocol type that this equipment is supported after occurring.

In the present embodiment, use other agreements finding that fastest agreement is supported with regard to energy discovering device, compare often cover agreement all to go to send out multicast message and the mode of other agreements of receiving group corresponding message ability discovering device support, the protocol discovery speed that equipment and equipment are supported is faster.

Optionally, step S13 comprises: send point-to-point probe message according to the device identification that each is found equipment to each equipment of being found, and whether point-to-point probe message is effective for the listening port detecting each and be found corresponding with other agreements in equipment.Step S14 comprises: receive the Point-to-Point Data bag fed back after each is found the point-to-point probe message of device responds, and Point-to-Point Data bag comprises the whether effective information of each listening port being found corresponding with other agreements in equipment; Determine that each is found the agreement of equipment support according to Point-to-Point Data bag.

In possibility, can after discovering device supports an agreement, whether effective by sending the listening port that on point-to-point probe message detecting devices, other agreements are corresponding, because the transmitting procedure of Point-to-Point Data will faster than the transmitting procedure of multicast packet, so whether effective by the listening port sent on point-to-point probe message detecting devices, the speed that discovering device finds other agreements that other equipment are supported in local area network (LAN) can be improved.

Optionally, in step s 13, send point-to-point probe message according to the device identification that each is found equipment to each equipment of being found, comprising: the device identification being found equipment according to each, be found to each listening port that in equipment, other agreements are corresponding and send point-to-point probe message.In step S14, determine that each is found the agreement of equipment support according to result of detection, comprise: receive the Point-to-Point Data bag that each is found to feed back after listening port that in equipment, other agreements are corresponding responds point-to-point probe message, Point-to-Point Data bag comprises the whether effective information of each listening port being found corresponding with other agreements in equipment; Determine that each is found the agreement of equipment support according to Point-to-Point Data bag.

In possibility, because the multicast response message by receiving at first has obtained the device identification of this equipment as IP address, and other agreements corresponding listening port numbering be known, therefore, point-to-point probe message can be sent directly to other listening ports of this equipment, and then whether can effectively determine according to these listening ports the agreement that this equipment is supported rapidly.

Optionally, before receiving the Point-to-Point Data bag fed back after each is found the point-to-point probe message of device responds, the method for the present embodiment also comprises:

Receive other multicast response message fed back after each is found other multicast messages of equipment feedback response, other multicast response message comprise the effective information of each listening port being found corresponding with other agreements in equipment and each is found the device identification of equipment; Other multicast messages are corresponding with other agreements;

Determine that each is found the agreement of equipment support according to other multicast response message.

In possibility, Point-to-Point Data bag and multicast response message which, which discovering device just determine the protocol type that equipment is supported according to morning that feed back.Like this, ensure equipment and equipment supported protocol send out speed while, also improve the accuracy of discovery.

Optionally, step S13 comprises: connect each according to each device identification being found equipment by transmission control protocol TCP and be found the listening port that in equipment, other agreements are corresponding.Step S14 comprises: when successfully connecting listening port, determines that each equipment that is found supports the agreement that listening port is corresponding.

In possibility, adopt the agreement that direct TCP connected mode determination equipment is supported, due to after determining the equipment of being found, to set up the speed that TCP is connected faster with this equipment of being found, and therefore, the protocol discovery speed that equipment and equipment are supported is also faster.

In the disclosed embodiments, in order to improve the accuracy being found equipment supported protocol, discovering device is after determining the protocol type that equipment is supported, the authentication message for each agreement is sent to this equipment, if obtain the authentication success message of this equipment feedback, then can determine that this equipment supports these protocol types really.

With a concrete example, method of the present disclosure is described in detail below.

In this example, mobile phone supports that A, B and C tri-overlaps agreement, may there is multiple equipment to be found: equipment 1, equipment 2 in current local area network ... Deng.The present embodiment is described for the discovery procedure of equipment 1, the discovery procedure of other equipment and the discovery procedure of equipment 1 similar, repeat no more.

example one

Fig. 2 is the flow chart of a kind of lan device discover method according to an exemplary embodiment, and as shown in Figure 2, this lan device discover method comprises the following steps.

In step S21, when the discovering device function Activated Phone, mobile phone overlaps agreement by A, B and C tri-and sends multicast message respectively.

In step S22, equipment 1 receives the A protocol groups broadcast message that mobile phone sends at first, determines that self A listening port is effective, then to mobile phone feedback A multicast response message.

What deserves to be explained is, the present embodiment is the multicast message that receives at first for equipment 1 for A protocol groups broadcast message is described.In practical application, frequency and the strategy of mobile phone transmission different agreement multicast message are all different, and the order of the agreement multicast that equipment 1 receives is different.

In step S23, the A multicast response message that mobile phone receiving equipment 1 feeds back, determine that the A protocol listening port of equipment 1 is effective, namely mobile phone has found equipment 1, and knows that equipment 1 supports A agreement.

In step S24, equipment 1 comprises the IP address of equipment 1 to the A multicast response message that mobile phone feeds back, and mobile phone sends point-to-point probe message according to this IP address to equipment 1.

In the present embodiment, except A agreement, mobile phone also supports C agreement and B agreement.Then mobile phone sends point-to-point probe message according to the mark of equipment 1 to the B listening port of equipment 1, and sends point-to-point probe message to the C listening port of equipment 1.

In step S25, equipment 1 responds point-to-point probe message, and to mobile phone feedback Point-to-Point Data bag, Point-to-Point Data bag comprises the whether effective information of listening port of other agreements in equipment 1.

Suppose that equipment 1 also supports A, B and C tri-overlaps agreement; The Point-to-Point Data bag that then equipment 1 sends comprises following information: B listening port is effective and C listening port is effective.

In step S26, the Point-to-Point Data bag that mobile phone receiving equipment 1 feeds back, knows according to Point-to-Point Data bag all protocol types that equipment 1 is supported.

example two

Fig. 3 is the flow chart of a kind of lan device discover method according to another exemplary embodiment, and as shown in Figure 3, this lan device discover method can also comprise the following steps.

Step S31-S33 is identical with above-mentioned steps S21-S23.

In step S34, equipment 1 comprises the IP address of equipment 1 to the A multicast response message that mobile phone feeds back, mobile phone according to this IP address by the B listening port on the direct connection device 1 of TCP and C listening port.

In step s 35, when successful connection, mobile phone determination equipment 1 supports respective protocol.

In above-mentioned two examples, after the agreement that discovering device is supported, be no matter whether effective by point-to-point detection listening port, or whether effective by TCP connected mode detection listening port, the agreement that equipment in local area network (LAN) and equipment are supported can both be found rapidly.

Fig. 4 is the block diagram of a kind of lan device discovery device according to an exemplary embodiment.With reference to Fig. 4, this device comprises sending module 41, receiver module 42, detecting module 43 and analysis module 44.

At least two agreements that sending module 41 is configured to support according to discovering device self send at least two multicast messages in a local network, whether at least two multicast messages are effective for the listening port detecting in local area network (LAN) each and be found corresponding with at least two agreements in equipment, and at least two agreements are corresponding with at least two multicast messages;

Receiver module 42 is configured to receive the first multicast response message fed back after each is found device responds first multicast message, first multicast response message comprises the effective information of each listening port being found corresponding with the first agreement in equipment and each is found the device identification of equipment, first agreement is the arbitrary agreement at least two agreements, and the first multicast message is multicast message corresponding with the first agreement at least two multicast messages;

Whether the device identification that detecting module 43 is configured to be found equipment according to each detects each listening port being found corresponding with other agreements in equipment effective, obtain result of detection, other agreements are the residue agreement at least two agreements except the first agreement, and result of detection comprises effective listening port that each is found equipment;

Analysis module 44 is configured to determine that each is found the agreement of equipment support according to result of detection.

Optionally, the device identification that detecting module 43 is configured to be found according to each equipment sends point-to-point probe message to each equipment of being found, and whether point-to-point probe message is effective for the listening port detecting each and be found corresponding with other agreements in equipment;

As shown in Figure 5, analysis module 44 comprises:

Receiving element 441 is configured to receive the Point-to-Point Data bag fed back after each is found point-to-point probe message described in device responds, and Point-to-Point Data bag comprises the whether effective information of each listening port being found corresponding with other agreements in equipment;

Determining unit 442 is configured to determine that each is found the agreement of equipment support according to Point-to-Point Data bag.

Optionally, receiver module 41 be configured to receiving element 441 receive each be found equipment feedback Point-to-Point Data bag before, receive other multicast response message fed back after each is found other multicast messages of equipment feedback response, other multicast response message comprise the effective information of each listening port being found corresponding with other agreements in equipment and each is found the device identification of equipment; Determining unit 442 is configured to determine that each is found the agreement of equipment support according to other multicast response message.

Optionally, detecting module 43 is configured to the device identification being found equipment according to each, is found the listening port that in equipment, other agreements are corresponding sends point-to-point probe message to each.Receiving element 441 is configured to receive each Point-to-Point Data bag being found to feed back after listening port that in equipment, other agreements are corresponding responds point-to-point probe message, and Point-to-Point Data bag comprises the whether effective information of each listening port being found corresponding with other agreements in equipment.Determining unit 442 is configured to determine that each is found the agreement of equipment support according to Point-to-Point Data bag.

Optionally, the device identification that detecting module 43 is configured to be found equipment according to each connects each by transmission control protocol TCP and is found the listening port that in equipment, other agreements are corresponding;

Analysis module 44 is configured to when successfully connecting listening port, determines that each equipment that is found supports the agreement that listening port is corresponding.

About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.

The technical scheme that device embodiment of the present disclosure provides can realize following beneficial effect: use other agreements finding that fastest agreement is supported with regard to energy discovering device, compare and often overlap the mode that agreement all goes to send out other agreements that multicast message ability discovering device is supported, the protocol discovery speed that equipment and equipment are supported is faster.

Fig. 6 is the block diagram of a kind of device 800 for realizing lan device discover method according to an exemplary embodiment.Such as, device 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.

With reference to Fig. 6, device 800 can comprise following one or more assembly: processing components 802, memory 804, electric power assembly 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor cluster 814, and communications component 816.

The integrated operation of the usual control device 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assemblies is mutual.Such as, processing components 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.

Memory 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.

The various assemblies that electric power assembly 806 is device 800 provide electric power.Electric power assembly 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 800 and be associated.

Multimedia groupware 808 is included in the screen providing an output interface between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.

Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loud speaker, for output audio signal.

I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.

Sensor cluster 814 comprises one or more transducer, for providing the state estimation of various aspects for device 800.Such as, sensor cluster 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, such as described assembly is display and the keypad of device 800, the position of all right checkout gear 800 of sensor cluster 814 or device 800 1 assemblies changes, the presence or absence that user contacts with device 800, the variations in temperature of device 800 orientation or acceleration/deceleration and device 800.Sensor cluster 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.

Communications component 816 is configured to the communication being convenient to wired or wireless mode between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 816 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.

In the exemplary embodiment, device 800 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.

In the exemplary embodiment, additionally provide a kind of lan device and find device, comprising:

Processor;

For the memory of storage of processor executable instruction;

Wherein, described processor is configured to:

At least two multicast messages are sent in a local network according at least two agreements that discovering device self is supported, whether at least two multicast messages are effective for the listening port detecting in local area network (LAN) each and be found corresponding with at least two agreements in equipment, and at least two agreements are corresponding with at least two multicast messages;

Receive the first multicast response message fed back after each is found device responds first multicast message, first multicast response message comprises the effective information of each listening port being found corresponding with the first agreement in equipment and each is found the device identification of equipment, first agreement is the arbitrary agreement at least two agreements, and the first multicast message is multicast message corresponding with the first agreement at least two multicast messages;

Whether effectively each listening port being found corresponding with other agreements in equipment is detected according to each device identification being found equipment, obtain result of detection, other agreements are the residue agreement at least two agreements except the first agreement, and result of detection comprises effective listening port that each is found equipment;

Determine that each is found the agreement of equipment support according to result of detection.

The technical scheme that device embodiment of the present disclosure provides can realize following beneficial effect: use other agreements finding that fastest agreement is supported with regard to energy discovering device, compare and often overlap the mode that agreement all goes to send out other agreements that multicast message ability discovering device is supported, the protocol discovery speed that equipment and equipment are supported is faster.

In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 804 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.

A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of lan device discover method, described method comprises:

At least two multicast messages are sent in a local network according at least two agreements that discovering device self is supported, whether at least two multicast messages are effective for the listening port detecting in local area network (LAN) each and be found corresponding with at least two agreements in equipment, and at least two agreements are corresponding with at least two multicast messages;

Receive the first multicast response message fed back after each is found device responds first multicast message, first multicast response message comprises the effective information of each listening port being found corresponding with the first agreement in equipment and each is found the device identification of equipment, first agreement is the arbitrary agreement at least two agreements, and the first multicast message is multicast message corresponding with the first agreement at least two multicast messages;

Whether effectively each listening port being found corresponding with other agreements in equipment is detected according to each device identification being found equipment, obtain result of detection, other agreements are the residue agreement at least two agreements except the first agreement, and result of detection comprises effective listening port that each is found equipment;

Determine that each is found the agreement of equipment support according to result of detection.

Optionally, whether effectively detect each listening port being found corresponding with other agreements in equipment according to device identification, obtain result of detection, comprising:

Send point-to-point probe message according to the device identification that each is found equipment to each equipment of being found, whether point-to-point probe message is effective for the listening port detecting each and be found corresponding with other agreements in equipment;

Determine that each is found the agreement of equipment support according to result of detection, comprising:

Receive the Point-to-Point Data bag fed back after each is found the point-to-point probe message of device responds, Point-to-Point Data bag comprises the whether effective information of each listening port being found corresponding with other agreements in equipment;

Determine that each is found the agreement of equipment support according to Point-to-Point Data bag.

Optionally, before receiving the Point-to-Point Data bag fed back after each is found the point-to-point probe message of device responds, the method also comprises:

Receive other multicast response message fed back after each is found other multicast messages of equipment feedback response, other multicast response message comprise the effective information of each listening port being found corresponding with other agreements in equipment and each is found the device identification of equipment; Other multicast messages are corresponding with other agreements;

Determine that each is found the agreement of equipment support according to other multicast response message.

Optionally, send point-to-point probe message according to the device identification that each is found equipment to each equipment of being found, comprising:

Be found the device identification of equipment according to each, be found to each listening port that in equipment, other agreements are corresponding and send point-to-point probe message;

Determine that each is found the agreement of equipment support according to result of detection, comprising:

Receive the Point-to-Point Data bag that each is found to feed back after listening port that in equipment, other agreements are corresponding responds point-to-point probe message, Point-to-Point Data bag comprises the whether effective information of each listening port being found corresponding with other agreements in equipment;

Determine that each is found the agreement of equipment support according to Point-to-Point Data bag.

Optionally, whether effectively detect each listening port being found corresponding with other agreements in equipment according to device identification, obtain result of detection, comprising:

Connect each according to each device identification being found equipment by transmission control protocol TCP and be found the listening port that in equipment, other agreements are corresponding;

Determine that each is found the agreement of equipment support according to result of detection, comprising:

When successfully connecting listening port, determine that each equipment that is found supports the agreement that listening port is corresponding.

The technical scheme that embodiment of the present disclosure provides can realize following beneficial effect: use other agreements finding that fastest agreement is supported with regard to energy discovering device, compare and often overlap the mode that agreement all goes to send out other agreements that multicast message ability discovering device is supported, the protocol discovery speed that equipment and equipment are supported is faster.

Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.

Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (9)

1. a lan device discover method, is characterized in that, comprising:
At least two multicast messages are sent in a local network according at least two agreements that discovering device self is supported, whether described at least two multicast messages are effective for detecting the listening port that in described local area network (LAN), each is found corresponding with described at least two agreements in equipment, and described at least two agreements are corresponding with described at least two multicast messages;
The the first multicast response message fed back after each is found device responds first multicast message described in receiving, described first multicast response message comprises the described effective information of each listening port being found corresponding with the first agreement in equipment and described each is found the device identification of equipment, described first agreement is the arbitrary agreement in described at least two agreements, and described first multicast message is multicast message corresponding with described first agreement in described at least two multicast messages;
Whether effective according to described device identification detection each listening port being found corresponding with other agreements in equipment described that each is found equipment, obtain result of detection, other agreements described for described in residue agreement at least two agreements except described first agreement, described result of detection comprises described each and is found effective listening port of equipment;
The agreement that each equipment that is found described is supported is determined according to described result of detection.
2. whether method according to claim 1, is characterized in that, described effective according to the described listening port that each is found corresponding with other agreements in equipment of described device identification detection, obtains result of detection, comprising:
Send point-to-point probe message according to the described device identification that each is found equipment to each equipment of being found described, whether described point-to-point probe message is effective for detecting each listening port being found corresponding with other agreements described in equipment described;
Describedly determine to comprise the agreement that each equipment that is found described is supported according to described result of detection:
The Point-to-Point Data bag fed back after each is found point-to-point probe message described in device responds described in receiving, described Point-to-Point Data bag comprises the whether effective information of the described listening port that each is found corresponding with other agreements described in equipment;
The agreement that each equipment that is found described is supported is determined according to described Point-to-Point Data bag.
3. method according to claim 2, is characterized in that, before the Point-to-Point Data bag that described in described reception, each feeds back after being found point-to-point probe message described in device responds, described method also comprises:
Receive described each be found other multicast messages of device responds after other multicast response message of feeding back, other multicast response message described comprise described each and are found the effective information of listening port corresponding with other agreements described in equipment and described each is found the device identification of equipment; Other multicast messages described are corresponding with other agreements described;
The agreement that each equipment that is found described is supported is determined according to other multicast response message described.
4. whether method according to claim 1, is characterized in that, described effective according to the described listening port that each is found corresponding with other agreements in equipment of described device identification detection, obtains result of detection, comprising:
Connect described each according to the described device identification that each is found equipment by transmission control protocol TCP and be found the listening port that described in equipment, other agreements are corresponding;
Describedly determine to comprise the agreement that each equipment that is found described is supported according to described result of detection:
When successfully connecting described listening port, determine that each equipment of being found described supports the agreement that described listening port is corresponding.
5. lan device finds a device, it is characterized in that, comprising:
Sending module, at least two agreements for supporting according to discovering device self send at least two multicast messages in a local network, whether described at least two multicast messages are effective for detecting the listening port that in described local area network (LAN), each is found corresponding with described at least two agreements in equipment, and described at least two agreements are corresponding with described at least two multicast messages;
Receiver module, for receive described each be found device responds first multicast message after the first multicast response message of feeding back, described first multicast response message comprises the described effective information of each listening port being found corresponding with the first agreement in equipment and described each is found the device identification of equipment, described first agreement is the arbitrary agreement in described at least two agreements, and described first multicast message is multicast message corresponding with described first agreement in described at least two multicast messages;
Detecting module, for whether effective according to described device identification detection each listening port being found corresponding with other agreements in equipment described that each is found equipment, obtain result of detection, other agreements described for described in residue agreement at least two agreements except described first agreement, described result of detection comprises described each and is found effective listening port of equipment;
Analysis module, for determining the agreement that each equipment that is found described is supported according to described result of detection.
6. device according to claim 5, is characterized in that,
Described detecting module, for sending point-to-point probe message according to the described device identification that each is found equipment to each equipment of being found described, whether described point-to-point probe message is effective for detecting each listening port being found corresponding with other agreements in equipment described;
Described analysis module comprises:
Receiving element, for receive described each be found point-to-point probe message described in device responds after the Point-to-Point Data bag that feeds back, described Point-to-Point Data bag comprises the whether effective information of the described listening port that each is found corresponding with other agreements described in equipment;
Determining unit, for determining the agreement that each equipment that is found described is supported according to described Point-to-Point Data bag.
7. device according to claim 6, is characterized in that,
Described receiver module, before being found the Point-to-Point Data bag of equipment feedback at described each of described receiving element reception, receive described each be found other multicast messages of equipment feedback response after other multicast response message of feeding back, other multicast response message described comprise described each and are found the effective information of listening port corresponding with other agreements described in equipment and described each is found the device identification of equipment;
Described determining unit, for determining the agreement that each equipment that is found described is supported according to other multicast response message described.
8. device according to claim 5, is characterized in that,
Described detecting module, is found for connecting described each according to the described device identification that each is found equipment by transmission control protocol TCP the listening port that described in equipment, other agreements are corresponding;
Described analysis module, for when successfully connecting described listening port, determines that each equipment of being found described supports the agreement that described listening port is corresponding.
9. lan device finds a device, it is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
At least two multicast messages are sent in a local network according at least two agreements that discovering device self is supported, whether described at least two multicast messages are effective for detecting the listening port that in described local area network (LAN), each is found corresponding with described at least two agreements in equipment, and described at least two agreements are corresponding with described at least two multicast messages;
The the first multicast response message fed back after each is found device responds first multicast message described in receiving, described first multicast response message comprises the described effective information of each listening port being found corresponding with the first agreement in equipment and described each is found the device identification of equipment, described first agreement is the arbitrary agreement in described at least two agreements, and described first multicast message is multicast message corresponding with described first agreement in described at least two multicast messages;
Whether effective according to described device identification detection each listening port being found corresponding with other agreements in equipment described that each is found equipment, obtain result of detection, other agreements described for described in residue agreement at least two agreements except described first agreement, described result of detection comprises described each and is found effective listening port of equipment;
The agreement that each equipment that is found described is supported is determined according to described result of detection.
CN201410225973.5A 2014-05-26 2014-05-26 Lan device discover method and device CN103986631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410225973.5A CN103986631B (en) 2014-05-26 2014-05-26 Lan device discover method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410225973.5A CN103986631B (en) 2014-05-26 2014-05-26 Lan device discover method and device

Publications (2)

Publication Number Publication Date
CN103986631A CN103986631A (en) 2014-08-13
CN103986631B true CN103986631B (en) 2016-03-30

Family

ID=51278458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410225973.5A CN103986631B (en) 2014-05-26 2014-05-26 Lan device discover method and device

Country Status (1)

Country Link
CN (1) CN103986631B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430482A (en) * 2015-09-29 2016-03-23 合一网络技术(北京)有限公司 Multi-screen interaction method and terminal equipment
CN108337671A (en) * 2018-01-30 2018-07-27 乐鑫信息科技(上海)有限公司 Method for discovering equipment in a kind of mesh networks

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534929A (en) * 2003-03-31 2004-10-06 联想(北京)有限公司 Method of detecting equipment state in network
CN1565104A (en) * 2001-10-03 2005-01-12 皇家飞利浦电子股份有限公司 Multicast discovery protocol using tunneling of unicast message
CN101383952A (en) * 2007-09-06 2009-03-11 耐通信息科技(上海)有限公司 Discovery method for IP audio and video apparatus
CN101640601A (en) * 2008-07-30 2010-02-03 Tcl集团股份有限公司 Management method for intelligent device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050026752A (en) * 2003-09-06 2005-03-16 삼성전자주식회사 System for multicasting multimedia contents

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1565104A (en) * 2001-10-03 2005-01-12 皇家飞利浦电子股份有限公司 Multicast discovery protocol using tunneling of unicast message
CN1534929A (en) * 2003-03-31 2004-10-06 联想(北京)有限公司 Method of detecting equipment state in network
CN101383952A (en) * 2007-09-06 2009-03-11 耐通信息科技(上海)有限公司 Discovery method for IP audio and video apparatus
CN101640601A (en) * 2008-07-30 2010-02-03 Tcl集团股份有限公司 Management method for intelligent device

Also Published As

Publication number Publication date
CN103986631A (en) 2014-08-13

Similar Documents

Publication Publication Date Title
US20140140530A1 (en) Proximity Based Wireless Audio Connection
KR101755589B1 (en) Method and apparatus, program and recording medium for network access
US20160234260A1 (en) Methods and apparaturses for binding with device
CN105608861B (en) Control method of electronic device and device
RU2637470C2 (en) Method and device for detecting intelligent device
CN105068958B (en) Method for handover control and device
CN105491113A (en) Migrating method, device and terminal
CN104714414A (en) Smart home equipment control method and device and electronic equipment
CN104038536B (en) Plug-in unit communication means and device
US20090286479A1 (en) Method and system for sensory pairing for a portable communication device
CN104318741B (en) Bluetooth equipment control method and device
CN104219092B (en) The compatibility method of a kind of router administration application and router firmware and device
CN104657099A (en) Method, device and system for screen projection
JP2016540470A (en) Communication method, communication device, program, and recording medium
CN104105169B (en) From method and the device of the WLAN (wireless local area network) that is dynamically connected
CN104182173A (en) Camera switching method and device
CN104363631A (en) Connection method, device and system of wireless router
CN104955126A (en) Operator network access method and device
CN104407592A (en) Method and device for regulating running state of smart home device
JP2017512352A (en) Device binding method, apparatus, program, and recording medium
JP2018509784A (en) Processing method, apparatus and device for binding remote control
CN104038263A (en) Method and device for establishing Bluetooth connection
CN104460365A (en) Equipment control method and device
CN104780154A (en) Device binding method and device binding device
CN104159218B (en) Internetwork connection establishing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant