CN105263131A - Service discovery method and apparatus - Google Patents

Service discovery method and apparatus Download PDF

Info

Publication number
CN105263131A
CN105263131A CN201510548397.2A CN201510548397A CN105263131A CN 105263131 A CN105263131 A CN 105263131A CN 201510548397 A CN201510548397 A CN 201510548397A CN 105263131 A CN105263131 A CN 105263131A
Authority
CN
China
Prior art keywords
service
buffer memory
sleeping devices
message
business
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510548397.2A
Other languages
Chinese (zh)
Inventor
李娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Original Assignee
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Intelligent Home Appliance Technology Co Ltd filed Critical Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Priority to CN201510548397.2A priority Critical patent/CN105263131A/en
Publication of CN105263131A publication Critical patent/CN105263131A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a service discovery method and apparatus. A cache device capable of providing cache services is provided, and a low power consumption device is set as a dormant device capable of sleeping one or more service discovery time windows. Before the dormancy of the dormant device, cache information (device information, service information and dormancy duration) is sent to the cache device, during the dormancy of the dormant device, the cache device replaces the dormant device, and a common device can discover services in the dormant device through the cache device. By adopting the service discovery method and apparatus disclosed by the invention, the dormant device can sleep in the discovery time windows to reduce the power consumption of the low power consumption device and generate no influence on the service discovery of other devices to the low power consumption device.

Description

