Control method, device and storage medium for an electrical device
Patent Information
- Application Number
- CN202310896168.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2043-07-20
AI Technical Summary
如此电子设备在执行任务之前,都需要先从休眠状态进入工作状态,导致电子设备的工作效率降低,实时性差
[0008]本申请的有益效果是:区别于现有技术的情况,用电设备通过获取蓄电池的电池信息和环境能源充放电电路的环境能源历史供电信息,并当用电设备在休眠态时,利用环境能源历史供电信息和电池信息判断是否在当前时间点唤醒用电设备,可以使得用电设备的唤醒时间点可以随着环境能源历史供电信息的变化而变化,例如当环境能源历史供电不足时,唤醒时间点可以延后,以保证用电设备的电量,减少用电设备断电离线的情况,而当环境能源历史供电增强时,唤醒时间点可以提前,从而可以实现延长用电设备的工作时间,进而可以在保证用电设备不断电离线的情况下延长用电设备的工作时间,进而可以提高用电设备的工作效率,增强用电设备的实时性。
Smart Images

Figure CN117032013B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic equipment technology, and in particular to control methods, devices and storage media for electrical equipment. Background Technology
[0002] With the development of electronic device technology, people can use electronic devices to achieve certain goals and facilitate their lives. For example, people can use electronic cameras to monitor an area or capture objects without human intervention. For electronic devices that do not need to or cannot work 24 hours a day, such as when the battery power is insufficient to support the device's operation for a whole day, they are usually set to work during certain periods and then go into sleep mode.
[0003] In existing solutions, for electronic devices that cannot be continuously charged, they are typically set to sleep mode most of the time to maintain their online status. The device only enters working mode when performing scheduled tasks or remotely controlling the device. After the task is completed, the device automatically enters sleep mode again. This process requires the device to transition from sleep mode to working mode before performing any task, resulting in reduced efficiency and poor real-time performance. Summary of the Invention
[0004] The main technical problem addressed by this application is to provide a control method, electronic device, and storage medium for electrical equipment that can determine the wake-up time of the electrical equipment based on historical power supply from the environment. This not only ensures that the electrical equipment remains powered on and offline, but also increases the working time of the electrical equipment, thereby improving the working efficiency of the electrical equipment.
[0005] To solve the above-mentioned technical problems, one technical solution adopted in this application is: to provide a control method for electrical equipment, the method comprising: acquiring battery information of a storage battery and historical power supply information of an environmental energy charging and discharging circuit; when the electrical equipment is in a dormant state, determining whether to wake up the electrical equipment at the current time point by using the historical power supply information of the environmental energy and the battery information.
[0006] To solve the above-mentioned technical problems, the second technical solution adopted in this application is: to provide an electronic device, which includes: a processor, a memory, and a communication circuit; the communication circuit and the memory are respectively coupled to the processor, the memory is used to store computer programs, and the processor is used to read and execute computer programs to implement the method of the first technical solution of this application as described above.
[0007] To solve the above-mentioned technical problems, the third technical solution adopted in this application is to provide a computer-readable storage medium that stores a computer program that can be read and executed by a processor to implement the method of the first technical solution of this application as described above.
[0008] The beneficial effects of this application are as follows: Unlike existing technologies, the electrical equipment obtains battery information from the storage battery and historical power supply information from the environmental energy charging and discharging circuit. When the electrical equipment is in a dormant state, it uses the historical power supply information and battery information to determine whether to wake up the electrical equipment at the current time. This allows the wake-up time of the electrical equipment to change with the changes in the historical power supply information. For example, when the historical power supply is insufficient, the wake-up time can be delayed to ensure the power supply of the electrical equipment and reduce the occurrence of power outages. Conversely, when the historical power supply is enhanced, the wake-up time can be advanced, thereby extending the working time of the electrical equipment. This extends the working time of the electrical equipment while ensuring that it does not become offline, thus improving the working efficiency and enhancing the real-time performance of the electrical equipment. Attached Figure Description
[0009] Figure 1 This is a schematic block diagram of the structure of an embodiment of the electrical equipment used in this application;
[0010] Figure 2 This is a flowchart illustrating an embodiment of the control method for electrical equipment in this application;
[0011] Figure 3 This is a schematic diagram of the wake-up process in the first mode of the control method embodiment of the electrical equipment of this application;
[0012] Figure 4 This is a schematic diagram of the sleep process in the first mode of the control method embodiment of the electrical equipment of this application;
[0013] Figure 5 This is a schematic diagram of the wake-up and sleep process in the second mode of the control method embodiment of the electrical equipment of this application;
[0014] Figure 6 This is a schematic block diagram of the structure of an embodiment of the electronic device of this application;
[0015] Figure 7 This is a schematic block diagram of the circuit structure of an embodiment of the computer-readable storage medium of this application. Detailed Implementation
[0016] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0017] With the development of electronic device technology, people can use electronic devices to achieve certain goals and facilitate their lives. For example, people can use electronic cameras to monitor an area or capture objects without human intervention. For electronic devices that do not need to or cannot work 24 hours a day, such as when the battery power is insufficient to support the device's operation for a whole day, they are usually set to work during certain periods and then go into sleep mode.
[0018] Through long-term research, the applicant has discovered that for electronic devices that cannot be continuously charged, such as those using environmental energy sources like solar, wind, or tidal power, these devices are typically set to sleep mode most of the time to maintain their online status. To prevent power outages and offline situations, the electronic device only enters the working state when performing scheduled tasks or remotely controlling its operation. After the task is completed, the device automatically returns to sleep mode. Thus, before performing any task, the device must first transition from sleep mode to working mode. This transition takes time, reducing the device's efficiency. Furthermore, prolonged sleep mode prevents timely data capture, leading to data loss and poor real-time performance. To improve or solve these problems, this application proposes the following embodiments.
[0019] The electrical equipment can be electronic devices such as cameras, alarms, and media players. For example, if the electrical equipment is a camera, when it is in working condition, it can monitor a target area or capture target objects. If the electrical equipment is an alarm, when it is in working condition, the alarm will sound when the target conditions are met. If the electrical equipment is a media player, when it is in working condition, it can play target audio or video.
[0020] Electrical equipment may include a storage battery and an ambient energy charging / discharging circuit. The electrical equipment can charge the storage battery through the ambient energy charging / discharging circuit. Optionally, the electrical equipment can also directly supply power to its own circuitry through the ambient energy charging / discharging circuit.
[0021] The battery's electrical energy can be transferred to other circuits via an environmental energy charging and discharging circuit, such as to a power control circuit or a wake-up control circuit to operate the system. In some embodiments, the battery's electrical energy can be directly transferred to the power control circuit or other electrical circuits in the electrical equipment, meaning that the battery can directly supply power to the electrical circuits in the electrical equipment.
[0022] Electrical equipment can be devices that use environmental energy sources such as solar, wind, and tidal energy for charging and / or power supply.
[0023] like Figure 1 As shown, the electrical equipment embodiment of this application may include an ambient energy receiving device, an ambient energy charging / discharging circuit, a battery, a charging / discharging power detection device, an input voltage detection device, a microcontroller, a power control circuit or a wake-up control circuit, and a working system. The charging / discharging power detection can detect the charging / discharging power of the ambient energy charging / discharging circuit or the battery. The power control circuit or wake-up control circuit can control the electrical equipment to turn on or off, wake up, or enter sleep mode.
[0024] When the environmental energy source is solar energy and the electrical equipment is a camera, the environmental energy receiving device can be a solar panel, the environmental energy charging and discharging circuit can be a solar charging and discharging circuit, and the working system can be a camera system.
[0025] refer to Figures 2 to 4 The control method embodiment of the electrical equipment in this application can take the electrical equipment as the execution subject, and the control method described therein can include: S100: obtaining battery information of the storage battery and historical power supply information of the environmental energy charging and discharging circuit; S200: when the electrical equipment is in a dormant state, using the historical power supply information of the environmental energy and the battery information to determine whether to wake up the electrical equipment at the current time point.
[0026] By acquiring battery information from the storage battery and historical power supply information from the environmental energy charging and discharging circuit, and when the device is in a dormant state, the system uses this information to determine whether to wake it up at the current time. This allows the wake-up time to change with variations in historical environmental energy supply information. For example, when historical environmental energy supply is insufficient, the wake-up time can be delayed to ensure the device has sufficient power and reduce the likelihood of power outages. Conversely, when historical environmental energy supply is increased, the wake-up time can be advanced, thereby extending the device's operating time. This extends the device's operating time without causing power outages, ultimately improving its efficiency.
[0027] The following is a detailed description of the control method embodiments for the electrical equipment of this application.
[0028] S100: Obtains battery information from the storage battery and historical power supply information from the environmental energy charging and discharging circuit.
[0029] Electrical equipment can exist in at least two states, such as an active state or a sleep state. When the equipment is in an active state, it can perform the target action promptly. When the equipment is in a sleep state, it may not perform any operation until it is awakened and then performs the target action in an active state.
[0030] In this embodiment, the electrical device can determine whether it needs to switch between operating and dormant states at the current time point based on battery information and historical environmental energy supply information. Specifically, it can determine whether the device needs to transition from dormant to operating state or vice versa. Therefore, the device can obtain battery information from the storage battery and historical environmental energy supply information from the environmental energy charging and discharging circuit. Battery information can refer to the battery's charge level, health status, or total capacity. Historical environmental energy supply information can be the power supply information provided by the environmental energy charging and discharging circuit to the device in previous time periods, such as environmental energy input power, time to reach target power, or environmental energy input voltage.
[0031] By acquiring battery information from the storage battery and historical power supply information from the environmental energy charging and discharging circuit, electrical equipment can then use this information to determine the wake-up and sleep times of the equipment, thereby achieving intelligent control.
[0032] S200: When the electrical equipment is in a sleep state, it uses historical power supply information and battery information to determine whether to wake up the electrical equipment at the current time.
[0033] After obtaining battery information from the storage battery and historical power supply information from the environmental energy charging and discharging circuit, the electrical equipment can use the historical power supply information and battery information to determine whether the electrical equipment needs to switch between working and dormant states at the current time.
[0034] When electrical equipment is in sleep mode, historical power supply information from the environment and battery information can be used to determine whether to wake up the equipment at the current time, i.e., whether to change the equipment's state from sleep mode to working mode. Conversely, when electrical equipment is in working mode at the current time, information about the equipment can be used to determine whether to change the equipment's state from working mode to sleep mode at the current time.
[0035] In this embodiment, when determining whether to wake up the electrical device at the current time, the sufficiency of the ambient energy received during a period prior to the current time can be used as a criterion. Assuming each day is defined as a time period, the sufficiency of the ambient energy received by the device the previous day can be considered when deciding whether to wake up a device in a dormant state. If the ambient energy received by the device the previous day was sufficient, it may be woken up earlier, thus extending its operating time. Conversely, if the ambient energy received by the device the previous day was insufficient, its battery power may be low, and to reduce the possibility of power outages, it may be woken up later.
[0036] Optionally, when the electrical device is charged using solar energy, the environmental energy charging and discharging circuit may include a solar charging and discharging circuit. Historical environmental energy power supply information may include a first time point, which is the time when the power supply of the solar charging and discharging circuit first reaches a preset power on the previous day. When solar energy is abundant on the previous day, the wake-up time can be advanced. "Advanced" can mean earlier than the wake-up time of the previous day or earlier than the set wake-up time. In some embodiments, for example, if the electrical device is set to wake up at 8:00 AM, then when solar energy is abundant on the previous day, the electrical device can be woken up at 6:00 AM, thereby extending the working time. Therefore, the time when the power supply of the environmental energy charging and discharging circuit reaches the preset power can be used to determine whether the electrical device should be woken up at the current time point. See the following steps included in S200 for details:
[0037] S210: If the current time point is before the first time point, and the difference between the first time point and the current time point is less than a preset difference, wake up the electrical equipment at the current time point so that the electrical equipment can enter the normal working state.
[0038] The solar charging and discharging circuit's power output reaches the preset power for the first time at a given point in time each day. Since the weather conditions on adjacent days are likely similar, the exact time when the circuit first reaches the preset power output can be estimated at or near that point. For example, if the solar charging and discharging circuit reached the preset power output of 5W at 8:00 AM the previous day (i.e., 8:00 AM is the first time), then the estimated time for the circuit to reach the preset power output on the current day is also 8:00 AM. In other words, according to the estimate, the device can be charged at the first point in time that day. Therefore, the device can be woken up before the first point in time, and any power loss caused by waking it up before the first point in time can be made up for after the first point in time.
[0039] Based on the above, the electrical equipment can be woken up before the first time point. However, the time before waking up the equipment should not be too far in advance, otherwise it may cause the equipment to lose power and go offline. Therefore, a preset difference can be set. When the difference between the current time point (which is before the first time point) and the first time point is less than the preset difference, the electrical equipment can be woken up at the current time point so that the equipment can enter the normal working state.
[0040] The preset difference is determined based on the battery information of the storage battery.
[0041] The battery information may include the battery's total capacity, current battery charge, and first wake-up threshold charge. The first wake-up threshold charge may be a charge level set to reduce the likelihood of the device going offline due to power outages, or it may be the minimum charge level required to wake the device. Therefore, the preset difference can be determined based on at least one parameter: the battery's total capacity, current battery charge, and first wake-up threshold charge. Since the preset difference is time-related, it can also be determined based on the device's average operating power. By using the battery's total capacity, current battery charge, first wake-up threshold charge, and average operating power, the time it takes for the device to enter a working state ahead of schedule can be determined, thereby establishing the preset difference.
[0042] Optionally, if the power of the electrical equipment is insufficient, prematurely waking it up may cause it to lose power and go offline. Therefore, before determining how long in advance the equipment should be woken up, it is necessary to first determine whether the power of the equipment meets the conditions for premature wake-up. Since the equipment can only be in working condition when it has sufficient power, a longer continuous working time of the equipment the previous day indicates that the equipment had sufficient power the previous day, and thus indicates that the equipment received sufficient environmental energy the previous day. Therefore, the continuous working time of the equipment the previous day can be used to indicate whether the environmental energy is sufficient and thus the battery power. For details, please refer to the following steps included in S210:
[0043] S211: Determine whether the continuous working time of the electrical equipment on the previous day is greater than the preset working time.
[0044] Because electrical devices enter a sleep state when their battery is low to ensure uninterrupted power supply, they can only remain operational when their battery is fully charged. By determining whether the device's continuous operating time the previous day exceeded a preset operating time, we can ascertain whether the device's battery level meets the conditions for early wake-up. The preset operating time can be any duration longer than the maximum time allowed for early wake-up. For example, if the maximum early wake-up time is 3 hours, then the device's continuous operating time the previous day must exceed 3 hours to meet the early wake-up requirement.
[0045] S212: If the continuous working time is greater than the preset working duration and the current time point is before the first time point, determine whether the difference between the first time point and the current time point is less than the preset difference.
[0046] If the continuous working time of the electrical equipment on the previous day exceeds the preset working time, it can be determined that the electrical equipment meets the requirement of early wake-up. Furthermore, by judging whether the difference between the first time point and the current time point is less than a preset difference, it can be determined how far in advance the electrical equipment can be woken up without causing power failure and offline operation.
[0047] S213: If the difference between the first time point and the current time point is less than the preset difference, execute the step of waking up the electrical equipment at the current time point so that the electrical equipment can enter the normal working state.
[0048] When the difference between the first time point and the current time point is less than the preset difference, the electrical equipment can be woken up at the current time point so that the electrical equipment can enter the normal working state.
[0049] For instructions on how to determine the preset difference, please refer to the following:
[0050] To reduce the possibility of power outages and equipment going offline, a limit can be set on the preset difference to allow the equipment to be woken up appropriately in advance. In other words, it allows setting the maximum amount of time in advance that the equipment can be woken up to enter normal working state.
[0051] In some embodiments, when the current battery charge is greater than the sum of the battery's first wake-up threshold charge and the early wake-up charge, the preset difference is equal to the value obtained by multiplying the early wake-up charge by the battery's total capacity and then dividing by the operating power of the electrical device.
[0052] The first wake-up threshold power level can be used to determine whether a device needs to enter sleep mode. For example, when the power level falls below the first wake-up threshold, the device is put into sleep mode. The early wake-up threshold power level can be used to determine how far in advance the device can be woken up.
[0053] When the current battery charge is greater than the sum of the battery's first wake-up threshold and the early wake-up charge, the electrical equipment can enter normal operating mode as early as possible. For example, if the electrical equipment is set to wake up a maximum of 3 hours in advance, then when the current battery charge is greater than the sum of the first wake-up threshold and the early wake-up charge, the electrical equipment can be woken up 3 hours earlier than the initial time point. In this case, the preset difference is equal to the early wake-up charge multiplied by the total battery capacity and then divided by the operating power of the electrical equipment.
[0054] In other embodiments, when the current battery level is less than the sum of the first wake-up threshold battery level and the early wake-up battery level, but greater than the first wake-up threshold battery level, the preset difference is equal to the value obtained by multiplying the difference between the current battery level and the first wake-up threshold battery level by the total capacity and then dividing by the operating power.
[0055] When the current battery charge is insufficient to wake the device at the longest pre-set time, meaning that if the device is to be woken up at the pre-set time, its battery level at the first time point may be lower than the first wake-up threshold, potentially leading to a power outage and disconnection, then the power consumed by waking the device early should ensure that the device's battery level at the first time point is higher than the first wake-up threshold. Therefore, in this embodiment, the preset difference can be equal to the difference between the current battery charge and the first wake-up threshold multiplied by the total capacity and then divided by the device's operating power.
[0056] For example, the limitation set for the preset difference could be 3 hours earlier than the first time point. When solar radiation is abundant on a given day, the electrical equipment may have a higher power level, allowing it to start operating 3 hours earlier. When solar radiation is moderately abundant, the power level might only allow it to start operating 2.5 hours, 1.5 hours, or 0.5 hours earlier. When solar radiation is insufficient or very low, the equipment may not be able to wake up in advance.
[0057] By using a preset difference to determine the wake-up time for the day, electrical devices can be woken up earlier, thereby extending their operating time. When ambient energy is abundant throughout the day, devices can be woken up significantly earlier. Furthermore, this earlier wake-up time occurs when solar energy is insufficient, meaning the extended operating time can extend before sunrise, aligning with user habits.
[0058] Optionally, the battery information includes the current battery charge. When the ambient energy supply is sufficient and the device has sufficient power, it can also be woken up to enter normal operating mode. See the following steps included in S200 for details:
[0059] S220: Determine whether to wake up the electrical equipment at the current time point by using the current power level and the power supply status of the ambient energy charging and discharging circuit in the previous time period.
[0060] The device can be woken up when the charging power of its battery is greater than or equal to the power consumed by the device. By analyzing the power supply status of the ambient energy charging and discharging circuit at a given point in time, it can be determined whether waking up the device at that time would cause its power consumption rate to exceed its charging rate, thus leading to a power outage and disconnection. Therefore, the current battery level and the power supply status of the ambient energy charging and discharging circuit in the previous time period can be used to determine whether to wake up the device at the current time.
[0061] Optionally, the power supply information for the previous time period may include the average charging power and / or average supply voltage for the previous time period. When determining the wake-up time point using the current power level and ambient energy charging / discharging circuit, the average charging power and / or average supply voltage may be used. For details, please refer to the following steps included in S220:
[0062] The steps for determining whether to wake up the device using the average charging power can be found in step S221: If the average charging power of the previous time period is greater than the preset power and the current power level is greater than the first power level, wake up the device at the current time point.
[0063] For example, the first time point is 9:00 AM, the preset power is 5W, and the initial battery level is 90%. Assuming that when determining whether to wake up the device at 8:00 AM, the average charging power during the period from 7:30 AM to 7:59 AM can be obtained. If the average charging power reaches 7W and the device's current battery level is 92%, then the device can be woken up at that current time point.
[0064] The steps for determining whether to wake up the electrical equipment using the average power supply voltage can be found in step S222: If the average power supply voltage of the previous time period is greater than the preset voltage and the current power is greater than the second power, wake up the electrical equipment at the current time point.
[0065] For example, the first time is 9 AM, the preset voltage is 10V, and the second battery level is 98%. Assuming the device hasn't been woken up at 9 AM, the wake-up time can be determined after 9 AM. For instance, to determine whether to wake the device at 10 AM, the average supply voltage between 9:50 and 9:59 AM can be obtained. If the average supply voltage reaches 10V and the device's current battery level is 99%, then the wake-up time for the device that day can be determined to be 10 AM.
[0066] By determining whether the current power supply to the electrical equipment meets the wake-up conditions, the equipment can be woken up even when there is sufficient ambient energy, thus addressing situations with significant weather changes. For example, if the previous day was cloudy but the sun rises early and solar radiation is strong on the current day, the equipment can still be woken up, extending its operating time and improving the interaction efficiency between the equipment and the user.
[0067] Optionally, to extend the operating time of electrical equipment, in addition to waking it up earlier, the time point for it to go into sleep mode can be postponed. Therefore, historical power supply information and battery information can be used to determine the sleep time point. Thus, the control method for electrical equipment can also include the following steps:
[0068] S300: When the electrical equipment is in operation, it uses historical power supply information and battery information to determine whether to control the electrical equipment to enter a sleep state at the current time.
[0069] Because the ambient energy received by electrical equipment before and after the first time point may differ, the methods for determining the hibernation time point before and after the first time point can differ. Furthermore, since battery information can also be used to determine whether an electrical device needs to enter hibernation mode when its battery level reaches a certain point, in order to prevent the device from losing power and going offline. In other words, when an electrical device is in operation, historical ambient energy supply information and battery information can be used to determine whether to control the device to enter hibernation mode at the current time point.
[0070] As mentioned above, the historical power supply information of environmental energy can include a first time point, which can be the time when the power supply of the solar charging and discharging circuit first reached the preset power on the previous day. How to use the historical power supply information of environmental energy and battery information to determine whether to control the electrical equipment to enter the sleep state at the current time point can be found in the following steps included in S300:
[0071] S310: Determine whether the current battery level is less than the battery level threshold corresponding to the current time point.
[0072] S320: If it is less than, control the electrical equipment to enter sleep mode.
[0073] In some embodiments, the electrical device may not have entered sleep mode before the first time point. Since the ambient energy received before the first time point may be less, if the device has been in normal operation for a longer period before the first time point, its battery level may be insufficient at the first time point. If the ambient energy intensity at the first time point is weaker than that at the first time point of the previous day, the device may lose power and go offline. Therefore, the battery threshold corresponding to the time before the first time point is different from the battery threshold corresponding to the time after the first time point. The battery threshold can refer to the battery level at which the device begins to enter sleep mode.
[0074] The conditions for electrical equipment to enter sleep mode before the first time point and the conditions for electrical equipment to enter sleep mode after the first time point can be found below:
[0075] Optionally, the battery threshold corresponding to the time before the first time point is equal to the difference between the first wake-up threshold battery level and the first set value.
[0076] For example, the first wake-up threshold battery level could be 84%, and the first set value could be 2%. Let's assume the first time point is 10:00 AM. When the device reaches 82% battery level at 3:00 AM, it will transition from normal operation to sleep mode.
[0077] Optionally, the power threshold corresponding to the time after the first time point is the difference between the maximum power after the first time point and the power of the delayed sleep, and / or the difference between the power of the first wake-up threshold and the second set value.
[0078] To extend the operating time of electrical equipment, a delayed sleep mode setting can be implemented. The delayed sleep mode setting is related to how long after the equipment stops receiving ambient energy that it will enter sleep mode. For example, the delayed sleep mode setting is related to how long after sunset the equipment will enter sleep mode.
[0079] For example, the maximum battery level after the first time point could be 100%, and the delayed sleep battery level could be 8%. If the first time point is 10 AM, the first wake-up threshold battery level is 84%, and the second set value is 4%. Suppose the device's battery level reaches 92% at 11 PM, then the device can be put into sleep mode. If the ambient energy is insufficient that day, and the device's battery level reaches 80% at 3 PM, then the device can also be put into sleep mode.
[0080] By utilizing battery information and historical power supply information from the environment, the sleep time of electrical equipment can be determined, allowing the equipment to remain operational even when environmental energy is insufficient. This prevents the equipment from going offline due to power outages and extends the sleep time, thereby prolonging the equipment's operating time.
[0081] The above describes the method for determining the wake-up and sleep times of electrical equipment in its first mode. In the first mode, the equipment obtains battery information from the storage battery and historical power supply information from the ambient energy charging and discharging circuit. When the equipment is in sleep mode, it uses the historical power supply information and battery information to determine whether to wake up the equipment at the current time, thus extending the equipment's operating time. Figure 5 As shown, when the electrical device is in the second mode, the second mode can determine the wake-up or sleep time point by utilizing the sleep period and combining the battery information of the electrical device's battery. For details, please refer to the following steps included in the embodiment of the control method for the electrical device:
[0082] S400: When the device is in the second mode, obtain the sleep time period and the second wake-up threshold power. When the device is in sleep mode, if the current time is not within the sleep time period and the current power of the battery is greater than the second wake-up threshold power, wake up the device.
[0083] The second mode can be a pre-set sleep and work periods for the electrical equipment. For example, the equipment can sleep during the sleep period and be active during the work period. However, the equipment may be asleep during the work period and active during the sleep period. To ensure that the equipment operates during the work period as much as possible, when the equipment is in sleep mode, if the current time is not within the sleep period and the current battery level is greater than the second wake-up threshold, the equipment is woken up.
[0084] For example, the device's sleep period is from 10 PM to 6 AM the next day. Assuming the current time is 8 AM, the device's battery level is insufficient to reach the second wake-up threshold between 6 AM and 8 AM, so the device remains in sleep mode until 8 AM. However, after sunrise, the device's battery level may reach the second wake-up threshold at 8 AM, at which point it can be woken up.
[0085] Alternatively, when the user equipment is in the second mode, the following steps can be used to determine the sleep time of the electrical equipment:
[0086] S410: Obtain the forced power supply when the electrical equipment is in the second mode.
[0087] S420: When the electrical equipment is in operation, if the current time is within the sleep period, or the current battery charge is less than the forced power reserve charge, the electrical equipment will be controlled to enter the sleep state.
[0088] When the battery level of an electrical device falls below the mandatory backup power level, the device should enter a sleep state. In this embodiment, the device can enter a sleep state during the sleep period. Furthermore, when the device is operating, assuming the charging amount is less than the power consumption, the device's battery level may decrease. If the device is required to be operational during the operating period, its battery level may become too low, leading to a power outage and disconnection. Therefore, to address this issue, when the device is operating, if the current battery level is less than the mandatory backup power level, the device can be controlled to enter a sleep state.
[0089] For example, if the device operates from 6 AM to 10 PM, the forced power reserve can be set to 75%. When the device's power reaches 74% at 6 PM, it can be set to enter sleep mode.
[0090] By utilizing sleep time periods, non-sleep time periods, and battery information, the sleep time periods and wake-up time points of electrical devices are determined. This allows electrical devices to operate during the time periods that users want them to operate and to sleep during the time periods that users want them to sleep. As a result, users can obtain the information collected by electrical devices during the time periods they are interested in, thereby improving the user experience while ensuring that electrical devices remain powered on and offline.
[0091] like Figure 6 As shown in the embodiments of the present application, the electronic device 100 may include a processor 110, a memory 120, and a communication circuit 130.
[0092] The memory 120 is used to store computer programs and may be ROM (Read-Only Memory), RAM (Random Access Memory), or other types of storage devices. Specifically, the memory may include one or more computer-readable storage media, which may be non-transitory. The memory may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory is used to store at least one line of program code.
[0093] Processor 110 is used to control the operation of electronic device 100. Processor 110 may also be referred to as CPU (Central Processing Unit). Processor 110 may be an integrated circuit chip with signal processing capabilities. Processor 110 may also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), off-the-shelf programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. The general-purpose processor may be a microprocessor, or processor 110 may be any conventional processor.
[0094] The processor 110 is used to execute the computer program stored in the memory 120 to implement the control method of the electrical equipment described in the embodiments of the present application.
[0095] The electronic device 100 may also include a communication circuit 130, which is a communication connection device or circuit used by the electronic device 100 to communicate with external devices, so that the processor 110 can interact with external devices via the communication circuit 130.
[0096] For a detailed description of the functions and execution processes of each functional module or component in the computer equipment embodiments of this application, please refer to the description in the control method embodiments of the electrical equipment of this application, which will not be repeated here.
[0097] In the several embodiments provided in this application, it should be understood that the disclosed electronic device 100 and the control method for the electrical equipment can be implemented in other ways. For example, the embodiments of the electronic device 100 described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0098] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0099] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0100] See Figure 7 If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in computer-readable storage medium 200. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions / computer programs to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this invention. The aforementioned storage medium includes various media such as USB flash drives, portable hard drives, read-only memory, random access memory, magnetic disks, or optical disks, as well as electronic terminals such as computers, mobile phones, laptops, tablets, and cameras that have the aforementioned storage media.
[0101] The description of the execution process of program data in computer-readable storage media can be found in the embodiments of the control method of the electrical equipment described above, and will not be repeated here.
[0102] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for controlling electrical equipment, characterized in that, The electrical equipment includes an environmental energy charging and discharging circuit and a storage battery, and the control method includes: Obtain the battery information of the storage battery and the historical power supply information of the environmental energy charging and discharging circuit; When the electrical device is in a dormant state, the historical power supply information of the ambient energy and the battery information are used to determine whether to wake up the electrical device at the current time. The historical power supply information of the ambient energy includes the power supply information of the ambient energy charging and discharging circuit to the electrical device in the previous time period.
2. The method according to claim 1, characterized in that, The environmental energy charging and discharging circuit includes a solar charging and discharging circuit. The historical power supply information of the environmental energy includes a first time point, which is the time when the power supply of the solar charging and discharging circuit first reached the preset power on the previous day. The step of using the historical power supply information of the environmental energy and the battery information to determine whether to wake up the device at the current time point includes: If the current time point is before the first time point, and the difference between the first time point and the current time point is less than a preset difference, the electrical device is woken up at the current time point so that the electrical device can enter a normal working state. The preset difference is determined based on the battery information of the storage battery.
3. The method according to claim 2, characterized in that, The step of waking up the device at the current time point if the current time point is before the first time point and the difference between the first time point and the current time point is less than a preset difference, so that the electrical equipment can enter a normal working state, includes: Determine whether the continuous working time of the electrical equipment on the previous day was greater than the preset working time; If the continuous working time is greater than the preset working duration and the current time point is before the first time point, determine whether the difference between the first time point and the current time point is less than the preset difference. If the difference between the first time point and the current time point is less than a preset difference, the step of waking up the electrical equipment at the current time point to enable the electrical equipment to enter a normal working state is executed.
4. The method according to claim 2, characterized in that, When the current charge of the battery is greater than the sum of the first wake-up threshold charge and the early wake-up charge, the preset difference is equal to the value obtained by multiplying the early wake-up charge by the total capacity of the battery and then dividing by the operating power of the electrical equipment. When the current battery level is less than the sum of the first wake-up threshold battery level and the early wake-up battery level, but greater than the first wake-up threshold battery level, the preset difference is equal to the value obtained by multiplying the difference between the current battery level and the first wake-up threshold battery level by the total capacity and then dividing by the operating power.
5. The method according to claim 1, characterized in that, The battery information includes the current battery level. The step of using the historical environmental energy supply information and the battery information to determine whether to wake up the electrical device at the current time includes: The system uses the current power level and the power supply status of the environmental energy charging and discharging circuit in the time period preceding the current time to determine whether to wake up the electrical equipment at the current time.
6. The method according to claim 5, characterized in that, The power supply situation of the previous time period includes the average charging power and / or average supply voltage of the previous time period. The step of using the current power level and the power supply situation of the ambient energy charging and discharging circuit in the previous time period at the current time point to determine whether to wake up the electrical device at the current time point includes: If the average charging power of the previous time period is greater than a preset power, and the current battery level is greater than a first battery level, the device is woken up at the current time point; and / or, If the average power supply voltage of the previous time period is greater than the preset voltage and the current power consumption is greater than the second power consumption, the electrical equipment is woken up at the current time point.
7. The method according to claim 1, characterized in that, The method further includes: When the electrical equipment is in operation, the historical power supply information of the environmental energy and the battery information are used to determine whether to control the electrical equipment to enter a sleep state at the current time.
8. The method according to claim 7, characterized in that, The environmental energy historical power supply information includes a first time point, which is the time when the power supply of the solar charging and discharging circuit first reached the preset power on the previous day. The step of using the environmental energy historical power supply information and the battery information to determine whether to control the electrical equipment to enter a sleep state at the current time point includes: Determine if the current battery level is less than the battery threshold corresponding to the current time point; If the value is less than the specified value, the electrical equipment will be controlled to enter a sleep state. The power threshold corresponding to the time before the first time point is different from the power threshold corresponding to the time after the first time point.
9. The method according to claim 8, characterized in that, The battery threshold corresponding to the time before the first time point is equal to the difference between the first wake-up threshold battery level and the first set value; The power threshold corresponding to the time after the first time point is the difference between the maximum power after the first time point and the power of the delayed sleep, and / or the difference between the power of the first wake-up threshold and the second set value.
10. The method according to claim 1, characterized in that, The method further includes: When the electrical device is in the first mode, the steps of obtaining the battery information of the storage battery and the historical power supply information of the environmental energy charging and discharging circuit, and determining whether to wake up the electrical device at the current time when the electrical device is in a dormant state, using the historical power supply information of the environmental energy and the battery information. When the electrical device is in the second mode, the sleep time period and the second wake-up threshold power are obtained. When the electrical device is in sleep mode, if the current time point is not within the sleep time period and the current power of the battery is greater than the second wake-up threshold power, the electrical device is woken up.
11. The method according to claim 10, characterized in that, The method further includes: When the electrical equipment is in the second mode, the forced power supply capacity is obtained; When the electrical equipment is in operation, if the current time point is within the sleep period, or the current battery charge is less than the forced power reserve charge, the electrical equipment is controlled to enter a sleep state.
12. An electronic device, characterized in that, include: A processor, a memory, and a communication circuit; the communication circuit and the memory are respectively coupled to the processor, the memory is used to store a computer program, and the processor is used to read and execute the computer program to implement the method as described in any one of claims 1-11.
13. A computer-readable storage medium, characterized in that, The device contains a computer program that can be read and executed by a processor to implement the method as described in any one of claims 1-11.
Citation Information
Patent Citations
Method and device for remote controlling mobile terminal
CN104615097A
Intelligent lock control method and device, equipment and storage medium
CN113129479A