TWI646802B - Battery system control network and reset method thereof - Google Patents

Battery system control network and reset method thereof Download PDF

Info

Publication number
TWI646802B
TWI646802B TW106145747A TW106145747A TWI646802B TW I646802 B TWI646802 B TW I646802B TW 106145747 A TW106145747 A TW 106145747A TW 106145747 A TW106145747 A TW 106145747A TW I646802 B TWI646802 B TW I646802B
Authority
TW
Taiwan
Prior art keywords
slave
battery
slaves
control network
reset
Prior art date
Application number
TW106145747A
Other languages
Chinese (zh)
Other versions
TW201929487A (en
Inventor
蕭瑋岷
任國光
林正乾
方富民
Original Assignee
國家中山科學研究院
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 國家中山科學研究院 filed Critical 國家中山科學研究院
Priority to TW106145747A priority Critical patent/TWI646802B/en
Priority to JP2018241056A priority patent/JP6608518B2/en
Application granted granted Critical
Publication of TWI646802B publication Critical patent/TWI646802B/en
Publication of TW201929487A publication Critical patent/TW201929487A/en

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

本發明係提供一種電池系統控制網路及其重置方法,係包括:一系統主控端,係電性連接至一資料匯流排;一以上僕從端,係電性連接至該資料匯流排,該些僕從端分別控制一電池的電池管理系統運作,且該僕從端具有看門狗計時器(Watch Dog Timer,WDT);其中該系統主控端每隔一監控時間掃描所有僕從端是否正常進行資料傳輸,對於無法正常傳輸的僕從端各自累加計算錯誤次數,當某一僕從端的錯誤次數超過一重置門檻值時,該系統主控端係對該僕從端發送一重置命令,各僕從端在自身無法正常傳輸資料的時間超過一重置時間時,該看門狗計時器係對該僕從端進行重置動作。 The invention provides a battery system control network and a reset method thereof. The system includes: a system master terminal, which is electrically connected to a data bus; and more than one slave terminal, which is electrically connected to the data bus. The slaves and slaves control the operation of the battery management system of a battery respectively, and the slaves and slaves have a Watch Dog Timer (WDT); wherein the master of the system scans all slaves at every monitoring time Whether the terminal is transmitting data normally, the number of errors is accumulated for the slaves that cannot transmit normally. When the number of errors of a slave exceeds the reset threshold, the master of the system sends a The reset command. When each slave can't transmit data normally for more than a reset time, the watchdog timer resets the slave.

Description

電池系統控制網路及其重置方法 Battery system control network and reset method thereof

本發明係與電池系統控制技術有關,特別係指一種用於電動車輛高壓電池系統的控制網路及其偵錯重置機制。 The present invention relates to battery system control technology, and particularly relates to a control network for an electric vehicle high-voltage battery system and a debugging and resetting mechanism thereof.

CAN BUS通訊介面是車用系統標準的通訊協定,在CAN BUS通訊介面尚未發展前,車載系統中各式各樣電子零組件大多皆是採用點對點的方式進行資料傳遞與下達控制命令,缺乏一項整合性的通訊介面,在1980年初,德國Bosch公司首先推出Controller Area Network(CAN)通訊協定,應用於不斷演進的車用系統中,透過簡單的串列界面整合車載系統內各項感測器與控制系統,隨著CAN BUS通訊協定的發展,ISO(International Standards Organization)與SAE(Society of Automotive Engineers)兩個國際組織根據CAN通訊速率與應用場域,訂製出包含ISO11898、ISO11519與SAE J19392之相關標準規範,而CAN應用場域除了車用系統外,也廣泛應用於工業控制、醫療儀器與自動化控制等場域。 The CAN BUS communication interface is a standard communication protocol for automotive systems. Before the CAN BUS communication interface had been developed, most of the various electronic components in the vehicle system used point-to-point data transmission and control commands. Integrated communication interface. In early 1980, the German company Bosch first introduced the Controller Area Network (CAN) communication protocol, which is used in evolving automotive systems. It integrates various sensors in the vehicle system with a simple serial interface. Control system. With the development of CAN BUS communication protocol, two international organizations, ISO (International Standards Organization) and SAE (Society of Automotive Engineers), have customized ISO 11898, ISO 11519, and SAE J19392 based on CAN communication rates and application fields. Relevant standards and specifications. In addition to automotive systems, CAN application fields are also widely used in industrial control, medical instrument and automation control fields.

CAN BUS通訊介面發展目的為整合各式電子零組件,透過智慧化資料節點取代點對點通訊方式,並採用標 準化通訊協定,將所有系統節點放置於同一資料匯流排上,進行資料傳遞與控制,而CAN BUS通訊介面是一種全雙工的通訊協定,但資料傳遞並非以傳統的位址進行傳遞,而是透過訊息的方式,將資料包裝成資料封包後,並轉換為差動訊號,傳遞至資料匯流排,完成資料傳遞。由於資料封包是以訊息的方式傳遞,在CAN 2.0B可以提供29位元的資料辨別碼(Identifier),相當於可支援2的29次方通訊節點,因此眾多資料節點要同時發送訊號時,該如何有效保持傳輸效率,CAN BUS通訊協定使用Carrier Sense Multiple Access and Collision Detection with Collision Resolution(CSMA/CD-CR)增加通訊傳輸的效能,透過此通訊協定讓所有傳遞至通訊匯流排上的封包,能夠經由標準化流程,將資料封包傳送出去。 The CAN BUS communication interface is developed to integrate various electronic components, replace point-to-point communication methods with intelligent data nodes, and adopt standard The standardized communication protocol puts all system nodes on the same data bus for data transmission and control. The CAN BUS communication interface is a full-duplex communication protocol, but the data transmission is not transmitted using traditional addresses. It is through the way of message, after the data is packaged into a data packet, and converted into a differential signal, passed to the data bus to complete the data transfer. Because the data packet is transmitted in the form of a message, CAN 2.0B can provide a 29-bit data identifier (Identifier), which is equivalent to a 29th power communication node that can support 2. Therefore, when many data nodes want to send signals at the same time, the How to effectively maintain transmission efficiency, the CAN BUS communication protocol uses Carrier Sense Multiple Access and Collision Detection with Collision Resolution (CSMA / CD-CR) to increase the performance of communication transmission. Through this communication protocol, all packets transmitted to the communication bus can be The data packets are transmitted through a standardized process.

CAN BUS使用的資料型態主要分為Data Frame、Remote Frame、Error Frame與Overload Frame四個種類,其中Error Frame係在各節點發生異常封包時,會被CAN控制器發送出來,CAN BUS控制器本身有兩個錯誤計數器,分別為傳送錯誤計數器(Transmit Error Counter TEC)與接收錯誤計數器(Receive Error Counter REC),利用上述兩者進行各資料節點錯誤訊息的累加計算,並根據錯誤計數值對該節點之通訊功能做出不同層次的限制,該限制分為三種程度:Error Active、Error Passive與Bus Off,茲分別說明如下: The data types used by CAN BUS are mainly divided into four types: Data Frame, Remote Frame, Error Frame, and Overload Frame. Among them, Error Frame is sent by the CAN controller when an abnormal packet occurs at each node. The CAN BUS controller itself There are two error counters, namely the Transmit Error Counter (TEC) and the Receive Error Counter (REC). The two are used to accumulate the error messages of each data node, and then calculate the error message for each node based on the error count value. The communication functions have different levels of restrictions. The restrictions are divided into three levels: Error Active, Error Passive, and Bus Off, which are described below:

(1)Error Active:當通訊節點被初始化後,並且TEC或 REC的計數值小於127,皆處於Error Active的狀態,Error Active字面上意義即為較積極的錯誤回應,任一資料封包發生錯誤時,Error Frame將會被發送,中斷錯誤的資料封包,讓各個資料節點做出錯誤回應,並且累加錯誤計數器,完成以上動作後,通訊匯流排回到正常狀態,重新發送上一筆資料封包,結束一次錯誤訊息處理。 (1) Error Active: When the communication node is initialized, and the TEC or The count value of REC is less than 127, and they are in the Error Active state. The literal meaning of Error Active is a more positive error response. When an error occurs in any data packet, the Error Frame will be sent, and the error data packet will be interrupted. The data node makes an error response and accumulates the error counter. After completing the above actions, the communication bus returns to the normal state, resends the previous data packet, and ends the error message processing.

(2)Error Passive:當TEC或REC計數大於127後,該通訊節點將會進入Error Passive,意為較消極的錯誤回應,此時該通訊節點已發生超過一定程度的錯誤訊息,此時該通訊節點再次發生錯誤訊息時,Error Frame依舊會被發送,繼續累加錯誤計數器,但不中斷傳送中的資料封包,不過Error Frame發送完成後,該節點下次必須等待一段時間後,才能再次發送資訊封包。 (2) Error Passive: When the TEC or REC count is greater than 127, the communication node will enter Error Passive, which means a more negative error response. At this time, the communication node has an error message that exceeds a certain level. At this time, the communication node When a node has an error message again, the Error Frame will still be sent, and the error counter will continue to be accumulated, but the data packets in transmission will not be interrupted. However, after the Error Frame is sent, the node must wait for a period of time before sending the information packet again. .

(3)Bus Off:較消極的錯誤狀態後,當TEC大於255,將會進入Bus Off的狀態,該資料節點相當於旁路狀態,無法再傳送與接受任何的資訊封包,必須透過節點的重置才能重新回到Error Active狀態。 (3) Bus Off: After a more negative error state, when the TEC is greater than 255, it will enter the Bus Off state. This data node is equivalent to the bypass state. It can no longer send and receive any information packets. To return to the Error Active state.

CAN BUS通訊介面具有強健通訊協定,使本系統眾多資訊傳遞,遇到資料碰撞時,能夠透過通訊協定處理,讓資料根據本身權重,有規律的傳遞出去,但即使擁有強健的通訊協定,僅能解決資料碰撞與仲裁,並監測匯流排狀態的功能,對於通訊系統中出現大量雜訊突波干擾引起通訊匯 流排不穩定、甚至造成通訊節點崩壞時,CAN BUS通訊協定僅能透過Error Frame進行錯誤狀態計數,當某個通訊節點發生過多傳輸錯誤(TEC)時,給予通訊協定之錯誤仲裁,最終將該通訊節點切離通訊匯流排,而將異常之通訊節點切離通訊匯流排,主要目的為避免有缺陷的資訊封包長期占據通訊匯流排,而非解決通訊節點的異常狀態,因此對於異常通訊節點屬於被動的錯誤處理。 The CAN BUS communication interface has a robust communication protocol, which enables the transmission of a lot of information in this system. When encountering a data collision, it can be processed through the communication protocol to allow the data to be transmitted regularly according to its own weight. However, even with a robust communication protocol, The function of resolving data collisions and arbitrations, and monitoring the status of the busbars. When the flow is unstable or even causes the communication node to collapse, the CAN BUS communication protocol can only count the error status through the Error Frame. When a communication node has too many transmission errors (TEC), it will give the communication protocol the wrong arbitration, and will eventually The communication node is cut off from the communication bus, and the abnormal communication node is cut off from the communication bus. The main purpose is to prevent defective information packets from occupying the communication bus for a long time, rather than solving the abnormal state of the communication node. Belongs to passive error handling.

因綠能意識抬頭,現代電動汽車、電動機車、電動大客車等電動載具的相關技術與產品蓬勃發展,對電動車輛而言,電能運用效率、動力電池管理與行車安全規範始終是最重要的課題。電動車輛的內部系統使用CAN Bus等通訊協定介面作為系統控制網路為當今產學界相當普遍的選擇,然如前文所述,CAN bus由於其先天上的設計限制,對於系統中通訊節點發生異常時只能進行被動錯誤處理,也就是直接將該錯誤節點從通訊網路上切離、關閉其傳送接收功能,但此種處理方式在電動車電池管理系統上意味著某個電池將直接被關閉,電池系統的能量輸出瞬間降低,打亂全車預設的能量管理計畫,為安全起見車輛只能降低行駛速度甚至強制停止。而電動車輛本身電子元件、次系統數量眾多,控制網路的資料流量遠大於傳統內燃機車輛,因此更容易產生通訊資料碰撞、電子雜訊干擾使某個節點傳送接收功能停擺之情況,造成某一通訊節點(控制一組電池管理系統)進入CAN Bus 錯誤機制裡的Bus off狀態,實際上該節點監控的裝置(電池)本身功能仍然正常,但卻被強制關閉資料傳輸功能而必須停止運作,對於電動車輛控制系統設計邏輯與行車安全均是相當棘手的問題。特別是電動大客車使用高壓電池系統,如果其中一個電池狀態尚良好、卻因上述通訊系統錯誤而關閉運作,不但可能直接影響行車安全,也會增加無謂的檢修次數與客運業者營運成本。 Due to the rise of green energy awareness, the related technologies and products of modern electric vehicles, electric vehicles, electric buses and other electric vehicles are booming. For electric vehicles, the use of electrical energy, power battery management and driving safety regulations are always the most important. Topic. The internal system of electric vehicles uses a communication interface such as CAN Bus as a system control network. It is a very common choice in industry and academia today. However, as mentioned above, due to its inherent design constraints, CAN bus is abnormal for communication nodes in the system. Only passive error processing can be performed, that is, the error node is directly disconnected from the communication network, and its transmission and reception function is turned off, but this processing method means that a battery will be shut down directly in the battery management system of the electric vehicle, and the battery system The energy output of the vehicle is instantly reduced, disrupting the energy management plan preset for the entire vehicle. For safety reasons, the vehicle can only reduce the driving speed or even stop forcibly. The electric vehicle itself has a large number of electronic components and sub-systems, and the data flow of the control network is much larger than that of a traditional internal combustion engine vehicle. Therefore, it is more likely to cause communication data collisions and electronic noise interference to stop the transmission and reception function of a node, resulting in a certain Communication node (controls a group of battery management systems) enters CAN Bus The Bus off state in the error mechanism. In fact, the device (battery) monitored by this node is still functioning normally, but it is forced to close the data transmission function and must stop operating. It is very tricky for the design logic and driving safety of the electric vehicle control system. The problem. In particular, electric buses use a high-voltage battery system. If one of the batteries is in good condition but shut down due to an error in the above communication system, it may not only directly affect driving safety, but also increase unnecessary maintenance times and the operating costs of passenger operators.

為解決先前技術之缺點,本發明係提供一種電池系統控制網路及其重置方法,係可防止電動車輛的電池能量管理系統控制網路因通訊干擾、訊息碰撞等非機件故障而使電池管理系統的通訊節點停擺,影響電動車輛能量管理與行車安全的情況。 In order to solve the disadvantages of the prior art, the present invention provides a battery system control network and a reset method thereof, which can prevent the battery energy management system control network of an electric vehicle from causing battery failure due to non-mechanical failures such as communication interference and message collision. The communication node of the management system is shut down, which affects the situation of electric vehicle energy management and driving safety.

本發明係提供一種電池系統控制網路,係包括:一系統主控端,係電性連接至一資料匯流排;一以上僕從端,係電性連接至該資料匯流排,該些僕從端分別控制一電池的電池管理系統運作,且該僕從端具有看門狗計時器(Watch Dog Timer,WDT);其中該系統主控端每隔一監控時間掃描所有僕從端是否正常進行資料傳輸,對於無法正常傳輸的僕從端各自累加計算錯誤次數,當某一僕從端的錯誤次數超過一重置門檻值時,該系統主控端係對該僕從端發送一重置命令,各僕從端在自身無法正常傳輸資料的時間超過一重置時間時, 該看門狗計時器係對該僕從端進行重置動作。 The invention provides a battery system control network, which includes: a system master terminal, which is electrically connected to a data bus; more than one slave terminal, which is electrically connected to the data bus, the slaves Each terminal controls the operation of a battery battery management system, and the slave terminal has a Watch Dog Timer (WDT); wherein the system's master terminal scans all the slave terminals for data normally at every monitoring time Transmission. For the slaves that cannot transmit normally, they accumulate the number of errors. When the number of errors of a slave exceeds a reset threshold, the system master sends a reset command to the slave. When the slave can't transmit data normally for more than a reset time, The watchdog timer resets the slave.

本發明之一實施例中,該監控時間係為0.5秒;該重置門檻值係為5;該重置時間係為2秒。 In one embodiment of the present invention, the monitoring time is 0.5 seconds; the reset threshold value is 5; and the reset time is 2 seconds.

本發明之一實施例中,該資料匯流排係為CAN Bus。 In one embodiment of the present invention, the data bus is a CAN Bus.

本發明係提供一種電池管理系統控制網路之重置方法,其步驟係包括:(a)該系統主控端每隔一監控時間透過該資料匯流排發送檢測訊息給所有僕從端,監測各僕從端是否有回應;(b)當該僕從端正常回應該檢測訊息時,該系統主控端將該正常回應的僕從端錯誤次數累積歸零,並重複步驟(a)之動作;(c)當該僕從端未正常回應該檢測訊息時,該系統主控端將該未正常回應的僕從端錯誤次數加一,並重複步驟(a)之動作;(d)當該僕從端之錯誤次數超過一重置門檻值時,該系統主控端發送一重置命令給該僕從端,強制該僕從端重新啟動。 The present invention provides a method for resetting the control network of a battery management system, the steps of which include: (a) the system main control terminal sends a detection message to all slaves through the data bus at every monitoring time, and monitors each Whether the slave has responded; (b) When the slave responds normally to the detection message, the system master end accumulates the number of errors of the normally responded slave to zero, and repeats the action of step (a); (c) When the slave does not respond to the detection message normally, the system master adds one to the number of errors of the slave which did not respond normally, and repeats the action of step (a); (d) When the slave When the number of errors of the slave exceeds a reset threshold, the system master sends a reset command to the slave to force the slave to restart.

本發明之一實施例中,該電池管理系統控制網路之重置方法其步驟進一步包括:。 In one embodiment of the present invention, the method for resetting the battery management system control network further includes:

(e)該僕從端每次正常接收從該資料匯流排傳來的訊息時,對該看門狗計時器進行歸零; (f)當該僕從端超過一重置時間未正常接收訊息時,該看門狗計時器係對該僕從端進行重置動作。 (e) Each time the slave receives the message from the data bus normally, it resets the watchdog timer; (f) When the slave does not receive the message normally after a reset time, the watchdog timer resets the slave.

以上之概述與接下來的詳細說明及附圖,皆是為了能進一步說明本發明達到預定目的所採取的方式、手段及功效。而有關本發明的其他目的及優點,將在後續的說明及圖示中加以闡述。 The above summary and the following detailed description and drawings are all for further explaining the methods, means and effects adopted by the present invention to achieve the intended purpose. Other objects and advantages of the present invention will be described in the following description and drawings.

11‧‧‧系統主控端 11‧‧‧System master

121‧‧‧僕從端 121‧‧‧ servant

122‧‧‧僕從端 122‧‧‧ servant

13‧‧‧資料匯流排 13‧‧‧Data Bus

S1~S7‧‧‧系統主控端重置方法邏輯流程 S1 ~ S7‧‧‧‧System master reset method logic flow

S01~S05‧‧‧僕從端重置方法邏輯流程 S01 ~ S05‧‧‧‧Reset method logic flow

圖1係為本發明之電池系統控制網路實施例示意圖。 FIG. 1 is a schematic diagram of an embodiment of a battery system control network according to the present invention.

圖2係為本發明之系統主控端重置方法邏輯流程圖。 FIG. 2 is a logic flow chart of the reset method of the main control end of the system of the present invention.

圖3係為本發明之僕從端重置方法邏輯流程圖。 FIG. 3 is a logic flowchart of the slave-side reset method of the present invention.

以下係藉由特定的具體實例說明本發明之實施方式,熟悉此技藝之人士可由本說明書所揭示之內容輕易地瞭解本發明之其他優點與功效。 The following is a description of specific embodiments of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification.

本發明係用於電動大客車的高壓動力電池系統,由於電動大客車電池系統的工作電壓(數百伏特)遠較傳統內燃機車輛蓄電池(12V、24V)高,且電池系統作為電動大客車的主要(唯一)的動力來源,一旦電池組中有電池失效或停止運作,將會直接影響電動大客車的行駛性能與行車安全。因此電動車、特別是電動大客車的車上系統控制網路的控制邏輯與安全規範也必須與傳統車輛不同。先前技術提及之CAN Bus錯誤處理機制是將出錯的節點從車內網路中排除,但如上所述、此種錯誤處理機制直接轉用到電動車輛上是較不適合、而且可能造成車輛行駛的危安因素。因此本發明為解決現有技術之缺點,提出一種電池系統控制網路及其重置方法,以符合電動車輛上的電池系統控制機制與行駛安全需求。 The invention is a high-voltage power battery system for electric buses, because the operating voltage (hundreds of volts) of the battery system of electric buses is much higher than the battery (12V, 24V) of traditional internal combustion engine vehicles, and the battery system is the main The (only) source of power, once a battery in the battery pack fails or stops operating, it will directly affect the driving performance and driving safety of the electric bus. Therefore, the control logic and safety specifications of the on-board system control network of electric vehicles, especially electric buses, must also be different from traditional vehicles. CAN mentioned in the prior art The bus error handling mechanism is to exclude the faulty nodes from the in-vehicle network, but as mentioned above, this type of error handling mechanism is directly transferred to electric vehicles, which is less suitable and may cause dangerous factors for vehicle driving. Therefore, in order to solve the shortcomings of the prior art, the present invention proposes a battery system control network and a reset method thereof to meet the battery system control mechanism and driving safety requirements on electric vehicles.

圖1係為本發明之電池系統控制網路實施例示意圖,如圖所示,該實施例係包括一系統主控端11、複數僕從端121、122與資料匯流排13,該系統主控端為微電腦或微控制器,其內部具有錯誤計數器以累加計算各僕從端的錯誤次數;該僕從端可為微控制器或微電腦,僕從端內部具有資料暫存器,該些僕從端係分別連接至電池組的每一電池管理系統(Battery Manage System,BMS),以將各電池管理系統的運作狀態資訊上傳給系統主控端,並接收從系統主控端傳來的控制命令。該資料匯流排為車用控制網路習用之CAN Bus、然而亦可為CANopen、MiCAN、FlexRay或其他種類的機動車輛系統控制網路。本發明於實際應用中,該僕從端之數量並不限於實施例揭露之數量,也不僅限於連接至電池管理系統的控制機能,只要是會連上車用控制網路的電子元件,如車燈控制、煞車控制、煞車能量回授控制等等電動車輛上的電子元件,均可應用於本發明實施例揭露之控制網路架構,以監控各電子元件的運作狀態。 FIG. 1 is a schematic diagram of an embodiment of a battery system control network according to the present invention. As shown in the figure, this embodiment includes a system master terminal 11, a plurality of slave terminals 121, 122, and a data bus 13. The system master controller The terminal is a microcomputer or a microcontroller, which has an error counter to accumulate the number of errors of each slave; the slave can be a microcontroller or a microcomputer, and the slave has a data register inside the slave. It is connected to each Battery Management System (BMS) of the battery pack to upload the operating status information of each battery management system to the system master and receive control commands from the system master. The data bus is the CAN Bus used in vehicle control networks, but it can also be CANopen, MiCAN, FlexRay or other types of motor vehicle system control networks. In practical applications of the present invention, the number of slaves is not limited to the number disclosed in the embodiment, nor is it limited to the control function connected to the battery management system, as long as it is an electronic component that is connected to a vehicle control network, such as a car Electronic components on electric vehicles, such as lamp control, brake control, brake energy feedback control, etc., can be applied to the control network architecture disclosed in the embodiments of the present invention to monitor the operating status of each electronic component.

本發明之一實施例中,該系統主控端係為電動車 上的能量管理系統(管理動力電池組織運作)之控制核心,該系統主控端專注於全系統之狀態控制與充放電保護開關制動,而狀態控制之依據來自於系統各個僕從端節點量測系統(即各電池的電池管理系統BMS)所傳遞出來的資訊,因此這些資訊準確度與更新率相當重要。本發明之一實施例中,該系統主控端以每0.5秒一次頻率,掃描所有僕從端節點的資料暫存器,一方面將所有參數資訊更新,另一方面確認資料是否有遺失狀態、並進行進一步監控。當任一僕從端節點連續性未更新資料時,有兩種可能性:其一為該僕從端節點因大量的資料碰撞造成資料遺失,其二為該僕從端節點由於受到大量電磁訊號之雜訊干擾而無法正常接收資料匯流排(CAN Bus)傳來的資訊,CAN Bus的預設機制會將該僕從端節點從網路上切離,使該節點的傳輸功能被禁止。為維持電動大客車的高壓動力電池系統運作,此時本發明之系統主控端將會下達該僕從端節點重置的命令,重置命令的通訊協定訊息內容範例(以CAN Bus通訊協定為例)如表1所示。讓該僕從端節點完成重置後,該僕從端節點會重新回到資料匯流排,使系統主控端能夠接收該僕從端節點所管控的該電池系統資訊,以進行全車電池系統運作之控制, In one embodiment of the present invention, the main control terminal of the system is the control core of the energy management system (managing the operation of the power battery organization) on the electric vehicle. The main control terminal of the system focuses on the state control of the entire system and the charge and discharge protection switch. Brake, and the basis of the state control comes from the information transmitted by the measurement system of each slave node of the system (ie, the battery management system of each battery), so the accuracy and update rate of these information are very important. In one embodiment of the present invention, the system master scans the data register of all the slave nodes at a frequency of 0.5 seconds, on the one hand, it updates all the parameter information, on the other hand, it confirms whether the data is missing, And further monitoring. When the continuity of any slave end node does not update the data, there are two possibilities: one is that the slave end node loses data due to a large amount of data collision, and the other is that the slave end node receives a lot of electromagnetic signals. It can't normally receive the information from the data bus (CAN Bus) due to the interference of the signal. The default mechanism of the CAN Bus will cut off the slave node from the network, so that the node's transmission function is disabled. In order to maintain the operation of the high-voltage power battery system of the electric bus, at this time, the system master of the present invention will issue a reset command of the slave node, and an example of the communication protocol message content of the reset command (using the CAN Bus communication protocol as Example) As shown in Table 1. After the slave end node is reset, the slave end node will return to the data bus, so that the system master can receive the battery system information controlled by the slave end node for the entire vehicle battery system operation. Control,

圖2係為本發明之系統主控端重置方法邏輯流程圖,如圖所示,該系統主控端每0.5秒執行檢測各僕從端運作狀況的動作(S1);接收各僕從端的暫存資料現況回覆訊息(S2);以接收旗標判斷是否有接收到僕從端的資訊(旗標Flag狀態為HIGH,代表有接收到來自僕從端的訊息)(S3);若有收到僕從端回應訊息,則清除接收旗標、回到步驟(S1)等待下次執行檢測掃描動作(S4);若沒有收到僕從端回應訊息,則將該僕從端之錯誤計數器累加計算+1(S5);判斷該僕從端之錯誤計數是否達到5,未達到5則回到步驟(S1)等待下次執行檢測掃描動作(S6);若該僕從端之錯誤計數達到5,則系統主控端對該僕從端發送一重置命令,強制該僕從端重新啟動(S7)。 FIG. 2 is a logic flow chart of the reset method of the master of the system according to the present invention. As shown in the figure, the master of the system executes the operation of detecting the operating status of each slave and slave every 0.5 seconds (S1); Reply information (S2) on the status of the temporarily stored data; use the receiving flag to determine whether the information of the slave has been received (the flag is HIGH, which means that the message from the slave has been received) (S3); The slave responds to the message, then clears the receive flag, and returns to step (S1) to wait for the next execution of the scanning operation (S4); if no response is received from the slave, the error counter of the slave is accumulated and calculated + 1 (S5); determine whether the error count of the slave end reaches 5, if not, return to step (S1) and wait for the next execution of the scanning operation (S6); if the error count of the slave end reaches 5, then The system master sends a reset command to the slave to force the slave to restart (S7).

本發明之電池系統控制網路為保持電動大客車的高壓電池系統運作可靠,係隨時偵測各僕從端(各自控制一電池的電池管理系統)的資料傳輸功能是否正常,對於傳輸功能異常的僕從端節點處理方式,本發明為改良習用車用控制網路CAN Bus強制讓節點離線的作法,提出以重置取代關閉節點傳輸功能的電池系統控制網路重置方法,由於電動車輛的電池管理系統都已內建管理電池充放電狀況的機制(軟體),只要排除掉訊號干擾、訊息碰撞等通訊干擾因素,讓僕從端重新啟動,系統主控端就能再次讀取到該僕從端所控管的電池狀態訊息、以繼續維持全車電池系統運作。本發明的電池系統控制網路以維持電池系統整體運作為優先考量,避免現有 車用控制網路(CAN BUS)強制關閉節點通訊的狀況。同時配合僕從端內建的看門狗計時器重置機制,確保電池系統不會因訊號干擾、訊息碰撞等非機件故障而停擺。 The battery system control network of the present invention is to keep the high-voltage battery system of the electric bus operating reliably, and it is to check whether the data transmission function of each slave (the battery management system that controls a battery) is normal at any time. The slave node processing method. The present invention is to improve the method of forcibly taking a node offline by using a CAN bus for the control network of a conventional vehicle. The management system has a built-in mechanism (software) for managing the battery charge and discharge status. As long as communication interference factors such as signal interference and message collision are eliminated, and the slave and the slave are restarted, the system master can read the slave again. Battery status information controlled by the client to continue to maintain the operation of the entire vehicle battery system. The battery system control network of the present invention gives priority to maintaining the overall operation of the battery system and avoids the existing Vehicle control network (CAN BUS) forced shutdown of node communication. At the same time, it cooperates with the built-in watchdog timer reset mechanism of the slave to ensure that the battery system will not stop due to non-mechanical failure such as signal interference and message collision.

圖3係為本發明之僕從端重置方法邏輯流程圖,如圖所示,該僕從端係具有一看門狗計時器(Watch Dog Timer,WDT),在僕從端啟動運作中、看門狗計時器會開啟計時功能(S01);依據僕從端是否有接收到資料匯流排(CAN Bus)上的訊息來判斷該僕從端的傳輸功能是否正常(S02);若僕從端的接收功能正常,則將看門狗計時器的時間歸零、回到步驟(S01),若僕從端不再接收訊息,看門狗計時器將持續計時(S03);判斷看門狗計時器的時間(即僕從端未正常接收訊息的時間)是否超過一重置時間(譬如2秒)(S04);若看門狗計時器的時間超過重置時間,則看門狗計時器將重新啟動該僕從端(S05),以排除掉僕從端被訊息碰撞、雜訊干擾等因素而無法通訊之情況,讓該僕從端能繼續上傳其搭配的電池管理系統資訊、以及從資料匯流排接收系統主控端的控制命令,確保電動車輛上的動力電池系統能正常運作。 FIG. 3 is a logic flowchart of the slave-side reset method of the present invention. As shown in the figure, the slave-side system has a Watch Dog Timer (WDT). The watchdog timer will turn on the timer function (S01); determine whether the transmission function of the slave terminal is normal according to whether the slave terminal has received a message on the data bus (CAN Bus); if the slave terminal receives If the function is normal, reset the time of the watchdog timer to zero and return to step (S01). If the slave no longer receives messages, the watchdog timer will continue to count (S03); Whether the time (that is, the time when the slave does not receive the message normally) exceeds a reset time (for example, 2 seconds) (S04); if the watchdog timer time exceeds the reset time, the watchdog timer will restart The slave terminal (S05) eliminates the situation where the slave terminal cannot communicate due to information collision, noise interference and other factors, so that the slave terminal can continue to upload its matching battery management system information and the data bus. Receive control commands from the main control end of the system to ensure the power The system can function properly.

本發明之一實施例中,僕從端係連接到動力電池的電池管理系統,進行量測系統運作、以及將量測資訊傳遞至系統主控端,並經由系統主控端狀態命令下達,運行全域式主動式平衡邏輯。系統主控端與僕從端關係緊密,因此通訊穩定性相當重要,當僕從端無法正常收到來自系統主控端 的狀態資訊或控制命令時,有兩種可能性:其一為系統主控端由於Error Frame過多,造成系統主控端進入通訊節點離線狀態,無法正常發送訊息,但系統主控端之訊息,擁有最高通訊優先權,不容易遭受資料碰撞,所以發生可能性低,而另一種狀態為模組電池管理系統由於過多無效訊息,造成接收功能異常,無法正常接收通訊匯流排上之訊息。 In one embodiment of the present invention, the slave terminal is connected to the battery management system of the power battery, performs the measurement system operation, and transmits the measurement information to the system master terminal, and issues and operates through the system master terminal status command. Global active balance logic. The system master and slave are closely related, so the communication stability is very important. When the slave and slave cannot normally receive the data from the system master, There are two possibilities for the status information or control commands: One is that the system master has entered an offline state of the communication node due to too many Error Frames, and the message cannot be sent normally, but the message from the system master, Has the highest communication priority, is not easy to suffer from data collision, so the probability of occurrence is low, and the other state is that the module battery management system has abnormal receiving functions due to too many invalid messages, and cannot normally receive messages on the communication bus.

綜上所述,本發明係提供一種電池系統控制網路及其重置方法,係可防止電動車輛的電池能量管理系統控制網路因通訊干擾、訊息碰撞等非機件故障而使電池管理系統的通訊節點停擺,影響電動車輛能量管理與行車安全的情況。本發明改良CAN Bus預設強制讓通訊功能不良的節點離線的作法,提出以重置取代關閉節點傳輸功能的電池系統控制網路重置方法,以符合電動車輛、特別是使用高壓電池動力系統的電動大客車之能量管理與行車安全需求。本發明使用系統主控端監測全體與僕從端自我檢測的雙重監控機制,利用系統主控端的最高命令權限與僕從端內建的看門狗計時器來解決雜訊干擾、訊息碰撞造成的節點通訊停擺問題。本發明可應用於電動小客車、電動大客車、電動機車等交通載具,亦可應用於綠能發電儲能裝置的能量管理,具有廣泛的應用價值與彈性。 In summary, the present invention provides a battery system control network and a reset method thereof, which can prevent the battery energy management system control network of an electric vehicle from causing battery management system failure due to non-mechanical failures such as communication interference and message collision. The suspension of communication nodes affects the energy management and driving safety of electric vehicles. The present invention improves the method of CAN Bus preset forcibly taking a node with poor communication function offline, and proposes a method of resetting the battery system control network instead of turning off the node transmission function to meet the requirements of electric vehicles, especially high-voltage battery power systems. Energy management and driving safety requirements for electric buses. The invention uses the dual monitoring mechanism of the system master controlling the entire monitoring and the slave-self-detection, and uses the highest command authority of the system master and the watchdog timer built in the slave to solve the noise interference and message collision. Node communication is down. The invention can be applied to transportation vehicles such as electric passenger cars, electric buses, and electric vehicles, and can also be used for energy management of green energy generation and energy storage devices, and has wide application value and flexibility.

上述之實施例僅為例示性說明本發明之特點及其功效,而非用於限制本發明之實質技術內容的範圍。任何 熟習此技藝之人士均可在不違背本發明之精神及範疇下,對上述實施例進行修飾與變化。因此,本發明之權利保護範圍,應如後述之申請專利範圍所列。 The above-mentioned embodiments are merely illustrative for describing the features and effects of the present invention, and are not intended to limit the scope of the essential technical content of the present invention. any Those skilled in the art can modify and change the above embodiments without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the rights of the present invention should be listed in the scope of patent application described later.

Claims (9)

一種電池系統控制網路,係包括:一系統主控端,係電性連接至一資料匯流排,該資料匯流排係為CAN BUS;複數僕從端,係電性連接至該資料匯流排,該些僕從端分別控制一電池的電池管理系統運作,且該僕從端具有看門狗計時器(Watch Dog Timer,WDT);其中該系統主控端每隔一監控時間掃描所有僕從端是否正常進行資料傳輸,對於無法正常傳輸的僕從端各自累加計算錯誤次數,當某一僕從端的錯誤次數超過一重置門檻值時,該系統主控端係對該僕從端發送一重置命令,各僕從端在自身無法正常傳輸資料的時間超過一重置時間時,該看門狗計時器係對該僕從端進行重置動作。A battery system control network includes: a system master terminal, which is electrically connected to a data bus, the data bus is CAN BUS; a plurality of slaves, which are electrically connected to the data bus, The slaves and slaves respectively control the operation of a battery battery management system, and the slaves and slaves have a Watch Dog Timer (WDT); wherein the master of the system scans all slaves at every monitoring time Whether the data transmission is normal. The slaves and slaves that cannot transmit normally accumulate the number of errors. When the number of errors of a slave exceeds the reset threshold, the master of the system sends a duplicate to the slave. The watchdog timer resets the slave when the time that each slave cannot transmit data normally exceeds a reset time. 如請求項1所述之電池系統控制網路,其中該監控時間係為0.5秒。The battery system control network according to claim 1, wherein the monitoring time is 0.5 seconds. 如請求項1所述之電池系統控制網路,其中該重置門檻值係為5。The battery system control network according to claim 1, wherein the reset threshold is 5. 如請求項1所述之電池系統控制網路,其中該重置時間係為2秒。The battery system control network according to claim 1, wherein the reset time is 2 seconds. 如請求項1所述之電池系統控制網路,其中該資料匯流排係為CANopen、MiCAN、FlexRay或其他種類的機動車輛系統控制網路。The battery system control network according to claim 1, wherein the data bus is a CANopen, MiCAN, FlexRay, or other type of motor vehicle system control network. 一種電池系統控制網路之重置方法,係用於一電池管理系統控制網路,該電池管理系統控制網路係包括:一系統主控端,係電性連接至一資料匯流排,該資料匯流排係為CAN BUS;複數僕從端,係電性連接至該資料匯流排,該些僕從端分別控制一電池的電池管理系統運作,且該僕從端具有看門狗計時器(Watch Dog Timer,WDT);該電池管理系統控制網路之重置方法步驟係包括:(a)該系統主控端每隔一監控時間透過該資料匯流排發送檢測訊息給所有僕從端,監測各僕從端是否有回應;(b)當該僕從端正常回應該檢測訊息時,該系統主控端將該正常回應的僕從端錯誤次數累積歸零,並重複步驟(a)之動作;(c)當該僕從端未正常回應該檢測訊息時,該系統主控端將該未正常回應的僕從端錯誤次數加一,並重複步驟(a)之動作;(d)當該僕從端之錯誤次數超過一重置門檻值時,該系統主控端發送一重置命令給該僕從端,強制該僕從端重新啟動;(e)該僕從端每次正常接收從該資料匯流排傳來的訊息時,對該看門狗計時器進行歸零;(f)當該僕從端超過一重置時間未正常接收訊息時,該看門狗計時器係對該僕從端進行重置動作。A reset method for a battery system control network is used for a battery management system control network. The battery management system control network includes: a system master terminal, which is electrically connected to a data bus, and the data The bus is CAN BUS; multiple slaves are electrically connected to the data bus. The slaves control the operation of a battery's battery management system, and the slave has a watchdog timer (Watch Dog Timer (WDT); The method of resetting the battery management system control network includes: (a) the system master sends detection messages to all slaves through the data bus at every monitoring time, and monitors each Whether the slave has responded; (b) When the slave responds normally to the detection message, the system master end accumulates the number of errors of the normally responded slave to zero, and repeats the action of step (a); (c) When the slave does not respond to the detection message normally, the system master adds one to the number of errors of the slave which did not respond normally, and repeats the action of step (a); (d) When the slave When the number of slave errors exceeds a reset threshold, The system master sends a reset command to the slave to force the slave to restart; (e) Each time the slave receives the message from the data bus normally, it should check the gatekeeper. The dog timer is reset to zero; (f) When the slave terminal does not receive the message normally after a reset time, the watchdog timer resets the slave terminal. 如請求項6所述之電池系統控制網路之重置方法,其中該監控時間係為0.5秒。The method for resetting the battery system control network according to claim 6, wherein the monitoring time is 0.5 seconds. 如請求項6所述之電池系統控制網路之重置方法,其中該重置門檻值係為5。The method for resetting the battery system control network according to claim 6, wherein the reset threshold is 5. 如請求項7所述之電池系統控制網路之重置方法,其中該重置時間係為2秒。The method for resetting the battery system control network according to claim 7, wherein the reset time is 2 seconds.
TW106145747A 2017-12-26 2017-12-26 Battery system control network and reset method thereof TWI646802B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW106145747A TWI646802B (en) 2017-12-26 2017-12-26 Battery system control network and reset method thereof
JP2018241056A JP6608518B2 (en) 2017-12-26 2018-12-25 Battery system control network and reset method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106145747A TWI646802B (en) 2017-12-26 2017-12-26 Battery system control network and reset method thereof

Publications (2)

Publication Number Publication Date
TWI646802B true TWI646802B (en) 2019-01-01
TW201929487A TW201929487A (en) 2019-07-16

Family

ID=65803654

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106145747A TWI646802B (en) 2017-12-26 2017-12-26 Battery system control network and reset method thereof

Country Status (2)

Country Link
JP (1) JP6608518B2 (en)
TW (1) TWI646802B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI787057B (en) * 2021-09-30 2022-12-11 財團法人工業技術研究院 Vehicle-used control device and method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060170398A1 (en) * 2005-01-19 2006-08-03 Gunnar Gangsto Single chip microcontroller including battery management and protection
WO2006081735A1 (en) * 2005-02-01 2006-08-10 Emerson Network Power Co., Ltd. A watch dog control method
TW201241620A (en) * 2011-04-13 2012-10-16 Hon Hai Prec Ind Co Ltd System and method for testing a watchdog timer
US20160248242A1 (en) * 2015-02-24 2016-08-25 Infineon Technologies Ag System and Method for a Fault Protection Circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060170398A1 (en) * 2005-01-19 2006-08-03 Gunnar Gangsto Single chip microcontroller including battery management and protection
WO2006081735A1 (en) * 2005-02-01 2006-08-10 Emerson Network Power Co., Ltd. A watch dog control method
TW201241620A (en) * 2011-04-13 2012-10-16 Hon Hai Prec Ind Co Ltd System and method for testing a watchdog timer
US20160248242A1 (en) * 2015-02-24 2016-08-25 Infineon Technologies Ag System and Method for a Fault Protection Circuit
CN105914713A (en) * 2015-02-24 2016-08-31 英飞凌科技股份有限公司 System and method for a fault protection circuit

Also Published As

Publication number Publication date
TW201929487A (en) 2019-07-16
JP2019118102A (en) 2019-07-18
JP6608518B2 (en) 2019-11-20

Similar Documents

Publication Publication Date Title
US9614767B2 (en) Transmission message generating device and vehicle-mounted communication system
CN101237345B (en) A network management method for CAN bus
US8665700B2 (en) Fault detection and mitigation for in-vehicle LAN network management
Ferreira et al. The FTT-CAN protocol for flexibility in safety-critical systems
KR102355092B1 (en) Operation method of communication node for diagnosing in vehicle network
CN112003772B (en) Communication system and communication control method
CN111108725A (en) Method for monitoring communication on a communication bus and electronic device for connection to a communication bus
KR20190000514A (en) Method for preventing diagnostic errors in vehicle network and apparatus for the same
JP2013106200A (en) Communication repeater for vehicle and sleep control method
KR101417097B1 (en) Monitoring apparatus for message transmission in network for a vehicle
TWI646802B (en) Battery system control network and reset method thereof
US9952919B2 (en) Semantic deduplication
CN106487627B (en) RIOM and train with RIOM
Dekanic et al. Integration of CAN bus drivers and UDS on Aurix platform
Gurram et al. Implementation of CAN bus in an autonomous all-terrain vehicle
Singh et al. Implementation of ‘CAN’protocol in automobiles using advance embedded system
JP6410914B1 (en) Serial communication system
JP5888252B2 (en) Vehicle communication device and information processing device
US10868745B2 (en) Device and network to reliably communicate in a network
US10404527B2 (en) Link reestablishment method and electrical system using the same
KR102273410B1 (en) A device, system and a method for reprograming electronic control unit
Seo et al. A reliable gateway for in-vehicle networks
KR101417402B1 (en) Fail-safe apparatus for gateway in vehicle networks and method thereof
CN217116113U (en) EPA-based vehicle-mounted control system
Latha An New Methodology on Fault Clearance Technique for Intra-Vehicular Networks