Methods and devices for determining ordering time, storage media and electronic devices

By establishing a wireless connection with home appliances to obtain log data, the system can predict users' idle time and determine the ordering time, thus solving the problem of wasted time caused by users waiting for food delivery and enabling users to order and enjoy hot meals instantly during their idle time.

CN116091265BActive Publication Date: 2026-05-26QINGDAO HAIER TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
QINGDAO HAIER TECH
Filing Date
2021-11-03
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Users need to set aside time to wait for their food delivery, which leads to wasted time.

Method used

By establishing a wireless communication connection with home appliances, log data is obtained, the idle time set of the target object is predicted, and the ordering time period is determined based on the idle time period and the average food delivery time. The ordering instruction is then sent to the mobile terminal.

Benefits of technology

Users can enjoy hot meals immediately during their free time without waiting, saving time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116091265B_ABST
    Figure CN116091265B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, storage medium, and electronic device for determining ordering time. The method includes: establishing a wireless communication connection with a home appliance and acquiring log data sent by the home appliance based on the wireless communication connection; predicting a first set of idle times for a target user based on the log data, and determining a target idle time period that meets preset conditions from the first set of idle times, wherein the first set of idle times includes multiple time periods; determining the target user's ordering time period based on the target idle time period and the average food delivery time, and sending the ordering time period to the target user's mobile terminal so that the mobile terminal can execute preset ordering instructions within the ordering time period, or instruct the target user to order food on an ordering application within the ordering time period. This technical solution solves the problem of users needing to set aside time to wait for food delivery, resulting in wasted time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communications, and more specifically, to a method and apparatus for determining ordering time, a storage medium, and an electronic device. Background Technology

[0002] With the rapid development of society, people are generally busy and don't want to cook at home or are unable to cook at home, but also don't want to eat out. The emergence of food delivery services has greatly solved this problem, and people are increasingly inclined to eat by ordering takeout.

[0003] Although people can order food online, they often need to set aside time to wait for the food to arrive, in case they don't have time to pick it up when it arrives, resulting in the food being delivered late or being served cold.

[0004] There is currently no effective solution to the problem of users having to set aside time to wait for food delivery, resulting in wasted time, regarding the relevant technologies.

[0005] Therefore, it is necessary to improve the relevant technology to overcome the aforementioned defects. Summary of the Invention

[0006] This invention provides a method and apparatus for determining ordering time, a storage medium, and an electronic device to at least solve the problem of users needing to set aside time to wait for food delivery, resulting in wasted time.

[0007] According to one aspect of the present invention, a method for determining ordering time is provided, comprising: establishing a wireless communication connection with a home appliance and acquiring log data sent by the home appliance based on the wireless communication connection; predicting a first set of idle time for a target object based on the log data, and determining a target idle time period that meets preset conditions from the first set of idle time, wherein the first set of idle time includes multiple time periods; determining the ordering time period for the target object based on the target idle time period and the average food delivery time, and sending the ordering time period to the mobile terminal of the target object, so that the mobile terminal can execute a preset ordering instruction during the ordering time period, or instruct the target object to order food on an ordering application during the ordering time period.

[0008] Further, predicting the first idle time set of the target object based on the log data includes: determining the operating data of the home appliance in multiple unit cycles based on the log data; determining the second idle time set of the target object in each unit cycle based on the operating data, thereby obtaining multiple second idle time sets; and predicting the first idle time set based on the multiple second idle time sets.

[0009] Further, determining the second set of idle time for the target object within each unit cycle based on the operational data includes: determining the usage time of the target object's door lock within each unit cycle based on the operational data within each unit cycle, thereby determining the target object's time at home within each unit cycle; determining the set of operating time for the target device used by the target object within each unit cycle based on the operational data within each unit cycle, wherein the home appliance includes: the door lock and the target device; and determining the second set of idle time for the target object within each unit cycle based on the target object's time at home within each unit cycle and the set of operating time for the target device within each unit cycle.