A kind of service discovering method and apparatus
Technical field
The present invention relates to communication technical field, particularly relate to a kind of service discovering method and apparatus.
Background technology
Wireless Fidelity (WirelessFidelity, be called for short Wi-Fi) Leagues enact closes on the standard criterion finding network (NeighborAwarenessNetwork is called for short NAN).This specification purport is in realizing with low power, finding the business that surrounding devices provides rapidly.
NAN technology is by time synchronized, in the discovery time window appointed, carry out service discovering.At present, 2 large class message are defined in standard: beacon Beacon and service discovering message.
Beacon Beacon is divided into synchronous Beacon and finds Beacon.Find that Beacon transmits in discovery time, for finding NAN bunch (NANCluster) outside window.Wherein, the group that NANCluster is made up of multiple equipment, the equipment time synchronized in this group and use identical time window to carry out service discovering.Synchronous Beacon is for making the equipment time synchronized in NANCluster.
Service discovering message (NANServiceDiscoveryFrame is called for short NANSDF) is transmitted in discovery time window, can make the business that in the NANCluster at its place of device discovery, other equipment provide.Further, the business that the service discovering information broadcast of each equipment use Publish type provides oneself, business needed for the service discovering information broadcast oneself using Subscribe type.
But each equipment in NANCluster must carry out SM service monitoring in discovery time window, comprise the business of broadcast oneself or receive the business demand of other equipment, carrying out finishing service and find.Low power consuming devices carries out service discovering frequently in discovery time window, can increase the power consumption of equipment, and if make low power consuming devices dormancy in discovery time window, then other equipment can not find its business provided.
Therefore, the technical problem that urgently this area solves makes the dormancy in one or more service discovering time window of the low power consuming devices in NANCluster, and do not affect its business provided of other device discoveries.
Summary of the invention
The invention provides a kind of service discovering method and apparatus, in order to make the dormancy in one or more service discovering time window of the low power consuming devices in NANCluster, and do not affect its business provided of other device discoveries.
For above-mentioned technical problem, the present invention solves by the following technical programs.
The invention provides a kind of service discovering method, can the step of sleeping devices side comprise: can sleeping devices before dormancy, find the buffer memory device that buffer memory business is provided; To described buffer memory device send carry described can the service discovering message of cache information of sleeping devices so that described can between sleeping devices rest period, conventional equipment by described buffer memory device find described can the business that provides of sleeping devices; Wherein, described cache information comprises: described can the business information of sleeping devices.
Wherein, described discovery provides the buffer memory device of buffer memory business, comprising: broadcast transmission service identification represents the service discovering query messages of buffer memory business; Receive buffer memory device represents buffer memory business service discovering PUSH message according to the service identification that described service discovering query messages returns.
Wherein, to described buffer memory device send carry described can the service discovering message of cache information of sleeping devices, comprising: to described buffer memory device send service identification represent buffer memory business and carry described can the first service discovering follow-up message of cache information of sleeping devices; Receive the second service discovering follow-up message that described buffer memory device returns according to described first service discovering follow-up message.
Wherein, to described buffer memory device send carry described can the service discovering message of cache information of sleeping devices, also comprise: if pre-determined number sends described first service discovering follow-up message to described buffer memory device continuously, all do not receive the second service discovering follow-up message that described buffer memory device returns, then before sleeping devices dormancy, the buffer memory device that buffer memory business is provided can rediscovered.
Wherein, cache information also comprises: described can the facility information of sleeping devices and dormancy time; Described business information comprises: described can the sleeping devices service identification of business that can provide; Or described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
Present invention also offers a kind of service discovering method, the step of buffer memory device side comprises: receiving can the service discovering message that sent before its dormancy of sleeping devices; Carry in service discovering message described in buffer memory described can the cache information of sleeping devices; Wherein, described cache information comprises: described can the business information of sleeping devices; Described can between sleeping devices rest period, based on described cache information, to conventional equipment provide described can the business information of sleeping devices.
Wherein, described reception can the service discovering message that sent before its dormancy of sleeping devices, comprising: receiving can the first service discovering follow-up message of sending before its dormancy of sleeping devices; Wherein, the service identification of described first service discovering follow-up message represent buffer memory business and carry described can the cache information of sleeping devices.
Wherein, described reception can sleeping devices sent before its dormancy first service discovering follow-up message after, also comprise: according to described first service discovering follow-up message, to described can sleeping devices return second service discovering follow-up message.
Wherein, before the first service discovering follow-up message of sending before its dormancy of sleeping devices, also can comprise in described reception: receive and the service identification of sleeping devices broadcast transmission before its dormancy can represent the service discovering query messages of buffer memory business; According to described service discovering query messages, the service discovering PUSH message that service identification represents buffer memory business can be returned, to represent that described buffer memory device provides buffer memory business by sleeping devices to described.
Wherein, before the service identification of sleeping devices broadcast transmission before its dormancy represents the service discovering query messages of buffer memory business, also can comprise: create the propelling movement example that buffer memory business is provided, and give the instance identification preset in described reception.
Wherein, carry in service discovering message described in buffer memory described can the cache information of sleeping devices, comprising: searching that local whether buffer memory is described can the cache information of sleeping devices; If so, then utilize carry in described service discovering message described can the cache information of sleeping devices, upgrade local store described can the cache information of sleeping devices; If not, then carry in service discovering message described in buffer memory described can the cache information of sleeping devices.
Wherein, cache information also comprises: described can the facility information of sleeping devices and dormancy time; Described business information comprises: described can the sleeping devices service identification of business that can provide; Or described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
Wherein, carry in service discovering message described in buffer memory described can the cache information of sleeping devices, comprising: within the buffer memory time limit, carry in service discovering message described in buffer memory described can the cache information of sleeping devices; Wherein, first service discovering time window after described dormancy time+described dormancy time is limited to during described buffer memory.
Wherein, based on described cache information, to conventional equipment provide described can the business information of sleeping devices, comprising: the service discovering query messages carrying the service identification that needs are inquired about receiving conventional equipment broadcast transmission; If described conventional equipment need the service identification of inquiry and buffer memory can the service identification of sleeping devices identical, then the cache information of sleeping devices can send to described conventional equipment by the clean culture of service discovering PUSH message by described.
Present invention also offers a kind of service discovering method, the step of conventional equipment side comprises: broadcast transmission comprises the service discovering query messages of the service identification of needs inquiry; Receive the service discovering PUSH message that buffer memory device clean culture sends; Wherein, described service discovering PUSH message carries and can be buffered in cache information in described buffer memory device by sleeping devices before its dormancy; Store described can the cache information of sleeping devices, treat described can after sleeping devices revives, according to described cache information and describedly can carry out service interaction by sleeping devices.
Wherein, cache information comprises: described can the facility information of sleeping devices, business information and dormancy time; Described business information comprises: described can the sleeping devices service identification of business that can provide; Or described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
Wherein, described can after sleeping devices revives, according to described cache information and describedly can carry out service interaction by sleeping devices, comprise: if the cache information received comprises instance identification corresponding to service identification, then direct by the first service discovering follow-up message with describedly can carry out service interaction by sleeping devices; If the cache information received does not comprise instance identification corresponding to service identification, then first sleeping devices clean culture can send service discovering query messages to described, waiting receive described can sleeping devices return carry the service discovering PUSH message of instance identification corresponding to described service identification after, then by the first service discovering follow-up message with describedly can carry out service interaction by sleeping devices.
Present invention also offers a kind of service discovering device, be arranged on and can the described device of sleeping devices side comprise: the first transceiver module, for before sleeping devices dormancy, the buffer memory device providing buffer memory business can be being found; To described buffer memory device send carry described can the service discovering message of cache information of sleeping devices so that described can between sleeping devices rest period, conventional equipment by described buffer memory device find described can the business that provides of sleeping devices; Wherein, described cache information comprises: described can the business information of sleeping devices.
Wherein, described first transceiver module is used for: broadcast transmission service identification represents the service discovering subscribe message of buffer memory business; Receive buffer memory device represents buffer memory business service discovering PUSH message according to the service identification that described service discovering subscribe message returns.
Wherein, described first transceiver module is used for: to described buffer memory device send service identification represent buffer memory business and carry described can the first service discovering follow-up message of cache information of sleeping devices; Receive the second service discovering follow-up message that described buffer memory device returns according to described first service discovering follow-up message.
Wherein, described first transceiver module also for: if continuously pre-determined number sends described first service discovering follow-up message to described buffer memory device, all do not receive the second service discovering follow-up message that described buffer memory device returns, then before sleeping devices dormancy, the buffer memory device that buffer memory business is provided can rediscovered.
Wherein, cache information also comprises: described can the facility information of sleeping devices and dormancy time; Described business information comprises: described can the sleeping devices service identification of business that can provide; Or described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
Present invention also offers a kind of service discovering device, the described device being arranged on buffer memory device side comprises: the second transceiver module, can the service discovering message that sent before its dormancy of sleeping devices for receiving; Cache module, for can the cache information of sleeping devices described in carrying in service discovering message described in buffer memory; Wherein, described cache information comprises: described can the business information of sleeping devices; Described second transceiver module, also for described can between sleeping devices rest period, based on described cache information, to conventional equipment provide described can the business information of sleeping devices.
Wherein, described second transceiver module is used for: receive can sleeping devices sent before its dormancy first service discovering follow-up message; Wherein, the service identification of described first service discovering follow-up message represent buffer memory business and carry described can the cache information of sleeping devices.
Wherein, described second transceiver module also for: according to described first service discovering follow-up message, to described can sleeping devices return second service discovering follow-up message.
Wherein, described second transceiver module also for: can before the first service discovering follow-up message of sending before its dormancy of sleeping devices in described reception, receive and the service identification of sleeping devices broadcast transmission before its dormancy can represent the service discovering subscribe message of buffer memory business; According to described service discovering subscribe message, the service discovering PUSH message that service identification represents buffer memory business can be returned, to represent that described buffer memory device provides buffer memory business by sleeping devices to described.
Wherein, described device also comprises creation module; Described creation module, for before the service identification of sleeping devices broadcast transmission before its dormancy represents the service discovering subscribe message of buffer memory business, can creating the propelling movement example providing buffer memory business, and give the instance identification preset in described reception.
Wherein, described cache module is used for: searching that local whether buffer memory is described can the cache information of sleeping devices; If so, then utilize carry in described service discovering message described can the cache information of sleeping devices, upgrade local store described can the cache information of sleeping devices; If not, then carry in service discovering message described in buffer memory described can the cache information of sleeping devices.
Wherein, cache information also comprises: described can the facility information of sleeping devices and dormancy time; Described business information comprises: described can the sleeping devices service identification of business that can provide; Or described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
Wherein, described cache module is used for: within the buffer memory time limit, carry in service discovering message described in buffer memory described can the cache information of sleeping devices; Wherein, first service discovering time window after described dormancy time+described dormancy time is limited to during described buffer memory.
Wherein, described second transceiver module is used for: the service discovering subscribe message of carrying the service identification of needs inquiry receiving conventional equipment broadcast transmission; If described conventional equipment need the service identification of inquiry and buffer memory can the service identification of sleeping devices identical, then the cache information of sleeping devices can send to described conventional equipment by the clean culture of service discovering PUSH message by described.
Present invention also offers a kind of service discovering device, the described device being arranged on conventional equipment side comprises: the 3rd transceiver module, comprises the service discovering subscribe message of the service identification of needs inquiry for broadcast transmission; Receive the service discovering PUSH message that buffer memory device clean culture sends; Wherein, described service discovering PUSH message carries and can be buffered in cache information in described buffer memory device by sleeping devices before its dormancy; Memory module, for store described can the cache information of sleeping devices, treat describedly after sleeping devices revives, described 3rd transceiver module to be called, according to described cache information and describedly can carry out service interaction by sleeping devices.
Wherein, cache information comprises: described can the facility information of sleeping devices, business information and dormancy time; Described business information comprises: described can the sleeping devices service identification of business that can provide; Or described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
Wherein, described 3rd transceiver module is used for: when the cache information received comprises instance identification corresponding to service identification, directly by the first service discovering follow-up message with describedly can carry out service interaction by sleeping devices; When the cache information received does not comprise instance identification corresponding to service identification, first sleeping devices clean culture can send service discovering subscribe message to described, waiting receive described can sleeping devices return carry the service discovering PUSH message of instance identification corresponding to described service identification after, then by the first service discovering follow-up message with describedly can carry out service interaction by sleeping devices.Beneficial effect of the present invention is as follows:
The present invention is can before sleeping devices dormancy, cache information (facility information, business information, dormancy time) is sent to buffer memory device, carry out buffer memory, can between sleeping devices rest period, buffer memory device replaces can sleeping devices, and other equipment in NANCluster realize can the service discovering of sleeping devices by buffer memory device.Low power consuming devices dormancy in discovery time window can be made by the present invention, reduce the power consumption of low power consuming devices, and do not affect the service discovering of other equipment to this low power consuming devices.
Accompanying drawing explanation
Fig. 1 is the flow chart of service discovering method according to a first embodiment of the present invention;
Fig. 2 is the flow chart of service discovering method according to a second embodiment of the present invention;
Fig. 3 is the flow chart of service discovering method according to a third embodiment of the present invention;
Fig. 4 is the structure chart of service discovering device according to a fourth embodiment of the present invention;
Fig. 5 is the structure chart of service discovering device according to a fifth embodiment of the present invention;
Fig. 6 is the structure chart of service discovering device according to a sixth embodiment of the present invention;
Fig. 7 is the mutual sequential chart of service discovery system according to a seventh embodiment of the present invention;
Fig. 8 is the mutual sequential chart of service discovery system according to a eighth embodiment of the present invention;
Fig. 9 is the mutual sequential chart of service discovery system according to a ninth embodiment of the present invention;
Figure 10 is the mutual sequential chart of service discovery system according to a tenth embodiment of the present invention.
Embodiment
Main thought of the present invention is, arranging in NANCluster to provide the buffer memory device of buffer memory business, arrange low power consuming devices be can the one or more service discovering time window of dormancy can sleeping devices.Can before sleeping devices dormancy, cache information (facility information, business information, dormancy time) is sent to buffer memory device, carry out buffer memory, can between sleeping devices rest period, buffer memory device replaces can sleeping devices, and other equipment in NANCluster realize can the service discovering of sleeping devices by buffer memory device.
Low power consuming devices dormancy in service discovering time window can be made by the present invention, reduce the power consumption of low power consuming devices, and do not affect the service discovering of other equipment to this low power consuming devices.
Below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, do not limit the present invention.
Embodiment one
The present embodiment provide a kind of can sleeping devices side perform service discovering method.Fig. 1 is the flow chart of service discovering method according to a first embodiment of the present invention.
Step S110, can sleeping devices before dormancy, find to provide the buffer memory device of buffer memory business.
Can before sleeping devices dormancy, broadcast transmission service identification represents the service discovering query messages of buffer memory business; Receive buffer memory device represents buffer memory business service discovering PUSH message according to the service identification that this service discovering query messages returns.
Service discovering query messages, i.e. the service discovering message of Subscribe class, for the business needed for self inquiry, the present embodiment service identification represents that the service discovering query messages of buffer memory business is for query caching business.
Service discovering PUSH message, i.e. the service discovering message of Publish class, for broadcasting the business oneself provided.The present embodiment service identification represents that the service discovering PUSH message of buffer memory business is provided the message of buffer memory business to pushing by sleeping devices for buffer memory device.
Concrete, equipment in NANCluster is before communicating for a certain business with other equipment, need for this service creation example Instance, and be instance identification InstanceID corresponding to Instance configuration, based on Instance, use InstanceID, realize the communication with other equipment.The service discovering message of Subscribe class sends based on SubscribeInstance.The service discovering message of Publish class sends based on PublishInstance.The service discovering message of FollowUp type can send based on SubscribeInstance or PublishInstance. further, for example PublishInstance can be pushed by each service creation that provides of sleeping devices, and be each PublishInstance configuration InstanceID; For can sleeping devices need service creation query case SubscribeInstance, and for SubscribeInstance configuration InstanceID.
Step S120, sends to buffer memory device that carry can the service discovering message of cache information of sleeping devices, and with can between sleeping devices rest period, conventional equipment is found by buffer memory device can the business that provides of sleeping devices; This cache information comprises: can the business information of sleeping devices.
Further, cache information also comprises: can the facility information of sleeping devices and dormancy time.
Business information comprises: can the sleeping devices service identification of business that can provide; Or business information comprises: can the sleeping devices service identification of business that can provide and InstanceID corresponding to this service identification.Can arrange service lists, this service lists comprises: can the sleeping devices service identification of business that can provide and InstanceID corresponding to each service identification.Certainly, service lists can the service identification of only record traffic, arranges separately the InstanceID that each service identification of InstanceID list records is corresponding.
Facility information comprises: can the device address, device coding etc. of sleeping devices.Device coding (device id) has uniqueness.
Dormancy time comprises: can sleeping devices by the information of one or more service discovering time windows of dormancy.
Concrete, sending that service identification represents buffer memory business and carry to buffer memory device can the first service discovering follow-up message of cache information of sleeping devices; Receive the second service discovering follow-up message that buffer memory device returns according to this first service discovering follow-up message.
Service discovering follow-up message, for sending the specifying information of business after discovery business.In the present embodiment, the first service discovering follow-up message is used for cache information to be sent to buffer memory device.Second service discovering follow-up message is used for buffer memory device response can sleeping devices.Service discovering follow-up message is such as the service discovering message of FollowUp class.
If continuously pre-determined number sends the first service discovering follow-up message to buffer memory device, all do not receive the second service discovering follow-up message that buffer memory device returns, then before sleeping devices dormancy, the buffer memory device that buffer memory business is provided can rediscovered.Not receiving the second service discovering follow-up message that buffer memory device returns, is likely that buffer memory device does not provide buffer memory business to cause.
Embodiment two
The present embodiment provides a kind of service discovering method performed in buffer memory device side.Fig. 2 is the flow chart of service discovering method according to a second embodiment of the present invention.
Step S210, receiving can the service discovering message that sent before its dormancy of sleeping devices.
For buffer memory business presets InstanceID; Buffer memory device, before raising buffer memory business, creates the PublishInstance providing buffer memory business, and this InstanceID preset of assignment.As: provide the InstanceID of buffer memory business to be fixedly installed as S, be buffer memory service creation PublishInstance, and distribute PublishInstanceID=S.Like this, the equipment creating buffer memory business PublishInstance just becomes buffer memory device, can provide buffer memory business.
Afterwards, receive and the service identification of sleeping devices broadcast transmission before its dormancy can represent the service discovering query messages of buffer memory business.According to this service discovering query messages, to the service discovering PUSH message that service identification represents buffer memory business can be returned by sleeping devices, to represent that local terminal provides buffer memory business, cache information can be sent to local terminal.Further, if local cache is full, then not to returning this service discovering PUSH message by sleeping devices.
After service identification represents the service discovering PUSH message of buffer memory business in transmission, can receive can the first service discovering follow-up message of sending before its dormancy of sleeping devices; Wherein, represent buffer memory business and carry can the cache information of sleeping devices for the service identification of the first service discovering follow-up message.According to the first service discovering follow-up message, to returning the second service discovering follow-up message by sleeping devices.
Step S220, carry in buffer memory service discovering message described can the cache information of sleeping devices, this cache information comprises: can the business information of sleeping devices.
Also comprising in this this cache information can the facility information of sleeping devices and dormancy time.
Extracting in service discovering message can the cache information of sleeping devices, and this can the cache information of sleeping devices to search local whether buffer memory; If so, then utilize carry in described service discovering message described can the cache information of sleeping devices, upgrade local store this can the cache information of sleeping devices; If not, then directly carry in service discovering message described in buffer memory described can the cache information of sleeping devices.
Concrete, within the buffer memory time limit, that carries in buffer memory service discovering message can the cache information of sleeping devices; Wherein, first service discovering time window after dormancy time+dormancy time is limited to during buffer memory.The buffer memory time limit is the counting to service discovering time window.The buffer memory time limit stops, and can delete this cache information.Such as: dormancy time is 3 service discovering time windows, receive at first service discovering time window and be cached to cache information, initialization counter, second service discovering time window count value=1,5th service discovering time window count value=4, after the 5th service discovering time window terminates, can delete this cache information.
Further, what this carried can the service discovering message of cache information of sleeping devices be the first service discovering follow-up message.
Step S230, can between sleeping devices rest period, based on cache information, providing to conventional equipment can the business information of sleeping devices.
Between sleeping devices rest period, the service discovering query messages carrying the service identification needing inquiry of conventional equipment broadcast transmission can received; If conventional equipment need the service identification of inquiry and buffer memory can the service identification of sleeping devices identical, then the cache information of sleeping devices can send to conventional equipment by the clean culture of service discovering PUSH message.
Embodiment three
The present embodiment provides a kind of service discovering method performed in conventional equipment side.Fig. 3 is the flow chart of service discovering method according to a third embodiment of the present invention.
Step S310, broadcast transmission comprises the service discovering query messages of the service identification of needs inquiry.
Step S320, receives the service discovering PUSH message that buffer memory device clean culture sends; Wherein, this service discovering PUSH message carries and can be buffered in cache information in buffer memory device by sleeping devices before its dormancy.
Step S330, storing can the cache information of sleeping devices, and treating can after sleeping devices revives, according to cache information with can carry out service interaction by sleeping devices.
If the cache information received comprises InstanceID corresponding to service identification, then directly to sending the first service discovering follow-up message, to carry out service interaction by sleeping devices.
If the cache information received does not comprise InstanceID corresponding to service identification, then first to sleeping devices clean culture sending service discovering query messages, waiting receive described can sleeping devices return carry the service discovering PUSH message of InstanceID corresponding to described service identification after, again to sending the first service discovering follow-up message, to carry out service interaction by sleeping devices.
Embodiment four
The present embodiment provides a kind of being arranged on can the service discovering device of sleeping devices side.Fig. 4 is the structure chart of service discovering device according to a fourth embodiment of the present invention.
Be arranged on and can the described device of sleeping devices side comprise:
First transceiver module 410, for before sleeping devices dormancy, finding the buffer memory device providing buffer memory business; To described buffer memory device send carry described can the service discovering message of cache information of sleeping devices so that described can between sleeping devices rest period, conventional equipment by described buffer memory device find described can the business that provides of sleeping devices; Wherein, described cache information comprises: described can the business information of sleeping devices.
First transceiver module 420 represents the service discovering query messages of buffer memory business for broadcast transmission service identification; Receive buffer memory device represents buffer memory business service discovering PUSH message according to the service identification that described service discovering query messages returns; To described buffer memory device send service identification represent buffer memory business and carry described can the first service discovering follow-up message of cache information of sleeping devices; Receive the second service discovering follow-up message that described buffer memory device returns according to described first service discovering follow-up message.
Further, first transceiver module 410 also for: if continuously pre-determined number sends the first service discovering follow-up message to described buffer memory device, all do not receive the second service discovering follow-up message that described buffer memory device returns, then before sleeping devices dormancy, the buffer memory device that buffer memory business is provided can rediscovered.
Cache information also comprises: can the facility information of sleeping devices and dormancy time; Business information comprises: can the sleeping devices service identification of business that can provide; Or business information comprises: can the sleeping devices service identification of business that can provide and instance identification InstanceID corresponding to described service identification.
The function of the device described in the present embodiment is described in the embodiment of the method shown in Fig. 1, therefore not detailed part in the description of the present embodiment, see the related description in previous embodiment, can not repeat at this.
Embodiment five
The present embodiment provides a kind of service discovering device being arranged on buffer memory device side.Fig. 5 is the structure chart of service discovering device according to a fifth embodiment of the present invention.
The described device being arranged on buffer memory device side comprises:
Second transceiver module 510, can the service discovering message that sent before its dormancy of sleeping devices for receiving.
Cache module 520, for can the cache information of sleeping devices described in carrying in service discovering message described in buffer memory.Wherein, described cache information comprises: described can the business information of sleeping devices.Further, cache information also comprises: can the facility information of sleeping devices and dormancy time.Business information comprises: described can the sleeping devices service identification of business that can provide; Or business information comprises: described can the sleeping devices service identification of business that can provide and InstanceID corresponding to described service identification.
Second transceiver module 510, also for described can between sleeping devices rest period, based on described cache information, to conventional equipment provide described can the business information of sleeping devices.
Concrete, the second transceiver module 510 can the first service discovering follow-up message of sending before its dormancy of sleeping devices for receiving; Wherein, the service identification of described first service discovering follow-up message represent buffer memory business and carry described can the cache information of sleeping devices.Second transceiver module 510 also for: according to described first service discovering follow-up message, to described can sleeping devices return second service discovering follow-up message.
Second transceiver module 510 also for: can before the first service discovering follow-up message of sending before its dormancy of sleeping devices in described reception, receive and the service identification of sleeping devices broadcast transmission before its dormancy can represent the service discovering query messages of buffer memory business; According to described service discovering query messages, the service discovering PUSH message that service identification represents buffer memory business can be returned, to represent that described buffer memory device provides buffer memory business by sleeping devices to described.
Described device also comprises creation module (not shown); Described creation module, for can before the service identification of sleeping devices broadcast transmission before its dormancy represents the service discovering query messages of buffer memory business in described reception, create the propelling movement example PublishInstance that buffer memory business is provided, and give the InstanceID preset.
Cache module 520 for: searching that local whether buffer memory is described can the cache information of sleeping devices; If so, then utilize carry in described service discovering message described can the cache information of sleeping devices, upgrade local store described can the cache information of sleeping devices; If not, then carry in service discovering message described in buffer memory described can the cache information of sleeping devices.
Cache module 520 for: within the buffer memory time limit, carry in service discovering message described in buffer memory described can the cache information of sleeping devices; Wherein, first service discovering time window after described dormancy time+described dormancy time is limited to during described buffer memory.
Second transceiver module 510 is for the service discovering query messages carrying the service identification needing inquiry that receives conventional equipment broadcast transmission; If described conventional equipment need the service identification of inquiry and buffer memory can the service identification of sleeping devices identical, then the cache information of sleeping devices can send to described conventional equipment by the clean culture of service discovering PUSH message by described.
The function of the device described in the present embodiment is described in the embodiment of the method shown in Fig. 2, therefore not detailed part in the description of the present embodiment, see the related description in previous embodiment, can not repeat at this.
Embodiment six
The present embodiment provides a kind of service discovering device being arranged on conventional equipment side.Fig. 6 is the structure chart of service discovering device according to a sixth embodiment of the present invention.
The described device being arranged on conventional equipment side comprises:
3rd transceiver module 610, comprises the service discovering query messages of the service identification of needs inquiry for broadcast transmission; Receive the service discovering PUSH message that buffer memory device clean culture sends; Wherein, service discovering PUSH message carries and can be buffered in cache information in described buffer memory device by sleeping devices before its dormancy.
Memory module 620, for store described can the cache information of sleeping devices, treat describedly after sleeping devices revives, described 3rd transceiver module to be called, according to described cache information and describedly can carry out service interaction by sleeping devices.
Cache information comprises: described can the facility information of sleeping devices, business information and dormancy time; Described business information comprises: described can the sleeping devices service identification of business that can provide; Or described business information comprises: described can the sleeping devices service identification of business that can provide and InstanceID corresponding to described service identification.
Described 3rd transceiver module 610 for: when the cache information received comprises InstanceID corresponding to service identification, directly by the first service discovering follow-up message with describedly can carry out service interaction by sleeping devices; When the cache information received does not comprise InstanceID corresponding to service identification, first sleeping devices clean culture can send service discovering query messages to described, waiting receive described can sleeping devices return carry the service discovering PUSH message of InstanceID corresponding to described service identification after, then by the first service discovering follow-up message with describedly can carry out service interaction by sleeping devices.
The function of the device described in the present embodiment is described in the embodiment of the method shown in Fig. 3, therefore not detailed part in the description of the present embodiment, see the related description in previous embodiment, can not repeat at this.
The invention provides a kind of service discovery system, this service discovery system can form NANCluster.This service discovery system comprises can sleeping devices, the buffer memory device that can provide buffer memory business and conventional equipment.In order to description the present invention clearly can sleeping devices, reciprocal process between buffer memory device and conventional equipment, utilize sequential chart below, the present invention is described further.
Embodiment seven
Fig. 7 is the mutual sequential chart of service discovery system according to a seventh embodiment of the present invention.
Step 1, the buffer memory device of buffer memory business is provided, when starting or after adding NANCluster or when starting at service discovering time window, for the InstanceID that the buffer memory service creation PublishInstance that it provides, this PublishInstance use is buffer memory business setting in advance.InstanceID=S in the present embodiment.Further, the discovery engine of buffer memory device automatically creates the PublishInstance of buffer memory business or the buffer memory application be arranged in buffer memory device and orders about and find that engine creates the PublishInstance of buffer memory business.
Step 2, can be every service creation PublishInstance that oneself can provide and distributes InstanceID by sleeping devices.Can need to use buffer memory business by sleeping devices, be this buffer memory service creation SubscribeInstance, and be this SubscribeInstance distribution InstanceID=x.When service discovering time window starts, can broadcast NANSDFSubscribe message by sleeping devices, this NANSDFSubscribe message carries InstanceID=x, RequestorInstanceID=S, service identification: buffer memory.This NANSDFSubscribe message is used for query caching business.Wherein, NANSDFSubscribe message is the service discovering message of Subscribe type, for inquiring about the equipment providing buffer memory business.
Step 3, buffer memory device receive can sleeping devices send query caching business NANSDFSubscribe message after, reply can sleeping devices NANSDFPublish message.The NANSDFPublish message of this reply carries InstanceID=S, RequestorInstanceID=x, service identification: buffer memory.This NANSDFPublish message is the service discovering message of Publish type, for can sleeping devices push buffer memory device buffer memory business is provided.
Step 4, can sleeping devices receive buffer memory device reply NANSDFPublish message after, store the device address of the buffer memory device carried in NANSDFFollowUp message, and sending NANSDFFollowUp message to buffer memory device clean culture, this NANSDFFollowUp message carries InstanceID=x, RequestorInstanceID=S, service lists, dormancy time, service identification: buffer memory.Wherein, NANSDFFollowUp message is the service discovering message of FollowUp type.
Step 5, buffer memory device receives can after the NANSDFFollowUp message of sleeping devices, and reply can sleeping devices NANSDFFollowUp message, and the NANSDFFollowUp message of this reply carries InstanceID=S, RequestorInstanceID=x.The buffer memory device NANSDFFollowUp message of replying is as to can the response of NANSDFFollowUp message that sends of sleeping devices.
Step 6, buffer memory device buffer memory can the cache information such as device address, InstanceID=x, service lists, dormancy time of sleeping devices, is limited to dormancy time+one service discovering time window during buffer memory.Can carry in the NANSDFFollowUp message that sends of sleeping devices can the device address of sleeping devices.
Step 7, can in the service discovering time window of sleeping devices dormancy, conventional equipment needs inquiry business 1, for business 1 creates SubscribeInstance, and is that this SubscribeInstance distributes InstanceID=2.Conventional equipment broadcast NANSDFSubscribe information query business 1, this NANSDFSubscribe message carries InstanceID=2, RequestorInstanceID=0, service identification: traffic ID 1 (service identification of business 1).InstanceID=0 represents that the InstanceID of the business 1 that needs are inquired about is for unknown.
Step 8, after buffer memory device receives the NANSDFSubscribe message of conventional equipment, if find the mark of the business 1 of conventional equipment inquiry and buffer memory can the service identification of business of sleeping devices identical, namely this can provide this business 1 by sleeping devices, then reply NANSDFPublish message to conventional equipment, the NANSDFPublish message of this reply carries InstanceID=S, RequestorInstanceID=2, service identification: the mark of business 1, can the cache information of sleeping devices.
Step 9, conventional equipment receives the NANSDFPublish message that buffer memory device is replied, and finds InstanceID=S, represents business 1 can on sleeping devices, and what store that NANSDFPublish message carries can the cache information of sleeping devices.
Step 10, can in the sleeping devices service discovering time window of reviving, can sleeping devices according to the device address of buffer memory device of preserving, send NANSDFFollowUp message to buffer memory device, in this NANSDFFollowUp message, carry InstanceID=x, RequestorInstanceID=S, service identification: buffer memory, can the up-to-date service lists of sleeping devices and dormancy time.Because can between sleeping devices rest period, can the business that provides of sleeping devices may change, so after sleeping devices revives, the dormancy time again sending up-to-date service lists and next time to buffer memory device can be needed.
Step 11, buffer memory device receives can after the NANSDFFollowUp message of sleeping devices, and reply can sleeping devices NANSDFFollowUp message, and the NANSDFFollowUp message of this reply carries InstanceID=S, RequestorInstanceID=x.
Step 12, buffer memory device is according to InstanceID=x, and that inquires about buffer memory can the cache information of sleeping devices, and utilize up-to-date cache information upgrade before the cache information that stores, and refresh and store the time limit.
Step 13, conventional equipment can the cache information of sleeping devices according to what store, to sleeping devices clean culture sending NANSDFSubscribe message, and carries the service identification of required business 1.
Step 14, can the sleeping devices NANSDFSubscribe message that receiving conventional equipment and send, replys NANSDFPublish message to conventional equipment.This NANSDFPublish message carries the service identification of business 1, InstanceID that this service identification is corresponding.
Embodiment eight
Fig. 8 is the mutual sequential chart of service discovery system according to a eighth embodiment of the present invention.
Step 1, can be every service creation PublishInstance that oneself can provide and distributes InstanceID by sleeping devices.Certainly, can need to use buffer memory business by sleeping devices, be this buffer memory service creation SubscribeInstance, and be this SubscribeInstance distribution InstanceID=x.
Step 2, provides the buffer memory service creation PublishInstance that the buffer memory device of buffer memory business provides for it, distributes InstanceID=S.
Step 3, when service discovering time window starts, can broadcast NANSDFSubscribe message by sleeping devices, this NANSDFSubscribe message carries InstanceID=x, RequestorInstanceID=S, service identification: buffer memory.
Step 4, buffer memory device receive can sleeping devices send query caching business NANSDFSubscribe message after, reply can sleeping devices NANSDFPublish message.The NANSDFPublish message of this reply carries InstanceID=S, RequestorInstanceID=x, service identification: buffer memory.
Step 5, can sleeping devices receive buffer memory device reply NANSDFPublish message after, store the device address of the buffer memory device carried in NANSDFFollowUp message, and sending NANSDFFollowUp message to buffer memory device clean culture, this NANSDFFollowUp message carries InstanceID, dormancy time, the service identification that in InstanceID=x, RequestorInstanceID=S, service lists, service lists, each service identification is corresponding: buffer memory.
Step 6, buffer memory device receives can after the NANSDFFollowUp message of sleeping devices, and reply can sleeping devices NANSDFFollowUp message, and the NANSDFFollowUp message of this reply carries InstanceID=S, RequestorInstanceID=x.
Step 7, buffer memory device buffer memory can the device address of sleeping devices, InstanceID=x, number of services, service lists, each service identification is corresponding in service lists the cache information such as InstanceID, dormancy time, be limited to dormancy time+one service discovering time window during buffer memory.
Step 8, can in the service discovering time window of sleeping devices dormancy, conventional equipment needs inquiry business 1, for business 1 creates SubscribeInstance, and is that this SubscribeInstance distributes InstanceID=2.Conventional equipment broadcast NANSDFSubscribe information query business 1, this NANSDFSubscribe message carries InstanceID=2, RequestorInstanceID=0, service identification: traffic ID 1.InstanceID=0 represents that the InstanceID of the business 1 that needs are inquired about is for unknown.
Step 9, after buffer memory device receives the NANSDFSubscribe message of conventional equipment, if find the mark of the business 1 of conventional equipment inquiry and buffer memory can the service identification of business of sleeping devices identical, namely this can provide this business 1 by sleeping devices, then reply NANSDFPublish message to conventional equipment, the NANSDFPublish message of this reply carries InstanceID=S, RequestorInstanceID=2, TargetID=y, service identification: the mark of business 1, can the cache information of sleeping devices.TargetID=y is sleeping devices to be the InstanceID that business 1 generates.
Step 10, conventional equipment finds InstanceID=S after receiving the NANSDFPublish message that buffer memory device sends, and represents this business 1 can on sleeping devices, and storing can TargetID=y, the cache information of sleeping devices.TargetID=y represents the InstanceID of conventional equipment institute requested service 1 correspondence.
Step 11, can sleeping devices receive buffer memory device reply NANSDFPublish message after, store the device address of the buffer memory device carried in NANSDFFollowUp message, and sending NANSDFFollowUp message to buffer memory device clean culture, this NANSDFFollowUp message carries InstanceID, dormancy time, the service identification that in InstanceID=x, RequestorInstanceID=S, service lists, service lists, each service identification is corresponding: buffer memory.
Step 12, buffer memory device receives can after the NANSDFFollowUp message of sleeping devices, and reply can sleeping devices NANSDFFollowUp message, and the NANSDFFollowUp message of this reply carries InstanceID=S, RequestorInstanceID=x.
Step 13, buffer memory device is according to InstanceID=x, and that inquires about buffer memory can the cache information of sleeping devices, and utilize up-to-date cache information upgrade before the cache information that stores, and refresh and store the time limit.
Step 14, because conventional equipment has learnt the InstanceID=y of business 1, so conventional equipment can the cache information of sleeping devices according to what store, to sending NANSDFFollowUp message by sleeping devices, this NANSDFFollowUp message carries InstanceID=2; RequestorInstanceID=y; Service identification: traffic ID 1.
Step 15, can the sleeping devices NANSDFFollowUp message that receiving conventional equipment and send, replys NANSDFFollowUp message to conventional equipment.
Embodiment nine
Fig. 9 is the mutual sequential chart of service discovery system according to a ninth embodiment of the present invention.
Step 1, the buffer memory device of buffer memory business is provided, when starting or after adding NANCluster or when starting at service discovering time window, be the buffer memory service creation PublishInstance that it provides, the InstanceID=S of this PublishInstance.
Step 2, can be every service creation PublishInstance that oneself can provide and distributes PublishID by sleeping devices.Certainly, can need to use buffer memory business by sleeping devices, be this buffer memory service creation SubscribeInstance, and be this SubscribeInstance distribution InstanceID=x.When service discovering time window starts, can broadcast NANSDFSubscribe message by sleeping devices, this NANSDFSubscribe message carries InstanceID=x, RequestorInstanceID=S, service identification: buffer memory.
Step 3, buffer memory device receive can sleeping devices send query caching business NANSDFSubscribe message after, reply can sleeping devices NANSDFPublish message.The NANSDFPublish message of this reply carries InstanceID=S, RequestorInstanceID=x, service identification: buffer memory.
Step 4, can sleeping devices receive buffer memory device reply NANSDFPublish message after, store the device address of the buffer memory device carried in NANSDFFollowUp message, and sending NANSDFFollowUp message to buffer memory device clean culture, this NANSDFFollowUp message carries InstanceID=x, RequestorInstanceID=S, service lists, dormancy time, service identification: buffer memory.
Step 5, buffer memory device receives can after the NANSDFFollowUp message of sleeping devices, and reply can sleeping devices NANSDFFollowUp message, and the NANSDFFollowUp message of this reply carries InstanceID=S, RequestorInstanceID=x.
Step 6, buffer memory device buffer memory can the cache information such as device address, InstanceID=x, service lists, dormancy time of sleeping devices, is limited to dormancy time+one service discovering time window during buffer memory.Can carry in the NANSDFFollowUp message that sends of sleeping devices can the device address of sleeping devices.
Step 7, can in the service discovering time window of sleeping devices dormancy, conventional equipment needs inquiry business 1, for business 1 creates SubscribeInstance, and is that this SubscribeInstance distributes InstanceID=2.Conventional equipment broadcast NANSDFSubscribe information query business 1, this NANSDFSubscribe message carries InstanceID=2, RequestorInstanceID=0, service identification: traffic ID 1.
Step 8, after buffer memory device receives the NANSDFSubscribe message of conventional equipment, if find the mark of the business 1 of conventional equipment inquiry and buffer memory can the service identification of business of sleeping devices identical, namely this can provide this business 1 by sleeping devices, then reply NANSDFPublish message to conventional equipment, the NANSDFPublish message of this reply carries InstanceID=S, RequestorInstanceID=2, service identification: the mark of business 1, can the cache information of sleeping devices.
Step 9, conventional equipment receives the NANSDFPublish message that buffer memory device is replied, and finds InstanceID=S, represents business 1 can on sleeping devices, and what store that NANSDFPublish message carries can the cache information of sleeping devices.
Buffer memory device does not reoffer buffer memory business after reply NANSDFPublish message, as: exit NANCluster or only do not provide buffer memory business.
Step 10, can in the sleeping devices service discovering time window of reviving, can sleeping devices according to the device address of buffer memory device of preserving, send NANSDFFollowUp message to buffer memory device, in this NANSDFFollowUp message, carry InstanceID=x, RequestorInstanceID=S, service identification: buffer memory, can the up-to-date service lists of sleeping devices and dormancy time.
Step 11, exit NANCluster due to buffer memory device or do not reoffered buffer memory business, can sleeping devices can not receive buffer memory device reply NANSDFFollowUp message, at this moment, NANSDFFollowUp message can be sent every preset time period to buffer memory device by sleeping devices, in this NANSDFFollowUp message, carry InstanceID=x, RequestorInstanceID=S, service identification: buffer memory, can the up-to-date service lists of sleeping devices and dormancy time.If still do not receive the NANSDFFollowUp message that buffer memory device is replied, then judge that buffer memory device does not reoffer buffer memory business, re-executes step 2, finds new buffer memory device.
Step 12, buffer memory device is according to InstanceID=x, and that inquires about buffer memory can the cache information of sleeping devices, and utilize up-to-date cache information upgrade before the cache information that stores, and refresh and store the time limit.
Step 13, conventional equipment can the cache information of sleeping devices according to what store, to sleeping devices clean culture sending NANSDFSubscribe message, and carries the service identification of required business 1.
Step 14, can the sleeping devices NANSDFSubscribe message that receiving conventional equipment and send, replys NANSDFPublish message to conventional equipment.This NANSDFPublish message carries the service identification of business 1, InstanceID that this service identification is corresponding.
Embodiment ten
Figure 10 is the mutual sequential chart of service discovery system according to a tenth embodiment of the present invention.
Step 1, can be every service creation PublishInstance that oneself can provide and distributes InstanceID by sleeping devices.Certainly, can need to use buffer memory business by sleeping devices, be this buffer memory service creation SubscribeInstance, and be this SubscribeInstance distribution InstanceID=x.
Step 2, provides the buffer memory service creation PublishInstance that the buffer memory device of buffer memory business provides for it, for this PublishInstance distributes InstanceID=S.
Step 3, when service discovering time window starts, can broadcast NANSDFSubscribe message by sleeping devices, this NANSDFSubscribe message carries InstanceID=x, RequestorInstanceID=S, service identification: buffer memory.
Step 4, buffer memory device receive can sleeping devices send query caching business NANSDFSubscribe message after, reply can sleeping devices NANSDFPublish message.The NANSDFPublish message of this reply carries InstanceID=S, RequestorInstanceID=x, service identification: buffer memory.
Step 5, can sleeping devices receive buffer memory device reply NANSDFPublish message after, store the device address of the buffer memory device carried in NANSDFFollowUp message, and sending NANSDFFollowUp message to buffer memory device clean culture, this NANSDFFollowUp message carries InstanceID, dormancy time, the service identification that in InstanceID=x, RequestorInstanceID=S, service lists, service lists, each service identification is corresponding: buffer memory.
Step 6, buffer memory device receives can after the NANSDFFollowUp message of sleeping devices, and reply can sleeping devices NANSDFFollowUp message, and the NANSDFFollowUp message of this reply carries InstanceID=S, RequestorInstanceID=x.
Step 7, buffer memory device buffer memory can the device address of sleeping devices, InstanceID=x, number of services, service lists, each service identification is corresponding in service lists InstanceID, the cache informations such as dormancy time, are limited to dormancy time+one service discovering time window during buffer memory.
Step 8, can in the service discovering time window of sleeping devices dormancy, conventional equipment needs inquiry business 1, for business 1 creates SubscribeInstance, and is that this SubscribeInstance distributes InstanceID=2.Conventional equipment broadcast NANSDFSubscribe information query business 1, this NANSDFSubscribe message carries InstanceID=2, RequestorInstanceID=0, service identification: traffic ID 1.InstanceID=0 represents that the InstanceID of the business 1 that needs are inquired about is for unknown.
Step 9, after buffer memory device receives the NANSDFSubscribe message of conventional equipment, if find the mark of the business 1 of conventional equipment inquiry and buffer memory can the service identification of business of sleeping devices identical, namely this can provide this business 1 by sleeping devices, then reply NANSDFPublish message to conventional equipment, the NANSDFPublish message of this reply carries InstanceID=S, RequestorInstanceID=2, TargetID=y, service identification: the mark of business 1, can the cache information of sleeping devices.TargetID=y is sleeping devices to be the InstanceID that business 1 generates.
Step 10, conventional equipment finds InstanceID=S after receiving the NANSDFPublish message that buffer memory device sends, and represents this business 1 can on sleeping devices, and storing can TargetID=y, the cache information of sleeping devices.TargetID=y represents the InstanceID of conventional equipment institute requested service 1 correspondence.
Buffer memory device does not reoffer buffer memory business after reply NANSDFPublish message, as: exit NANCluster or only do not provide buffer memory business.
Step 11, can sleeping devices receive buffer memory device reply NANSDFPublish message after, store the device address of the buffer memory device carried in NANSDFFollowUp message, and sending NANSDFFollowUp message to buffer memory device clean culture, this NANSDFFollowUp message carries InstanceID, dormancy time, the service identification that in InstanceID=x, RequestorInstanceID=S, service lists, service lists, each service identification is corresponding: buffer memory.
Step 12, exit NANCluster due to buffer memory device or do not reoffered buffer memory business, can sleeping devices can not receive buffer memory device reply NANSDFFollowUp message, at this moment, NANSDFFollowUp message can be sent every preset time period to buffer memory device by sleeping devices, in this NANSDFFollowUp message, carry InstanceID=x, RequestorInstanceID=S, service identification: buffer memory, can the up-to-date service lists of sleeping devices and dormancy time.If still do not receive the NANSDFFollowUp message that buffer memory device is replied, then judge that buffer memory device does not reoffer buffer memory business, re-executes step 2, finds new buffer memory device.
Step 13, buffer memory device is according to InstanceID=x, and that inquires about buffer memory can the cache information of sleeping devices, and utilize up-to-date cache information upgrade before the cache information that stores, and refresh and store the time limit.
Step 14, because conventional equipment has learnt the InstanceID=y of business 1, so conventional equipment can the cache information of sleeping devices according to what store, to sending NANSDFFollowUp message by sleeping devices, this NANSDFFollowUp message carries InstanceID=2; RequestorInstanceID=y; Service identification: traffic ID 1.
Step 15, can the sleeping devices NANSDFFollowUp message that receiving conventional equipment and send, replys NANSDFFollowUp message to conventional equipment.
Although be example object, disclose the preferred embodiments of the present invention, it is also possible for those skilled in the art will recognize various improvement, increase and replacement, and therefore, scope of the present invention should be not limited to above-described embodiment.

