CN110912222B - Multi-path power supply control method, device and system and readable medium - Google Patents

Multi-path power supply control method, device and system and readable medium Download PDF

Info

Publication number
CN110912222B
CN110912222B CN201911019800.7A CN201911019800A CN110912222B CN 110912222 B CN110912222 B CN 110912222B CN 201911019800 A CN201911019800 A CN 201911019800A CN 110912222 B CN110912222 B CN 110912222B
Authority
CN
China
Prior art keywords
electric energy
power supply
intelligent equipment
energy value
storage battery
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911019800.7A
Other languages
Chinese (zh)
Other versions
CN110912222A (en
Inventor
李绍斌
唐杰
陈志扬
柏建伟
晏章章
卢杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201911019800.7A priority Critical patent/CN110912222B/en
Publication of CN110912222A publication Critical patent/CN110912222A/en
Application granted granted Critical
Publication of CN110912222B publication Critical patent/CN110912222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0063Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/34Parallel operation in networks using both storage and other dc sources, e.g. providing buffering

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a multi-path power supply control method, device and system and a readable medium, and belongs to the technical field of power supply. The method comprises the steps that when the intelligent equipment starts to work, the power supply mode of the intelligent equipment is controlled to be a storage battery; calculating a target electric energy value required by the intelligent equipment within a preset working time; comparing the target electric energy value with the current residual electric energy value of the storage battery; if the residual electric energy value is smaller than the target electric energy value, calculating the actual working time of the residual electric energy value for the intelligent equipment to work; when the actual working time is long, the power supply mode of the intelligent equipment is switched from the storage battery to the commercial power. Instead of directly switching when the storage battery does not meet the power supply requirement of the intelligent equipment, the utilization rate of the storage battery is improved, and the energy-saving effect is improved.

Description

Multi-path power supply control method, device and system and readable medium
Technical Field
The present application relates to the field of power supply technologies, and in particular, to a method, an apparatus, a system, and a readable medium for controlling multiple power supplies.
Background
At present, with the continuous progress of science and technology, the living standard of people is gradually improved, and many scientific and technical products are gradually appeared in the life of people and are estimated to show a steadily increasing trend in the next decades. Originally, the life appliances which are not related to science and technology are gradually designed in an intelligent way. For example, an intelligent mattress is used, but the intelligent products inevitably have less electric energy to supply energy for the intelligent mattress, wherein a multi-path power supply system consisting of green energy and commercial power is mostly adopted.
However, when the intelligent device starts to work in the prior art, if the green energy cannot provide enough electric energy for the whole working process of the intelligent device, the green energy is directly switched to the commercial power supply, and the green energy cannot be utilized sufficiently to supply power, so that the energy-saving effect is poor.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a system and a readable medium for controlling multi-path power supply, so as to solve the problem of poor energy saving effect. The specific technical scheme is as follows:
in a first aspect, a multipath power supply control method is provided, where the method is applied to a power supply controller that controls a power supply mode of an intelligent device, where the power supply mode of the intelligent device includes battery power supply and mains power supply, and the method includes:
when the intelligent equipment starts to work, controlling the power supply mode of the intelligent equipment to be a storage battery;
calculating a target electric energy value required by the intelligent equipment within a preset working time length;
comparing the target electric energy value with the current residual electric energy value of the storage battery;
if the residual electric energy value is smaller than the target electric energy value, calculating the actual working time of the residual electric energy value for the intelligent equipment to work;
And when the actual working time is long, switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
Optionally, the calculating the target electric energy value required by the intelligent device within the preset working time period includes:
acquiring the current working power and preset working time of the intelligent equipment;
and calculating the electric energy value required by the intelligent equipment in the preset working time according to the power and the preset working time.
Optionally, the method further comprises:
acquiring a preset lowest electric energy threshold value of the intelligent equipment;
comparing the current residual electric energy value of the storage battery with the lowest electric energy threshold value;
if the residual electric energy value is larger than the lowest electric energy threshold value, executing the step of calculating the target electric energy value required by the intelligent equipment within the preset working time;
otherwise, switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
Optionally, the method further comprises:
comparing the actual working time length with a preset switching time length;
if the actual working time length is longer than the preset switching time length, executing the step of switching the power supply mode of the intelligent equipment from a storage battery to commercial power when the actual working time length is reached;
Otherwise, switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
Optionally, the method further comprises:
under the condition that the storage battery supplies power and charges at the same time, when the actual working time length is reached, calculating a residual target electric energy value required in the residual working time length of the intelligent equipment;
comparing the residual target electric energy value with the current residual electric energy value of the storage battery;
if the current residual electric energy value of the storage battery is smaller than the residual target electric energy value, recalculating the actual working time of the residual electric energy value for the intelligent equipment to work;
comparing the actual working time length with a preset switching time length;
if the actual working time length is longer than the preset switching time length, when the actual working time length is reached, executing the step of calculating the residual target electric energy value required in the residual working time length of the intelligent equipment;
otherwise, executing the step of switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
Optionally, the method further comprises:
if the current residual electric energy value of the storage battery is larger than the lowest electric energy threshold value of the intelligent equipment, executing the step of calculating the residual target electric energy value required in the residual working time of the intelligent equipment;
Otherwise, executing the step of switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
In a second aspect, a multi-path power supply control device is provided, where the device is applied to a power supply controller that controls a power supply mode of an intelligent device, the power supply mode of the intelligent device includes a storage battery power supply and a mains power supply, and the device includes:
the first calculation unit is used for calculating a target electric energy value required by the intelligent equipment within a preset working time when the intelligent equipment starts to work;
the comparison unit is used for comparing the target electric energy value with the current residual electric energy value of the storage battery;
the second calculating unit is used for calculating the actual working time length of the residual electric energy value for the intelligent equipment to work when the residual electric energy value is smaller than the target electric energy value;
and the switching unit is used for switching the power supply mode of the intelligent equipment from the storage battery to the commercial power when the actual working time is long.
In a third aspect, a power supply controller is provided, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for the memory to complete mutual communication through the communication bus;
A memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
In a fourth aspect, there is provided a multiple power supply system comprising: the power supply controller of claim 8, the battery, the utility power, the smart device, and the plurality of green energy devices, wherein,
the data input end of the power supply controller is respectively connected with the storage battery and the intelligent equipment, the switching control input end of the power supply controller is respectively connected with the storage battery and the commercial power, and the switching control output end of the power supply controller is connected with the intelligent equipment;
and the charging input end of the storage battery is respectively connected with the plurality of green energy devices.
Optionally, the power supply controller includes a switching module and a control module;
the data input end of the control module is respectively connected with the storage battery and the intelligent equipment, and the switching output end of the control module is connected with the switching module;
the input end of the switching module is respectively connected with the storage battery and the commercial power, and the output end of the switching module is connected with the intelligent equipment.
Optionally, the smart device is a smart mattress.
In a fifth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when being executed by a processor, the computer program realizes the method steps of any one of the first aspect.
In a sixth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of the first aspect described above.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides a multi-path power supply control method, which is characterized in that when an intelligent device starts to work, the power supply mode of the intelligent device is controlled to be a storage battery; calculating a target electric energy value required by the intelligent equipment within a preset working time; comparing the target electric energy value with the current residual electric energy value of the storage battery; if the residual electric energy value is smaller than the target electric energy value, calculating the actual working time of the residual electric energy value for the intelligent equipment to work; when the actual working time is long, the power supply mode of the intelligent equipment is switched from the storage battery to the commercial power. Instead of directly switching when the storage battery does not meet the power supply requirement of the intelligent equipment, the utilization rate of the storage battery is improved, and the energy-saving effect is improved.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a multi-path power supply system according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a multi-path power supply control method according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a multi-path power supply control method according to another embodiment of the present application;
fig. 4 is a flowchart of an example of a multi-path power supply control method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a multi-path power supply control device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a power supply controller according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the application provides a multi-path power supply control method which can be applied to a power supply controller in a multi-path power supply system. Fig. 1 is a schematic structural diagram of a multi-path power supply system according to an embodiment of the present disclosure. The multi-path power supply system can comprise a storage battery, a commercial power supply, green energy equipment, a power supply controller and intelligent equipment.
Wherein, green energy equipment can be with green energy conversion electric energy to the storage is in the battery. In one example, the green energy device may include a solar energy device and an air energy device. The solar energy equipment can convert solar energy into electric energy and store the electric energy in the storage battery, and the air energy equipment can convert air energy into electric energy and store the electric energy in the storage battery, and can also be wind energy equipment and the like.
The storage battery and the commercial power are used for providing electric energy for the intelligent equipment.
The power supply controller is connected with the intelligent equipment and the storage battery respectively, and can control whether the power supply mode of the intelligent equipment is supplied by the storage battery or the household 220V stable power supply according to the residual capacity of the storage battery and the power utilization condition of the intelligent equipment. In one example, a power supply controller may include a control module and a switching module. The input end of the control module is connected with the storage battery and the intelligent device and used for collecting the working electric energy value of the intelligent device and the residual electric energy value of the storage battery and calculating whether to switch the commercial power and the time for switching the commercial power according to the residual electric energy value and the working electric energy value of the intelligent device. The switching module is used for switching between the storage battery and a household 20V stable power supply. The switching module and the control module may be two separate devices, or may be an integrated device integrated into a whole, and herein, the hardware form of the switching module and the control module is not limited.
A detailed description will be given below, with reference to a specific embodiment, of a multi-path power supply control method provided in an embodiment of the present application, where the method is applied to a power supply controller in the multi-path power supply control system, and a power supply manner of an intelligent device includes battery power supply and mains power supply, as shown in fig. 2, the method includes the following specific steps:
s201: and when the intelligent equipment starts to work, controlling the power supply mode of the intelligent equipment to be a storage battery.
In the embodiment of the application, once the intelligent device starts to work, the intelligent controller firstly controls the power supply mode to supply power to the storage battery. Because the storage battery is energy-saving, the preferred power supply mode of the intelligent equipment is to use the storage battery for power supply.
In one example, the smart device may be a smart home product such as a smart mattress. The intelligent mattress has the functions of heating, massaging and the like. Almost 8 hours of people pass through the bed in one day, so the working time of the intelligent mattress is almost 8 hours. The power consumption is still very high, which leads to increased household costs. Therefore, it is necessary to use a multi-channel power supply system consisting of green energy and commercial power to supply power, so as to achieve the purpose of energy saving.
S202: and calculating a target electric energy value required by the intelligent equipment within a preset working time.
In the embodiment of the application, after the intelligent device starts a certain work, a work duration is set for the work, and the intelligent controller needs to calculate the total electric energy value required by the intelligent device to execute the work within the preset work duration.
Optionally, in this embodiment, the calculating the target electric energy value required by the intelligent device within the preset operating time period may be: acquiring the current working power and preset working time of the intelligent equipment; and calculating the electric energy value required by the intelligent equipment in the preset working time according to the power and the preset working time.
The current power of the intelligent device is the power of the intelligent device in the current working mode, and the power of the intelligent device is different in different working modes. For example, a smart mattress includes a heating mode of operation, which requires approximately 80W of power, and a massaging mode of operation, which requires approximately 50W of power.
In addition, the preset working duration is the working duration of the intelligent device in a certain working mode set by a user. The preset working time lengths corresponding to different working modes are also different. For example, in the massage mode, the user may set a duration of 2h or more, but in the heating mode, a maximum of 1h may be set to reach a very high temperature, which may cause fire and other problems if heating is continued.
After the power supply controller obtains the current working power and the preset working time of the intelligent equipment, the power supply controller multiplies the current working power and the preset working time to obtain the electric energy value required by the intelligent equipment.
Specifically, the target electric energy value is a total electric energy value required for the intelligent device to operate within a preset operation time period.
In one example, taking the intelligent mattress as an example, assuming that the intelligent mattress is turned on to heat, and the heating time set by the user is 1 hour, the intelligent controller calculates the electric energy consumed by the intelligent mattress within the 1 hour, and multiplies the heating power and the heating time to calculate the electric energy required by the intelligent mattress to heat for 1 hour.
S203: and comparing the target electric energy value with the current residual electric energy value of the storage battery.
In the embodiment of the application, the power supply controller acquires the current residual capacity condition from the storage battery, and then compares the target electric energy value calculated in the previous step with the current residual electric energy value of the storage battery to judge whether the residual electric energy value in the storage battery can supply the total electric energy value required by the intelligent device to perform a certain work (such as heating an intelligent mattress). If the residual electric energy value in the storage battery is larger than the target electric energy value, the residual electric energy value in the storage battery can supply the electric energy value required by the intelligent equipment to execute a certain work, and the subsequent steps are not carried out.
S204: and if the residual electric energy value is smaller than the target electric energy value, calculating the actual working time of the residual electric energy value for the intelligent equipment to work.
In the embodiment of the application, if the residual electric energy value in the storage battery is smaller than the target electric energy value, the situation that the residual electric energy value in the storage battery can not support the intelligent device to perform the whole work is shown. Then the power supply controller is required to calculate the actual operating time of the intelligent device that can be supplied with the remaining electric energy in the battery.
In this embodiment of the application, the process of calculating the actual operating time of the smart device may be that the actual operating time of the smart device is obtained by dividing the remaining electric energy value in the battery by the power of the smart device when performing a certain operation.
In one example, the smart device is a smart mattress, and the work performed is heating, the heating power is 80W, the remaining electric energy in the battery is 60Wh, and the actual work time is 0.75 h.
S205: when the actual working time is long, the power supply mode of the intelligent equipment is switched from the storage battery to the commercial power.
In this embodiment of the application, after the actual working time is calculated in step S204, timing may be started by a timer inside the intelligent controller, where the timing time is the actual working time, and when the timing is finished, the power supply mode of the intelligent device is switched from the storage battery to the commercial power.
By the method, when the residual electric energy value in the storage battery cannot meet the requirement of the whole work of the intelligent equipment, the residual electric energy value is not directly switched to the mains supply, but the residual electric energy value is calculated firstly and can be used for the actual working time of the intelligent equipment, and the residual electric energy value in the storage battery is switched to the mains supply after being fully utilized, so that the utilization rate of the storage battery is increased, and the energy-saving effect is better.
Optionally, in this embodiment of the application, if none of the remaining power values in the battery can satisfy the minimum power threshold for the intelligent device to operate a certain work when the intelligent device performs the work, which indicates that none of the power values in the battery can start the work to be performed by the intelligent device, it is not necessary to perform steps S202-S205, and the battery is directly switched to the utility power to satisfy the work requirement of the intelligent device. The specific process is as follows: acquiring a preset lowest electric energy threshold value of the intelligent equipment; comparing the current residual electric energy value of the storage battery with the lowest electric energy threshold value; if the residual electric energy value is larger than the minimum electric energy threshold value, executing the steps S202-S205; otherwise, the power supply mode of the intelligent equipment is switched from the storage battery to the commercial power.
In the embodiment of the application, the lowest power threshold is a starting power value of the intelligent device for executing certain work, and if the starting power value is not reached, the intelligent device cannot be started.
Optionally, in this embodiment of the present application, when the power supply controller calculates that the actual operating time of the smart device is very short, and the smart device can only operate for a few minutes or even a few seconds, it is not necessary to count the time, and it is necessary to switch to the commercial power immediately. Therefore, the situation that the work of the intelligent equipment is influenced because the working time is too short and the commercial power is not switched in time is avoided. Therefore, when calculating the actual operating time, it is necessary to compare the actual operating time with the preset switching time. The specific process is as follows: comparing the actual working time length with a preset switching time length; if the actual working time is longer than the preset switching time, executing step S205; otherwise, the power supply mode of the intelligent equipment is switched from the storage battery to the commercial power.
In the embodiment of the present application, the preset switching duration refers to the minimum working duration after the intelligent device starts a certain working mode, and if the calculated actual working duration is less than the minimum working duration, the normal operation of the intelligent device cannot be guaranteed.
The above embodiment is a specific working implementation mode in the case that the storage battery is only used for supplying power, if the storage battery is used for supplying power and charging at the same time, the storage battery is not switched to the commercial power immediately when the actual working time is reached, and at this time, some electric energy values are charged into the storage battery, and it is to be continuously judged that the electric energy value charged later in the storage battery can meet the requirement of the intelligent device in the remaining working time.
Optionally, as shown in fig. 3, the specific operation process of the power supply controller may further include the following steps:
s301: under the condition that the storage battery supplies power and charges at the same time, when the actual working time length is reached, the residual target electric energy value required in the residual working time length of the intelligent equipment is calculated.
In the embodiment of the present application, the remaining operating time is the sum of the preset operating time minus the actual operating time of the smart device. If this step is performed for the first time, the actual operating time calculated for the first time is subtracted. If this step is performed a second time, the subtraction of the first calculated actual operation time period and the second calculated actual operation time period is the remaining operation time period. And then multiplying the power of the intelligent equipment for executing the work by the residual work time length to obtain a residual target electric energy value.
S302: and comparing the residual target electric energy value with the current residual electric energy value of the storage battery.
In the embodiment of the application, the current residual electric energy value of the storage battery is obtained again, and then the current residual electric energy value of the storage battery is compared with the residual target electric energy value. The working requirement of the intelligent device in the remaining working time can be met by judging the later charged electric quantity in the storage battery. If the later charged electric energy value in the storage battery is larger than the residual target electric energy value, which indicates that the operation requirement of the intelligent device in the residual operation time period can be met, the subsequent steps are not required to be executed.
S303: and if the current residual electric energy value of the storage battery is smaller than the residual target electric energy value, recalculating the actual working time of the residual electric energy value for the intelligent equipment to work.
In the embodiment of the application, if the later charged electric energy value of the storage battery is smaller than the residual target electric energy value, the situation that the electric energy requirement in the residual working time of the intelligent device cannot be met is indicated. The later charged energy value of the battery, i.e. the actual operating time of the battery for the intelligent device to operate within the remaining operating time, is recalculated. The calculation process may be: and dividing the current residual electric energy value in the storage battery by the power of the intelligent device for executing the current work to obtain the actual working time of the intelligent device in the residual working time.
S304: and comparing the actual working time length with the preset switching time length.
In the embodiment of the present application, after the actual operating time of the smart device in the remaining operating time is calculated, the actual operating time of the smart device is compared with the preset switching time, so as to avoid that when the actual operating time of the smart device calculated by the power supply controller is very small and only can be used for the smart device to operate for several minutes or even several seconds, the time is necessarily counted, and the smart device needs to be switched to the commercial power immediately. Therefore, the situation that the work of the intelligent equipment is influenced because the working time is too short and the commercial power is not switched in time is avoided.
S305: and if the actual working time length is longer than the preset switching time length, executing the step of calculating the residual target electric energy value required in the residual working time length of the intelligent equipment and the subsequent steps when the actual working time length is reached.
In the embodiment of the application, if the actual operating time of the intelligent device is longer than the preset switching time, which indicates that the electric energy charged later in the battery can meet the normal operation of the intelligent device within a certain time, a timer inside the power supply controller may be used to start timing, the timing time is the actual operating time, and after the timing is finished, the steps S301 to S304 are repeatedly executed.
S306: otherwise, the operation of switching the power supply mode of the smart device from the storage battery to the commercial power in step S205 is performed.
In this application embodiment, if the actual operating duration of smart machine is less than or equal to and predetermines to switch for a long time, it explains that the actual operating duration is the undersize, only can supply the smart machine to work for several minutes or even several seconds 'time, for preventing because operating duration is too short, come too late to switch the commercial power, influence smart machine's work, need be switched into the commercial power by the battery immediately.
Optionally, in this embodiment of the present application, in step 205, after the actual operating time period is reached, the method may further include obtaining a remaining battery energy value, and after obtaining the remaining battery energy value, the method may further include: if the current residual electric energy value of the storage battery is larger than the lowest electric energy threshold value of the intelligent equipment, executing the step of calculating the residual target electric energy value required in the residual working time of the intelligent equipment; otherwise, the step of switching the power supply mode of the intelligent equipment from the storage battery to the commercial power is executed.
The power supply controller can selectively control the charging mode of the storage battery under the condition that the storage battery supplies power and charges simultaneously. Specifically, environmental data can be gathered through external environment monitoring sensor etc. and according to environmental data decision which kind of green energy adopted charges. In one example, the battery is charged by a solar power device and an air power device, and the external environment monitoring sensor is an integrated sensor module for detecting an environment. For example, whether the current time is day is judged through a light sensor, if the current time is day, the solar energy device is selected for charging, and if the current time is night, the air energy device is adopted for charging. Whether it rains is judged through the raindrop sensor, if it rains, the solar equipment is selected to be charged, and if it does not rain, the air energy equipment is adopted to be charged. Whether sunlight is sufficient or not is judged by the aid of the temperature sensor, and whether the current requirement for using air energy equipment is met or not is judged by the aid of the air flow sensor.
The embodiment of the present application further provides an example of a multipath power supply control method, as shown in fig. 4, the specific steps are as follows.
S401, starting a heating working mode of the intelligent mattress, and setting the preset working time to be 1 h.
And S402, acquiring the current residual electric energy value of the storage battery.
And S403, comparing the current residual electric energy value of the storage battery with the minimum electric energy threshold value for heating the intelligent mattress.
And if the current residual electric energy value is less than or equal to the minimum electric energy threshold value, S404, switching the power supply mode of the intelligent mattress from the storage battery to the commercial power.
And if the current residual electric energy value is larger than the minimum electric energy threshold value, S405, calculating a target electric energy value required by the intelligent mattress within 1 h.
And S406, comparing the target electric energy value with the current residual electric energy value of the storage battery.
And if the residual electric energy value is smaller than the target electric energy value, S407, calculating the actual working time of the residual electric energy value for the intelligent mattress to work.
And S408, comparing the actual working time length with the preset switching time length.
If the actual working time is less than or equal to the preset switching time, S404, switching the power supply mode of the intelligent mattress from the storage battery to the commercial power.
If the actual working time is longer than the preset switching time, S409 starts timing.
And S410, when the actual working time length is reached, calculating the residual target electric energy value required in the residual working time length of the intelligent mattress.
And S411, comparing the residual target electric energy value with the current residual electric energy value of the storage battery.
And if the current residual electric energy value of the storage battery is smaller than the residual target electric energy value, returning to 407, and if not, ending.
Based on the same technical concept, an embodiment of the present application further provides a multi-path power supply control device, where the device is applied to a power supply controller that controls a power supply mode of an intelligent device, where the power supply mode of the intelligent device includes a storage battery power supply and a mains power supply, and as shown in fig. 5, the device includes:
a first calculating unit 510, configured to calculate a target electric energy value required by the smart device within a preset operating time period when the smart device starts to operate;
a comparison unit 520 for comparing the target electric energy value with the current remaining electric energy value of the battery;
a second calculating unit 530, configured to calculate an actual operating time period for the intelligent device to operate according to the residual electric energy value when the residual electric energy value is smaller than the target electric energy value;
and the switching unit 540 is configured to switch the power supply mode of the intelligent device from the storage battery to the mains supply when the actual working time length is reached.
Based on the same technical concept, an embodiment of the present application further provides a multi-path power supply system, as shown in fig. 1, including: a power supply controller, a storage battery, commercial power, intelligent equipment and a plurality of green energy equipment, wherein,
The data input end of the power supply controller is respectively connected with the storage battery and the intelligent equipment, the switching control input end of the power supply controller is respectively connected with the storage battery and the commercial power, and the switching control output end of the power supply controller is connected with the intelligent equipment;
and the charging input end of the storage battery is respectively connected with the plurality of green energy devices.
Optionally, the power supply controller includes a switching module and a control module;
the data input end of the control module is respectively connected with the storage battery and the intelligent equipment, and the switching output end of the control module is connected with the switching module;
the input end of the switching module is respectively connected with the storage battery and the commercial power, and the output end of the switching module is connected with the intelligent equipment.
Optionally, the smart device is a smart mattress.
Based on the same technical concept, the embodiment of the present invention further provides a power supply controller, as shown in fig. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete mutual communication through the communication bus 604,
a memory 603 for storing a computer program;
The processor 601 is configured to implement the following steps when executing the program stored in the memory 603:
when the intelligent equipment starts to work, controlling the power supply mode of the intelligent equipment to be a storage battery;
calculating a target electric energy value required by the intelligent equipment within a preset working time length;
comparing the target electric energy value with the current residual electric energy value of the storage battery;
if the residual electric energy value is smaller than the target electric energy value, calculating the actual working time of the residual electric energy value for the intelligent equipment to work;
and when the actual working time is long, switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
Optionally, the calculating the target electric energy value required by the intelligent device within the preset working time period includes:
acquiring the current working power and preset working time of the intelligent equipment;
and calculating the electric energy value required by the intelligent equipment in the preset working time according to the power and the preset working time.
Optionally, the method further comprises:
acquiring a preset lowest electric energy threshold value of the intelligent equipment;
comparing the current residual electric energy value of the storage battery with the lowest electric energy threshold value;
If the residual electric energy value is larger than the lowest electric energy threshold value, executing the step of calculating the target electric energy value required by the intelligent equipment within the preset working time;
otherwise, switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
Optionally, the method further comprises:
comparing the actual working time length with a preset switching time length;
if the actual working time length is longer than the preset switching time length, executing the step of switching the power supply mode of the intelligent equipment from a storage battery to commercial power when the actual working time length is reached;
otherwise, switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
Optionally, the method further comprises:
under the condition that the storage battery supplies power and charges at the same time, when the actual working time length is reached, calculating a residual target electric energy value required in the residual working time length of the intelligent equipment;
comparing the residual target electric energy value with the current residual electric energy value of the storage battery;
if the current residual electric energy value of the storage battery is smaller than the residual target electric energy value, recalculating the actual working time of the residual electric energy value for the intelligent equipment to work;
Comparing the actual working time length with a preset switching time length;
if the actual working time length is longer than the preset switching time length, when the actual working time length is reached, executing the step of calculating the residual target electric energy value required in the residual working time length of the intelligent equipment;
otherwise, executing the step of switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
Optionally, the method further comprises:
if the current residual electric energy value of the storage battery is larger than the lowest electric energy threshold value of the intelligent equipment, executing the step of calculating the residual target electric energy value required in the residual working time of the intelligent equipment;
otherwise, executing the step of switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program realizes the steps of any of the above multiple power supply methods when executed by a processor.
In yet another embodiment, a computer program product containing instructions is provided, which when run on a computer, causes the computer to perform any of the above-described multiple power supply methods.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. The multi-path power supply control method is characterized by being applied to a power supply controller for controlling a power supply mode of intelligent equipment, wherein the power supply controller collects environmental data through an external environment monitoring sensor and determines which kind of green energy equipment is adopted for charging according to the environmental data; the power supply mode of the intelligent equipment comprises storage battery power supply and mains supply power supply, and the method comprises the following steps:
when the intelligent equipment starts to work, controlling the power supply mode of the intelligent equipment to be a storage battery;
calculating a target electric energy value required by the intelligent equipment within a preset working time length;
comparing the target electric energy value with the current residual electric energy value of the storage battery;
if the residual electric energy value is smaller than the target electric energy value, calculating the actual working time length of the residual electric energy value for the intelligent equipment to work in the current working mode; different working modes have different powers;
when the actual working time is up, switching the power supply mode of the intelligent equipment from a storage battery to commercial power;
the method further comprises the following steps:
comparing the actual working time length with a preset switching time length; the preset switching time length is the lowest working time length after the intelligent equipment starts the current working mode;
If the actual working time length is longer than the preset switching time length, executing the step of switching the power supply mode of the intelligent equipment from a storage battery to commercial power when the actual working time length is reached;
otherwise, switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
2. The method of claim 1, wherein calculating the target electrical energy value required by the smart device for the preset operating time period comprises:
acquiring the current working power and preset working time of the intelligent equipment;
and calculating the electric energy value required by the intelligent equipment in the preset working time according to the power and the preset working time.
3. The method of claim 1, further comprising:
acquiring a preset lowest electric energy threshold value of the intelligent equipment;
comparing the current residual electric energy value of the storage battery with the lowest electric energy threshold value;
if the residual electric energy value is larger than the lowest electric energy threshold value, executing the step of calculating the target electric energy value required by the intelligent equipment within the preset working time;
otherwise, switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
4. The method of claim 1, further comprising:
under the condition that the storage battery supplies power and charges at the same time, when the actual working time length is reached, calculating a residual target electric energy value required in the residual working time length of the intelligent equipment;
comparing the residual target electric energy value with the current residual electric energy value of the storage battery;
if the current residual electric energy value of the storage battery is smaller than the residual target electric energy value, recalculating the actual working time of the residual electric energy value for the intelligent equipment to work;
comparing the actual working time length with a preset switching time length;
if the actual working time length is longer than the preset switching time length, when the actual working time length is reached, executing the step of calculating the residual target electric energy value required in the residual working time length of the intelligent equipment;
otherwise, executing the step of switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
5. The method of claim 4, further comprising:
if the current residual electric energy value of the storage battery is larger than the minimum electric energy threshold value of the intelligent equipment in operation, executing the step of calculating the residual target electric energy value required in the residual operating time of the intelligent equipment;
Otherwise, executing the step of switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
6. The multi-path power supply control device is characterized in that the device is applied to a power supply controller for controlling a power supply mode of intelligent equipment, the power supply controller collects environmental data through an external environment monitoring sensor, and determines which kind of green energy equipment is adopted for charging according to the environmental data; the power supply mode of intelligent equipment includes battery powered and commercial power supply, the device includes:
the first calculation unit is used for calculating a target electric energy value required by the intelligent equipment within a preset working time when the intelligent equipment starts to work;
the comparison unit is used for comparing the target electric energy value with the current residual electric energy value of the storage battery;
the second calculating unit is used for calculating the actual working time length of the residual electric energy value for the intelligent equipment to work in the current working mode when the residual electric energy value is smaller than the target electric energy value; different working modes have different powers;
the switching unit is used for switching the power supply mode of the intelligent equipment from a storage battery to commercial power when the actual working time is up to the length;
The comparison unit is further used for comparing the actual working time length with a preset switching time length; the preset switching time length is the lowest working time length after the intelligent equipment starts the current working mode;
the switching unit is further used for switching the power supply mode of the intelligent equipment from a storage battery to commercial power when the actual working time length is longer than the preset switching time length and the actual working time length is reached; otherwise, switching the power supply mode of the intelligent equipment from the storage battery to the commercial power.
7. The power supply controller is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
8. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
9. A multi-path power supply system, comprising: the power supply controller of claim 7, the battery, the utility power, the smart device, and the plurality of green energy devices, wherein,
the data input end of the power supply controller is respectively connected with the storage battery and the intelligent equipment, the switching control input end of the power supply controller is respectively connected with the storage battery and the commercial power, and the switching control output end of the power supply controller is connected with the intelligent equipment;
the charging input end of the storage battery is respectively connected with the plurality of green energy devices; the power supply controller collects environmental data through the external environment monitoring sensor and determines which green energy equipment is adopted to charge according to the environmental data.
10. The multi-channel power supply system according to claim 9, wherein the power supply controller includes a switching module and a control module;
the data input end of the control module is respectively connected with the storage battery and the intelligent equipment, and the switching output end of the control module is connected with the switching module;
the input end of the switching module is respectively connected with the storage battery and the commercial power, and the output end of the switching module is connected with the intelligent equipment.
11. The multi-channel power supply system according to claim 9 or 10, wherein the smart device is a smart mattress.
CN201911019800.7A 2019-10-24 2019-10-24 Multi-path power supply control method, device and system and readable medium Active CN110912222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911019800.7A CN110912222B (en) 2019-10-24 2019-10-24 Multi-path power supply control method, device and system and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911019800.7A CN110912222B (en) 2019-10-24 2019-10-24 Multi-path power supply control method, device and system and readable medium

Publications (2)

Publication Number Publication Date
CN110912222A CN110912222A (en) 2020-03-24
CN110912222B true CN110912222B (en) 2022-02-11

Family

ID=69814696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911019800.7A Active CN110912222B (en) 2019-10-24 2019-10-24 Multi-path power supply control method, device and system and readable medium

Country Status (1)

Country Link
CN (1) CN110912222B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112969250B (en) * 2021-02-10 2022-12-20 深圳市道中创新科技有限公司 Power control method of battery-free food processor and battery-free food processor
CN112954839B (en) * 2021-02-10 2022-12-06 深圳市道中创新科技有限公司 Food processor with hybrid power supply and power control method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201219204Y (en) * 2008-06-13 2009-04-08 昆明理工大学 Solar power supply control device
JP2010206960A (en) * 2009-03-04 2010-09-16 Koyo Electronics Ind Co Ltd Secondary battery drive type programmable controller
CN102031665A (en) * 2010-12-10 2011-04-27 海尔集团公司 Smart power grid-based washing machine power supply detection and control method
CN107995762A (en) * 2017-12-25 2018-05-04 安徽极光照明工程有限公司 A kind of solar street light Lighting Control Assembly
CN109405132A (en) * 2018-10-16 2019-03-01 珠海格力电器股份有限公司 A kind of PV air-conditioner electricity consumption based reminding method, system, PV air-conditioner

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201219204Y (en) * 2008-06-13 2009-04-08 昆明理工大学 Solar power supply control device
JP2010206960A (en) * 2009-03-04 2010-09-16 Koyo Electronics Ind Co Ltd Secondary battery drive type programmable controller
CN102031665A (en) * 2010-12-10 2011-04-27 海尔集团公司 Smart power grid-based washing machine power supply detection and control method
CN107995762A (en) * 2017-12-25 2018-05-04 安徽极光照明工程有限公司 A kind of solar street light Lighting Control Assembly
CN109405132A (en) * 2018-10-16 2019-03-01 珠海格力电器股份有限公司 A kind of PV air-conditioner electricity consumption based reminding method, system, PV air-conditioner

Also Published As

Publication number Publication date
CN110912222A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN110912222B (en) Multi-path power supply control method, device and system and readable medium
US9970672B2 (en) Temperature control system and temperature control method
CN104716750B (en) A kind of low power consuming wireless power method and relevant apparatus, system
CN110553405A (en) Control method, device and equipment of water heater and storage medium
CN104422137A (en) Water heater appointment heating control method and system
CN112665141B (en) Air conditioner, control method and device thereof and storage medium
CN104879924B (en) Control method of water heater and intelligent control terminal of water heater
WO2023000813A1 (en) Method and apparatus for controlling water heater, and water heater
CN114820227A (en) Energy storage method and device
JP5995653B2 (en) Charge / discharge control device, charge / discharge control method, program, and charge / discharge control system
CN107676924B (en) Dehumidifier control method and system, readable storage medium and intelligent device
CN106685313B (en) Power generation control method and device for photovoltaic power station and photovoltaic power station
WO2022227834A1 (en) Photovoltaic air conditioner and control method thereof, electronic device, and readable storage medium
CN106292286B (en) A kind of home electrical user energy management method
CN111123719A (en) Household appliance control method, intelligent home controller and storage medium
CN114183928A (en) Water heater, control method of water heater and related equipment
CN206370695U (en) A kind of photovoltaic plant
CN114711690B (en) Control method of base station, cleaning device and storage medium
CN116231787A (en) Charging and discharging control method and device, terminal equipment and storage medium
JP5699705B2 (en) ELECTRIC DEVICE, ITS CONTROL METHOD, AND CONTROL PROGRAM
WO2014190831A1 (en) Battery control method and device, terminal and computer storage medium
CN112443937B (en) Air conditioner, control method and device thereof and readable storage medium
CN113237238A (en) Energy-saving control method, system and device for water heater and storage medium
CN110716445A (en) Intelligent household appliance control method and device based on Internet of things operating system
CN204793464U (en) Can make an appointment supply socket of break -make

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant