File transmission method and device and energy storage system

By using two different channels in file transfer for data transmission and feedback of transmission indicator information, the problem of low file transfer efficiency in the prior art is solved, and faster file transfer is achieved.

CN119728665APending Publication Date: 2025-03-28ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311271529.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-27
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, file transmission efficiency is low, especially in the upgrade scenario of large-scale energy storage systems, the sender needs to wait for the receiver's erroneous response message, resulting in an extended transmission time.

Method used

The control device sends the first frame of the target file to the M controlled devices through the first channel, and obtains the transmission indication information through the second channel. If the receiver successfully receives the first frame, the control device continues to send the second frame of the target file.

Benefits of technology

The second channel is used to quickly transmit the indication information, avoid timeout judgment, shorten the time for transferring the target file, and improve the efficiency of file transfer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728665A_ABST
    Figure CN119728665A_ABST
Patent Text Reader

Abstract

The invention discloses a file transmission method and device and an energy storage system, which are applied to the field of communication and solve the problem of low file transmission efficiency in related technologies, the file transmission method provided by the invention comprises the following steps: a control device sends a first frame of a target file to M controlled devices through a first channel, and the first channel is used for transmitting the target file; the control device obtains transmission indication information through the second channel, wherein the transmission indication information is used for indicating whether the first frame is successfully received; under the condition that the M controlled devices successfully receive the first frame, the control device sends a second frame of the target file to the M controlled devices through the first channel; the second frame is the next frame of the first frame, and the second channel is different from the first channel. In the application, the data frame of the target file is transmitted through the first channel, and the transmission indication information is quickly fed back through the other second channel, so that the time for transmitting the target file is shortened, and the file transmission efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communications, and in particular to a file transmission method, device and energy storage system. Background Art

[0002] With the development of technology, file transfer is increasingly involved in the communication process.

[0003] In the related art, file transmission can generally be achieved through point-to-multipoint multicast communication. For example, the sender transmits the data frame of the file to the receiver in a multicast manner, and the receiver generally does not feedback the response information. When the sender determines that it has not received the error response message from the receiver within a period of time, it will automatically transmit the next data frame of the file.

[0004] In the related art, when the sender transmits files in multicast mode, the receiver will not feedback response information but needs to make a timeout judgment by the sender. This may cause the sender to wait for a long time during the data frame transmission process, thereby affecting the efficiency of file transmission. Summary of the invention

[0005] The embodiments of the present application provide a file transmission method, device and energy storage system to solve the problem of low file transmission efficiency in the related art.

[0006] In a first aspect, an embodiment of the present application provides a file transmission method, the method comprising:

[0007] The control device sends a first frame of a target file to the M controlled devices through a first channel, where the first channel is used to transmit the target file;

[0008] The control device acquires transmission indication information through the second channel, where the transmission indication information is used to indicate whether the first frame is successfully received;

[0009] In a case where the M controlled devices successfully receive the first frame, the control device sends a second frame of the target file to the M controlled devices through the first channel;

[0010] The second frame is a next frame of the first frame, and the second channel is different from the first channel.

[0011] In a second aspect, an embodiment of the present application provides a file transmission method, the method comprising:

[0012] The target controlled device receives a first frame of a target file sent by the control device through a first channel, where the first channel is used to transmit the target file;

[0013] The target controlled device sends transmission indication information through a second channel, where the transmission indication information is used to indicate whether the first frame is successfully received;

[0014] In a case where the transmission indication information indicates that the first frame is successfully received, the target controlled device receives a second frame of the target file sent by the control device through the first channel;

[0015] The second frame is a next frame of the first frame, and the second channel is different from the first channel.

[0016] In a third aspect, an embodiment of the present application provides a control device, including a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0017] In a fourth aspect, an embodiment of the present application provides a controlled device, comprising a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the second aspect are implemented.

[0018] In a fifth aspect, an embodiment of the present application provides an energy storage system, comprising: a control device according to the third aspect and at least one controlled device according to the fourth aspect.

[0019] In an embodiment of the present application, a control device sends a first frame of a target file to M controlled devices through a first channel, and the first channel is used to transmit the target file; the control device obtains transmission indication information through a second channel, and the transmission indication information is used to indicate whether the first frame is a valid frame that is successfully received; when the M controlled devices successfully receive the first frame, the control device sends a second frame of the target file to the M controlled devices through the first channel; wherein the second frame is the next frame of the first frame, and the second channel is different from the first channel. In this way, in the scenario where the control device transmits a file to the controlled device, the control device transmits a data frame of the target file to the controlled device through the first channel, and the controlled device feeds back transmission indication information to the control device through another second channel as a mark of successful transmission of the data frame of the target file. Compared with the method of not feeding back information but performing timeout judgment in the related art, since the present application uses another second channel to quickly feed back transmission indication information, the time for transmitting the target file is shortened, and the efficiency of file transmission is improved to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A schematic diagram of the structure of an energy storage system provided in an embodiment of the present application;

[0021] Figure 2 A flowchart of a file transmission method provided in an embodiment of the present application;

[0022] Figure 3-1 A schematic diagram of a control device and a controlled device transmitting a target file through a first channel provided in an embodiment of the present application;

[0023] Figure 3-2 A schematic diagram of a control device provided in an embodiment of the present application obtaining transmission indication information through a second channel;

[0024] Figure 3-3 A schematic diagram of a control device provided in an embodiment of the present application obtaining transmission indication information through another second channel;

[0025] Figure 3-4 A flowchart of another file transmission method provided in an embodiment of the present application;

[0026] Figure 3-5 A flowchart of another file transmission method provided in an embodiment of the present application;

[0027] Figure 3-6 A flowchart of another file transmission method provided in an embodiment of the present application;

[0028] Figure 3-7 A flowchart of another file transmission method provided in an embodiment of the present application;

[0029] Figure 4 A flowchart of another file transmission method provided in an embodiment of the present application;

[0030] Figure 5-1 A schematic diagram of the connection between the BSMU and the BCMU provided in the embodiment of the present application;

[0031] Figure 5-2 A schematic diagram of a BSMU performing a program upgrade on a BCMU provided in an embodiment of the present application;

[0032] Figure 5-3 A schematic diagram of a BSMU according to an embodiment of the present application determining whether a data frame is successfully received by a BCMU through a DO / DI signal;

[0033] Figure 6-1 A schematic diagram of the connection between the BCMU and the BMU provided in the embodiment of the present application;

[0034] Figure 6-2 A schematic diagram of a BSMU controlling a BCMU to perform a proxy mode provided in an embodiment of the present application;

[0035] Figure 6-3A schematic diagram of a BCMU performing a program upgrade on a BMU provided in an embodiment of the present application;

[0036] Figure 6-4 A schematic diagram of a BSMU controlling a BCMU to perform a proxy mode provided in an embodiment of the present application;

[0037] Figure 6-5 A schematic diagram of the connection of the second channel between the BSMU, BCMU and BMU provided in an embodiment of the present application;

[0038] Figure 7 A flowchart of another file transmission method provided in an embodiment of the present application;

[0039] Figure 8-1 A flowchart of another file transmission method provided in an embodiment of the present application;

