Coding method and device, and computer readable storage medium
By determining the connection method of the battery control unit and automatically encoding using encoding sequence and instructions, the problem of low encoding efficiency in the battery management system is solved, and an efficient battery control unit encoding process is realized.
Patent Information
- Application Number
- PCT/CN2024/129870
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-18
- Filing Date
- 2024-11-05
- Publication Date
- 2025-08-21
AI Technical Summary
In the prior art, the encoding efficiency of the battery control unit in the battery management system is low, resulting in a large amount of workload for individual operations and the inability to efficiently distinguish controllers at different locations.
The first encoding sequence is determined according to the connection method of the battery control unit, and upon receiving the encoding instruction, the battery control unit is encoded through the first encoding order and instructions, including sending and updating the encoded signal through the communication line, the encoding line and the bus until all units are encoded successfully.
The automatic encoding of the battery control unit is realized, the encoding efficiency is improved, the encoding process is simplified, and the amount of manual operation is reduced.
Smart Images

Figure CN2024129870_21082025_PF_FP_ABST
Abstract
Description
Coding method, device, and computer-readable storage medium
[0001] Related applications
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on February 18, 2024, with application number 202410181639.8, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of computer technology, and in particular to an encoding method, device, and computer-readable storage medium. Background Art
[0004] With the development of green energy, rechargeable batteries are used in more and more scenarios and the number of batteries required is also increasing, which leads to the increasingly complex architecture of battery management systems.
[0005] The architecture of the battery management system consists of a BAU (Battery Aggregation Unit) connected to multiple BCUs (Battery Control Units). Often, the BMU (Battery Management Unit) under the same BCU and the BCU under the same BAU have exactly the same functions, but in order to distinguish different locations, each controller needs to be given a separate number or address.
[0006] Writing an address to each controller through software requires performing separate operations on each controller. Each separate operation will cause a large workload, resulting in low coding efficiency.
[0007] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art.
[0008] Summary of the Invention
[0009] The main purpose of this application is to provide a coding method, device and computer-readable storage medium, aiming to solve the problem of how to improve the efficiency of coding.
[0010] To achieve the above objectives, the present application provides an encoding method, which comprises the following steps:
[0011] determining a first coding sequence of the battery control unit according to a connection mode of the battery control unit;
[0012] When the first encoding instruction is received, the battery control unit is encoded according to the first encoding sequence and the first encoding instruction.
[0013] In one embodiment, the battery control units are connected sequentially via communication lines, and the step of encoding the battery control units according to the first encoding sequence and the first encoding instruction includes:
[0014] Determining a target encoding address corresponding to the first encoding instruction;
[0015] The first coding instruction and the target coding address are sent to the target battery control unit in the first coding sequence based on the communication line, so that the target battery control unit performs coding after receiving the first coding instruction and the target coding address, wherein the target battery control unit is a battery control unit connected to the battery integrated unit.
[0016] In one embodiment, after the target battery control unit performs encoding after receiving the first encoding instruction and the target encoding address, the target battery control unit further includes:
[0017] After encoding is successful, the target encoding address is updated according to a preset order, and the target battery control unit sends the first encoding instruction and the updated target encoding address to the next battery control unit based on the communication line until the last battery control unit is successfully encoded.
[0018] In one embodiment, the battery integrated unit and at least one battery control unit are further connected based on a coding line, and the battery control units are sequentially connected based on the coding lines. The step of encoding the battery control units according to the first coding sequence and the first coding instruction includes:
[0019] determining a target coding signal corresponding to the first coding instruction;
[0020] When a first coding instruction is received based on the coding line, the target coding signal is sent to the target battery control unit in the first coding sequence based on the coding line, so that the target battery control unit encodes according to the received target coding signal and the preset address comparison table. The target battery control unit is a battery control unit connected to the battery integrated unit.
[0021] In one embodiment, after the target battery control unit performs encoding according to the received target coding signal and a preset address comparison table, the target battery control unit further includes:
[0022] After the encoding is successful, the target encoding signal is updated according to the preset waveform sequence, and the target battery control unit sends the updated target encoding signal to the next battery control unit based on the encoding line until the last battery control unit is successfully encoded;
[0023] The frequencies, duty cycles and waveforms of the coding signals corresponding to the different battery control units are different.
[0024] In one embodiment, the last battery control unit is connected to the battery integration unit via a communication loop, and the method further comprises:
[0025] After obtaining the corresponding encoding success information sent by the last battery control unit based on the communication loop, the encoding of the battery control unit is completed.
[0026] In one embodiment, the last battery control unit is connected to the battery integration unit via a coding loop, and the method further comprises:
[0027] After acquiring the first coding instruction or the target coding signal corresponding to the last battery control unit sent by the battery control unit based on the coding loop, the coding of the battery control unit is finished.
[0028] In one embodiment, after receiving address signals indicating successful encoding from all battery control units via the communication bus, encoding of the battery control units is terminated.
[0029] To achieve the above objectives, the present application provides an encoding method, which comprises the following steps:
[0030] Acquire a first coding sequence and a first coding instruction sent by the battery integration unit;
[0031] Encoding the current battery control unit according to the first encoding sequence and the first encoding instruction;
[0032] After the current battery control unit is successfully encoded, the first encoding instruction is sent to the next battery control unit until the last battery control unit is successfully encoded. The next battery control unit is determined by the first encoding sequence.
[0033] In one embodiment, the battery control units are connected sequentially based on communication lines, and the step of encoding the current battery control unit according to the first encoding sequence and the first encoding instruction includes:
[0034] Obtaining a target coding address sent by the battery integration unit;
[0035] Encoding according to the first encoding instruction and the target encoding address;
[0036] After the current battery control unit is successfully encoded, the step of sending the first encoding instruction to the next battery control unit until the last battery control unit is successfully encoded includes:
[0037] After the current battery control unit is successfully encoded, the target encoding address is updated according to a preset sequence, and the first encoding instruction and the updated target encoding address are sent to the next battery control unit until the last battery control unit is successfully encoded.
[0038] In one embodiment, the step of encoding the current battery control unit according to the first encoding sequence and the first encoding instruction includes:
[0039] Acquiring a target coding signal sent by the battery integration unit;
[0040] Encoding is performed according to the target coding signal and a preset address comparison table;
[0041] After the current battery control unit is successfully encoded, the step of sending the first encoding instruction to the next battery control unit until the last battery control unit is successfully encoded includes:
[0042] After the current battery control unit is successfully encoded, the target encoding signal is updated according to a preset waveform sequence, and the updated target encoding signal is sent to the next battery control unit until the last battery control unit is successfully encoded.
[0043] In one embodiment, the battery control unit is connected to at least one battery management unit via a communication line, and the method further includes:
[0044] determining a second coding sequence of the battery management units according to a connection mode of the battery management units;
[0045] When the second encoding instruction is received, the battery management unit is encoded according to the second encoding sequence and the second encoding instruction.
[0046] In one embodiment, the battery management units are connected sequentially via communication lines, and the step of encoding the battery management units according to the second encoding sequence and the second encoding instruction includes:
[0047] Determining a sub-coding address corresponding to the second coding instruction;
[0048] The second coding instruction and the sub-coding address are sent to the target battery management unit in the second coding sequence based on the communication line, so that the target battery management unit automatically performs coding after receiving the second coding instruction and the sub-coding address.
[0049] In one embodiment, after the target battery management unit receives the second coding instruction and the sub-coding address and performs automatic coding, the method includes:
[0050] After the encoding is successful, the sub-encoding address is updated according to a preset order, and the target battery management unit sends the second encoding instruction and the updated sub-encoding address to the next battery management unit via the communication line until the last battery management unit is successfully encoded;
[0051] The target battery management unit is a battery management unit connected to the battery control unit.
[0052] In one embodiment, the battery control unit is further connected to at least one battery management unit based on the coding line, and the battery management units are further connected in sequence based on the coding line. After the step of determining the second coding order of the battery management units according to the connection mode of the battery management units, the step further includes:
[0053] determining a sub-coding signal corresponding to the second coding instruction;
[0054] When a second encoding instruction is received based on the encoding line, a first signal is sent to a target battery management unit in the second encoding sequence based on the encoding line, so that the target battery management unit performs encoding according to the received sub-encoding signal and a preset address comparison table.
[0055] In one embodiment, after the target battery management unit performs encoding according to the received sub-coding signal and a preset address comparison table, the following steps are included:
[0056] After the encoding is successful, the sub-coding signal is updated according to the preset waveform sequence, and the target battery management unit sends the updated sub-coding signal to the next battery management unit until the last battery management unit is successfully encoded;
[0057] The target battery management unit is a battery management unit connected to the battery control unit; and the frequency, duty cycle and waveform of the coding signals corresponding to different battery management units are different.
[0058] In one embodiment, the last battery control unit is connected to the battery integration unit or the battery control unit via a communication loop, and the method further includes:
[0059] After obtaining the corresponding encoding success information sent by the last battery management unit based on the communication loop, the encoding success information of the last battery management unit is reported to the corresponding battery integration unit, and the encoding of the battery management unit is completed.
[0060] In one embodiment, the last battery control unit is connected to the battery integration unit or the battery control unit via a coding loop, and the method further includes:
[0061] After obtaining the corresponding second coding instruction and the sub-coding signal sent by the last battery management unit based on the coding loop, the second coding instruction and the sub-coding signal sent by the last battery management unit are reported to the corresponding battery integration unit, and the coding of the battery management unit is ended.
[0062] In one embodiment, the battery control unit is connected to the battery integration unit via a communication bus, and the method further includes:
[0063] After receiving the address signals with successful encoding sent by all battery control units based on the communication bus, the encoding of the battery management unit is completed.
[0064] To achieve the above objectives, the present application also provides a coding device, which includes a memory, a processor, and a coding program stored in the memory and executable on the processor. When the coding program is executed by the processor, the various steps of the coding method described above are implemented.
[0065] To achieve the above objectives, the present application also provides a computer-readable storage medium, which stores a coding program. When the coding program is executed by a processor, the various steps of the coding method described above are implemented.
[0066] This application provides an encoding method, device, and computer-readable storage medium. The method determines a first encoding sequence for a battery control unit based on its connection method. Upon receiving a first encoding instruction, the method encodes the battery control unit according to the first encoding sequence and the first encoding instruction. By encoding the battery control unit using the first encoding sequence and the first encoding instruction, the method achieves automatic encoding of the battery control unit and improves encoding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] FIG1 is a schematic diagram of the hardware structure of an encoding device involved in an embodiment of the present application;
[0068] FIG2 is a schematic flow chart of a first embodiment of the encoding method of the present application;
[0069] FIG3 is a schematic diagram of the architecture of the battery management system in the coding method of the present application;
[0070] FIG4 is a schematic diagram of the architecture of the battery management system in the coding method of the present application;
[0071] FIG5 is a schematic diagram of a detailed flow chart of step S20 of the second embodiment of the encoding method of the present application;
[0072] FIG6 is a schematic flow chart of a third embodiment of the encoding method of the present application;
[0073] FIG7 is a schematic diagram of the corresponding relationship between the coding signal and the coding address in the coding method of the present application;
[0074] FIG8 is a schematic flow chart of a fourth embodiment of the encoding method of the present application;
[0075] FIG9 is a schematic flow chart of a fifth embodiment of the encoding method of the present application;
[0076] FIG10 is a flow chart of a sixth embodiment of the encoding method of the present application;
[0077] FIG11 is a flow chart of the seventh embodiment of the encoding method of the present application.
[0078] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0079] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0080] The main solution of the embodiment of the present application is to determine the first coding sequence of the battery control unit based on the connection method of the battery control unit; upon receiving the first coding instruction, encode the battery control unit according to the first coding sequence and the first coding instruction. By encoding the battery control unit according to the first coding sequence and the first coding instruction, the battery control unit is automatically encoded, thereby improving encoding efficiency.
[0081] As an implementation solution, the encoding device is shown in FIG1 .
[0082] The embodiments of this application relate to an encoding device, which includes a processor 101, such as a CPU, a memory 102, and a communication bus 103. Communication bus 103 is used to enable communication between these components. The encoding device includes a computer, a tablet computer, a touch screen device, and the like.
[0083] Memory 102 can be a high-speed RAM memory or a non-volatile memory, such as a disk storage. As shown in FIG1 , memory 102 , a computer-readable storage medium, includes a coding program. Processor 101 is configured to call the coding program stored in memory 102 and perform the following operations:
[0084] determining a first coding sequence of the battery control unit according to a connection mode of the battery control unit;
[0085] When the first encoding instruction is received, the battery control unit is encoded according to the first encoding sequence and the first encoding instruction.
[0086] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0087] Determining a target encoding address corresponding to the first encoding instruction;
[0088] The first coding instruction and the target coding address are sent to the target battery control unit in the first coding sequence based on the communication line, so that the target battery control unit performs coding after receiving the first coding instruction and the target coding address, wherein the target battery control unit is a battery control unit connected to the battery integrated unit.
[0089] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0090] After encoding is successful, the target encoding address is updated according to a preset order, and the target battery control unit sends the first encoding instruction and the updated target encoding address to the next battery control unit based on the communication line until the last battery control unit is successfully encoded.
[0091] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0092] determining a target coding signal corresponding to the first coding instruction;
[0093] When a first coding instruction is received based on the coding line, the target coding signal is sent to the target battery control unit in the first coding sequence based on the coding line, so that the target battery control unit encodes according to the received target coding signal and the preset address comparison table. The target battery control unit is a battery control unit connected to the battery integrated unit.
[0094] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0095] After the encoding is successful, the target encoding signal is updated according to the preset waveform sequence, and the target battery control unit sends the updated target encoding signal to the next battery control unit based on the encoding line until the last battery control unit is successfully encoded;
[0096] The frequencies, duty cycles and waveforms of the coding signals corresponding to the different battery control units are different.
[0097] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0098] After obtaining the corresponding encoding success information sent by the last battery control unit based on the communication loop, the encoding of the battery control unit is completed.
[0099] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0100] After acquiring the first coding instruction or the target coding signal corresponding to the last battery control unit sent by the battery control unit based on the coding loop, the coding of the battery control unit is finished.
[0101] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0102] After receiving the address signals with successful encoding sent by all battery control units based on the communication bus, the encoding of the battery control units is completed.
[0103] Alternatively, as shown in FIG1 , the memory 102 as a computer-readable storage medium includes an encoding program; and the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0104] Acquire a first coding sequence and a first coding instruction sent by the battery integration unit;
[0105] Encoding the current battery control unit according to the first encoding sequence and the first encoding instruction;
[0106] After the current battery control unit is successfully encoded, the first encoding instruction is sent to the next battery control unit until the last battery control unit is successfully encoded. The next battery control unit is determined by the first encoding sequence.
[0107] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0108] Obtaining a target coding address sent by the battery integration unit;
[0109] Encoding according to the first encoding instruction and the target encoding address;
[0110] After the current battery control unit is successfully encoded, the step of sending the first encoding instruction to the next battery control unit until the last battery control unit is successfully encoded includes:
[0111] After the current battery control unit is successfully encoded, the target encoding address is updated according to a preset sequence, and the first encoding instruction and the updated target encoding address are sent to the next battery control unit until the last battery control unit is successfully encoded.
[0112] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0113] Acquiring a target coding signal sent by the battery integration unit;
[0114] Encoding is performed according to the target coding signal and a preset address comparison table;
[0115] After the current battery control unit is successfully encoded, the step of sending the first encoding instruction to the next battery control unit until the last battery control unit is successfully encoded includes:
[0116] After the current battery control unit is successfully encoded, the target encoding signal is updated according to a preset waveform sequence, and the updated target encoding signal is sent to the next battery control unit until the last battery control unit is successfully encoded.
[0117] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0118] determining a second coding sequence of the battery management units according to a connection mode of the battery management units;
[0119] When the second encoding instruction is received, the battery management unit is encoded according to the second encoding sequence and the second encoding instruction.
[0120] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0121] Determining a sub-coding address corresponding to the second coding instruction;
[0122] The second coding instruction and the sub-coding address are sent to the target battery management unit in the second coding sequence based on the communication line, so that the target battery management unit automatically performs coding after receiving the second coding instruction and the sub-coding address.
[0123] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0124] After the encoding is successful, the sub-encoding address is updated according to a preset order, and the target battery management unit sends the second encoding instruction and the updated sub-encoding address to the next battery management unit via the communication line until the last battery management unit is successfully encoded;
[0125] The target battery management unit is a battery management unit connected to the battery control unit.
[0126] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0127] determining a sub-coding signal corresponding to the second coding instruction;
[0128] When a second encoding instruction is received based on the encoding line, a first signal is sent to a target battery management unit in the second encoding sequence based on the encoding line, so that the target battery management unit performs encoding according to the received sub-encoding signal and a preset address comparison table.
[0129] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0130] After the encoding is successful, the sub-coding signal is updated according to the preset waveform sequence, and the target battery management unit sends the updated sub-coding signal to the next battery management unit until the last battery management unit is successfully encoded;
[0131] The target battery management unit is a battery management unit connected to the battery control unit; and the frequency, duty cycle and waveform of the coding signals corresponding to different battery management units are different.
[0132] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0133] After obtaining the corresponding encoding success information sent by the last battery management unit based on the communication loop, the encoding success information of the last battery management unit is reported to the corresponding battery integration unit, and the encoding of the battery management unit is completed.
[0134] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0135] After obtaining the corresponding second coding instruction and the sub-coding signal sent by the last battery management unit based on the coding loop, the second coding instruction and the sub-coding signal sent by the last battery management unit are reported to the corresponding battery integration unit, and the coding of the battery management unit is ended.
[0136] In one embodiment, the processor 101 is configured to call the encoding program stored in the memory 102 and perform the following operations:
[0137] After receiving the address signals with successful encoding sent by all battery control units based on the communication bus, the encoding of the battery management unit is completed.
[0138] Based on the hardware architecture of the above encoding device, an embodiment of the encoding method of the present application is proposed.
[0139] 2 , which shows a first embodiment of the encoding method of the present application, the encoding method includes the following steps:
[0140] Step S10: determining a first coding sequence of the battery control unit according to a connection mode of the battery control unit.
[0141] In this embodiment, the BAU (Battery Aggregation Unit) receives encoding instructions for the battery control units (BCUs) from a human-machine interface (HMI). In one embodiment, the HMI includes a host computer and a central control screen. The HMI presets the total number of BCUs (Battery Control Units) to be encoded, n, and sends the encoding instructions to the BAU, which then initiates the automatic encoding process. A single encoding direction is specified, for example, from BAU to BCU1 to BCU2.
[0142] In this embodiment, the battery integrated unit (BAU) is connected to at least one battery control unit (BCU) via a communication line. For example, as shown in Figure 3, the battery integrated unit (BAU) is connected to the battery control unit (BCU1) via a communication line, which in turn is connected to the battery control unit (BCU2) via a communication line. Similarly, the battery control unit (BCUn-1) is connected to the battery control unit (BCUn) via a communication line. For another example, as shown in Figure 4, the battery integrated unit (BAU) is connected to the battery control units (BCU1), BCU2, and BCUn via communication lines, respectively.
[0143] In one embodiment, the battery integrated unit and at least one battery control unit are further connected based on a coding line, and the battery control units are connected in sequence based on the coding line. For example, as shown in Figure 4, the battery integrated unit BAU is connected to the battery control unit BCU1, the battery control unit BCU2 to the battery control unit BCUn through communication lines, the battery integrated unit BAU is connected to the battery control unit BCU1 through the coding line, the battery control unit BCU1 is connected to the battery control unit BCU2 through the coding line, and so on. The battery control unit BCUn-1 is connected to the battery control unit BCUn through the coding line.
[0144] In one embodiment, the connection method of the battery control unit includes chain two-way communication. In the chain two-way communication, the battery integrated unit is connected to at least one battery control unit, and the battery control units are connected in sequence. The last battery control unit is not connected to the battery integrated unit through a communication line, a communication loop or a coding loop.
[0145] In one embodiment, the communication line is a connection line between the battery control units and between the battery integration unit and the first battery control unit, and the communication loop line is a connection line between the last battery control unit and the battery integration unit.
[0146] In one embodiment, the encoding line is a connection line between battery control units and between the battery integration unit and the first battery control unit, and the encoding return line is a connection line between the last battery control unit and the battery integration unit.
[0147] For example, as shown in FIG3 , the battery integrated unit BAU is connected to the battery control unit BCU1, the battery control unit BCU1 is connected to the battery control unit BCU2 via a communication line, the battery control unit BCU2 is connected to the battery control unit BCU3 via a communication line, and so on, wherein the last battery control unit BCUn is not connected to the battery integrated unit BAU via a communication line.
[0148] For another example, as shown in FIG4 , the battery integrated unit BAU is connected to the battery control units BCU1, BCU2, ..., BCUn through communication lines respectively, the battery integrated unit BAU is connected to the battery control unit BCU1 through a coding line, the battery control unit BCU1 is connected to the battery control unit BCU2 through a coding line, and so on. The last battery control unit BCUn is not connected to the battery integrated unit BAU through a coding loop line.
[0149] In one embodiment, the connection mode of the battery control unit includes a ring-shaped bidirectional communication. In the ring-shaped bidirectional communication, the battery integration unit BAU is connected to at least one battery control unit, and the battery control units are connected in sequence, and the last battery control unit is connected to the battery integration unit.
[0150] For example, as shown in FIG3 , the battery integrated unit BAU is connected to the battery control unit BCU1, the battery control unit BCU1 is connected to the battery control unit BCU2 via a communication line, the battery control unit BCU2 is connected to the battery control unit BCU3 via a communication line, and so on, wherein the last battery control unit BCUn is connected to the battery integrated unit BAU via a communication line.
[0151] For another example, as shown in FIG4 , the battery integrated unit BAU is connected to the battery control units BCU1, BCU2, ..., BCUn through communication lines respectively, the battery integrated unit BAU is connected to the battery control unit BCU1 through an encoding line, the battery control unit BCU1 is connected to the battery control unit BCU2 through an encoding line, and so on, the last battery control unit BCUn is connected to the battery integrated unit BAU through an encoding loop line.
[0152] In one embodiment, the first coding order of the battery control units is determined according to the connection mode of the battery control units. For example, the battery integrated unit BAU is connected to the battery control unit BCU1, the battery control unit BCU1 is connected to the battery control unit BCU2, and the battery control unit BCU2 is connected to the battery control unit BCU3. Therefore, the first coding order of the battery control units includes the battery control unit BCU1, the battery control unit BCU2, and the battery control unit BCU3 in sequence.
[0153] Step S20: When receiving the first coding instruction, encode the battery control unit according to the first coding sequence and the first coding instruction.
[0154] In this embodiment, the first coded instructions are a set of computer program instructions that instruct a computer to perform a specific operation or function. The coded instructions include various operations, such as arithmetic operations, logical operations, data transfer, control flow, function calls, and the like. The first coded instructions are used to encode the battery control unit.
[0155] In this embodiment, the coded address is used as a way to identify and locate a memory location. Computer memory is divided into a series of consecutive memory cells, each with a unique address. The coded address is used to encode the battery control unit.
[0156] In one embodiment, when the battery integration unit receives the first encoding instruction from the battery control unit, the battery integration unit sends the first encoding sequence and the first encoding instruction to the battery control unit to encode the battery control unit in sequence.
[0157] In the technical solution of this embodiment, a first coding sequence of the battery control unit is determined based on the connection method of the battery control unit; upon receiving the first coding instruction, the battery control unit is encoded according to the first coding sequence and the first coding instruction. By encoding the battery control unit using the first coding sequence and the first coding instruction, automatic encoding of the battery control unit is achieved, thereby improving encoding efficiency.
[0158] 5 , which is a second embodiment of the encoding method of the present application, based on the first embodiment, step S20 includes:
[0159] Step S21, determining a target encoding address corresponding to the first encoding instruction;
[0160] Step S22: Send the first coding instruction and the target coding address to the target battery control unit in the first coding sequence based on the communication line, so that the target battery control unit performs coding after receiving the first coding instruction and the target coding address, wherein the target battery control unit is a battery control unit connected to the battery integrated unit.
[0161] In one embodiment, after encoding is successful, the target encoding address is updated according to a preset order, and the target battery control unit sends the first encoding instruction and the updated target encoding address to the next battery control unit based on the communication line until the last battery control unit is successfully encoded.
[0162] In this embodiment, the battery integration unit (BAU) is connected to at least one battery control unit (BCU) via a communication line, and the BCUs are sequentially connected. For example, as shown in Figure 3, the battery integration unit (BAU) is connected to the battery control unit (BCU1) via a communication line, and the battery control unit (BCU1) is connected to the battery control unit (BCU2) via a communication line. Similarly, the battery control unit (BCUn-1) is connected to the battery control unit (BCUn) via a communication line.
[0163] In this embodiment, the target battery control unit is a battery control unit connected to a battery integration unit. For example, the battery control unit BCU1 is connected to the battery integration unit BAU, and the battery control unit BCU1 is the target battery control unit.
[0164] In one embodiment, the battery integrated unit sends a first coding instruction and a target coding address to a target battery control unit in a first coding sequence. The target battery control unit automatically performs coding after receiving the first coding instruction and the target coding address. After successful coding, the target coding address is updated according to a preset sequence. For example, the target coding address is updated in an increasing or decreasing order, and the first coding instruction and the updated target coding address are sent to the next battery control unit. The next battery control unit performs coding based on the first coding instruction and the target coding address, and so on, until the last battery control unit is successfully coded.
[0165] Exemplarily, when the first coding sequence includes the battery control unit BCU1, the battery control unit BCU2, and the battery control unit BCU3 in sequence, the battery integrated unit BAU sends a coding instruction and a target coding address to the battery control unit BCU1. After receiving the coding instruction and the target coding address, the battery control unit BCU1 performs automatic coding. After the coding is successful, the target coding address is incremented. At the same time, the battery control unit BCU1 sends a coding instruction and the incremented target coding address to the battery control unit BCU2. After receiving the coding instruction and the incremented target coding address, the battery control unit BCU2 performs automatic coding. After the coding is successful, the target coding address is incremented. The battery control unit BCU2 sends a coding instruction and the incremented target coding address to the battery control unit BCU3. After receiving the coding instruction and the target coding address, the battery control unit BCU3 performs automatic coding.
[0166] In one embodiment, the connection method of the battery control unit includes chain two-way communication. In the chain two-way communication, the battery integrated unit is connected to at least one battery control unit, and the battery control units are connected in sequence, and the last battery control unit is not connected to the battery integrated unit through a communication line or a coding loop line.
[0167] In the chain two-way communication, the encoding success information reported by each battery control unit is obtained in turn. After encoding is successful, each battery control unit sends the encoding success information to the battery integration unit; after determining that the battery integration unit has received the encoding success information reported by all battery control units, the encoding of the battery control unit is ended.
[0168] For example, as shown in Figure 3, the battery integration unit BAU sends a coding instruction to the battery control unit BCU1, and at the same time sends a target coding address. After receiving the coding instruction and the target coding address, BCU1 performs automatic coding. After BCU1 successfully encodes, it sends a coding success message to the battery integration unit. At the same time, BCU1 sends the coding instruction and the incremented target coding address to the next battery control unit BCU2. After receiving the coding instruction and the incremented target coding address, BCU2 performs automatic coding. After BCU2 successfully encodes, it sends a coding success message to BCU1, which is then sent to BAU by BCU1. And so on, until BAU receives the coding success message reported by BCUn, BAU reads the data of all BCUs, and after confirming that it is correct, it performs automatic coding successfully and ends the automatic coding.
[0169] In one embodiment, the connection mode of the battery control unit includes a ring-shaped bidirectional communication. In the ring-shaped bidirectional communication, the battery integration unit BAU is connected to at least one battery control unit, and the battery control units are connected in sequence, and the last battery control unit is connected to the battery integration unit.
[0170] In one embodiment, the last battery control unit is connected to the battery integrated unit via a communication line. In the ring-shaped two-way communication, after the corresponding encoding success information sent by the last battery control unit is obtained based on the communication loop, the encoding of the battery control unit is completed.
[0171] For example, the battery integrated unit BAU sends a coding instruction to the battery control unit BCU1, and at the same time sends a target coding address. After receiving the coding instruction and the target coding address, the battery control unit BCU1 performs automatic coding. After completion, the battery control unit BCU1 sends the coding instruction and the incremented target coding address to the battery control unit BCU2. After receiving the coding instruction and the incremented target coding address, the battery control unit BCU2 performs automatic coding. After completion, BCU2 sends the coding instruction and the incremented target coding address to BCU3. And so on, until the last battery control unit BCUn is successfully encoded, the coding instruction or target coding address is sent to the battery integrated unit BAU through the communication line. After receiving the data, the BAU knows that the encoding of BCUn and all the above BCUs is successful, and the automatic encoding ends.
[0172] Since each battery control unit will send a coding success message to the battery integration unit after successful coding, the battery integration unit obtains the coding success information reported by the battery control unit; after determining that the battery integration unit has received the coding success information reported by all battery control units, the coding of the battery control unit is ended.
[0173] In one embodiment, the last battery control unit in the first coding sequence is connected to the battery integrated unit via a coding loop, and it is not necessary to set each battery control unit to send a coding success message to the battery integrated unit after successful coding. After obtaining the coding success message sent by the last battery control unit based on the coding loop, the coding of the battery control unit is ended.
[0174] After obtaining the encoding success information reported by all battery control units, determine the received data address and quantity; when the quantity is greater than or equal to the preset quantity, report the encoding success information to the human-machine interface, and issue a stop encoding instruction to end the encoding of the battery control unit.
[0175] In one embodiment, after the last battery control unit is successfully encoded, the encoding address and encoding success information are sent to the battery integrated unit through the encoding return line. After the battery integrated unit obtains the encoding address and encoding success information returned by the last battery control unit, it confirms that the automatic encoding is successful, issues a stop encoding instruction, and ends the encoding.
[0176] In the technical solution of this embodiment, by sending the first coding instruction and the target coding address to the target battery control unit in the first coding sequence, the coding of the battery control unit in the first coding sequence is achieved, thereby improving the coding efficiency of the battery control unit.
[0177] 6 , which is a third embodiment of the encoding method of the present application, based on the first or second embodiment, step S20 includes:
[0178] Step S23, determining a target coding signal corresponding to the first coding instruction;
[0179] Step S24, when the first coding instruction is received based on the coding line, the target coding signal is sent to the target battery control unit in the first coding sequence based on the coding line, so that the target battery control unit encodes according to the received target coding signal and the preset address comparison table, and the target battery control unit is a battery control unit connected to the battery integrated unit.
[0180] In one embodiment, after successful encoding, the target encoding signal is updated according to a preset waveform sequence, and the target battery control unit sends the updated target encoding signal to the next battery control unit based on the encoding line until the last battery control unit is successfully encoded; wherein, the target battery control unit is a battery control unit connected to the battery integrated unit; the frequency, duty cycle and waveform of the encoding signals corresponding to different battery control units are different.
[0181] In this embodiment, the battery integrated unit is connected to at least one battery control unit based on a communication line and a coding line, and the battery control units are connected in sequence based on the coding line. For example, as shown in Figure 4, the battery integrated unit BAU is connected to the battery control unit BCU1, the battery control unit BCU2 to the battery control unit BCUn through a communication line, the battery integrated unit BAU is connected to the battery control unit BCU1 through a coding line, the battery control unit BCU1 is connected to the battery control unit BCU2 through a coding line, and so on. The battery control unit BCUn-1 is connected to the battery control unit BCUn through a coding line.
[0182] In this embodiment, the human-machine interface presets the total number n of battery control units (BCUs) to be encoded and sends an encoding instruction to the battery integration unit (BAU), which initiates the automatic encoding process. This initiation of automatic encoding also activates a timer function. If automatic encoding fails to complete within the timeout, an encoding fault is reported and the automatic encoding process ends. The encoding process is clearly defined as a single direction, for example, from BAU to BCU1 to BCU2. The encoding address increases in sequence and decreases in the reverse direction.
[0183] The battery control unit BCU starts automatic coding or continuously starts automatic coding after power-on by receiving the coding instruction from the battery integration unit BAU. The battery integration unit BAU sends the automatic coding instruction to the battery control unit BCU to start the automatic coding function, and the battery control unit BCU feeds back the start status to the battery integration unit BAU.
[0184] Different battery control units correspond to different encoding signals with different frequencies, duty cycles, and waveforms. For example, as shown in Figure 7, the battery integration unit (BAU) sends waveform 1 with a first frequency of a and a first duty cycle of b to battery control unit BCU1 (the target battery control unit). Upon receiving the waveform, battery control unit BCU1 automatically addresses the waveform as ID1 by comparing the waveform with a preset address table. Battery control unit BCU1 then sends waveform 2 with a second frequency of c and a second duty cycle of d to battery control unit BCU2. Upon receiving the waveform, battery control unit BCU2 automatically addresses the waveform as ID2 by comparing the waveform with a preset address table. Battery control unit BCU2 then sends waveform 3 with a third frequency of e and a third duty cycle of f to battery control unit BCU3. Upon receiving the waveform, battery control unit BCU3 automatically addresses the waveform as ID3 by comparing the waveform with a preset address table. Similarly, multiple battery control units on the same link sequentially send waveforms with different duty cycles and frequencies to lower-level battery control units, implementing automatic encoding for the lower-level battery control units.
[0185] In one embodiment, the connection method of the battery control unit includes chain two-way communication. In the chain two-way communication, the battery integration unit is connected to at least one battery control unit, and the battery control units are connected in sequence, and the last battery control unit is not connected to the battery integration unit through a coding loop.
[0186] In one embodiment, the communication line is a connection line between the battery management units and between the battery control unit and the first battery management unit, and the communication loop line is a connection line between the last battery management unit and the battery control unit.
[0187] In one embodiment, the encoding line is a connection line between battery management units and between the battery control unit and the first battery management unit, and the encoding return line is a connection line between the last battery management unit and the battery control unit.
[0188] In one embodiment, the battery control unit is connected to the battery integrated unit via a communication bus. After receiving address signals indicating successful encoding from all battery control units via the communication bus, encoding of the battery control unit is completed. For example, after successful encoding, BCU1 sends an address signal indicating successful encoding to the battery integrated unit BAU. After successful encoding, BCU2 sends an address signal indicating successful encoding to the battery integrated unit BAU. This continues until the last BCUn sends an address signal indicating successful encoding to the battery integrated unit BAU after successful encoding.
[0189] In the chain-type two-way communication, the coding success information reported by each battery control unit is obtained in turn, for example, the coding success information is a coding instruction or a coding signal. After the coding is successful, each battery control unit sends the coding success information to the battery integration unit; after determining that the battery integration unit has received the coding success information reported by all battery control units, the coding of the battery control unit is ended.
[0190] For example, as shown in Figure 4, the battery integration unit BAU sends a coding instruction to the battery control unit BCU1, and at the same time sends a target coding signal. After receiving the coding instruction and the target coding signal, BCU1 performs automatic coding. After BCU1 successfully encodes, it sends a coding success message to the battery integration unit. At the same time, BCU1 sends the coding instruction and the re-determined target coding signal to the next battery control unit BCU2. After receiving the coding instruction and the re-determined target coding signal, BCU2 performs automatic coding. After BCU2 successfully encodes, it sends a coding success message to BAU. And so on, until BAU receives the coding success message reported by BCUn, BAU reads the data of all BCUs, and after confirming that it is correct, it performs automatic coding successfully, and ends automatic coding.
[0191] In one embodiment, the connection mode of the battery control unit includes a ring-shaped bidirectional communication. In the ring-shaped bidirectional communication, the battery integration unit BAU is connected to at least one battery control unit, and the battery control units are connected in sequence, and the last battery control unit is connected to the battery integration unit.
[0192] In one embodiment, the last battery control unit is connected to the battery integrated unit via a communication line. In the ring-shaped two-way communication, after the corresponding encoding success information sent by the last battery control unit is obtained based on the communication loop, the encoding of the battery control unit is completed.
[0193] For example, the battery integrated unit BAU sends a coding instruction to the battery control unit BCU1 and simultaneously sends a target coding signal. After receiving the coding instruction and the target coding signal, the battery control unit BCU1 performs automatic coding. After completion, the battery control unit BCU1 sends the coding instruction and the re-determined target coding signal to the battery control unit BCU2. After receiving the coding instruction and the re-determined target coding signal, the battery control unit BCU2 performs automatic coding. After completion, BCU2 sends the coding instruction and the re-determined target coding signal to BCU3. This process continues in this way until the last battery control unit BCUn is successfully coded. The coding instruction or target coding signal is then sent to the battery integrated unit BAU via the communication line. After receiving the data, the BAU learns that the coding of BCUn and all the BCUs above it is successful, and the automatic coding ends.
[0194] In one embodiment, the last battery control unit is connected to the battery integrated unit via a coding loop. In the ring-shaped two-way communication, after obtaining the first coding instruction or the coding signal corresponding to the last battery control unit based on the coding loop, the coding of the battery control unit is completed.
[0195] For example, the battery integrated unit BAU sends a coding instruction to the battery control unit BCU1, and at the same time sends a target coding signal. After receiving the coding instruction and the target coding signal, the battery control unit BCU1 performs automatic coding. After completion, the battery control unit BCU1 sends the coding instruction and the re-determined target coding signal to the battery control unit BCU2. After receiving the coding instruction and the re-determined target coding signal, the battery control unit BCU2 performs automatic coding. After completion, BCU2 sends the coding instruction and the re-determined target coding signal to BCU3. And so on, until the last battery control unit BCUn is successfully encoded, the coding instruction or target coding signal is sent to the battery integrated unit BAU through the encoding loop. After receiving the data, the BAU knows that the encoding of BCUn and all the above BCUs is successful, and the automatic encoding ends.
[0196] In one embodiment, the battery control unit BCU1 reports the coding information to the battery integration unit BAU, and each battery control unit BCU that has successfully coded needs to report coding success information to the battery integration unit BAU.
[0197] In one embodiment, after receiving the encoding success report, the battery integration unit (BAU) verifies the number of received encoding addresses and encoding success messages. When the number reaches n, it reports encoding success to the human-machine interface (HMI) and issues a stop encoding command to terminate encoding. Upon receiving the stop encoding command from the BAU, the battery control unit (BCU) terminates encoding, exits encoding mode, and stops issuing encoding waveforms. The HMI displays the encoding success or failure status based on the information reported by the BAU.
[0198] In one embodiment, after the last battery control unit BCUn successfully encodes, it sends waveform n to the battery integration unit BAU through the encoding loop and reports the encoding success information to the battery integration unit BAU. After receiving the waveform returned by BCUn, BAU confirms that the automatic encoding is successful, issues a stop encoding instruction, and ends the encoding. After receiving the stop encoding instruction from BAU, BCU ends the encoding, exits the encoding mode, and stops sending the encoding waveform. The human-machine interface displays the encoding success or failure status based on the information reported by BAU.
[0199] Since each battery control unit will send a coding success message to the battery integration unit after successful coding, the battery integration unit obtains the coding success information reported by the battery control unit; after determining that the battery integration unit has received the coding success information reported by all battery control units, the coding of the battery control unit is ended.
[0200] In one embodiment, the last battery control unit in the first coding sequence is connected to the battery integrated unit via a coding loop, and it is not necessary to set each battery control unit to send a coding success message to the battery integrated unit after successful coding. After obtaining the coding success message sent by the last battery control unit based on the coding loop, the coding of the battery control unit is ended.
[0201] In one embodiment, after obtaining the encoding success information reported by all battery control units, the number of received waveforms and encoding success information is determined; after the number of encoding success information is greater than or equal to a preset number, the encoding success information is reported to the human-machine interface, and a stop encoding instruction is issued to end the encoding of the battery control unit.
[0202] In one embodiment, after the last battery control unit is successfully encoded, the waveform and encoding success information are sent to the battery integration unit through the encoding loop. After the battery integration unit obtains the waveform returned by the last battery control unit, it confirms that the automatic encoding is successful, sends a stop encoding instruction, and ends the encoding.
[0203] In the technical solution of this embodiment, by sending the target coding signal to the target battery control unit in the first coding sequence, the coding of the battery control unit in the first coding sequence is achieved, thereby improving the coding efficiency of the battery control unit.
[0204] 8 , which shows a fourth embodiment of the encoding method of the present application, the method includes:
[0205] Step S30, obtaining a first coding sequence and a first coding instruction sent by the battery integration unit;
[0206] Step S40, encoding the current battery control unit according to the first encoding sequence and the first encoding instruction;
[0207] Step S50: After the current battery control unit is successfully encoded, the first encoding instruction is sent to the next battery control unit until the last battery control unit is successfully encoded. The next battery control unit is determined by the first encoding sequence.
[0208] In one embodiment, step S40 includes: obtaining a target coding address sent by the battery integrated unit; and performing coding according to the first coding instruction and the target coding address. Step S50 includes: after the current battery control unit is successfully coded, updating the target coding address according to a preset sequence, and sending the first coding instruction and the updated target coding address to the next battery control unit until the last battery control unit is successfully coded.
[0209] In this embodiment, the battery integration unit (BAU) is connected to at least one battery control unit (BCU) via a communication line, and the BCUs are sequentially connected. For example, as shown in Figure 3, the battery integration unit (BAU) is connected to the battery control unit (BCU1) via a communication line, and the battery control unit (BCU1) is connected to the battery control unit (BCU2) via a communication line. Similarly, the battery control unit (BCUn-1) is connected to the battery control unit (BCUn) via a communication line.
[0210] In one embodiment, the battery integrated unit sends a first coding instruction and a target coding address to a target battery control unit in a first coding sequence. The target battery control unit automatically performs coding after receiving the first coding instruction and the target coding address. After successful coding, the target coding address is updated according to a preset sequence. For example, the target coding address is updated in an increasing or decreasing order, and the first coding instruction and the updated target coding address are sent to the next battery control unit. The next battery control unit performs coding based on the first coding instruction and the target coding address, and so on, until the last battery control unit is successfully coded.
[0211] Exemplarily, when the first coding sequence includes the battery control unit BCU1, the battery control unit BCU2, and the battery control unit BCU3 in sequence, the battery integrated unit BAU sends a coding instruction and a target coding address to the battery control unit BCU1. After receiving the coding instruction and the target coding address, the battery control unit BCU1 performs automatic coding. After the coding is successful, the target coding address is incremented. At the same time, the battery control unit BCU1 sends a coding instruction and the incremented target coding address to the battery control unit BCU2. After receiving the coding instruction and the incremented target coding address, the battery control unit BCU2 performs automatic coding. After the coding is successful, the target coding address is incremented. The battery control unit BCU2 sends a coding instruction and the incremented target coding address to the battery control unit BCU3. After receiving the coding instruction and the target coding address, the battery control unit BCU3 performs automatic coding.
[0212] In one embodiment, the connection method of the battery control unit includes chain two-way communication. In the chain two-way communication, the battery integrated unit is connected to at least one battery control unit, and the battery control units are connected in sequence, and the last battery control unit is not connected to the battery integrated unit through a communication line or a coding loop line.
[0213] In the chain two-way communication, the encoding success information reported by each battery control unit is obtained in turn. After encoding is successful, each battery control unit sends the encoding success information to the battery integration unit; after determining that the battery integration unit has received the encoding success information reported by all battery control units, the encoding of the battery control unit is ended.
[0214] For example, as shown in Figure 3, the battery integration unit BAU sends a coding instruction to the battery control unit BCU1, and at the same time sends a target coding address. After receiving the coding instruction and the target coding address, BCU1 performs automatic coding. After BCU1 successfully encodes, it sends a coding success message to the battery integration unit. At the same time, BCU1 sends the coding instruction and the incremented target coding address to the next battery control unit BCU2. After receiving the coding instruction and the incremented target coding address, BCU2 performs automatic coding. After BCU2 successfully encodes, it sends a coding success message to BCU1, which is then sent to BAU by BCU1. And so on, until BAU receives the coding success message reported by BCUn, BAU reads the data of all BCUs, and after confirming that it is correct, it performs automatic coding successfully and ends the automatic coding.
[0215] In one embodiment, the connection mode of the battery control unit includes a ring-shaped bidirectional communication. In the ring-shaped bidirectional communication, the battery integration unit BAU is connected to at least one battery control unit, and the battery control units are connected in sequence, and the last battery control unit is connected to the battery integration unit.
[0216] In one embodiment, the last battery control unit is connected to the battery integrated unit via a communication line. In the ring-shaped two-way communication, after the corresponding encoding success information sent by the last battery control unit is obtained based on the communication loop, the encoding of the battery control unit is completed.
[0217] For example, the battery integrated unit BAU sends a coding instruction to the battery control unit BCU1, and at the same time sends a target coding address. After receiving the coding instruction and the target coding address, the battery control unit BCU1 performs automatic coding. After completion, the battery control unit BCU1 sends the coding instruction and the incremented target coding address to the battery control unit BCU2. After receiving the coding instruction and the incremented target coding address, the battery control unit BCU2 performs automatic coding. After completion, BCU2 sends the coding instruction and the incremented target coding address to BCU3. And so on, until the last battery control unit BCUn is successfully encoded, the coding instruction or target coding address is sent to the battery integrated unit BAU through the communication line. After receiving the data, the BAU knows that the encoding of BCUn and all the above BCUs is successful, and the automatic encoding ends.
[0218] In one embodiment, step S40 includes: obtaining a target coding signal transmitted by the battery integrated unit; and performing coding according to the target coding signal and a preset address comparison table. Step S50 includes: after the current battery control unit is successfully coded, updating the target coding signal according to a preset waveform sequence, and transmitting the updated target coding signal to the next battery control unit until the last battery control unit is successfully coded.
[0219] In this embodiment, the battery integrated unit is connected to at least one battery control unit based on a communication line and a coding line, and the battery control units are connected in sequence based on the coding line. For example, as shown in Figure 4, the battery integrated unit BAU is connected to the battery control unit BCU1, the battery control unit BCU2 to the battery control unit BCUn through a communication line, the battery integrated unit BAU is connected to the battery control unit BCU1 through a coding line, the battery control unit BCU1 is connected to the battery control unit BCU2 through a coding line, and so on. The battery control unit BCUn-1 is connected to the battery control unit BCUn through a coding line.
[0220] In this embodiment, the human-machine interface presets the total number n of battery control units (BCUs) to be encoded and sends an encoding instruction to the battery integration unit (BAU), which initiates the automatic encoding process. This initiation of automatic encoding also activates a timer function. If automatic encoding fails to complete within the timeout, an encoding fault is reported and the automatic encoding process ends. The encoding process is clearly defined as a single direction, for example, from BAU to BCU1 to BCU2. The encoding address increases in sequence and decreases in the reverse direction.
[0221] The battery control unit BCU starts automatic coding or continuously starts automatic coding after power-on by receiving the coding instruction from the battery integration unit BAU. The battery integration unit BAU sends the automatic coding instruction to the battery control unit BCU to start the automatic coding function, and the battery control unit BCU feeds back the start status to the battery integration unit BAU.
[0222] Different battery control units correspond to different encoding signals with different frequencies, duty cycles, and waveforms. For example, as shown in Figure 7, the battery integration unit (BAU) sends waveform 1 with a first frequency of a and a first duty cycle of b to battery control unit BCU1 (the target battery control unit). Upon receiving the waveform, battery control unit BCU1 automatically addresses the waveform as ID1 by comparing the waveform with a preset address table. Battery control unit BCU1 then sends waveform 2 with a second frequency of c and a second duty cycle of d to battery control unit BCU2. Upon receiving the waveform, battery control unit BCU2 automatically addresses the waveform as ID2 by comparing the waveform with a preset address table. Battery control unit BCU2 then sends waveform 3 with a third frequency of e and a third duty cycle of f to battery control unit BCU3. Upon receiving the waveform, battery control unit BCU3 automatically addresses the waveform as ID3 by comparing the waveform with a preset address table. Similarly, multiple battery control units on the same link sequentially send waveforms with different duty cycles and frequencies to lower-level battery control units, implementing automatic encoding for the lower-level battery control units.
[0223] In one embodiment, the connection method of the battery control unit includes chain two-way communication. In the chain two-way communication, the battery integration unit is connected to at least one battery control unit, and the battery control units are connected in sequence, and the last battery control unit is not connected to the battery integration unit through a coding loop.
[0224] In the chain-type two-way communication, the coding success information reported by each battery control unit is obtained in turn, for example, the coding success information is a coding instruction or a coding signal. After the coding is successful, each battery control unit sends the coding success information to the battery integration unit; after determining that the battery integration unit has received the coding success information reported by all battery control units, the coding of the battery control unit is ended.
[0225] For example, as shown in Figure 4, the battery integration unit BAU sends a coding instruction to the battery control unit BCU1, and at the same time sends a target coding signal. After receiving the coding instruction and the target coding signal, BCU1 performs automatic coding. After BCU1 successfully encodes, it sends a coding success message to the battery integration unit. At the same time, BCU1 sends the coding instruction and the re-determined target coding signal to the next battery control unit BCU2. After receiving the coding instruction and the re-determined target coding signal, BCU2 performs automatic coding. After BCU2 successfully encodes, it sends a coding success message to BAU. And so on, until BAU receives the coding success message reported by BCUn, BAU reads the data of all BCUs, and after confirming that it is correct, it performs automatic coding successfully, and ends automatic coding.
[0226] In one embodiment, the connection mode of the battery control unit includes a ring-shaped bidirectional communication. In the ring-shaped bidirectional communication, the battery integration unit BAU is connected to at least one battery control unit, and the battery control units are connected in sequence, and the last battery control unit is connected to the battery integration unit.
[0227] In one embodiment, the last battery control unit is connected to the battery integrated unit via a communication line. In the ring-shaped two-way communication, after the corresponding encoding success information sent by the last battery control unit is obtained based on the communication loop, the encoding of the battery control unit is completed.
[0228] For example, the battery integrated unit BAU sends a coding instruction to the battery control unit BCU1 and sends a target coding signal at the same time. After receiving the coding instruction and the target coding signal, the battery control unit BCU1 performs automatic coding. After completion, the battery control unit BCU1 sends the coding instruction and the re-determined target coding signal to the battery control unit BCU2. After receiving the coding instruction and the re-determined target coding signal, the battery control unit BCU2 performs automatic coding. After completion, BCU2 sends the coding instruction and the re-determined target coding signal to BCU3. And so on, until the last battery control unit BCUn is successfully encoded, the coding instruction or target coding signal is sent to the battery integrated unit BAU through the communication line. After receiving the data, the BAU knows that the encoding of BCUn and all the above BCUs is successful, and the automatic encoding ends.
[0229] In one embodiment, the last battery control unit is connected to the battery integrated unit via a coding loop. In the ring-shaped two-way communication, after obtaining the first coding instruction or the coding signal corresponding to the last battery control unit based on the coding loop, the coding of the battery control unit is completed.
[0230] For example, the battery integrated unit BAU sends a coding instruction to the battery control unit BCU1, and at the same time sends a target coding signal. After receiving the coding instruction and the target coding signal, the battery control unit BCU1 performs automatic coding. After completion, the battery control unit BCU1 sends the coding instruction and the re-determined target coding signal to the battery control unit BCU2. After receiving the coding instruction and the re-determined target coding signal, the battery control unit BCU2 performs automatic coding. After completion, BCU2 sends the coding instruction and the re-determined target coding signal to BCU3. And so on, until the last battery control unit BCUn is successfully encoded, the coding instruction or target coding signal is sent to the battery integrated unit BAU through the encoding loop. After receiving the data, the BAU knows that the encoding of BCUn and all the above BCUs is successful, and the automatic encoding ends.
[0231] In the technical solution of this embodiment, the battery control unit is encoded through the first encoding sequence and the first encoding instruction, thereby achieving automatic encoding of the battery control unit and improving encoding efficiency.
[0232] Referring to FIG. 9 , FIG. 9 is a fifth embodiment of the encoding method of the present application. Based on the fourth embodiment, the method includes:
[0233] Step S60, determining a second coding sequence of the battery management unit according to a connection mode of the battery management unit;
[0234] Step S70: When receiving the second coding instruction, encode the battery management unit according to the second coding sequence and the second coding instruction.
[0235] In this embodiment, the battery integration unit (BAU) is connected to at least one battery control unit (BCU), which is in turn connected to at least one battery management unit (BMU). Upon receiving a first coded instruction from a computer or other human-machine interface, the battery integration unit (BAU) sends the coded instruction to all control units, which then report back the power-on status. Alternatively, the battery integration unit can automatically power on at the initial stage of power-up, after which the integration unit sends a target coded signal to the target control unit.
[0236] In one embodiment, the initiator is still the human-machine interface (HMI), and the BCU manages the BMU encoding. The encoding instructions, encoding addresses, or encoding signals can be forwarded by the BAU to the BCU or sent directly by the HMI. In one embodiment, the BMU is encoded after the BMU's corresponding battery control unit has successfully encoded, or after the HMI initiates BMU encoding. In one embodiment, BMU encoding can be initiated by the HMI, or the BCU can automatically initiate the BMU encoding process after encoding is complete.
[0237] In this embodiment, the battery control unit (BCU) is connected to at least one battery management unit (BMU) via a communication line. For example, as shown in Figure 3, the battery control unit (BCU) is connected to the battery management unit (BMU1) via a communication line, which in turn is connected to the battery management unit (BMU2) via a communication line. Similarly, the battery management unit (BMUn-1) is connected to the battery management unit (BMUn) via a communication line. For another example, as shown in Figure 4, the battery control unit (BCU) is connected to the battery management unit (BMU1), the battery management unit (BMU2), and the battery management unit (BMUn) via communication lines.
[0238] In one embodiment, the battery control unit and at least one battery management unit are further connected based on a coding line, and the battery management units are connected in sequence based on the coding line. For example, as shown in Figure 4, the battery control unit BCU is connected to the battery management unit BMU1, the battery management unit BMU2 to the battery management unit BMUn through communication lines, the battery control unit BCU is connected to the battery management unit BMU1 through the coding line, the battery management unit BMU1 is connected to the battery management unit BMU2 through the coding line, and so on. The battery management unit BMUn-1 is connected to the battery management unit BMUn through the coding line.
[0239] In one embodiment, the connection method of the battery management unit includes chain bidirectional communication. In the chain bidirectional communication, the battery control unit is connected to at least one battery management unit, and the battery management units are connected in sequence. The last battery management unit is not connected to the battery control unit through a communication line or a coding loop line.
[0240] For example, as shown in Figure 3, the battery control unit BCU is connected to the battery management unit BMU1, the battery management unit BMU1 is connected to the battery management unit BMU2 via a communication line, the battery management unit BMU2 is connected to the battery management unit BMU3 via a communication line, and so on, wherein the last battery management unit BMUn is not connected to the battery control unit BCU via a communication line.
[0241] For another example, as shown in FIG4 , the battery control unit BCU is connected to the battery management units BMU1, BMU2, ..., BMUn through communication lines respectively. The battery control unit BCU is connected to the battery management unit BMU1 through a coding line. The battery management unit BMU1 is connected to the battery management unit BMU2 through a coding line, and so on. The last battery management unit BMUn is not connected to the battery control unit BCU through a coding loop line.
[0242] In one embodiment, the connection mode of the battery management unit includes a ring-shaped bidirectional communication. In the ring-shaped bidirectional communication, the battery control unit BCU is connected to at least one battery management unit, and the battery management units are connected in sequence, and the last battery management unit is connected to the battery control unit.
[0243] For example, as shown in FIG3 , the battery control unit BCU is connected to the battery management unit BMU1, the battery management unit BMU1 is connected to the battery management unit BMU2 via a communication line, the battery management unit BMU2 is connected to the battery management unit BMU3 via a communication line, and so on, wherein the last battery management unit BMUn is connected to the battery control unit BCU via a communication line.
[0244] For another example, as shown in FIG4 , the battery control unit BCU is connected to the battery management units BMU1, BMU2, ..., BMUn through communication lines respectively. The battery control unit BCU is connected to the battery management unit BMU1 through an encoding line. The battery management unit BMU1 is connected to the battery management unit BMU2 through an encoding line, and so on. The last battery management unit BMUn is connected to the battery control unit BCU through an encoding loop line.
[0245] In one embodiment, the second coding order is determined according to the connection method of the battery management unit. For example, the battery management unit BMU1 is connected to the battery management unit BMU2, and the battery management unit BMU2 is connected to the battery management unit BMU3. Therefore, the second coding order of the battery management unit includes the battery management unit BMU1, the battery management unit BMU2, and the battery management unit BMU3 in sequence.
[0246] In one embodiment, after receiving the coding success report, the battery control unit (BCU) verifies the number of received coding addresses and coding success messages. When the number reaches n, it reports coding success to the human-machine interface (HMI) and issues a stop coding instruction to terminate coding. Upon receiving the stop coding instruction from the BCU, the battery management unit (BMU) terminates coding, exits coding mode, and stops issuing coding waveforms. The HMI displays the coding success or failure status based on the information reported by the BCU.
[0247] In one embodiment, after the last battery management unit BMUn is successfully encoded, waveform n is sent to the battery control unit BCU via the encoding return line, and encoding success information is reported to the battery control unit BCU. After receiving the waveform returned by BMUn, the BAU confirms that the automatic encoding is successful, issues a stop encoding instruction, and ends the encoding. After receiving the stop encoding instruction from the BAU, the BMU ends the encoding, exits the encoding mode, and stops sending the encoding waveform. The human-machine interface displays the encoding success or failure status based on the information reported by the BAU.
[0248] Since each battery management unit will send a coding success message to the battery control unit after successful coding, the battery control unit obtains the coding success information reported by the battery management unit; after determining that the battery control unit has received the coding success information reported by all battery management units, the coding of the battery management unit is ended.
[0249] In one embodiment, the last battery management unit in the second encoding sequence is connected to the battery control unit via a coding loop, and it is not necessary to set each battery management unit to send coding success information to the battery control unit after successful encoding. After obtaining the coding success information sent by the last battery management unit based on the coding loop, the encoding of the battery management unit is ended.
[0250] In one embodiment, after obtaining the encoding success information reported by all battery management units, the number of received waveforms and encoding success information is determined; after the number of encoding success information is greater than or equal to a preset number, the encoding success information is reported to the human-machine interface, and a stop encoding instruction is issued to end the encoding of the battery management unit.
[0251] In one embodiment, after the last battery management unit is successfully encoded, the waveform and encoding success information are sent to the battery control unit via the encoding return line. After the battery control unit obtains the waveform returned by the last battery management unit, it confirms that the automatic encoding is successful, issues a stop encoding instruction, and ends the encoding.
[0252] In the technical solution of this embodiment, the battery management unit is encoded through the second encoding sequence and the second encoding instruction, thereby achieving automatic encoding of the battery management unit and improving the encoding efficiency of the battery system.
[0253] 10 , which is a sixth embodiment of the encoding method of the present application, based on the fourth or fifth embodiment, step S70 includes:
[0254] Step S71, determining the sub-coding address corresponding to the second coding instruction;
[0255] Step S72: sending the second coding instruction and the sub-coding address to the target battery management unit in the second coding sequence via the communication line, so that the target battery management unit automatically performs coding after receiving the second coding instruction and the sub-coding address.
[0256] In one embodiment, after successful encoding, the sub-coding address is updated according to a preset order, and the target battery management unit sends the second encoding instruction and the updated sub-coding address to the next battery management unit based on the communication line until the last battery management unit is successfully encoded; wherein, the target battery management unit is the battery management unit connected to the battery control unit.
[0257] In this embodiment, the battery control unit (BCU) is connected to at least one battery management unit (BMU) via a communication line, and the BMUs are connected in sequence. For example, as shown in Figure 3, the battery control unit (BCU) is connected to the battery management unit (BMU1) via a communication line, and the battery management unit (BMU1) is connected to the battery management unit (BMU2) via a communication line. Similarly, the battery management unit (BMUn-1) is connected to the battery management unit (BMUn) via a communication line.
[0258] In this embodiment, the target BMU is a BMU connected to the BCU. For example, the BMU 1 is connected to the BCU, and the BMU 1 is the target BMU.
[0259] In one embodiment, the battery control unit sends the second coding instruction and the sub-coding address to the target battery management unit in the second coding sequence. The target battery management unit automatically performs coding after receiving the second coding instruction and the sub-coding address. After the coding is successful, the sub-coding address is updated according to a preset sequence. For example, the sub-coding address is updated in an increasing or decreasing order, and the second coding instruction and the updated sub-coding address are sent to the next battery management unit. The next battery management unit performs coding based on the second coding instruction and the sub-coding address, and so on, until the last battery management unit is successfully coded.
[0260] Exemplarily, when the second encoding sequence includes the battery management unit BMU1, the battery management unit BMU2, and the battery management unit BMU3 in sequence, the battery control unit BCU sends an encoding instruction and a sub-coding address to the battery management unit BMU1. After receiving the encoding instruction and the sub-coding address, the battery management unit BMU1 automatically encodes. After the encoding is successful, the sub-coding address is incremented. At the same time, the battery management unit BMU1 sends an encoding instruction and the incremented sub-coding address to the battery management unit BMU2. After receiving the encoding instruction and the incremented sub-coding address, the battery management unit BMU2 automatically encodes. After the encoding is successful, the sub-coding address is incremented. The battery management unit BMU2 sends an encoding instruction and the incremented sub-coding address to the battery management unit BMU3. After receiving the encoding instruction and the sub-coding address, the battery management unit BMU3 automatically encodes.
[0261] In one embodiment, the connection method of the battery management unit includes chain bidirectional communication. In the chain bidirectional communication, the battery control unit is connected to at least one battery management unit, and the battery management units are connected in sequence. The last battery management unit is not connected to the battery control unit through a communication line or a coding loop line.
[0262] In the chain two-way communication, the encoding success information reported by each battery management unit is obtained in turn. After the encoding is successful, each battery management unit sends the encoding success information to the battery control unit; after determining that the battery control unit has received the encoding success information reported by all battery management units, the encoding of the battery management unit is ended.
[0263] For example, as shown in Figure 3, the battery control unit (BCU) sends an encoding instruction to the battery management unit (BMU1), along with a sub-encoding address. After receiving the encoding instruction and sub-encoding address, BMU1 performs automatic encoding. After BMU1 successfully encodes, it sends an encoding success message to the battery control unit. Simultaneously, BMU1 sends the encoding instruction and the incremented sub-encoding address to the next battery management unit, BMU2. After receiving the encoding instruction and the incremented sub-encoding address, BMU2 performs automatic encoding. After successfully encoding, BMU2 sends an encoding success message to BMU1, which then sends it to the BCU. This process continues until the BCU receives the encoding success message reported by BMUn. At this point, the BCU reads the data from all BMUs, confirms that the automatic encoding is successful, and concludes the automatic encoding process.
[0264] In one embodiment, the connection mode of the battery management unit includes a ring-shaped bidirectional communication. In the ring-shaped bidirectional communication, the battery control unit BCU is connected to at least one battery management unit, and the battery management units are connected in sequence, and the last battery management unit is connected to the battery control unit.
[0265] In one embodiment, the last battery management unit is connected to the battery control unit via a communication line. In the ring-shaped two-way communication, after the corresponding encoding success information sent by the last battery management unit is obtained based on the communication loop, the encoding of the battery management unit is completed.
[0266] For example, the battery control unit BCU sends a coding instruction to the battery management unit BMU1 and simultaneously sends a sub-coding address. After receiving the coding instruction and sub-coding address, the battery management unit BMU1 performs automatic coding. After completion, the battery management unit BMU1 sends the coding instruction and the incremented sub-coding address to the battery management unit BMU2. After receiving the coding instruction and the incremented sub-coding address, the battery management unit BMU2 performs automatic coding. After completion, BMU2 sends the coding instruction and the incremented sub-coding address to BMU3. And so on, until the last battery management unit BMUn is successfully encoded, the coding instruction or sub-coding address is sent to the battery control unit BCU via the communication line. After receiving the data, the BCU knows that the encoding of BMUn and all the BMUs above is successful, and the automatic coding ends.
[0267] In the technical solution of this embodiment, by sending the second encoding instruction and the sub-encoding address to the target battery management unit in the second encoding sequence, the encoding of the battery management unit in the second encoding sequence is achieved, thereby improving the encoding efficiency of the battery management unit.
[0268] Referring to FIG. 11 , FIG. 11 is a seventh embodiment of the encoding method of the present application, based on any one of the fourth to sixth embodiments, step S70 includes:
[0269] Step S73, determining the sub-coding signal corresponding to the second coding instruction;
[0270] Step S74, when a second coding instruction is received based on the coding line, the first signal is sent to the target battery management unit in the second coding sequence based on the coding line, so that the target battery management unit performs coding according to the received sub-coding signal and the preset address comparison table.
[0271] In one embodiment, after successful encoding, the sub-coding signal is updated according to a preset waveform sequence, and the target battery management unit sends the updated sub-coding signal to the next battery management unit until the last battery management unit is successfully encoded; wherein, the target battery management unit is the battery management unit connected to the battery control unit; the frequency, duty cycle and waveform of the coding signals corresponding to different battery management units are different.
[0272] In this embodiment, the battery control unit is connected to at least one battery management unit based on a communication line and a coding line, and the battery management units are connected in sequence based on the coding line. For example, as shown in Figure 4, the battery control unit BCU is connected to the battery management unit BMU1, the battery management unit BMU2 to the battery management unit BMUn through communication lines, the battery control unit BCU is connected to the battery management unit BMU1 through the coding line, the battery management unit BMU1 is connected to the battery management unit BMU2 through the coding line, and so on. The battery management unit BMUn-1 is connected to the battery management unit BMUn through the coding line.
[0273] In this embodiment, the human-machine interface presets the total number n of battery management units (BMUs) to be encoded and sends an encoding instruction to the battery control unit (BCU), which initiates the automatic encoding process. The BCU also starts a timer function when automatic encoding is initiated. If automatic encoding fails to complete within the timeout, an encoding fault is reported and automatic encoding ends. The encoding process is clearly defined as a single direction, for example, from BCU to BMU1 to BMU2. The encoding address increases in sequence and decreases in the reverse direction.
[0274] The battery management unit BMU starts automatic coding or continuously turns on automatic coding after power-on by receiving the coding instruction from the battery control unit BCU. The battery control unit BCU sends the automatic coding instruction to the battery management unit BMU to turn on the automatic coding function, and the battery management unit BMU feeds back the start status to the battery control unit BCU.
[0275] The frequency, duty cycle, and waveform of the encoding signals corresponding to different battery management units (BMUs) vary. For example, as shown in Figure 7, the battery control unit (BCU) sends waveform 1 with a first frequency of a and a first duty cycle of b to battery management unit (BMU1), the target BMU. Upon receiving the waveform, BMU1 automatically addresses the waveform as ID1 by comparing the waveform with a preset address table. BMU1 then sends waveform 2 with a second frequency of c and a second duty cycle of d to battery management unit (BMU2). Upon receiving the waveform, BMU2 automatically addresses the waveform as ID2 by comparing the waveform with a preset address table. BMU2 then sends waveform 3 with a third frequency of e and a third duty cycle of f to battery management unit (BMU3). Upon receiving the waveform, BMU3 automatically addresses the waveform as ID3 by comparing the waveform with a preset address table. Similarly, multiple BMUs on the same link sequentially send waveforms with different duty cycles and frequencies to lower-level BMUs, implementing automatic encoding for the next-level BMUs.
[0276] In one embodiment, the connection method of the battery management unit includes chain two-way communication. In the chain two-way communication, the battery control unit is connected to at least one battery management unit, and the battery management units are connected in sequence, and the last battery management unit is not connected to the battery control unit through a coding loop.
[0277] In the chain-type two-way communication, the encoding success information reported by each battery management unit is obtained in turn. For example, the encoding success information is an encoding instruction or an encoding signal. After encoding is successful, each battery management unit sends the encoding success information to the battery control unit; after determining that the battery control unit has received the encoding success information reported by all battery management units, the encoding of the battery management unit is ended.
[0278] For example, as shown in Figure 4, the battery control unit (BCU) sends an encoding instruction to the battery management unit (BMU1) and simultaneously sends a sub-encoding signal. After receiving the encoding instruction and sub-encoding signal, BMU1 performs automatic encoding. Upon successful encoding, BMU1 sends an encoding success message to the battery control unit. Simultaneously, BMU1 sends the encoding instruction and a re-determined sub-encoding signal to the next battery management unit, BMU2. Upon receiving the encoding instruction and re-determined sub-encoding signal, BMU2 performs automatic encoding. Upon successful encoding, BMU2 sends an encoding success message to the BCU. This continues in this manner until the BCU receives the encoding success message reported by the BMUn. At this point, the BCU reads the data from all BMUs, confirms that the automatic encoding is successful, and concludes the automatic encoding process.
[0279] In one embodiment, the connection mode of the battery management unit includes a ring-shaped bidirectional communication. In the ring-shaped bidirectional communication, the battery control unit BCU is connected to at least one battery management unit, and the battery management units are connected in sequence, and the last battery management unit is connected to the battery control unit.
[0280] In one embodiment, the battery management unit is connected to the battery control unit via a communication bus. After receiving address signals indicating successful encoding from all battery management units via the communication bus, encoding of the battery management unit is completed. For example, after successful encoding, BMU1 sends an address signal indicating successful encoding to the battery control unit BCU1. After successful encoding, BMU2 sends an address signal indicating successful encoding to the battery control unit BCU1. This continues until the last BMUn sends an address signal indicating successful encoding to the battery control unit BCU1 after successful encoding.
[0281] In one embodiment, the last battery management unit is connected to the battery control unit via a communication line. In the ring-shaped two-way communication, after the corresponding encoding success information sent by the last battery management unit is obtained based on the communication loop, the encoding of the battery management unit is completed.
[0282] For example, the battery control unit (BCU) sends a coding instruction to the battery management unit (BMU1) and simultaneously sends a sub-coding signal. After receiving the coding instruction and sub-coding signal, BMU1 automatically encodes. Upon completion, BMU1 sends the coding instruction and the re-determined sub-coding signal to BMU2. BMU2 then receives the coding instruction and the re-determined sub-coding signal and automatically encodes. Upon completion, BMU2 sends the coding instruction and the re-determined sub-coding signal to BMU3. This continues in this manner until the last battery management unit (BMUn) is successfully encoded. At this point, the coding instruction or sub-coding signal is sent to the battery control unit (BCU) via the communication line. Upon receiving the data, the BCU learns that BMUn and all the BMUs above it have been successfully encoded, and the automatic encoding ends.
[0283] In one embodiment, the last battery management unit is connected to the battery control unit via a coding loop. In the ring-shaped two-way communication, after obtaining the first coding instruction or the coding signal corresponding to the last battery management unit based on the coding loop, the coding of the battery management unit is completed.
[0284] For example, the battery control unit BCU sends a coding instruction to the battery management unit BMU1 and a sub-coding signal at the same time. After receiving the coding instruction and sub-coding signal, the battery management unit BMU1 performs automatic coding. After completion, the battery management unit BMU1 sends the coding instruction and the re-determined sub-coding signal to the battery management unit BMU2. After receiving the coding instruction and the re-determined sub-coding signal, the battery management unit BMU2 performs automatic coding. After completion, BMU2 sends the coding instruction and the re-determined sub-coding signal to BMU3. And so on, until the last battery management unit BMUn is successfully encoded, the coding instruction or sub-coding signal is sent to the battery control unit BCU through the encoding loop. After receiving the data, the BCU knows that the encoding of BMUn and all the BMUs above is successful, and the automatic coding ends.
[0285] In the technical solution of this embodiment, by sending the sub-coding signal to the target battery management unit in the second coding sequence, the coding of the battery management unit in the second coding sequence is achieved, thereby improving the coding efficiency of the battery management unit.
[0286] In the technical solution of this embodiment, after the battery control unit corresponding to the battery management unit is successfully encoded, the second encoding sequence of the battery management unit is determined according to the connection method; when the second encoding instruction is received, the battery management unit is encoded according to the second encoding sequence and the second encoding instruction, thereby realizing the encoding of the battery management unit and improving the encoding efficiency of the battery management unit.
[0287] The present application also provides an encoding device, which includes a memory, a processor, and an encoding program stored in the memory and executable on the processor. When the encoding program is executed by the processor, the various steps of the encoding method described in the above embodiment are implemented.
[0288] The present application also provides a computer-readable storage medium, which stores a coding program. When the coding program is executed by a processor, the coding program implements the various steps of the coding method described in the above embodiment.
[0289] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0290] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, system, article, or device comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, system, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, system, article, or device comprising the element.
[0291] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment system can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this 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 computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, parking management equipment, air conditioner, or network equipment, etc.) to execute the system described in each embodiment of the present application.
[0292] The above are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A coding method, wherein: The encoding method is applied to a battery integration unit, wherein the battery integration unit is connected to at least one battery control unit via a communication line, and the encoding method includes: determining a first coding sequence of the battery control unit according to a connection mode of the battery control unit; When the first encoding instruction is received, the battery control unit is encoded according to the first encoding sequence and the first encoding instruction.
2. The encoding method according to claim 1, wherein: The battery control units are connected in sequence via communication lines, and the step of encoding the battery control units according to the first encoding sequence and the first encoding instruction includes: Determining a target encoding address corresponding to the first encoding instruction; The first coding instruction and the target coding address are sent to the target battery control unit in the first coding sequence based on the communication line, so that the target battery control unit performs coding after receiving the first coding instruction and the target coding address, wherein the target battery control unit is a battery control unit connected to the battery integrated unit.
3. The encoding method according to claim 2, wherein: After the target battery control unit performs encoding after receiving the first encoding instruction and the target encoding address, the target battery control unit further includes: After encoding is successful, the target encoding address is updated according to a preset order, and the target battery control unit sends the first encoding instruction and the updated target encoding address to the next battery control unit based on the communication line until the last battery control unit is successfully encoded.
4. The encoding method according to claim 1, wherein: The battery integration unit and at least one battery control unit are further connected via a coding line, and the battery control units are sequentially connected via coding lines. The step of encoding the battery control units according to the first coding sequence and the first coding instruction includes: determining a target coding signal corresponding to the first coding instruction; When a first coding instruction is received based on the coding line, the target coding signal is sent to the target battery control unit in the first coding sequence based on the coding line, so that the target battery control unit encodes according to the received target coding signal and the preset address comparison table. The target battery control unit is a battery control unit connected to the battery integrated unit.
5. The encoding method according to claim 4, wherein: After the target battery control unit performs encoding according to the received target coding signal and the preset address comparison table, the target battery control unit further includes: After the encoding is successful, the target encoding signal is updated according to the preset waveform sequence, and the target battery control unit sends the updated target encoding signal to the next battery control unit based on the encoding line until the last battery control unit is successfully encoded; The frequencies, duty cycles and waveforms of the coding signals corresponding to the different battery control units are different.
6. The encoding method according to any one of claims 2 to 5, wherein: The last battery control unit is connected to the battery integration unit via a communication loop, and the method further includes: After obtaining the corresponding encoding success information sent by the last battery control unit based on the communication loop, the encoding of the battery control unit is completed.
7. The encoding method according to claim 4 or 5, wherein: The last battery control unit is connected to the battery integration unit via a coding loop, and the method further includes: After acquiring the first coding instruction or the target coding signal corresponding to the last battery control unit sent by the battery control unit based on the coding loop, the coding of the battery control unit is finished.
8. The encoding method according to claim 4 or 5, wherein: The battery control unit is connected to the battery integration unit via a communication bus, and the method further includes: After receiving the address signals with successful encoding sent by all battery control units based on the communication bus, the encoding of the battery control units is completed.
9. A coding method, wherein: The encoding method is applied to a battery control unit, wherein the battery integration unit is connected to at least one battery control unit via a communication line, and the method further comprises: Acquire a first coding sequence and a first coding instruction sent by the battery integration unit; Encoding the current battery control unit according to the first encoding sequence and the first encoding instruction; After the current battery control unit is successfully encoded, the first encoding instruction is sent to the next battery control unit until the last battery control unit is successfully encoded. The next battery control unit is determined by the first encoding sequence.
10. The encoding method according to claim 9, wherein: The battery control units are connected in sequence based on communication lines, and the step of encoding the current battery control unit according to the first encoding sequence and the first encoding instruction includes: Obtaining a target coding address sent by the battery integration unit; Encoding according to the first encoding instruction and the target encoding address; After the current battery control unit is successfully encoded, the step of sending the first encoding instruction to the next battery control unit until the last battery control unit is successfully encoded includes: After the current battery control unit is successfully encoded, the target encoding address is updated according to a preset sequence, and the first encoding instruction and the updated target encoding address are sent to the next battery control unit until the last battery control unit is successfully encoded.
11. The encoding method according to claim 9, wherein: The step of encoding the current battery control unit according to the first encoding sequence and the first encoding instruction includes: Acquiring a target coding signal sent by the battery integration unit; Encoding is performed according to the target coding signal and a preset address comparison table; After the current battery control unit is successfully encoded, the step of sending the first encoding instruction to the next battery control unit until the last battery control unit is successfully encoded includes: After the current battery control unit is successfully encoded, the target encoding signal is updated according to a preset waveform sequence, and the updated target encoding signal is sent to the next battery control unit until the last battery control unit is successfully encoded.
12. The encoding method according to claim 9, wherein: The battery control unit is connected to at least one battery management unit via a communication line, and the method further includes: determining a second coding sequence of the battery management units according to a connection mode of the battery management units; When the second encoding instruction is received, the battery management unit is encoded according to the second encoding sequence and the second encoding instruction.
13. The encoding method according to claim 12, wherein: The battery management units are connected in sequence via communication lines, and the step of encoding the battery management units according to the second encoding sequence and the second encoding instruction includes: Determining a sub-coding address corresponding to the second coding instruction; The second coding instruction and the sub-coding address are sent to the target battery management unit in the second coding sequence based on the communication line, so that the target battery management unit automatically performs coding after receiving the second coding instruction and the sub-coding address.
14. The encoding method according to claim 13, wherein: After the target battery management unit receives the second coding instruction and the sub-coding address and performs automatic coding, the method includes: After the encoding is successful, the sub-encoding address is updated according to a preset order, and the target battery management unit sends the second encoding instruction and the updated sub-encoding address to the next battery management unit via the communication line until the last battery management unit is successfully encoded; The target battery management unit is a battery management unit connected to the battery control unit.
15. The encoding method according to claim 12, wherein: The battery control unit is further connected to at least one battery management unit based on the coding line, and the battery management units are further connected in sequence based on the coding line. After the step of determining the second coding order of the battery management units according to the connection mode of the battery management units, the method further includes: determining a sub-coding signal corresponding to the second coding instruction; When a second encoding instruction is received based on the encoding line, a first signal is sent to a target battery management unit in the second encoding sequence based on the encoding line, so that the target battery management unit performs encoding according to the received sub-encoding signal and a preset address comparison table.
16. The encoding method according to claim 15, wherein: After the target battery management unit performs encoding according to the received sub-coding signal and the preset address comparison table, the target battery management unit includes: After the encoding is successful, the sub-coding signal is updated according to the preset waveform sequence, and the target battery management unit sends the updated sub-coding signal to the next battery management unit until the last battery management unit is successfully encoded; The target battery management unit is a battery management unit connected to the battery control unit; and the frequency, duty cycle and waveform of the coding signals corresponding to different battery management units are different.
17. The encoding method according to any one of claims 13 to 16, wherein: The last battery control unit is connected to the battery integration unit or the battery control unit via a communication loop, and the method further includes: After obtaining the corresponding encoding success information sent by the last battery management unit based on the communication loop, the encoding success information of the last battery management unit is reported to the corresponding battery integration unit, and the encoding of the battery management unit is completed.
18. The encoding method according to claim 15 or 16, wherein: The last battery control unit is connected to the battery integration unit or the battery control unit via a coding loop, and the method further includes: After obtaining the corresponding second coding instruction and the sub-coding signal sent by the last battery management unit based on the coding loop, the second coding instruction and the sub-coding signal sent by the last battery management unit are reported to the corresponding battery integration unit, and the coding of the battery management unit is ended.
19. The encoding method according to claim 15 or 16, wherein: The battery control unit is connected to the battery integration unit via a communication bus, and the method further includes: After receiving the address signals with successful encoding sent by all battery control units based on the communication bus, the encoding of the battery management unit is completed.
20. An encoding device, wherein: The encoding device includes a memory, a processor, and an encoding program stored in the memory and executable on the processor. When the encoding program is executed by the processor, the encoding program implements the various steps of the encoding method according to any one of claims 1 to 19.
21. A computer-readable storage medium, wherein: The computer-readable storage medium stores a coding program, and when the coding program is executed by a processor, the coding program implements the steps of the coding method according to any one of claims 1 to 19.
Citation Information
Patent Citations
Data processing method and device, storage medium and electronic equipment
CN111865952A
Battery management system and control method thereof
CN114844742A
Coding control method, system and device, storage medium and computer program product
CN116430706A
Energy storage system, addressing method and addressing system of battery pack of energy storage system, and medium
CN117080585A
Coding method and device and computer readable storage medium
CN118018353A