[0010] Further, predicting the first idle time set based on the plurality of second idle time sets includes: predicting a third idle time set based on the plurality of second idle time sets, wherein the third idle time set has a common duration with each of the plurality of second idle time sets, and the sum of the multiple common durations of the third idle time set and the plurality of second idle time sets is the longest among all idle time sets; and determining the third idle time set as the first idle time set.

[0011] Further, determining a target idle time period that meets preset conditions from the first set of idle times includes: determining a preset time period and a preset duration set by the target object; determining a target idle time period from multiple time periods in the first set of idle times, wherein the target idle time period is within the preset time period, and the duration of the target idle time period is greater than the preset duration.

[0012] Furthermore, before determining the ordering time period based on the target idle time period and the average food delivery time, the method further includes: acquiring the ordering data of the target object on the ordering application; and determining the average food delivery time based on the ordering data.

[0013] Further, determining the ordering time period based on the target idle time period and the average food delivery time includes: obtaining the time difference between all times in the target idle time period and the average food delivery time; and using the time difference as the ordering time period.

[0014] According to another aspect of the present invention, a device for determining ordering time is also provided, comprising: an acquisition module, configured to establish a wireless communication connection with a home appliance and acquire log data sent by the home appliance based on the wireless communication connection; a determination module, configured to predict a first set of idle time for a target object based on the log data, and determine a target idle time period that meets preset conditions from the first set of idle time, wherein the first set of idle time includes multiple time periods; and a sending module, configured to determine the ordering time period of the target object based on the target idle time period and the average food delivery time, and send the ordering time period to the mobile terminal of the target object, so that the mobile terminal can execute a preset ordering instruction during the ordering time period, or instruct the target object to order food on an ordering application during the ordering time period.

[0015] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, wherein the computer program is configured to execute the above-described method for determining the ordering time when it is run.

[0016] According to another aspect of the present invention, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the ordering time through the computer program.

[0017] This invention uses log data from home appliances to predict the target user's idle time periods. Based on these idle time periods and average food delivery times, it determines the target user's ordering time period and sends this time period to the target user's mobile terminal. The mobile terminal then executes preset ordering instructions or instructs the target user to order food using an ordering application within the specified time period. This solution addresses the problem of users wasting time waiting for food delivery. By predicting the user's idle time periods and determining the ordering time based on these periods and average delivery times, users can enjoy hot meals immediately during their free time without waiting, saving time. Attached Figure Description

[0018] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with the description thereof, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0019] Figure 1 This is a hardware structure block diagram of a computer terminal for determining the ordering time according to an embodiment of the present invention.

[0020] Figure 2This is a flowchart (a) of a method for determining the ordering time according to an embodiment of the present invention;

[0021] Figure 3 This is a framework diagram of a method for determining the ordering time according to an embodiment of the present invention;

[0022] Figure 4 This is a flowchart (II) of a method for determining the ordering time according to an embodiment of the present invention;

[0023] Figure 5 This is a structural block diagram of a device for determining the ordering time according to an embodiment of the present invention. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0026] The methods and embodiments provided in this application can be executed on a computer terminal or similar computing device. Taking running on a computer terminal as an example, Figure 1 This is a hardware structure block diagram of a computer terminal for the method of determining the ordering time according to an embodiment of the present invention. For example... Figure 1 As shown, a computer terminal may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor unit (MPU) or a programmable logic device (PLD)) and a memory 104 for storing data are also shown. In one exemplary embodiment, the computer terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer terminal described above. For example, the computer terminal may also include components that are more complex than those described above. Figure 1 The more or fewer components shown, or having the same Figure 1 Equivalent functions or ratios shown Figure 1 The functions shown have more different configurations.

[0027] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the method for determining the ordering time in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0028] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the computer terminal. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0029] To address the aforementioned problems, this embodiment provides a method for determining the ordering time. Figure 2 This is a flowchart (I) of a method for determining the ordering time according to an embodiment of the present invention, which includes the following steps:

[0030] Step S202: Establish a wireless communication connection with the home appliance and obtain the log data sent by the home appliance based on the wireless communication connection. It should be noted that the home appliance includes multiple devices, and these multiple devices are located within the same network range; that is, it is necessary to establish wireless communication connections with multiple devices.

