Alarm setting method and device, computer readable storage medium, and computer program product
By displaying a card containing alarm setting information on the terminal device, users can quickly confirm and set the alarm recommended time, solving the problem of cumbersome alarm setting process in the existing technology, and improving user experience and setting efficiency.
Patent Information
- Application Number
- CN202210099401.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-27
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2042-01-27
AI Technical Summary
The existing alarm clock setting method is cumbersome, resulting in inefficient user-friendly time to set the alarm clock.
When the terminal device receives the trip information, the card displays the card, which includes the trip information and alarm clock setting information. The user opens the alarm clock setting interface through the controls in the card. The alarm clock suggestion time has been selected on the interface, and the user only needs to confirm the settings.
It simplifies the process of setting the alarm clock and improves the efficiency and user experience of setting the alarm clock.
Smart Images

Figure CN116567138B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an alarm setting method and device. Background Art
[0002] With the increasing development of terminal technology, the alarm clock on the terminal device provides convenience for the user's travel. For example, the alarm clock can remind the user of the departure time.
[0003] Typically, when a terminal device obtains a user's itinerary information, the terminal device can remind the user of the time set on the alarm clock based on the itinerary information. The user can set the time in the alarm clock, so that when the time set on the alarm clock is reached, the terminal device can remind the user to set off.
[0004] However, the above alarm setting method has a complicated operation process. Summary of the invention
[0005] The embodiments of the present application provide an alarm setting method and device, which can simplify the process of users setting the suggested alarm time, improve the efficiency of users setting the suggested alarm time, and improve the user experience.
[0006] In a first aspect, an alarm setting method is applied to a terminal device, the method comprising: when the terminal device receives first travel information, the terminal device displays a first card, wherein the first card includes the first travel information and the alarm setting information, the alarm setting information includes a first control and a first time, and the first time is a recommended alarm time; receiving a first operation on the first control; in response to the first operation, the terminal device displays a first interface, wherein the first interface is an alarm setting interface with the first time selected; when an operation to confirm the alarm setting corresponding to the first time is received on the first interface, the terminal device sets the alarm corresponding to the first time. Since the terminal device displays the alarm setting interface with the first time selected, the user does not need to manually select the first time, which improves the efficiency of the user in setting the recommended alarm time, is convenient and flexible, and thus improves the user experience.
[0007] In a possible implementation, the first trip information includes the first trip start time and the first trip start position. When the terminal device receives the first trip information, the terminal device displays the first card, including: when the terminal device receives the first trip information, the terminal device calculates the difference between the first trip start time and the first duration to obtain the first time, wherein the first duration is the sum of the second duration, the third duration and the fourth duration, the second duration is the duration required to travel from the preset position to the first trip start position, the third duration is the duration required to stay at the preset position, and the fourth duration is the duration required to stay at the first trip start position; the terminal device obtains the alarm sequence Table, wherein the alarm list includes multiple times; when the terminal device determines that each of the multiple times is later than the first time, the terminal device displays the first card; or, when the terminal device determines that one of the multiple times is earlier than the first time, and the difference between one of the multiple times and the first time is greater than a first threshold, the terminal device displays the first card; or, when the terminal device determines that one of the multiple times is earlier than the first time, the difference between one of the multiple times and the first time is less than or equal to the first threshold, and the alarm state of one of the multiple times is off, the terminal device displays the first card. In this way, the terminal device can determine whether to display the first card according to different situations, thereby improving the flexibility of the terminal device in displaying the first card.
[0008] In a possible implementation, the terminal device calculates the difference between the first trip start time and the first duration to obtain the first time, including: the terminal device integrates a map application software development kit SDK; the terminal device obtains the second duration from the map application software development kit SDK; the terminal device calculates the sum of the second duration, the third duration, and the fourth duration to obtain the first duration; the terminal device calculates the difference between the first trip start time and the first duration to obtain the first time. In this way, after obtaining the first time, the terminal device can display the first card, thereby providing the user with an alarm clock recommended time.
[0009] In one possible implementation, the alarm list includes a second time, and the terminal device calculates the sum of the second duration, the third duration, and the fourth duration to obtain the first duration, including: when the terminal device determines that the second time is the alarm time to wake up, and the alarm date corresponding to the second time is within a first date period, the terminal device obtains multiple fifth durations from a service platform, wherein the service platform is used to serve the terminal device, and any one of the multiple fifth durations is the historical duration of the terminal device's stay at a preset location after the second time, and the first date period includes multiple working days; the terminal device clusters the multiple fifth durations to obtain multiple first curves; the terminal device fits the multiple first curves into a second curve; when the area ratio of one of the multiple first curves to the second curve is the maximum, the terminal device determines the duration corresponding to one of the multiple first curves as the third duration; the terminal device calculates the sum of the second duration, the third duration, and the fourth duration to obtain the first duration. Since the third duration is obtained by the terminal device based on the user's habits, the third duration has a high accuracy rate for the user. Thus, the alarm suggested time provided by the terminal device is more in line with the user's habits and has a high accuracy rate.
[0010] In a possible implementation, the terminal device calculates the sum of the second duration, the third duration, and the fourth duration to obtain the first duration, including: the terminal device obtains from the service platform multiple durations of the terminal device's historical stay at the first trip starting position; the terminal device calculates the average duration of the multiple durations of the historical stay at the first trip starting position to obtain the fourth duration; the terminal device calculates the sum of the second duration, the third duration, and the fourth duration to obtain the first duration. Since the fourth duration is obtained by the terminal device based on the user's habits, the fourth duration is more in line with the user's habits, so the accuracy of the alarm clock suggested time provided by the terminal device is high.
[0011] In a possible implementation, the first interface includes a second control, and when the first interface receives an operation to confirm the setting of an alarm corresponding to the first time, the terminal device sets the alarm corresponding to the first time, including: when receiving a second operation on the second control, the terminal device sets the alarm corresponding to the first time. In this way, after the user sets the alarm corresponding to the first time based on the second control, the terminal device can remind the user to set off at the first time, thereby improving the accuracy of the user's departure reminder.
[0012] In a possible implementation, the method further includes: when the second operation on the second control is not received, the terminal device receives the second trip information; when the terminal device determines that the state of the second trip information is the first state, and the second trip information and the first trip information meet the first condition, the terminal device deletes the first card, wherein the first state is used to indicate the trip state, and the first state includes the trip state being a refund or the trip state being a cancellation. In this way, after the terminal device deletes the first card, the user does not need to set an alarm corresponding to the first time.
[0013] In one possible implementation, the second trip information includes the second trip starting position, the second trip starting date, the second trip starting time and the second trip identifier, the first trip information includes the first trip starting position, the first trip starting time, the first trip identifier and the first trip starting date, and the second trip information and the first trip information meet the first condition, including: the second trip starting time is the same as the first trip starting time, the second trip identifier is the same as the first trip identifier, the second trip starting position is the same as the first trip starting position, and the second trip starting date is the same as the first trip starting date.
[0014] In a possible implementation, it further includes: when the second operation on the second control is not received, the terminal device receives the second trip information, wherein the second trip information includes the start time of the second trip; when the terminal device determines that the state of the second trip information is the second state, and the second trip information and the first trip information meet the second condition, the terminal device obtains the third time according to the start time of the second trip, wherein the third time is the alarm clock suggested time, the second state is used to indicate the trip state, and the second state includes the trip state being changed; the terminal device updates the first time in the first card to the third time. In this way, after the terminal device receives the change information of the trip, the terminal device can update the first time to the third time, so that the user will not be delayed when departing based on the third time, thereby improving the accuracy of the user's departure reminder.
[0015] In a possible implementation, the second trip information also includes a second trip starting position, a second trip starting date, and a second trip identifier, the first trip information includes a first trip starting position, a first trip starting time, a first trip identifier, and a first trip starting date, and the second trip information and the first trip information satisfy a second condition, including: the first trip starting date is the same as the second trip starting date, the first trip identifier is the same as the second trip identifier, the first trip starting position is the same as the second trip starting position, and the absolute value of the difference between the second trip starting time and the first trip starting time is less than or equal to a second threshold.
[0016] In a possible implementation, the first trip information includes the first trip start time and the first trip start date. When the terminal device receives the first trip information, the terminal device displays a first card, including: when the first trip start time is the first time period, the terminal device obtains the power usage of the terminal device in multiple time periods from the service platform, wherein the service platform is used to serve the terminal device, and the multiple time periods include the second time period; when the terminal device determines that the power usage of the second time period is less than or equal to the third threshold, the terminal device calculates the time after subtracting the sixth time period from the initial time of the second time period to obtain the fourth time; when the time equal to the fourth time is reached one day before the start date of the first trip, the terminal device displays the first card. The second time period is the user's sleeping time period. When the terminal device displays the first card based on the time equal to the fourth time reached one day before the start date of the first trip, the user can see the first card in time. After the user sets the alarm corresponding to the first time based on the first card, the accuracy of the user's departure reminder can be improved.
[0017] In a possible implementation, the method further includes: when the terminal device determines that the initial time of the second time period of the day before the start date of the first trip has been reached, and the terminal device has not received an operation to confirm the setting of the alarm corresponding to the first time on the first interface, the terminal device deletes the first card. The second time period is the user's sleep time period. When the initial time of the second time period of the day before the start date of the first trip has been reached, the user has not set the alarm. The user may not need to set the alarm corresponding to the first time. Therefore, the terminal device can delete the first card.
[0018] In a possible implementation, after the terminal device sets the alarm corresponding to the first time, it also includes: the terminal device receives the third trip information; when the state of the third trip information is the first state, and the third trip information and the first trip information meet the first condition, the terminal device displays the second card, wherein the second card is used to suggest deleting the alarm setting corresponding to the first time, and the first state is used to indicate the trip state, and the first state includes the trip state being a refund or a cancellation; receiving a third operation on the second card; in response to the third operation, the terminal device displays the second interface, wherein the second interface includes a third control; receiving a fourth operation on the third control; in response to the fourth operation, the terminal device deletes the alarm corresponding to the first time. In this way, after the terminal device receives the refund information or cancellation information of the trip, the terminal device deletes the alarm corresponding to the first time, so that the user will not be reminded again.
[0019] In one possible implementation, the first trip information includes the first trip starting position, the first trip starting time, the first trip identifier and the first trip starting date, the third trip information includes the third trip starting position, the third trip starting date, the third trip starting time and the third trip identifier, and the third trip information and the first trip information meet the first condition, including: the first trip starting time is the same as the third trip starting time, the third trip identifier is the same as the first trip identifier, the first trip starting position is the same as the third trip starting position, and the third trip starting date is the same as the first trip starting date.
[0020] In a second aspect, an embodiment of the present application provides an alarm setting device, which may be a terminal device, or a component, chip, or chip system in a terminal device. The alarm setting device may include a display unit and a processing unit. When the alarm setting device is a terminal device, the processing unit may be a processor, the display unit may be a display screen, and the alarm setting device may further include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit so that the terminal device implements the method described in the first aspect or any possible implementation of the first aspect. When the alarm setting device is a component, chip, or chip system in a terminal device, the processing unit may be a processor, the display unit may be a display screen, and the processing unit executes the instructions stored in the storage unit so that the terminal device implements the method described in the first aspect or any possible implementation of the first aspect. The storage unit may be a storage unit in the chip (for example, a register, a cache, etc.), or a storage unit in the terminal device located outside the chip (for example, a read-only memory, a random access memory, etc.).
[0021] Exemplarily, the processing unit is used to display a first card when the terminal device receives first travel information, wherein the first card includes the first travel information and alarm setting information, and the alarm setting information includes a first control and a first time, and the first time is the recommended alarm time; the processing unit is also used to receive a first operation on the first control; the processing unit is also used to display a first interface in response to the first operation, wherein the first interface is an alarm setting interface with the first time selected; the processing unit is also used to set the alarm corresponding to the first time when an operation to confirm the alarm setting corresponding to the first time is received on the first interface.
[0022] In a possible implementation, the first trip information includes a first trip start time and a first trip start position, and the processing unit is specifically configured to: when the terminal device receives the first trip information, calculate the difference between the first trip start time and the first duration to obtain the first time, wherein the first duration is the sum of the second duration, the third duration and the fourth duration, the second duration is the duration required to travel from the preset position to the first trip start position, the third duration is the duration required to stay at the preset position, and the fourth duration is the duration required to stay at the first trip start position; obtain an alarm list, wherein the alarm list includes multiple times; when the terminal device determines that each of the multiple times is later than the first time, display a first card; or when the terminal device determines that one of the multiple times is earlier than the first time, and the difference between one of the multiple times and the first time is greater than a first threshold, display the first card; or when the terminal device determines that one of the multiple times is earlier than the first time, the difference between one of the multiple times and the first time is less than or equal to the first threshold, and the alarm state of one of the multiple times is off, display the first card.
[0023] In one possible implementation, the processing unit is specifically used to: integrate a map application software development kit SDK; obtain a second duration from the map application software development kit SDK; calculate the sum of the second duration, the third duration and the fourth duration to obtain a first duration; calculate the difference between the start time of the first trip and the first duration to obtain the first time.
[0024] In one possible implementation, the alarm list includes a second time, and a processing unit is specifically used to: when the terminal device determines that the second time is the alarm time to wake up, and the alarm date corresponding to the second time is within a first date period, obtain multiple fifth time periods from a service platform, wherein the service platform is used to serve the terminal device, and any one of the multiple fifth time periods is the historical length of time that the terminal device stays at a preset location after the second time, and the first date period includes multiple working days; cluster the multiple fifth time periods to obtain multiple first curves; fit the multiple first curves into a second curve; when the area ratio of one of the multiple first curves to the second curve is the maximum, determine the time period corresponding to one of the multiple first curves as the third time period; calculate the sum of the second time period, the third time period and the fourth time period to obtain the first time period.
[0025] In one possible implementation, the processing unit is specifically used to: obtain from the service platform multiple historical stay durations of the terminal device at the first trip starting position; calculate the average duration of the multiple historical stay durations at the first trip starting position to obtain a fourth duration; calculate the sum of the second duration, the third duration and the fourth duration to obtain the first duration.
[0026] In a possible implementation, the first interface includes a second control, and the processing unit is specifically configured to: when a second operation on the second control is received, set an alarm corresponding to the first time.
[0027] In one possible implementation, the processing unit is further used to: receive second trip information without receiving a second operation on the second control; when the terminal device determines that the state of the second trip information is the first state, and the second trip information and the first trip information meet the first condition, delete the first card, wherein the first state is used to indicate the trip status, and the first state includes the trip status being a refund or the trip status being a cancellation.
[0028] In one possible implementation, the second trip information includes the second trip starting position, the second trip starting date, the second trip starting time and the second trip identifier, the first trip information includes the first trip starting position, the first trip starting time, the first trip identifier and the first trip starting date, and the second trip information and the first trip information meet the first condition, including: the second trip starting time is the same as the first trip starting time, the second trip identifier is the same as the first trip identifier, the second trip starting position is the same as the first trip starting position, and the second trip starting date is the same as the first trip starting date.
[0029] In one possible implementation, the processing unit is further used to: receive second trip information without receiving a second operation on the second control, wherein the second trip information includes a start time of the second trip; when the terminal device determines that the state of the second trip information is the second state, and the second trip information and the first trip information meet the second condition, obtain a third time according to the start time of the second trip, wherein the third time is the alarm suggested time, and the second state is used to indicate the trip state, and the second state includes the trip state being a change of ticket; and update the first time in the first card to the third time.
[0030] In a possible implementation, the second trip information also includes a second trip starting position, a second trip starting date, and a second trip identifier, the first trip information includes a first trip starting position, a first trip starting time, a first trip identifier, and a first trip starting date, and the second trip information and the first trip information satisfy a second condition, including: the first trip starting date is the same as the second trip starting date, the first trip identifier is the same as the second trip identifier, the first trip starting position is the same as the second trip starting position, and the absolute value of the difference between the second trip starting time and the first trip starting time is less than or equal to a second threshold.
[0031] In one possible implementation, the first trip information includes the first trip start time and the first trip start date, and the processing unit is further used to: when the first trip start time is in the first time period, obtain the power usage of the terminal device in multiple time periods from the service platform, wherein the service platform is used to serve the terminal device, and the multiple time periods include the second time period; when the terminal device determines that the power usage of the second time period is less than or equal to the third threshold, calculate the time after subtracting the sixth time period from the initial time of the second time period to obtain the fourth time; when the time equals the fourth time one day before the start date of the first trip, display the first card.
[0032] In one possible implementation, the processing unit is also used to: delete the first card when the terminal device determines that the initial time of the second time period on the day before the start date of the first trip has been reached, and the terminal device has not received an operation to confirm the alarm setting corresponding to the first time on the first interface.
[0033] In one possible implementation, the processing unit is further used to: receive third trip information; when the state of the third trip information is the first state, and the third trip information and the first trip information meet the first condition, display a second card, wherein the second card is used to suggest deleting the alarm setting corresponding to the first time, and the first state is used to indicate the trip status, and the first state includes the trip status being a refund or a cancellation; receive a third operation on the second card; in response to the third operation, display a second interface, wherein the second interface includes a third control; receive a fourth operation on the third control; and in response to the fourth operation, delete the alarm corresponding to the first time.
[0034] In one possible implementation, the first trip information includes the first trip starting position, the first trip starting time, the first trip identifier and the first trip starting date, the third trip information includes the third trip starting position, the third trip starting date, the third trip starting time and the third trip identifier, and the third trip information and the first trip information meet the first condition, including: the first trip starting time is the same as the third trip starting time, the third trip identifier is the same as the first trip identifier, the first trip starting position is the same as the third trip starting position, and the third trip starting date is the same as the first trip starting date.
[0035] In a third aspect, an embodiment of the present application provides an alarm setting device, which may include a processor and a memory, the memory being used to store code instructions, and the processor being used to run the code instructions to execute the method described in the first aspect or any possible implementation of the first aspect.
[0036] In a fourth aspect, an embodiment of the present application provides an alarm setting system, which may include: the device described in the second aspect and various possible implementations of the second aspect.
[0037] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes the method described in the first aspect or any possible implementation of the first aspect.
[0038] In a sixth aspect, an embodiment of the present application provides a computer program product comprising a computer program, which, when the computer program runs on a computer, enables the computer to execute the method described in the first aspect or any possible implementation of the first aspect.
[0039] In the seventh aspect, the present application provides a chip or a chip system, which includes at least one processor and a communication interface, the communication interface and at least one processor are interconnected by lines, and the at least one processor is used to run computer programs or instructions to execute the method described in the first aspect or any possible implementation of the first aspect, wherein the communication interface in the chip can be an input / output interface, a pin or a circuit, etc.
[0040] In a possible implementation, the chip or chip system described above in the present application further includes at least one memory, in which instructions are stored. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (such as a read-only memory, a random access memory, etc.).
[0041] It should be understood that the second to seventh aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of the software structure of a terminal device provided in an embodiment of the present application;
[0045] Figure 4 A flowchart of an alarm setting method provided in an embodiment of the present application;
[0046] Figure 5 A flowchart of an alarm setting method provided in an embodiment of the present application;
[0047] Figure 6A schematic diagram of an interface of an alarm clock corresponding to a first time displayed on a terminal device provided in an embodiment of the present application;
[0048] Figure 7 A flowchart of an alarm setting method provided in an embodiment of the present application;
[0049] Figure 8 A flowchart of an alarm setting method provided in an embodiment of the present application;
[0050] Fig. 9 A schematic diagram of an interface for a terminal device to delete an alarm corresponding to a first time provided in an embodiment of the present application;
[0051] Fig.10 A flowchart of an alarm setting method provided in an embodiment of the present application;
[0052] Fig.11 A flowchart of an alarm setting method provided in an embodiment of the present application;
[0053] Fig.12 A flowchart of an alarm setting method provided in an embodiment of the present application;
[0054] Fig.13 A flowchart of an alarm setting method provided in an embodiment of the present application;
[0055] Fig.14 A schematic diagram of an interface provided in an embodiment of the present application;
[0056] Fig.15 A schematic diagram of the structure of an alarm setting device provided in an embodiment of the present application;
[0057] Fig.16 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit them to be different.
[0059] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0060] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0061] With the increasing development of terminal technology, the alarm clock on the terminal device provides convenience for the user's travel. For example, the alarm clock can remind the user of the departure time.
[0062] Typically, when a terminal device obtains a user's itinerary information, the terminal device can remind the user of the time set on the alarm clock based on the itinerary information. The user can set the time in the alarm clock, so that when the time set on the alarm clock is reached, the terminal device can remind the user to set off.
[0063] For example, Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application. When a terminal device obtains itinerary information, the terminal device can Figure 1 The interface shown in a in the figure displays the itinerary information. For example, when the itinerary information is flight information, the itinerary information may include the flight departure time and the flight arrival time, etc. At the next moment, when the terminal device prompts the user to set an alarm, the terminal device may display the following information: Figure 1 The interface shown in b in FIG. 1 includes travel information and alarm setting prompt information. The alarm setting prompt information is used to suggest the user to set the alarm time. For example, the suggested alarm time may be 5:30.
[0064] When the user needs to set an alarm, Figure 1 In the interface shown in b in FIG. 1 , the user can perform the unlocking process. When the terminal device receives a trigger for the unlocking process, the terminal device can display the following information: Figure 1The interface shown in c in FIG. 1 includes one or more of the following application controls, such as a file management control, an email control, a sports health control, and a smart life control. The interface also includes a clock control 101. When a user triggers the clock control 101 by clicking or touching, the terminal device receives the trigger of the clock control 101, and the terminal device can display Figure 1 The interface shown in d.
[0065] exist Figure 1 In the interface shown in d in FIG. 1 , when the user triggers adding a control by clicking or touching, the terminal device receives the trigger for adding the control, and the terminal device may display the following Figure 1 The interface shown in e is the new alarm interface.
[0066] exist Figure 1 In the interface shown in FIG. 1 , when the user selects the alarm time and sets options related to the alarm time, the user can trigger the confirmation control 102 by clicking or triggering. When the terminal device receives the trigger of the confirmation control 102, the terminal device can display the following information: Figure 1 The interface shown in f is the same as Figure 1 The interface shown in d is different from that shown in Figure 1 The interface shown in f also displays the alarm time just set by the user, so that when the alarm time set above is reached, the terminal device can remind the user to set off.
[0067] However, the above alarm setting method is complicated to operate. Figure 1 ,exist Figure 1 In the interface shown in df in , the user needs to manually select the alarm time in the alarm interface according to the alarm setting time reminded by the terminal device.
[0068] In view of this, an embodiment of the present application provides an alarm setting method and device. When a terminal device receives first travel information, the terminal device can display a first card, the first card includes the first travel information and the alarm setting information, the alarm setting information includes a first control and a first time, the first time is the recommended alarm time, and when responding to a first operation on the first control, the terminal device can display a first interface, the first interface is an alarm setting interface with the first time selected, and when an operation to confirm the alarm setting corresponding to the first time is received on the first interface, the terminal device sets the alarm corresponding to the first time. In this way, when the user sees the recommended alarm time on the first card, the user does not need to manually open the alarm setting interface in the alarm, the user can open the alarm setting interface through the first control in the first card, and in the alarm setting interface, the terminal device has already selected the first time, so the user does not need to manually select the first time, and the operation process is simple, thereby improving the user experience.
[0069] It can be understood that the method of the embodiment of the present application can be applied to scenarios such as flight travel, train travel or ship travel. The method provided by the embodiment of the present application can provide users with personalized alarm times so that users will not be delayed in traveling.
[0070] The method of the embodiment of the present application can be applied to a terminal device. For example, Figure 2 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor module 180, a button 190, a camera 193, a display screen 194, a user interface 130 and a charging management module 140, etc.; wherein the sensor module 180 may include: a pressure sensor 180A, an acceleration sensor 180E, a fingerprint sensor 180H and a touch sensor 180K, etc.
[0071] It should be noted that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100; it is understandable that the terminal device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently; wherein the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0072] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc.; wherein different processing units may be independent devices or integrated in one or more processors.
[0073] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 may be a cache memory, which may store instructions or data that the processor 110 has just used or cyclically used.
[0074] In some embodiments, the processor 110 may include one or more interfaces, which may include an inter-integrated circuit (I2C) interface, an inter-integrated circuits sound (I2S) interface, a pulse code modulation (PCM) interface, and / or a universal serial bus (USB) interface, etc.
[0075] The user interface 130 is used to transmit data between the terminal device 100 and peripheral devices, and can also be used to connect headphones to play audio through the headphones; the user interface 130 can also be used to connect other devices, such as augmented reality (AR) devices.
[0076] The power management module 141 receives input from the charging management module 140 , and the power management module 141 provides power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , the wireless communication module 160 , and the like.
[0077] The wireless communication function of the terminal device 100 can be realized by antenna 1, antenna 2, mobile communication module 150 and wireless communication module 160, etc., wherein antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The antennas in the terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network.
[0078] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied on the terminal device 100; the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc. applied on the terminal device 100.
[0079] In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology; wherein the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc.
[0080] The terminal device 100 implements the display function through the display screen 194, and the display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0081] In an embodiment of the present application, the terminal device can display controls and options related to alarm settings through a display screen. For example, the control can be a first control, a second control, or a third control, and the options can be a ringing duration and a snooze interval, etc., so that the user can set the recommended alarm time in the alarm through the options and controls.
[0082] The terminal device 100 can implement a shooting function through a camera 193 or the like, and the camera 193 is used to capture still images or videos.
[0083] The external memory interface 120 may be used to connect an external memory card to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement a data storage function.
[0084] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
[0085] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .
[0086] The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes); the fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.
[0087] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it.
[0088] In an embodiment of the present application, a user can trigger the first control, the second control or the third control through the touch screen, so that the terminal device receives the operation of the first control, the second control or the third control, and then, in response to the operation, the terminal device can execute corresponding steps.
[0089] For example, Figure 3 A software structure diagram of a terminal device provided in an embodiment of the present application, such as Figure 3 As shown, the layered architecture divides the software system of the terminal device 100 into several layers, each layer has a clear role and division of labor, and the layers communicate with each other through software interfaces.
[0090] In some embodiments, the Android system can be divided into five layers, namely, application layer (applications), application framework layer (application framework), Android runtime (Android runtime) and system library and kernel layer (kernel).
[0091] In a possible way, the application layer may include a series of application packages, and the application layer runs the application by calling the application programming interface (API) provided by the application framework layer. Figure 3 As shown, an application package may include applications such as maps, phone, music, video, or social networking.
[0092] In an embodiment of the present application, the application layer may also include an alarm clock, a computing engine, a smart assistant and a perception module, wherein the perception module is used to sense whether the terminal device has received travel information, the computing engine is used to calculate the recommended alarm time, for example, the computing engine is used to calculate the first time, etc., the smart assistant is used to display cards to the user, and the smart assistant can make suggestions for YOYO, so that when the user sees the card suggested by YOYO, the user can perform the corresponding operation.
[0093] In a possible way, the application framework layer provides APIs and programming frameworks for applications in the application layer. Figure 4 As shown, the application framework layer may include a content manager, a view system, an activity manager, a notification manager, etc. The application framework layer also includes some predefined functions, etc.
[0094] Among them, the content manager is used to store and obtain data and make the data accessible to applications. For example, the data may include browsing history and bookmarks, calls made and received, videos, images, audio or phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, the display interface that can include a text notification icon can include a view that displays text and a view that displays pictures.
[0095] Among them, the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to inform the completion of downloads, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window, such as a text message prompt in the status bar, a prompt sound, the terminal device 100 vibrates, the indicator light flashes, etc.; the activity manager is used to manage the life cycle of each application and the navigation fallback function, and is responsible for the creation of the Android main thread and the maintenance of the life cycle of each application.
[0096] In an embodiment of the present application, the application framework layer may further include a travel association node and an alarm node, wherein the computing engine may register a travel information fence with the perception module through the travel association node, and the computing engine may obtain an alarm list from the alarm clock through the alarm node, so as to enable the computing engine to determine whether the alarm list includes a recommended alarm time; the application framework layer may further include a display synthesis system, and the steps related to the display synthesis system will be described later and will not be repeated here, and the display synthesis system is not shown in the figure.
[0097] In the possible way, Android runtime is responsible for the scheduling and management of the Android system, which can include core libraries and virtual machines. The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library; the virtual machine is used to perform object security and exception management, life cycle management, stack management, thread management, and garbage collection.
[0098] It should be noted that the application layer and the application framework layer run in a virtual machine, and the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
[0099] In an embodiment of the present application, the terminal device may further include a hardware abstraction layer (HAL), which may include a hardware synthesis processor. The steps related to the hardware synthesis processor will be described later and will not be repeated here. The HAL is not shown in the figure.
[0100] In a possible way, the system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine, etc.
[0101] Among them, the surface manager is used to manage the display subsystem and provides the fusion of two-dimensional and three-dimensional layers for multiple applications; the three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, synthesis and layer processing, etc.; the two-dimensional graphics engine is a drawing engine for two-dimensional drawing; the media library supports a variety of commonly used video format playback and recording, audio and static image files, etc. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0102] In a possible manner, the kernel layer is a layer between hardware and software, and the kernel layer includes at least a display driver, an audio driver, a camera driver, a sensor driver or a motor driver, etc., and the embodiments of the present application do not impose any restrictions on this.
[0103] In the embodiment of the present application, the terminal device may further include a hardware layer, which may include a display subsystem and a display screen. The steps related to the display subsystem and the display screen will be described later and will not be repeated here. The hardware layer is not shown in the figure.
[0104] In combination with the above content, exemplary, Figure 4 A flowchart of an alarm setting method provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the following steps may be included:
[0105] S401: The computing engine registers the travel information fence with the perception module.
[0106] In the present application embodiment, combined Figure 3, the computing engine can register the trip information fence with the perception module through the trip association node, so as to instruct the perception module to monitor the trip information, so that the perception module can send the trip information to the computing engine when monitoring the notification status of the trip information.
[0107] S402: When the perception module obtains the first trip information, the perception module sends the first trip information to the calculation engine.
[0108] In the present application embodiment, combined Figure 3 The computing engine can obtain the first trip information from the perception module through the trip association node. The first trip information can include the first trip starting position and the first trip starting time. For example, when the first trip information is flight information, the first trip starting time refers to the flight departure time, and the first trip starting position refers to the airport location; wherein the specific content of the first trip information can be set according to the actual application scenario, and the embodiment of the present application is not limited thereto.
[0109] S403: The calculation engine obtains the first time according to the first trip start time.
[0110] In an embodiment of the present application, the first trip information may also include the starting date of the first trip, and the first time is the time that the terminal device recommends the user to set in the alarm clock, or it can be understood that the first time is the recommended time of the alarm clock, the first time is the time after deducting the first duration from the starting time of the first trip, and the first duration is the sum of the second duration, the third duration and the fourth duration.
[0111] In the embodiment of the present application, the second duration can be understood as the duration required to travel from the preset position to the starting position of the first trip. A possible implementation method for the calculation engine to obtain the second duration is: the perception module is integrated with a map application software development kit (SDK), the perception module obtains the duration required to travel from the preset position to the starting position of the first trip from the map application software development kit SDK, the perception module sends the duration required to travel from the preset position to the starting position of the first trip to the calculation engine, and the calculation engine obtains the second duration.
[0112] Among them, the preset location is used to indicate the user's starting location, for example, the preset location can be the location of the user's home; wherein the perception module can send the time required from the preset location to the starting location of the first trip to the calculation engine through the future path planning interface.
[0113] In an embodiment of the present application, the third duration is the duration required to stay at the preset location, and a possible implementation method for the computing engine to obtain the third duration is: the computing engine obtains an alarm list from the alarm clock, and the alarm list includes a second time. When the computing engine determines that the second time is the alarm time to wake up, and the alarm date corresponding to the second time is within the first date period, the computing engine can obtain from the service platform multiple historical durations of the terminal device at the preset location after the second time; the computing engine clusters the multiple historical durations of stay at the preset location to obtain multiple first curves, and the computing engine fits the multiple first curves into a second curve. When the area ratio of one of the multiple first curves to the second curve is the maximum value, the computing engine determines the duration corresponding to one of the multiple first curves as the third duration; wherein, the multiple historical durations of stay at the preset location can be understood as multiple fifth durations, and any one of the multiple fifth durations is the historical duration of the terminal device at the preset location after the second time.
[0114] Among them, the first date period includes multiple weekdays. When the preset location is the home location, the multiple durations of the terminal device's historical stay at the preset location after the second time can be understood as the multiple historical durations of the user's historical stay from getting up to leaving home on weekdays, or, the multiple durations of the terminal device's historical stay at the preset location after the second time can be understood as the multiple historical durations of the user's historical stay at home after getting up on weekdays.
[0115] It is understandable that the computing engine can also calculate the average duration of multiple historical stays at a preset location to obtain a third duration; the implementation method of the computing engine to obtain the third duration can also be set according to the actual application scenario, and the embodiment of the present application is not limited thereto.
[0116] In the embodiment of the present application, the fourth duration is the duration that the terminal device needs to stay at the starting point of the first trip. The possible implementation method for the computing engine to obtain the fourth duration is: the computing engine obtains multiple historical durations of the terminal device staying at the starting point of the first trip from the service platform, and the computing engine calculates the average duration of the multiple durations to obtain the fourth duration; it can be understood that the fourth duration may refer to the waiting time or the waiting time for the bus, etc.
[0117] Combined with the content described in S403, an example is: when the starting time of the first trip is 8:30, the second duration is 1.5 hours, the third duration is 30 minutes, and the fourth duration is 1 hour, then the first duration is 3 hours, therefore, the first time is 5:30, that is, the terminal device reminds the user that the time set in the alarm clock is 5:30.
[0118] S404: The computing engine obtains an alarm list from the alarm clock.
[0119] In the embodiment of the present application, the computing engine can obtain the alarm list from the alarm by querying the alarm list interface, or, in combination with Figure 3 ,The computing engine can obtain the alarm list from the alarm clock through the alarm clock node.
[0120] S405: When the computing engine determines that the alarm list does not include a time matching the first time, the computing engine draws a first card.
[0121] In an embodiment of the present application, the first card is an alarm add card, the first card includes a first time and a first control, and the computing engine determines that the alarm list does not include a time that matches the first time. A possible implementation method is: when each of the multiple times in the alarm list is later than the first time, the computing engine determines that the alarm list does not include a time that matches the first time; or, when one of the multiple times in the alarm list is earlier than the first time, and the difference between one of the multiple times and the first time is greater than a first threshold, the computing engine determines that the alarm list does not include a time that matches the first time; or, when one of the multiple times in the alarm list is earlier than the first time, the difference between one of the multiple times and the first time is less than or equal to the first threshold, and the alarm state of one of the multiple times is off, the computing engine determines that the alarm list does not include a time that matches the first time.
[0122] It is understandable that the implementation method of the computing engine determining that the alarm list does not include a time that matches the first time can also be set according to the actual application scenario, and is not limited in the embodiment of the present application.
[0123] It can be understood that the computing engine determines that the alarm list includes a time that matches the first time. A possible implementation method is: when one of the multiple times in the alarm list is earlier than the first time, the difference between one of the multiple times and the first time is less than or equal to the first threshold, and the alarm state of one of the multiple times is on, the computing engine can determine that the time included in the alarm list that matches the first time is one of the multiple times. Since one of the multiple times matches the first time determined by the computing engine, the terminal device can remind the user based on one of the multiple times. In this way, the computing engine does not need to draw the first card.
[0124] It is understandable that when the computing engine draws the first card, the computing engine can record the creation status of the first card as a created status, so that the computing engine can subsequently modify or delete the alarm corresponding to the first card.
[0125] S406: The computing engine sends information for instructing the intelligent assistant to display the first card.
[0126] S407: The smart assistant calls the display screen to display the first card.
[0127] In the embodiment of the present application, the first card includes the first trip information and the alarm setting information. The alarm setting information includes the first control and the first time. The first control is a new alarm control, and the first time is the recommended alarm time. The smart assistant can display the first card on the main interface, lock screen interface, or other interfaces such as the negative one screen. The smart assistant can understand it as a YOYO suggestion.
[0128] It can be understood that when the computing engine draws the first card, the computing engine can also determine the alarm name corresponding to the first time. The first trip information can include a first trip identifier. The alarm name corresponding to the first time can be a name composed of the type of the first trip information and the first trip identifier. For example, when the first trip information is flight information, the type of the first trip information is flight, and the first trip identifier refers to the flight number. For example, the first trip identifier can be MU5129, and the alarm name corresponding to the first time can be flight MU5129.
[0129] Combination Figure 2 It can be understood from the description that the information used to indicate the display of the first card may include the display data of the first card. In this way, when the smart assistant receives the information used to indicate the display of the first card, the smart assistant can send the display data of the first card to the display synthesis system, so that the display synthesis system can perform layer processing on the display data of the first card, and send the layer-processed data to the hardware synthesis processor. The hardware synthesis processor performs layer overlay processing on the layer-processed data. The display subsystem can obtain the layer-overlay processed data from the hardware synthesis processor and send the layer-overlay processed data to the display screen. After the display screen obtains the backlight provided by the display screen driver, the display screen can display the first card based on the layer-overlay processed data and the backlight provided by the display screen driver, thereby realizing the process of the smart assistant calling the display screen to display the first card; wherein, layer processing can be understood as a processing process for each layer, layer processing can include layer rendering and other processing, and layer overlay processing can be understood as synthesizing multiple layers after layer processing into a single image data.
[0130] It is understandable that the implementation method of the smart assistant displaying a card or interface described later can refer to the implementation method of the smart assistant calling the display screen to display the first card described above.
[0131] It can be understood that in S403, when the computing engine detects that the difference between the first position and the preset position of the terminal device is greater than the second threshold, and the stay time of the terminal device at the first position is greater than the third threshold, the computing engine obtains the time required from the first position to the starting position of the trip from the perception module; when the time required from the first position to the starting position of the trip is greater than the time required from the preset position to the starting position of the trip, the computing engine updates the second time to the time required from the first position to the starting position of the trip, so that the computing engine updates the first card based on the updated second time.
[0132] Combination Figure 4 The content shown is exemplary. Figure 5 A flowchart of an alarm setting method provided in an embodiment of the present application is provided. The method in the embodiment of the present application can be applied after S407, such as Figure 5 As shown, the following steps may be included:
[0133] S501: When a first operation on a first control is received in a first card, the terminal device displays a first interface.
[0134] In an embodiment of the present application, the terminal device can obtain the alarm name corresponding to the first time from the computing engine through the smart assistant. In this way, the smart assistant can call the alarm adding and editing interface to pass the first time in the first card and the alarm name corresponding to the first time to the alarm, so that when the terminal device displays the first interface, the terminal device has selected the first time, and the first interface includes a second control, which is a confirmation control.
[0135] Among them, when the first operation on the first control is received in the first card, the terminal device displays the first interface. It can be understood that the terminal device receives the first operation on the first control, and in response to the first operation, the terminal device displays the first interface.
[0136] S502: When receiving a second operation on the second control, the terminal device adds an alarm corresponding to the first time in the alarm clock.
[0137] In the embodiment of the present application, the terminal device adding the alarm corresponding to the first time in the alarm can be understood as the terminal device setting the alarm corresponding to the first time. In combination with the contents described in S501 and S502, for example, Figure 6 A schematic diagram of an interface of a terminal device displaying an alarm corresponding to a first time is provided for an embodiment of the present application. The embodiment of the present application is exemplified by an example in which a smart assistant displays a first card on the main interface, the first time in the first card is 5:30, and the name of the alarm corresponding to the first time is flight A. "A" can be used to indicate a first trip identifier.
[0138] When the smart assistant calls the display screen, the terminal device can display the following information through the smart assistant: Figure 6 The interface shown in a in FIG. 1 includes first trip information and alarm setting information, for example, Figure 6 In the interface shown in a in FIG, the first itinerary information is: flight departure time, flight A, and itinerary start date and itinerary start time, the alarm setting information is: 5:30 and a new alarm control, the new alarm control is the first control, when the user triggers the first control by clicking or touching, the terminal device receives the user's triggering of the first control, and the terminal device can display Figure 6 The interface shown in b in the figure can be called the first interface. In this interface, the terminal device has selected 5:30 and has set the alarm name. For example, the alarm name set by the terminal device is flight A. In this way, when the user triggers the second control by clicking or touching, the terminal device receives the user's triggering of the second control, and the terminal device can display Figure 6 The interface shown in c in , in which the terminal device adds the alarm time corresponding to 5:30 to the alarm clock; wherein the operation of the user triggering the first control by clicking or touching can be called the first operation, and the operation of the user triggering the second control by clicking or touching can be called the second operation.
[0139] It is understandable that Figure 1 Compared to the interface shown, Figure 6 The interface shown simplifies the steps for users to set the alarm time. Figure 6 In the interface shown in b, the terminal device has selected 5:30 and set the alarm name, so the user does not need to operate manually. This is convenient and flexible, and can improve the user experience. Moreover, the first time set in the alarm by the terminal device is related to the user's behavior habits. Compared with the fixed time reminded by the terminal device, this time is more in line with the user's preference. Figure 6 In the interface shown in b, the alarm name set by the terminal device is flight A. In this way, when the user turns on the alarm and sees the time, the user can be further reminded, thereby improving the user experience.
[0140] It is understandable that in Figure 6 In the interface shown in b, the user can reselect options related to the first time according to his or her needs, or set the first time according to the default options, which is not limited in the embodiment of the present application.
[0141] It is understandable that in Figure 5 In the embodiment, after the terminal device sets the alarm corresponding to the first time, the terminal device can delete the first card, or the terminal device can Figure 7 Delete the first card.
[0142] Combination Figure 5 and Figure 6 The content shown is exemplary. Figure 7 Schematic diagram of a flow chart of an alarm setting method provided in an embodiment of the present application. The method in the embodiment of the present application can be applied after S502, such as Figure 7 As shown, the following steps may be included:
[0143] S701: The computing engine registers an alarm to exit the fence with the perception module.
[0144] S702: When the perception module obtains the operation of exiting the alarm, the perception module sends information indicating that the alarm fence has been triggered to the computing engine.
[0145] In an embodiment of the present application, in S701 and S702, when the computing engine registers the alarm exit fence with the perception module, it can instruct the perception module to monitor the status of the user exiting the alarm. In this way, when the user controls the terminal device to exit the alarm, the perception module can send information to the computing engine to indicate that the alarm fence has been triggered.
[0146] S703: The computing engine obtains an alarm list from the alarm clock.
[0147] In an embodiment of the present application, the computing engine may obtain the alarm list from the alarm by querying the alarm list interface, or it may be understood that the computing engine may obtain the alarm list from the alarm through the alarm node.
[0148] S704: When the time in the alarm list includes the first time, the computing engine sends information to the smart assistant for instructing to delete the first card.
[0149] It is understandable that the computing engine can also determine whether to send information to the smart assistant to instruct the deletion of the first card based on the alarm name corresponding to the first time. For example, when the alarm names in the alarm list include the alarm names corresponding to the first time, the computing engine can send information to the smart assistant to instruct the deletion of the first card.
[0150] S705: The smart assistant deletes the first card.
[0151] It is understandable that in Figure 7 In the example, when the time in the alarm list does not include the first time, the computing engine does not send an indication message to the smart assistant. In this way, the smart assistant always displays the first card by default, thereby reminding the user to set an alarm.
[0152] Combination Figure 7 The content shown is exemplary. Figure 8A flowchart of an alarm setting method provided in an embodiment of the present application is provided. The method in the embodiment of the present application can be applied after S705, such as Figure 8 As shown, the following steps may be included:
[0153] S801: When the perception module obtains the third trip information and the state of the third trip information is the first state, the perception module sends the third trip information to the calculation engine.
[0154] In the embodiment of the present application, the first state is a preset state, and the first state is used to indicate the travel status. For example, the first state may include the travel status being a refund or the travel status being a cancellation.
[0155] S802: When the third trip information and the first trip information satisfy the first condition, the computing engine draws a second card.
[0156] In an embodiment of the present application, the third trip information may include the second trip starting position, the second trip starting date, the second trip starting time and the second trip identifier, the first trip information may include the first trip starting position, the first trip starting time, the first trip identifier and the first trip starting date, and the third trip information and the first trip information meet the first condition, including: the first trip starting time is the same as the second trip starting time, the second trip identifier is the same as the first trip identifier, the first trip starting position is the same as the second trip starting position, and the second trip starting date is the same as the first trip starting date.
[0157] Among them, when the first itinerary information is flight information, the first itinerary identifier refers to the flight number, the first itinerary start date is the flight departure date, and the content of the third itinerary information can refer to the content of the first itinerary information for adaptation description, which will not be repeated here.
[0158] S803: The computing engine sends information for instructing the intelligent assistant to display the second card.
[0159] S804: The smart assistant calls the display screen to display the second card.
[0160] S805: When receiving the third operation on the second card, the smart assistant calls the display screen to display the second interface.
[0161] In an embodiment of the present application, in S804-S805, the second card is a delete alarm card, the second interface includes a third control, and the third control is a delete alarm control. When the third operation on the second card is received, the smart assistant calls the display screen to display the second interface. It can be understood that the third operation on the second card is received, and in response to the third operation, the smart assistant calls the display screen to display the second interface.
[0162] S806: When receiving the fourth operation on the third control, the smart assistant sends information to the alarm clock for instructing to delete the alarm corresponding to the first time in the alarm list.
[0163] In an embodiment of the present application, when the fourth operation on the third control is received, the smart assistant sends information to the alarm clock for instructing to delete the alarm corresponding to the first time in the alarm list. It can be understood that the fourth operation on the third control is received, and in response to the fourth operation, the smart assistant sends information to the alarm clock for instructing to delete the alarm corresponding to the first time in the alarm list.
[0164] S807: The alarm deletes the alarm corresponding to the first time in the alarm list.
[0165] It is understandable that, combined with Figure 5 After the terminal device sets the alarm corresponding to the first time, the terminal device can delete the first card, and then, Figure 8 The terminal device can also display the second card in addition to the content shown.
[0166] Combined with the contents described in S804 and -S807, and combined with Figure 6 The content of the interface shown is exemplary. Fig. 9 A schematic diagram of an interface for a terminal device to delete an alarm corresponding to a first time provided in an embodiment of the present application. The embodiment of the present application is illustrative in that the cancellation of the first trip information is used as an example. Fig. 9 As shown, Fig. 9 The interface shown in a in the figure includes a second card, and the second card includes information indicating that the trip corresponding to the first trip identifier has been canceled and suggesting that the associated alarm be deleted. When the user triggers the second card by clicking or touching, the terminal device receives the user's triggering of the second card, and the terminal device can display Fig. 9 The interface shown in b in FIG. 1 can be referred to as the second interface, wherein the operation of the user triggering the second card by clicking or touching can be referred to as the third operation.
[0167] exist Fig. 9 In the interface shown in b in the figure, the interface includes a third control, which is a delete alarm control. When the user triggers the third control by clicking or touching, the terminal device receives the user's triggering of the second control, and the terminal device can display the following Fig. 9 The interface shown in c is the same as Figure 6 Compared with the interface shown in c in , this interface deletes the added alarm time, that is, this interface deletes the alarm time when the first time is 5:30, wherein the operation of the user triggering the third control by clicking or touching can be called the fourth operation.
[0168] Combination Figure 8 and Fig. 9From the content shown, it can be understood that when the terminal device detects the operation of exiting the alarm, the terminal device can obtain the alarm list through the computing engine. When the computing engine determines that the alarm list includes the same time as the first time, the computing engine may not send information to the smart assistant to instruct the deletion of the second card. In this way, the smart assistant will continue to display the second card to remind the user; when the computing engine determines that the alarm list does not include the same time as the first time, the computing engine may send information to the smart assistant to instruct the deletion of the second card; wherein, when the smart assistant deletes the second card, the smart assistant will also delete the data and fence related to the second card.
[0169] Combination Figure 5 The content shown is, for example, when the terminal device does not receive the second operation on the second control. Fig.10 A flowchart of an alarm setting method provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the following steps may be included:
[0170] S1001: When the perception module obtains the second trip information and the state of the second trip information is the second state, the perception module sends the second trip information to the calculation engine.
[0171] In the embodiment of the present application, the second state is a preset state, and the second state is used to indicate the travel status. For example, the second state may include that the travel status is changed.
[0172] S1002: When the second trip information and the first trip information satisfy a second condition, the calculation engine obtains a third time according to the second trip start time.
[0173] In an embodiment of the present application, the second trip information may include the second trip starting position, the second trip starting date, the second trip starting time and the second trip identifier, and the first trip information may include the first trip starting position, the first trip starting time, the first trip identifier and the first trip starting date. The content of the second trip information can refer to the content adaptation description of the first trip information and will not be repeated here; the second trip information and the first trip information meet the second condition, including: the first trip starting date is the same as the second trip starting date, the first trip identifier is the same as the second trip identifier, the first trip starting position is the same as the second trip starting position, and the absolute value of the difference between the second trip starting time and the first trip starting time is less than or equal to the second threshold.
[0174] It can be understood that in the second condition, if the start date of the first trip is different from the start date of the second trip, and the absolute value of the difference between the start time of the second trip and the start time of the first trip is greater than the threshold, this indicates that the user's itinerary has changed significantly. Therefore, the terminal device can provide the user with an alarm card based on the second trip start date and the second trip start time in the second trip information, and the terminal device can delete the first card.
[0175] In the embodiment of the present application, the third time is the time obtained by subtracting the first duration from the start time of the second trip. The terminal device can refer to the content adaptation description of S403 for obtaining the content of the first duration, which will not be repeated here.
[0176] S1003: The computing engine obtains an alarm list from the alarm clock.
[0177] S1004: When the calculation engine determines that the alarm list does not include a time that matches the third time, the calculation engine updates the first time in the first card to the third time.
[0178] In the embodiment of the present application, the process of the user adding the third time displayed in the first card to the alarm list can be referred to Figure 6 The content of the interface shown is suitable for the description and will not be repeated here.
[0179] It is understandable that before updating the first card, the first card includes the first trip information. Since the start date of the first trip is the same as the start date of the second trip, the first trip identifier is the same as the second trip identifier, and the start time of the second trip is different from the start time of the first trip, when updating the first time in the first card, the calculation engine can also update the start time of the first trip in the first card to the start time of the second trip.
[0180] It can be understood that, when the start date of the second trip is the same as the start date of the first trip, if the start time of the second trip is later than the start time of the first trip, the third time is later than the first time; when the start time of the second trip is earlier than the start time of the first trip, the third time is earlier than the first time. The specific values of the third time and the first time can be set according to the actual application scenario, and the embodiment of the present application is not limited thereto.
[0181] Combination Fig.10From the content shown, it can be understood that when the terminal device detects the operation of exiting the alarm clock, the terminal device can obtain the alarm clock list through the computing engine, and when the computing engine determines that the alarm clock list includes the same time as the third time, the computing engine can send information to the smart assistant to instruct the deletion of the first card, wherein when the smart assistant deletes the first card, the smart assistant will delete the data and fence related to the first card; when the computing engine determines that the alarm clock list does not include the same time as the third time, this indicates that the user has not added the alarm clock corresponding to the third time in the alarm clock, and therefore, the computing engine may not send information to the smart assistant to instruct the deletion of the first card, so that the smart assistant will continue to display the first card, thereby continuing to remind the user.
[0182] Combination Figure 5 The content shown is, for example, when the terminal device does not receive the second operation on the second control. Fig.11 A flowchart of an alarm setting method provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, the following steps may be included:
[0183] S1101: When the perception module obtains the second trip information and the state of the second trip information is the first state, the perception module sends the second trip information to the calculation engine.
[0184] S1102: When the second itinerary information and the first itinerary information satisfy the first condition, the computing engine sends information to the smart assistant for instructing to delete the first card.
[0185] In an embodiment of the present application, the second trip information may include the second trip starting position, the second trip starting date, the second trip starting time and the second trip identifier, the first trip information may include the first trip starting position, the first trip starting time, the first trip identifier and the first trip starting date, and the second trip information and the first trip information meet the first condition, including: the second trip starting time is the same as the first trip starting time, the second trip identifier is the same as the first trip identifier, the first trip starting position is the same as the second trip starting position, and the second trip starting date is the same as the first trip starting date.
[0186] S1103: The smart assistant deletes the first card.
[0187] In the embodiment of the present application, the contents of S1101-S1003 can be referred to Figure 8 The content shown is suitable for the description and will not be repeated here. When the smart assistant deletes the first card, the smart assistant will delete the data and fence related to the first card.
[0188] Combination Figure 4 The content shown is exemplary. Fig.12A flowchart of an alarm setting method provided in an embodiment of the present application is shown in FIG. Fig.12 As shown, the following steps may be included:
[0189] S1201: When the calculation engine determines that the start time of the first trip is in the first time period, the calculation engine obtains a fourth time according to the start date of the first trip.
[0190] In an embodiment of the present application, when the computing engine determines that the starting time of the first trip is in the first time period, the computing engine obtains the fourth time. A possible implementation method is as follows: when the computing engine determines that the starting time of the first trip is in the first time period, the computing engine obtains the power usage of the terminal device in multiple time periods from the service platform, and the multiple time periods include the second time period. When the computing engine determines that the power usage of the second time period is less than or equal to the third threshold, the terminal device calculates the initial time of the second time period minus the time after the sixth time period is subtracted to obtain the fourth time; wherein the second time period can be understood as the user's sleep time period, or as the terminal device's sleep time period, and therefore, the power usage of this time period is small.
[0191] S1202: The terminal device registers a fourth time fence one day before the start date of the first trip with the perception module through the computing engine.
[0192] S1202: When the fourth time of the day before the start date of the first trip is reached, the perception module sends information to the calculation engine indicating that the fourth time fence of the day before the start date of the first trip has been triggered.
[0193] Exemplarily, the first time period is from 6:00 to 11:00, the starting date of the first trip is the 10th, the starting time of the first trip is 7:00, the starting time of the first trip is within the first time period, and the second time period is from 23:00 to 7:00, then the initial time of the second time period is 23:00, when the sixth time period is 2 hours, then the fourth time is 21:00, and the fourth time the day before the starting date of the first trip is 21:00 on the 9th.
[0194] Combination Figure 4 In the embodiment shown, it can be understood that the perception module sends information to the computing engine indicating that the fourth time fence one day before the start date of the first trip has been triggered. After the computing engine receives the message, the computing engine can execute S406 and S407; Fig.12 The content shown in Figure 4 The computing engine draws the first card, and the computing engine can set the display state of the first card to a to-be-popped-up state. When the computing engine receives information from the perception module indicating that the fourth time fence one day before the start date of the first trip has been triggered, the computing engine sends information to the smart assistant to instruct the display of the first card, so that the display state of the first card is updated from the to-be-popped-up state to the popped-up state.
[0195] Combination Fig.12 The content shown and Figure 5 The content shown, when the terminal device does not receive an operation to confirm the alarm setting corresponding to the first time on the first interface, or it is understood that when the terminal device does not receive a second operation on the second control, exemplarily, Fig.13 A flowchart of an alarm setting method provided in an embodiment of the present application is shown in FIG. Fig.13 As shown, the following steps may be included:
[0196] S1301: The computing engine registers an initial time fence of a second time period one day before the start date of the first trip with the perception module.
[0197] S1302: When the initial time of the second time period one day before the start date of the first trip is reached, the perception module sends information to the calculation engine indicating that the initial time fence of the second time period one day before the start date of the first trip has been triggered.
[0198] S1303: The computing engine sends information to the smart assistant to instruct the first card to be deleted.
[0199] S1304: The smart assistant deletes the first card.
[0200] It is understandable that when the smart assistant deletes the first card, the smart assistant can clear the data and fence related to the initial time fence of the second time period one day before the start date of the first trip.
[0201] It is understandable that, combined with Fig.12 and Fig.13 The description content is that before the fourth time of the day before the start date of the first trip, if the perception module receives the second trip information, the computing engine determines that the first trip information and the second trip information meet the first condition. In this way, even if the fourth time of the day before the start date of the first trip is reached, the computing engine does not instruct the smart assistant to call the display screen to display the first card.
[0202] In order to implement the methods described in some of the above embodiments, illustratively, Fig.14 A schematic diagram of an interface provided in an embodiment of the present application, such as Fig.14 As shown, Fig.14The described interfaces (interface, IF) include an alarm list query interface, an alarm setting interface interface, an operation management interface, a card pop-up and disappearance interface, a fence trigger interface, an alarm directional broadcast interface, a future path planning interface, a perception database query interface, and an application lifecycle fence registration and deregistration interface; among them, the alarm list query interface can be called IF1, the alarm setting interface interface includes an alarm setting addition interface interface IF2 and an alarm setting editing interface interface IF3, the operation management interface can be called IF4, the card pop-up and disappearance interface can be called IF5, the fence trigger interface can be called IF6, the alarm directional broadcast interface can be called IF7, the future path planning interface can be called IF8, the perception database query interface can be called IF9, and the application lifecycle fence registration and deregistration interface can be called IF10.
[0203] Combination Fig.14 Table 1 shows the interface names and descriptions related to the interfaces. The contents of Table 1 are as follows:
[0204] Table 1
[0205]
[0206] Among them, IF1 is the interface provided by the system application alarm clock. The computing engine can obtain the alarm list from the alarm clock through IF1 to achieve end-to-end docking; when the smart assistant calls the display screen to display the first card, the first card includes the first control. Therefore, when the terminal device receives the user's trigger on the first control, the terminal device can call IF2 through the smart assistant to pull up the alarm adding interface, so that the smart assistant can display the first interface. The first interface can also be called the alarm setting interface, or the alarm adding interface, or the new alarm interface; when the smart assistant calls the display screen to display the second card, when the terminal device receives the user's trigger on the second card, the terminal device can call IF3 through the smart assistant to pull up the alarm editing interface, so that the smart assistant can display the second interface. The second interface can be called the alarm editing interface.
[0207] Among them, IF4 is the operation management interface provided for the data closed loop. If the user modifies the recommended alarm time in the new alarm interface, the smart assistant can record the user's modified alarm time through operation management, and provide data for subsequent optimization of the user's recommended alarm time.
[0208] Among them, IF5 is used by the computing engine to send a pop-up or disappear card instruction to the smart assistant, so that the smart assistant calls the display screen to display the card, or the smart assistant deletes the card, or it can be understood that IF5 is used by the computing engine to send information to the smart assistant to instruct the deletion of the card or the display of the card. Among them, when the computing engine sends information to the smart assistant to instruct the display of the card, the computing engine can also pass parameters such as the alarm suggested time and the alarm name to the smart assistant through this interface; IF6 is used by the perception module to send information to the computing engine to indicate that the fence has been triggered, for example, information that the time fence has been triggered, etc.
[0209] Among them, when the user adds the alarm corresponding to the suggested alarm time to the alarm list, the alarm can send a directed broadcast to the computing engine through IF7 to indicate that the user has added the alarm corresponding to the suggested alarm time; or, when the user deletes the alarm corresponding to the suggested alarm time in the alarm list, the alarm can send a directed broadcast to the computing engine through IF7 to indicate that the alarm corresponding to the suggested alarm time in the deleted alarm.
[0210] Among them, the computing engine can obtain the second duration from the perception module through IF8; the computing engine can query the perception data from the perception module through IF9, for example, the perception data is the duration required to get from a preset position to the starting position of the trip; IF10 is used for the computing engine to register and unregister the application life cycle with the perception module. For example, when the computing engine registers an alarm exit fence with the perception module, the computing engine can register the alarm life cycle fence with the perception module through IF10, thereby instructing the perception module to monitor the alarm.
[0211] The alarm setting method of the embodiment of the present application has been described above, and the device for executing the above alarm setting method provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the alarm setting device provided by the embodiment of the present application can execute the steps in the above alarm setting method.
[0212] For example, Fig.15 A schematic diagram of the structure of an alarm setting device provided in an embodiment of the present application is shown in FIG. Fig.15 As shown, the device 1500 can be a terminal device, or a chip or chip system applied to a terminal device; the device 1500 includes: a processing unit 1501, and the processing unit 1501 is used to support the alarm setting device to perform information processing steps.
[0213] Exemplarily, the processing unit is used to display a first card when the terminal device receives first travel information, wherein the first card includes the first travel information and alarm setting information, and the alarm setting information includes a first control and a first time, and the first time is the recommended alarm time; the processing unit is also used to receive a first operation on the first control; the processing unit is also used to display a first interface in response to the first operation, wherein the first interface is an alarm setting interface with the first time selected; the processing unit is also used to set the alarm corresponding to the first time when an operation to confirm the alarm setting corresponding to the first time is received on the first interface.
[0214] In a possible implementation, the first trip information includes a first trip start time and a first trip start position, and the processing unit is specifically configured to: when the terminal device receives the first trip information, calculate the difference between the first trip start time and the first duration to obtain the first time, wherein the first duration is the sum of the second duration, the third duration and the fourth duration, the second duration is the duration required to travel from the preset position to the first trip start position, the third duration is the duration required to stay at the preset position, and the fourth duration is the duration required to stay at the first trip start position; obtain an alarm list, wherein the alarm list includes multiple times; when the terminal device determines that each of the multiple times is later than the first time, display a first card; or when the terminal device determines that one of the multiple times is earlier than the first time, and the difference between one of the multiple times and the first time is greater than a first threshold, display the first card; or when the terminal device determines that one of the multiple times is earlier than the first time, the difference between one of the multiple times and the first time is less than or equal to the first threshold, and the alarm state of one of the multiple times is off, display the first card.
[0215] In one possible implementation, the processing unit is specifically used to: integrate a map application software development kit SDK; obtain a second duration from the map application SDK; calculate the sum of the second duration, the third duration, and the fourth duration to obtain a first duration; calculate the difference between the start time of the first trip and the first duration to obtain the first time.
[0216] In one possible implementation, the alarm list includes a second time, and a processing unit is specifically used to: when the terminal device determines that the second time is the alarm time to wake up, and the alarm date corresponding to the second time is within a first date period, obtain multiple fifth time periods from a service platform, wherein the service platform is used to serve the terminal device, and any one of the multiple fifth time periods is the historical length of time that the terminal device stays at a preset location after the second time, and the first date period includes multiple working days; cluster the multiple fifth time periods to obtain multiple first curves; fit the multiple first curves into a second curve; when the area ratio of one of the multiple first curves to the second curve is the maximum, determine the time period corresponding to one of the multiple first curves as the third time period; calculate the sum of the second time period, the third time period and the fourth time period to obtain the first time period.
[0217] In one possible implementation, the processing unit is specifically used to: obtain from the service platform multiple historical stay durations of the terminal device at the first trip starting position; calculate the average duration of the multiple historical stay durations at the first trip starting position to obtain a fourth duration; calculate the sum of the second duration, the third duration and the fourth duration to obtain the first duration.
[0218] In a possible implementation, the first interface includes a second control, and the processing unit is specifically configured to: when a second operation on the second control is received, set an alarm corresponding to the first time.
[0219] In one possible implementation, the processing unit is further used to: receive second trip information without receiving a second operation on the second control; when the terminal device determines that the state of the second trip information is the first state, and the second trip information and the first trip information meet the first condition, delete the first card, wherein the first state is used to indicate the trip status, and the first state includes the trip status being a refund or the trip status being a cancellation.
[0220] In one possible implementation, the second trip information includes the second trip starting position, the second trip starting date, the second trip starting time and the second trip identifier, the first trip information includes the first trip starting position, the first trip starting time, the first trip identifier and the first trip starting date, and the second trip information and the first trip information meet the first condition, including: the second trip starting time is the same as the first trip starting time, the second trip identifier is the same as the first trip identifier, the second trip starting position is the same as the first trip starting position, and the second trip starting date is the same as the first trip starting date.
[0221] In one possible implementation, the processing unit is further used to: receive second trip information without receiving a second operation on the second control, wherein the second trip information includes a start time of the second trip; when the terminal device determines that the state of the second trip information is the second state, and the second trip information and the first trip information meet the second condition, obtain a third time according to the start time of the second trip, wherein the third time is the alarm suggested time, and the second state is used to indicate the trip state, and the second state includes the trip state being a change of ticket; and update the first time in the first card to the third time.
[0222] In a possible implementation, the second trip information also includes a second trip starting position, a second trip starting date, and a second trip identifier, the first trip information includes a first trip starting position, a first trip starting time, a first trip identifier, and a first trip starting date, and the second trip information and the first trip information satisfy a second condition, including: the first trip starting date is the same as the second trip starting date, the first trip identifier is the same as the second trip identifier, the first trip starting position is the same as the second trip starting position, and the absolute value of the difference between the second trip starting time and the first trip starting time is less than or equal to a second threshold.
[0223] In one possible implementation, the first trip information includes the first trip start time and the first trip start date, and the processing unit is further used to: when the first trip start time is in the first time period, obtain the power usage of the terminal device in multiple time periods from the service platform, wherein the service platform is used to serve the terminal device, and the multiple time periods include the second time period; when the terminal device determines that the power usage of the second time period is less than or equal to the third threshold, calculate the time after subtracting the sixth time period from the initial time of the second time period to obtain the fourth time; when the time equals the fourth time one day before the start date of the first trip, display the first card.
[0224] In one possible implementation, the processing unit is also used to: delete the first card when the terminal device determines that the initial time of the second time period on the day before the start date of the first trip has been reached, and the terminal device has not received an operation to confirm the alarm setting corresponding to the first time on the first interface.
[0225] In one possible implementation, the processing unit is further used to: receive third trip information; when the state of the third trip information is the first state, and the third trip information and the first trip information meet the first condition, display a second card, wherein the second card is used to suggest deleting the alarm setting corresponding to the first time, and the first state is used to indicate the trip status, and the first state includes the trip status being a refund or a cancellation; receive a third operation on the second card; in response to the third operation, display a second interface, wherein the second interface includes a third control; receive a fourth operation on the third control; and in response to the fourth operation, delete the alarm corresponding to the first time.
[0226] In one possible implementation, the first trip information includes the first trip starting position, the first trip starting time, the first trip identifier and the first trip starting date, the third trip information includes the third trip starting position, the third trip starting date, the third trip starting time and the third trip identifier, and the third trip information and the first trip information meet the first condition, including: the first trip starting time is the same as the third trip starting time, the third trip identifier is the same as the first trip identifier, the first trip starting position is the same as the third trip starting position, and the third trip starting date is the same as the first trip starting date.
[0227] In a possible embodiment, the alarm setting device may further include: a storage unit 1502. The processing unit 1501 and the storage unit 1502 are connected via a communication bus.
[0228] The storage unit 1502 may include one or more memories, and the memory may be a device in one or more devices or circuits for storing programs or data.
[0229] The storage unit 1502 can exist independently and be connected to the processing unit 1501 of the alarm setting device through a communication bus; the storage unit 1502 connection device can be used in an alarm setting connection device, circuit, hardware component or chip.
[0230] For example, Fig.16 A schematic diagram of the structure of a chip provided in an embodiment of the present application: The chip 1600 includes one or more (including two) processors 1610 and a communication interface 1630 .
[0231] In some embodiments, the memory 1640 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
[0232] In the embodiment of the present application, the memory 1640 may include a read-only memory and a random access memory, and provide instructions and data to the processor 1610. A portion of the memory 1640 may also include a non-volatile random access memory (NVRAM).
[0233] In the embodiment of the present application, the memory 1640, the communication interface 1630 and the memory 1640 are coupled together through the bus system 1620. The bus system 1620 may include a power bus, a control bus and a status signal bus in addition to a data bus. Fig.16 Various buses are labeled as bus system 1620.
[0234] The method described in the above embodiment of the present application can be applied to the processor 1610, or implemented by the processor 1610. The processor 1610 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the processor 1610. The above processor 1610 can be a general processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 1610 can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present invention.
[0235] The steps of the method in combination with the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 1640, and the processor 1610 reads the information in the memory 1640 and completes the steps of the above method in combination with its hardware.
[0236] In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.
[0237] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium may include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0238] The embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.
[0239] As a possible design, the computer readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection line may also be appropriately referred to as a computer readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically using lasers.
[0240] The above combinations should also be included in the scope of computer-readable media. The above description is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for setting an alarm clock, characterized in that: Applied to a terminal device, the method comprises: When the terminal device receives the first trip information, the terminal device displays a first card, wherein the first card includes the first trip information and alarm setting information, the alarm setting information includes a first control and a first time, and the first time is a recommended alarm time; receiving a first operation on the first control; In response to the first operation, the terminal device displays a first interface, wherein the first interface is an alarm setting interface in which the first time has been selected; the first interface includes a second control; When receiving a second operation on the second control, the terminal device sets an alarm corresponding to the first time; When the second operation on the second control is not received, the terminal device receives second trip information, where the second trip information includes a second trip start time; When the terminal device determines that the state of the second itinerary information is a first state, and the second itinerary information and the first itinerary information meet a first condition, the terminal device deletes the first card, wherein the first state is used to indicate the itinerary state, and the first state includes that the itinerary state is a refund or the itinerary state is a cancellation; When the terminal device determines that the state of the second trip information is the second state, and the second trip information and the first trip information meet the second condition, the terminal device obtains a third time according to the second trip start time, wherein the third time is the alarm clock suggested time, and the second state is used to indicate the trip state, and the second state includes that the trip state is changed; The terminal device updates the first time in the first card to the third time.
2. The method according to claim 1, characterized in that The first trip information includes a first trip start time and a first trip start position, and when the terminal device receives the first trip information, the terminal device displays a first card, including: When the terminal device receives the first trip information, the terminal device calculates the difference between the first trip start time and the first duration to obtain the first time, wherein the first duration is the sum of the second duration, the third duration and the fourth duration, the second duration is the duration required to travel from a preset position to the first trip start position, the third duration is the duration required to stay at the preset position, and the fourth duration is the duration required to stay at the first trip start position; The terminal device obtains an alarm list, wherein the alarm list includes multiple times; When the terminal device determines that each of the multiple times is later than the first time, the terminal device displays the first card; Alternatively, when the terminal device determines that one of the multiple times is earlier than the first time, and the difference between one of the multiple times and the first time is greater than a first threshold, the terminal device displays the first card; Alternatively, when the terminal device determines that one of the multiple times is earlier than the first time, the difference between one of the multiple times and the first time is less than or equal to the first threshold, and the alarm status of one of the multiple times is off, the terminal device displays the first card.
3. The method according to claim 2, characterized in that The terminal device calculates the difference between the first trip start time and the first duration to obtain the first time, including: The terminal device integrates a map application software development kit SDK; The terminal device obtains the second duration from the map application software development kit SDK; The terminal device calculates the sum of the second duration, the third duration and the fourth duration to obtain the first duration; The terminal device calculates the difference between the first trip start time and the first duration to obtain the first time.
4. The method according to claim 3, characterized in that The alarm list includes a second time, and the terminal device calculates the sum of the second duration, the third duration, and the fourth duration to obtain the first duration, including: When the terminal device determines that the second time is the wake-up alarm time, and the alarm date corresponding to the second time is within the first date period, the terminal device obtains a plurality of fifth time periods from a service platform, wherein the service platform is used to serve the terminal device, and any one of the plurality of fifth time periods is the historical length of time that the terminal device stays at the preset location after the second time, and the first date period includes a plurality of working days; The terminal device clusters the plurality of fifth time durations to obtain a plurality of first curves; The terminal device fits the plurality of first curves into a second curve; When the area ratio of one of the plurality of first curves to the second curve is a maximum, the terminal device determines a duration corresponding to one of the plurality of first curves as the third duration; The terminal device calculates the sum of the second duration, the third duration and the fourth duration to obtain the first duration.
5. The method according to claim 4, characterized in that The terminal device calculates the sum of the second duration, the third duration, and the fourth duration to obtain the first duration, including: The terminal device obtains, from the service platform, a plurality of durations of the terminal device's historical stay at the first trip starting location; The terminal device calculates an average duration of multiple historical stays at the first trip starting position to obtain the fourth duration; The terminal device calculates the sum of the second duration, the third duration and the fourth duration to obtain the first duration.
6. The method according to claim 1, characterized in that The second trip information further includes a second trip starting position, a second trip starting date, and a second trip identifier, the first trip information includes a first trip starting position, a first trip starting time, a first trip identifier, and a first trip starting date, and the second trip information and the first trip information meet a first condition, including: The second trip start time is the same as the first trip start time, the second trip identifier is the same as the first trip identifier, the second trip start position is the same as the first trip start position, and the second trip start date is the same as the first trip start date.
7. The method according to claim 1, characterized in that The second trip information further includes a second trip starting position, a second trip starting date, and a second trip identifier, the first trip information includes a first trip starting position, a first trip starting time, a first trip identifier, and a first trip starting date, and the second trip information and the first trip information satisfy a second condition, including: The first trip start date is the same as the second trip start date, the first trip identifier is the same as the second trip identifier, the first trip start position is the same as the second trip start position, and the absolute value of the difference between the second trip start time and the first trip start time is less than or equal to a second threshold.
8. The method according to claim 1, characterized in that The first trip information includes a first trip start time and a first trip start date, and when the terminal device receives the first trip information, the terminal device displays a first card, including: When the first trip start time is in a first time period, the terminal device obtains the power usage of the terminal device in multiple time periods from a service platform, wherein the service platform is used to serve the terminal device, and the multiple time periods include a second time period; When the terminal device determines that the power usage in the second time period is less than or equal to the third threshold, the terminal device calculates the time after subtracting the sixth time period from the initial time of the second time period to obtain a fourth time; When a time equal to the fourth time is reached one day before the start date of the first trip, the terminal device displays the first card.
9. The method according to claim 8, characterized in that Also includes: When the terminal device determines that the initial time of the second time period one day before the start date of the first trip has been reached, and the terminal device has not received an operation to confirm the alarm setting corresponding to the first time on the first interface, the terminal device deletes the first card.
10. The method according to claim 1, characterized in that After the terminal device sets the alarm corresponding to the first time, the method further includes: The terminal device receives the third trip information; When the state of the third trip information is the first state, and the third trip information and the first trip information meet the first condition, the terminal device displays a second card, wherein the second card is used to suggest deleting the alarm setting corresponding to the first time, and the first state is used to indicate the trip state, and the first state includes that the trip state is a refund or the trip state is a cancellation; receiving a third operation on the second card; In response to the third operation, the terminal device displays a second interface, wherein the second interface includes a third control; receiving a fourth operation on the third control; In response to the fourth operation, the terminal device deletes the alarm corresponding to the first time.
11. The method according to claim 10, characterized in that The first trip information includes a first trip starting position, a first trip starting time, a first trip identifier, and a first trip starting date; the third trip information includes a third trip starting position, a third trip starting date, a third trip starting time, and a third trip identifier; and the third trip information and the first trip information meet a first condition, including: The first trip start time is the same as the third trip start time, the third trip identifier is the same as the first trip identifier, the first trip start position is the same as the third trip start position, and the third trip start date is the same as the first trip start date.
12. An alarm setting device, characterized in that: The invention comprises a processor and a memory, wherein the memory is used to store code instructions, wherein the processor is used to run the code instructions to execute the method according to any one of claims 1 to 11.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed, enable a computer to perform the method according to any one of claims 1 to 11.
14. A computer program product, characterized in that The invention comprises a computer program, which, when being executed, causes a computer to execute the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Reminding method and device for time-class information
CN104008476A
Method and device for generating theme alarm clock, storage medium and mobile phone
CN108696636A
Alarm clock setting method and device and intelligent terminal
CN112468651A
KR20190025255A