[0040] Figure 8-2 A flowchart of another file transmission method provided in an embodiment of the present application;

[0041] Fig. 9 A flowchart of another file transmission method provided in an embodiment of the present application;

[0042] Fig.10 A schematic diagram of the structure of a control device provided in an embodiment of the present application;

[0043] Fig.11 A schematic diagram of the structure of a controlled device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] It should be pointed out that for the upgrade scenario of large-scale energy storage systems, the file transfer method provided in the embodiment of the present application can be applied to the upgrade of all energy storage systems that logically meet the multi-level power management system architecture, for example, it can be applied to power energy storage, photovoltaic energy storage, communication energy storage, and data center UPS (Uninterruptible Power Supply) supporting high-voltage lithium batteries and other scenarios.

[0046] For example, with the large-scale construction of 5G facilities, energy storage has become a core technology to promote the energy revolution and a must-have technology for future energy transformation. Value-added services such as peak and frequency regulation, multi-energy complementarity, virtual power plants, and peak shaving and valley filling using energy storage systems are constantly developing and evolving, becoming an important trend in future new energy.

[0047] In the related art, large-scale energy storage systems are composed of a multi-level BMS (Battery Management System) architecture. Figure 1 As shown, a large-scale energy storage system includes a battery system management unit (BSMU), a large number of battery cluster management units (BCMU), and a large number of battery management units (BMU).

[0048] However, there is a problem in the related art that the upgrade time of large-scale energy storage systems is long. For example, due to the large number of BCMUs and BMUs in the energy storage system, when adding new services to the energy storage system, there is a need for the BSMU to transmit the upgrade file to a large number of BCMUs and a large number of BMUs. Since the BSMU waits for a long time in the process of transmitting the data frame of the upgrade file, the efficiency of file transmission is affected, and the upgrade time of a large number of BCMUs and a large number of BMUs is very long, which has a great impact on the maintainability of the energy storage system and indicators such as the station downtime.

[0049] Based on this, the file transmission method provided in the embodiment of the present application, when transmitting the data frame of the upgrade file through the controller area network (CAN) channel, determines that the transmitted data frame is valid through the level status fed back by the input / output channel, and utilizes the fast response of the level status fed back by the input / output channel to reduce the timeout judgment after sending the data frame, shorten the time of sending the data frame, and thus shorten the upgrade time of the energy storage system.

[0050] Of course, the file transfer method provided in the embodiment of the present application can also be applied to other typical file transfer scenarios, and the present application does not impose any specific limitations on this.

[0051] The technical solution provided by the present invention is described in detail below in conjunction with the accompanying drawings.

[0052] Figure 2 is a flowchart of a file transmission method provided by an embodiment of the present application, see Figure 2 , the method may specifically include the following steps:

[0053] Step 210: the control device sends the first frame of the target file to the M controlled devices through the first channel, where the first channel is used to transmit the target file;

[0054] Step 220: The control device obtains transmission indication information through the second channel, where the transmission indication information is used to indicate whether the first frame is successfully received;

[0055] Step 230: When the M controlled devices successfully receive the first frame, the control device sends the second frame of the target file to the M controlled devices through the first channel;

[0056] The second frame is the next frame of the first frame, and the second channel is different from the first channel.

[0057] In step 210, M is a positive integer. The specific value of M can be limited according to actual needs, and this application does not impose any specific limitation.

[0058] In step 210, the first channel is used to transmit the target file. The first channel can be a data transmission channel, for example, a CAN channel, a serial port channel, an industrial Ethernet channel, etc. The present application does not specifically limit the type of the first channel. The target file can be a configuration file, an upgrade file, an update file, a system installation file, or other control file. The present application does not specifically limit the type of the target file.

[0059] In step 210, the target file may include multiple data frames, and the first frame of the target file may be any frame in the target file. The present application does not impose any specific restrictions on the frame number of the first frame in the target file. The first frame of the target file may be the current frame sent by the control device, and correspondingly, the second frame is the next frame of the current frame.

[0060] In step 220, the second channel and the first channel are different physical channels, and the transmission indication information is sent by a controlled device coupled to the control device among the M controlled devices, and is used to indicate whether the M controlled devices successfully receive the first frame.

[0061] The fact that the controlled device successfully receives the first frame can be understood as the controlled device receiving the first frame, and the received first frame is a valid frame.

[0062] In step 230, when the control device determines through the transmission indication information that the M controlled devices successfully receive the first frame, the control device sends the second frame of the target file to the M controlled devices through the first channel.

[0063] It should be pointed out that, when M is 1, the control device unicasts the target file to a controlled device through the first channel. Since the controlled device does not need to feedback the response information through the more crowded first channel, but instead feeds back the transmission indication information to the control device through another second channel as a mark of successful transmission of the data frame of the target file, the time for transmitting the target file is shortened, and the efficiency of file transmission is improved to a certain extent.

[0064] In addition, when M is greater than 1, the control device multicasts the target file to multiple controlled devices through the first channel. Since the control device does not need to perform a timeout judgment, the controlled devices instead feed back transmission indication information to the control device through another second channel as a mark of successful transmission of the target file's data frame, thereby shortening the time for transmitting the target file and improving the efficiency of file transmission to a certain extent.

[0065] According to the file transmission method provided by the embodiment of the present application, the control device sends the first frame of the target file to M controlled devices through the first channel, and the first channel is used to transmit the target file; the control device obtains transmission indication information through the second channel, and the transmission indication information is used to indicate whether the first frame is a valid frame that is successfully received; when the M controlled devices successfully receive the first frame, the control device sends the second frame of the target file to the M controlled devices through the first channel; wherein the second frame is the next frame of the first frame, and the second channel is different from the first channel. In this way, in the scenario where the control device transmits a file to the controlled device, the control device transmits the data frame of the target file to the controlled device through the first channel, and the controlled device feeds back the transmission indication information to the control device through another second channel as a mark of successful transmission of the data frame of the target file. Compared with the method of not feeding back information but performing timeout judgment in the related art, since the present application uses another second channel to quickly feed back the transmission indication information, the time for transmitting the target file is shortened, and the efficiency of file transmission is improved to a certain extent.

[0066] In a specific embodiment, Figure 3-1 As shown, the control device is connected to M controlled devices via a first channel, so as to send a target file to the M controlled devices. Wherein, on the first channel, the control device is connected to each controlled device respectively.

[0067] like Figure 3-2 As shown, the control device is connected to M controlled devices through the second channel to obtain transmission instruction information. In the second channel, the control device is connected to the first controlled device, the first controlled device is connected to the second controlled device, and so on, and the last controlled device is directly connected to the control device.

[0068] Or, if Figure 3-3 As shown, on the second channel, the control device is connected to the first controlled device, the first controlled device is connected to the second controlled device, and so on, the last controlled device is connected to the first controlled device, and the first controlled device is connected to the control device.

[0069] In practical applications, on the second channel, the present application can set the last controlled device to be directly connected to the control device, or set the last controlled device to be connected to the control device through the first controlled device, based on actual conditions, such as considering the distance between the control device and the last controlled device.

