Utility model content
In view of this, the present invention provides a kind of programming systems of circuit board, to solve CMU mono- in the prior art
To one programming mode, tooling resource is not only wasted, is wasted corresponding artificial and artificial according to BMU project belonging to CMU
Configuration CMU parameter information, management software version and program issue, and can also be caused different degrees of according to the height of peopleware
The problem of security risk.Concrete scheme is as follows:
A kind of programming system of circuit board, comprising: host computer, allotment control port, BMU programming control module, CMU programming
Control module and I/O port module, wherein
The host computer refers to the control of the BMU programming control module and the CMU programming control module for sending
It enables;
The allotment control port, is connected with the host computer, and the control instruction is the control BMU for identification
Programming control module or the CMU programming control module carry out programming operation;
The BMU programming control module is connected with the allotment control port and the I/O port module, is used for foundation
The control instruction carries out programming control to BMU;
The CMU programming control module is connected with the allotment control port and the I/O port module, is used for foundation
The control instruction controls the programming of each CMU;
The I/O port module includes multiple I/O ports, for when the BMU programming is in the process to whether programming is tested
The quantity of online CMU is confirmed during card or the CMU programming.
Above-mentioned system, optionally, the allotment control port include: receiving submodule and identification submodule, in which:
The receiving submodule, the control instruction sent for receiving the host computer;
The identification submodule, the level for including in the control instruction for identification are determined according to the level to institute
It states BMU programming control module or the CMU programming control module carries out programming operation.
Above-mentioned system, optionally, the BMU programming control module include: acquisition submodule, comparison submodule and programming
Submodule, in which:
The acquisition submodule, for obtaining the level of each I/O port in the I/O port module, according to described each
Level identification needs the project category of programming to number;
The comparison submodule is compared for numbering the project category with destination item class number;
The programming submodule, if starting programming BMU program for comparing successfully.
Above-mentioned system, optionally, further includes: stop submodule and feedback submodule, in which:
The stopping submodule, if stopping programming BMU program for comparing failure;
The feedback submodule feeds back to the host computer for that will stop programming reason.
Above-mentioned system, optionally, the programming submodule includes:
BootLoader corresponding with BMU is obtained, the BootLoader is built in the BMU, according to described in
BootLoader carries out programming to the BMU.
Above-mentioned system, optionally, the CMU programming control module include: receiving submodule, determine submodule and programming
Submodule, in which:
The receiving submodule, for receiving the program and configuration parameter of the preset quantity that the host computer is sent
The determining submodule, it is determining with each program and to match for the output level according to the I/O port module
Set the corresponding CMU of parameter;
The programming configures submodule, and for being directed to each CMU, the corresponding program of programming simultaneously distributes corresponding match
Set parameter.
Above-mentioned system, optionally, further includes: judging submodule, in which:
The judging submodule, if completing, terminates programming, otherwise continues programming for judging whether programming process is completed.
Above-mentioned system, optionally, the programming configuration submodule includes:
BootLoader corresponding with CMU is obtained, the BootLoader is built in the CMU, according to described in
BootLoader carries out programming to the CMU.
Compared with prior art, the utility model includes following advantages:
The utility model discloses a kind of programming systems of circuit board, comprising: host computer burns the BMU for sending
Write the control instruction of control module and the CMU programming control module;Control port is deployed, the control instruction is for identification
It controls the BMU programming control module or the CMU programming control module carries out programming operation;BMU programming control module is used
According to the control instruction, programming control is carried out to BMU;CMU programming control module is used for according to the control instruction, right
The programming of each CMU is controlled;I/O port module includes multiple I/O ports, for during the BMU programming to whether
Programming confirm during verifying or the CMU programming to the ID of online CMU.Above-mentioned system, can be simultaneously
With the multiple CMU of programming and the configuration of parameter information can be carried out, and the management of software version is completed also by the system.
Specific embodiment
The following will be combined with the drawings in the embodiments of the present invention, carries out the technical scheme in the embodiment of the utility model
Clearly and completely describe, it is clear that the described embodiments are only a part of the embodiments of the utility model, rather than whole
Embodiment.Based on the embodiments of the present invention, those of ordinary skill in the art are without making creative work
Every other embodiment obtained, fall within the protection scope of the utility model.
The foregoing description of the disclosed embodiments can be realized professional and technical personnel in the field or using originally practical new
Type.Various modifications to these embodiments will be readily apparent to those skilled in the art, and determine herein
The General Principle of justice can be realized in other embodiments without departing from the spirit or scope of the present utility model.Cause
This, the present invention will not be limited to the embodiments shown herein, and is to fit to and principles disclosed herein
The widest scope consistent with features of novelty.
The utility model discloses programming system, the method and device of a kind of circuit board, the programming in circuit board is applied
In the process, wherein the circuit board can be BUM, CUM or other types of circuit board in electric car, the utility model
The multiple CMU of programming may be implemented in the programming system, wherein the I/O port number is specific with enterprise and MCU platform
The case where set, in the utility model embodiment, be to increase 5 road I/O port low and high levels in lower line writing tooling
Example is illustrated, wherein 4 road I/O ports can form the combination of 16 kinds of different low and high levels, the generation for commercial vehicle
Table can the different ID numbers of programming 16 simultaneously CMU, if a CMU can acquire 24 string battery core voltages, this scheme can be with
Meet the high pressure project (the high pressure project for having covered most domestic) of 0-1229V;5th road I/O port is to select CMU also
It is the switch of BMU programming, enterprise can flexibly switch in BMU and CMU programming procedure operation.
In the case that the program burn writing that the programming system is built upon enterprise has developed BootLoader, and
Also to increase by 5 road I/O port detection functions in BootLoader, identification is BMU or CMU programming program, automatic distribution CMU ID
Number, guarantee program can correct programming to strategy in each BMU, CMU etc..Structural block diagram such as Fig. 1 of the programming system
It is shown, comprising: host computer 101, allotment control port 102, BMU programming control module 103, CMU programming control module 104 and IO
Port module 105, wherein
The host computer 101, for sending the control to the BMU programming control module and the CMU programming control module
System instruction;
In the utility model embodiment, if controlling the BMU programming module, include in the control instruction:
Destination item class number, high or low level and program;If controlling the CMU programming module, the control instruction
In include high or low level, configuration parameter and preset quantity program.Wherein, the project category number is in correspondence
Communication protocol in obtain, the configuration parameter is determined according to project category described in the CMU, the configuration ginseng
Number includes: ID number, collection voltages number, temperature number and alarm for high voltage threshold value etc., the basis for selecting tool of the preset quantity
The case where body, is set.
The allotment control port 102, is connected, the control instruction is described in control for identification with the host computer
BMU programming control module or the CMU programming control module carry out programming operation;
In the utility model embodiment, the allotment control port is connected with the host computer, receives the host computer
The control instruction of transmission determines that the control instruction is the control BMU by identifying the level for including in the control instruction
Programming control module or the CMU programming control module carry out programming operation, for example, level burns the BMU when being 1
It writes, programming is carried out to the CMU when level is 0, vice versa.
The BMU programming control module 103, is connected with the allotment control port and the I/O port module, is used for
According to the control instruction, programming control is carried out to BMU;
In the utility model embodiment, the BMU programming control module includes: acquisition submodule, comparison submodule and burning
Write submodule, in which: the acquisition submodule, for obtaining the level of each I/O port in the I/O port module, according to institute
Stating each level identification needs the project category of programming to number;The comparison submodule, for by the project category number with
Destination item class number compares;The programming submodule, if starting programming BMU program for comparing successfully.Wherein,
It also needs to obtain BootLoader corresponding with BMU before programming, the BootLoader is configured, configuration is completed
Afterwards, the BootLoader is built in the BMU, programming is carried out to the BMU according to the BootLoader.
Wherein, the BMU programming control module, further includes: stop submodule and feedback submodule, in which: the stopping
Submodule, if stopping programming BMU program for comparing failure;The feedback submodule is fed back to for that will stop programming reason
The host computer.
In the utility model embodiment, for each BMU, the affiliated project of the BMU is positioned first, it can be according to described
Project category number is determined, and as the destination item class number and the project category number successful match, is searched
BootLoader corresponding with the BMU, the BootLoader is placed in the BMU, according to described BootLoader pairs
The BMU carries out programming, and specific execution process is as shown in Figure 2.
The CMU programming control module 104, is connected with the allotment control port and the I/O port module, is used for
According to the control instruction, the programming of each CMU is controlled;
In the utility model embodiment, the CMU programming control module includes: receiving submodule, determines submodule and burning
Write configuration submodule, in which: the receiving submodule, for receiving the program and configuration of the preset quantity that the host computer is sent
Parameter;The determining submodule, it is determining to join with each program and configuration for the output level according to the I/O port module
The corresponding CMU of number;The programming configures submodule, and for being directed to each CMU, the corresponding program of programming simultaneously distributes correspondence
Configuration parameter.
In the utility model embodiment, before programming CMU, it is also necessary to BootLoader corresponding with CMU is obtained, to institute
It states BootLoader to be configured, after the completion of configuration, the BootLoader is built in the CMU, according to described in
BootLoader carries out programming to the CMU.
Wherein, for the programming process of CMU, include in the control instruction that the upper computer end, the host computer issue
The program of preset quantity, wherein the program of the preset quantity is corresponding with the quantity for the CMU for needing programming, described in parsing
The ID for including in configuration parameter obtains remaining configuration parameter corresponding with corresponding ID;For the CMU programming control module,
Corresponding BootLoader, is built in wherein by the number of the current online CMU of search for each online CMU,
Programming is carried out to CMU according to corresponding BootLoader.Obtain each CMU that each I/O port of I/O port module reports
Output level determine the corresponding ID number of each CMU according to the output level, by the transmission instruction in the ID number
Corresponding configuration parameter passes to the corresponding CMU of the ID, wherein the corresponding relationship between output level and ID is to pre-establish
's.
For each CMU, it is in progress program burn writing and configuration parameter configuration, until obtaining corresponding program and matching
Parameter is set, when any one CMU programming and when configuring completion, needs to judge that each CMU in current programming program process is
No programming is completed, if terminating programming, conversely, continuing programming.Specific execution process is as shown in Figure 2.
The I/O port module 105 includes multiple I/O ports, for during the BMU programming to whether programming into
The ID of online CMU is confirmed during row verifying or the CMU programming.
In the utility model embodiment, the quantity of the I/O port is 4, wherein for CMU programming process, 4 road I/O ports can
To form the combination of 16 kinds of different low and high levels, can programming simultaneously 16 different ID numbers CMU, for BMU programming
Journey, the low and high level of 4 road IO can correspond to different project category numbers, realize according to project category number and burn to BMU
Write the verifying of process, wherein 4 I/O ports are merely illustrative of, with no restriction to the quantity of port.
The utility model discloses a kind of programming systems of circuit board, comprising: host computer burns the BMU for sending
Write the control instruction of control module and the CMU programming control module;Control port is deployed, the control instruction is for identification
It controls the BMU programming control module or the CMU programming control module carries out programming operation;BMU programming control module is used
According to the control instruction, programming control is carried out to BMU;CMU programming control module is used for according to the control instruction, right
The programming of each CMU is controlled;I/O port module includes multiple I/O ports, for during the BMU programming to whether
Programming confirm during verifying or the CMU programming to the ID of online CMU.Above-mentioned system, can be simultaneously
With the multiple CMU of programming and the configuration of parameter information can be carried out, and the management of software version is completed also by the system.
In the utility model embodiment, it is illustrated for the topological diagram of the specific example shown in Fig. 3, in figure:
Upper computer module, predominantly producer itself exploitation, generally write host computer procedure using labview.
BMU module, the master control borad of battery management system mainly have the acquisition of battery pack stagnation pressure, current acquisition, relay control
Etc. functions;
CMU module, master chip model MC33771 are responsible for acquisition monomer voltage and temperature, equilibrium treatment and battery core
Dependent diagnostic;
First IO control mouth: this I/O port is that the worker of operation rack artificially deploys control.Mainly known by Bootloader
It is not programming BMU program or CMU program;
MCU chip, model MCP5744P, wherein the MCU chip is embedded in the BMU;
The address CMU control terminal, if selection programming CMU program, Bootloader can according to the IO level that CMU is reported come
Identification CMU corresponds to ID number, distributes corresponding parameter configuration;
In the utility model embodiment, the programming system being capable of quick, accurate and efficient batch programming CMU journey
Sequence can prevent BMU program burn writing for 2 times and mistake occurs;By increasing programming cost on a small quantity, to greatly increase tooling utilization rate
And utilization ratio of manual labor.
Based on above-mentioned programming system in the utility model embodiment, a kind of electricity is additionally provided in the utility model embodiment
The programming method of road plate, the execution process of the programming method as shown in figure 4, comprising steps of
S201, when receive the programming to the objective circuit plate instruction when, according to the programming instruct, judge the mesh
Marking circuit board is BMU or CMU;
In the utility model embodiment, the objective circuit plate is the circuit board for currently needing programming, receives host computer
Send when being instructed to the programming of the objective circuit plate, obtain the level for including in the programming instruction, according to the level,
Determine that the objective circuit plate is BMU or CMU, wherein the corresponding relationship between described BMU, CMU and level is to pre-establish
's.
If S202, the objective circuit plate are CMU, the programming instruction is received, determines that the programming includes in instructing
The program and configuration parameter of preset quantity;
In the utility model embodiment, when the objective circuit plate is CMU, the programming instruction is received, to the burning
Write command is parsed, and determines the program and configuration parameter of the preset quantity for including in the programming instruction.
S203, it is directed to each program and configuration parameter, according to the output level of the I/O port module, determination is right with it
The target CMU answered in the target CMU and distributes program burn writing therein to wherein corresponding configuration parameter.
In the utility model embodiment, for each program and configuration parameter, obtains in configuration parameter therein and include
ID target CMU identical with the ID is determined, by program burn writing therein according to the output level of the I/O port module
In the target CMU and wherein corresponding configuration parameter is distributed, due to including multiple CMU, it is thus necessary to determine that whether programming is completed,
If so, terminating programming, conversely, continuing programming.
If S204, the objective circuit plate are BMU, the programming instruction is received, determines that the programming includes in instructing
Destination item class number;
In the utility model embodiment, if the objective circuit plate is BMU, the programming instruction is received, the burning is parsed
Write command determines the destination item class number for including in the programming instruction, wherein the destination item class number is used for
Distinguish project category belonging to the BMC.
S205, according to the output level of the I/O port module, determine the project category number of the BMU;
In the utility model embodiment, the output level of each I/O port of the I/O port module is obtained, according to described in
Output level determines the project category number of the BMU, wherein the output level is numbered corresponding with the project category
Relationship pre-establishes.
S206, the destination item class number and project category number are compared;
In the utility model embodiment, the destination item class number and project category number are compared,
Judge whether the destination item class number numbers with the project category identical.
If S207, the destination item class number are identical as the project category number, the BMU is subjected to programming,
Otherwise stops immediately, and report stop reason.
A kind of programming method of circuit board disclosed in this hair with the multiple CMU of programming and can carry out parameter letter simultaneously
The configuration of breath, and the management of software version is completed also by the system.
Based on a kind of programming method of above-mentioned circuit board, in the utility model embodiment, a kind of circuit board is additionally provided
Programming device, the structural block diagram of the programming device is as shown in Figure 5, comprising:
Judging unit 301, receiving unit 302 and determination unit 303.
Wherein,
The judging unit 301, for when receive the programming to the objective circuit plate instruction when, according to the programming
Instruction, judges that the objective circuit plate is BMU or CMU;
The receiving unit 302 receives the programming instruction, determines the burning if being CMU for the objective circuit plate
The program and configuration parameter for the preset quantity for including in write command
The determination unit 303, for being directed to each program and configuration parameter, the output according to the I/O port module
Level determines corresponding target CMU, and program burn writing therein in the target CMU and is distributed and wherein corresponding matched
Set parameter.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when utility model.
As seen through the above description of the embodiments, those skilled in the art can be understood that this is practical new
Type can be realized by means of software and necessary general hardware platform.Based on this understanding, the technology of the utility model
Substantially the part that contributes to existing technology can be embodied in the form of software products scheme in other words, the computer
Software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a meter
Calculate machine equipment (can be personal computer, server or the network equipment etc.) execute each embodiment of the utility model or
Method described in certain parts of embodiment.
A kind of programming system of circuit board provided by the utility model is described in detail above, it is used herein
Specific case is expounded the principles of the present invention and embodiment, and the explanation of above example is only intended to help
Understand the method and its core concept of the utility model;At the same time, for those skilled in the art, according to the utility model
Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be understood
For limitations of the present invention.