[0031] It should be noted that, in an exemplary embodiment, the executing entity of this application is a cloud server, and the same network range can be the same local area network, i.e., a home network.

[0032] Step S204: Predict a first set of idle time for the target object based on the log data, and determine a target idle time period that meets preset conditions from the first set of idle time, wherein the first set of idle time includes multiple time periods;

[0033] In an exemplary embodiment, the first set of free time is [18:00-19:00, 20:00-21:00], and the target free time period is determined to be 18:00-19:00.

[0034] Step S206: Determine the target object's ordering time period based on the target idle time period and the average food delivery time, and send the ordering time period to the target object's mobile terminal so that the mobile terminal can execute a preset ordering instruction during the ordering time period, or instruct the target object to order food on the ordering application during the ordering time period.

[0035] It should be noted that mobile terminals include mobile phones, tablets, smart wearable devices, etc.

[0036] By employing the above steps, log data sent by home appliances is obtained to predict the target user's idle time period. Then, based on the idle time period and average food delivery time, the target user's ordering time period is determined, and this time period is sent to the target user's mobile terminal. The mobile terminal can then execute preset ordering instructions within the specified time period, or instruct the target user to order food through the ordering application during that time period. This technical solution addresses the problem of users needing to set aside time to wait for food delivery, resulting in wasted time. Furthermore, by predicting the user's idle time period and determining the ordering time based on this period and average delivery time, users can immediately enjoy hot meals during their free time without waiting, saving time.

[0037] Optionally, predicting the first idle time period of the target object based on log data can be achieved by: determining the operating data of the home appliance in multiple unit cycles based on the log data; determining the second idle time set of the target object in each unit cycle based on the operating data, thereby obtaining multiple second idle time sets; and predicting the first idle time set based on the multiple second idle time sets.

[0038] It's important to note that since home appliances upload all log data to the server, and user (i.e., target) habits often change, only analyzing log data from the most recent period can effectively determine user behavior. Therefore, the server needs to determine the home appliance's operating data over several recent timeframes based on the log data. In an exemplary embodiment, the timeframe can be one day; for example, the server determines the home appliance's operating data for the most recent week based on the log data. Then, the server determines the user's second set of idle time each day based on the home appliance's daily operating data. In other words, the server can analyze the home appliance's operating data from the most recent week to obtain seven sets of second idle time for the user within that week, and then predict the user's first set of idle time based on these seven sets of second idle time.

[0039] In an exemplary embodiment, the second set of free time yesterday is [18:00-19:00, 20:00-21:00, 21:30-22:00], and the second set of free time the day before yesterday is [18:10-19:00, 20:00-21:20, 21:30-22:00].

[0040] In an optional embodiment, the determination of the second set of idle time for the target object in each unit cycle based on the operating data can be achieved by: determining the usage time of the target object's door lock in each unit cycle based on the operating data in each unit cycle, thereby determining the target object's time at home in each unit cycle; determining the set of operating time for the target device used by the target object in each unit cycle based on the operating data in each unit cycle, wherein the home appliance includes: the door lock, the target device; and determining the second set of idle time for the target object in each unit cycle based on the target object's time at home in each unit cycle and the set of operating time for the target device in each unit cycle.

[0041] It should be noted that the target devices include, but are not limited to, washing machines, water heaters, toilets, hair dryers, and treadmills. The server can determine the usage of each appliance based on log data uploaded by these devices. For example, the server can determine the daily operating data of a door lock based on its log data, and thus determine the daily usage time. This allows the server to determine the user's arrival and departure times each day, and further determine the user's time at home each day. The server can also determine the daily usage time based on the target device's daily operating data; for example, the water heater's usage time might be 20:00-20:20. The server can then combine the user's time at home and the target device's usage time to determine the user's second set of free time each day. In an exemplary embodiment, for example, the user's arrival time is 18:00, the treadmill usage time is 18:30-19:00, the toilet usage time is 19:20-19:30, and the water heater usage time is 20:00-20:20. Then the second set of free time [18:00-18:30, 19:00-19:20, 19:30-20:00] can be determined.