[0070] like Figure 3-4 As shown, in the above step 220, the control device obtains the transmission instruction information through the second channel, which may specifically include:

[0071] Step 2201: the control device sends target indication information to the first controlled device among the M controlled devices through the second channel;

[0072] Step 2202: the control device receives transmission instruction information through the second channel, where the transmission instruction information is sent by the second controlled device among the M controlled devices in response to the target instruction information;

[0073] The first controlled device and the second controlled device are coupled to the control device; the first controlled device and the second controlled device are the same device or different devices.

[0074] In step 2201, refer to Figure 3-2 , the first controlled device may be the controlled device (1), and the second controlled device may be the controlled device (M). The first controlled device and the second controlled device are both coupled to the control device. When M is 1, the first controlled device and the second controlled device are the same device, namely, the controlled device (1); when M is greater than 1, the first controlled device and the second controlled device are different devices.

[0075] For example, refer to Figure 3-3 , when M is greater than or equal to 1, the first controlled device and the second controlled device are the same device, namely, the controlled device (1).

[0076] In step 2202, taking M greater than 1 as an example, for example, refer to Figure 3-2After the control device sends the first frame, it notifies the controlled device (1) through the output interface. The controlled device (1) detects the target indication information of the input interface and determines that the first frame is successfully received. The controlled device (1) notifies the controlled device (2) through the output interface, and so on, until all controlled devices have completed the processing. The last controlled device (M) notifies the control device through the output interface. The control device detects the transmission indication information, then determines that all controlled devices have completed the processing, and transmits the data frame according to the transmission indication information.

[0077] In this way, the control device can determine whether the M controlled devices successfully receive the first frame of the target file according to the transmission indication information sent by the second controlled device in response to the target indication information.

[0078] In addition, if Figure 3-4 As shown, after the control device obtains the transmission instruction information through the second channel in step 220, the method may further include the following steps:

[0079] Step 240: The control device determines whether the transmission instruction information matches the target instruction information;

[0080] Step 250: When the transmission indication information matches the target indication information, the control device determines that the M controlled devices have successfully received the first frame.

[0081] Among them, when the transmission indication information matches the target indication information, the control device determines that M controlled devices successfully receive the first frame; when the transmission indication information does not match the target indication information, the control device determines that at least one controlled device among the M controlled devices fails to successfully receive the first frame.

[0082] In this way, the control device can determine whether the M controlled devices have successfully received the first frame of the target file by judging whether the target indication information sent by it matches the transmission indication information sent by the controlled device in response to the target indication information.

[0083] In which, in step 240, the second channel can be an input / output channel; M is a positive integer greater than 1, and both the target indication information and the transmission indication information include a level status; when the level status carried by the target indication information and the level status carried by the transmission indication information are the same, the transmission indication information matches the target indication information.

[0084] The level state may include a high level state and a low level state, and the reception of the transmission indication information may adopt an interrupt form to quickly respond to the current data frame sending result.

[0085] When the level state carried by the target indication information and the level state carried by the transmission indication information are the same, it can be determined that the transmission indication information matches the target indication information. When the level state carried by the target indication information and the level state carried by the transmission indication information are different, it can be determined that the transmission indication information does not match the target indication information.

[0086] In a specific embodiment, in step 2201, before the control device sends target indication information to the first controlled device among the M controlled devices through the second channel, the method may further include:

[0087] The control device flips the level state of the output interface coupled to the first controlled device, and uses the level state obtained after the flipping as part of the target indication information;

[0088] The target indication information may further include: a level status bit flip instruction, where the status bit flip instruction is used to instruct the first controlled device to flip the level status when the first frame is successfully received.

[0089] For example, refer to Figure 3-2 The output interface of the control device is connected to the input interface of the first controlled device, and the input interface of the control device is connected to the output interface of the last controlled device. The level states of the input / output interfaces of the control device and the M controlled devices are initialized to a high level state or a low level state. After the control device multicasts the current data frame, the level state of the output interface is flipped, and a DO (Digital Output) signal is output through the output interface to notify the controlled device (1); after the controlled device (1) detects that the level state of the input interface is flipped, it receives a DI (Digital Output) signal through the input interface. Input, digital input) signal, when it determines that it has successfully received the first frame, it flips the level state of its own output interface, and outputs a DO signal through the output interface to notify the controlled device (2); and so on, until all controlled devices have completed processing, the last controlled device (M) detects that the level state of the input interface has been flipped, and receives a DI signal through the input interface. When it determines that it has successfully received the current data frame, it outputs a DO signal through the output interface to notify the control device. After the control device detects that the level state of the input interface has been flipped, it receives a DI signal through the input interface, and then determines that all controlled devices have successfully received the current data frame. Then, the control device can multicast the next data frame and flip the level state of the output interface.

[0090] In addition, in order to ensure the reliability of file transmission, in a specific embodiment, Figure 3-5 As shown, after step 220, the method may further include:

[0091] Step 260: When the control device determines through the transmission indication information that the M controlled devices have not successfully received the first frame, the control device sends the first frame to the M controlled devices through the first channel.

[0092] Among them, step 260 can be performed after step 240. For example, after step 240, when the transmission indication information does not match the target indication information, the control device determines through the transmission indication information that the M controlled devices have not successfully received the first frame. In this case, the control device resends the first frame to the M controlled devices through the first channel, and ensures the reliability of file transmission through the error retransmission mechanism.

[0093] For example, in another specific embodiment, Figure 3-6 As shown, the method may also include:

[0094] Step 270: When receiving the error signal from the first channel, the control device sends the first frame to the M controlled devices through the first channel.

[0095] Wherein, step 270 may be performed after step 210. For example, the error signal from the first channel may be error response information for the first frame. For example, when some controlled devices fail to successfully receive the first frame, but the input / output interface transmission is abnormal, causing the control device to receive the transmission indication information from the second channel, at this time, when the control device sends the next frame, if any controlled device determines that the first frame is not successfully received and responds to the error signal through the first channel, the control device may resend the first frame after receiving the response of the "error response information".

[0096] In this way, when the control device receives error response information from any controlled device through the first channel, it resends the first frame to the M controlled devices through the first channel, and ensures the reliability of file transmission through the error retransmission mechanism.

[0097] In addition, since the transmission indication information is transmitted through the input / output interface (for example, DO / DI interface) to determine whether the controlled device successfully receives the first frame, when there is level interference, the DO / DI interface is unstable. In order to ensure the reliability of file transmission, when there are some input / output interface transmission anomalies, resulting in the control device not receiving the transmission indication information from the second channel, the reliability of file transmission can be ensured by a timeout retransmission mechanism. For example, in a specific embodiment, Figure 3-7 As shown, the method may also include:

[0098] Step 280: When the control device does not receive the transmission instruction information from the second channel within the preset time, the control device sends the first frame to the M controlled devices through the first channel.

[0099] Wherein, step 280 may be performed after step 210. In this case, the control device resends the first frame to the M controlled devices through the first channel, and the reliability of file transmission is ensured through a timeout retransmission mechanism.

[0100] The file transmission method provided in the embodiment of the present application is described in detail below in conjunction with an application scenario of upgrading a large-scale controlled device.

