CN111063351A - Alarm clock control method and device - Google Patents

Alarm clock control method and device Download PDF

Info

Publication number
CN111063351A
CN111063351A CN201911329625.1A CN201911329625A CN111063351A CN 111063351 A CN111063351 A CN 111063351A CN 201911329625 A CN201911329625 A CN 201911329625A CN 111063351 A CN111063351 A CN 111063351A
Authority
CN
China
Prior art keywords
alarm clock
terminal
instruction
alarm
deleting
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
CN201911329625.1A
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.)
Beijing SoundAI Technology Co Ltd
Original Assignee
Beijing SoundAI 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 Beijing SoundAI Technology Co Ltd filed Critical Beijing SoundAI Technology Co Ltd
Priority to CN201911329625.1A priority Critical patent/CN111063351A/en
Publication of CN111063351A publication Critical patent/CN111063351A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to the technical field of communication, in particular to an alarm clock control method and device, which are used for receiving an alarm clock setting instruction sent by a terminal, wherein the alarm clock setting instruction at least comprises alarm clock reminding time and alarm clock type; generating an alarm clock according to the alarm clock reminding time and the alarm clock type, and establishing an association relation between an alarm clock identifier of the alarm clock and a user identifier according to a preset user identifier corresponding to the terminal, wherein the user identifier corresponds to at least one terminal, and the alarm clock corresponds to a timing task; the alarm clock management method comprises the steps of starting a timing task of an alarm clock, generating a broadcast instruction if the timing task of the alarm clock is determined, sending the broadcast instruction to each terminal corresponding to a user identification, and enabling each terminal to conduct alarm clock broadcast according to the broadcast instruction.

Description

