CN110727452A - System and method for realizing BMS (battery management system) upgrading through serial port - Google Patents

System and method for realizing BMS (battery management system) upgrading through serial port Download PDF

Info

Publication number
CN110727452A
CN110727452A CN201910993183.4A CN201910993183A CN110727452A CN 110727452 A CN110727452 A CN 110727452A CN 201910993183 A CN201910993183 A CN 201910993183A CN 110727452 A CN110727452 A CN 110727452A
Authority
CN
China
Prior art keywords
bms
control board
upgrading
upper computer
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910993183.4A
Other languages
Chinese (zh)
Inventor
宋豪
孟令锋
黄勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201910993183.4A priority Critical patent/CN110727452A/en
Publication of CN110727452A publication Critical patent/CN110727452A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Abstract

The invention relates to the field of power management systems, and discloses a system and a method for realizing BMS (battery management system) upgrading through a serial port, which are used for simply and quickly upgrading a BMS. The system comprises: the BMS master control board, the BMS slave control board and the upper computer; the BMS master control board is provided with a serial port and a CAN interface, and the BMS slave control board is provided with a CAN interface; the serial ports of the BMS main control board serve as external upgrading interfaces and are connected with an upper computer through a USB-to-serial port module, the CAN interfaces of the BMS main control board are connected with the CAN interfaces of the BMS slave control board, communication is carried out based on a CAN intranet, and the BMS slave control board is not provided with external upgrading ports.

Description

