A kind of automatic configuration of battery electron parts address and modification method
Technical field
The present invention relates to a kind of battery management system, refer in particular to a kind of automatic configuration and modification method of multiple battery electron parts address.
Background technology
Along with sharply worsening of global environment and being becoming tight day of the energy, new forms of energy are more and more subject to people's attention and favor, and battery, as the energy source of new energy resources system, as the core component of system, plays vital effect to whole system; Battery management system serves the effect of detection to battery, monitoring and optimization at this; Along with increasing of battery series-parallel connection number, whole battery management system can be made up of a battery control unit and multiple battery electron parts; In order to the information distinguishing each battery electron parts and provide, system can distribute a unique address for each battery electron parts.
Traditional method is by the software of pre-burning for each battery electron parts confirms unique address, and each battery electron parts is installed according to the software fixed point of pre-burning; There is two problems in the method, one is that each battery electron parts need fixed point to install, and is easy to the wrong location; When another is pre-burn recording software, because the address of each is different, need for each does different disposal, comparatively numerous and diverse.
Summary of the invention
The object of the invention is: in order to overcome prior art to awkward shortcoming after multiple battery electron parts address configuration inconvenience and configuration, devise a kind of battery management system, be specially a kind of automatic configuration and modification method of multiple battery electron parts address.
Technical scheme of the present invention: a kind of battery management system, comprise a battery control unit, N number of battery electron parts and N number of battery modules (N be more than or equal to 1 integer); Described battery modules consists of connection in series-parallel N number of battery; Described N number of battery modules is connected with N number of battery electron parts, and described N number of battery electron parts are connected with described battery control unit by communication bus; Described battery electron parts gather and the detection heat relevant with battery modules and electric data, and these data are supplied to described battery control unit; Battery control unit control or management battery system electrically, the parameter such as circuit information, electronic information, thermal behavior, and the electronic installation that can carry out communication with other controllers of load system (electric automobile, intelligent grid, communication system etc.) connects; Determine the numerical value of N according to customer requirement after, send the numerical value of N to battery electron parts by battery control unit.
Described battery electron parts possess Address requests function, possess receives information function, possess allocation address recognition function, and possessing is unallocated address arbitration functions, possesses automatic allocation address function; Allocation address battery electron parts possess return address informational function, possess new allocation address distinguishing validity function; Battery electron parts possess address conflict and differentiate, can the address of conflict of qualification automatically, and provide warning information, can need empty the battery electron parts of address according to information content confirmation; Battery electron parts possess address disappearance and differentiate, automatically can identify the address of disappearance, and provide warning information, can confirm the battery electron parts that need empty address according to the information content; Battery electron parts possess address and empty function.
A kind of automatic configuration of battery electron parts address of the present invention's design and modification method, concrete configuration and modification method as follows:
(1) N number of battery electron component assembly system all unallocated address time, according to battery electron parts 1, battery electron parts 2 ... request address successively, distributed address is replied to control module by the battery electron parts of allocation address; The all addresses distributed of battery control unit statistics, determine unappropriated address, and the lowest address automatically distributed in unallocated address is to the battery electron parts of request dispatching address;
(2), during the conflict of single or multiple battery electron component address, automatically provide address conflict alarm, empty the address of having conflicted, by battery control unit according to the battery electron parts of address conflict according to actual address allocation address from low to high;
(3) during single or multiple battery electron component address conflict, automatically address conflict alarm is provided, empty the address of having conflicted, send address conflict by those minimum battery electron parts and differentiate request, the address distributed is replied to control module by other all battery electron parts, control module initiates battery electron parts statistics, controller unit uses CAN2.0 communication mode to carry out communication connection battery electron parts, all battery electron parts address information, empty the battery electron component address of conflict address source according to actual address order from low to high and redistribute correct address,
(4), when single or multiple battery electron component addresses loss or battery electron part replacement, address is lost
Lose or change battery electron parts according to actual address, by battery control unit allocation address from low to high;
(5) when single or multiple battery electron component addresses disappearance or replacing, initiate address by those minimum battery electron parts and lack differentiation request, control module receives disappearance or the information of replacing, the address that other all battery electron part reverts have distributed is to battery control unit, battery control unit adds up the address information obtained, and whether there is the disjunct situation in address according to validation of information, if there is the disjunct situation in address, then all vacant locations are determined as address disappearance, from multiple address lacks minimum battery electron parts, empty successively from low to high according to actual address and redistribute address.
Advantage of the present invention: method is simple and easy to implement, and is convenient to production and the assembling of whole battery system, is convenient to the replacing of battery electron parts, can effective identification address collision error redistributing.
Accompanying drawing explanation
Fig. 1 is the block diagram of battery management system.
Fig. 2 is the automatic configuration of battery electron parts address.
Fig. 3 is battery electron parts address conflict modification method process flow diagram.
Fig. 4 is that battery electron parts address is lost or changes modification method process flow diagram.
Embodiment
As shown be a kind of battery management system of the present invention's design.Specifically comprise a battery control unit, N number of battery electron parts and N number of battery modules (N be more than or equal to 1 integer); Described battery modules consists of connection in series-parallel N number of battery; Described N number of battery modules is connected with N number of battery electron parts, and described N number of battery electron parts communication bus is connected with described battery control unit; Described battery electron parts gather and the detection heat relevant with battery modules and electric data, and these data are supplied to described battery control unit; Battery control unit control or management battery system electrically or thermal behavior, and can with other controllers carry out the electronic installation of communication.
The address of N number of battery electron parts is ID1, ID2, ID3 ... IDn, ID1 are lowest address, and IDn is superlatively location, and all addresses increase one by one; Communication bus is CAN; Battery residing for battery modules is always born as battery modules 1, increases successively according to battery modules voltage in systems in which, and module is followed successively by battery modules 2,3,4 ... N; Battery modules 1 connects battery electron parts 1, and battery modules 2 connects battery electron parts 2 ..., battery modules N connects battery electron parts N; Battery electron parts 1 address is ID1, and battery electron parts 2 address is ID2, and by that analogy, battery electron parts N address is IDn.
The automatic configuration of battery management system multiple battery electron parts address and a modification method, concrete steps are as follows:
(1) N number of battery electron component assembly system all unallocated address time, start to distribute according to the 1st battery electron parts, the 1st electronic unit allocation address replies to control module, control module confirms that the 1st electronic unit address is the 1st address, then be the 2nd battery electron parts ... request address successively, distributed address is replied to control module by the battery electron parts of allocation address; The all addresses distributed of battery control unit statistics, determine unappropriated address, and the lowest address automatically distributed in unallocated address is to the battery electron parts of request dispatching address, if inspection has the unappropriated address arrived, M(M=M+1) the unallocated electronic unit of individual electronic unit, (M-1) individual electronic unit allocation address reply to control module, control module confirms that M electronic unit address is M address, control module confirms whether address is all distributed, if be up to the standards, be assigned.
(2), during the conflict of single or multiple battery electron component address, automatically provide address conflict alarm, empty the address of having conflicted, by battery control unit according to the battery electron parts of address conflict according to actual address allocation address from low to high;
(3) xth, y ... .. single or multiple address conflict (x<y< ...) time, automatically address conflict alarm is provided, xth, y ... .. individual address empties, an xth electronic unit request dispatching, the address distributed is replied to control module by other all battery electron parts, control module initiates battery electron parts statistics, controller unit uses CAN2.0 communication mode to carry out communicating to connect all battery electron parts address information, an xth electronic unit starts to distribute, other allocation address electronic unit reply to control module, control module confirms that an xth electronic unit address is xth address, y electronic unit starts to distribute, other allocation address electronic unit reply to control module, control module confirms that y electronic unit address is y address, empty the battery electron component address of conflict address source according to actual address order from low to high and redistribute correct address, if inspection has the unappropriated address arrived, y(y=y+1) the unallocated electronic unit of individual electronic unit, other allocation address electronic unit reply to control module, control module confirms that y electronic unit address is y address, control module confirms whether address is all distributed, if be up to the standards, be assigned.
(4), when single or multiple battery electron component addresses loss or battery electron part replacement, address is lost
Lose or change battery electron parts according to actual address, by battery control unit allocation address from low to high;
(5) xth, y ... .. single or multiple address is lost or is changed (x<y< ...) time, an xth electronic unit request dispatching, control module receives disappearance or the information of replacing, the address distributed is replied to control module by other all battery electron parts, control module initiates battery electron parts statistics, controller unit uses CAN2.0 communication mode to carry out communicating to connect all battery electron parts address information, an xth electronic unit starts to distribute, other allocation address electronic unit reply to control module, control module confirms that an xth electronic unit address is xth address, y electronic unit starts to distribute, other allocation address electronic unit reply to control module, control module confirms that y electronic unit address is y address, empty the battery electron component address of conflict address source according to actual address order from low to high and redistribute correct address, if inspection has the unappropriated address arrived, y(y=y+1) the unallocated electronic unit of individual electronic unit, other allocation address electronic unit reply to control module, control module confirms that y electronic unit address is y address, control module confirms whether address is all distributed, if be up to the standards, be assigned.