[0042] Furthermore, predicting the first idle time set based on the plurality of second idle time sets can be achieved in the following way: predicting the third idle time set based on the plurality of second idle time sets, wherein the third idle time set has a common duration with each of the plurality of second idle time sets, and among all idle time sets, the sum of the multiple common durations of the third idle time set and the plurality of second idle time sets is the longest; and determining the third idle time set as the first idle time set.

[0043] Assuming the server determines its idle time set based on log data from the most recent week, with a unit period of one day, the server can obtain seven second idle time sets. The server then needs to predict a third idle time set based on these seven second idle time sets. This third idle time set, compared to all other time sets, has the longest sum of its seven common durations with the seven second idle time sets. For example, if there are two second spatial time sets, [18:00-18:30, 19:30-20:00] and [18:10-18:30, 19:20-20:00], then the predicted first idle time set would be [18:10-18:30, 19:30-20:00].

[0044] Optionally, determining a target idle time period that meets preset conditions from the first set of idle times can be achieved in the following way: determining a preset time period and a preset duration set by the target object; determining a target idle time period from multiple time periods in the first set of idle times, wherein the target idle time period is within the preset time period and the duration of the target idle time period is greater than the preset duration.

[0045] For example, a user sets a preset time period of 18:00-19:00 or 20:00-21:00, with a preset duration of 30 minutes. Based on the log data of home appliances from the past week, the server predicts the user's first set of idle times as [18:00-18:35, 19:00-19:20, 20:20-20:40]. Since 18:00-18:35 falls within 18:00-19:00 and its duration of 35 minutes is greater than 30 minutes, the server can identify 18:00-18:35 as the target idle time period. Because 19:00-19:20 is not within the preset time period, it cannot be identified as a target idle time period. Similarly, 20:20-20:40 is within the preset time period, but its duration is shorter than the preset duration, so it also cannot be identified as a target idle time period.

[0046] It should be noted that the server also needs to obtain the ordering data of the target object on the ordering application; and determine the average delivery time based on the ordering data. In other words, the server needs to determine the user's ordering habits based on the ordering data on the ordering application, determine which merchants the user frequently orders from, and also determine the average delivery time based on historical food preparation times.

[0047] Furthermore, after determining the user's target free time period and average food delivery time, the server can determine the ordering time period. In an exemplary embodiment, this can be achieved by: obtaining the time difference between all times in the target free time period and the average food delivery time; and using the time difference as the ordering time period.

[0048] If the target idle time period is 18:00-18:35 and the average food delivery time is 30 minutes, then the ordering time period is [17:30-18:05]. The server then sends the ordering time period to the user's mobile terminal, so that the mobile terminal executes the preset ordering instruction within the ordering time period, or reminds the user to order food within the ordering time period.

[0049] Specifically, Figure 3 This is a framework diagram of a method for determining the ordering time according to an embodiment of the present invention, such as... Figure 3 As shown, home appliances upload log data to the server, and then the server determines the ordering time period based on the log data and sends the ordering time period to the mobile terminal.

[0050] Obviously, the embodiments described above are merely some embodiments of the present invention, and not all embodiments. To better understand the method for determining the ordering time, the following description, in conjunction with embodiments, illustrates the process, but is not intended to limit the technical solutions of the embodiments of the present invention. Specifically:

[0051] In an optional embodiment, Figure 4 This is a flowchart (II) of a method for determining the ordering time according to an embodiment of the present invention. The specific steps are as follows:

[0052] S1: Beginning;

[0053] S2: The server determines the user's idle start time t1 and idle end time t2 based on the user's historical usage of smart home appliances;

[0054] S3: The food delivery system estimates the delivery time t3 based on the user's frequently ordered food merchants and delivery address;

[0055] S4: Send a reminder to order takeout and inform the user that the order is most suitable between (T1-T3) and (T2-T3);

[0056] S5: The user begins ordering food;

[0057] S6: End.