[0101] In a specific embodiment, M is a positive integer greater than 1, and the first frame and the second frame sent by the control device are both sent in the form of broadcasting; wherein the first channel includes a CAN channel, and the target file includes an upgrade file.

[0102] The embodiment of the present application transmits the upgrade file in the form of broadcasting, so that multiple controlled devices can uniformly obtain the upgrade file, so that multiple controlled devices can be upgraded concurrently in the future, shortening the time to obtain the upgrade file. In addition, in the process of transmitting the CAN data frame of the upgrade file in the form of broadcasting, the level signal transmitted through the input / output channel is used as a mark of the successful transmission of the CAN data frame, and the control device does not need to perform a timeout judgment, thereby shortening the time to send the CAN transmission frame by broadcasting.

[0103] See also Figure 4 The file transmission method provided in the embodiment of the present application is executed by a control device and may specifically include the following steps:

[0104] Step 410: the control device sends a data transmission trigger frame to the M controlled devices through the first channel, and receives responses from the M controlled devices to the data transmission trigger frame;

[0105] Step 420: The control device sends the first frame of the target file to the M controlled devices through the first channel, wherein the first channel is used to transmit the target file; the first frame is a data transmission start frame or a data transmission frame;

[0106] Step 430: the control device obtains transmission indication information through a second channel, where the transmission indication information is used to indicate whether the first frame is successfully received; wherein the second channel is different from the first channel;

[0107] Step 440: When the M controlled devices successfully receive the first frame, the control device sends a second frame of the target file to the M controlled devices through the first channel; wherein the second frame is a data transmission frame and is the next frame of the first frame;

[0108] Step 450: After the control device sends the last frame of the target file to the M controlled devices through the first channel, the control device sends a program upgrade trigger frame to the M controlled devices through the first channel, and receives responses from the M controlled devices to the program upgrade trigger frame.

[0109] Among them, step 420 may refer to the specific content of step 210, step 430 may refer to the specific content of step 220, and step 440 may refer to the specific content of step 230.

[0110] Among them, step 410 is executed after step 420 , and step 450 is executed after step 440 .

[0111] The communication frames used by the control device to communicate with the controlled device through the first channel include the following types:

[0112] Data transmission trigger frame: point-to-point communication, used to obtain the name of the target file required by the controlled device, and secondly, to control the controlled device to enter the transmission mode of the upgrade file.

[0113] Data transmission first frame: broadcast communication, used for the control device to transmit relevant information of the upgrade file to the controlled device, including but not limited to: the total number of frames, length, CRC check information, etc. of the upgrade file.

[0114] Data transmission frame 1-data transmission frame n: broadcast communication, used for the control device to transmit the upgrade file to the controlled device.

[0115] Program upgrade trigger frame: point-to-point communication, used for the control device to trigger the controlled device to start program update after the controlled device receives the upgrade file.

[0116] Data transmission interruption frame: point-to-point communication, used during the upgrade file transmission process, when the user cancels the program update, or when the controlled device responds to the error signal multiple times, the control device uses the transmission interruption frame to let the specified controlled device exit the upgrade file transmission.

[0117] Program upgrade status feedback frame: point-to-point communication, used for BSMU to query BCMU about the upgrade progress of BMU during the BMU upgrade process.

[0118] As shown in Table 1 below, the frame format of the communication frame includes:

[0119]

[0120] Table 1

[0121] Among them, 1. TYPE field: indicates whether the data transmitted by the communication frame is the data of the upgrade file transmission process or ordinary communication data. 2. SRC_DEV field: indicates the device type of the sender of the communication frame. 3. SRC_ADDR field: indicates the device address of the sender of the communication frame. 4. FUNC field, distinguishes which of the above frames the type of the communication frame is. 5. FRM_NO field: indicates the sequence number of the communication frame. 6. RTN field, return code, whether the communication frame is received successfully or failed. 7. DEST_DEV / ADDR / RSVD field: indicates the address of the controlled device and the controlled device; used to determine which controlled device is being upgraded. 8. LEN field: indicates the length of the data transmitted by the communication frame. 9. DATA field: indicates the data transmitted by the communication frame, such as the upgrade file. 10. CRC field: indicates the CRC check information, which determines whether the entire communication frame is erroneous or missing during the transmission process.

[0122] The judgment of broadcast and unicast can be made based on the DEST_DEV / ADDR / RSVD fields in the communication frame, that is, the three fields of destination device type (1 byte) + destination device address (1 byte) + reserved (1 byte). For example, when the BSMU upgrades the BCMU, the three fields can all be 0; when the BSMU upgrades the BMU, the destination device type (i.e., the DEST_DEV field) can be BMU information. When the BSMU upgrades the BMU, the destination device address (i.e., the DEST_ADDR field) can be 0, which means broadcast upgrade of all BMUs, otherwise, the BMU corresponding to the destination device address is upgraded.

[0123] In practical applications, such as Figure 5-1 As shown, when the controlling device is a BSMU, the controlled device may be a BCMU.

[0124] Among them, BSMU is connected to M BCMUs through the CAN bus, and the BSMU and BCMU can manage communication and collect information through the CAN bus.

[0125] The BSMU and BCMU are connected in a daisy chain manner through the I / O interface. The BSMU is connected to the first BCMU, the first BCMU is connected to the second BCMU, and so on. The I / O interface of the last BCMU is directly connected to the BSMU. Alternatively, the I / O interface of the last BCMU is connected to the BSMU through the I / O interface of the first BCMU (refer to Figure 6-5 ).

[0126] refer to Figure 5-1 In the upgrade scenario shown, when the BSMU concurrently upgrades each BCMU, the file transmission method provided in the embodiment of the present application may specifically include the following steps:

[0127] S1: BSMU obtains the upgrade file of BCMU;

[0128] In practical applications, the embodiment of the present application can transfer the upgrade file to the BSMU through a remote network management or a dedicated program, or copy it to the BSMU through a USB flash drive.

[0129] S2: BSMU, starts the upgrade of BCMU.

[0130] S3: The BSMU notifies each BCMU in turn to enter the data transmission mode through a data transmission trigger frame until all BCMUs successfully enter the data transmission mode.

[0131] S4: BSMU broadcasts a frame of data to all BCMUs through a data transmission frame and waits for the response of BCMU. The response method of BCMU is that if the broadcast frame received by BCMU is valid, it will not respond, and if it is invalid, it will respond. BSMU determines whether to broadcast the next frame of data or rebroadcast the current frame of data based on the response result of BCMU. If BSMU does not receive a response, it broadcasts the next frame, and if it receives a response, it broadcasts the current frame.

[0132] Among them, in order to ensure that BSMU correctly receives the response of each BCMU, the I / O trigger method is used. After BSMU broadcasts a frame of data, it notifies the first BCMU through the I / O interface. BCMU detects the notification of the I / O interface and determines that the received broadcast frame is valid and does not need to be responded. If it is invalid, it responds with an error. Then the first BCMU notifies the second BCMU through I / O, and so on, until all BCMUs are processed. The last BCMU notifies the BSMU through I / O. BSMU detects the I / O input, then determines that all BCMUs are processed. Complete, and broadcast data according to the response of the BCMU.