System and method for realizing BMS (battery management system) upgrading through serial port
Technical Field
The invention relates to the field of power management systems, in particular to a system and a method for realizing BMS (battery management system) upgrading through a serial port.
Background
In contemporary society, the use scenes and frequencies of secondary batteries are increasing, with lithium ion batteries occupying a large share. The lithium battery has the advantages of high capacity density, large output power, high charging and discharging speed and the like; however, the disadvantages of low safety and flammability and explosiveness under specific conditions are not negligible. Therefore, a Battery Management System (BMS) should be provided. At present, a power management system is upgraded by adopting a mode of unpacking to upgrade a single board, and along with the increasing use amount of BMS, the upgrading mode can not meet the requirement of quick upgrading.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the system and the method for realizing BMS upgrading through the serial port are provided, and the BMS can be upgraded simply and quickly.
The technical scheme adopted by the invention for solving the technical problems is as follows:
system for BMS upgrades is realized through the serial ports includes: the BMS master control board, the BMS slave control board and the upper computer; the BMS master control board is provided with a serial port and a CAN interface, and the BMS slave control board is provided with a CAN interface; the serial ports of the BMS main control board serve as external upgrading interfaces and are connected with an upper computer through a USB-to-serial port module, the CAN interfaces of the BMS main control board are connected with the CAN interfaces of the BMS slave control board, communication is carried out based on a CAN intranet, and the BMS slave control board is not provided with external upgrading ports.
In addition, based on the system, the invention also provides a method for realizing BMS upgrading through a serial port, which comprises the following steps:
a. when the BMS system is in the operation process and meets the upgrading condition, the upper computer sends an upgrading starting instruction;
after receiving the upgrading starting instruction, the BMS main control board transmits the instruction to the CAN intranet;
after the BMS receives the upgrading starting instruction from the control board, entering a bootloader program;
after all BMS slave control boards in the CAN intranet enter the bootloader program, the BMS master control board feeds back a response message to the upper computer, and simultaneously, the BMS master control board also enters the bootloader program;
e. after receiving the response message fed back by the BMS main control board, the upper computer sends an upgrading instruction to the BMS main control board and/or the BMS slave control board according to the upgrading requirement, so that the corresponding control board enters a receiving preparation state;
f. the upper computer sends upgrading data to the BMS main control board frame by frame;
when the BMS master control board receives a frame of upgrading data, if the upgrading object is the BMS master control board, the data frame is stored, and if the upgrading object is the BMS slave control board, the data frame is forwarded to the BMS slave control board in the CAN intranet;
h. after the upgrade file is sent, the upper computer sends an instruction for quitting the bootloader program to the BMS main control board;
and the BMS main control board and the BMS slave control board quit the bootloader program, and the upgrading object finishes upgrading according to the obtained upgrading file.
And g, judging that the upgrading object of the upgrading data is the BMS slave control board or the BMS master control board according to the upgrading instruction sent by the upper computer.
And judging an upgrading object according to the upgrading instruction, and determining whether the upgrading data sent by the upper computer is directed to the master control board or the slave control board so as to perform corresponding processing.
And step g, the BMS main control board feeds back the upper computer every time the BMS main control board receives one frame of upgrading data, and in step f, the upper computer sends the next frame of upgrading data after receiving the feedback of the BMS main control board.
The correctness of data transmission can be ensured by receiving feedback frame by frame.
As a further optimization, if the upper computer does not receive the feedback of the BMS host control board within a certain time after sending a certain frame of upgrade data, the frame is retransmitted.
The active retransmission mechanism of the upper computer can process in time when the feedback is not received.
And as further optimization, the BMS main control board checks the received frame of upgrading data before feeding back the frame of upgrading data to the upper computer every time the frame of upgrading data is received.
The accuracy of the data can be ensured by checking the upgrade data.
As a further optimization, if the BMS host controller fails to verify the upgrade data of a certain frame, the BMS host controller requests the upper computer to retransmit the frame.
Through the request retransmission mechanism of the BMS main control board when the verification of the upgrading data fails, the correctness of the upgrading data can be ensured.
The invention has the beneficial effects that:
the serial port of the BMS main control board is used as an upgrading interface, and CAN intranet communication between the BMS main control board and the BMS slave control board is utilized, so that firmware upgrading of the whole BMS system is realized quickly and accurately, and single board upgrading is performed without unpacking; when upgrading, the upgrading data frame is subjected to frame-by-frame check and receiving feedback, and the correctness and the accuracy of the upgrading data can be ensured by setting an upper computer active retransmission mechanism and a BMS main control board request retransmission mechanism.
Drawings
Fig. 1 is a system architecture diagram for implementing BMS upgrade through a serial port in the present invention.
Detailed Description
The invention aims to provide a system and a method for realizing BMS upgrading through a serial port, which can simply and quickly upgrade a BMS system. The core idea is as follows: BMS master control board supports serial communication and CAN communication, and BMS slave control board supports CAN communication, and the communication between the master slave in the BMS adopts the mode of CAN communication, and this CAN is the intranet, does not keep the port outward, guarantees the security and the stability of system operation. The BMS main control and the PC end are connected through serial hardware only by taking the serial port of the main control board as an external upgrading port, and a special upper computer is used for upgrading. A set of CAN upgrading interaction protocol is arranged between the BMS master control and the slave control, and a set of serial upgrading interaction protocol is arranged between the upper computer and the master control.
In a specific implementation, as shown in fig. 1, the system for implementing BMS upgrade through a serial port in the present invention includes: the BMS master control board, the BMS slave control board and the upper computer; the BMS master control board is provided with a serial port and a CAN interface, and the BMS slave control board is provided with a CAN interface; the serial ports of the BMS main control board serve as external upgrading interfaces and are connected with an upper computer through a USB-to-serial port module, the CAN interfaces of the BMS main control board are connected with the CAN interfaces of the BMS slave control board, communication is carried out based on a CAN intranet, and the BMS slave control board is not provided with external upgrading ports.
The method for realizing BMS upgrading based on the serial port comprises the following implementation means:
(1) in the BMS is in the in-process of normal operating, when satisfying the upgrading condition, the host computer sends "start upgrading instruction" with the serial ports, receives this instruction back at the master control, sends "start upgrading instruction" to the CAN intranet, receives the instruction back from the control panel, gets into bootloader, and whether the master control board constantly makes statistics of all from the control panel entering bootloader simultaneously, and the host computer response is fed back after whole entering, and master control board self also gets into bootloader. And when the main control board feedback instruction is not received, the upper computer sends an upgrade starting instruction in a 1s period.
(2) And after receiving the feedback of entering the bootloader, the upper computer starts to send a 'main control board upgrading instruction' or a 'slave control board upgrading instruction', so that the corresponding control board enters a ready-to-receive state.
(3) And (3) sending a line of upgrading data to the master control board according to the format of the upgrading file s19, confirming whether the frame data is self upgrading data or slave control board upgrading data by the master control board according to the instruction in the step (2), and forwarding the frame data to the CAN intranet to upgrade the slave control board if the frame data is the slave control board upgrading data.
(4) And after the upper computer receives the correct feedback, the next upgrading frame is continuously sent. If the main control board does not receive the response in more than 5 seconds, the frame is retransmitted.
(5) And after the upgrade file is sent, sending a 'bootloader quitting instruction', after receiving the instruction, the master control board and the slave control board quit the bootloader, and finishing upgrading according to the obtained upgrade file.
(6) And each frame of data in the upgrading process is added with a check to ensure that the data is accurate.
(7) In case of an error in the information, the BMS requests retransmission of the previous frame.

