Summary of the invention
The embodiment provides a kind of method of wake-up device, sleep proxy equipment and system, solve the problem that sleeping devices cannot respond the message except other any form corresponding with waking message format up, the equipment making not record the use service waking message format up also can wake this sleeping devices up.
A method for wake-up device, comprising:
Receive the dormancy notice that sleeping devices sends, described dormancy is noticed and is comprised the message format waking described sleeping devices up, preserves described message format;
Replace the periodic transmitting apparatus of described sleeping devices and service declaration message, described equipment and service declaration message comprise the device descriptive information and service description information that obtain when mutually finding with described sleeping devices;
According to the solicited message using the equipment of service to send, wake message according to described message format up to described sleeping devices transmission.
A kind of sleep proxy equipment, comprising:
Receiving element is noticed in dormancy, and the dormancy sent for receiving sleeping devices is noticed, and described dormancy is noticed and comprised the message format waking described sleeping devices up, preserves described message format;
Declaration packet sending unit, for replacing the periodic transmitting apparatus of described sleeping devices and service declaration message, described equipment and service declaration message comprise the device descriptive information and service description information that obtain when mutually finding with described sleeping devices;
Wake packet sending unit up, for according to the solicited message using the equipment of service to send, wake message according to described message format up to described sleeping devices transmission.
A system for wake-up device, comprising: use the equipment of service, sleep proxy equipment and sleeping devices;
The described equipment of service that uses comprises:
Solicited message transmitting element, for described sleep proxy equipment transmission request information, described request packets of information is containing the device descriptive information expecting to find and/or service description information;
Arbitrary described sleep proxy equipment that described sleep proxy equipment adopts the embodiment of the present invention to provide;
Described sleeping devices comprises:
Transmitting element is noticed in dormancy, and notice for sending dormancy to described sleep proxy equipment, described dormancy is noticed and comprised the message format waking described sleeping devices up;
Wake message receiving element up, wake message up for what receive that described sleep proxy equipment sends according to described message format.
The technical scheme provided as can be seen from the embodiment of the invention described above, message format is waken up by what preserve sleeping devices in advance, and wake corresponding sleeping devices up according to the use request using the equipment of service to propose, solve the problem that sleeping devices cannot respond the message except other any form corresponding with waking message format up, the equipment making not record the use service waking message format up also can wake this sleeping devices up.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment provides a kind of method of wake-up device, for at existing home network, office networks etc. are based in the network of interconnection agreement, use the equipment of service, sleep proxy equipment and sleeping devices can pass through U PnP (Universal Plug and Play, UPnP) agreement or IGRS (Intelligence Grouping and Resource Sharing, IGRS) agreement finds mutually, and when sleep proxy device discovery sleeping devices, the device descriptive information of sleeping devices can be obtained from the message transmitted between equipment, service description information, IP address and MAC Address.In order to the technical scheme of clearer explanation the method, be described further below in conjunction with Figure of description.
Embodiment one
As shown in Figure 1, the method specifically can comprise:
Step 11, receive the dormancy notice that sleeping devices sends, this dormancy is noticed and is comprised the message format waking this sleeping devices up, preserves this message format.
Concrete, sleeping devices is before entering resting state, and can send a dormancy on network and notice, in dormancy is noticed, contain the message format waking sleeping devices up, this message format can be following form:
FF FF FF FF FF FF 11 22 33 44 55 66......
Wherein the FF of the first six byte of message format is arbitrary hexadecimal number, can represent the device identification of this sleeping devices, and 11 22 33 44 55 66 in message format is the MAC Address of the network interface card of sleeping devices.This message format is arranged in the message body that dormancy is noticed.
After transmission dormancy is noticed, sleeping devices enters resting state, and only receive notice with dormancy in the message format waking sleeping devices up that comprises identical wake message up, this sleeping devices could be waken up.
Sleep proxy equipment can receive the dormancy notice that sleeping devices sends on network, and the message format waking sleeping devices up comprised in dormancy being noticed is kept at this locality.
Step 12, replaces the periodic transmitting apparatus of sleeping devices and service declaration message, and this equipment and service declaration message comprise the device descriptive information and service description information that obtain when mutually finding with this sleeping devices.
Particularly, the transmitting apparatus in a network of sleep proxy device periodically and service declaration message (this message can be SSDP Alive message), include the device descriptive information and service description information that obtain when mutually being found by interconnection agreement with this sleeping devices in this equipment and service declaration message.All devices in a network can receive this equipment and service declaration message, and the equipment newly added in network also because of the transmission of sleep proxy device periodically, and can receive equipment and the service declaration message of the transmission of sleep proxy equipment.Cycle wherein can be that the equipment such as 10 seconds, 30 seconds or 1 minute run any rational time needed.
When there is the equipment using service in network, sleep proxy equipment transmitting apparatus a surname and service declaration message can be received, if with the equipment that service description information and this use are served, this equipment expects that the device descriptive information found is identical with service description information with the device descriptive information comprised in service declaration message, then use the equipment of service to sleep proxy equipment transmission request information, in this solicited message, can comprise the device descriptive information and service description information of expecting discovering device.
Step 13, according to the solicited message using the equipment of service to send, wakes message according to the message format waking sleeping devices up up to the transmission of this sleeping devices.
Particularly, after sleep proxy equipment receives the solicited message using the equipment of service to send, think that equipment that this use serves expects the sleeping devices using this solicited message corresponding, the equipment transmitting apparatus that this sleeping devices first can be replaced to serve to this use and the response message of service describing; Then send to the sleeping devices that solicited message is corresponding and wake message up, the message format that the dormancy that the form waking message up wherein and this sleeping devices send before entering resting state is noticed is identical.Be waken up when sleeping devices receives and wakes message up, after using the equipment of service to receive response message, mutually can be found and service interaction by corresponding agreement and the sleeping devices be waken up.
Embodiment two
In embodiments of the present invention, equipment, sleep proxy equipment and sleeping devices that use is served can form network configuration as shown in Figure 2, and concrete execution step as shown in Figure 3, can comprise:
Step 31, receive the dormancy notice that sleeping devices sends, this dormancy is noticed and is comprised the message format waking this sleeping devices up, preserves this message format.
Concrete, sleeping devices, before entering resting state, can send a dormancy and notice, in dormancy is noticed, contain the message format waking sleeping devices up on network.After transmission dormancy is noticed, sleeping devices enters resting state, and only receive notices with dormancy in the message format waking sleeping devices up that comprises wake message up to what lead to, this sleeping devices could be waken up.
Sleep proxy equipment can receive the dormancy notice that sleeping devices sends on network, and the message format waking sleeping devices up comprised in dormancy being noticed is kept at this locality.
Optionally, after execution step 31, said method also comprises:
Preserve I P address and the MAC Address of the described sleeping devices obtained when mutually finding with described sleeping devices.
Optionally, after the IP address of described sleeping devices obtained when performing and preserving and mutually find with described sleeping devices and MAC Address, also comprise:
Monitor the ARP message for inquiring about described sleeping devices IP address or MAC Address.
Step 32, replaces the periodic transmitting apparatus of sleeping devices and service declaration message, and this equipment and service declaration message comprise the device descriptive information and service description information that obtain when mutually finding with sleeping devices.
Particularly, the transmitting apparatus in a network of sleep proxy device periodically and service declaration message (this message can be SSDP Alive message), include the device descriptive information and service description information that obtain when mutually being found by interconnection agreement with this sleeping devices in this equipment and service declaration message.All devices in a network can receive this equipment and service declaration message, and the equipment newly added in network also because of the transmission of sleep proxy device periodically, and can receive equipment and the service declaration message of the transmission of sleep proxy equipment.Cycle wherein can be that the equipment such as 10 seconds, 30 seconds or 1 minute run any rational time needed.
Step 33, replaces with the address in the device descriptive information of sleeping devices and service description information and receives address that dormancy notices and/or monitoring is used for inquiring about the ARP message of sleeping devices IP address or MAC Address.
It should be noted that: step 33 is optional steps.
In a kind of situation: step 33 is specially: the address in the device descriptive information of sleeping devices and service description information is replaced with the address receiving dormancy and notice.
In another kind of situation: step 33 is specially: monitor the ARP message for inquiring about sleeping devices IP address or MAC Address.
In another kind of situation: step 33 is specially: the address in the device descriptive information of sleeping devices and service description information is replaced with the address receiving dormancy and notice; Monitor the ARP message for inquiring about sleeping devices I P address or MAC Address.
When there is the equipment using service in network, sleep proxy equipment can be found by interconnection agreement and receive sleep proxy equipment transmitting apparatus a surname and service declaration message, if in this equipment and service declaration message with the equipment that service description information and this use are served, the device descriptive information that comprises expects that the device descriptive information found is identical with service description information, then use the equipment of service can to sleep proxy equipment transmission request information.If this solicited message uses the equipment of service to send request message at least one address in device descriptive information or service description information, the device descriptive information and service description information of expecting use equipment is included in this request message, because the address in the device descriptive information of sleeping devices and service description information has been replaced with the address of sleep proxy equipment this locality by sleep proxy equipment before, therefore sleep proxy equipment can receive this request message; If this solicited message uses the equipment of service to send APP message to the IP address or MAC Address expecting the sleeping devices used, then sleep proxy equipment can listen to this ARP message in a network.
Step 34, according to the solicited message using the equipment of service to send, wakes message according to the message format waking sleeping devices up up to the transmission of this sleeping devices.
Particularly, after sleep proxy equipment receives the solicited message using the equipment of service to send, think that equipment that this use serves expects the sleeping devices using this solicited message corresponding, the equipment transmitting apparatus that this sleeping devices first can be replaced to serve to this use and the response message of service describing; Then corresponding sleeping devices is found out according to the device descriptive information in this solicited message, service description information or ARP message, send to this sleeping devices and wake message up, the message format that the dormancy that the form waking message up wherein and this sleeping devices send before entering resting state is noticed is identical.Be waken up when sleeping devices receives and wakes message up, after using the equipment of service to receive response message, mutually can be found and service interaction by corresponding agreement and the sleeping devices be waken up.
The embodiment of the present invention by advance preserve sleeping devices wake message format up, and wake corresponding sleeping devices up according to the use request using the equipment of service to propose, solve the problem that sleeping devices cannot respond the message except other any form corresponding with waking message format up, the equipment making not record the use service waking message format up also can wake this sleeping devices up.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Embodiments of the invention additionally provide a kind of sleep proxy equipment, as shown in Figure 4, this sleep proxy equipment specifically can comprise dormancy and notices receiving element 41, declaration packet sending unit 42 and wake packet sending unit 43 up, the dormancy notice that receiving element 41 sends for receiving sleeping devices is noticed in dormancy, this dormancy is noticed and is comprised the message format waking this sleeping devices up, preserves this message format; Declaration packet sending unit 42 is for replacing the periodic transmitting apparatus of sleeping devices and service declaration message, and this equipment and service declaration message comprise the device descriptive information and service description information that obtain when mutually finding with this sleeping devices; Wake packet sending unit 43 up for according to the solicited message using the equipment of service to send, wake message according to the message format waking sleeping devices up up to the transmission of this sleeping devices.
Optionally, dormancy is noticed in receiving element 41 and can be comprised address replacement subelement, for the address in the device descriptive information of sleeping devices and service description information being replaced with the address receiving this dormancy and notice.
Optionally, address can be comprised in declaration packet sending unit 42 and preserve subelement, the IP address of this sleeping devices obtained when mutually finding with sleeping devices for preserving and MAC Address.
Optionally, declare can also comprise monitoring subelement, for monitoring the ARP message for inquiring about sleeping devices IP address or MAC Address in packet sending unit 42.
Optionally, wake in packet sending unit 43 one that at least can comprise in the first receiving element and the second receiving element up, first receives subelement, for receiving the acquisition device descriptive information of equipment transmission and/or the equipment of service description information and service discovery message that use service; Second receives subelement, for receiving the inquiry sleeping devices IP address of equipment transmission or the ARP message of MAC Address that use service.
The embodiment of the processing capacity of each unit comprised in above-mentioned sleep proxy equipment describes in method execution mode before, in this no longer repeated description.
The embodiment of the present invention by advance preserve sleeping devices wake message format up, and wake corresponding sleeping devices up according to the use request using the equipment of service to propose, solve the problem that sleeping devices cannot respond the message except other any form corresponding with waking message format up, the equipment making not record the use service waking message format up also can wake this sleeping devices up.
Embodiments of the invention additionally provide a kind of system of wake-up device, and as shown in Figure 5, this system specifically can comprise the equipment 51, sleep proxy equipment 52 and the sleeping devices 53 that use service.
Wherein, specifically solicited message transmitting element 511 can be comprised in the equipment 51 using service, solicited message transmitting element 511 is for sleep proxy equipment 52 transmission request information, this solicited message comprises the device descriptive information and/or service description information expecting to find, or this solicited message comprises the inquiry IP address of sleeping devices 53 or the ARP message of MAC Address.
In sleep proxy equipment 52, specifically can comprise dormancy notice receiving element 41, declaration packet sending unit 42 and wake packet sending unit 43 up, the dormancy notice that receiving element 41 sends for receiving sleeping devices 53 is noticed in dormancy, this dormancy is noticed and is comprised the message format waking this sleeping devices 53 up, preserves this message format; Declaration packet sending unit 42 is for replacing sleeping devices 52 periodically transmitting apparatus and service declaration message, and this equipment and service declaration message comprise the device descriptive information and service description information that obtain when mutually finding with sleeping devices 53; Wake packet sending unit 43 up for according to the solicited message using the equipment of service to send, wake message according to the message format waking sleeping devices up up to sleeping devices 53 transmission.
In sleeping devices 53, specifically can comprise dormancy notice transmitting element 531 and wake message receiving element 532 up, dormancy is noticed transmitting element 531 and is noticed for sending dormancy to sleep proxy equipment 531, and this dormancy is noticed and comprised the message format waking sleeping devices 53 up; Wake up message receiving element 532 for receive sleep proxy equipment 52 according to wake up sleeping devices message format send wake message up.
Concrete, when sleeping devices 53 is before entering resting state, transmitting element 531 can be noticed by dormancy and notice for sending dormancy to sleep proxy equipment 52, contain in dormancy is noticed wake sleeping devices up wake message format up.After transmission dormancy is noticed, sleeping devices 53 enters resting state.
Sleep proxy equipment 52 is noticed receiving element 41 by dormancy and on network, is received the dormancy that sleeping devices 53 sends notice, and preserve during dormancy is noticed comprise wake sleeping devices 53 up wake message format up.
Then sleep proxy equipment 52 periodically replaces sleeping devices 53 transmitting apparatus and service declaration message by declaration packet sending unit 42, and equipment and service declaration message comprise the device descriptive information and service description information that obtain when mutually finding with described sleeping devices; Further, the address in the device descriptive information of sleeping devices and service description information replaced with the address receiving dormancy notice or monitor in network the ARP message whether had for inquiring about sleeping devices IP address or MAC Address.
When there is the equipment 51 using service in network, after receiving equipment and service declaration message, can by solicited message transmitting element 511 to sleep proxy equipment 52 transmission request information, solicited message comprises the device descriptive information and/or service description information expecting to find, or solicited message comprises the inquiry IP address of sleeping devices 83 or the ARP message of MAC Address.
When sleep proxy equipment 52 finds that one or both in the device descriptive information that comprises in solicited message or service description information are all identical with the device descriptive information of sleeping devices or service description information, or ARP message inquiry be sleeping devices IP address or MAC message time, sleep proxy equipment 52 can think that the equipment 51 of use service needs to access sleeping devices 53, then by waking packet sending unit 43 up according to the solicited message using the equipment 51 of service to send, send to sleeping devices 53 and wake message up, this wakes message up and carries and notice identical message format with this dormancy, when sleeping devices wake up message receiving element 532 receive sleep proxy equipment 52 send wake message up time, what message comprised if wake up wake up message format with send to sleep proxy equipment 52 dormancy notice in wake message format up identical, then wake sleeping devices 53 up.
The equipment 51 of service is now used to obtain device descriptive information and the service description information of the sleeping devices 53 of sleeping devices, and sleeping devices 53 has also been waken up, the equipment 51 of service has been used namely to carry out normal service interaction by interconnection agreement and sleeping devices 53.
What the system of the wake-up device that the embodiment of the present invention provides preserved sleeping devices in advance by sleep proxy equipment wakes message format up, and wake corresponding sleeping devices up according to the use request using the equipment of service to propose, solve the problem that sleeping devices cannot respond the message except other any form corresponding with waking message format up, the equipment making not record the use service waking message format up also can wake this sleeping devices up.
The above; be only the present invention's preferably embodiment; although different embodiments have employed the technical problem that different technical characteristics solves the present invention's proposition; but these embodiments are all the different implementation methods under same inventive concept; and protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses, the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.