Automatic coding system
By using hardwire connection and PWM signal transmission between BCMU module and BMU module in the battery management system, the problems of high cost and poor interference resistance of BMU address encoding are solved, and an efficient and low-cost encoding solution is realized.
Patent Information
- Application Number
- CN202422355168.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2034-09-26
AI Technical Summary
The BMU address encoding method of the existing battery management system (BMS) has problems such as complex production process, difficulty in on-site installation, high communication resource occupation and susceptibility to interference in sampling results.
The BCMU module and the N-block BMU module are connected through hardwire, and address encoding is used using PWM signal transmission to avoid the participation of communication loops, reduce costs and improve anti-interference ability.
Simplify the production and installation process, reduce costs, improve coding accuracy and anti-interference ability, and reduce the probability of errors.
Smart Images

Figure CN223182133U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of BMS coding, and particularly relates to an automatic coding system. Background Art
[0002] In a large energy storage system, a battery management system (BMS) usually adopts a two-level or three-level architecture and also involves multiple battery management units (BMUs) to collect information of different battery packs (PACKs). In order to effectively manage the battery state in the whole system, it is necessary to perform address coding on each BMU, which helps to accurately identify the position of the BMU and the battery pack it is responsible for, and then realize efficient data collection and status monitoring.
[0003] In the existing coding technologies, four main methods are used to perform address coding on BMUs. The first is to realize the address allocation of BMUs through different hardware configurations. The second is to write a fixed ID into the BMU during programming through software to realize the address allocation of the BMU. The third is to realize the BMU address coding through an IO interface and a communication bus in a daisy-chain manner. The fourth is to realize the BMU address coding by sampling according to the voltage division result of a voltage-dividing resistor.
[0004] However, the first method and the second method require prior configuration of different hardware versions or software versions, which will result in a complex production process and is not conducive to on-site installation, leading to a relatively high application cost. Although the third method and the fourth method can realize automatic coding, the third method requires the simultaneous participation of hard wires and communication wires, resulting in the occupation of communication resources and an increase in communication costs. And the fourth method realizes the automatic coding of the BMU address through resistor voltage division, which will make the loop an analog small-signal loop, resulting in the sampling result being easily interfered. Summary of the Utility Model
[0005] Based on the above deficiencies of the existing technology, the utility model provides an automatic coding system to solve the problem of relatively high cost brought by the existing technology.
[0006] To achieve the above object, the utility model provides the following technical solutions:
[0007] In the first aspect of the utility model, an automatic coding system is provided, and the automatic coding system includes a BCMU module and N BMU modules;
[0008] The BCMU module includes a first output circuit and a first input circuit;
[0009] The input end of the first output circuit is connected to the output end of the host computer, and the output end of the first output circuit is electrically connected to the input end of the first BMU module through a hard wire. Except that the output end of the Nth BMU module is electrically connected to the input end of the first input circuit through a hard wire, the input end of any other BMU module is connected to the output end of its previous BMU module through a hard wire;
[0010] The output end of the first input circuit is connected to the input end of the host computer.
[0011] Optionally, in the above automatic coding system, the first output circuit is composed of a first control unit, a first resistor, a second resistor, a first triode, and a second triode;
[0012] The input end of the first control unit is connected to the output end of the host computer, and the output end of the first control unit is connected to one end of the first resistor. The first control unit is used to receive the coding instruction sent by the host computer;
[0013] The base of the first triode is respectively connected to the other end of the first resistor, one end of the second resistor, and the base of the second triode. The emitter of the first triode is respectively electrically connected to the emitter of the second triode and the input end of the first BMU module;
[0014] The collector signal of the first triode is grounded;
[0015] The collector of the second triode is connected to the power supply voltage;
[0016] The other end of the second resistor is signal grounded.
[0017] Optionally, in the above automatic coding system, the first input circuit is composed of a third resistor, a fourth resistor, and a second control unit in combination;
[0018] The input end of the second control unit is respectively connected to one end of the third resistor and one end of the fourth resistor, and the output end of the second control unit is connected to the input end of the host computer;
[0019] The other end of the third resistor is electrically connected to the output end of the Nth BMU module;
[0020] The other end of the fourth resistor is signal grounded.
[0021] Optionally, in the above automatic coding system, the first output circuit is composed of a third control unit, a fifth resistor, a first opto-coupler device, and a sixth resistor in combination,
[0022] The input end of the third control unit is connected to the output end of the host computer, and the output end of the third control unit is connected to one end of the fifth resistor. The third control unit is used to receive the encoding instruction sent by the host computer;
[0023] One end of the first input of the first optocoupler device is connected to the other end of the fifth resistor. The second input of the first optocoupler device is electrically connected to one end of the sixth resistor and the input end of the first BMU module respectively. The first output end and the second output end of the first optocoupler device are both grounded;
[0024] The other end of the sixth resistor is connected to the power supply voltage.
[0025] Optionally, in the above automatic encoding system, the first input circuit is composed of a second optocoupler device, a seventh resistor and a fourth control unit;
[0026] The input end of the second optocoupler device is electrically connected to the output end of the Nth BMU module. The first output end and the second output end of the second optocoupler device are both grounded;
[0027] The input end of the fourth control unit is connected to the common end of the seventh resistor and the second optocoupler device, and the output end of the fourth control unit is connected to the input end of the host computer;
[0028] The other end of the seventh resistor is connected to the power supply voltage.
[0029] Optionally, in the above automatic encoding system, the first BMU module includes a second output circuit and a second input circuit;
[0030] The second output circuit is composed of a fifth control unit, an eighth resistor, a ninth resistor, a third triode and a fourth triode. The second input circuit is composed of a tenth resistor, an eleventh resistor and a sixth control unit;
[0031] The acquisition end of the sixth control unit is connected to one end of the tenth resistor and one end of the eleventh resistor respectively;
[0032] One end of the tenth resistor is connected to the output end of the first output circuit in the BCMU module;
[0033] The other end of the eleventh resistor is grounded;
[0034] The output end of the fifth control unit is connected to one end of the eighth resistor;
[0035] The base of the third triode is respectively connected to one end of the ninth resistor and the base of the fourth triode. The emitter of the third triode is respectively connected to the emitter of the fourth triode and the input end of the next BMU module. The collector of the third triode is grounded;
[0036] The collector of the fourth triode is connected to the power supply voltage;
[0037] The other end of the ninth resistor is grounded;
[0038] Or,
[0039] The second output circuit is composed of a seventh control unit, a twelfth resistor, a third optocoupler device, and a thirteenth resistor in combination. The second input circuit is composed of a fourth optocoupler device, a fourteenth resistor, and an eighth control unit in combination;
[0040] The input end of the fourth optocoupler device is connected to the output end of the first output circuit in the BCMU module. The first output end and the second output end of the fourth optocoupler device are both grounded;
[0041] The acquisition end of the eighth control unit is connected to the common end of the fourteenth resistor and the fourth optocoupler device;
[0042] The other end of the fourteenth resistor is connected to the power supply voltage;
[0043] The output end of the seventh control unit is connected to one end of the twelfth resistor;
[0044] The first input end of the third optocoupler device is connected to the other end of the twelfth resistor. The first output end and the second output end of the third optocoupler device are both grounded;
[0045] One end of the thirteenth resistor is connected to the power supply voltage. The other end of the thirteenth resistor is respectively connected to the second input end of the third optocoupler device and the input end of the next BMU module.
[0046] Optionally, in the above automatic coding system, the Nth BMU module includes a third output circuit and a third input circuit;
[0047] The third input circuit is composed of a fifteenth resistor, a sixteenth resistor, and a ninth control unit in combination. The third output circuit is composed of a tenth control unit, a seventeenth resistor, an eighteenth resistor, a fifth triode, and a sixth triode in combination;
[0048] The acquisition end of the ninth control unit is respectively connected to one end of the fifteenth resistor and one end of the sixteenth resistor;
[0049] One end of the fifteenth resistor is connected to the output end of the previous BMU module;
[0050] The other end of the sixteenth resistor is grounded;
[0051] The output end of the tenth control unit is connected to one end of the seventeenth resistor;
[0052] The base of the fifth triode is respectively connected to one end of the eighteenth resistor and the base of the sixth triode. The emitter of the fifth triode is respectively connected to the emitter of the sixth triode and the input end of the first input circuit in the BCMU module. The collector signal of the fifth triode is grounded;
[0053] The collector of the sixth triode is connected to the power supply voltage;
[0054] The other end of the eighteenth resistor is grounded by signal;
[0055] Or,
[0056] The third input circuit is composed of a fifth optocoupler device, a nineteenth resistor and an eleventh control unit. The third output circuit is composed of a twelfth control unit, a twentieth resistor, a sixth optocoupler device and a twenty - first resistor.
[0057] The input end of the fifth optocoupler device is connected to the output end of the previous BMU module. The first output end and the second output end of the fifth optocoupler device are both grounded;
[0058] The acquisition end of the eleventh control unit is connected to the common end of the nineteenth resistor and the fifth optocoupler device;
[0059] The other end of the nineteenth resistor is connected to the power supply voltage;
[0060] The output end of the twelfth control unit is connected to one end of the twentieth resistor;
[0061] The first input end of the sixth optocoupler device is connected to the other end of the twentieth resistor. The first output end and the second output end of the sixth optocoupler device are both grounded;
[0062] One end of the twenty - first resistor is connected to the power supply voltage. The other end of the twenty - first resistor is respectively connected to the second input end of the sixth optocoupler device and the input end of the first input circuit in the BCMU module.
[0063] Optionally, in the above - mentioned automatic coding system, any other BMU module includes a fourth output circuit and a fourth input circuit;
[0064] The fourth input circuit is composed of the twenty-second resistor, the twenty-third resistor, and the thirteenth control unit, and the fourth output circuit is composed of the fourteenth control unit, the twenty-fourth resistor, the twenty-fifth resistor, the seventh triode, and the eighth triode;
[0065] The acquisition end of the thirteenth control unit is respectively connected to one end of the twenty-second resistor and one end of the twenty-third resistor;
[0066] One end of the twenty-second resistor is connected to the output end of the previous BMU module;
[0067] The other end of the twenty-third resistor is grounded;
[0068] The output end of the fourteenth control unit is connected to one end of the twenty-fourth resistor;
[0069] The base of the seventh triode is respectively connected to one end of the twenty-fifth resistor and the base of the eighth triode. The emitter of the seventh triode is respectively connected to the emitter of the eighth triode and the input end of the next BMU module, and the collector signal of the seventh triode is grounded;
[0070] The collector of the eighth triode is connected to the power supply voltage;
[0071] The other end of the twenty-fifth resistor is grounded;
[0072] Or,
[0073] The fourth input circuit is composed of the seventh optocoupler device, the twenty-sixth resistor, and the fifteenth control unit, and the fourth output circuit is composed of the sixteenth control unit, the twenty-seventh resistor, the eighth optocoupler device, and the twenty-eighth resistor,
[0074] The input end of the seventh optocoupler device is connected to the output end of the previous BMU module, and the first output end and the second output end of the seventh optocoupler device are both grounded;
[0075] The acquisition end of the fifteenth control unit is connected to the common end of the twenty-sixth resistor and the seventh optocoupler device;
[0076] The other end of the twenty-sixth resistor is connected to the power supply voltage;
[0077] The output end of the sixteenth control unit is connected to one end of the twenty-seventh resistor;
[0078] The first input end of the eighth optocoupler device is connected to the other end of the twenty-seventh resistor, and the first output end and the second output end of the eighth optocoupler device are both grounded;
[0079] One end of the twenty-eighth resistor is connected to the power supply voltage, and the other end of the twenty-eighth resistor is respectively connected to the second input end of the eighth optocoupler device and the input end of the next BMU module.
[0080] Optionally, in the above-mentioned automatic coding system, all the control units are MCU microcontroller units.
[0081] Optionally, in the above-mentioned automatic coding system, all the optocoupler devices are composed of light-emitting diodes and photosensitive transistors.
[0082] An automatic coding system provided by the present invention includes a BCMU module and N BMU modules. The BCMU module includes a first output circuit and a first input circuit. The input end of the first output circuit is connected to the output end of the host computer, and the output end of the first output circuit is electrically connected to the input end of the first BMU module through a hard wire. Except that the output end of the Nth BMU module is electrically connected to the input end of the first input circuit through a hard wire, the input end of any other BMU module is electrically connected to the output end of its previous BMU module through a hard wire, and the output end of the first input circuit is connected to the input end of the host computer. Thus, there is no need for a communication loop to participate in the coding, but only through the hard wire can the coding be carried out, effectively solving the problem of high cost. Moreover, the automatic coding system also performs address coding through the transmission of PWM signals, thereby effectively improving the anti-interference ability. Description of the Drawings
[0083] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.
[0084] Figure 1 It is a schematic structural diagram of an automatic coding system provided by an embodiment of the present invention;
[0085] Figure 2 It is a schematic structural diagram of a coding signal provided by an embodiment of the present invention;
[0086] Figure 3 It is a schematic structural diagram of another coding signal provided by an embodiment of the present invention;
[0087] Figure 4 It is a schematic structural diagram of a first output circuit provided by an embodiment of the present invention;
[0088] Figure 5Schematic diagram of a first input circuit provided by an embodiment of the present utility model;
[0089] Figure 6 Schematic diagram of a non-isolated coded input / output interface circuit provided by an embodiment of the present utility model;
[0090] Figure 7 Schematic diagram of another first output circuit provided by an embodiment of the present utility model;
[0091] Figure 8 Schematic diagram of another first input circuit provided by an embodiment of the present utility model;
[0092] Figure 9 Schematic diagram of an isolated coded input / output interface circuit provided by an embodiment of the present utility model;
[0093] Figure 10 Schematic diagram of a BCMU module provided by an embodiment of the present utility model. Detailed implementation manners
[0094] Next, the technical solutions in the embodiments of the present utility model will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present utility model. Obviously, the described embodiments are only a part of the embodiments of the present utility model, rather than all the embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present utility model.
[0095] In the present utility model, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
[0096] As can be seen from the background art, there are mainly four methods for address encoding of the existing BMU. The first and second methods allocate addresses through hardware and software configuration respectively, but this leads to complex production processes and difficult on-site installation, increasing costs. The third method uses a daisy-chain IO interface to encode with the communication bus. Although automation is achieved, it occupies communication resources and increases costs. The fourth method relies on resistive voltage division sampling. Although it can also perform automatic encoding, it is vulnerable to interference and affects the accuracy of the results.
[0097] Therefore, the present utility model provides an automatic encoding system. The automatic encoding system includes a BCMU module and N BMU modules, and the BCMU module and the N BMU modules are connected by hard wires. At the same time, address encoding is performed through the transmission of PWM signals, thereby effectively reducing costs and providing anti-interference performance.
[0098] So refer to Figure 1 , which shows a schematic structural diagram of an automatic encoding system provided by an embodiment of the present utility model. The automatic encoding system includes a BCMU module 101 and N BMU modules.
[0099] The BCMU module 101 includes a first output circuit 11 and a first input circuit 12.
[0100] The input end of the first output circuit 11 is connected to the output end of the upper computer. The output end of the first output circuit 11 is electrically connected to the input end of the first BMU module through a hard wire. Except that the output end of the Nth BMU module is electrically connected to the input end of the first input circuit 12 through a hard wire, the input end of any other BMU module is electrically connected to the output end of its previous BMU module through a hard wire.
[0101] The output end of the first input circuit 12 is connected to the input end of the upper computer.
[0102] It should be noted that both the BCMU module 101 and the N BMU modules 102 include an output interface and an input interface for outputting or inputting encoding signals to the next module. It should also be noted that the input circuit and output circuit of the BCMU module 101 are the same as those of the N BMU modules 102, so that the output interface of the upper level is electrically connected to the input interface of the lower level through a hard wire, and then a coding loop is formed in a daisy-chain connection manner. It should be emphasized that when the encoding is not started, the automatic encoding system remains in a low level or high level state.
[0103] It should also be emphasized that the front end can send a start coding instruction to the BCMU module 101 through the host computer. Therefore, when the BCMU module 101 receives the coding instruction sent by the host computer, according to the coding instruction, it sends a continuous coding signal for n + 1 cycles to the first BMU module. Among them, the schematic diagram of the structure of the coding signal can be seen in Figure 2 As shown, the coding signal is a PWM signal with a duty cycle of D and a period of T.
[0104] Therefore, when the first BMU module receives n + 1 continuous coding signals, it sets its own number to 1 according to the n + 1 continuous coding signals and stores it, and sends n + 2 continuous coding signals to the next BMU module (the second BMU module); when the next BMU module (the second BMU module) receives n + 2 continuous coding signals, it sets its own number to 2 according to the continuous coding signals and stores it, and sends n + 3 continuous coding signals to the next BMU module (the third BMU module); and so on, until the Nth BMU module receives the corresponding coding signal. At this time, the number of continuous coding signals received by the last BMU module is n + N. Then it sets its own number to N(n + N - n) and stores it, and then sends n + N + 1 continuous coding signals to the BCMU module 101.
[0105] Finally, when the BCMU module 101 receives the n + N + 1 continuous coding signals sent by the Nth BMU module, it calculates the number of BMU nodes according to the n + N + 1 continuous coding signals and judges whether the number of BMU nodes is consistent with the preset number of nodes. If the number of BMU nodes is consistent with the preset number of nodes, it feeds back the number of BMU nodes and the information of successful coding to the host computer. If the number of BMU nodes is inconsistent with the preset number of nodes, it feeds back the number of BMU nodes and the information of failed coding to the host computer. Among them, the expression for calculating the number of BMU nodes is: n + N + 1 - (n + 1).
[0106] For example, taking the coding signal when n = 1, the schematic diagram of the coding signals of the BCMU module 101 and N BMU modules can be seen in Figure 3 the content shown.
[0107] In the embodiment of the present invention, through the BCMU module 101 and N BMU modules, automatic coding of the energy storage system can be realized, thereby reducing the complexity of production and installation, reducing the production control cost and the probability of errors, and also being easy to perform coding signal verification.
[0108] In some embodiments, see Figure 4, which shows a schematic structural diagram of a first output circuit provided by the present utility model. The first output circuit 11 is composed of a first control unit 1, a first resistor (R1), a second resistor (R2), a first triode (Q1), and a second triode (Q2).
[0109] The input end of the first control unit 1 is connected to the output end of the host computer. The output end of the first control unit 1 is connected to one end of the first resistor (R1). The first control unit 1 is used to receive the encoding instruction sent by the host computer and start encoding.
[0110] The base of the first triode (Q1) is respectively connected to the other end of the first resistor (R1), one end of the second resistor (R2), and the base of the second triode (Q2). The emitter of the first triode (Q1) is respectively electrically connected to the emitter of the second triode (Q2) and the input end of the first BMU module.
[0111] The collector signal of the first triode (Q1) is grounded.
[0112] The collector of the second triode (Q2) is connected to the power supply voltage.
[0113] The other end of the second resistor (R2) is grounded.
[0114] In one embodiment, the first triode (Q1) is a PNP triode, and the second triode (Q2) is an NPN triode.
[0115] In some embodiments, referring to Figure 5 , which shows a schematic structural diagram of a first input circuit provided by the present utility model. The first input circuit 12 is composed of a third resistor (R3), a fourth resistor (R4), and a second control unit 2.
[0116] The input end of the second control unit 2 is respectively connected to one end of the third resistor (R3) and one end of the fourth resistor (R4). The output end of the second control unit 2 is connected to the input end of the host computer. The second control unit 2 is used to feedback the number of BMU nodes to the host computer, as well as the information of successful or failed encoding.
[0117] The other end of the third resistor (R3) is electrically connected to the output end of the Nth BMU module.
[0118] The other end of the fourth resistor (R4) is grounded.
[0119] Specifically, combining Figure 4 and Figure 5 , referring to Figure 6, which shows a schematic structural diagram of a non-isolated coded input / output interface circuit provided by the present utility model. The non-isolated coded input / output interface circuit includes a first control unit 1, a first resistor (R1), a second resistor (R2), a first triode (Q1), a second triode (Q2), a third resistor (R3), a fourth resistor (R4), and a second control unit 2.
[0120] The input end of the first control unit 1 is connected to the output end of the host computer, and the output end of the first control unit 1 is connected to one end of the first resistor (R1). The first control unit 1 is used to receive the coded instruction sent by the host computer.
[0121] The base of the first triode (Q1) is respectively connected to the other end of the first resistor (R1), one end of the second resistor (R2), and the base of the second triode (Q2). The emitter of the first triode (Q1) is electrically connected to the emitter of the second triode (Q2) and the input end of the first BMU module. Among them, since the circuit of the input end of the first BMU module is the same as the first input circuit 12 of the BCMU module, therefore Figure 6 Here, the electrical connection between the emitter of the first triode (Q1) and the input end of the first BMU module can be regarded as the electrical connection between the emitter of the first triode (Q1) and one end of the third resistor (R3) in the first input circuit 12 of the BCMU module.
[0122] The collector signal of the first triode (Q1) is grounded.
[0123] The collector of the second triode (Q2) is connected to the power supply voltage.
[0124] The other end of the second resistor (R2) is grounded.
[0125] The input end of the second control unit 2 is respectively connected to one end of the third resistor (R3) and one end of the fourth resistor (R4), and the output end of the second control unit 2 is connected to the input end of the host computer.
[0126] The other end of the third resistor (R3) is electrically connected to the output end of the Nth BMU module. It should be noted that the circuit of the output end of the Nth BMU module is the same as the first output circuit 11 of the BCMU module, therefore Figure 6 Here, the electrical connection between the other end of the third resistor (R3) and the output end of the Nth BMU module can be regarded as the electrical connection between the other end of the third resistor (R3) and the emitter of the first triode (Q1) in the first output circuit 11 of the BCMU module.
[0127] The other end of the fourth resistor (R4) is grounded.
[0128] Therefore, in the embodiments of the present invention, through the non-isolated coding input and output interface circuit in the automatic coding system, the circuit is simpler, with low cost and small occupied area.
[0129] In some embodiments, referring to Figure 7 , a schematic structural diagram of another first output circuit provided by the present invention is shown. The first output circuit 11 is composed of a third control unit 3, a fifth resistor (R5), a first optocoupler device (U1), and a sixth resistor (R6) in combination.
[0130] The input end of the third control unit 3 is connected to the output end of the host computer. The output end of the third control unit 3 is connected to one end of the fifth resistor (R5). The third control unit 3 is configured to receive the coding instruction sent by the host computer and start coding.
[0131] The first input end of the first optocoupler device (U1) is connected to the other end of the fifth resistor (R5). The second input end of the first optocoupler device (U1) is electrically connected to one end of the sixth resistor (R6) and the input end of the first BMU module respectively. The first output end and the second output end of the first optocoupler device (U1) are both grounded.
[0132] The other end of the sixth resistor (R6) is connected to the power supply voltage.
[0133] In some embodiments, referring to Figure 8 , a schematic structural diagram of another first input circuit provided by the present invention is shown. The first input circuit 12 is composed of a second optocoupler device (U2), a seventh resistor (R7), and a fourth control unit 4 in combination.
[0134] The input end of the second optocoupler device (U2) is electrically connected to the output end of the Nth BMU module. The first output end and the second output end of the second optocoupler device (U2) are both grounded.
[0135] The input end of the fourth control unit 4 is connected to the common end of the seventh resistor (R7) and the second optocoupler device (U2). The output end of the fourth control unit 4 is connected to the input end of the host computer. The fourth control unit 4 is configured to feed back the number of BMU nodes and the information of successful or failed coding to the host computer.
[0136] The other end of the seventh resistor (R7) is connected to the power supply voltage.
[0137] Therefore, in the embodiments of the present invention, through the isolated coding input and output interface circuit in the automatic coding system, the anti-interference ability of the automatic coding system can be enhanced, and the accuracy of coding can be improved.
[0138] Specifically, combining Figure 7 and Figure 8 , referring to Figure 9, which shows a schematic structural diagram of an isolated coding input / output interface circuit provided by the present utility model. The isolated coding input / output interface circuit includes a third control unit 3, a fifth resistor (R5), a second optocoupler device (U1), a first photosensitive transistor (Q3), a sixth resistor (R6), a second optocoupler device (U2), a seventh resistor (R7), and a fourth control unit 4.
[0139] The input end of the third control unit 3 is connected to the output end of the host computer, and the output end of the third control unit 3 is connected to one end of the fifth resistor (R5).
[0140] One end of the first input terminal of the first optocoupler device (U1) is connected to the other end of the fifth resistor (R5). The second input terminal of the first optocoupler device (U1) is electrically connected to one end of the sixth resistor (R6) and the input end of the first BMU module respectively. The first output terminal and the second output terminal of the first optocoupler device (U1) are both grounded. It should be noted that since the circuit at the input end of the first BMU module is the same as the first input circuit 12 of the BCMU module, therefore Figure 9 The electrical connection between the second input terminal of the first optocoupler device (U1) and the input end of the first BMU module here can be regarded as the connection between the second input terminal of the first optocoupler device (U1) and the input end of the second optocoupler device (U2) in the first input circuit 12 of the BCMU module.
[0141] The other end of the sixth resistor (R6) is connected to the power supply voltage.
[0142] The input end of the second optocoupler device (U2) is electrically connected to the output end of the Nth BMU module. The first output terminal and the second output terminal of the second optocoupler device (U2) are both grounded. It should be noted that the circuit at the output end of the Nth BMU module is the same as the first output circuit 11 of the BCMU module, therefore Figure 9 The electrical connection between the input end of the second optocoupler device (U2) and the output end of the Nth BMU module here can be regarded as the connection between the input end of the second optocoupler device (U2) and the second input terminal of the first optocoupler device (U1) in the first output circuit 11 of the BCMU module.
[0143] The input end of the fourth control unit 4 is connected to the common end of the seventh resistor (R7) and the second optocoupler device (U2). The output end of the fourth control unit 4 is connected to the input end of the host computer. The fourth control unit 4 is used to feedback the number of BMU nodes to the host computer, as well as the information of successful coding or failed coding.
[0144] The other end of the seventh resistor (R7) is connected to the power supply voltage.
[0145] In some embodiments, the first BMU module includes a second output circuit and a second input circuit.
[0146] It should be noted that since the output circuit and input circuit of the BCMU module 101 are the same as those of the BMU module, and the output circuit and input circuit of the BCMU module include two circuit modes, the second output circuit and second input circuit of the first BMU module can refer to Figure 6 a non-isolated coded input / output interface circuit shown in Figure 9 and an isolated coded input / output interface circuit shown in
[0147] The second output circuit is composed of a fifth control unit, an eighth resistor, a ninth resistor, a third triode, and a fourth triode in combination. The second input circuit is composed of a tenth resistor, an eleventh resistor, and a sixth control unit in combination. Therefore, according to the above description, the fifth control unit is equivalent to the first control unit 1, the eighth resistor is equivalent to the first resistor (R1), the ninth resistor is equivalent to the second resistor (R2), the third triode is equivalent to the first triode (Q1), the fourth triode is equivalent to the second triode (Q2), the tenth resistor is equivalent to the third resistor (R3), the eleventh resistor is equivalent to the fourth resistor (R4), and the sixth control unit is equivalent to the second control unit 2.
[0148] The acquisition terminals of the sixth control unit are respectively connected to one end of the tenth resistor and one end of the eleventh resistor.
[0149] One end of the tenth resistor is connected to the output terminal of the first output circuit 11 in the BCMU module 101. The tenth resistor is used to transmit the n + 1 consecutive coded signals received from the BCMU module 101 to the sixth control unit for number modification and storage processing.
[0150] The other end of the eleventh resistor is grounded.
[0151] The output terminal of the fifth control unit is connected to one end of the eighth resistor.
[0152] The base of the third triode is respectively connected to one end of the ninth resistor and the base of the fourth triode. The emitter of the third triode is respectively connected to the emitter of the fourth triode and the input terminal of the next BMU module. The collector signal of the third triode is grounded. The emitter of the third triode is used to transmit the n + 2 consecutive coded signals to the next BMU module.
[0153] The collector of the fourth triode is connected to the power supply voltage.
[0154] The other end of the ninth resistor is grounded.
[0155] Or,
[0156] The second output circuit is composed of a seventh control unit, a twelfth resistor, a third optocoupler device, and a thirteenth resistor in combination. The second input circuit is composed of a fourth optocoupler device, a fourteenth resistor, and an eighth control unit in combination. Therefore, according to the above description, the seventh control unit is equivalent to the third control unit 3, the twelfth resistor is equivalent to the fifth resistor (R5), the third optocoupler device is equivalent to the first optocoupler device (U1), the thirteenth resistor is equivalent to the sixth resistor (R6), the fourth optocoupler device is equivalent to the second optocoupler device (U2), the fourteenth resistor is equivalent to the seventh resistor (R7), and the eighth control unit is equivalent to the fourth control unit 4.
[0157] The input end of the fourth optocoupler device is connected to the output end of the first output circuit in the BCMU module. Both the first output end and the second output end of the fourth optocoupler device are grounded. The fourth optocoupler device is used to transmit the n + 1 consecutive encoded signals received by the BCMU module 101 to the sixth control unit for number modification and storage processing.
[0158] The acquisition end of the eighth control unit is connected to the common end of the fourteenth resistor and the fourth optocoupler device.
[0159] The other end of the fourteenth resistor is connected to the power supply voltage.
[0160] The output end of the seventh control unit is connected to one end of the twelfth resistor. The seventh control unit is used to transmit the n + 2 consecutive encoded signals to the next BMU module.
[0161] The first input end of the third optocoupler device is connected to the other end of the twelfth resistor. Both the first output end and the second output end of the third optocoupler device are grounded,
[0162] One end of the thirteenth resistor is connected to the power supply voltage. The other end of the thirteenth resistor is respectively connected to the second input end of the third optocoupler device and the input end of the next BMU module.
[0163] In some embodiments, the Nth BMU module includes a third output circuit and a third input circuit.
[0164] The third input circuit is composed of a fifteenth resistor, a sixteenth resistor, and a ninth control unit in combination. The third output circuit is composed of a tenth control unit, a seventeenth resistor, an eighteenth resistor, a fifth triode, and a sixth triode in combination. Therefore, according to the above description, the schematic diagrams of the third output circuit and the third input circuit can be referred to Figure 6, so the tenth control unit is equivalent to the first control unit 1, the seventeenth resistor is equivalent to the first resistor (R1), the eighteenth resistor is equivalent to the second resistor (R2), the fifth triode is equivalent to the first triode (Q1), the sixth triode is equivalent to the second triode (Q2), the fifteenth resistor is equivalent to the third resistor (R3), the sixteenth resistor is equivalent to the fourth resistor (R4), and the ninth control unit is equivalent to the second control unit 2.
[0165] The acquisition terminals of the ninth control unit are respectively connected to one end of the fifteenth resistor and one end of the sixteenth resistor. The ninth control unit is used to receive the continuous coding signal sent by the previous BMU module, make corresponding modifications, and perform storage processing.
[0166] One end of the fifteenth resistor is connected to the output terminal of the previous BMU module.
[0167] The other end of the sixteenth resistor is grounded.
[0168] The output terminal of the tenth control unit is connected to one end of the seventeenth resistor.
[0169] The base of the fifth triode is respectively connected to one end of the eighteenth resistor and the base of the sixth triode. The emitter of the fifth triode is respectively connected to the emitter of the sixth triode and the input terminal of the first input circuit 12 in the BCMU module 101. The collector signal of the fifth triode is grounded. The emitter of the fifth triode is used to send n + N + 1 continuous coding signals to the BCMU module 101.
[0170] The collector of the sixth triode is connected to the power supply voltage.
[0171] The other end of the eighteenth resistor is grounded.
[0172] Or,
[0173] The third input circuit is composed of a fifth optocoupler device, a nineteenth resistor, and an eleventh control unit in combination. The third output circuit is composed of a twelfth control unit, a twentieth resistor, a sixth optocoupler device, and a twenty-first resistor in combination. Therefore, according to the above description, the schematic diagrams of the third output circuit and the third input circuit can be referred to Figure 9 , so the twelfth control unit is equivalent to the third control unit 3, the twentieth resistor is equivalent to the fifth resistor (R5), the sixth optocoupler device is equivalent to the first optocoupler device (U1), the twenty-first resistor is equivalent to the sixth resistor (R6), the fifth optocoupler device is equivalent to the second optocoupler device (U2), the nineteenth resistor is equivalent to the seventh resistor (R7), and the eleventh control unit is equivalent to the fourth control unit 4.
[0174] The input terminal of the fifth optocoupler device is connected to the output terminal of the previous BMU module. The first output terminal and the second output terminal of the fifth optocoupler device are both grounded.
[0175] The acquisition end of the eleventh control unit is connected to the common end of the nineteenth resistor and the fifth optocoupler device. The eleventh control unit is used to receive the continuous encoded signal sent by the previous BMU module through each connection device, make corresponding modifications, and perform storage processing.
[0176] The other end of the nineteenth resistor is connected to the power supply voltage.
[0177] The output end of the twelfth control unit is connected to one end of the twentieth resistor. The twelfth control unit is used to send n+N+1 continuous encoded signals to the BCMU module 101 through each connection device.
[0178] The first input end of the sixth optocoupler device is connected to the other end of the twentieth resistor. The first output end and the second output end of the sixth optocoupler device are both grounded.
[0179] One end of the twenty-first resistor is connected to the power supply voltage. The other end of the twenty-first resistor is respectively connected to the second input end of the sixth optocoupler device and the input end of the first input circuit in the BCMU module.
[0180] In some embodiments, any other BMU module includes a fourth output circuit and a fourth input circuit, that is, the remaining BMU modules except the first BMU module and the Nth BMU module.
[0181] The fourth input circuit is composed of the twenty-second resistor, the twenty-third resistor, and the thirteenth control unit in combination. The fourth output circuit is composed of the fourteenth control unit, the twenty-fourth resistor, the twenty-fifth resistor, the seventh triode, and the eighth triode in combination. Therefore, according to the above description, the schematic diagrams of the fourth output circuit and the fourth input circuit can be referred to Figure 6 , so the fourteenth control unit is equivalent to the first control unit 1, the twenty-fourth resistor is equivalent to the first resistor (R1), the twenty-fifth resistor is equivalent to the second resistor (R2), the seventh triode is equivalent to the first triode (Q1), the eighth triode is equivalent to the second triode (Q2), the twenty-second resistor is equivalent to the third resistor (R3), the twenty-third resistor is equivalent to the fourth resistor (R4), and the thirteenth control unit is equivalent to the second control unit 2.
[0182] The acquisition end of the thirteenth control unit is respectively connected to one end of the twenty-second resistor and one end of the twenty-third resistor. The thirteenth control unit is used to receive multiple continuous encoded signals sent by the previous BMU module through each connection component, perform encoding and storage processing.
[0183] One end of the twenty-second resistor is connected to the output end of the previous BMU module.
[0184] The other end of the twenty-third resistor is grounded.
[0185] The output terminal of the fourteenth control unit is connected to one end of the twenty-fourth resistor. The fourteenth control unit is used to send multiple consecutive coded signals to the next BMU module through various connecting components.
[0186] The base of the seventh triode is respectively connected to one end of the twenty-fifth resistor and the base of the eighth triode. The emitter of the seventh triode is respectively connected to the emitter of the eighth triode and the input terminal of the next BMU module. The collector signal of the seventh triode is grounded.
[0187] The collector of the eighth triode is connected to the power supply voltage.
[0188] The other end of the twenty-fifth resistor is grounded.
[0189] Or,
[0190] The fourth input circuit is composed of a seventh optocoupler device, a twenty-sixth resistor, and a fifteenth control unit in combination. The fourth output circuit is composed of a sixteenth control unit, a twenty-seventh resistor, an eighth optocoupler device, and a twenty-eighth resistor in combination. Therefore, according to the above description, the schematic diagrams of the third output circuit and the third input circuit can be referred to Figure 9 , the sixteenth control unit is equivalent to the third control unit 3, the twenty-seventh resistor is equivalent to the fifth resistor (R5), the eighth optocoupler device is equivalent to the first optocoupler device (U1), the twenty-eighth resistor is equivalent to the sixth resistor (R6), the seventh optocoupler device is equivalent to the second optocoupler device (U2), the twenty-sixth resistor is equivalent to the seventh resistor (R7), and the fifteenth control unit is equivalent to the fourth control unit 4.
[0191] The input terminal of the seventh optocoupler device is connected to the output terminal of the previous BMU module. Both the first output terminal and the second output terminal of the seventh optocoupler device are grounded.
[0192] The acquisition terminal of the fifteenth control unit is connected to the common terminal of the twenty-sixth resistor and the seventh optocoupler device. The fifteenth control unit is used to receive multiple consecutive coded signals sent by the previous BMU module through various connecting components for coding and storage processing.
[0193] The other end of the twenty-sixth resistor is connected to the power supply voltage.
[0194] The output terminal of the sixteenth control unit is connected to one end of the twenty-seventh resistor. The sixteenth control unit is used to send multiple consecutive coded signals to the next BMU module through various connecting components.
[0195] The first input terminal of the eighth optocoupler device is connected to the other end of the twenty-seventh resistor. Both the first output terminal and the second output terminal of the eighth optocoupler device are grounded.
[0196] In some embodiments, all of the above control units may be MCU microcontroller units.
[0197] In some embodiments, all of the above optocoupler devices are composed of light-emitting diodes and photosensitive transistors.
[0198] In some embodiments, a schematic structural diagram of the BCMU module 101 can be referred to Figure 10 , where the BCMU module 101 includes a power module, a CAN communication module, an MCU and a minimum system module, an encoding module, and other functional modules. The control unit includes a power module, an MCU and a minimum system module, and a CAN communication module. It receives the encoding instructions from the host computer or the master control through the CAN communication module, and after performing the encoding action according to the above description, it feeds back the encoding execution result to the host computer or the master control. Specifically, the encoding module included in the BCMU module 101 is composed of a first output circuit and a first input circuit.
[0199] An automatic encoding system provided by the present invention includes a BCMU module and N BMU modules. The BCMU module includes a first output circuit and a first input circuit. The input end of the first output circuit is connected to the output end of the host computer. The output end of the first output circuit is electrically connected to the input end of the first BMU module through a hard wire. Except that the output end of the Nth BMU module is electrically connected to the input end of the first input circuit through a hard wire, the input end of any other BMU module is electrically connected to the output end of its previous BMU module through a hard wire. The output end of the first input circuit is connected to the input end of the host computer. Thus, it is not necessary for a communication loop to participate in the encoding, but only through hard wires can the encoding be performed, effectively solving the problem of high cost. Moreover, the automatic encoding system also performs address encoding through the transmission of PWM signals, thereby effectively improving the anti-interference ability.
[0200] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0201] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present utility model. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present utility model. Therefore, the present utility model will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An automatic coding system, characterized in that, The automatic coding system includes a BCMU module and N BMU modules; The BCMU module includes a first output circuit and a first input circuit; The input end of the first output circuit is connected to the output end of the host computer, and the output end of the first output circuit is electrically connected to the input end of the first BMU module through a hard wire. Except that the output end of the Nth BMU module is electrically connected to the input end of the first input circuit through a hard wire, the input end of any other BMU module is electrically connected to the output end of its previous BMU module through a hard wire; The output end of the first input circuit is connected to the input end of the host computer.
2. The automatic coding system according to claim 1, characterized in that, The first output circuit is composed of a first control unit, a first resistor, a second resistor, a first triode, and a second triode; The input end of the first control unit is connected to the output end of the host computer, and the output end of the first control unit is connected to one end of the first resistor. The first control unit is used to receive the coding instruction sent by the host computer; The base of the first triode is respectively connected to the other end of the first resistor, one end of the second resistor, and the base of the second triode. The emitter of the first triode is respectively electrically connected to the emitter of the second triode and the input end of the first BMU module; The collector signal of the first triode is grounded; The collector of the second triode is connected to the power supply voltage; The other end of the second resistor is signal grounded.
3. The automatic coding system according to claim 1, characterized in that, The first input circuit is composed of a third resistor, a fourth resistor, and a second control unit in combination; The input end of the second control unit is respectively connected to one end of the third resistor and one end of the fourth resistor, and the output end of the second control unit is connected to the input end of the host computer; The other end of the third resistor is electrically connected to the output end of the Nth BMU module; The other end of the fourth resistor is signal grounded.
4. The automatic coding system according to claim 1, characterized in that, The first output circuit is composed of a third control unit, a fifth resistor, a first optocoupler device, and a sixth resistor in combination, The input end of the third control unit is connected to the output end of the host computer, and the output end of the third control unit is connected to one end of the fifth resistor. The third control unit is used to receive the coding instruction sent by the host computer; The first input end of the first optocoupler device is connected to the other end of the fifth resistor. The second input end of the first optocoupler device is respectively electrically connected to one end of the sixth resistor and the input end of the first BMU module. The first output end and the second output end of the first optocoupler device are both grounded; The other end of the sixth resistor is connected to the power supply voltage.
5. The automatic coding system according to claim 1, wherein The first input circuit is composed of a second optocoupler device, a seventh resistor, and a fourth control unit in combination; The input end of the second optocoupler device is electrically connected to the output end of the Nth BMU module. The first output end and the second output end of the second optocoupler device are both grounded; The input end of the fourth control unit is connected to the common end of the seventh resistor and the second optocoupler device, and the output end of the fourth control unit is connected to the input end of the host computer; The other end of the seventh resistor is connected to the power supply voltage.
6. The automatic coding system according to claim 1, characterized in that, The first BMU module includes a second output circuit and a second input circuit; The second output circuit is composed of a fifth control unit, an eighth resistor, a ninth resistor, a third triode, and a fourth triode. The second input circuit is composed of a tenth resistor, an eleventh resistor, and a sixth control unit. The acquisition terminals of the sixth control unit are respectively connected to one end of the tenth resistor and one end of the eleventh resistor. One end of the tenth resistor is connected to the output terminal of the first output circuit in the BCMU module. The other end of the eleventh resistor is grounded. The output terminal of the fifth control unit is connected to one end of the eighth resistor. The base of the third triode is respectively connected to one end of the ninth resistor and the base of the fourth triode. The emitter of the third triode is respectively connected to the emitter of the fourth triode and the input terminal of the next BMU module. The collector signal of the third triode is grounded. The collector of the fourth triode is connected to the power supply voltage. The other end of the ninth resistor is signal - grounded. Or, The second output circuit is composed of a seventh control unit, a twelfth resistor, a third opto - coupler device, and a thirteenth resistor. The second input circuit is composed of a fourth opto - coupler device, a fourteenth resistor, and an eighth control unit. The input terminal of the fourth opto - coupler device is connected to the output terminal of the first output circuit in the BCMU module. The first output terminal and the second output terminal of the fourth opto - coupler device are both grounded. The acquisition terminal of the eighth control unit is connected to the common terminal of the fourteenth resistor and the fourth opto - coupler device. The other end of the fourteenth resistor is connected to the power supply voltage. The output terminal of the seventh control unit is connected to one end of the twelfth resistor. The first input terminal of the third opto - coupler device is connected to the other end of the twelfth resistor. The first output terminal and the second output terminal of the third opto - coupler device are both grounded. One end of the thirteenth resistor is connected to the power supply voltage. The other end of the thirteenth resistor is respectively connected to the second input terminal of the third opto - coupler device and the input terminal of the next BMU module.
7. The automatic coding system according to claim 1, wherein The Nth BMU module includes a third output circuit and a third input circuit. The third input circuit is composed of a fifteenth resistor, a sixteenth resistor, and a ninth control unit. The third output circuit is composed of a tenth control unit, a seventeenth resistor, an eighteenth resistor, a fifth triode, and a sixth triode. The acquisition terminals of the ninth control unit are respectively connected to one end of the fifteenth resistor and one end of the sixteenth resistor. One end of the fifteenth resistor is connected to the output terminal of the previous BMU module. The other end of the sixteenth resistor is grounded. The output terminal of the tenth control unit is connected to one end of the seventeenth resistor. The base of the fifth triode is respectively connected to one end of the eighteenth resistor and the base of the sixth triode. The emitter of the fifth triode is respectively connected to the emitter of the sixth triode and the input terminal of the first input circuit in the BCMU module. The collector signal of the fifth triode is grounded. The collector of the sixth triode is connected to the power supply voltage. The other end of the eighteenth resistor is signal - grounded. Or, The third input circuit is composed of a fifth optocoupler device, a nineteenth resistor, and an eleventh control unit, and the third output circuit is composed of a twelfth control unit, a twentieth resistor, a sixth optocoupler device, and a twenty-first resistor. The input end of the fifth optocoupler device is connected to the output end of the previous BMU module, and both the first output end and the second output end of the fifth optocoupler device are grounded. The acquisition end of the eleventh control unit is connected to the common end of the nineteenth resistor and the fifth optocoupler device. The other end of the nineteenth resistor is connected to the power supply voltage. The output end of the twelfth control unit is connected to one end of the twentieth resistor. The first input end of the sixth optocoupler device is connected to the other end of the twentieth resistor, and both the first output end and the second output end of the sixth optocoupler device are grounded. One end of the twenty-first resistor is connected to the power supply voltage, and the other end of the twenty-first resistor is respectively connected to the second input end of the sixth optocoupler device and the input end of the first input circuit in the BCMU module.
8. The automatic coding system according to claim 1, characterized in that, Any other BMU module includes a fourth output circuit and a fourth input circuit. The fourth input circuit is composed of a twenty-second resistor, a twenty-third resistor, and a thirteenth control unit, and the fourth output circuit is composed of a fourteenth control unit, a twenty-fourth resistor, a twenty-fifth resistor, a seventh triode, and an eighth triode. The acquisition end of the thirteenth control unit is respectively connected to one end of the twenty-second resistor and one end of the twenty-third resistor. One end of the twenty-second resistor is connected to the output end of the previous BMU module. The other end of the twenty-third resistor is grounded. The output end of the fourteenth control unit is connected to one end of the twenty-fourth resistor. The base of the seventh triode is respectively connected to one end of the twenty-fifth resistor and the base of the eighth triode. The emitter of the seventh triode is respectively connected to the emitter of the eighth triode and the input end of the next BMU module, and the collector signal of the seventh triode is grounded. The collector of the eighth triode is connected to the power supply voltage. The other end of the twenty-fifth resistor is signal-grounded. Or, The fourth input circuit is composed of a seventh optocoupler device, a twenty-sixth resistor, and a fifteenth control unit, and the fourth output circuit is composed of a sixteenth control unit, a twenty-seventh resistor, an eighth optocoupler device, and a twenty-eighth resistor. The input end of the seventh optocoupler device is connected to the output end of the previous BMU module, and both the first output end and the second output end of the seventh optocoupler device are grounded. The acquisition end of the fifteenth control unit is connected to the common end of the twenty-sixth resistor and the seventh optocoupler device. The other end of the twenty-sixth resistor is connected to the power supply voltage. The output end of the sixteenth control unit is connected to one end of the twenty-seventh resistor. The first input end of the eighth optocoupler device is connected to the other end of the twenty-seventh resistor, and both the first output end and the second output end of the eighth optocoupler device are grounded. One end of the twenty-eighth resistor is connected to the power supply voltage, and the other end of the twenty-eighth resistor is respectively connected to the second input end of the eighth optocoupler device and the input end of the next BMU module.
9. The automatic coding system according to any one of claims 2 to 8, characterized in that All control units are MCU microcontroller units.
10. The automatic coding system according to any one of claims 2 to 8, characterized in that, All optocoupler devices are composed of light-emitting diodes and photosensitive transistors.