Control method of intelligent device, intelligent device and storage medium
Through intelligent devices, real-time regulation of smart home devices is realized based on weather and traffic information, the problem of lag in regulation of smart home devices is solved, and the intelligence and flexibility of regulation are improved.
Patent Information
- Application Number
- CN202411012751.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-15
AI Technical Summary
There is a lag in the regulation of smart home equipment and it is impossible to regulate in real time based on actual scenarios. Users need to return home before they can regulate.
The intelligent device determines the calibration time based on the weather information and traffic conditions information associated with the home location, calculates the user's arrival time, and determines the execution time of multiple control actions associated with the smart device based on the home arrival time, real-time regulation of the smart home device is realized.
It improves the intelligence and flexibility of smart home equipment regulation, avoids users' regulation of smart home equipment only after they arrive at home, and realizes accurate control based on actual scenarios.
Smart Images

Figure CN118963161A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a control method for a smart device, a smart device, and a storage medium. Background Art
[0002] In the field of smart home, users usually set the home mode through mobile devices such as mobile phones after returning home, or perform home mode actions such as turning on the air conditioner and closing the curtains after the sensor detects the door opening action. However, these processing methods require users to adjust the control after returning home, and cannot be adjusted in real time according to the actual scene, and there is a defect of operation lag.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of this application is to provide a control method for a smart device, a smart device and a storage medium, aiming to solve the technical problem of lag in the regulation of smart home devices.
[0005] To achieve the above objectives, the present application proposes a control method for a smart device, the method comprising:
[0006] Determine the calibration time based on weather information and traffic information associated with the home location;
[0007] Determine the arrival time at home according to the preset reference time and the calibration time;
[0008] The execution time of multiple control actions associated with the smart device is determined based on the arrival time, and the multiple control actions are executed based on the execution time.
[0009] In one embodiment, the step of determining the calibration time according to weather information and traffic condition information associated with the home location includes:
[0010] Determining a first calibration time corresponding to the weather information and a second calibration time corresponding to the traffic condition information;
[0011] The calibration time is set according to the first calibration time and the second calibration time.
[0012] In one embodiment, the step of determining the first calibration time corresponding to the weather information and the second calibration time corresponding to the traffic condition information includes:
[0013] Determine a first time interval associated with the weather information and a second time interval associated with the traffic condition information;
[0014] The first calibration time corresponding to the weather information is selected in the first time interval, and the second calibration time associated with the traffic condition information is selected in the second time interval.
[0015] In one embodiment, the step of determining execution times of multiple control actions associated with the smart device based on the arrival time, and executing the multiple control actions based on the execution times includes:
[0016] determining the execution time of the plurality of control actions based on the arrival time;
[0017] If the control action is a first control action, executing the first control action when the execution time corresponding to the first control action is reached;
[0018] If the control action is a second control action, determining a triggering time of the detection process according to the execution time corresponding to the second control action;
[0019] When the trigger time is reached, executing the return home detection process;
[0020] When the target device is detected, the second control action is executed.
[0021] In one embodiment, after the step of determining the triggering time of the detection process according to the execution time corresponding to the second control action, the method further includes:
[0022] When the target device is not detected within a preset time period, determining the first control action that has been executed;
[0023] Based on the first control action that has been executed, a rollback action is performed, or the arrival time is updated.
[0024] In one embodiment, the method further comprises:
[0025] When receiving a target command, a wireless device scanning action is executed;
[0026] The change information of the wireless device is determined according to the scanning result, and the target device is determined according to the change information.
[0027] In one embodiment, when the trigger time is reached, the step of executing the return home detection process includes:
[0028] When the trigger time is reached, obtaining WI-FI device access information of the local area network and / or scanning Bluetooth device information;
[0029] When there is a back-connecting device in the WI-FI device access information and / or the matching information of the received Bluetooth device, determining the current time;
[0030] After the reference time is updated based on the current time, detection information of the target device is generated.
[0031] In one embodiment, before the step of determining the arrival time according to the preset reference time and the calibration time, the method further includes:
[0032] Determine the reference time according to the received setting information; and / or
[0033] The reference time is updated or determined according to the actual returning home time within the preset time period.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes an intelligent device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the control method of the intelligent device as described above.
[0035] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the control method of the smart device as described above are implemented.
[0036] One or more technical solutions proposed in this application have at least the following technical effects:
[0037] After the user leaves home, the calibration time that affects the user's arrival time is determined based on the weather information and traffic conditions at the home location, and then the user's actual arrival time is determined based on the preset reference time and the calibration time. Then, the execution times of multiple control actions of the smart device are determined based on the actually calculated arrival time, and when the execution time associated with a certain control action is met, the control action is executed, thereby controlling and managing smart home devices based on smart devices, avoiding adjusting smart home devices after the user arrives home, and improving the intelligence of smart home device adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1This is a schematic diagram of the system architecture of the smart speaker in an embodiment of the present application;
[0041] Figure 2 A flowchart of a first embodiment of a control method for a smart device of the present application;
[0042] Figure 3 A detailed flowchart of step S30 of the first embodiment of the control method of the smart device of the present application;
[0043] Figure 4 A brief flowchart of the smart device control method provided in this application for executing home appliance pre-start and access control actions;
[0044] Figure 5 A brief flowchart of another implementation of the smart device control method provided in the present application for executing home appliance pre-start and access control actions;
[0045] Figure 6 Another flowchart diagram of step S30 in the second embodiment of the control method of the smart device of the present application;
[0046] Figure 7 A schematic diagram of detection and verification based on network access information and Bluetooth matching action provided for the control method of the smart device of the present application;
[0047] Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the control method of the intelligent device in the embodiment of the present application.
[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0050] The main solution of the embodiment of the present application is: determining the calibration time according to the weather information and traffic condition information associated with the home location;
[0051] Determine the arrival time at home according to the preset reference time and the calibration time;
[0052] The execution time of multiple control actions associated with the smart device is determined based on the arrival time, and the multiple control actions are executed based on the execution time.
[0053] In this embodiment, for the sake of convenience, the following description is made with the intelligent device as the execution subject. The intelligent device refers to a computing service device with data processing, network communication and program running functions, such as mobile terminals such as mobile phones, laptops, PDAs (Personal Digital Assistants), and vehicle-mounted terminals, as well as fixed terminals such as digital TVs, desktop computers and intelligent speakers.
[0054] In the prior art, users usually set the home mode through mobile devices such as mobile phones after returning home, or perform home mode actions such as turning on the air conditioner and closing the curtains after the sensor detects the door opening action. However, these processing methods require users to adjust the control after returning home, and cannot be adjusted in real time according to the actual scene, and there is a defect of operation lag.
[0055] The present application provides a solution, which uses a smart device to calculate the exact arrival time of a user after leaving home, and before the user arrives home, performs different intelligent operations at different time points to improve the intelligence of smart home device control.
[0056] As an optional implementation, the smart device is a smart speaker. The smart speaker has the function of querying the weather and traffic conditions of the current location / current area / current city, and can also control smart home devices such as air conditioners, rice cookers, washing machines, automatic doors, automatic curtains, and automatic lights. Specifically, the system architecture of the smart speaker is as follows: Figure 1 As shown, the main control MCU of the smart speaker can calculate the calibration time by obtaining weather conditions and traffic information. The smart speaker includes 2.4G and 5G modules for realizing WIFI function, and BT (Bluetooth) modules for realizing Bluetooth scanning and smart speaker network configuration. The 2.4G and 5G modules and the BT module transmit signals through antennas.
[0057] Furthermore, the smart speaker also includes a Zigbee module for communicating with sensors, a MiC (Microphone) / speaker module for realizing user voice interaction, a FLASH module for saving detected WI-FI devices (with tags), scanned Bluetooth devices and saving the user's historical arrival time, a temperature and humidity sensor for temperature and humidity detection, a power module that serves as a power supply socket and can be plugged into an AC-to-DC power adapter, and an infrared module for infrared scanning.
[0058] Based on this, the embodiment of the present application provides a control method for an intelligent device, wherein the intelligent device is an intelligent speaker, Figure 2 , Figure 2This is a flow chart of the first embodiment of the control method of the smart device of the present application.
[0059] In this embodiment, the control method of the smart device includes steps S10 to S30:
[0060] Step S10, determining a calibration time according to weather information and traffic condition information associated with the home location;
[0061] In this embodiment, the smart speaker is bound to the location information of the home. The smart speaker can determine whether the user is leaving home or returning home through the number of wireless devices connected to the smart home. For example, the smart speaker detects the mobile phone carried by the user and disconnects the connection to the home LAN. At this time, the user is considered to be away from home and the user's away information is generated. Or according to the user's operation information on the smart speaker, such as querying the weather and other actions, it is determined that the user is about to leave home, and then the wireless device disconnected from the LAN is regarded as the away device, and finally the user's away information is generated according to the away device. After the user leaves home, the smart speaker corrects the time for the user to return home based on the weather information and traffic conditions at the future moment of the home location, that is, calculates the calibration time that affects the user's arrival time. The user's arrival time can be set by the user before going out, or it can be calculated by the smart speaker based on historical time.
[0062] The time it takes for a user to get home depends on the weather and the degree of traffic congestion. For example, if the weather is good and there is no weather that affects going home, such as rain or snow, the smart speaker predicts that the user's arrival time will be earlier than the preset reference time. If the weather is bad or the road conditions are bad, such as severe congestion, the user's arrival time will be extended. Based on this, in the process of determining the calibration time, the time correction parameters of the two are added to obtain the calibration time. Specifically, step S10 may include steps S11 to S12:
[0063] Step S11, determining a first calibration time corresponding to the weather information and a second calibration time corresponding to the traffic condition information;
[0064] In this embodiment, the first calibration time can be a fixed value bound to weather information, for example, the calibration time corresponding to raining is +20 minutes, the calibration time corresponding to snowing is +30 minutes, the calibration time corresponding to sunny days is -10 minutes, etc.
[0065] The first calibration time can also be a numerical interval bound to the weather information, which is selected according to the specific weather conditions. For example, if the current weather information is rainy, the first calibration time corresponds to an interval of +10-40 minutes. If it is rainstorm, the first calibration time selected based on the rainstorm is +40 minutes. If it is moderate rain, the first calibration time is +20 minutes. The same applies to snow or hail.
[0066] Similarly, when the road condition is good and there is no construction or congestion, the predicted arrival time is advanced; when the road condition is bad, the predicted arrival time is delayed. For example, the user needs to drive home, but in the traffic condition information, the only way home is under construction. The average congestion time of this section is 20 minutes. Based on this, the second calibration time can be 20 minutes. In addition, the smart speaker can also calculate the situation where the user takes a detour when going home, such as calculating the time the user takes a detour, which is 25 minutes longer than the normal time (no construction). At this time, the second calibration time determined is 25 minutes.
[0067] Based on this, the first time interval associated with the weather information and the second time interval associated with the traffic condition information can be determined, and the first calibration time corresponding to the weather information can be selected in the first time interval, and the second calibration time associated with the traffic condition information can be selected in the second time interval.
[0068] Step S12: setting the calibration time according to the first calibration time and the second calibration time.
[0069] In this embodiment, after obtaining the first calibration time and the second calibration time, the sum of the two calibration times can be set as the calibration time. For example, if the current weather is heavy rain, the first calibration time is +40 minutes, and the road home is under construction, the corresponding second calibration time is 20 minutes. At this time, the calculated calibration time is +60 minutes, that is, 60 minutes need to be added to the user's home base time to obtain the user's actual home arrival time.
[0070] In addition, the calibration time can be calculated by weighted summation, and the weight value can be fixed or variable according to the weather reliability and road condition accuracy. For example, if the weight of weather information is 40% and the weight of traffic information is 60%, when calculating the calibration time, it is necessary to multiply the corresponding weight based on the calculation of the two to obtain the final calibration time.
[0071] The calibration time is calculated through weather information and traffic condition information so that the user's arrival time can be adjusted based on the calibration time, thereby obtaining a more accurate predicted time for the user's arrival home. The smart home can be precisely controlled based on the predicted time before the user arrives home, thereby improving the intelligence of the smart home device control.
[0072] Step S20, determining the arrival time according to the preset reference time and the calibration time;
[0073] In this embodiment, the preset reference time refers to the approximate time of returning home input by the user, or the approximate time generated by the smart speaker based on the historical time of the user returning home. After obtaining the calibration time, the reference time can be adjusted based on the calibration time to obtain a more accurate user's home arrival time.
[0074] Based on this, before step S20, the smart speaker can determine the reference time according to the received device information, and / or update or determine the reference time according to the actual home time within the preset time period. For example, after collecting the user's home time information for the previous month, and then determining the home time specific to the day of the week, and then taking the average of these historical data as the reference time, in addition, the user's setting information can also be compared with the historical data. If the time in the user's setting information is 6:15, and the average value in the historical data is 6:25, then the average of the two can be taken to update the reference time.
[0075] Exemplarily, in this embodiment, the preset reference time is 5:00 pm, and the calculated calibration time is +30 minutes, so the obtained arrival time is 5:30 pm.
[0076] Step S30, determining execution times of multiple control actions associated with the smart device based on the arrival time, and executing the multiple control actions based on the execution times.
[0077] It should be noted that the control action refers to the action that the smart speaker needs to perform. After predicting the user's arrival time, the segmented execution strategy of the smart speaker is determined based on the arrival time, and then the smart home devices are regulated based on the segmented execution strategy. Among them, the segmented execution strategy refers to executing different types of control actions at different execution times before the arrival time, and the execution time of each control action is different, and the execution time is earlier than the arrival time.
[0078] In this embodiment, after obtaining the arrival time, it is necessary to determine the multiple control actions corresponding to the segmented execution strategy of the smart speaker, and determine the execution time associated with different control actions at any time. For example, in the segmented execution strategy, the first control action is to control the pre-start of home appliances, and its corresponding execution time can be the interval from 60 minutes to 30 minutes before the arrival time, preferably the first 60 minutes. The second or last control action is an access control action such as opening the door, windows and curtains, and its corresponding execution time can be from 10 minutes to 5 minutes before the arrival time, preferably the first 5 minutes. Therefore, the execution time of multiple control actions can be determined based on the segmented execution strategy of the smart speaker. Among them, the segmented execution strategy can be pre-set by the user, or it can be set according to the user's historical usage preferences.
[0079] Exemplarily, the segmented control strategy includes executing the control action of pre-starting the home appliances 30 minutes before the time of arrival, and executing the access control action of opening doors, windows and curtains 5 minutes before the time of arrival. At this time, there are two corresponding control actions. Furthermore, the pre-start action of the home appliances can also be subdivided according to the type of home appliances. First, one type of home appliances, such as controlling the rice cooker and washing machine to enter the standby state, is turned on, and then another type of home appliances, such as starting the air conditioner. Based on this, there is no need for users to adjust the smart home devices after returning home. At the same time, the control strategies based on different smart home devices at different time points are adjusted to improve the flexibility and intelligence of the regulation of smart home devices.
[0080] It is understandable that the execution time is multiple time points before the arrival time. After the arrival time is determined, different control actions are executed according to different execution times. For example, the pre-start action of the home appliance is executed first, and then the access control actions such as opening doors and windows are executed. Therefore, in an optional implementation, please refer to Figure 3 In step S30, executing a plurality of control actions based on the execution time includes steps S31 to S32:
[0081] Step S31, when the execution time is the first time, executing the first control action based on the smart device;
[0082] Step S32: when the execution time is a second time, executing the second control action based on the smart device.
[0083] In this embodiment, the first control action is a home appliance pre-start action, and the second control action is an access control action. The home appliance pre-start action includes starting the rice cooker, washing machine, air conditioner and other actions in the smart home, and the access control action refers to executing control actions such as opening doors, turning on lights, closing curtains, etc., so that users can experience the convenience brought by smart homes after arriving home. Among them, the control type of the access control action can be set according to actual needs, such as the number of lights turned on, the doors that need to be opened, etc. After the corresponding execution time is reached, the smart speaker controls the home appliances or smart access control to perform the corresponding control action. Among them, the second time is later than the first time.
[0084] For example, please refer to Figure 4 , arrives at the first time before the arrival time T1, the first time is the execution time of the Bluetooth speaker to perform the pre-start action of the home appliances. At this time, the smart speaker executes the pre-start action of starting the rice cooker, washing machine, air conditioner and other home appliances, and then arrives at the second time before the arrival time T1. At this time, the smart speaker executes access control actions such as opening the door, turning on the light, and closing the curtains, so that after the user arrives home, the smart speaker can complete the control of the smart home devices in advance, thereby improving the intelligence of the smart home device regulation.
[0085] In another optional implementation, when executing the home appliance pre-start action, the home appliances can be subdivided according to their types, so that different home appliances can be turned on at different time points, thereby improving the flexibility of smart home device regulation and reducing resource consumption. Figure 5 At the third time before the arrival time T1, such as one hour before the arrival time, pre-start the rice cooker, washing machine and other low-energy-consuming home appliances that enter the standby state. Then, at the fourth time before the arrival time T1, such as half an hour before the arrival time, perform the pre-start action of turning on the air conditioner. There is no need to turn on the air conditioner one hour before the arrival time, thereby reducing resource consumption. Finally, at the fifth time before the arrival time T1, perform access control actions such as opening doors, opening windows, and closing curtains.
[0086] It should be noted that after the user goes out at 8 a.m., the smart speaker calculates the user's home base time as 5 p.m. At this time, after the user goes out, the weather information is heavy rain and the traffic condition is congested. At this time, the smart speaker calculates the calibration time as +1 hour based on the current weather information and traffic condition information, that is, the home arrival time is 6 a.m. However, since weather information and traffic conditions are changeable, for example, it is heavy rain from 8 a.m. to 3 p.m., and after 3 p.m., it becomes cloudy. At this time, the interference time of cloudy weather on the user's return home is much less than the previously calculated heavy rain time, and the home arrival time needs to be updated at this time. Therefore, after the user leaves home, the smart speaker loops through steps S10-S20 based on the preset time until the execution time of the first control action corresponding to the first determined arrival time is reached. For example, the first predicted arrival time is 6 p.m., and one hour before 6 p.m., that is, at 5 p.m., the smart speaker needs to pre-start some home appliances such as rice cookers and washing machines. At this time, before 5 p.m., the smart speaker can loop through the current weather information and traffic conditions based on the preset time interval, and update the preset reference time or the previous arrival time based on the calibration time obtained from the latest data.
[0087] Furthermore, the above parameters and specific adjusted smart home devices are only used for explanation and are not limitations of this application.
[0088] The present embodiment provides a control method for a smart device. After a user leaves home, the smart speaker predicts the calibration time required for the user to arrive home through current weather information, traffic conditions and other information, and calibrates a preset reference time based on the calibration time, thereby predicting the user's arrival time at home, and then determining a segmented execution strategy for the smart home device based on the arrival time. Then, at the time point corresponding to the segmented execution strategy, the smart speaker executes a home appliance pre-start action and a door access control action. There is no need to control the smart home device through sensors to detect the user's instructions to return home or the instructions input by the user after returning home. Based on this, the smart home device can be regulated according to the actual scenario, thereby improving the intelligence of the adjustment.
[0089] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, before controlling the smart speaker to perform the second control action, it is usually necessary to verify whether the user has returned home, so as to avoid the situation where the smart home device is unresponsive when the user returns home early or other smart home devices are in operation when the user returns home late, resulting in a waste of device resources. Therefore, please refer to Figure 6 , step S30 also includes steps S33 to S37:
[0090] Step S33: determining the execution time of the plurality of control actions based on the arrival time;
[0091] Step S34, if the control action is the first control action, executing the first control action when the execution time corresponding to the first control action is reached;
[0092] Step S35, if the control action is the second control action, determining the triggering time of the detection process according to the execution time corresponding to the second control action;
[0093] In this embodiment, the first control action is a home appliance pre-start action, and the second control action is a door access control action. The arrival time is a predicted time. In order to obtain a more accurate arrival time and improve the effectiveness of smart home device control, the first control action can be executed first when the execution time of the first control action, i.e., the home appliance pre-start action, is reached. Then, when the execution time corresponding to the second control action is reached, the detection process is triggered to detect whether the user has returned home early or is on the way home (for example, returning to the community). Therefore, based on the execution time corresponding to the second control action, the trigger time of the detection process is determined. For example, if the execution time of the second control action is 5 minutes before the arrival time, the trigger time for the detection can also be the first five minutes.
[0094] Step S36, when the trigger time is reached, executing the return home detection process;
[0095] In this embodiment, the return home detection process may be to detect the return connection information of the WI-FI device in the local area network or the scanning information of the Bluetooth device, etc., so as to determine whether the user has returned home through the return connection information of the WI-FI device carried by the user when leaving home.
[0096] Specifically, when the trigger time is reached, the WI-FI device access information of the local area network is obtained and / or the Bluetooth device information is scanned. Then, when there is a back-connecting device and / or the matching information of the received Bluetooth device in the WI-FI device access information, the current time is determined, and then the reference time is updated based on the current time, and the detection information of the target device is generated. Among them, the back-connection status of the away-from-home devices such as mobile phones, bracelets, watches, etc. carried by the user when leaving home and the home router is analyzed. If there is a back-connecting device in the detected WI-FI device access information of the local area network, it is considered that the user has actually arrived home, and the detection information of the target device, i.e., the away-from-home device, is generated at this time. When there is a back-connecting device in the WI-FI device access information, the reference time can also be updated according to the access time of the back-connecting device, so that the accuracy of the arrival time can be obtained after the reference time is corrected by factors such as weather conditions and traffic conditions when the user leaves home next time based on the same time.
[0097] Similarly, in addition to analyzing the access information of WI-FI devices through the local area network, the smart speaker can also perform a Bluetooth scanning action to scan Bluetooth device information, and then determine the access time of the Bluetooth device when receiving the matching information of the Bluetooth device, and after updating the reference time based on the access time, generate the detection information of the target device. It is understandable that when the information of devices with Bluetooth functions such as mobile phones, bracelets and watches worn by the user is scanned, it is considered that the user has actually arrived home, and the detection information of the target device is generated at this time. It is understandable that the method of performing access detection of WI-FI devices and scanning Bluetooth device information can be based on only one of the methods, or both methods can be processed together.
[0098] It is understandable that when the user returns home, the device carried by the user is connected back to the home router. After the smart speaker scans the device carried by the user, it can obtain the exact time when the user returns home, thereby accurately executing access control actions and improving the timeliness and flexibility of smart home regulation.
[0099] Further, after determining the trigger time of the detection process, if the target device is not detected within the preset time, it means that the back-connected device does not exist in the WI-FI device access information and / or the matching information of the Bluetooth device does not exist in the Bluetooth device information. At this time, the first control action that has been executed needs to be performed, and then the fallback action is performed after the first control action that has been executed, so as to reduce resource consumption, for example, turning off the air conditioner that has been started. In addition to performing the fallback action, the home time can also be updated, and the updating method includes jumping to the action of executing step S10.
[0100] Step S37: when the target device is detected, execute the second control action.
[0101] In this embodiment, the target device refers to the device that the user carries with him after leaving home, and whether the target device is home is determined by WI-FI device information or Bluetooth connection information. The target device is the device that the user carries with him when leaving home, or the device that the user carries with him when returning home. The operation that the user is about to perform can be determined by the control action triggered by the user in the smart speaker, and then which devices are home devices or which devices are away devices based on the operation that is about to be performed.
[0102] Specifically, when receiving the target instruction, a wireless device scanning action is performed, and then the change information of the wireless device is determined according to the scanning result, and the target device is determined according to the change information. The target instruction refers to the operation triggered by the user in the smart speaker. The wireless device scanning action is the change in the number of wireless devices such as WI-FI devices and Bluetooth devices scanned by the user. That is, based on the operations performed by the user in the smart speaker, it is identified whether the user is "away from home" or "returning home" in the future. When the user is "away from home", the reduced devices can be considered as the user taking them away, and the device is the away device. When the user is "returning home", the increased devices can be considered as the user bringing them back, and the device is the returning home device. The returning home device and the away device are target devices.
[0103] For example, if the user queries the current traffic conditions and weather through the smart speaker, it is considered that the user will "leave home" next, and the devices detected next are the devices that the user brought away from home. If the user controls the smart speaker to turn off the bedroom light at 10 pm (before the user returns home, the second control action performed by the smart speaker includes turning on the bedroom light), it is considered that the user will "return home" next, and the newly added devices detected next are the devices that the user brought home.
[0104] In addition, the change information of the number of wireless devices connected to the local area network can be directly detected to determine which devices belong to the target device. For example, if the number of wireless devices connected to the local area network is detected to have increased, a "newly added" label is added to the added device. If the number of wireless devices connected to the local area network is detected to have decreased, a "newly deleted" label is added to the decreased device. Finally, the devices with the "newly added" and "newly deleted" labels are used as the devices that the user carries with him when leaving / returning home. Therefore, the WI-FI and BT networks can be used to determine whether the devices with these two labels have "returned home", and then determine whether the user has returned home / left home.
[0105] Further, in order to help understand the implementation process of the control method of the intelligent device obtained by combining this embodiment with the above-mentioned first embodiment, as an optional implementation method, please refer to Figure 7 , Figure 7 A control flow diagram corresponding to executing a home detection process based on network access information and Bluetooth matching action is provided, specifically;
[0106] When the execution time of an action other than the access control action is reached, the control action is executed. Then, when the execution time of the access control action is reached, it can be detected whether the WIFI device in the local area network is reconnected, and / or a Bluetooth scanning action is performed. When a reconnected device is detected or a Bluetooth device is scanned, it means that the user has actually arrived home. At this time, the user's actual arrival time is used as the new reference time, and access control actions such as opening doors, turning off lights, and closing curtains are executed. Based on this, the user's actual arrival time can be detected before the access control action is executed, so that the access control action is executed based on the actual time, thereby improving the flexibility of regulating smart home devices.
[0107] This embodiment provides a control method for a smart device. When the control action is the first control action, the action is executed based on the execution time of the first control action. When the control action is the second control action, a detection process is triggered to detect whether the user is currently home. If the user is home, the reference time is updated and the second control action is executed. Otherwise, the fallback operation of the pre-started home appliance can be executed. By obtaining the connection relationship between the device carried by the user after leaving home and the wireless network, the user's precise arrival time is determined, and the access control action is executed based on the time, thereby improving the intelligence and flexibility of smart home device control.
[0108] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the control method of the smart device of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0109] The present application provides an intelligent device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the intelligent device in the first embodiment described above.
[0110] Reference below Figure 8 , which shows a schematic diagram of the structure of a smart device suitable for implementing an embodiment of the present application. Figure 8 The smart device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0111] like Figure 8 As shown, the smart device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the smart device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the smart device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a smart device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0112] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0113] The smart device provided by the present application adopts the control method of the smart device in the above embodiment, which can solve the technical problem of lag in the regulation of smart home devices. Compared with the prior art, the beneficial effects of the smart device provided by the present application are the same as the beneficial effects of the control method of the smart device provided by the above embodiment, and other technical features in the smart device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0114] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0115] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0116] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the control method of the smart device in the above-mentioned embodiment.
[0117] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0118] The computer-readable storage medium may be included in the smart device, or may exist independently without being installed in the smart device.
[0119] The computer-readable storage medium carries one or more programs, and when the one or more programs are executed by the smart device, the smart device: determines the calibration time according to the weather information and traffic condition information associated with the home location;
[0120] Determine the arrival time at home according to the preset reference time and the calibration time;
[0121] The execution time of multiple control actions associated with the smart device is determined based on the arrival time, and the multiple control actions are executed based on the execution time.
[0122] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0123] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0124] The modules involved in the embodiments of the present application may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.
[0125] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the control method of the above-mentioned smart device, and can solve the technical problem of lag in the regulation of smart home devices. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the control method of the smart device provided in the above-mentioned embodiment, and will not be elaborated here.
[0126] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A control method for an intelligent device, characterized in that: The method comprises: Determine the calibration time based on weather information and traffic information associated with the home location; Determine the arrival time at home according to the preset reference time and the calibration time; The execution time of multiple control actions associated with the smart device is determined based on the arrival time, and the multiple control actions are executed based on the execution time.
2. The method according to claim 1, characterized in that The step of determining the calibration time according to the weather information and traffic condition information associated with the home location includes: Determining a first calibration time corresponding to the weather information and a second calibration time corresponding to the traffic condition information; The calibration time is set according to the first calibration time and the second calibration time.
3. The method according to claim 2, characterized in that The step of determining the first calibration time corresponding to the weather information and the second calibration time corresponding to the traffic condition information comprises: Determine a first time interval associated with the weather information and a second time interval associated with the traffic condition information; The first calibration time corresponding to the weather information is selected in the first time interval, and the second calibration time associated with the traffic condition information is selected in the second time interval.
4. The method according to any one of claims 1 to 3, characterized in that The step of determining the execution time of multiple control actions associated with the smart device based on the arrival time, and executing the multiple control actions based on the execution time includes: determining the execution time of the plurality of control actions based on the arrival time; If the control action is a first control action, executing the first control action when the execution time corresponding to the first control action is reached; If the control action is a second control action, determining a triggering time of the detection process according to the execution time corresponding to the second control action; When the trigger time is reached, executing the return home detection process; When the target device is detected, the second control action is executed.
5. The method according to claim 4, characterized in that After the step of determining the triggering time of the detection process according to the execution time corresponding to the second control action, the method further includes: When the target device is not detected within a preset time period, determining the first control action that has been executed; Based on the first control action that has been executed, a rollback action is performed, or the arrival time is updated.
6. The method according to claim 4, characterized in that The method further comprises: When receiving a target command, a wireless device scanning action is executed; The change information of the wireless device is determined according to the scanning result, and the target device is determined according to the change information.
7. The method according to claim 4, characterized in that When the trigger time is reached, the step of executing the return home detection process includes: When the trigger time is reached, obtaining WI-FI device access information of the local area network and / or scanning Bluetooth device information; When there is a back-connecting device in the WI-FI device access information and / or the matching information of the received Bluetooth device, determining the current time; After the reference time is updated based on the current time, detection information of the target device is generated.
8. The method according to claim 1, characterized in that Before the step of determining the arrival time according to the preset reference time and the calibration time, the method further includes: Determine the reference time according to the received setting information; and / or The reference time is updated or determined according to the actual returning home time within the preset time period.
9. A smart device, characterized in that: The smart device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the control method for the smart device according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the control method of the intelligent device according to any one of claims 1 to 8 are implemented.