[0133] Among them, since the I / O transmission notification message is used to determine whether the BCMU correctly receives the data transmission frame, there is instability when there is level interference. In order to ensure the reliability of the upgrade, an error retransmission mechanism is added to the program. When some of the I / O transmissions are abnormal, resulting in the BSMU not receiving the I / O input, there will be a timeout retransmission mechanism. Or some BCMUs do not receive the correct data transmission frame, but the I / O transmission is abnormal, resulting in the BSMU receiving the I / O input. When the BSMU sends the next data frame, if there is a specific BCMU that determines that the data transmission frame is invalid and responds with an error response, the BSMU will rebroadcast the current data frame after receiving the "data transmission frame error response" response, so that the specific BCMU can receive the current data frame again, and the data transmission frames received by other BCMUs with duplicate frame numbers can be discarded.

[0134] Among them, if a specific BCMU connection feeds back a data transmission frame error response for a preset number of times, the BSMU can send a data transmission interruption frame to the specific BCMU and obtain a data transmission interruption frame response from the specific BCMU to interrupt the transmission of the upgrade file of the specific BCMU, and record the information of the specific BCMU, waiting for other BCMUs to be upgraded and then processed separately.

[0135] S5: Execute S4 in a loop until all data frames are broadcasted.

[0136] S6: The management unit BSMU notifies all BCMUs in sequence to upgrade the program through an upgrade trigger frame, and waits for the BCMU upgrade to be completed, and the whole process ends.

[0137] When BSMU performs concurrent upgrades on each BCMU, the specific communication frame transmission process can be referred to Figure 5-2 .

[0138] It should be noted that, in the process of the control device sending the data transmission trigger frame, the data transmission trigger frame may include multiple frames to ensure the reliability of file transmission. Figure 5-2 , BSMU can use CAN channel to send multiple (for example, three) data transmission trigger frames to each BCMU point-to-point in sequence. BCMU will reply after receiving the data transmission trigger frame three times in a row, and enter the upgrade file transmission process after three trigger confirmations. In this way, the reliability of file transmission by each BCMU is guaranteed through multiple triggers.

[0139] When the BSMU broadcasts the first data transmission frame or the data transmission frame to each BCMU, the DI / DO signal transmitted through the I / O channel determines whether the first data transmission frame or the data transmission frame is successfully received. For the specific judgment process, please refer to Figure 5-3 .

[0140] In addition, in actual applications, when the control device is a BSMU, the controlled device may be a BMU (not shown). The process of concurrently upgrading each BMU by the BSMU is similar to the process of concurrently upgrading each BCMU by the BSMU. However, in this case, since the BSMU is not directly connected to the BMU but is connected to the BMU through the BCMU, the CAN communication frame between the BSMU and the BMU needs to be forwarded by the BCMU, resulting in a longer CAN communication frame transmission path, thereby extending the file transmission time to a certain extent.

[0141] Based on this, when concurrently upgrading each BMU, in addition to the BSMU directly performing concurrent upgrades on the BMU, the embodiment of the present application can also convert the BCMU into an agent of the BSMU. In the agent mode, the BCMU can implement concurrent upgrades of each BMU according to the logic of the BSMU broadcast upgrade.

[0142] like Figure 6-1 As shown, when the controlling device is a BCMU, the controlled device may be a BMU.

[0143] like Figure 6-1 As shown, each BCMU is connected to the BMU it manages through a CAN bus, and the BCMU and BMU can manage communication and collect information through the CAN.

[0144] The BCMU and the BMUs it manages are connected in a daisy-chain manner through I / O interfaces. The BCMU is connected to the first BMU, the first BMU is connected to the second BMU, and so on. The I / O interface of the last BMU is directly connected to the BCMU. Alternatively, the I / O interface of the last BMU is connected to the BCMU through the I / O interface of the first BMU (see Figure 6-5 ).

[0145] Before the BCMU concurrently upgrades each BMU, in the embodiment of the present application, the BSMU may first control the BCMU to perform a proxy mode, and transmit the upgrade file of the BMU to the BCMU first.

[0146] like Figure 6-2 As shown, in the case where the control device is a BCMU and the controlled device is a BMU, before step 410, the method may further include:

[0147] Step 610: The BCMU receives a designated data transmission trigger frame from the BSMU, where the designated data transmission trigger frame carries BMU device information;

[0148] The designated data transmission trigger frame is used to determine whether the device to be upgraded is a BMU device, rather than a BCMU device.

[0149] Step 620: The BCMU enters the proxy mode in response to the designated data transmission trigger frame;

[0150] Step 630: BCMU receives all frames of the upgrade file sent by BSMU;

[0151] The upgrade file is the upgrade file of the BMU.

[0152] Step 640: The BCMU receives a designated program upgrade trigger frame from the BSMU, where the designated program upgrade trigger frame carries BMU device information.

[0153] The designated program upgrade trigger frame is used to trigger the BCMU to control the BMU device to upgrade. The upgrade of the BMU device by the BCMU is similar to the upgrade of the BCMU device by the BSMU, which will not be described in detail here.

[0154] In this way, BSMU converts BCMU into a BSMU agent by specifying data transmission trigger frames and specifying program upgrade trigger frames. According to the similar logic of BSMU broadcast upgrade of BCMU, BCMU implements the upgrade of BMU agent. Compared with BSMU directly upgrading BMU, the CAN communication frame transmission path is shortened, thereby reducing the file transmission time to a certain extent.

[0155] In practical applications, reference Figure 6-1 In the upgrade scenario shown, when the BCMU concurrently upgrades each BMU, the file transmission method provided in the embodiment of the present application may specifically include the following steps:

[0156] S1: BSMU obtains the BMU upgrade file;

[0157] Among them, the embodiment of the present application can transfer the upgrade file to the management unit BSMU through a remote network management or a dedicated program, or copy it to the management unit BSMU through a USB flash drive.

[0158] S2: BSMU starts the BMU upgrade.

[0159] S3: The BSMU notifies the BCMUs to enter the data transmission mode in sequence by specifying a data transmission trigger frame until all BCMUs successfully enter the data transmission mode.

[0160] S4: BSMU broadcasts a frame of data to all BCMUs through a data transmission frame and waits for a response from the BCMU. The response method of the BCMU is that if the BCMU successfully receives the broadcast frame, it will not respond, otherwise it will respond. The BSMU determines whether to broadcast the next frame of data or rebroadcast the current frame of data based on the response result of the BCMU. If the BSMU does not receive a response, it broadcasts the next frame, otherwise it broadcasts the current frame.

[0161] Among them, in order to ensure that BSMU correctly receives the response of each BCMU, the I / O trigger method is used. After BSMU broadcasts a frame of data, it notifies the first BCMU through the I / O interface. BCMU detects the I / O interface notification and determines that the received broadcast frame is valid and does not need to be responded. If it is invalid, it responds with an error. Then the first BCMU notifies the second BCMU through I / O, and so on, until all BCMUs are processed. The last BCMU notifies the BSMU through I / O. BSMU detects the I / O input, determines that all BCMUs are processed, and broadcasts data according to the BCMU response.