Claims (7)

1. A system for realizing BMS upgrade through a serial port is characterized in that,
the method comprises the following steps: the BMS master control board, the BMS slave control board and the upper computer; the BMS master control board is provided with a serial port and a CAN interface, and the BMS slave control board is provided with a CAN interface; the serial ports of the BMS main control board serve as external upgrading interfaces and are connected with an upper computer through a USB-to-serial port module, the CAN interfaces of the BMS main control board are connected with the CAN interfaces of the BMS slave control board, communication is carried out based on a CAN intranet, and the BMS slave control board is not provided with external upgrading ports.
2. The method for realizing BMS upgrading through the serial port is characterized by comprising the following steps:
a. when the BMS system is in the operation process and meets the upgrading condition, the upper computer sends an upgrading starting instruction;
after receiving the upgrading starting instruction, the BMS main control board transmits the instruction to the CAN intranet;
after the BMS receives the upgrading starting instruction from the control board, entering a bootloader program;
after all BMS slave control boards in the CAN intranet enter the bootloader program, the BMS master control board feeds back a response message to the upper computer, and simultaneously, the BMS master control board also enters the bootloader program;
e. after receiving the response message fed back by the BMS main control board, the upper computer sends an upgrading instruction to the BMS main control board and/or the BMS slave control board according to the upgrading requirement, so that the corresponding control board enters a receiving preparation state;
f. the upper computer sends upgrading data to the BMS main control board frame by frame;
when the BMS master control board receives a frame of upgrading data, if the upgrading object is the BMS master control board, the data frame is stored, and if the upgrading object is the BMS slave control board, the data frame is forwarded to the BMS slave control board in the CAN intranet;
h. after the upgrade file is sent, the upper computer sends an instruction for quitting the bootloader program to the BMS main control board;
and the BMS main control board and the BMS slave control board quit the bootloader program, and the upgrading object finishes upgrading according to the obtained upgrading file.
3. The method for implementing BMS upgrade via a serial port as claimed in claim 2,
and step g, the BMS master control board judges whether the upgrading object of the upgrading data is the BMS slave control board or the BMS master control board according to the upgrading instruction sent by the upper computer.
4. The method for implementing BMS upgrade via a serial port as claimed in claim 2,
and step g, the BMS main control board feeds back the upgrade data to the upper computer every time the BMS main control board receives one frame of upgrade data, and in step f, the upper computer sends the next frame of upgrade data after receiving the feedback of the BMS main control board.
5. The method for upgrading the BMS through the serial port according to claim 4,
and if the upper computer does not receive the feedback of the BMS main control board within a certain time after sending certain frame of upgrading data, retransmitting the frame.
6. The method for implementing BMS upgrade via a serial port as claimed in claim 5,
and the BMS main control board checks the received frame of upgrading data before feeding back the frame of upgrading data to the upper computer.
7. The method for upgrading a BMS via a serial port according to claim 6, wherein if the BMS host controlling board fails to verify the upgrade data of a certain frame, the BMS host controlling board requests the upper computer to retransmit the frame.
CN201910993183.4A 2019-10-18 2019-10-18 System and method for realizing BMS (battery management system) upgrading through serial port Pending CN110727452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910993183.4A CN110727452A (en) 2019-10-18 2019-10-18 System and method for realizing BMS (battery management system) upgrading through serial port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910993183.4A CN110727452A (en) 2019-10-18 2019-10-18 System and method for realizing BMS (battery management system) upgrading through serial port

Publications (1)

Publication Number Publication Date
CN110727452A true CN110727452A (en) 2020-01-24

Family

ID=69220311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910993183.4A Pending CN110727452A (en) 2019-10-18 2019-10-18 System and method for realizing BMS (battery management system) upgrading through serial port

Country Status (1)

