Multithreading-based energy distribution system and methodTechnical Field
The invention belongs to the field of electronic equipment, and relates to an energy distribution system and method based on multithreading.
Background
With the development of electricity technology, many electronic devices are powered by batteries or battery packs and battery packs, so that the batteries or battery packs are free from the beam of a wired power supply, and the application range of the electronic devices is widened. At present, frequent charging and discharging of the battery has to be required due to the limitation of the battery capacity.
Referring to fig. 1, the high-power charging and discharging device in the existing battery charging and discharging structure needs to be configured with multiple groups of AC/DC power modules to respectively complete charging and discharging of the battery, so that the high-power charging and discharging device is large in size, high in cost, long in charging and discharging time and low in efficiency. In addition, under the existing battery charging and discharging structure, referring to fig. 2, a plurality of groups of low-power batteries need to be charged and discharged simultaneously at the same time, so that the defects of 1, power configuration needs to be configured according to the maximum power of a load, which causes overlarge total power of a system, 2, power module configuration according to channels, which causes excessive occupied space and increased installation difficulty, 3, excessive modules, overlarge total power and excessive installation space, which causes high cost, 4, in actual use, not all channels operate simultaneously, which causes the ineffective utilization of the total power of the system, low efficiency and long charging and discharging completion time, and 5, in single-phase power supply, because not all battery loads operate simultaneously, not all battery load powers are consistent, the power distribution is unbalanced. In summary, the existing battery charging and discharging structure cannot meet the current requirements.
Disclosure of Invention
The invention aims to overcome the defects that the high-power charge and discharge equipment in the prior art is overlarge in volume and low in energy use efficiency in the charge and discharge process, and provides an energy distribution system and method based on multiple threads.
In order to achieve the purpose, the invention is realized by adopting the following technical scheme:
an energy distribution system based on multithreading comprises an AC/DC power module, a direct current bus and a plurality of groups of battery loads, wherein the direct current bus comprises a direct current positive bus and a direct current negative bus;
One end of a direct current positive bus is connected with the AC/DC power module, the other end of the direct current positive bus is connected with anodes of a plurality of groups of battery loads, one end of a direct current negative bus is connected with the AC/DC power module, the other end of the direct current negative bus is connected with cathodes of a plurality of groups of battery loads, a switch assembly is arranged between the battery loads and the direct current positive bus or between the battery loads and the direct current negative bus, and the switch assembly is connected with the AC/DC power module.
The invention further improves the multithread-based energy distribution system in that:
The system also comprises a system cabinet, wherein the AC/DC power module, the direct current bus and the plurality of groups of battery loads are all arranged inside the system cabinet.
The power system comprises an AC/DC power module, an upper computer, a power supply module and a power supply module, wherein the power supply module is used for supplying power to the AC/DC power module, the power supply module is used for supplying power to the power supply module, and the power supply module is used for supplying power to the power supply module.
The AC/DC power module is the same as the power of the battery load having the largest power among all the battery loads.
The switch assembly is a high-voltage relay which is integrated inside the battery load.
The power distribution device also comprises a power distributor, wherein one end of the power distributor is connected with the AC/DC power module, and the other end of the power distributor is connected with the battery management system of all battery loads.
The power divider is integrated inside the AC/DC power module.
In another aspect of the present invention, a multithreading-based energy distribution method includes the steps of:
step 1, distributing addresses to each group of battery loads, and setting the total charge and discharge duration;
Step 2, setting a primary charge-discharge time length of each group of battery loads and a charge-discharge sequence of all the battery loads;
Step 3, the switch components of the current battery load are communicated, the communication time is the primary charge and discharge time length corresponding to the current battery load address, and the switch components of the rest battery loads are disconnected;
Step 4, carrying out step 3 on each group of battery loads in turn according to the charge-discharge sequence of step 2;
And 5, repeating the steps 3 and 4 until the total charge and discharge time is reached.
The multithreading-based energy distribution method of the invention is further improved in that:
the specific method in the step 2 is as follows:
The method comprises the steps of setting the priority of charging and discharging of battery loads according to the charging and discharging requirements of the battery loads, and setting the primary charging and discharging duration of each group of battery loads and the charging and discharging sequence of all battery loads according to the priority of charging and discharging of the battery loads.
The step 4 further includes:
and when the charge and discharge of the current battery load are completed, continuously switching off the switch assembly of the current battery load, and selecting the next group of battery loads to carry out the step 3, otherwise, carrying out the step 3.
Compared with the prior art, the invention has the following beneficial effects:
According to the energy distribution system, a plurality of groups of battery loads are connected in parallel to one end of an AC/DC power module through a direct current bus, a switch assembly is arranged between the battery loads and a direct current positive bus or a direct current negative bus, the switch assembly is connected with the AC/DC power module, and the connection and disconnection of the switch assembly are controlled through the AC/DC power module. The whole energy distribution system is only provided with one AC/DC power module, the installation space is reduced, the volume of the whole energy distribution system can be reduced, or the capacity of a battery load is increased under the condition of the same volume, compared with the existing charge and discharge scheme, the whole energy distribution system is small in the number of modules, the required installation space is small, the cost is saved, the resource utilization rate is improved, a plurality of groups of battery loads which are connected in parallel are connected with the AC/DC power module only through a direct current positive bus and a direct current negative bus, the wiring is simple and convenient, the structure is clear, the switching-in and switching-out of the battery loads can be realized through the connection and disconnection of a switch assembly, the charge and discharge flexibility of the energy distribution system is further improved, the charge and discharge of only one battery load can be realized at the same moment, and the battery load power is balanced.
Furthermore, the power of the AC/DC power module is the same as the power of the battery load with the largest power in all battery loads, the total power of the energy distribution system is configured according to the power of the largest battery load, the sum of the power of all battery loads is not needed to be considered, and at the same time point, only one group of battery loads are charged and discharged, and at the moment, the AC/DC power module works at full power, so that effective utilization can be achieved.
Furthermore, a power distributor is arranged, the AC/DC power module is controlled by the power distributor to configure proper power for each group of battery loads, the battery loads with various power levels can be adapted, and the battery load power can be flexibly configured.
The energy distribution method of the invention realizes the accurate control of switching in and out of each group of battery loads by distributing addresses to each group of battery loads, and realizes the charge and discharge of only one battery load at the same time and balance the charge and discharge power of the battery loads by connecting the switch components of the current battery loads and disconnecting the switch components of the other battery loads, wherein the connecting time is the primary charge and discharge time corresponding to the current battery load address, and simultaneously, the primary charge and discharge time of each group of battery loads is set according to the battery load address, and the charge and discharge are carried out in a time-sharing manner, thereby preventing the battery load temperature from being overhigh due to the continuous charge and discharge of the same battery load, and further prolonging the charge and discharge time, improving the charge efficiency and effectively shortening the charge and discharge total time.
Further, by setting the priority of battery load charge and discharge according to the battery load address and performing charge and discharge according to the order of the battery load charge and discharge from high to low, it is possible to complete rapid charge and discharge for a specific battery load.
Drawings
FIG. 1 is a prior art topology of an energy distribution circuit;
FIG. 2 is a timing diagram of energy distribution in the prior art;
FIG. 3 is a topology of an energy distribution circuit in an example of the invention;
fig. 4 is a timing diagram of energy distribution in an example of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It is noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of the present invention and in the foregoing figures, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
The invention is described in further detail below with reference to the attached drawing figures:
Referring to fig. 3, the multithreading-based energy distribution system of the invention comprises a system cabinet, an AC/DC power module, a direct current bus, a power distributor, an upper computer and a plurality of groups of battery loads, wherein the direct current bus comprises a direct current positive bus and a direct current negative bus.
One end of the direct current positive bus is connected with the AC/DC power module, the other end of the direct current positive bus is connected with the anodes of the battery loads, one end of the direct current negative bus is connected with the AC/DC power module, the other end of the direct current negative bus is connected with the cathodes of the battery loads, a switch component is arranged between the battery loads and the direct current positive bus or the direct current negative bus and is connected with the AC/DC power module, one end of the switch component is connected with a battery, the other end of the switch component is connected with the direct current positive bus or the direct current negative bus and is used for disconnecting or connecting the direct current positive bus or the direct current negative bus with the battery loads, and the switch component can be directly integrated inside the battery loads. The AC/DC power module, the direct current bus and the battery loads are all arranged inside the system cabinet, and the AC/DC power module, the direct current bus and the battery loads are accommodated and protected through the system cabinet.
The connection and disconnection of the high-voltage relay are controlled by the AC/DC power module, and the connection and disconnection of the battery load are realized by the connection and disconnection of the high-voltage relay. The upper computer distributes addresses for different battery loads, the battery loads share one address with the connected high-voltage relay, and the charging and discharging priorities are set through the addresses, so that the charging and discharging priorities can be set manually or automatically. The time of one-time charge and discharge or the total charge and discharge duration of the battery load is realized by setting the time of disconnection and connection of the high-voltage relay. After the system wiring is completed, the charge and discharge time length can be set manually or automatically through the upper computer. After the system works, the charge and discharge are circularly carried out in a plurality of battery loads at high frequency, and multithreading is operated simultaneously, so that the charge and discharge requirements are met.
The power distributor is connected with a battery management system BMS of the battery load, determines the charge and discharge power of the battery load, controls the AC/DC power module to distribute proper power to the battery load through the power distributor, and can adapt to the battery loads with various power levels and flexibly configure. The power divider may be integrated directly inside the AC/DC power module.
The power of the AC/DC power module is the same as the power of the battery load with the maximum power. The AC/DC power module is configured according to the energy demand, the AC/DC power module is configured according to the highest power of a plurality of load batteries, and at the same time point, only one group of batteries are charged and discharged, and at the moment, the AC/DC power module works at full power, so that the effective utilization can be realized. According to the direct current bus structure, wiring is completed, only one group of AC/DC power modules is needed, no additional power modules are needed to be matched, a plurality of groups of battery loads are not needed to be installed in a split channel mode, the battery loads are completely installed in parallel, the installation space is reduced, and the size of an energy distribution system can be reduced or the load capacity of the battery can be increased.
If the battery load is in a full or empty state in the charging and discharging process, the battery load in the full or empty state can be automatically cut out, the segmentation time is automatically adjusted, the power distributor calculates the time length required for one-time charging and discharging of each group of battery load according to the battery information provided by the battery management system BMS and the charging and discharging priority set by the upper computer, and then issues a control instruction according to the calculated time length, so that the charging and discharging of the residual battery load are completed, and the charging efficiency is improved. If the charge and discharge of a specific battery load need to be completed quickly, the segmentation duration of the corresponding battery load can be adjusted to complete the priority setting so as to meet the requirements.
The invention also discloses an energy distribution method based on multithreading, which comprises the following steps:
and step 1, distributing addresses to each group of battery loads, and setting the total charge and discharge duration.
And step 2, setting one charge and discharge time length of each group of battery load according to the battery load address, and if the charge and discharge of a specific load are required to be completed quickly, adjusting the segmentation time length of the corresponding load and completing the priority setting so as to meet the requirement.
And 3, communicating the switch components of the current battery load, wherein the communication time is the primary charge and discharge time length corresponding to the current battery load address, and the switch components of the rest battery loads are disconnected.
And step 4, carrying out step 3 on each group of battery loads in sequence, if the load is in a full or empty state in the charging and discharging process, automatically cutting out the load in the full or empty state, automatically adjusting the segmentation time, completing the charging and discharging of the residual load, and improving the charging efficiency, namely, continuously switching off the switch assembly of the current battery load when the charging and discharging of the current battery load are completed.
And 5, repeating the steps 3 and 4 until the total charge and discharge time is reached.
Examples
In this embodiment, four groups of battery loads are selected, the battery loads are generally selected according to requirement analysis, system requirement definition is obtained, and selection is completed, at this time, a designer does not need to face the design difficulty and complexity of the requirement, the total power required by the battery loads is calculated, a proper AC/DC power module is selected, the power of the AC/DC power module is the same as the power of the maximum battery load, the power of each group of battery loads is not required to be calculated respectively, how to balance each group of battery loads is not required to be considered, and the method is not limited to hardware installation size.
According to the wiring shown in fig. 3, an AC/DC power module capable of meeting the power requirement is provided, 4 groups of battery loads are connected to an output bus of the AC/DC power module in parallel to complete wiring, and a battery management system BMS of each group of battery loads is connected with the AC/DC power module to complete communication with the battery loads. The AC/DC power module is in protocol communication with the battery management system BMS, the battery management system BMS provides information of the battery pack and the battery core for the AC/DC power module, and the information comprises an SOC, a voltage, a required voltage during charging, a current, a maximum allowable voltage, a maximum allowable current, a maximum allowable rated capacity and the like of the battery, and the AC/DC power module issues a control instruction to control on-off of a high-voltage relay of a battery load.
And the dynamic switching access system of the battery load is realized by controlling the disconnection and the connection of the high-voltage relay. Referring to fig. 4, the system setup is completed at time 0 to t0, the system is started, the high-voltage relays connected with the battery load BAT1 are connected and disconnected at time t0 to t1, the charge and discharge operation on the battery load BAT1 is realized, the high-voltage relays connected with the battery load BAT2 are connected and disconnected at time t1 to t2, the charge and discharge operation on the battery load BAT2 is realized, the high-voltage relays connected with the battery load BAT3 are connected and disconnected at time t2 to t3, the charge and discharge operation on the battery load BAT3 is realized, the high-voltage relays connected with the battery load BAT4 are connected and disconnected at time t3 to t4, the charge and discharge operation on the battery load BAT4 is realized, namely, a charge and discharge cycle is completed at time t0 to t4, the charge and discharge operations on all battery loads are completed once, the charge and discharge cycles are completed at time t0 to t4, the charge and discharge cycles are completed repeatedly, the whole system can be adjusted to have the same number of charge and discharge operations on all battery loads when the battery load are not shown.
Compared with the existing battery charging and discharging structure, the system and the method have the advantages that 1, the total power of the system is configured according to the maximum battery load power, and the sum of all battery load powers is not needed to be considered. 2. The system only needs to be provided with one AC/DC power module, reduces the installation space, can reduce the volume of the system or increase the load capacity of a battery, has simple and convenient wiring and clear structure, has small volume, can reasonably apply power and has small installation space requirement compared with the existing charge-discharge structure, thereby saving the cost and improving the resource utilization rate, has flexible configuration when being suitable for the battery loads with various power, has increased flexibility of charge and discharge, and balances the charge-discharge power of the battery loads.
The above is only for illustrating the technical idea of the present invention, and the protection scope of the present invention is not limited by this, and any modification made on the basis of the technical scheme according to the technical idea of the present invention falls within the protection scope of the claims of the present invention.