[0162] S5: Execute S4 in a loop until all data frames are broadcasted.

[0163] S6: The BSMU notifies all BCMUs in sequence to perform the BMU upgrade process through a designated program upgrade trigger frame.

[0164] S7: The BCMU notifies the BMUs to enter the data transmission mode in sequence through the data transmission trigger frame until all BMUs enter the mode successfully.

[0165] S8: BCMU broadcasts a frame of data to all BMUs through a data transmission frame and waits for a response from the BMU. The BMU responds in the following way: if the BMU successfully receives the broadcast frame, it does not respond; otherwise, it responds. BCMU determines whether to broadcast the next frame of data or rebroadcast the current frame of data based on the BMU's response result. If the BCMU does not receive a response, it broadcasts the next frame; otherwise, it broadcasts the current frame.

[0166] Among them, in order to ensure that BCMU correctly receives the response of each BMU, the I / O trigger method is used. After BCMU broadcasts a frame of data, it notifies the first BMU through the I / O interface. BMU detects the I / O interface notification and determines that the received broadcast frame is valid and does not need to be responded. If it is invalid, it responds with an error. Then the first BMU notifies the second BMU through I / O, and so on, until all BMUs are processed. The last BMU notifies BCMU through I / O. BCMU detects I / O input, then determines that all BMUs are processed. Complete, and broadcast data according to the BMU response.

[0167] S9: Execute S8 in a loop until all data frames are broadcasted.

[0168] S10: The BCMU notifies all BMUs in sequence to perform program upgrades through a program upgrade trigger frame, and waits for the BMU upgrade to be completed. The entire process ends.

[0169] S11: In order to enable the BSMU to obtain the upgrade progress of the BMU under each BCMU, during the execution of steps S7 to S10, the BSMU can query the upgrade progress of the BMU under each BCMU in turn through the program upgrade status feedback frame. Alternatively, after the BMU upgrade is completed, the BCMU sends an upgrade completion signal to the BSMU through the I / O channel, so as to quickly inform the BSMU that the upgrade of the BMU under it is completed.

[0170] When BCMU performs agent upgrade on each BMU, the specific communication frame transmission process can be referred to Figure 6-3 .

[0171] It should be noted that, in the process of the control device sending the data transmission trigger frame, the data transmission trigger frame may include multiple frames to ensure the reliability of file transmission. Figure 6-3 , BCMU can use the CAN channel to send multiple frames (for example, three frames) of data transmission trigger frames to each BMU point-to-point in sequence. BMU will reply after receiving the data transmission trigger frame three times in a row, and enter the upgrade file transmission process after three trigger confirmations. In this way, the reliability of file transmission by each BMU is guaranteed through multiple triggers.

[0172] When BSMU controls BCMU in proxy mode, the specific communication frame transmission process can be referred to Figure 6-4 .like Figure 6-4 As shown, BCMU can determine that the device to be upgraded is a BMU device based on the data transmission trigger frame, compare the BMU upgrade file name, and reply. BCMU can determine that the device to be upgraded is a BMU device based on the data transmission first frame, and store the data transmission first frame information. BCMU can cache the upgrade file based on data transmission frame 1-data transmission frame n. BCMU can enter the BMU upgrade process based on the program upgrade trigger frame.

[0173] In addition, during the process of upgrading the BMU agent by the BCMU, in order to enable the BSMU to obtain the upgrade progress of the BMU under each BCMU, the file transmission method provided in the embodiment of the present application may further include:

[0174] The BCMU receives a program upgrade status feedback frame sent by the BSMU through the first channel during the BMU upgrade process;

[0175] The BCMU sends a response to the program upgrade status feedback frame to the BSMU through the first channel.

[0176] Among them, reference Figure 6-4 , the response of the program upgrade status feedback frame may include the upgrade progress information of the BMU managed by the BCMU.

[0177] Alternatively, in other embodiments of the present application, during the process of BCMU upgrading BMU, the file transmission method provided in the embodiment of the present application may further include:

[0178] After the BMU upgrade is completed, the BCMU sends an upgrade completion signal to the BSMU through the second channel, so as to quickly inform the BSMU of the BMU upgrade completion.

[0179] For example, in practical applications, reference Figure 6-5 , BCMU (1) triggers BMU to complete the upgrade agent work and sends an agent completion signal to the parallel BCMU (2) through the DO2 interface; after BCMU (2) receives the agent completion signal sent by the previous BCMU (1), it sends an agent completion signal to the subsequent BCMU (3) through the DO interface according to the completion of its own agent work, and so on. After the last BCMU (M) agent is completed, it triggers the DO signal and sends an end signal to the first BCMU; after the first BCMU detects the DI3 signal, it confirms that all agents have completed the BMU upgrade, confirms that all agent BCMUs have completed the BMU upgrade, and triggers the DO4 signal to feedback the upgrade completion signal to the BSMU. The BSMU detects the DI1 signal, confirms that all BMU upgrades in this round have been completed, and ends the upgrade task.

[0180] The above describes a file transmission method performed by a control device, and the control device and the controlled device are two sides of the same file transmission method. Based on a similar concept, the following describes a file transmission method performed by a controlled device.

[0181] Figure 7 is a flowchart of a file transmission method provided by an embodiment of the present application, see Figure 7 , the method may specifically include the following steps:

[0182] Step 710: the target controlled device receives the first frame of the target file sent by the control device through the first channel, where the first channel is used to transmit the target file;

[0183] Step 720: the target controlled device sends transmission indication information through the second channel, where the transmission indication information is used to indicate whether the first frame is successfully received;

[0184] Step 730: when the transmission indication information indicates that the first frame is successfully received, the target controlled device receives the second frame of the target file sent by the control device through the first channel;

[0185] The second frame is the next frame of the first frame, and the second channel is different from the first channel.

[0186] The target controlled device may be any controlled device among the M controlled devices.

[0187] The specific contents of step 710 to step 730 can be referred to Figure 2 The various steps of the file transfer method embodiment shown are not repeated here.

[0188] According to the file transmission method provided by the embodiment of the present application, the target controlled device receives the first frame of the target file sent by the control device through the first channel, and the first channel is used to transmit the target file; the target controlled device sends transmission indication information through the second channel, and the transmission indication information is used to indicate whether the first frame is successfully received; when the transmission indication information indicates that the first frame is successfully received, the target controlled device receives the second frame of the target file sent by the control device through the first channel. In this way, in the scenario where the control device transmits a file to the target controlled device, the control device transmits the data frame of the target file to the target controlled device through the first channel, and the target controlled device feeds back the transmission indication information to the control device through another second channel as a mark of successful transmission of the data frame of the target file. Compared with the method of not feeding back information but performing timeout judgment in the related art, since the present application uses another second channel to quickly feed back the transmission indication information, the time for transmitting the target file is shortened, and the efficiency of file transmission is improved to a certain extent.

[0189] In a specific embodiment, Figure 8-1 As shown, in the above step 720, the controlled device sends the transmission instruction information through the second channel, including:

[0190] Step 7201: The target controlled device receives target indication information sent through the second channel;

[0191] wherein the target indication information comes from the control device or an adjacent controlled device coupled to the target controlled device; wherein the target controlled device is coupled to the control device;