Alarm clock control method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to an alarm clock control method and apparatus.
Background
At present, terminals such as cell-phone, electronic watch all have the alarm clock function, in the prior art, the user can set up through the alarm clock information to the terminal, and then establish or manage the alarm clock, but this kind of traditional mode among the prior art, the establishment and the management of alarm clock all need carry out manual setting on the terminal, and, because the alarm clock information of alarm clock all saves in the terminal, consequently when needs change terminal, the alarm clock information of original settlement need reset on new terminal, it is very loaded down with trivial details to operate, and the operation is unstable.
Disclosure of Invention
The embodiment of the application provides an alarm clock control method and device, and aims to solve the problems that an alarm clock is complex in setting and unstable in running in the prior art.
The embodiment of the application provides the following specific technical scheme:
an alarm clock control method, comprising:
receiving an alarm clock setting instruction sent by a terminal, wherein the alarm clock setting instruction at least comprises alarm clock reminding time and alarm clock type;
generating an alarm clock according to the alarm clock reminding time and the alarm clock type, and establishing an association relation between an alarm clock identifier of the alarm clock and a user identifier according to a preset user identifier corresponding to the terminal, wherein the user identifier corresponds to at least one terminal, and the alarm clock corresponds to a timing task;
and starting the timing task of the alarm clock, if the timing task of the alarm clock is determined to be in due time, generating a broadcasting instruction, and sending the broadcasting instruction to each terminal corresponding to the user identification, so that each terminal broadcasts the alarm clock according to the broadcasting instruction.
Optionally, the receiving of the alarm setting instruction sent by the terminal specifically includes:
receiving an alarm clock setting instruction sent by a terminal through voice;
generating an alarm clock according to the alarm clock reminding time and the alarm clock type, wherein the method specifically comprises the following steps:
performing semantic recognition on voice of the alarm clock setting instruction, and determining corresponding user intentions, wherein the user intentions at least comprise alarm clock reminding time and alarm clock types, and the alarm clock types are single broadcast or repeated broadcast;
and generating an alarm clock according to the user intention.
Optionally, after generating the alarm clock according to the alarm clock reminding time and the alarm clock type, the method further includes:
and returning an alarm clock setting success message or an alarm clock setting failure message to the terminal so that the terminal prompts the alarm clock setting success message or the alarm clock setting failure message according to a preset prompting mode.
Optionally, if still include alarm clock prompting content in the alarm clock setting instruction, then if confirm the timing task of alarm clock is then time, generates and broadcasts the instruction, and will broadcast the instruction and send with each terminal that the user identification corresponds, so that each terminal carries out alarm clock report according to broadcasting the instruction, specifically includes:
if confirm the alarm clock is then, generate and report the instruction, wherein, report the mode including the alarm clock in the instruction at least, the alarm clock reports the mode and includes following arbitrary one or combination: alarm clock reminding content, alarm clock broadcasting times and alarm clock broadcasting ring;
and sending the broadcast instruction to each terminal corresponding to the user identification, so that each terminal broadcasts according to the broadcast mode in the broadcast instruction after receiving the broadcast instruction.
Optionally, the broadcast instruction is sent to each terminal corresponding to the user identifier, so that each terminal performs alarm clock broadcast according to the broadcast instruction, and the method further includes:
judging whether a broadcast stopping instruction sent by any terminal in all the terminals is received;
and if the broadcast stopping instruction is determined to be received, sending the broadcast stopping instruction to each terminal corresponding to the user identification so as to enable each terminal to stop alarm clock broadcast.
Optionally, further comprising:
receiving current alarm clock state information sent by the terminal;
and generating a control instruction according to the alarm clock state information, and sending the control instruction to each terminal corresponding to the user identifier so that each terminal executes corresponding control operation according to the control instruction.
Optionally, further comprising:
receiving a first alarm clock deleting instruction sent by the terminal, wherein the first alarm clock deleting instruction at least comprises an alarm clock timestamp;
and inquiring the alarm clock with the alarm clock reminding time according with the alarm clock timestamp according with the generated alarm clock reminding time of the alarm clock, and deleting the inquired alarm clock.
Optionally, further comprising:
receiving a second alarm clock deleting instruction sent by the terminal, wherein the second alarm clock deleting instruction at least comprises an alarm clock deleting type;
and inquiring the alarm clock with the alarm clock type same as the deleted alarm clock type according to the deleted alarm clock type and the generated alarm clock type of the alarm clock, and deleting the inquired alarm clock.
Optionally, if the alarm setting instruction further includes at least an alarm reminding content, generating an alarm according to the alarm reminding time, the alarm type, and the alarm reminding content, and then further includes:
receiving a third alarm clock deleting instruction sent by the terminal, wherein the third alarm clock deleting instruction at least comprises alarm clock reminding content deleting;
and inquiring the alarm clock with the alarm clock reminding content identical to the deleted alarm clock reminding content according to the deleted alarm clock reminding content and the generated alarm clock reminding content of the alarm clock, and deleting the inquired alarm clock.
Optionally, further comprising:
if the deletion is determined to be successful, an alarm clock deletion success message is sent to each terminal corresponding to the user identification, so that each terminal prompts the alarm clock deletion success message according to a preset prompting mode;
and if the deletion is determined to be failed, sending an alarm clock deletion failure message to each terminal corresponding to the user identification so that each terminal prompts the alarm clock deletion failure message according to a preset prompting mode.
Optionally, further comprising:
acquiring current time;
and screening the alarm clocks with the reminding time earlier than the current time, and deleting the screened alarm clocks.
An alarm clock control apparatus comprising:
the first receiving module is used for receiving an alarm clock setting instruction sent by a terminal, wherein the alarm clock setting instruction at least comprises alarm clock reminding time and alarm clock type;
the first processing module is used for generating an alarm clock according to the alarm clock reminding time and the alarm clock type, and establishing an association relation between an alarm clock identifier of the alarm clock and a user identifier according to a preset user identifier corresponding to the terminal, wherein the user identifier corresponds to at least one terminal, and the alarm clock corresponds to a timing task;
and the second processing module is used for starting the timing task of the alarm clock, generating a broadcasting instruction if the timing task of the alarm clock is determined to be in time, and sending the broadcasting instruction to each terminal corresponding to the user identification, so that each terminal can broadcast the alarm clock according to the broadcasting instruction.
Optionally, the first receiving module is specifically configured to:
receiving an alarm clock setting instruction sent by a terminal through voice;
the first processing module is specifically configured to:
performing semantic recognition on voice of the alarm clock setting instruction, and determining corresponding user intentions, wherein the user intentions at least comprise alarm clock reminding time and alarm clock types, and the alarm clock types are single broadcast or repeated broadcast;
and generating an alarm clock according to the user intention.
Optionally, after generating the alarm clock according to the alarm clock reminding time and the alarm clock type, the method further includes:
and the return module is used for returning an alarm clock setting success message or an alarm clock setting failure message to the terminal so that the terminal prompts the alarm clock setting success message or the alarm clock setting failure message according to a preset prompting mode.
Optionally, if the alarm setting instruction further includes alarm reminding content, the second processing module is specifically configured to:
if confirm the alarm clock is then, generate and report the instruction, wherein, report the mode including the alarm clock in the instruction at least, the alarm clock reports the mode and includes following arbitrary one or combination: alarm clock reminding content, alarm clock broadcasting times and alarm clock broadcasting ring;
and sending the broadcast instruction to each terminal corresponding to the user identification, so that each terminal broadcasts according to the broadcast mode in the broadcast instruction after receiving the broadcast instruction.
Optionally, the broadcast instruction is sent to each terminal corresponding to the user identifier, so that each terminal performs alarm clock broadcast according to the broadcast instruction, and the method further includes:
the judging module is used for judging whether a broadcast stopping instruction sent by any terminal in all the terminals is received;
and the first sending module is used for sending the broadcast stopping instruction to each terminal corresponding to the user identification if the broadcast stopping instruction is determined to be received, so that each terminal stops alarm clock broadcasting.
Optionally, further comprising:
the second receiving module is used for receiving the current alarm clock state information sent by the terminal;
and the second sending module is used for generating a control instruction according to the alarm clock state information and sending the control instruction to each terminal corresponding to the user identifier so that each terminal executes corresponding control operation according to the control instruction.
Optionally, further comprising:
a third receiving module, configured to receive a first alarm clock deleting instruction sent by the terminal, where the first alarm clock deleting instruction at least includes an alarm clock timestamp;
and the first deleting module is used for inquiring the alarm clock with the alarm clock reminding time according with the alarm clock timestamp and the generated alarm clock reminding time of the alarm clock, and deleting the inquired alarm clock.
Optionally, further comprising:
the fourth receiving module is used for receiving a second alarm clock deleting instruction sent by the terminal, wherein the second alarm clock deleting instruction at least comprises an alarm clock deleting type;
and the second deleting module is used for inquiring the alarm clock with the alarm clock type same as the deleted alarm clock type according to the deleted alarm clock type and the generated alarm clock type, and deleting the inquired alarm clock.
Optionally, if the alarm setting instruction further includes at least an alarm reminding content, generating an alarm according to the alarm reminding time, the alarm type, and the alarm reminding content, and then further includes:
the fifth receiving module is used for receiving a third alarm clock deleting instruction sent by the terminal, wherein the third alarm clock deleting instruction at least comprises alarm clock reminding content deleting;
and the third deleting module is used for inquiring the alarm clock with the alarm clock reminding content identical to the deleted alarm clock reminding content according to the deleted alarm clock reminding content and the generated alarm clock reminding content of the alarm clock, and deleting the inquired alarm clock.
Optionally, further comprising:
the first prompting module is used for sending an alarm clock deleting success message to each terminal corresponding to the user identifier if the deleting is determined to be successful, so that each terminal prompts the alarm clock deleting success message according to a preset prompting mode;
and the second prompting module is used for sending alarm clock deletion failure messages to each terminal corresponding to the user identification if the deletion is determined to fail, so that each terminal prompts the alarm clock deletion failure messages according to a preset prompting mode.
Optionally, further comprising:
the acquisition module is used for acquiring the current time;
and the fourth deleting module is used for screening the alarm clocks with the alarm clock reminding time being earlier than the current time and deleting the screened alarm clocks.
An electronic device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the alarm clock control method.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned alarm clock control method.
In the embodiment of the application, the alarm clock setting instruction that the alarm clock sent is received to the server, and remind time and alarm clock type generation alarm clock according to the alarm clock in the alarm clock setting instruction, after the generation alarm clock, the timing task of opening the alarm clock, when the timing task of confirming the alarm clock is then time, then generate and report the instruction, and will report the instruction and send each terminal that corresponds with the sign, so that each terminal carries out the alarm clock according to reporting the instruction and reports, thus, the setting and the management of alarm clock all realize through the server, therefore, when changing the terminal after, the alarm clock that originally set for need not reset on new terminal, just can realize the timing task of alarm clock, not only can increase operating stability, can also make things convenient for the operation.
Drawings
Fig. 1 is a flowchart of an alarm clock control method in an embodiment of the present application;
FIG. 2 is an interaction flow diagram for setting an alarm clock in an embodiment of the application;
FIG. 3 is an interaction flowchart for deleting an alarm clock in an embodiment of the application;
FIG. 4 is a diagram of an alarm clock control apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, the cell-phone, all be provided with the alarm clock function on terminals such as electronic watch, among the prior art, the user can be through setting up the alarm clock on the terminal, and then establish or manage the alarm clock, but this kind of mode that sets up the alarm clock among the prior art, the establishment and the management of alarm clock all need carry out manual setting on the terminal, and, because the relevant information of alarm clock all saves in the terminal, consequently when needs change terminal, the alarm clock information of setting for originally need reset on new terminal, just can realize the report of alarm clock, the operation is very loaded down with trivial details like this, and the alarm clock operation is unstable.
In the embodiment of the application, an alarm clock control method is provided, a server receives an alarm clock setting instruction sent by a terminal, an alarm clock is generated according to alarm clock reminding time and alarm clock types in the alarm clock setting instruction, and according to a user identification corresponding to a preset terminal, an incidence relation between the alarm clock identification and the user identification of the alarm clock is established, after a timing task of the alarm clock is started, if the timing task of the alarm clock is determined to be up, a broadcasting instruction is generated, the broadcasting instruction is sent to each terminal corresponding to the user identification, so that each terminal broadcasts according to the alarm clock instruction, because the timing task of the alarm clock runs through the server, compared with the prior art, the alarm clock runs more stably at the terminal, and when the terminal is replaced by a user, the alarm clock can still broadcast normally, and therefore, the operation is more convenient.
Based on the above embodiments, referring to fig. 1, a flowchart of an alarm clock control method in the embodiment of the present application is mainly applied to a server, and specifically includes:
step 100: and receiving an alarm clock setting instruction sent by the terminal.
Wherein, the alarm setting instruction at least comprises alarm reminding time and alarm type.
In the embodiment of the application, the server receives an alarm clock setting instruction sent by the terminal, the alarm clock setting instruction can include alarm clock reminding time and alarm clock types, and the alarm clock setting instruction can further include alarm clock reminding content.
In the embodiment of the present application, a possible implementation manner is provided for receiving an alarm clock setting instruction sent by a terminal, and when step 100 is executed, the method specifically includes:
and receiving an alarm clock setting instruction sent by the terminal through voice.
Specifically, the terminal receives an alarm clock setting instruction input by a user through voice, and then the terminal sends the alarm clock setting instruction to the server, for example, the user inputs an alarm clock of 8 points per day to the terminal through voice, and then the terminal sends the voice to the server.
In the embodiment of the application, the user can also generate the alarm clock in a manual setting mode, for example, the user manually inputs an alarm clock setting instruction, namely alarm clock reminding time and alarm clock type into the terminal, then the terminal sends the alarm clock setting time and the alarm clock type to the server, and then the server generates the alarm clock according to the alarm clock setting time and the alarm clock type.
Step 110: generating an alarm clock according to the alarm clock reminding time and the alarm clock type, and establishing an association relation between the alarm clock identification of the alarm clock and the user identification according to the preset user identification corresponding to the terminal.
The user identification corresponds to at least one terminal, and the alarm clock corresponds to a timing task.
In this application embodiment, after the alarm clock that server receiving terminal sent through pronunciation set up the instruction, then remind time and alarm clock type according to the alarm clock, generate the alarm clock to according to the user identification that preset terminal corresponds, establish the alarm clock identification of alarm clock and user identification's incidence relation, specifically include:
s1: and performing semantic recognition on the voice of the alarm clock setting instruction, and determining the corresponding user intention.
The user intention at least comprises alarm clock reminding time and alarm clock types, and the alarm clock types are broadcast once or repeatedly.
Specifically, when the server performs semantic Recognition on the voice of the alarm clock setting instruction, the voice of the alarm clock setting instruction may be subjected to semantic Recognition through Automatic Speech Recognition (ASR), and then the voice vocabulary content in the alarm clock setting instruction is converted into a computer-readable input, for example, the server may convert the voice vocabulary content in the alarm clock setting instruction into a binary code or a character sequence, and then the server determines a corresponding user intention according to the converted alarm clock setting instruction, which is not limited in the embodiment of the present application.
In the embodiment of the application, the user intention at least comprises alarm clock reminding time, alarm clock types and alarm clock reminding content, wherein the alarm clock reminding time is composed of a planned task (Cron) expression, the Cron expression is used for generating an alarm clock, the Cron expression is composed of 7 sub-expressions, the 7 sub-expressions can be separated through spaces, and seconds, minutes, hours, days, months, weeks and years are sequentially represented from left to right, for example, the Cron expression is '1013812112019', and 8 points of 11, 12 and 12 days and 13 minutes and 10 seconds of 2019 are represented, so that after the server receives the intention of the user, the alarm clock reminding time, such as the time of day, the time of minutes, and the time of minutes, can be converted into one Cron expression to be stored, the setting of various types of alarm clocks can be supported, a large number of alarm clock setting modes of the user can be met, and the problem that The problem of being convenient for realize the timing task, the setting mode to alarm clock warning time in this application embodiment does not restrict.
The type of the alarm clock may be determined by the user intention, for example, a single broadcast or a repeat broadcast, which is not limited in the embodiment of the present application.
The content of the alarm clock alert may be determined by the user's intention, for example, "get up", "learn", "sleep", etc., which is not limited in the implementation of the present application.
Furthermore, an alarm clock module, a local database module and an alarm clock timer module are further arranged in the server, wherein the alarm clock module is used for converting the voice of the user into the user intention and classifying the user intention.
The local database module is used for storing user intentions, so that a user can manage and control the alarm clock conveniently, the local database in the local database module can store one or any combination of the following data, and the user identification, the Cron expression, the alarm clock type, the reminding content, the terminal identification and the alarm clock identification are not limited in the embodiment of the application.
The alarm clock timer module is used for starting an alarm clock timing task, so that after the alarm clock module determines corresponding user intention according to an alarm clock setting instruction, the user intention can be sent to the local database module and stored, a data insertion success message is generated and sent to the alarm clock module, the alarm clock module receives the data insertion success message and generates an alarm clock, and then the alarm clock timer module starts a timer according to the received data insertion success message sent by the alarm clock module.
S2: and generating an alarm clock according to the user intention.
Specifically, the server may generate an alarm clock according to the alarm clock reminding time and the alarm clock type, and each alarm clock corresponds to one timing task.
S3: and establishing an association relation between the alarm clock identification of the alarm clock and the user identification according to the user identification corresponding to the preset terminal.
The user identification corresponds to at least one terminal, and the alarm clock corresponds to a timing task.
In the embodiment of the application, after the alarm clock is generated, the server establishes the incidence relation between the alarm clock identification of the alarm clock and the user identification, and stores the alarm clock identification into the local database module, wherein the alarm clock identification of the alarm clock is the only identification of the alarm clock set by the user, and the user identification is used for sending the broadcast instruction to the terminal used by the user after the set alarm clock arrives.
Further, in this embodiment of the application, after the server generates the alarm clock according to the user intention, a response message, that is, an alarm clock setting success message or an alarm clock setting failure message, is returned to the terminal, where the response message is used to prompt the user that the alarm clock setting is successful or the alarm clock setting is failed, and then the user can know the message that the alarm clock setting is successful or failed in real time according to the response message, and after the step 110 is specifically executed, the method further includes:
and returning an alarm clock setting success message or an alarm clock setting failure message to the terminal so that the terminal prompts the alarm clock setting success message or the alarm clock setting failure message according to a preset prompting mode.
In the embodiment of the present application, the preset mode may be a voice broadcast mode, an image display mode, or a text display mode, which is not limited in the embodiment of the present application.
Step 120: and starting a timing task of the alarm clock, generating a broadcasting instruction if the timing task of the alarm clock is determined to be in due time, and sending the broadcasting instruction to each terminal corresponding to the user identification so that each terminal can broadcast the alarm clock according to the broadcasting instruction.
In this embodiment of the application, if the alarm setting instruction further includes alarm reminding content, when step 120 is executed, the method specifically includes:
s1: and starting a timing task of the alarm clock.
In the embodiment of the application, the server starts the timing task of the alarm clock, that is, the timing task of the alarm clock is run on the server, so that the terminal is used for acquiring the voice input by the user and sending the input voice to the server, the corresponding operation is completed according to the control instruction sent by the server, the alarm clock state information is sent to the server when the alarm clock state is changed, the server is used for acquiring the voice and the alarm clock state information sent by the terminal, converting the voice sent by the terminal into the user intention through semantic recognition, completing the alarm clock setting and management according to the user intention, and sending the corresponding control instruction to the terminal, so that the server is responsible for the execution of all alarm clock logics and the issuing of a broadcast instruction after the alarm clock timing task is due, compared with the alarm clock logics running on the terminal, the alarm clock information is more stable and is convenient, and, because the alarm clock is set up by the server, consequently, after the user changes or newly-increased terminal, the alarm clock still can normally report, the timing task operation is on the server, lower to the requirement at terminal, can practice thrift terminal research and development cost, the maintainability of alarm clock is higher, newly-increased function or modification error only need be updated on the server at every turn, can not exert an influence to the terminal, the user has better use experience, when producing the error, the developer of being convenient for is checked and is taken notes error reason.
The alarm clock implementation mode designed by the invention has strong expansibility, can be suitable for various terminals such as intelligent watches, intelligent sound boxes and the like, and supports various alarm clock setting modes, a user can complete the setting of the alarm clock through various modes such as Application (APP) manual setting, voice control and the like, and the terminal only needs to send an alarm clock setting instruction to the server and receive a broadcasting instruction sent by the server when the alarm clock arrives, so that the alarm clock function can be realized. Compared with the traditional alarm clock implementation method, the implementation is more convenient.
In addition, in the embodiment of the application, when the alarm clock is managed and controlled by the server, the alarm clock can be managed and controlled by the server through a spergo booth (Spring Boot) framework, the Spring Boot is an open-source lightweight framework, installation can be completed based on a maiden (Maven) plug-in, deployment of the alarm clock can be completed on the server quickly after Java Archive (JAR) is created, and a clustered configuration of the alarm clock can be completed by using an Apollo (Apollo) distributed configuration center without modifying codes.
And, when realizing the timing task, can accomplish the required timing task of alarm clock through expanding the special (quartz) frame, quartz is a function abundant open source task calling system, can establish a large amount of timing tasks (joba) and support the clustering configuration, and can effectively solve after the terminal sets up the alarm clock, the problem that can not normally report when the operation error appears, quartz frame can cooperate the Cron expression to use, appear unusual at the server after, still can the operation of automatic recovery timing task, can not influence the report of follow-up alarm clock. Further, in the embodiment of the present application, other timed task frames may also be used to complete the setting of the timed task of the alarm clock, which is not limited in the embodiment of the present application.
Furthermore, the timing task of the alarm clock in the embodiment of the application can be completed at the terminal, the setting of the timing task of the alarm clock is not realized at the server, after the alarm clock module performs classification processing on the user intention, the classified user intention can be sent to the terminal, after the terminal starts the timing task successfully, an alarm clock setting success message is pushed to the server, and then the server inserts data into the local database.
S2: and if the alarm clock arrives, generating a broadcasting instruction.
Wherein, report the mode including the alarm clock in the instruction at least, the alarm clock reports the mode and includes following arbitrary one or combination: alarm clock reminding content, alarm clock broadcasting times and alarm clock broadcasting ring.
In the embodiment of the application, when the timed task of alarm clock is the back then, the server can generate and report the instruction to, including the alarm clock at least in reporting the instruction and report the mode, the alarm clock reports the mode and includes following arbitrary one or combination: the alarm clock reports content, number of times and alarm clock broadcast ring, wherein, the information that the alarm clock reported the mode and includes is the information that keeps in the database before when generating the alarm clock, the server acquires the alarm clock that keeps in local database and reminds content, the number of times is reported to the alarm clock and the alarm clock broadcasts the ring, then report the mode with these information generation alarm clocks, and then send for the terminal, so that the terminal can report according to reporting the mode, the content to reporting the mode in this application embodiment does not restrict.
In addition, the user can independently set the alarm clock broadcasting times and the alarm clock broadcasting ringing in the broadcasting instruction on the server, and the user can be supported to manually configure while providing the default ringing, the default time interval and the broadcasting times.
S3: and sending the broadcast instruction to each terminal corresponding to the user identification, so that each terminal can broadcast according to the broadcast mode in the broadcast instruction after receiving the broadcast instruction.
Specifically, the server can carry out alarm clock reminding after the same propelling movement of these information of terminal that the user bound, and this kind of alarm clock reminding mode can guarantee, and after the user changed the terminal, as long as the terminal that the user bound can all normally report after the alarm clock is then to, the timing task operation of alarm clock is on the server, compares the record of operation at the more stable and user data of being convenient for of terminal side.
For example, the server may convert the storage into audio through the Cron expression and the user intention, and send the synthesized audio and the alarm clock broadcast ringtone to each terminal in a form of Uniform Resource Locator (URL), so that the user can accurately obtain the content of the reminder required when setting the alarm clock, and save the storage space of the mobile terminal while being reminded by the alarm clock ringtone set by the user.
Further, after step 120 is executed, after the terminal carries out alarm clock broadcast, the user can also stop broadcasting the instruction to the terminal input through pronunciation, and then the terminal will stop broadcasting the instruction and send for the server, and the server can receive whether to stop broadcasting the instruction according to judging, and then confirms whether to stop broadcasting, then specifically includes:
s1: and judging whether a broadcast stopping instruction sent by any terminal in each terminal is received.
Specifically, after the terminal receives the broadcast instruction, the broadcast is started according to the broadcast instruction, and whether the broadcast stop instruction sent by any terminal in each terminal is received or not is judged in the broadcast process.
In the embodiment of the application, the stop broadcasting instruction is sent to the server by the terminal through voice, for example, a user can input a 'stop broadcasting' instruction to the terminal through voice, and then the terminal sends the stop broadcasting instruction of the voice to the server.
S2: and if the broadcast stopping instruction is determined to be received, sending the broadcast stopping instruction to each terminal corresponding to the user identification so that each terminal stops alarm clock broadcast.
Specifically, if it is determined that a broadcast stop instruction sent by any one of the terminals is received, the broadcast stop instruction is sent to each terminal corresponding to the user identifier, so that each terminal stops alarm clock broadcasting, and thus, as long as the terminal is bound by the user, the broadcast stop instruction sent by the server can be received.
In addition, the terminal can report the state of the alarm clock, the server can complete operations such as alarm clock stop broadcasting according to the change of the state, the alarm clock can be stopped by voice 'awakening', and the terminal does not need to add processing of alarm clock stop or intention of stopping broadcasting independently.
Further, after the alarm clock state changes, for example, the alarm clock starts to report or the alarm clock stops reporting, the terminal can return current alarm clock state information to the server, and then the server can learn the current state of the alarm clock in real time according to alarm clock state information, generates a control instruction, realizes the real-time control of the server to the terminal, then after the alarm clock state changes, the server specifically includes to the control process at terminal:
a1: and receiving current alarm clock state information sent by the terminal.
In the embodiment of the application, the terminal sends the current alarm clock state information to the server, for example, after the current terminal starts broadcasting, the terminal sends the current alarm clock state information to the server, that is, broadcasting is started.
A2: and generating a control instruction according to the alarm clock state information, and sending the control instruction to each terminal corresponding to the user identification so that each terminal executes corresponding control operation according to the control instruction.
Step a2 is described in detail below by taking the example of turning up the volume of the alarm clock at the time of alarm clock.
1) And after the server receives the alarm clock state information sent by the terminal, the server generates a control instruction.
In the embodiment of the application, after the server receives the alarm clock state information sent by the terminal, the server can know the information that the alarm clock starts to broadcast at the moment, and then the server can generate a control instruction, wherein the control instruction is used for increasing the volume broadcasted by the terminal.
2) And sending a control instruction of increasing the volume broadcasted by the terminal to each terminal corresponding to the user identifier.
3) And each terminal increases the volume according to the control instruction.
Further, in the embodiment of the application, the process of deleting the alarm clock is further included, the alarm clock can be deleted in three different modes of deleting the alarm clock type and the alarm clock reminding content according to the alarm clock timestamp, and the mode of deleting the alarm clock is not limited in the embodiment of the application.
The first mode is as follows: and deleting the alarm clock according to the alarm clock timestamp.
S1: and receiving a first alarm clock deleting instruction sent by the terminal.
The first alarm clock deleting instruction at least comprises an alarm clock timestamp.
In this embodiment of the application, the first alarm clock deleting instruction sent by the terminal may also be sent by voice, for example, the user inputs "delete an alarm clock at 5 pm today" by voice, which is not limited in this embodiment of the application.
In addition, in the embodiment of the application, the alarm clock can be managed and controlled through various different terminals such as a mobile phone and a website, so that the expandability of the alarm clock is improved.
S2: and inquiring the alarm clock with the alarm clock reminding time according with the alarm clock timestamp and the generated alarm clock reminding time of the alarm clock, and deleting the inquired alarm clock.
Specifically, when step S2 is executed, the method specifically includes:
in this embodiment of the application, when the step S2 is executed, the method specifically includes:
a1: and the server takes out the alarm clock reminding time in the cron expression stored in the local database, converts the alarm clock reminding time into a format corresponding to the timestamp and obtains the converted alarm clock reminding time.
A2: and inquiring alarm clock reminding time corresponding to the alarm clock time according to the alarm clock timestamp.
A3: and acquiring an alarm clock corresponding to the alarm clock reminding time, and deleting the alarm clock.
In the embodiment of the application, as the processing logics of the operations of setting, deleting and inquiring the alarm clock are all processing the timestamp and the user intention by the server, the reusability is higher, the portability is stronger, and the alarm clock function realized in the embodiment of the application can be used by a terminal which can receive the server message and upload the alarm clock state information.
Further, the alarm clock deleting process can also be realized at the terminal, when the alarm clock is deleted, an alarm clock deleting instruction can be sent to the terminal, and after the alarm clock is successfully deleted, the alarm clock data in the local database of the server are deleted.
The second mode is as follows: and deleting the alarm clock according to the type of the deleted alarm clock.
S1: and receiving a second alarm clock deleting instruction sent by the terminal.
And the second alarm clock deleting instruction at least comprises the alarm clock deleting type.
S2: and inquiring the alarm clock with the same alarm clock type as the deleted alarm clock type according to the deleted alarm clock type and the generated alarm clock type of the alarm clock, and deleting the inquired alarm clock.
In this embodiment of the application, when the step S2 is executed, the method specifically includes:
a1: and the server takes out the alarm clock type in the Cron expression stored in the local database, converts the alarm clock type into a format corresponding to the deleted alarm clock type and obtains the converted deleted alarm clock type.
A2: and inquiring the alarm clock type corresponding to the deleted alarm clock type according to the deleted alarm clock type.
A3: and acquiring an alarm clock corresponding to the type of the alarm clock, and deleting the alarm clock.
The third mode is as follows: and deleting the alarm clock according to the set alarm clock reminding content.
S1: and receiving a third alarm clock deleting instruction sent by the terminal.
And the third alarm clock deleting instruction at least comprises the alarm clock reminding content deleting.
S2: and inquiring the alarm clock with the alarm clock reminding content the same as the deleted alarm clock reminding content according to the deleted alarm clock reminding content and the generated alarm clock reminding content of the alarm clock, and deleting the inquired alarm clock.
In this embodiment of the application, when the step S2 is executed, the method specifically includes:
a1: the server takes out the alarm clock reminding content stored in the Cron expression in the local database, converts the alarm clock reminding content into a format corresponding to the alarm clock reminding content deleting, and obtains the converted alarm clock reminding content deleting.
A2: and inquiring the alarm clock reminding content corresponding to the deleted alarm clock reminding content according to the deleted alarm clock reminding content.
A3: and acquiring an alarm clock corresponding to the alarm clock reminding content, and deleting the alarm clock.
Further, in the embodiment of the application, after the alarm clock is deleted by the server, the server further generates a response message to notify the terminal that the alarm clock is successfully or unsuccessfully deleted, specifically, the following two different situations are provided.
In the first case: the alarm clock is successfully deleted.
And if the deletion is determined to be successful, sending an alarm clock deletion success message to each terminal corresponding to the user identification so that each terminal prompts the alarm clock deletion success message according to a preset prompting mode.
In the embodiment of the application, after the alarm clock is successfully deleted, the server generates feedback information, namely, an alarm clock deletion success message, and then the server sends the alarm clock deletion success message to each terminal corresponding to the user identifier.
Wherein, the feedback information is used for prompting the user that the alarm clock is successfully deleted.
In the second case: the alarm clock is deleted unsuccessfully.
And if the deletion is determined to be failed, sending alarm clock deletion failure messages to all terminals corresponding to the user identification so that all terminals prompt the alarm clock deletion failure messages according to a preset prompting mode.
In the embodiment of the application, if the same alarm clock is not queried, it is determined that the deletion fails, and an alarm clock deletion failure message is sent to each terminal corresponding to the user identifier, so that each terminal prompts the alarm clock deletion failure message according to a preset prompting mode, for example, each terminal reports "deletion failure" through voice, which is not limited in the embodiment of the application.
In the embodiment of the application, if alarm clock reminding time stored in a traversing database according to a timestamp cannot be inquired, alarm clock reminding time corresponding to the timestamp is determined, alarm clock deletion failure is determined, a server can generate feedback information, namely, alarm clock deletion failure information, and then the server sends the alarm clock deletion failure information to each terminal corresponding to a user identifier, after each terminal receives the alarm clock deletion failure information, the alarm clock deletion failure can be prompted to a user according to a preset prompting mode, and then after the user learns the alarm clock deletion failure, an alarm clock deleting instruction can be sent again.
In the embodiment of the present application, the alarm clock may also be deleted by deleting the type of the alarm clock and deleting the content of the alarm clock, which is not limited in the embodiment of the present application.
Further, in this application embodiment, if after the user sets up the alarm clock, close the terminal, the terminal can't report this moment, after the user opens the terminal after a period of time, the alarm clock in the server probably has been invalid for some reason this moment, consequently, in this application embodiment, can also in time delete invalid alarm clock, specifically include:
a1: and acquiring the current time.
The server can obtain the current time.
A2: and screening alarm clocks with reminding time earlier than the current time, and deleting the screened alarm clocks.
In the embodiment of the application, the server can autonomously manage the alarm clocks in the alarm clock database, namely, the server screens the alarm clocks with the alarm clock reminding time being earlier than the current time from the local database according to the current time and deletes the screened alarm clocks.
Therefore, the server can automatically close and manage the data in the local database according to the current time, the alarm clock state information and the like, and timely clear the invalid alarm clock.
In the embodiment of the application, the alarm clock that server receiving terminal sent sets up the instruction, remind time and alarm clock type according to the alarm clock in the alarm clock setting instruction, generate the alarm clock, and open the timing task of alarm clock, when the timing task of confirming the alarm clock is then, generate and report the instruction, and will report the instruction and send each terminal that corresponds with user identification, so that each terminal carries out the alarm clock according to the report mode of reporting the carrying in the instruction and reports, thus, the setting and the management of alarm clock are all on the server, can promote the stability of operation, and after more changing the terminal, the alarm clock that originally set for need not reset on new terminal, just can realize the alarm clock report, it is more convenient to make the operation.
Based on the above embodiment, taking the alarm clock setting success as an example, the following describes in detail a process of setting an alarm clock, and referring to fig. 2, an interactive flowchart of setting an alarm clock in the embodiment of the present application specifically includes:
step 200: and the user inputs an alarm clock setting instruction into the terminal through voice.
Wherein, the alarm setting instruction at least comprises alarm reminding time and alarm type.
For example, an alarm clock at 8 o ' clock per day, an alarm clock at 5 o ' clock today afternoon, an alarm clock at 12 o ' clock every wednesday noon.
Step 210: and the terminal sends the alarm clock setting instruction to the alarm clock module.
Step 220: the alarm clock module carries out semantic recognition on voice of the alarm clock setting instruction, determines corresponding user intention, generates an alarm clock according to the user intention, and sends the user intention to the local database module.
In the embodiment of the application, after the alarm clock module receives the alarm clock setting instruction, semantic recognition can be carried out on voice of the alarm clock setting instruction, user intention is determined, classification processing is carried out, the user intention after the classification processing can be stored through a Cron expression and stored in a local database module located in a server, and the user intention is used for follow-up management and control of the alarm clock.
Step 230: and the local database module generates a data insertion success message and sends the data insertion success message to the alarm clock module.
Step 240: and the alarm clock module starts a timing task of the alarm clock according to the data insertion success message.
In the embodiment of the application, the logic of the timing task for starting the alarm clock is completed in the server once, so that the workload and the cost of terminal development can be saved, the workload of the terminal is reduced, and the alarm clock can be conveniently updated and maintained.
Step 250: the alarm clock timer module generates a timer starting success message and sends the timer starting success message to the alarm clock module.
Step 260: and the alarm clock module returns an alarm clock setting success message to the terminal according to the timer starting success message.
Step 270: and the terminal prompts an alarm clock setting success message according to a preset prompting mode.
In the embodiment of the application, the terminal receives an alarm clock setting instruction input by a user through voice and sends the alarm clock setting instruction to an alarm clock module of a server, the alarm clock module performs semantic recognition on the voice of the alarm clock setting instruction to determine a corresponding user intention and sends the user intention to a local database module, information corresponding to the user intention is inserted into a local database, then the local database module generates a data insertion success message and sends the data insertion success message to the alarm clock module, so that the alarm clock module starts a timing task of an alarm clock according to the data insertion success message, the alarm clock timer module generates a timer starting success message and sends the timer starting success message to the alarm clock module, and after receiving the timer starting success message, the alarm clock module generates an alarm clock setting success message and sends the alarm clock setting success message to the terminal, so that the terminal prompts the alarm clock to be successfully set according to a preset prompting mode, because the setting and the management of the alarm clock are all in the server, after the terminal is changed, the originally set alarm clock does not need to be reset on a new terminal, and the alarm clock broadcasting can be realized.
Based on the above embodiment, the following describes in detail a process of deleting an alarm clock by taking the alarm clock deletion in a timestamp manner as an example, and referring to fig. 3, an interactive flow chart of deleting an alarm clock in the embodiment of the present application specifically includes:
step 300: and the user inputs the first alarm clock deleting instruction into the terminal through voice.
The first alarm clock deleting instruction at least comprises an alarm clock timestamp.
In this embodiment of the application, the alarm clock timestamp in the first alarm clock deleting instruction is input into the terminal by the user through voice, for example, the user inputs "delete alarm clock at 11 months, 2 days, and 8 o' clock" through voice, which is not limited in this embodiment of the application.
In addition, the first alarm clock deleting instruction at least includes an alarm clock timestamp, and may also include alarm clock reminding content deleting, and the like, that is, the alarm clock may be deleted in a manner of combining the alarm clock timestamp and the alarm clock reminding content deleting, for example, the user inputs "delete the alarm clock getting up at 11 months, 2 days, and 8 o' clock" through voice, which is not limited in the embodiment of the present application.
Step 310: the alarm clock module receives a first alarm clock deleting instruction sent by the terminal.
Step 320: and the alarm clock module inquires alarm clock reminding time in the local database module according to the alarm clock timestamp and the generated alarm clock reminding time of the alarm clock, accords with the alarm clock and the alarm clock identification of the alarm clock timestamp, and deletes the inquired alarm clock.
Step 330: and the local database module sends the alarm clock identification to the alarm clock module.
Step 340: the alarm clock module sends the alarm clock identification corresponding to the alarm clock timer module, and deletes the alarm clock timer corresponding to the alarm clock identification.
Step 350: and the alarm clock timer module generates an alarm clock deleting success message and sends the alarm clock deleting success message to the alarm clock module.
Step 360: and the alarm clock module sends the alarm clock deletion success message to each terminal corresponding to the user identification.
Step 370: and each terminal prompts an alarm clock deleting success message according to a preset prompting mode.
In the embodiment of the application, the terminal receives a first alarm clock deleting instruction input by a user through voice, and sends the first alarm clock deleting instruction to an alarm clock module of the server, the alarm clock module inquires alarm clocks and alarm clock identifications, the alarm clock reminding time of which accords with the alarm clock timestamp, in the local database module according to the alarm clock timestamp in the first alarm clock deleting instruction and the generated alarm clock reminding time of the alarm clock, and deletes the alarm clocks, and then the local database module sends the alarm clock identifications to the alarm clock module, which then sends the alarm clock identifications to the alarm clock timer module, so that the alarm clock timer module deletes the corresponding alarm clock timers, and sends the generated alarm clock deleting success message to the alarm clock module, and the alarm clock module sends the alarm clock deleting success message to each terminal corresponding to the user identification, so that each terminal prompts the alarm clock deleting success message according to a preset prompting mode, therefore, the logic of deleting the alarm clock is completed in the server, so that the development workload of the terminal is saved, and the operation is more stable.
Based on the same inventive concept, an alarm clock control device is provided in the embodiments of the present application, and the alarm clock control device may be, for example, a server in the foregoing embodiments, and the alarm clock control device may be a hardware structure, a software module, or a hardware structure and a software module. Based on the above embodiments, referring to fig. 4, an alarm clock control device in the embodiment of the present application specifically includes:
the first receiving module 400 is configured to receive an alarm clock setting instruction sent by a terminal, where the alarm clock setting instruction at least includes alarm clock reminding time and alarm clock type;
a first processing module 401, configured to generate an alarm clock according to the alarm clock reminding time and the alarm clock type, and establish an association relationship between an alarm clock identifier of the alarm clock and a user identifier according to a preset user identifier corresponding to the terminal, where the user identifier corresponds to at least one terminal, and the alarm clock corresponds to a timing task;
and the second processing module 402 is configured to start a timing task of the alarm clock, generate a broadcast instruction if the timing task of the alarm clock is determined to be due, and send the broadcast instruction to each terminal corresponding to the user identifier, so that each terminal performs alarm clock broadcast according to the broadcast instruction.
Optionally, the first receiving module 400 is specifically configured to:
receiving an alarm clock setting instruction sent by a terminal through voice;
the first processing module 401 is specifically configured to:
performing semantic recognition on voice of the alarm clock setting instruction, and determining corresponding user intentions, wherein the user intentions at least comprise alarm clock reminding time and alarm clock types, and the alarm clock types are single broadcast or repeated broadcast;
and generating an alarm clock according to the user intention.
Optionally, after generating the alarm clock according to the alarm clock reminding time and the alarm clock type, the method further includes:
a returning module 403, configured to return an alarm clock setting success message or an alarm clock setting failure message to the terminal, so that the terminal prompts the alarm clock setting success message or the alarm clock setting failure message according to a preset prompting manner.
Optionally, if the alarm setting instruction further includes alarm reminding content, the second processing module 402 is specifically configured to:
if confirm the alarm clock is then, generate and report the instruction, wherein, report the mode including the alarm clock in the instruction at least, the alarm clock reports the mode and includes following arbitrary one or combination: alarm clock reminding content, alarm clock broadcasting times and alarm clock broadcasting ring;
and sending the broadcast instruction to each terminal corresponding to the user identification, so that each terminal broadcasts according to the broadcast mode in the broadcast instruction after receiving the broadcast instruction.
Optionally, the broadcast instruction is sent to each terminal corresponding to the user identifier, so that each terminal performs alarm clock broadcast according to the broadcast instruction, and the method further includes:
a judging module 404, configured to judge whether a broadcast stop instruction sent by any terminal in the terminals is received;
a first sending module 405, configured to send the report stop instruction to each terminal corresponding to the user identifier if it is determined that the report stop instruction is received, so that each terminal stops alarm clock reporting.
Optionally, further comprising:
a second receiving module 406, configured to receive current alarm clock state information sent by the terminal;
and a second sending module 407, configured to generate a control instruction according to the alarm clock state information, and send the control instruction to each terminal corresponding to the user identifier, so that each terminal executes a corresponding control operation according to the control instruction.
Optionally, further comprising:
a third receiving module 408, configured to receive a first alarm clock deleting instruction sent by the terminal, where the first alarm clock deleting instruction at least includes an alarm clock timestamp;
and the first deleting module 409 is configured to query an alarm clock of which the alarm clock reminding time matches the alarm clock timestamp according to the alarm clock timestamp and the generated alarm clock reminding time, and delete the queried alarm clock.
Optionally, further comprising:
a fourth receiving module 410, configured to receive a second alarm clock deleting instruction sent by the terminal, where the second alarm clock deleting instruction at least includes a type of alarm clock deleting;
and a second deleting module 411, configured to query, according to the deleted alarm clock type and the generated alarm clock type, an alarm clock of which the alarm clock type is the same as the deleted alarm clock type, and delete the queried alarm clock.
Optionally, if the alarm setting instruction further includes at least an alarm reminding content, generating an alarm according to the alarm reminding time, the alarm type, and the alarm reminding content, and then further includes:
a fifth receiving module 412, configured to receive a third alarm clock deleting instruction sent by the terminal, where the third alarm clock deleting instruction at least includes alarm clock reminding content deleting;
and a third deleting module 413, configured to query, according to the deleted alarm clock prompting content and the generated alarm clock prompting content of the alarm clock, an alarm clock whose alarm clock prompting content is the same as the deleted alarm clock prompting content, and delete the queried alarm clock.
Optionally, further comprising:
a first prompting module 414, configured to send an alarm clock deletion success message to each terminal corresponding to the user identifier if it is determined that the deletion is successful, so that each terminal prompts the alarm clock deletion success message according to a preset prompting manner;
a second prompting module 415, configured to send an alarm clock deletion failure message to each terminal corresponding to the user identifier if it is determined that deletion fails, so that each terminal prompts the alarm clock deletion failure message according to a preset prompting manner.
Optionally, further comprising:
an obtaining module 416, configured to obtain a current time;
and a fourth deleting module 417, configured to screen an alarm clock whose reminding time is earlier than the current time, and delete the screened alarm clock.
Based on the above embodiments, fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application.
An embodiment of the present application provides an electronic device, which may include a processor 510 (CPU), a memory 520, an input device 530, an output device 540, and the like, wherein the input device 530 may include a keyboard, a mouse, a touch screen, and the like, and the output device 540 may include a display device, such as a Liquid Crystal Display (LCD), a Cathode Ray Tube (CRT), and the like.
Memory 520 may include Read Only Memory (ROM) and Random Access Memory (RAM), and provides processor 510 with program instructions and data stored in memory 520. In the embodiment of the present application, the memory 520 may be used to store a program of any one of the alarm clock control methods in the embodiment of the present application.
The processor 510 is configured to execute any of the alarm clock control methods according to the embodiments of the present application by calling the program instructions stored in the memory 520 and the processor 510 is configured to execute the obtained program instructions.
Based on the above embodiments, in the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the alarm clock control method in any of the above method embodiments.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (24)

1. An alarm clock control method, comprising:
receiving an alarm clock setting instruction sent by a terminal, wherein the alarm clock setting instruction at least comprises alarm clock reminding time and alarm clock type;
generating an alarm clock according to the alarm clock reminding time and the alarm clock type, and establishing an association relation between an alarm clock identifier of the alarm clock and a user identifier according to a preset user identifier corresponding to the terminal, wherein the user identifier corresponds to at least one terminal, and the alarm clock corresponds to a timing task;
and starting the timing task of the alarm clock, if the timing task of the alarm clock is determined to be in due time, generating a broadcasting instruction, and sending the broadcasting instruction to each terminal corresponding to the user identification, so that each terminal broadcasts the alarm clock according to the broadcasting instruction.
2. The method of claim 1, wherein receiving the alarm setting instruction sent by the terminal specifically comprises:
receiving an alarm clock setting instruction sent by a terminal through voice;
generating an alarm clock according to the alarm clock reminding time and the alarm clock type, wherein the method specifically comprises the following steps:
performing semantic recognition on voice of the alarm clock setting instruction, and determining corresponding user intentions, wherein the user intentions at least comprise alarm clock reminding time and alarm clock types, and the alarm clock types are single broadcast or repeated broadcast;
and generating an alarm clock according to the user intention.
3. The method of claim 1, wherein after generating the alarm clock according to the alarm clock reminding time and the alarm clock type, the method further comprises:
and returning an alarm clock setting success message or an alarm clock setting failure message to the terminal so that the terminal prompts the alarm clock setting success message or the alarm clock setting failure message according to a preset prompting mode.
4. The method according to claim 1, wherein if the alarm clock setting instruction further includes alarm clock reminding content, if it is determined that a timing task of the alarm clock is due, a broadcast instruction is generated, and the broadcast instruction is sent to each terminal corresponding to the user identifier, so that each terminal performs alarm clock broadcast according to the broadcast instruction, specifically including:
if confirm the alarm clock is then, generate and report the instruction, wherein, report the mode including the alarm clock in the instruction at least, the alarm clock reports the mode and includes following arbitrary one or combination: alarm clock reminding content, alarm clock broadcasting times and alarm clock broadcasting ring;
and sending the broadcast instruction to each terminal corresponding to the user identification, so that each terminal broadcasts according to the broadcast mode in the broadcast instruction after receiving the broadcast instruction.
5. The method according to any one of claims 1 to 4, wherein the sending of the broadcast instruction to each terminal corresponding to the user identifier enables each terminal to perform alarm clock broadcast according to the broadcast instruction, and further comprising:
judging whether a broadcast stopping instruction sent by any terminal in all the terminals is received;
and if the broadcast stopping instruction is determined to be received, sending the broadcast stopping instruction to each terminal corresponding to the user identification so as to enable each terminal to stop alarm clock broadcast.
6. The method of claim 5, further comprising:
receiving current alarm clock state information sent by the terminal;
and generating a control instruction according to the alarm clock state information, and sending the control instruction to each terminal corresponding to the user identifier so that each terminal executes corresponding control operation according to the control instruction.
7. The method of claim 1, further comprising:
receiving a first alarm clock deleting instruction sent by the terminal, wherein the first alarm clock deleting instruction at least comprises an alarm clock timestamp;
and inquiring the alarm clock with the alarm clock reminding time according with the alarm clock timestamp according with the generated alarm clock reminding time of the alarm clock, and deleting the inquired alarm clock.
8. The method of claim 1, further comprising:
receiving a second alarm clock deleting instruction sent by the terminal, wherein the second alarm clock deleting instruction at least comprises an alarm clock deleting type;
and inquiring the alarm clock with the alarm clock type same as the deleted alarm clock type according to the deleted alarm clock type and the generated alarm clock type of the alarm clock, and deleting the inquired alarm clock.
9. The method of claim 1, wherein if the alarm setting instruction further includes at least an alarm reminding content, generating an alarm according to the alarm reminding time, the alarm type, and the alarm reminding content further comprises:
receiving a third alarm clock deleting instruction sent by the terminal, wherein the third alarm clock deleting instruction at least comprises alarm clock reminding content deleting;
and inquiring the alarm clock with the alarm clock reminding content identical to the deleted alarm clock reminding content according to the deleted alarm clock reminding content and the generated alarm clock reminding content of the alarm clock, and deleting the inquired alarm clock.
10. The method of any one of claims 7, 8, or 9, further comprising:
if the deletion is determined to be successful, an alarm clock deletion success message is sent to each terminal corresponding to the user identification, so that each terminal prompts the alarm clock deletion success message according to a preset prompting mode;
and if the deletion is determined to be failed, sending an alarm clock deletion failure message to each terminal corresponding to the user identification so that each terminal prompts the alarm clock deletion failure message according to a preset prompting mode.
11. The method of claim 1, further comprising:
acquiring current time;
and screening the alarm clocks with the reminding time earlier than the current time, and deleting the screened alarm clocks.
12. An alarm clock control apparatus, comprising:
the first receiving module is used for receiving an alarm clock setting instruction sent by a terminal, wherein the alarm clock setting instruction at least comprises alarm clock reminding time and alarm clock type;
the first processing module is used for generating an alarm clock according to the alarm clock reminding time and the alarm clock type, and establishing an association relation between an alarm clock identifier of the alarm clock and a user identifier according to a preset user identifier corresponding to the terminal, wherein the user identifier corresponds to at least one terminal, and the alarm clock corresponds to a timing task;
and the second processing module is used for starting the timing task of the alarm clock, generating a broadcasting instruction if the timing task of the alarm clock is determined to be in time, and sending the broadcasting instruction to each terminal corresponding to the user identification, so that each terminal can broadcast the alarm clock according to the broadcasting instruction.
13. The apparatus of claim 12, wherein the first receiving module is specifically configured to:
receiving an alarm clock setting instruction sent by a terminal through voice;
the first processing module is specifically configured to:
performing semantic recognition on voice of the alarm clock setting instruction, and determining corresponding user intentions, wherein the user intentions at least comprise alarm clock reminding time and alarm clock types, and the alarm clock types are single broadcast or repeated broadcast;
and generating an alarm clock according to the user intention.
14. The apparatus of claim 12, wherein after generating the alarm clock according to the alarm clock reminding time and the alarm clock type, further comprising:
and the return module is used for returning an alarm clock setting success message or an alarm clock setting failure message to the terminal so that the terminal prompts the alarm clock setting success message or the alarm clock setting failure message according to a preset prompting mode.
15. The apparatus according to claim 14, wherein if the alarm setting instruction further includes alarm reminding content, the second processing module is specifically configured to:
if confirm the alarm clock is then, generate and report the instruction, wherein, report the mode including the alarm clock in the instruction at least, the alarm clock reports the mode and includes following arbitrary one or combination: alarm clock reminding content, alarm clock broadcasting times and alarm clock broadcasting ring;
and sending the broadcast instruction to each terminal corresponding to the user identification, so that each terminal broadcasts according to the broadcast mode in the broadcast instruction after receiving the broadcast instruction.
16. The apparatus according to any one of claims 12 to 15, wherein the broadcasting instruction is sent to each terminal corresponding to the user identifier, so that after the terminals perform alarm clock broadcasting according to the broadcasting instruction, the apparatus further comprises:
the judging module is used for judging whether a broadcast stopping instruction sent by any terminal in all the terminals is received;
and the first sending module is used for sending the broadcast stopping instruction to each terminal corresponding to the user identification if the broadcast stopping instruction is determined to be received, so that each terminal stops alarm clock broadcasting.
17. The apparatus of claim 16, further comprising:
the second receiving module is used for receiving the current alarm clock state information sent by the terminal;
and the second sending module is used for generating a control instruction according to the alarm clock state information and sending the control instruction to each terminal corresponding to the user identifier so that each terminal executes corresponding control operation according to the control instruction.
18. The apparatus of claim 12, further comprising:
a third receiving module, configured to receive a first alarm clock deleting instruction sent by the terminal, where the first alarm clock deleting instruction at least includes an alarm clock timestamp;
and the first deleting module is used for inquiring the alarm clock with the alarm clock reminding time according with the alarm clock timestamp and the generated alarm clock reminding time of the alarm clock, and deleting the inquired alarm clock.
19. The apparatus of claim 12, further comprising:
the fourth receiving module is used for receiving a second alarm clock deleting instruction sent by the terminal, wherein the second alarm clock deleting instruction at least comprises an alarm clock deleting type;
and the second deleting module is used for inquiring the alarm clock with the alarm clock type same as the deleted alarm clock type according to the deleted alarm clock type and the generated alarm clock type, and deleting the inquired alarm clock.
20. The apparatus of claim 12, wherein if the alarm setting instruction further includes at least an alarm reminding content, generating an alarm according to the alarm reminding time, the alarm type, and the alarm reminding content further comprises:
the fifth receiving module is used for receiving a third alarm clock deleting instruction sent by the terminal, wherein the third alarm clock deleting instruction at least comprises alarm clock reminding content deleting;
and the third deleting module is used for inquiring the alarm clock with the alarm clock reminding content identical to the deleted alarm clock reminding content according to the deleted alarm clock reminding content and the generated alarm clock reminding content of the alarm clock, and deleting the inquired alarm clock.
21. The apparatus of any of claims 18, 19, or 20, further comprising:
the first prompting module is used for sending an alarm clock deleting success message to each terminal corresponding to the user identifier if the deleting is determined to be successful, so that each terminal prompts the alarm clock deleting success message according to a preset prompting mode;
and the second prompting module is used for sending alarm clock deletion failure messages to each terminal corresponding to the user identification if the deletion is determined to fail, so that each terminal prompts the alarm clock deletion failure messages according to a preset prompting mode.
22. The apparatus of claim 12, further comprising:
the acquisition module is used for acquiring the current time;
and the fourth deleting module is used for screening the alarm clocks with the alarm clock reminding time being earlier than the current time and deleting the screened alarm clocks.
23. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any of claims 1-11 are implemented when the program is executed by the processor.
24. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the method of any one of claims 1 to 11.
CN201911329625.1A 2019-12-20 2019-12-20 Alarm clock control method and device Pending CN111063351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911329625.1A CN111063351A (en) 2019-12-20 2019-12-20 Alarm clock control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911329625.1A CN111063351A (en) 2019-12-20 2019-12-20 Alarm clock control method and device