[0058] It should be noted that the embodiments of this application are based on the Internet of Things smart home operating system and are applied in smart homes. The smart home appliances in the embodiments of this application include smart toilets, smart water heaters, smart air conditioners, smart lights, smart curtains and all other smart home devices.

[0059] This application embodiment uses smart home technology to determine the user's arrival time and home habits, judges the user's best free time, and combines it with the food delivery system to determine the best time to recommend ordering food.

[0060] The smart toilets, smart water heaters, smart air conditioners, smart lights, smart curtains, and other smart devices in this application embodiment establish interconnection based on the Internet of Things (IoT). Each device can send and receive messages with each other. The specific technologies for establishing relationships between devices and sending and receiving messages can rely on existing IoT technologies. These technologies are not described in detail in this application embodiment.

[0061] It should be noted that communication between smart devices can be either point-to-point or via a smart router / server as a relay.

[0062] Furthermore, the above-mentioned technical solution of the present invention determines the user's arrival time and free time through smart home technology, and combines the estimated ordering time with the food delivery software, so that the user does not have to wait too much and the food is delivered accurately, allowing the user to eat hot meals and enjoy the warmth of home.

[0063] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.

[0064] This embodiment also provides a device for determining the ordering time, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0065] Figure 5 This is a structural block diagram of a device for determining ordering time according to an embodiment of the present invention. The device includes:

[0066] The acquisition module 52 is used to establish a wireless communication connection with the home appliance and acquire log data sent by the home appliance based on the wireless communication connection.

[0067] The determining module 54 is used to predict a first set of idle times for the target object based on the log data, and to determine a target idle time period that meets preset conditions from the first set of idle times, wherein the first set of idle times includes multiple time periods;

[0068] The sending module 56 is used to determine the ordering time period of the target object based on the target idle time period and the average food delivery time, and send the ordering time period to the mobile terminal of the target object so that the mobile terminal can execute a preset ordering instruction during the ordering time period, or instruct the target object to order food on the ordering application during the ordering time period.

[0069] The aforementioned modules acquire log data from home appliances to predict the target user's idle time periods. Based on these idle time periods and average food delivery times, the system determines the target user's ordering timeframe and sends this timeframe to the target user's mobile terminal. The mobile terminal then executes preset ordering instructions or instructs the target user to order food via the ordering application during the specified timeframe. This technical solution addresses the problem of users wasting time waiting for food delivery. By predicting the user's idle time periods and determining the ordering time based on these periods and average delivery times, users can enjoy hot meals immediately during their free time, saving time.

[0070] Optionally, the determining module 54 is further configured to determine the operating data of the home appliance in multiple unit cycles based on the log data; determine the second idle time set of the target object in each unit cycle based on the operating data, thereby obtaining multiple second idle time sets; and predict the first idle time set based on the multiple second idle time sets.

[0071] It's important to note that since home appliances upload all log data to the server, and user (i.e., target) habits often change, only analyzing log data from the most recent period can effectively determine user behavior. Therefore, the server needs to determine the home appliance's operating data over several recent timeframes based on the log data. In an exemplary embodiment, the timeframe can be one day; for example, the server determines the home appliance's operating data for the most recent week based on the log data. Then, the server determines the user's second set of idle time each day based on the home appliance's daily operating data. In other words, the server can analyze the home appliance's operating data from the most recent week to obtain seven sets of second idle time for the user within that week, and then predict the user's first set of idle time based on these seven sets of second idle time.

[0072] In an exemplary embodiment, the second set of free time yesterday is [18:00-19:00, 20:00-21:00, 21:30-22:00], and the second set of free time the day before yesterday is [18:10-19:00, 20:00-21:20, 21:30-22:00].

[0073] Optionally, the determining module 54 is further configured to determine the usage time of the door lock of the target object in each unit cycle based on the operating data in each unit cycle, so as to determine the time the target object spends at home in each unit cycle; determine the set of operating times of the target device used by the target object in each unit cycle based on the operating data in each unit cycle, wherein the home appliance includes: the door lock, the target device; and determine a second set of idle time of the target object in each unit cycle based on the time the target object spends at home in each unit cycle and the set of operating times of the target device in each unit cycle.