[0192] Step 7202: The target controlled device sends transmission indication information through the second channel in response to the target indication information.

[0193] In step 720, the second channel may be an input / output channel; M is a positive integer greater than 1, and both the target indication information and the transmission indication information include a level status.

[0194] The level state may include a high level state and a low level state, and the reception of the transmission indication information may be in the form of an interrupt to quickly respond to the first frame sending result.

[0195] For example, in the above step 7202, the target indication information may include a level state obtained after the control device or the adjacent controlled device flips the level state, and a level state bit flip instruction;

[0196] In the above step 7202, the target controlled device sends transmission indication information through the second channel in response to the target indication information, which may specifically include: the target controlled device responds to the level status bit flip instruction in the target indication information, and when the first frame is successfully received, flips the level status carried by the target indication information to obtain the flip level; and sends the transmission indication information carrying the flip level through the second channel.

[0197] In this way, the target controlled device sends the transmission indication information carrying the flip level through the second channel only when it confirms that the first frame is successfully received and the target indication information is received, thereby ensuring the reliability of file transmission.

[0198] In a specific embodiment, Figure 8-2 As shown, the file transmission method may also include:

[0199] Step 740: When the target controlled device fails to receive the first frame, the target controlled device sends an error signal to the control device through the first channel.

[0200] The error signal from the first channel may be error response information for the first frame.

[0201] For example, when the target controlled device fails to successfully receive the first frame, but the input / output interface transmits abnormally, causing the control device to receive transmission indication information from the second channel, at this time, when the control device sends the next frame, if the target controlled device determines that the first frame is not successfully received and responds with an error signal through the first channel, the control device can resend the first frame after receiving the response to the "error signal".

[0202] In this way, when the control device receives error response information from the target controlled device through the first channel, it resends the first frame to the target controlled device through the first channel, and ensures the reliability of file transmission through the error retransmission mechanism.

[0203] The following describes in detail the file transfer method provided by the embodiment of the present application in combination with the application scenario of upgrading a large-scale controlled device. In a specific embodiment, the first frame and the second frame are both sent in the form of broadcast; wherein the first channel includes a CAN channel, and the target file includes an upgrade file. The first frame is a data transmission start frame or a data transmission frame, and the second frame is a data transmission frame.

[0204] The embodiment of the present application transmits the upgrade file in the form of broadcasting, so that multiple controlled devices can uniformly obtain the upgrade file, so that multiple controlled devices can be upgraded concurrently in the future, shortening the time to obtain the upgrade file. In addition, in the process of transmitting the CAN data frame of the upgrade file in the form of broadcasting, the level signal transmitted through the input / output channel is used as a mark of the successful transmission of the CAN data frame, and the control device does not need to perform a timeout judgment, thereby shortening the time to send the CAN transmission frame by broadcasting.

[0205] See also Fig. 9 The file transmission method provided in the embodiment of the present application is executed by the controlled device and may specifically include the following steps:

[0206] Step 910: The target controlled device receives the data transmission trigger frame sent through the first channel, and responds to the data transmission trigger frame;

[0207] Step 920: the target controlled device receives the first frame of the target file sent by the control device through the first channel, where the first channel is used to transmit the target file;

[0208] Step 930: the target controlled device sends transmission indication information through a second channel, where the transmission indication information is used to indicate whether the first frame is successfully received; wherein the second channel is different from the first channel;

[0209] Step 940: when the transmission indication information indicates that the first frame is successfully received, the target controlled device receives the second frame of the target file sent by the control device through the first channel; wherein the second frame is the next frame of the first frame;

[0210] Step 950: After the target controlled device receives the last frame of the target file sent through the first channel, the target controlled device receives a program upgrade trigger frame sent through the first channel, responds to the program upgrade trigger frame, and starts executing the program upgrade.

[0211] Among them, step 920 may refer to the specific content of step 710, step 930 may refer to the specific content of step 720, and step 940 may refer to the specific content of step 730.

[0212] Among them, step 910 is executed after step 920 , and step 950 is executed after step 940 .

[0213] The specific contents of step 910 to step 950 can be found in Figure 4 The various steps of the file transmission method embodiment shown are not repeated here.

[0214] In practical applications, such as Figure 5-1As shown in FIG. 1 , when the control device is a BSMU, the target controlled device is a BCMU. Alternatively, Figure 6-1 As shown, when the controlling device is BCMU, the target controlled device is BMU.

[0215] Among them, BSMU concurrently upgrades each BCMU, which can be referred to Figure 5-2 The various processes of the file transfer method embodiment shown in the figure can achieve the same technical effect. To avoid repetition, they are not repeated here. Among them, BCMU performs agent upgrade on each BMU, which can be referred to Figure 6-3 The various processes of the file transmission method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0216] Based on the same concept as the above-mentioned file transmission method embodiment, the present application embodiment also provides a control device. Fig.10 As shown, the control device 1000 may specifically include: a processor 1010 and a memory 1020, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the various processes of the above-mentioned file transfer method embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0217] Based on the same concept as the above-mentioned file transmission method embodiment, the present application embodiment also provides a controlled device. Fig.11 As shown, the controlled device 1100 may specifically include: a processor 1110 and a memory 1120, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the various processes of the above-mentioned file transfer method embodiment can be implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0218] Based on the same concept as the above-mentioned file transmission method embodiment, the embodiment of the present application further provides an energy storage system, which may specifically include: the control device described in the above-mentioned embodiment and at least one controlled device described in the above-mentioned embodiment. The energy storage system can implement each process of the above-mentioned file transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0219] In practical applications, such as Figure 1 As shown, in the energy storage system, when the control device is BSMU, the controlled device is BCMU. Alternatively, when the control device is BCMU, the controlled device is BMU.

[0220] In the energy storage system, the description of each component involved in the energy storage system is shown in Table 2 below:

[0221]

[0222]

[0223] Table 2

[0224] The embodiment of the present application uses concurrent upgrade technology to upgrade the energy storage system, and the overall upgrade speed of the energy storage system is greatly improved. Taking a single cabinet with 16 batteries as an example, the upgrade time is shortened to 1 / 10 of the original time; and the upgrade time increases very little with the increase in the number of cabinets. Compared with the traditional energy storage system, the upgrade time increases linearly with the number of modules. The embodiment of the present application can improve the upgrade efficiency by more than 10N times (N is the number of battery cabinets), greatly reducing the upgrade operation and maintenance time, and reducing the system risks caused by the upgrade.

[0225] Furthermore, the concurrent upgrade technology provided in the embodiment of the present application can ensure the consistency of the upgrade, prevent abnormal operation caused by devices being in different versions, and greatly reduce the probability of version inconsistency during the upgrade process.

[0226] Furthermore, in an embodiment of the present application, the first channel may be a redundant design of dual CAN channels and may be multiplexed as a communication link as a link redundancy backup to enhance the operational reliability of the energy storage system.

[0227] Furthermore, in the embodiment of the present application, the method for determining timeout of the IO signal chain transmitted through the second channel can be reused in other quick determination scenarios when multiple groups are connected in parallel, and can support quick response operations of future energy storage systems.