Claims (34)

1. a service discovering method, is characterized in that, can the step of sleeping devices side comprise:
Can sleeping devices before dormancy, find to provide the buffer memory device of buffer memory business;
To described buffer memory device send carry described can the service discovering message of cache information of sleeping devices so that described can between sleeping devices rest period, conventional equipment by described buffer memory device find described can the business that provides of sleeping devices; Wherein, described cache information comprises: described can the business information of sleeping devices.
2. the method for claim 1, is characterized in that, described discovery provides the buffer memory device of buffer memory business, comprising:
Broadcast transmission service identification represents the service discovering query messages of buffer memory business;
Receive buffer memory device represents buffer memory business service discovering PUSH message according to the service identification that described service discovering query messages returns.
3. method as claimed in claim 2, is characterized in that, to described buffer memory device send carry described can the service discovering message of cache information of sleeping devices, comprising:
To described buffer memory device send service identification represent buffer memory business and carry described can the first service discovering follow-up message of cache information of sleeping devices;
Receive the second service discovering follow-up message that described buffer memory device returns according to described first service discovering follow-up message.
4. method as claimed in claim 3, is characterized in that, to described buffer memory device send carry described can the service discovering message of cache information of sleeping devices, also comprise:
If pre-determined number sends described first service discovering follow-up message to described buffer memory device continuously, all do not receive the second service discovering follow-up message that described buffer memory device returns, then before sleeping devices dormancy, the buffer memory device that buffer memory business is provided can rediscovered.
5. the method as described in any one of claim 1-4, is characterized in that,
Cache information also comprises: described can the facility information of sleeping devices and dormancy time;
Described business information comprises: described can the sleeping devices service identification of business that can provide; Or,
Described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
6. a service discovering method, is characterized in that, the step of buffer memory device side comprises:
Reception can the service discovering message that sent before its dormancy of sleeping devices;
Carry in service discovering message described in buffer memory described can the cache information of sleeping devices; Wherein, described cache information comprises: described can the business information of sleeping devices;
Described can between sleeping devices rest period, based on described cache information, to conventional equipment provide described can the business information of sleeping devices.
7. method as claimed in claim 6, is characterized in that, described reception can the service discovering message that sent before its dormancy of sleeping devices, comprising:
Reception can sleeping devices sent before its dormancy first service discovering follow-up message; Wherein,
The service identification of described first service discovering follow-up message represent buffer memory business and carry described can the cache information of sleeping devices.
8. method as claimed in claim 7, is characterized in that, described reception after the first service discovering follow-up message of sending before its dormancy of sleeping devices, also can comprise:
According to described first service discovering follow-up message, the second service discovering follow-up message can be returned by sleeping devices to described.
9. method as claimed in claim 7, is characterized in that, before the first service discovering follow-up message of sending before its dormancy of sleeping devices, also can comprise in described reception:
Reception the service identification of sleeping devices broadcast transmission before its dormancy can represent the service discovering query messages of buffer memory business;
According to described service discovering query messages, the service discovering PUSH message that service identification represents buffer memory business can be returned, to represent that described buffer memory device provides buffer memory business by sleeping devices to described.
10. method as claimed in claim 9, is characterized in that, before the service identification of sleeping devices broadcast transmission before its dormancy represents the service discovering query messages of buffer memory business, also can comprise in described reception:
Create the propelling movement example that buffer memory business is provided, and give the instance identification preset.
11. methods as claimed in claim 7, is characterized in that, carry in service discovering message described in buffer memory described can the cache information of sleeping devices, comprising:
Searching that local whether buffer memory is described can the cache information of sleeping devices;
If so, then utilize carry in described service discovering message described can the cache information of sleeping devices, upgrade local store described can the cache information of sleeping devices;
If not, then carry in service discovering message described in buffer memory described can the cache information of sleeping devices.
12. methods according to any one of claim 6-11, is characterized in that,
Cache information also comprises: described can the facility information of sleeping devices and dormancy time;
Described business information comprises: described can the sleeping devices service identification of business that can provide; Or,
Described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
13. methods as claimed in claim 12, is characterized in that, carry in service discovering message described in buffer memory described can the cache information of sleeping devices, comprising:
Within the buffer memory time limit, carry in service discovering message described in buffer memory described can the cache information of sleeping devices; Wherein, first service discovering time window after described dormancy time+described dormancy time is limited to during described buffer memory.
14. methods as claimed in claim 12, is characterized in that, based on described cache information, to conventional equipment provide described can the business information of sleeping devices, comprising:
Receive the service discovering query messages carrying the service identification needing inquiry of conventional equipment broadcast transmission;
If described conventional equipment need the service identification of inquiry and buffer memory can the service identification of sleeping devices identical, then the cache information of sleeping devices can send to described conventional equipment by the clean culture of service discovering PUSH message by described.
15. 1 kinds of service discovering methods, is characterized in that, the step of conventional equipment side comprises:
Broadcast transmission comprises the service discovering query messages of the service identification of needs inquiry;
Receive the service discovering PUSH message that buffer memory device clean culture sends; Wherein, described service discovering PUSH message carries and can be buffered in cache information in described buffer memory device by sleeping devices before its dormancy;
Store described can the cache information of sleeping devices, treat described can after sleeping devices revives, according to described cache information and describedly can carry out service interaction by sleeping devices.
16. methods as claimed in claim 15, is characterized in that,
Cache information comprises: described can the facility information of sleeping devices, business information and dormancy time;
Described business information comprises: described can the sleeping devices service identification of business that can provide; Or,
Described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
17. methods as claimed in claim 16, is characterized in that, described can after sleeping devices revives, according to described cache information and describedly can carry out service interaction by sleeping devices, comprising:
If the cache information received comprises instance identification corresponding to service identification, then direct by the first service discovering follow-up message with describedly can carry out service interaction by sleeping devices;
If the cache information received does not comprise instance identification corresponding to service identification, then first sleeping devices clean culture can send service discovering query messages to described, waiting receive described can sleeping devices return carry the service discovering PUSH message of instance identification corresponding to described service identification after, then by the first service discovering follow-up message with describedly can carry out service interaction by sleeping devices.
18. 1 kinds of service discovering devices, is characterized in that, are arranged on and can the described device of sleeping devices side comprise:
First transceiver module, for before sleeping devices dormancy, finding the buffer memory device providing buffer memory business; To described buffer memory device send carry described can the service discovering message of cache information of sleeping devices so that described can between sleeping devices rest period, conventional equipment by described buffer memory device find described can the business that provides of sleeping devices; Wherein, described cache information comprises: described can the business information of sleeping devices.
19. devices as claimed in claim 18, it is characterized in that, described first transceiver module is used for:
Broadcast transmission service identification represents the service discovering subscribe message of buffer memory business;
Receive buffer memory device represents buffer memory business service discovering PUSH message according to the service identification that described service discovering subscribe message returns.
20. devices as claimed in claim 19, it is characterized in that, described first transceiver module is used for:
To described buffer memory device send service identification represent buffer memory business and carry described can the first service discovering follow-up message of cache information of sleeping devices;
Receive the second service discovering follow-up message that described buffer memory device returns according to described first service discovering follow-up message.
21. devices as claimed in claim 20, is characterized in that, described first transceiver module also for:
If pre-determined number sends described first service discovering follow-up message to described buffer memory device continuously, all do not receive the second service discovering follow-up message that described buffer memory device returns, then before sleeping devices dormancy, the buffer memory device that buffer memory business is provided can rediscovered.
22. devices as described in any one of claim 18-21, is characterized in that,
Cache information also comprises: described can the facility information of sleeping devices and dormancy time;
Described business information comprises: described can the sleeping devices service identification of business that can provide; Or,
Described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
23. 1 kinds of service discovering devices, is characterized in that, the described device being arranged on buffer memory device side comprises:
Second transceiver module, can the service discovering message that sent before its dormancy of sleeping devices for receiving;
Cache module, for can the cache information of sleeping devices described in carrying in service discovering message described in buffer memory; Wherein, described cache information comprises: described can the business information of sleeping devices;
Described second transceiver module, also for described can between sleeping devices rest period, based on described cache information, to conventional equipment provide described can the business information of sleeping devices.
24. devices as claimed in claim 23, it is characterized in that, described second transceiver module is used for:
Reception can sleeping devices sent before its dormancy first service discovering follow-up message; Wherein,
The service identification of described first service discovering follow-up message represent buffer memory business and carry described can the cache information of sleeping devices.
25. devices as claimed in claim 24, is characterized in that, described second transceiver module also for:
According to described first service discovering follow-up message, the second service discovering follow-up message can be returned by sleeping devices to described.
26. devices as claimed in claim 24, is characterized in that, described second transceiver module also for:
Can before the first service discovering follow-up message of sending before its dormancy of sleeping devices in described reception, receive and the service identification of sleeping devices broadcast transmission before its dormancy can represent the service discovering subscribe message of buffer memory business;
According to described service discovering subscribe message, the service discovering PUSH message that service identification represents buffer memory business can be returned, to represent that described buffer memory device provides buffer memory business by sleeping devices to described.
27. devices as claimed in claim 26, it is characterized in that, described device also comprises creation module;
Described creation module, for before the service identification of sleeping devices broadcast transmission before its dormancy represents the service discovering subscribe message of buffer memory business, can creating the propelling movement example providing buffer memory business, and give the instance identification preset in described reception.
28. devices as claimed in claim 24, it is characterized in that, described cache module is used for:
Searching that local whether buffer memory is described can the cache information of sleeping devices;
If so, then utilize carry in described service discovering message described can the cache information of sleeping devices, upgrade local store described can the cache information of sleeping devices;
If not, then carry in service discovering message described in buffer memory described can the cache information of sleeping devices.
29. devices according to any one of claim 23-28, is characterized in that,
Cache information also comprises: described can the facility information of sleeping devices and dormancy time;
Described business information comprises: described can the sleeping devices service identification of business that can provide; Or,
Described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
30. devices as claimed in claim 29, it is characterized in that, described cache module is used for:
Within the buffer memory time limit, carry in service discovering message described in buffer memory described can the cache information of sleeping devices; Wherein, first service discovering time window after described dormancy time+described dormancy time is limited to during described buffer memory.
31. devices as claimed in claim 29, it is characterized in that, described second transceiver module is used for:
Receive the service discovering subscribe message of carrying the service identification needing inquiry of conventional equipment broadcast transmission;
If described conventional equipment need the service identification of inquiry and buffer memory can the service identification of sleeping devices identical, then the cache information of sleeping devices can send to described conventional equipment by the clean culture of service discovering PUSH message by described.
32. 1 kinds of service discovering devices, is characterized in that, the described device being arranged on conventional equipment side comprises:
3rd transceiver module, comprises the service discovering subscribe message of the service identification of needs inquiry for broadcast transmission; Receive the service discovering PUSH message that buffer memory device clean culture sends; Wherein, described service discovering PUSH message carries and can be buffered in cache information in described buffer memory device by sleeping devices before its dormancy;
Memory module, for store described can the cache information of sleeping devices, treat describedly after sleeping devices revives, described 3rd transceiver module to be called, according to described cache information and describedly can carry out service interaction by sleeping devices.
33. devices as claimed in claim 32, is characterized in that,
Cache information comprises: described can the facility information of sleeping devices, business information and dormancy time;
Described business information comprises: described can the sleeping devices service identification of business that can provide; Or,
Described business information comprises: described can the sleeping devices service identification of business that can provide and instance identification corresponding to described service identification.
34. devices as claimed in claim 33, is characterized in that, described 3rd transceiver module is used for:
When the cache information received comprises instance identification corresponding to service identification, directly by the first service discovering follow-up message with describedly can carry out service interaction by sleeping devices;
When the cache information received does not comprise instance identification corresponding to service identification, first sleeping devices clean culture can send service discovering subscribe message to described, waiting receive described can sleeping devices return carry the service discovering PUSH message of instance identification corresponding to described service identification after, then by the first service discovering follow-up message with describedly can carry out service interaction by sleeping devices.
CN201510548397.2A 2015-08-31 2015-08-31 Service discovery method and apparatus Pending CN105263131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510548397.2A CN105263131A (en) 2015-08-31 2015-08-31 Service discovery method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510548397.2A CN105263131A (en) 2015-08-31 2015-08-31 Service discovery method and apparatus