Publications (1)

Publication Number Publication Date
CN111063351A true CN111063351A (en) 2020-04-24

Family

ID=70301277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911329625.1A Pending CN111063351A (en) 2019-12-20 2019-12-20 Alarm clock control method and device

Country Status (1)

Country Link
CN (1) CN111063351A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438138A (en) * 2021-06-17 2021-09-24 海尔(深圳)研发有限责任公司 Method, system, device and equipment for reminding user to get up
CN113810418A (en) * 2021-09-18 2021-12-17 土巴兔集团股份有限公司 Method for defending cross-site scripting attack and related equipment thereof
CN114697441A (en) * 2020-12-28 2022-07-01 深圳Tcl新技术有限公司 Alarm clock control method, storage medium and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413416A (en) * 2011-09-28 2012-04-11 宇龙计算机通信科技(深圳)有限公司 Cloud server-based alarm clock reminding method and cloud server
CN102624915A (en) * 2012-03-23 2012-08-01 中兴通讯股份有限公司 Method and system of alarm clock cloud service
CN108989401A (en) * 2018-07-02 2018-12-11 百度在线网络技术(北京)有限公司 Alarm clock setting method, device, terminal, server and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413416A (en) * 2011-09-28 2012-04-11 宇龙计算机通信科技(深圳)有限公司 Cloud server-based alarm clock reminding method and cloud server
CN102624915A (en) * 2012-03-23 2012-08-01 中兴通讯股份有限公司 Method and system of alarm clock cloud service
CN108989401A (en) * 2018-07-02 2018-12-11 百度在线网络技术(北京)有限公司 Alarm clock setting method, device, terminal, server and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697441A (en) * 2020-12-28 2022-07-01 深圳Tcl新技术有限公司 Alarm clock control method, storage medium and terminal equipment
CN113438138A (en) * 2021-06-17 2021-09-24 海尔(深圳)研发有限责任公司 Method, system, device and equipment for reminding user to get up
CN113810418A (en) * 2021-09-18 2021-12-17 土巴兔集团股份有限公司 Method for defending cross-site scripting attack and related equipment thereof
CN113810418B (en) * 2021-09-18 2023-12-26 土巴兔集团股份有限公司 Method for defending cross-site scripting attack and related equipment thereof

Similar Documents

Publication Publication Date Title
CN111063351A (en) Alarm clock control method and device
CN107146611B (en) Voice response method and device and intelligent equipment
CN109858607A (en) A kind of application method, management method, system and server
WO2014169825A1 (en) Method, terminal, and computer storage medium for prompting to-be-prompted event
CN109447248A (en) Deep learning platform and method
CN103873934A (en) Method and system for real-time prompting of video tracking
CN106409295A (en) Method and apparatus for recognizing time information from natural voice information
CN105574167A (en) Mobile terminal-based automatic photograph naming processing method and system
CN112069154A (en) Automatic operation and maintenance method and related device for etcd distributed database
CN113868228A (en) Data synchronization method, device, equipment and computer readable storage medium
CN111078506A (en) Business data batch running task monitoring method and device
CN106227784A (en) A kind of self-service peek system based on complete self-defined SQL scene
CN106681721A (en) Theme management device and method for smart watch
CN114531462B (en) Data processing method and device for Internet of things device
CN111784312B (en) Reminding method and device
CN112765135B (en) Data processing method, device, electronic equipment and storage medium
CN111209381B (en) Time management method and device in dialogue scene
CN112559158A (en) Micro-service timing task scheduling method and device
US9843635B2 (en) Data replication among portable electronic devices
CN106060267A (en) Mobile terminal and method for updating alarm clock reminding time
CN112988860A (en) Data acceleration processing method and device and electronic equipment
CN113364669B (en) Message processing method and device, electronic equipment and medium
US11630844B2 (en) System and method for augmenting synced data across multiple systems to facilitate data cleansing
CN115098290A (en) Intelligent artificial service method and device based on automatically updated NLP model
CN109064527A (en) Implementation method, device, storage medium and the android terminal of dynamic configuration animation

Legal Events

Date Code Title Description
PB01 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200424