Summary of the invention
The technical problem that the present invention solves is, a kind of server and alarm clock implementing method thereof are provided, and it is good that alarm clock rings noisy effect, can bring better user to experience.
For solving the problems of the technologies described above, the invention provides a kind of alarm clock implementing method of server, server is linked on network, method comprises: the equipment being connected on network is judged, sign corresponding to equipment that has sound broadcasting module and be linked into network joined in available alarm clock list of devices and preserved; By Network Capture, be linked into the alarm clock information that the input equipment of network pushes, sign and the tinkle of bells file of the alarm clock equipment that alarm clock information comprises alarm time, will wake up; Alarm time and current time are compared, consistent with current time at alarm time, and determine the alarm clock equipment that will wake up be identified in available alarm clock list of devices time, by network control, identify corresponding alarm clock device plays the tinkle of bells file.
Wherein, determine the alarm clock equipment that will wake up be identified at available alarm clock list of devices in time, further with available alarm clock list of devices in other equipment of recording communicate, distance between the alarm clock equipment that obtains other equipment in available alarm clock list of devices and will wake up, and the distance of choosing in other equipment in available alarm clock list of devices and between the alarm clock equipment that will wake up is less than predetermined threshold value person as treating wake-up device, when alarm time is consistent with current time, by network control, identify corresponding alarm clock device plays the tinkle of bells file, and by network control, treat wake-up device broadcasting the tinkle of bells file simultaneously.
Wherein, before the alarm clock information pushing at the input equipment that is linked into network by Network Capture, method also comprises: the equipment on network is judged, the sign with the equipment of display module and input module is joined in available input equipment list and preserved; By Network Capture, be linked into alarm clock information that the input equipment of network pushes and carry out meeting under pre-conditioned, be pre-conditionedly: determine in the available input equipment list of being identified at of input equipment.
What wherein, by Network Capture, can push with any one corresponding equipment in input equipment list stops quarter-bell broadcast information; Response stops quarter-bell broadcast information and by network control, identifies corresponding alarm clock equipment and stop playing the tinkle of bells file.
Wherein, alarm clock information also comprises repetitive mode, identifies corresponding alarm clock device plays the tinkle of bells file comprise by network control: by network control, identify corresponding alarm clock equipment and play the tinkle of bells file with repetitive mode.
For solving the problems of the technologies described above, the present invention also provides a kind of server, server is linked on network, comprise: access module, for the equipment being connected on network is judged, sign corresponding to equipment that has sound broadcasting module and be linked into network joined in available alarm clock list of devices and preserved; Acquisition module, is connected with access module, the alarm clock information pushing for be linked into the input equipment of network by Network Capture, sign and the tinkle of bells file of the alarm clock equipment that alarm clock information comprises alarm time, will wake up; Control module, be connected with acquisition module, for alarm time and current time are compared, consistent with current time at alarm time, and determine the alarm clock equipment that will wake up be identified in available alarm clock list of devices time, by network control, identify corresponding alarm clock device plays the tinkle of bells file.
Wherein, control module also for determine the alarm clock equipment that will wake up be identified at available alarm clock list of devices time, further with available alarm clock list of devices in other equipment of recording communicate, distance between the alarm clock equipment that obtains other equipment in available alarm clock list of devices and will wake up, and the distance of choosing in other equipment in available alarm clock list of devices and between the alarm clock equipment that will wake up is less than predetermined threshold value person as treating wake-up device, when alarm time is consistent with current time, by network control, identify corresponding alarm clock device plays the tinkle of bells file, and by network control, treat wake-up device broadcasting the tinkle of bells file simultaneously.
Wherein, access module also judges for the equipment on network, and the sign with the equipment of display module and input module is joined in available input equipment list and preserved; Acquisition module is linked into by Network Capture alarm clock information that the input equipment of network pushes to carry out meeting under pre-conditioned, is pre-conditionedly: determine in the available input equipment list of being identified at of input equipment.
Wherein, acquisition module can push with any one corresponding equipment in input equipment list by Network Capture stops quarter-bell broadcast information; Control module response stops quarter-bell broadcast information and by network control, identifies corresponding alarm clock equipment and stop playing the tinkle of bells file.
Wherein, alarm clock information also comprises repetitive mode, and control module identifies corresponding alarm clock equipment by network control and plays the tinkle of bells file with repetitive mode.
By such scheme, the invention has the beneficial effects as follows: by the equipment being connected on network is judged, sign corresponding to equipment that has sound broadcasting module and be linked into network joined in available alarm clock list of devices and preserved; By Network Capture, be linked into the alarm clock information that the input equipment of network pushes, sign and the tinkle of bells file of the alarm clock equipment that alarm clock information comprises alarm time, will wake up; Alarm time and current time are compared, when alarm time is consistent with current time, and determine being identified in available alarm clock list of devices of the alarm clock equipment that will wake up, by network control, identify corresponding alarm clock device plays the tinkle of bells file, it is good that alarm clock rings noisy effect, can bring better user to experience.
Embodiment
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of alarm clock implementing method of the server of first embodiment of the invention.As shown in Figure 1, the alarm clock implementing method of server comprises:
Step S10: the equipment being connected on network is judged, sign corresponding to equipment that has sound broadcasting module and be linked into network joined in available alarm clock list of devices and preserved.
In embodiments of the present invention, server is linked on network, monitors the equipment of all access intelligent routers or family's Cloud Server.In step S10, the equipment that has sound broadcasting module and be linked into network shows as alarm clock equipment.Server joins alarm clock equipment in available alarm clock list of devices according to corresponding sign in advance.Wherein, the sign of alarm clock equipment can be device identification number or the network address etc.Alarm clock equipment is to play the terminal equipment that rings noisy function by play sound, vibration etc., has sound ability to play, and WOL/dormancy ability, such as smart mobile phone, computer, panel computer, intelligent television, Baffle Box of Bluetooth, Bluetooth doorbell etc.So, if mobile phone ringing noisy before low electricity shutdown, or because be placed on while causing the unheard situation of user in bag, can ring by other alarm clock equipment noisyly, to obtain better alarm clock, ring the effect of making a noise.
Step S11: be linked into by Network Capture the alarm clock information that the input equipment of network pushes, sign and the tinkle of bells file of the alarm clock equipment that alarm clock information comprises alarm time, will wake up.
In embodiments of the present invention, before the alarm clock information pushing at the input equipment that is linked into network by Network Capture, need to the equipment on network be judged, the sign with the equipment of display module and input module is joined in available input equipment list and preserved, and by Network Capture, be linked into alarm clock information that the input equipment of network pushes and carry out meeting under pre-conditioned, be pre-conditionedly: determine in the available input equipment list of being identified at of input equipment.Wherein, the equipment with display module and input module shows as input equipment, input equipment can be also to make user complete the terminal equipment that alarm clock arranges, be that input equipment is to make user complete the terminal equipment that alarm clock arranges, such as computer, smart mobile phone, panel computer, intelligent television etc.Input module wherein can be touch, keyboard, remote control etc.In other embodiments of the invention, alarm clock equipment can be input equipment simultaneously.
In embodiments of the present invention, alarm clock information also comprises repetitive mode, and server identifies corresponding alarm clock equipment by network control and plays the tinkle of bells file with repetitive mode.In step S11, user is by preset application or web page interlinkage in input equipment, carry out the setting of alarm clock, as select time, repetitive mode, the tinkle of bells etc., complete the rear input equipment of arranging of alarm clock and be correlated with configuration information and the tinkle of bells file etc. can be sent to alarm service device to preserve, thereby complete setting.
Step S12: alarm time and current time are compared, consistent with current time at alarm time, and determine the alarm clock equipment that will wake up be identified in available alarm clock list of devices time, by network control, identify corresponding alarm clock device plays the tinkle of bells file.
Particularly, in server, there is the timer of wireless circulating, the value of the alarm clock setting and present clock is compared.When finding to need sound noisy, according to the sign of the alarm clock equipment that will wake up, inquire about available alarm clock list of devices, determine the alarm clock equipment that will wake up be identified in available alarm clock list of devices time, by network control, identify corresponding alarm clock device plays the tinkle of bells file, wake the alarm clock equipment that need to wake up up and make it start loud making a noise, send alarm clock simultaneously and notify the input equipment to all registrations.
In step S12, determine the alarm clock equipment that will wake up be identified at available alarm clock list of devices in time, can also be further with available alarm clock list of devices in other equipment of recording communicate, distance between the alarm clock equipment that obtains other equipment in available alarm clock list of devices and will wake up, and the distance of choosing in other equipment in available alarm clock list of devices and between the alarm clock equipment that will wake up is less than predetermined threshold value person as treating wake-up device, when alarm time is consistent with current time, by network control, identify corresponding alarm clock device plays the tinkle of bells file, and by network control, treat wake-up device broadcasting the tinkle of bells file simultaneously.In embodiments of the present invention visible, server can wake a plurality of alarm clock equipment up simultaneously.
In embodiments of the present invention, if need the sound of turn off the alarm equipment noisy, what by Network Capture, can push with any one corresponding equipment in input equipment list stops quarter-bell broadcast information, then respond this and stop quarter-bell broadcast information, by network control, identify corresponding alarm clock equipment and stop playing the tinkle of bells file.
Refer to Fig. 2, Fig. 2 is the structural representation of the server of first embodiment of the invention.As shown in Figure 2, server 20 comprises: access module 201, acquisition module 202 and control module 203.Access module 201 is for the equipment being connected on network is judged, sign corresponding to equipment that has sound broadcasting module and be linked into network joined in available alarm clock list of devices and preserved.Acquisition module 202 is connected with access module 201, the alarm clock information pushing for be linked into the input equipment of network by Network Capture, sign and the tinkle of bells file of the alarm clock equipment that alarm clock information comprises alarm time, will wake up.Control module 203 is connected with acquisition module 202, for alarm time and current time are compared, when alarm time is consistent with current time, and determine being identified in available alarm clock list of devices of the alarm clock equipment that will wake up, by network control, identify corresponding alarm clock device plays the tinkle of bells file.
In embodiments of the present invention, access module 201 also judges for the equipment on network, and the sign with the equipment of display module and input module is joined in available input equipment list and preserved.Acquisition module 202 is linked into by Network Capture alarm clock information that the input equipment of network pushes to carry out meeting under pre-conditioned, is pre-conditionedly: determine in the available input equipment list of being identified at of input equipment.
In embodiments of the present invention, the sign of alarm clock equipment can be device identification number or the network address etc.Server is linked on network, monitor the equipment of all access intelligent routers or family's Cloud Server, and and access device carry out carrying out shake communication and take and judge whether it is suitable input equipment or alarm clock equipment, judge that input equipment is whether in available input equipment list, whether alarm clock equipment is in available alarm clock list of devices.Wherein, alarm clock equipment is to play the terminal equipment that rings noisy function by play sound, vibration etc., there is sound ability to play, and WOL/dormancy ability, such as smart mobile phone, computer, panel computer, intelligent television, Baffle Box of Bluetooth, Bluetooth doorbell etc.And input equipment is to make user complete the terminal equipment that alarm clock arranges, such as computer, smart mobile phone, panel computer, intelligent television etc.Wherein the input module in input equipment can be touch, keyboard, remote control etc.In other embodiments of the invention, alarm clock equipment can be input equipment simultaneously.So, if mobile phone ringing noisy before low electricity shutdown, or because be placed on while causing the unheard situation of user in bag, can ring by other alarm clock equipment noisyly, to obtain better alarm clock, ring the effect of making a noise.
In embodiments of the present invention, alarm clock information also comprises repetitive mode, and control module identifies corresponding alarm clock equipment by network control and plays the tinkle of bells file with repetitive mode.User is by preset application or web page interlinkage in input equipment, carry out the setting of alarm clock, as select time, repetitive mode, the tinkle of bells etc., complete the rear input equipment of arranging of alarm clock and be correlated with configuration information and the tinkle of bells file etc. can be sent to alarm service device to preserve, thereby complete setting.
Control module 203 determine the alarm clock equipment that will wake up be identified at available alarm clock list of devices in time, can also be further with available alarm clock list of devices in other equipment of recording communicate, distance between the alarm clock equipment that obtains other equipment in available alarm clock list of devices and will wake up, and the distance of choosing in other equipment in available alarm clock list of devices and between the alarm clock equipment that will wake up is less than predetermined threshold value person as treating wake-up device, when alarm time is consistent with current time, by network control, identify corresponding alarm clock device plays the tinkle of bells file, and by network control, treat wake-up device broadcasting the tinkle of bells file simultaneously.
In embodiments of the present invention, need turn off the alarm equipment to ring when noisy, acquisition module 202 can push with any one corresponding equipment in input equipment list by Network Capture stops quarter-bell broadcast information; Control module response stops quarter-bell broadcast information and by network control, identifies corresponding alarm clock equipment and stop playing the tinkle of bells file.
In sum, the present invention is by the equipment being connected on network is judged, sign corresponding to equipment that has sound broadcasting module and be linked into network joined in available alarm clock list of devices and preserved; By Network Capture, be linked into the alarm clock information that the input equipment of network pushes, sign and the tinkle of bells file of the alarm clock equipment that alarm clock information comprises alarm time, will wake up; Alarm time and current time are compared, when alarm time is consistent with current time, and determine being identified in available alarm clock list of devices of the alarm clock equipment that will wake up, by network control, identify corresponding alarm clock device plays the tinkle of bells file, it is good that alarm clock rings noisy effect, can bring better user to experience.
The foregoing is only embodiments of the invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.