[0074] It should be noted that the target devices include, but are not limited to, washing machines, water heaters, toilets, hair dryers, and treadmills. The server can determine the usage of each appliance based on log data uploaded by these devices. For example, the server can determine the daily operating data of a door lock based on its log data, and then determine the daily usage time based on that data. This allows the server to determine the user's arrival and departure times each day, and further determine the user's time at home each day. The server can also determine the daily usage time based on the target device's daily operating data; for example, the water heater's usage time might be 20:00-20:20. The server can then combine the user's time at home and the target device's usage time to determine the user's second set of free time each day. In an exemplary embodiment, for example, the user's arrival time is 18:00, the treadmill usage time is 18:30-19:00, the toilet usage time is 19:20-19:30, and the water heater usage time is 20:00-20:20. Then the second set of free time [18:00-18:30, 19:00-19:20, 19:30-20:00] can be determined.

[0075] Optionally, the determining module 54 is further configured to predict a third set of idle time based on the plurality of second idle time sets, wherein the third set of idle time has a common duration with each of the plurality of second idle time sets, and the sum of the multiple common durations of the third set of idle time and the plurality of second idle time sets is the longest among all idle time sets; and determine the third set of idle time as the first set of idle time.

[0076] Optionally, the determining module 54 is further configured to determine the preset time period and preset duration set by the target object; and to determine the target idle time period from multiple time periods in the first idle time set, wherein the target idle time period is within the preset time period and the duration of the target idle time period is greater than the preset duration.

[0077] For example, a user sets a preset time period of 18:00-19:00 or 20:00-21:00, with a preset duration of 30 minutes. Based on the log data of home appliances from the past week, the server predicts the user's first set of idle times as [18:00-18:35, 19:00-19:20, 20:20-20:40]. Since 18:00-18:35 falls within 18:00-19:00 and its duration of 35 minutes is greater than 30 minutes, the server can identify 18:00-18:35 as the target idle time period. Because 19:00-19:20 is not within the preset time period, it cannot be identified as a target idle time period. Similarly, 20:20-20:40 is within the preset time period, but its duration is shorter than the preset duration, so it also cannot be identified as a target idle time period.

[0078] Optionally, the sending module 56 is further configured to acquire the ordering data of the target object on the ordering application; and determine the average delivery time based on the ordering data.

[0079] It should be noted that the server also needs to obtain the ordering data of the target object on the ordering application; and determine the average delivery time based on the ordering data. In other words, the server needs to determine the user's ordering habits based on the ordering data on the ordering application, determine which merchants the user frequently orders from, and also determine the average delivery time based on historical food preparation times.

[0080] Optionally, the sending module 56 is further configured to obtain the time difference between all times in the target idle time period and the average food delivery time; and use the time difference as the ordering time period.

[0081] If the target idle time period is 18:00-18:35 and the average food delivery time is 30 minutes, then the ordering time period is [17:30-18:05]. The server then sends the ordering time period to the user's mobile terminal, so that the mobile terminal executes the preset ordering instruction within the ordering time period, or reminds the user to order food within the ordering time period.

[0082] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.

[0083] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0084] S1, establish a wireless communication connection with the home appliance, and obtain the log data sent by the home appliance based on the wireless communication connection;

[0085] S2, predict a first set of idle time for the target object based on the log data, and determine a target idle time period that meets preset conditions from the first set of idle time, wherein the first set of idle time includes multiple time periods;

[0086] S3. Determine the target object's ordering time period based on the target idle time period and the average food delivery time, and send the ordering time period to the target object's mobile terminal so that the mobile terminal can execute a preset ordering instruction during the ordering time period, or instruct the target object to order food on the ordering application during the ordering time period.

[0087] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0088] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0089] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.

[0090] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0091] S1, establish a wireless communication connection with the home appliance, and obtain the log data sent by the home appliance based on the wireless communication connection;

[0092] S2, predict a first set of idle time for the target object based on the log data, and determine a target idle time period that meets preset conditions from the first set of idle time, wherein the first set of idle time includes multiple time periods;

