Power supply system parallel current equalization method, device and storage medium
By using CAN communication protocol and polling and response methods in the power supply parallel system, the output current of the first power supply is directly used to set the current, which solves the problem of slow power supply parallel response and improves efficiency and dynamic response capabilities.
Patent Information
- Application Number
- CN202411654385.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2044-11-19
AI Technical Summary
There is a problem of slow response during power supply paralleling, mainly because the host needs to collect the current from each slave and then sum it to average it, resulting in inefficiency in the entire process.
A power system current sharing method is proposed. The host setting frame and slave answering frame are constructed through the CAN communication protocol, and the output current of the first power supply is directly used as the current setting, and the polling and replying method is adopted to reduce the data transmission amount and communication delay.
It significantly improves the response efficiency during power supply paralleling, reduces communication delay, and accelerates dynamic response to a certain extent.
Smart Images

Figure CN119182190B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power supplies, and in particular to a method, device and storage medium for current balancing in parallel in a power supply system. Background Art
[0002] Power supplies are usually connected in parallel to provide a larger output, and current sharing is an important step in the parallel process. In order to achieve current sharing, the current general practice is: the user specifies a power supply as the master, and the other power supplies are controlled by the master as slaves. The master needs to collect the current of each slave, and then sum and average it as the slave setting and send it to each slave. The whole process has the problem of slow response. Summary of the invention
[0003] The present application aims to propose a method, device and storage medium for current equalization in parallel operation of a power supply system, thereby improving the response efficiency during the parallel operation of power supplies.
[0004] According to a power system parallel current balancing method according to an embodiment of the first aspect of the present application, the power system includes a first power supply and a plurality of second power supplies, the first power supply and the plurality of second power supplies are connected to each other via a CAN communication unit to achieve bus communication, the power system parallel current balancing method is applied to the first power supply, and the power system parallel current balancing method includes:
[0005] Acquire current sharing information, where the current sharing information includes a set voltage and a set current, where the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user preset voltage and a preset voltage increment;
[0006] Generate a host setting frame according to the current sharing information, the current cycle position and the slave address data of the second power source corresponding to the current cycle position, wherein a plurality of the second power sources correspond to a plurality of different slave address data, and the plurality of slave address data are used to participate in the generation of the host setting frame in a cycle in sequence, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame;
[0007] Sending the host setting frame to a plurality of second power supplies, so that after each of the second power supplies receives the host setting frame, it completes voltage adjustment and current adjustment according to the set voltage and the set current in the host setting frame, wherein the second power supply corresponding to the slave address data in the host setting frame generates a slave response frame, and the slave response frame includes the slave address data and slave operation data;
[0008] In response to the slave response frame, the slave operation data is written into a local buffer area, and the current cycle position is updated so that the current cycle position indicates the next slave address data.
[0009] According to a power system parallel current balancing method according to a second aspect of the present application, the power system includes a first power supply and multiple second power supplies, the first power supply and the multiple second power supplies are connected to each other via a CAN communication unit to achieve bus communication, the power system parallel current balancing method is applied to any of the second power supplies, and the power system parallel current balancing method includes:
[0010] Obtain a host setting frame, wherein the host setting frame is obtained by the first power supply according to the current sharing information, the current cycle position and the slave address data of the second power supply corresponding to the current cycle position, wherein the plurality of second power supplies correspond to a plurality of different slave address data, and the plurality of slave address data are used to participate in the generation of the host setting frame in sequence and in a cycle, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame; the current sharing information includes a set voltage and a set current, wherein the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user preset voltage and a preset voltage increment;
[0011] completing voltage adjustment according to the set voltage;
[0012] completing current adjustment according to the set current;
[0013] Matching the slave address data in the host setting frame with the slave address data locally stored in the second power supply to obtain a matching consistency result;
[0014] A slave response frame is generated according to the matching consistency result, and the slave response frame includes the slave address data and slave operation data.
[0015] According to a power system parallel current balancing device of an embodiment of a third aspect of the present application, the power system includes a first power supply and a plurality of second power supplies, the first power supply and the plurality of second power supplies are connected to each other via a CAN communication unit to achieve bus communication, the power system parallel current balancing device is applied to the first power supply, and the power system parallel current balancing device includes:
[0016] A current sharing information acquisition module, used to acquire current sharing information, wherein the current sharing information includes a set voltage and a set current, wherein the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user preset voltage and a preset voltage increment;
[0017] A host data frame generation module, used to generate a host setting frame according to the current sharing information, the current cycle position and the slave address data of the second power supply corresponding to the current cycle position, wherein a plurality of the second power supplies correspond to a plurality of different slave address data, and the plurality of slave address data are used to participate in the generation of the host setting frame in a cycle in sequence, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame;
[0018] a host data frame sending module, configured to send the host setting frame to a plurality of second power supplies, so that after receiving the host setting frame, each second power supply completes voltage adjustment and current adjustment according to the set voltage and the set current in the host setting frame, wherein the second power supply corresponding to the slave address data in the host setting frame generates a slave response frame, and the slave response frame includes the slave address data and slave operation data;
[0019] The host data frame receiving module is used to write the slave operation data into the local buffer area in response to the slave response frame, and update the current cycle position so that the current cycle position indicates the next slave address data.
[0020] According to a power system parallel current balancing device of a fourth aspect of the present application, the power system includes a first power supply and a plurality of second power supplies, the first power supply and the plurality of second power supplies are connected to each other via a CAN communication unit to achieve bus communication, the power system parallel current balancing device is applied to any of the second power supplies, and the power system parallel current balancing device includes:
[0021] A slave data frame receiving module is used to obtain a host setting frame, wherein the host setting frame is obtained by the first power supply according to the current sharing information, the current cycle position and the slave address data of the second power supply corresponding to the current cycle position, wherein the plurality of second power supplies correspond to a plurality of different slave address data, and the plurality of slave address data are used to participate in the generation of the host setting frame in a cycle in sequence, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame; the current sharing information includes a set voltage and a set current, wherein the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user preset voltage and a preset voltage increment;
[0022] A voltage adjustment module, used to complete voltage adjustment according to the set voltage;
[0023] A current adjustment module, used to complete current adjustment according to the set current;
[0024] An address matching module, used for matching the slave address data in the host setting frame with the slave address data stored locally by the second power supply to obtain a matching consistency result;
[0025] The response module is used to generate a slave response frame according to the matching consistency result, and the slave response frame includes the slave address data and slave operation data.
[0026] According to the computer-readable storage medium of the fifth aspect embodiment of the present application, computer executable instructions are stored, and the computer executable instructions are used to execute the power supply system parallel current sharing method as described in the first aspect embodiment above.
[0027] The power system parallel current equalization method, device and storage medium of the present application only use the host setting frame and slave response frame constructed based on the CAN communication protocol, so that the data transmission volume is extremely small and the communication delay is extremely short, which greatly reduces the communication delay. In addition, the output current of the first power supply is directly used as the current setting, which can also speed up the dynamic response to a certain extent.
[0028] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent from the description, or may be understood by practicing the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0030] Figure 1 A flow chart of a method for current balancing in parallel in a power system provided in one embodiment of the present application;
[0031] Figure 2 A flow chart of a method for current balancing in parallel in a power system provided by another embodiment of the present application;
[0032] Figure 3 A schematic diagram of the structure of a parallel current balancing device for a power supply system provided in one embodiment of the present application;
[0033] Figure 4 A schematic diagram of the structure of a parallel current balancing device for a power supply system provided in another embodiment of the present application. DETAILED DESCRIPTION
[0034] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0035] In the description of this application, if there is a description of first, second, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0036] In the description of the present application, it should be understood that the descriptions involving orientation, such as the orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0037] In the description of this application, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meaning of the above terms in this application based on the specific content of the technical solution.
[0038] The technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described below are only part of the embodiments of the present application, not all of the embodiments.
[0039] See also Figure 1 As shown, Figure 1 This is a flow chart of a method for current balancing in parallel in a power system provided by an embodiment of the present application. The method for current balancing in parallel in a power system includes but is not limited to the following steps:
[0040] Acquire current sharing information, where the current sharing information includes a set voltage and a set current, where the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user preset voltage and a preset voltage increment;
[0041] Generate a host setting frame according to the current sharing information, the current cycle position and the slave address data of the second power source corresponding to the current cycle position, wherein the plurality of second power sources correspond to a plurality of different slave address data, and the plurality of slave address data are used to participate in the generation of the host setting frame in a cycle in sequence, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame;
[0042] Sending a host setting frame to a plurality of second power supplies, so that after receiving the host setting frame, each second power supply completes voltage adjustment and current adjustment according to the set voltage and set current in the host setting frame, wherein the second power supply corresponding to the slave address data in the host setting frame generates a slave response frame, and the slave response frame includes the slave address data and the slave operation data;
[0043] In response to the slave response frame, the slave operation data is written into the local buffer area, and the current cycle position is updated so that the current cycle position indicates the next slave address data.
[0044] In order to better describe the power system parallel current balancing method of the embodiment of the present application, the power system is briefly described here. The power system includes multiple power supplies, wherein the power supply selected as the host is the first power supply, and the power supply selected as the slave is the second power supply. The first power supply and the multiple second power supplies are connected to the bus through a CAN (Controller Area Network) communication unit, and then the host setting frame and the slave response frame generated based on the CAN extension frame can be directly used to complete the communication.
[0045] The following describes a method for current balancing in parallel in a power supply system according to an embodiment of the present application based on the above-mentioned power supply system. In this embodiment, the method for current balancing in parallel in a power supply system is applied to a first power supply.
[0046] The user can complete the setting of the current sharing information through the operating system. After obtaining the current sharing information, the first power supply can obtain the set voltage and set current in the current sharing information. The set current can be calculated based on the average value of the output current of the first power supply collected in real time and the number of all power supplies, and the set voltage is preset by the user. It should be noted that the user preset is the user preset voltage. In order to allow the slave to work in the current loop, a preset voltage increment will be added when generating the set voltage, that is, the set voltage is the sum of the user preset voltage and the preset voltage increment.
[0047] After obtaining the current sharing information, the first power supply will generate a host setting frame, which needs to include setting voltage and setting current. When the host setting frame is sent to each second power supply, each second power supply can complete voltage adjustment and current adjustment according to the setting voltage and setting current.
[0048] The polling response method is adopted in this application, that is, each time the host setting frame is sent, each second power supply will receive it, and will complete the voltage adjustment and current adjustment according to the set voltage and current in the host setting frame, but it is not necessary for each second power supply to respond at the same time, only the second power supply corresponding to the slave address data carried in the host setting frame needs to respond. Which second power supply's slave address data is carried each time is determined by the current cycle position, and the current cycle position will be updated after receiving the slave response frame of the second power supply, and this update process is a cyclic update, that is, when all second power supplies have completed the response, the response process will be restarted from the second power supply at the first position in the cycle. The response process can reflect the network communication relationship between the first power supply and the second power supply, and this cyclic method can also reduce the amount of data transmission to a certain extent, making the control delay smaller.
[0049] After the first power supply sends the host setting frame to multiple second power supplies, the second power supply with the same slave address data will generate a slave response frame and send the slave response frame to the first power supply. After receiving the slave response frame, the first power supply will update the current cycle position. At the same time, the slave response frame will carry the slave operation data of the second power supply, such as voltage, current, alarm information, etc. The first power supply can store and display these data so that the staff can know and use them.
[0050] In the power system parallel current balancing method of the embodiment of the present application, only the host setting frame and the slave response frame constructed based on the CAN communication protocol are used, so that the data transmission volume is extremely small, the communication delay is extremely short, and the communication delay is greatly reduced. In addition, the output current of the first power supply is directly used as the current setting, which can also speed up the dynamic response to a certain extent. It should be noted that in addition to the host setting frame and the slave response frame, data frames with other functions can also be added according to actual needs.
[0051] In some embodiments, the obtaining of current sharing information includes:
[0052] In response to the current sharing control information, determining a host execution instruction according to the current sharing control information;
[0053] If the host execution instruction is a host start current sharing instruction, the current sharing information is obtained.
[0054] The current sharing control information is used to indicate whether to perform current sharing. Different host execution instructions will be generated according to the different results indicated by the current sharing information, for example, the host start current sharing instruction and the host shutdown instruction. Only when the host current sharing start instruction is detected will the current sharing information be obtained and the subsequent current sharing operation will be performed.
[0055] In some embodiments, the power system parallel current balancing method further includes:
[0056] If the host execution instruction is a host shutdown instruction, the first power supply output is stopped.
[0057] If a host shutdown command is detected, the output of the first power supply will be stopped. And usually when the host detects that the host shutdown command stops output, a slave shutdown command will be added to the host setting frame, and the host setting frame will be sent to the second power supply, so that the second power supply that receives the host setting frame can stop output according to the slave shutdown command. Similarly, during the execution of the operation, the first power supply will also write the slave start current sharing command into the host setting frame, so that the second power supply that receives the host setting frame can perform the current sharing operation according to the slave start current sharing command.
[0058] In some embodiments, the power system parallel current sharing method further includes:
[0059] If the slave response frame is not received after the first preset interval time of sending the master setting frame, the master setting frame is resent to the plurality of second power supplies.
[0060] There may be a situation where the second power supply cannot receive the host setting frame between the second power supply and the first power supply due to various reasons. Therefore, if the first power supply does not receive the slave response frame after the first preset interval, it will resend the same host setting frame to ensure the normal operation of the current sharing operation. It should be noted that there are two times for sending the host setting frame, one is to send it immediately after receiving the slave response frame, and the other is to resend it if the slave response frame is not received after the first preset time interval. In the former case, the current cycle position will be updated normally, and in the second case, the current cycle position will not be updated.
[0061] In some embodiments, the power system parallel current sharing method further includes:
[0062] If the number of times the host setting frame is continuously resent exceeds the preset alarm number, a first alarm message, the first alarm message, is generated.
[0063] In actual projects, if the slave machine response frame is not received for a long time, a first alarm message will be generated to alert the engineer to detect whether there is an off-grid situation.
[0064] In some embodiments, the host setting frame and the slave response frame are obtained using a CAN extended frame method.
[0065] Compared with redefining a communication method, directly using CAN extended frames can simplify a certain amount of work. At the same time, communicating based on the CAN communication unit can better ensure communication efficiency and accuracy. The specific definition of CAN extended frames is shown in Table 1.
[0066] Table 1
[0067]
[0068] The definitions of the storage areas in Table 1 are as follows:
[0069] Frame header: 0x00 indicates the host setting frame, and 0x80 indicates the slave response frame;
[0070] Event: When it is a host setting frame, it mainly indicates that the host executes instructions; when it is a slave response frame, it indicates various alarm information of the slave;
[0071] Response slave id: When setting the frame for the host, write the slave data address corresponding to the current cycle position; when it is a slave response frame, write the slave data address stored locally by the slave;
[0072] Reserved: can be fixed to 0;
[0073] Voltage: When it is a host setting frame, it indicates the setting voltage sent by the host to all slaves; when it is a slave response frame, it indicates the operating voltage of the slave, which is part of the slave operation data;
[0074] Current: When it is a host setting frame, it indicates the setting current sent by the host to all slaves; when it is a slave response frame, it indicates the operating current of the slave, which is part of the slave operating data.
[0075] See also Figure 2 As shown, Figure 2 Flow chart of a method for current balancing in parallel in a power system provided by another embodiment of the present application, the method for current balancing in parallel in a power system includes but is not limited to the following steps:
[0076] Obtain a host setting frame, where the host setting frame is obtained by the first power supply according to the current sharing information, the current cycle position, and the slave address data of the second power supply corresponding to the current cycle position, where multiple second power supplies correspond to multiple different slave address data, and the multiple slave address data are used to participate in the generation of the host setting frame in sequence, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame; the current sharing information includes a set voltage and a set current, where the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user-preset voltage and a preset voltage increment;
[0077] Complete voltage adjustment according to the set voltage;
[0078] Complete current adjustment according to the set current;
[0079] Matching the slave address data in the host setting frame with the slave address data stored locally in the second power supply to obtain a matching consistency result;
[0080] A slave response frame is generated according to the matching consistency result, and the slave response frame includes slave address data and slave operation data.
[0081] The following describes a method for current balancing in parallel in a power supply system according to an embodiment of the present application based on the above-mentioned power supply system. In this embodiment, the method for current balancing in parallel in a power supply system is applied to a second power supply.
[0082] The user can complete the setting of the current sharing information through the operating system. After obtaining the current sharing information, the first power supply can obtain the set voltage and current in the current sharing information. The set current can be calculated based on the average value of the output current of the first power supply collected in real time and the number of all power supplies, and the set voltage is preset by the user. It should be noted that the user presets the user preset voltage. In order to make the slave work in the current loop, a preset voltage increment will be added when generating the set voltage, that is, the set voltage is the sum of the user preset voltage and the preset voltage increment.
[0083] After obtaining the current sharing information, the first power supply will generate a host setting frame, which needs to include the set voltage and set current. When the host setting frame is sent to each second power supply, each second power supply can complete voltage adjustment and current adjustment according to the set voltage and set current.
[0084] The polling response method is adopted in this application, that is, each time the host setting frame sent by the first power supply is received, each second power supply will receive it, and will complete the voltage adjustment and current adjustment according to the set voltage and set current in the host setting frame, but it is not necessary for each second power supply to respond at the same time, only the second power supply corresponding to the slave address data carried in the host setting frame needs to respond. Which second power supply's slave address data is carried each time is determined by the current cycle position, and the current cycle position will be updated after receiving the slave response frame of the second power supply, and this update process is a cyclic update, that is, when all the second power supplies have completed the response, the response process will be restarted from the second power supply at the first position in the cycle. The response process can reflect the network communication relationship between the first power supply and the second power supply, and this cyclic method can also reduce the amount of data transmission to a certain extent, making the control delay smaller.
[0085] After receiving the host setting frame sent by the first power supply, the second power supply will match it with the locally stored slave address data. If they are consistent, a slave response frame will be generated and sent to the first power supply. The first power supply will update the current cycle position only after receiving the slave response frame. At the same time, the slave response frame will carry the slave operation data of the second power supply, such as voltage, current, alarm information, etc. The first power supply can store and display these data so that the staff can know and use them.
[0086] In the power system parallel current equalization method of the embodiment of the present application, only the host setting frame and the slave response frame constructed based on the CAN communication protocol are used, so that the data transmission volume is extremely small and the communication delay is extremely short, which greatly reduces the communication delay. In addition, the output current of the first power supply is directly used as the current setting, which can also speed up the dynamic response to a certain extent.
[0087] In some embodiments, the above-mentioned generating a slave response frame according to the matching consistency result includes:
[0088] If the matching consistency result indicates that the slave address data in the host setting frame is consistent with the slave address data locally stored in the second power supply, a slave response frame is generated.
[0089] When the slave address data in the received host setting frame is consistent with the locally stored slave address data, the second power supply will generate a slave response frame. Although the other inconsistent second power supplies will not generate slave response frames, they can also parse the host setting frame to complete the current balancing increase by obtaining the setting voltage and setting current.
[0090] In some embodiments, the power system parallel current balancing method further includes:
[0091] If the host executes the instruction to start the slave current sharing instruction, current adjustment, voltage adjustment and / or slave response frame generation are performed.
[0092] The current sharing control information is used to indicate whether to perform current sharing. The first power supply will generate different host execution instructions according to the different results indicated by the current sharing information, for example, the host start current sharing instruction and the host shutdown instruction. The current sharing information will be obtained only when the host current sharing start instruction is detected, and the slave start current sharing instruction will be written into the host setting frame and sent to each second power supply. The second power supply will perform subsequent current sharing operations only when it receives the slave start current sharing instruction.
[0093] In some embodiments, the host setting frame further includes a slave execution instruction, and the power system parallel current balancing method further includes:
[0094] If the slave execution instruction is a slave shutdown instruction, the second power supply output is stopped.
[0095] The slave shutdown instruction is generated by the first power supply, written into the host setting frame, and sent to each second power supply. The second power supply will stop outputting after receiving the slave shutdown instruction.
[0096] In some embodiments, the current adjustment according to the set current includes:
[0097] Execute the incremental PID algorithm on the set current to obtain the current increment;
[0098] The current output of the second power supply is controlled according to the current increment and the set current.
[0099] When the second power supply controls the current output, in order to avoid causing the output oscillation of the parallel system, an incremental PID algorithm needs to be added to the current output, in which the Kd coefficient can be 0, and the Kp and Ki coefficients are debugged and determined according to the actual parallel situation. The target value of the incremental PID is the set current, and the feedback value is the real-time sampling value of the second power supply current. After the incremental PID operation, the current increment is obtained, and the output current of the second power supply is adjusted to the current output current of the second power supply plus the current increment.
[0100] In some embodiments, the power system parallel current balancing method further includes:
[0101] If the host setting frame is not received within the second preset interval, a second alarm message is generated, and the second alarm message is used to indicate that the second power source is separated from the first power source in communication.
[0102] If the host setting frame is not received for a long time, it means that the second power supply is out of communication with the first power supply. At this time, an alarm needs to be issued to avoid problems in the parallel process. If necessary, the parallel process can even be stopped directly. It should be noted that the second preset interval time can usually be set to the time required for the first power supply to send multiple host setting frames, and the specific time can have a certain allowable fluctuation range.
[0103] In some embodiments, the power system parallel current balancing method further includes:
[0104] If the slave address data in the multiple host setting frames received within the third preset interval are consistent, a third alarm message is generated. The third preset interval is determined according to the time it takes for the first power supply to poll and send a round to the multiple second power supplies.
[0105] The first power supply sends multiple host setting frames in a polling manner. If the second power supply receives two host setting frames including the same slave data address before one round of sending is completed, it can be determined that there is a repeated sending situation. At this time, an alarm is required so that the staff can promptly troubleshoot the problem.
[0106] The power system parallel current balancing method provided in the embodiment of the present application can be performed by a power system parallel current balancing device. In the embodiment of the present application, the parallel current balancing device performing the parallel current balancing method is taken as an example to illustrate the parallel current balancing device provided in the embodiment of the present application.
[0107] refer to Figure 3 The embodiment of the present application further provides a power system parallel current balancing device, the power system includes a first power supply and a plurality of second power supplies, the first power supply and the plurality of second power supplies are connected to each other by bus communication through a CAN communication unit, the power system parallel current balancing device is applied to the first power supply, and the power system parallel current balancing device includes:
[0108] A current sharing information acquisition module, used to acquire current sharing information, the current sharing information includes a set voltage and a set current, the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user preset voltage and a preset voltage increment;
[0109] A host data frame generation module, used to generate a host setting frame according to the current sharing information, the current cycle position and the slave address data of the second power source corresponding to the current cycle position, wherein the plurality of second power sources correspond to a plurality of different slave address data, and the plurality of slave address data are used to participate in the generation of the host setting frame in a cycle in sequence, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame;
[0110] A host data frame sending module, used for sending a host setting frame to a plurality of second power supplies, so that after each second power supply receives the host setting frame, it completes voltage adjustment and current adjustment according to the set voltage and set current in the host setting frame, wherein the second power supply corresponding to the slave address data in the host setting frame generates a slave response frame, and the slave response frame includes the slave address data and the slave operation data;
[0111] The host data frame receiving module is used to write the slave operation data into the local buffer area in response to the slave response frame, and update the current cycle position so that the current cycle position indicates the next slave address data.
[0112] refer to Figure 4 The embodiment of the present application further provides a power system parallel current balancing device, the power system includes a first power supply and a plurality of second power supplies, the first power supply and the plurality of second power supplies are connected to each other via a CAN communication unit to achieve bus communication, the power system parallel current balancing device is applied to any of the above-mentioned second power supplies, and the power system parallel current balancing device includes:
[0113] A slave data frame receiving module is used to obtain a host setting frame, where the host setting frame is obtained by the first power supply according to the current sharing information, the current cycle position and the slave address data of the second power supply corresponding to the current cycle position, where multiple second power supplies correspond to multiple different slave address data, where the multiple slave address data are used to participate in the generation of the host setting frame in a cycle in sequence, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame; the current sharing information includes a set voltage and a set current, where the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user preset voltage and a preset voltage increment;
[0114] A voltage adjustment module, used to complete voltage adjustment according to a set voltage;
[0115] A current adjustment module, used to complete current adjustment according to the set current;
[0116] An address matching module, used for matching the slave address data in the host setting frame with the slave address data stored locally by the second power supply to obtain a matching consistency result;
[0117] The response module is used to generate a slave response frame according to the matching consistency result, and the slave response frame includes slave address data and slave operation data.
[0118] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. The computer-executable instructions are executed by a processor or a control module, so that the above-mentioned processor can execute the power supply system parallel current equalization method in the above-mentioned embodiment, for example, execute the method described above.
[0119] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed methods above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium or a non-transitory medium and a communication medium or a temporary medium. As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk DVD or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0120] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present application.
Claims
1. A method for current balancing in parallel in a power supply system, characterized in that: The power supply system includes a first power supply and a plurality of second power supplies, wherein the first power supply and the plurality of second power supplies are connected to each other via a CAN communication unit to realize bus communication, and the power supply system parallel current balancing method is applied to the first power supply, and the power supply system parallel current balancing method includes: Acquire current sharing information, where the current sharing information includes a set voltage and a set current, where the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user preset voltage and a preset voltage increment; Generate a host setting frame according to the current sharing information, the current cycle position and the slave address data of the second power source corresponding to the current cycle position, wherein a plurality of the second power sources correspond to a plurality of different slave address data, and the plurality of slave address data are used to participate in the generation of the host setting frame in a cycle in sequence, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame; Sending the host setting frame to a plurality of second power supplies, so that after each of the second power supplies receives the host setting frame, it completes voltage adjustment and current adjustment according to the set voltage and the set current in the host setting frame, wherein the second power supply corresponding to the slave address data in the host setting frame generates a slave response frame, and the slave response frame includes the slave address data and slave operation data; In response to the slave response frame, the slave operation data is written into a local buffer area, and the current cycle position is updated so that the current cycle position indicates the next slave address data.
2. The method for current balancing in parallel in a power supply system according to claim 1, characterized in that: The obtaining of current sharing information includes: In response to the current sharing control information, determining a host execution instruction according to the current sharing control information; If the host execution instruction is a host start current sharing instruction, the current sharing information is obtained.
3. The method for current balancing in parallel in a power supply system according to claim 1, characterized in that: The power system parallel current sharing method further includes: If the slave response frame is not received after the first preset interval time of sending the master setting frame, the master setting frame is resent to the plurality of second power supplies.
4. The method for current balancing in parallel in a power supply system according to claim 3, characterized in that: The power system parallel current balancing method further includes: If the number of times the host setting frame is continuously resent exceeds a preset alarm number, a first alarm message is generated, the first alarm message.
5. A method for current balancing in parallel in a power supply system, characterized in that: The power supply system includes a first power supply and a plurality of second power supplies, wherein the first power supply and the plurality of second power supplies are connected to each other via a CAN communication unit to realize bus communication, and the power supply system parallel current balancing method is applied to each of the second power supplies, and the power supply system parallel current balancing method includes: Obtain a host setting frame, wherein the host setting frame is obtained by the first power supply according to the current sharing information, the current cycle position and the slave address data of the second power supply corresponding to the current cycle position, wherein the plurality of second power supplies correspond to a plurality of different slave address data, and the plurality of slave address data are used to participate in the generation of the host setting frame in sequence and in a cycle, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame; the current sharing information includes a set voltage and a set current, wherein the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user preset voltage and a preset voltage increment; completing voltage adjustment according to the set voltage; completing current adjustment according to the set current; Matching the slave address data in the host setting frame with the slave address data locally stored in the second power supply to obtain a matching consistency result; A slave response frame is generated according to the matching consistency result, and the slave response frame includes the slave address data and slave operation data.
6. The method for current balancing in parallel in a power supply system according to claim 5, characterized in that: The step of completing the current adjustment according to the set current includes: Executing an incremental PID algorithm on the set current to obtain a current increment; The current output of the second power supply is controlled according to the current increment and the set current.
7. The method for current balancing in parallel in a power supply system according to claim 5, characterized in that: The power system parallel current sharing method further includes: If the host setting frame is not received within a second preset interval, a second alarm message is generated, where the second alarm message is used to indicate that the second power source is separated from the first power source in communication.
8. A current balancing device for a power system, characterized in that: The power supply system includes a first power supply and a plurality of second power supplies, wherein the first power supply and the plurality of second power supplies are connected to each other by bus communication through a CAN communication unit, and the power supply system parallel current balancing device is applied to the first power supply, and the power supply system parallel current balancing device includes: A current sharing information acquisition module, used to acquire current sharing information, wherein the current sharing information includes a set voltage and a set current, wherein the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user preset voltage and a preset voltage increment; A host data frame generation module, used to generate a host setting frame according to the current sharing information, the current cycle position and the slave address data of the second power supply corresponding to the current cycle position, wherein a plurality of the second power supplies correspond to a plurality of different slave address data, and the plurality of slave address data are used to participate in the generation of the host setting frame in a cycle in sequence, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame; a host data frame sending module, configured to send the host setting frame to a plurality of second power supplies, so that after receiving the host setting frame, each second power supply completes voltage adjustment and current adjustment according to the set voltage and the set current in the host setting frame, wherein the second power supply corresponding to the slave address data in the host setting frame generates a slave response frame, and the slave response frame includes the slave address data and slave operation data; The host data frame receiving module is used to write the slave operation data into the local buffer area in response to the slave response frame, and update the current cycle position so that the current cycle position indicates the next slave address data.
9. A current balancing device for parallel connection of a power supply system, characterized in that: The power supply system includes a first power supply and a plurality of second power supplies, wherein the first power supply and the plurality of second power supplies are connected to each other via a CAN communication unit to realize bus communication, and the power supply system parallel current balancing device is applied to each of the second power supplies, and the power supply system parallel current balancing device includes: A slave data frame receiving module is used to obtain a host setting frame, wherein the host setting frame is obtained by the first power supply according to the current sharing information, the current cycle position and the slave address data of the second power supply corresponding to the current cycle position, wherein the plurality of second power supplies correspond to a plurality of different slave address data, and the plurality of slave address data are used to participate in the generation of the host setting frame in a cycle in sequence, and the current cycle position is used to indicate the slave address data currently participating in the generation of the host setting frame; the current sharing information includes a set voltage and a set current, wherein the set current is obtained according to the output current of the first power supply, and the set voltage is obtained according to a user preset voltage and a preset voltage increment; A voltage adjustment module, used to complete voltage adjustment according to the set voltage; A current adjustment module, used to complete current adjustment according to the set current; An address matching module, used for matching the slave address data in the host setting frame with the slave address data stored locally by the second power supply to obtain a matching consistency result; The response module is used to generate a slave response frame according to the matching consistency result, and the slave response frame includes the slave address data and slave operation data.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the power supply system parallel current sharing method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Multifunctional communication method for integrated variable frequency motor
CN105404181A
Method and system for realizing AXI bus broadcast mechanism
CN110674075A