Publications (1)

Publication Number Publication Date
CN105263131A true CN105263131A (en) 2016-01-20

Family

ID=55102599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510548397.2A Pending CN105263131A (en) 2015-08-31 2015-08-31 Service discovery method and apparatus

Country Status (1)

Country Link
CN (1) CN105263131A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107623575A (en) * 2016-07-13 2018-01-23 中兴通讯股份有限公司 A kind of method and device of discovery business
CN115514587A (en) * 2022-09-20 2022-12-23 杭州萤石软件有限公司 Communication device, method, electronic device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1788247A (en) * 2003-05-12 2006-06-14 佳能株式会社 Network service system, service proxy processing method, computer-readable storage medium storing program, and program therefor
CN1823495A (en) * 2003-08-20 2006-08-23 苹果计算机公司 Method and apparatus for implementing a sleep proxy for services on a network
CN1833214A (en) * 2003-05-12 2006-09-13 佳能株式会社 Data processor, data processing method, and control program
US20070250590A1 (en) * 2006-04-21 2007-10-25 Microsoft Corporation Ad-hoc proxy for discovery and retrieval of dynamic data such as a list of active devices
CN101572938A (en) * 2008-03-20 2009-11-04 英特尔公司 Techniques utilizing a layer-2 proxy for energy-efficient service discovery and connectivity in networks
US20100322213A1 (en) * 2009-06-23 2010-12-23 Huaiyu Liu Service discovery in a wireless network
CN102571507A (en) * 2010-12-10 2012-07-11 华为终端有限公司 Equipment wake-up method, dormant agent equipment and equipment wake-up system
CN103125135A (en) * 2010-09-16 2013-05-29 高通股份有限公司 Power conservation in wireless client terminals using proxy device
CN104283743A (en) * 2013-07-01 2015-01-14 中兴通讯股份有限公司 Home network equipment and proxy service discovering method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1788247A (en) * 2003-05-12 2006-06-14 佳能株式会社 Network service system, service proxy processing method, computer-readable storage medium storing program, and program therefor
CN1833214A (en) * 2003-05-12 2006-09-13 佳能株式会社 Data processor, data processing method, and control program
CN1823495A (en) * 2003-08-20 2006-08-23 苹果计算机公司 Method and apparatus for implementing a sleep proxy for services on a network
US20070250590A1 (en) * 2006-04-21 2007-10-25 Microsoft Corporation Ad-hoc proxy for discovery and retrieval of dynamic data such as a list of active devices
CN101572938A (en) * 2008-03-20 2009-11-04 英特尔公司 Techniques utilizing a layer-2 proxy for energy-efficient service discovery and connectivity in networks
US20100322213A1 (en) * 2009-06-23 2010-12-23 Huaiyu Liu Service discovery in a wireless network
CN103125135A (en) * 2010-09-16 2013-05-29 高通股份有限公司 Power conservation in wireless client terminals using proxy device
CN102571507A (en) * 2010-12-10 2012-07-11 华为终端有限公司 Equipment wake-up method, dormant agent equipment and equipment wake-up system
CN104283743A (en) * 2013-07-01 2015-01-14 中兴通讯股份有限公司 Home network equipment and proxy service discovering method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107623575A (en) * 2016-07-13 2018-01-23 中兴通讯股份有限公司 A kind of method and device of discovery business
CN107623575B (en) * 2016-07-13 2022-03-22 中兴通讯股份有限公司 Method and device for discovering service
CN115514587A (en) * 2022-09-20 2022-12-23 杭州萤石软件有限公司 Communication device, method, electronic device and storage medium
CN115514587B (en) * 2022-09-20 2024-03-08 杭州萤石软件有限公司 Communication device, method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US9723583B2 (en) Masterless slot allocation
US8848559B2 (en) Methods and apparatuses for device discovery
CN101656763B (en) IP address automatic distribution method, client and server
CN107509201A (en) More Subscriber Identity Module devices, its chip and the method with its reception paging signal
KR101030353B1 (en) Apparatus and method for navigating the path to mobile terminal in nearby communication
CN102075591A (en) Method, device and system for acquiring media access control address
CN105610962A (en) Anti-conflict mobile terminal IP address allocation relay equipment and method
CN103975541A (en) Method and apparatus for transmitting a mac control message in wireless access system
CN104009894A (en) Automatic acquisition method of service information in local area network and system and equipment thereof
CN107743154B (en) Tracking and attendance system based on Wi-Fi intelligent terminal and method thereof
CN103780603B (en) Lightweight method for pushing in application
US20140029539A1 (en) Method and apparatus for performing ranging at m2m device in a wireless communication system
CN105263131A (en) Service discovery method and apparatus
CN102036419B (en) Network node configuration information processing method, network node and communication system
CN104754700A (en) Device and method for public land mobile network searching
CN105050129B (en) Data interaction method and device
CN106793140A (en) The dispatching method of inessential system information, device and base station
KR101748302B1 (en) System and method of anqp querying using a common anqp group version
EP2914028A1 (en) Method and apparatus for deregistering terminal peripheral
EP2863677B1 (en) Methods and devices for determining and assisting in determining standby frequency point in cognitive radio system
JP5596883B2 (en) Method and apparatus for performing network re-entry in a wireless communication system
CN101795310B (en) Mobile phone and method for processing multimedia message notification message
CN102594941A (en) Method for device access and device communication in building intercom system
CN103518335A (en) Method and apparatus for performing ranging at m2m device in a wireless communication system
CN104244172A (en) Information interaction method and device

Legal Events

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

Application publication date: 20160120

RJ01 Rejection of invention patent application after publication