[0093] S3. Determine the target object's ordering time period based on the target idle time period and the average food delivery time, and send the ordering time period to the target object's mobile terminal so that the mobile terminal can execute a preset ordering instruction during the ordering time period, or instruct the target object to order food on the ordering application during the ordering time period.

[0094] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0095] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0096] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0097] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for determining the ordering time, characterized in that, include: Establish a wireless communication connection with home appliances, and obtain log data sent by the home appliances based on the wireless communication connection; wherein, each home appliance can send and receive messages with each other; Based on the log data, a first set of idle time periods for the target object is predicted, and a target idle time period that meets preset conditions is determined from the first set of idle time periods, wherein the first set of idle time periods includes multiple time periods; The target object's ordering time period is determined based on the target idle time period and the average food delivery time, and the ordering time period is sent to the target object's mobile terminal so that the mobile terminal can execute a preset ordering instruction during the ordering time period, or instruct the target object to order food on the ordering application during the ordering time period. The prediction of the first set of idle times for the target object based on the log data includes: The operating data of the home appliance in multiple unit cycles is determined based on the log data; The usage time of the target object's door lock in each unit cycle is determined based on the operating data in each unit cycle, so as to determine the time the target object is at home in each unit cycle. The set of operating times of the target device used by the target object in each unit cycle is determined based on the operating data in each unit cycle, wherein the home appliance includes: the door lock and the target device; The second set of idle time for the target object in each unit cycle is determined based on the set of time spent at home by the target object in each unit cycle and the set of time spent running by the target device in each unit cycle. Predict the first idle time set based on multiple second idle time sets.

2. The method according to claim 1, characterized in that, Predicting the first idle time set based on multiple second idle time sets includes: A third set of idle time is predicted based on a plurality of second sets of idle time, wherein the third set of idle time has a common duration with each of the plurality of second sets of idle time, and the sum of the plurality of common durations of the third set of idle time with the plurality of second sets of idle time is the longest among all sets of idle time; The third set of free time is determined as the first set of free time.

3. The method according to claim 1, characterized in that, Determine the target free time period that meets the preset conditions from the first free time set, including: Determine the preset time period and preset duration set for the target object; A target free time period is determined from multiple time periods in the first free time set, wherein the target free time period is within the preset time period and the duration of the target free time period is greater than the preset duration.

4. The method according to claim 1, characterized in that, Before determining the ordering time period based on the target idle time period and the average food delivery time, the method further includes: Obtain the ordering data of the target object on the ordering application; The average delivery time for takeout is determined based on the order data.

5. The method according to claim 1, characterized in that, The ordering time period is determined based on the target idle time period and the average food delivery time, including: Obtain the time difference between all times in the target idle time period and the average food delivery time; The time difference is taken as the time period for ordering food.

6. A device for determining the ordering time, characterized in that, include: The acquisition module is used to establish a wireless communication connection with the home appliances and acquire log data sent by the home appliances based on the wireless communication connection; wherein, the home appliances can send and receive messages with each other; The determination module is used to predict a first set of idle times for the target object based on the log data, and to determine a target idle time period that meets preset conditions from the first set of idle times, wherein the first set of idle times includes multiple time periods; The sending module is used to determine the ordering time period of the target object based on the target idle time period and the average food delivery time, and send the ordering time period to the target object's mobile terminal so that the mobile terminal can execute a preset ordering instruction during the ordering time period, or instruct the target object to order food on the ordering application during the ordering time period. The determining module is further configured to: determine the operating data of the home appliance in multiple unit cycles based on the log data; determine the usage time of the target object's door lock in each unit cycle based on the operating data in each unit cycle, thereby determining the time the target object spends at home in each unit cycle; determine the set of operating times of the target device used by the target object in each unit cycle based on the operating data in each unit cycle, wherein the home appliance includes: the door lock and the target device; determine a second set of idle time for the target object in each unit cycle based on the time the target object spends at home in each unit cycle and the set of operating time of the target device in each unit cycle; and predict the first set of idle time based on multiple sets of second idle time.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method described in any one of claims 1 to 5.

8. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 5 through the computer program.