Country Link
CN (1) CN110727452A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506335A (en) * 2020-04-27 2020-08-07 湖北三江航天红峰控制有限公司 DSP + FPGA-based program online upgrading method and system
CN112559011A (en) * 2020-12-22 2021-03-26 四川虹微技术有限公司 Method for stably upgrading battery management system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103560279A (en) * 2013-11-21 2014-02-05 上海航天电源技术有限责任公司 Battery management system diagnosing system based on CAN (Controller Area Network) bus and diagnosing-maintaining method of diagnosing system
CN105187287A (en) * 2015-09-16 2015-12-23 中航锂电(洛阳)有限公司 CAN-bus-based software upgrading method of battery management system
CN105259891A (en) * 2015-09-29 2016-01-20 中航锂电(洛阳)有限公司 Cell management system upgrade method based on CAN bus
CN105491161A (en) * 2016-01-19 2016-04-13 深圳市沃特玛电池有限公司 Battery management system software remote upgrading system and remote upgrading method thereof
US20160359329A1 (en) * 2015-06-04 2016-12-08 Samsung Sdi Co., Ltd. Battery control system and method
CN108334331A (en) * 2018-02-08 2018-07-27 苏州妙益科技股份有限公司 A kind of safe cell management system of electric automobile method for upgrading software
CN109066926A (en) * 2018-10-12 2018-12-21 四川长虹电器股份有限公司 The system that monitoring and upgrading are realized to BMS based on Android platform
CN109933346A (en) * 2017-12-15 2019-06-25 北京长城华冠汽车科技股份有限公司 The method and system that a kind of pair of batteries of electric automobile Management Controller program is upgraded

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103560279A (en) * 2013-11-21 2014-02-05 上海航天电源技术有限责任公司 Battery management system diagnosing system based on CAN (Controller Area Network) bus and diagnosing-maintaining method of diagnosing system
US20160359329A1 (en) * 2015-06-04 2016-12-08 Samsung Sdi Co., Ltd. Battery control system and method
CN105187287A (en) * 2015-09-16 2015-12-23 中航锂电(洛阳)有限公司 CAN-bus-based software upgrading method of battery management system
CN105259891A (en) * 2015-09-29 2016-01-20 中航锂电(洛阳)有限公司 Cell management system upgrade method based on CAN bus
CN105491161A (en) * 2016-01-19 2016-04-13 深圳市沃特玛电池有限公司 Battery management system software remote upgrading system and remote upgrading method thereof
CN109933346A (en) * 2017-12-15 2019-06-25 北京长城华冠汽车科技股份有限公司 The method and system that a kind of pair of batteries of electric automobile Management Controller program is upgraded
CN108334331A (en) * 2018-02-08 2018-07-27 苏州妙益科技股份有限公司 A kind of safe cell management system of electric automobile method for upgrading software
CN109066926A (en) * 2018-10-12 2018-12-21 四川长虹电器股份有限公司 The system that monitoring and upgrading are realized to BMS based on Android platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506335A (en) * 2020-04-27 2020-08-07 湖北三江航天红峰控制有限公司 DSP + FPGA-based program online upgrading method and system
CN112559011A (en) * 2020-12-22 2021-03-26 四川虹微技术有限公司 Method for stably upgrading battery management system

Similar Documents

Publication Publication Date Title
CN102546784B (en) Method for conducting batch upgrading for device firmware based on controller area network (CAN) bus
CN110727452A (en) System and method for realizing BMS (battery management system) upgrading through serial port
CN109976767B (en) Software burning method and device
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN102185754B (en) Method for upgrading board card in switch system
CN111104139A (en) Firmware upgrading method, device, equipment and storage medium
CN103761131A (en) Multi-board-card automatic updating method and system based on internal storage sharing
CN112559003A (en) Domain controller software upgrading method and device and domain controller
CN111736866A (en) One-to-one and one-to-many compatible online upgrading method and terminal equipment
WO2017049557A1 (en) Adapter upgrade method, mobile terminal, and adapter
CN111078255B (en) Software upgrading method and software upgrading system
CN110308916B (en) OTA upgrading method, device, equipment, system and storage medium based on lorawan protocol
CN109189629B (en) Method for realizing terminal remote control based on USB device and storage medium
CN110134423A (en) Update method, device and the computer readable storage medium of firmware
CN107870776B (en) IPMC online upgrading method and device
CN116204214A (en) BMC upgrading method, device and system, electronic equipment and storage medium
CN109933347A (en) A kind of multi-embedding reliable upgrade method of formula processor software based on 1553B bus
CN111505977B (en) Function auxiliary debugging method, device, system and medium
CN112822002B (en) SPI-based communication method and device, electronic equipment and storage medium
CN108848182B (en) Updating method of BMC firmware, related equipment and system
CN113467274A (en) Semi-physical simulation test system and method
CN113138779A (en) FPGA (field programmable Gate array) online program updating device and method based on multifunctional interface
CN109634906B (en) IC communication system and method
CN111008092A (en) Welding machine communication management method and welding machine
CN116582433A (en) Upgrading method of master machine and multi-slave machine and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200124

RJ01 Rejection of invention patent application after publication