[0228] Furthermore, the device used in the embodiment of the present application can be reused for other functions such as communication and site allocation, and has no requirements for the hardware storage resources of the equipment at all levels of the energy storage system, which is equivalent to greatly improving the upgrade speed without increasing the hardware cost.

[0229] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned file transfer method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0230] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0231] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0232] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A file transmission method, characterized in that: include: The control device sends a first frame of a target file to the M controlled devices through a first channel, where the first channel is used to transmit the target file; The control device acquires transmission indication information through the second channel, where the transmission indication information is used to indicate whether the first frame is successfully received; In a case where the M controlled devices successfully receive the first frame, the control device sends a second frame of the target file to the M controlled devices through the first channel; The second frame is a next frame of the first frame, and the second channel is different from the first channel.

2. The method according to claim 1, characterized in that The control device obtains transmission instruction information through the second channel, including: The control device sends target indication information to a first controlled device among the M controlled devices through the second channel; The control device receives the transmission indication information through the second channel, and the transmission indication information is sent by the second controlled device among the M controlled devices in response to the target indication information; wherein the first controlled device and the second controlled device are coupled to the control device; and the first controlled device and the second controlled device are the same device or different devices.

3. The method according to claim 2, characterized in that After the control device acquires the transmission instruction information through the second channel, the method further includes: The control device determines whether the transmission instruction information matches the target instruction information; In a case where the transmission indication information matches the target indication information, the control device determines that the M controlled devices successfully receive the first frame.

4. The method according to claim 3, characterized in that The second channel is an input / output channel; M is a positive integer greater than 1, and both the target indication information and the transmission indication information include a level status; when the level status carried by the target indication information is the same as the level status carried by the transmission indication information, the transmission indication information matches the target indication information.

5. The method according to claim 4, characterized in that Before the control device sends target indication information to the first controlled device among the M controlled devices through the second channel, the method further includes: The control device flips the level state of the output interface coupled to the first controlled device, and uses the level state obtained after the flipping as part of the target indication information; The target indication information further includes: a level status bit flip instruction, and the status bit flip instruction is used to instruct the first controlled device to flip the level status when the first frame is successfully received.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the control device determines through the transmission indication information that the M controlled devices have not successfully received the first frame, the control device sends the first frame to the M controlled devices through the first channel.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When receiving the error signal from the first channel, the control device sends the first frame to the M controlled devices through the first channel.

8. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the control device does not receive the transmission instruction information from the second channel within a preset time, the control device sends the first frame to the M controlled devices through the first channel.

9. The method according to any one of claims 1 to 5, characterized in that: M is a positive integer greater than 1, and the first frame and the second frame sent by the control device are both sent in the form of broadcast; The first channel includes a controller area network (CAN) channel, and the target file includes an upgrade file.

10. The method according to claim 9, characterized in that The first frame is a data transmission start frame or a data transmission frame, and the second frame is a data transmission frame; The method further comprises: Before the control device sends the first frame of the target file to the M controlled devices through the first channel, the control device sends a data transmission trigger frame to the M controlled devices through the first channel, and receives responses from the M controlled devices to the data transmission trigger frame; After the control device sends the last frame of the target file to the M controlled devices through the first channel, the control device sends a program upgrade trigger frame to the M controlled devices through the first channel, and receives responses from the M controlled devices to the program upgrade trigger frame.

11. The method according to claim 10, characterized in that The control device is a battery system management unit BSMU, and the controlled device is a battery cluster management unit BCMU; Alternatively, the control device is a BCMU, and the controlled device is a battery management unit BMU.

12. The method according to claim 10, characterized in that The control device is a BCMU, and the controlled device is a BMU; Before the control device sends a data transmission trigger frame to the M controlled devices through the first channel, the method further includes: The BCMU receives a designated data transmission trigger frame from the BSMU, wherein the designated data transmission trigger frame carries BMU device information; The BCMU enters a proxy mode in response to the designated data transmission trigger frame; The BCMU receives all frames of the upgrade file sent by the BSMU; The BCMU receives a designated program upgrade trigger frame from the BSMU, where the designated program upgrade trigger frame carries BMU device information.

13. The method according to claim 12, characterized in that The method further comprises: The BCMU receives a program upgrade status feedback frame sent by the BSMU through the first channel during a BMU upgrade process; The BCMU sends a response to the program upgrade status feedback frame to the BSMU through the first channel; or, The BCMU sends an upgrade completion signal to the BSMU through the second channel after the BMU upgrade is completed.

14. A file transmission method, characterized in that: include: The target controlled device receives a first frame of a target file sent by the control device through a first channel, where the first channel is used to transmit the target file; The target controlled device sends transmission indication information through a second channel, where the transmission indication information is used to indicate whether the first frame is successfully received; In a case where the transmission indication information indicates that the first frame is successfully received, the target controlled device receives a second frame of the target file sent by the control device through the first channel; The second frame is a next frame of the first frame, and the second channel is different from the first channel.

15. The method according to claim 14, characterized in that The controlled device sends transmission instruction information through the second channel, including: The target controlled device receives target indication information sent through the second channel, where the target indication information comes from a control device or an adjacent controlled device coupled to the target controlled device; The target controlled device sends transmission indication information through the second channel in response to the target indication information.

16. The method according to claim 15, characterized in that The second channel is an input / output channel; the target indication information and the transmission indication information both include a level status.

17. The method according to claim 16, characterized in that The target indication information includes a level state obtained after the control device or the adjacent controlled device flips the level state, and a level state bit flip instruction; The target controlled device sends transmission indication information through the second channel in response to the target indication information, including: the target controlled device responds to the level state bit flip instruction in the target indication information, and flips the level state carried by the target indication information in the case of successfully receiving the first frame to obtain a flip level; The transmission indication information carrying the flip level is sent through the second channel.

18. The method according to any one of claims 14 to 17, characterized in that: The method further comprises: In the case that the target controlled device fails to successfully receive the first frame, the target controlled device sends an error signal to the control device through the first channel.

19. The method according to any one of claims 14 to 17, characterized in that: The first frame and the second frame are both sent in the form of broadcast; The first channel includes a controller area network (CAN) channel, and the target file includes an upgrade file.

20. The method according to claim 19, characterized in that The first frame is a data transmission start frame or a data transmission frame, and the second frame is a data transmission frame; The method further comprises: Before the target controlled device receives the first frame of the target file sent through the first channel, the target controlled device receives the data transmission trigger frame sent through the first channel, and responds to the data transmission trigger frame; After the target controlled device receives the last frame of the target file sent through the first channel, the target controlled device receives a program upgrade trigger frame sent through the first channel, responds to the program upgrade trigger frame, and starts to execute program upgrade.

21. The method according to claim 20, characterized in that The control device is a battery system management unit BSMU, and the target controlled device is a battery cluster management unit BCMU; Alternatively, the control device is a BCMU, and the target controlled device is a battery management unit BMU.

22. A control device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 13 are implemented.

23. A controlled device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 14 to 21 are implemented.

24. An energy storage system, characterized in that: include: A control device according to claim 22 and at least one controlled device according to claim 23.