CN116224067A - Communication processing method based on line communication interface and battery management system - Google Patents
Communication processing method based on line communication interface and battery management system Download PDFInfo
- Publication number
- CN116224067A CN116224067A CN202310007465.9A CN202310007465A CN116224067A CN 116224067 A CN116224067 A CN 116224067A CN 202310007465 A CN202310007465 A CN 202310007465A CN 116224067 A CN116224067 A CN 116224067A
- Authority
- CN
- China
- Prior art keywords
- message
- interface
- battery management
- battery
- upper computer
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 212
- 230000006854 communication Effects 0.000 title claims abstract description 211
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 34
- 238000012545 processing Methods 0.000 claims abstract description 29
- 238000004590 computer program Methods 0.000 claims abstract description 18
- 238000012795 verification Methods 0.000 claims abstract description 9
- 238000002955 isolation Methods 0.000 claims description 11
- 230000007958 sleep Effects 0.000 claims description 7
- 239000000463 material Substances 0.000 abstract description 2
- 238000012544 monitoring process Methods 0.000 abstract description 2
- 238000012423 maintenance Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 17
- 230000003287 optical effect Effects 0.000 description 12
- 230000006870 function Effects 0.000 description 10
- 230000001629 suppression Effects 0.000 description 7
- 230000001052 transient effect Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 5
- 239000003990 capacitor Substances 0.000 description 5
- 238000007599 discharging Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000007175 bidirectional communication Effects 0.000 description 3
- 125000004122 cyclic group Chemical group 0.000 description 3
- 230000005669 field effect Effects 0.000 description 3
- 230000008054 signal transmission Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- HBBGRARXTFLTSG-UHFFFAOYSA-N Lithium ion Chemical compound [Li+] HBBGRARXTFLTSG-UHFFFAOYSA-N 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000012937 correction Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000005059 dormancy Effects 0.000 description 2
- 229910001416 lithium ion Inorganic materials 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 229910052744 lithium Inorganic materials 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000005316 response function Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/3644—Constructional arrangements
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/371—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC] with remote indication, e.g. on external chargers
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/389—Measuring internal impedance, internal conductance or related variables
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
The application relates to a communication processing method, a communication processing device, a communication processing computer device, a communication processing storage medium and a communication processing computer program product based on a line communication interface. The method comprises the following steps: after the battery is electrified, the one-wire communication interface is configured as a two-way communication interface; if a first message sent by an upper computer based on a first communication protocol is received through the line communication interface within a first preset time, checking the first message; analyzing the first message after verification, and determining target battery parameters of the upper computer request; processing the target battery parameters based on a first communication protocol to obtain a second message; and sending the second message to the upper computer through the line communication interface, and obtaining the target battery parameter by analyzing the second message by the upper computer. The data is received and transmitted through the first-line interface, so that the material cost of the monitoring circuit is saved, and the line maintenance cost is reduced.
Description
Technical Field
The present disclosure relates to the field of battery testing technologies, and in particular, to a processing method and a battery management system for communication processing based on a wired interface.
Background
With the development of lithium ion batteries, specific parameter information of the battery, such as information of electric quantity, voltage, temperature, etc., needs to be displayed, or a real-time state of the battery needs to be obtained, so that the battery can be charged by using the most suitable current.
In the prior art, communication between the battery end and the external end is completed through a communication wire arranged outside the wire communication and the battery pack, and various parameter information of the battery end is obtained and a calibration instruction of the battery is sent. However, in order to consider factors such as battery safety, the battery manufacturer removes the communication line arranged outside the battery pack, and further, the monitoring of various parameter information of the battery cannot be completed by means of the line communication alone, so that the testing party cannot smoothly perform testing work on the battery.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a processing method and a battery management system for communication processing based on a line interface, which can improve the communication efficiency of a tester.
In a first aspect, the present application provides a communication processing method based on a line-through interface, where the method includes:
after the battery is electrified, the one-wire communication interface is configured as a two-way communication interface;
If a first message sent by an upper computer based on a first communication protocol is received through the line communication interface within a first preset time, checking the first message;
analyzing the first message after verification, and determining target battery parameters of the upper computer request;
processing the target battery parameters based on a first communication protocol to obtain a second message;
and sending the second message to the upper computer through the line communication interface, and obtaining the target battery parameter by analyzing the second message by the upper computer.
In one embodiment, the method further comprises:
if a first message sent by the upper computer based on a first communication protocol is not received within the first preset time, configuring the one-way interface as a one-way communication interface;
processing preset battery parameters based on a second communication protocol to obtain a third message;
and sending the third message to an upper computer through the line communication interface, and obtaining the preset battery parameters by analyzing the third message by the upper computer.
In one embodiment, after the step of sending the third message to the upper computer through the one-wire interface, the method further includes:
The one-wire communication interface is configured as a two-way communication interface.
In one embodiment, the wire-through interface comprises a first end connected with an upper computer, an input end connected with the battery management controller and an output end connected with the battery management controller;
the configuring the one-wire communication interface as a two-way communication interface includes: configuring the input and the output based on a UART communication protocol;
the first end is used for receiving a first message of the upper computer, and the first message is sent to the battery management controller through the output end; the input end is used for receiving the second message sent by the battery management controller, and the second message is sent to the upper computer through the first end.
In one embodiment, the configuring the one-wire communication interface as a one-way communication interface includes:
disabling the output;
the input end is used for receiving a third message sent by the battery management controller, and the third message is sent to the upper computer through the first end.
In one embodiment, if the first end does not receive the pull-up signal, the one-wire-through interface is switched to the sleep mode.
In a second aspect, the present application provides a battery management system comprising:
a battery management controller and a line-through interface connected with the battery management controller;
the battery management controller stores a computer program, and the battery management controller implements the steps of the method when executing the computer program.
In one embodiment, the one-wire interface includes a first end connected to the host computer, an input end connected to the battery management controller, and an output end connected to the battery management controller.
In one embodiment, the one-wire interface further includes an external interrupt circuit, a transmitting circuit, a receiving circuit, and an isolation protection circuit connected to the output terminal, the isolation protection circuit being disposed between the transmitting circuit, the external interrupt circuit, the receiving circuit, and the first terminal, the receiving circuit being turned on when the first terminal is enabled.
In a third aspect, the present application provides a computer readable storage medium having stored thereon a computer program 5, which when executed by a processor, performs the steps of:
after the battery is electrified, the one-wire communication interface is configured as a two-way communication interface;
If a first message sent by an upper computer based on a first communication protocol is received through the line communication interface within a first preset time, checking the first message;
analyzing the first message after verification, and determining target battery parameters of the upper computer request; 0, processing the target battery parameters based on a first communication protocol to obtain a second message;
and sending the second message to the upper computer through the line communication interface, and obtaining the target battery parameter by analyzing the second message by the upper computer.
In a fourth aspect, the present application provides a computer program which, when executed by a processor, performs the steps of:
after the battery is electrified, configuring the one-wire communication interface as a two-way communication interface;
if a first message sent by an upper computer based on a first communication protocol is received through the line communication interface within a first preset time, checking the first message;
analyzing the first message after verification, and determining target battery parameters of the upper computer request;
processing the target battery parameters based on a first communication protocol to obtain a second message;
And 0, sending the second message to the upper computer through the line communication interface, and obtaining the target battery parameter by analyzing the second message by the upper computer.
The processing method and the battery management system based on the communication processing of the first-line interface utilize the existing first-line interface, and the first-line interface is configured as the two-way communication interface, so that the battery is prevented from being outside the battery pack
Setting up communication line, receiving first message on a line interface, obtaining 5 target battery parameters requested by upper computer according to checking and analyzing the first message, further processing the target battery parameters to obtain second message,
the method comprises the steps that the second message is sent to the upper computer through the line communication interface, and the upper computer obtains target battery parameters through analyzing the second message.
Drawings
FIG. 1 is a diagram showing an application environment of a communication processing method based on a line-through interface in one embodiment;
FIG. 2 is a flow chart of a communication processing method based on a line-through interface in one embodiment;
FIG. 3 is a schematic diagram of a communication format of a first message according to an embodiment;
FIG. 4 is a diagram illustrating a frame format of a first message according to one embodiment;
FIG. 5 is a schematic diagram of a message waveform sent by a battery management controller to an upper computer in one embodiment;
FIG. 6 is a block diagram of a battery management controller, a wired interface, and a host computer in one embodiment;
FIG. 7 is a block diagram of a battery management controller, a wired interface, and a host computer according to another embodiment;
FIG. 8 is a schematic diagram of a first battery side circuit in one embodiment;
FIG. 9 is a schematic diagram of a second battery side circuit in one embodiment;
FIG. 10 is a schematic diagram of a load side circuit corresponding to an upper computer interface in an embodiment;
FIG. 11 is a diagram of a compatible approach to a line-through whole car protocol and a host computer protocol in one embodiment;
FIG. 12 is a block diagram of a communication processing device based on a wire-through interface in one embodiment;
fig. 13 is an internal structural view of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The delta plug is one of the most commonly used power plugs in daily life. The maximum current of the customized delta plug can reach more than 20A, so the customized delta plug is also widely used on the connection lines of batteries such as electric bicycles. The positive electrode (P+) and the negative electrode (P-) of the battery connecting wire occupy the N joint and the L joint of the delta plug respectively, and the other joint of the delta plug is in a suspended state because the ground wire is not required to be connected.
With the development of intelligent lithium ion batteries, in many applications, in order to display information such as the remaining capacity, voltage, temperature, etc. of the battery, or obtain the real-time state of the battery so as to charge the battery with the most suitable current, a dashboard and a charger at the application end of the battery need to communicate with the battery. In order to be compatible with the large number of delta plugs in the market, it is therefore desirable to develop a one-wire interface that uses a single communication wire to communicate with the battery.
In view of this, the communication processing method based on the line-to-line interface provided in the embodiment of the present application may be applied to the application environment shown in fig. 1. The battery power source 102 supplies power to the battery management controller 104 and the host computer 110, and the battery management controller 104 and the host computer 110 share the negative electrode B-, and the battery power source 102 may be a lithium battery pack or a chargeable and dischargeable battery pack made of other materials.
After the battery power supply 102 is powered on, the battery management controller 104 configures the one-wire communication interface 106 as a two-way communication interface; if the battery management controller 104 receives a first message sent by the upper computer 110 based on the first communication protocol through the one-wire communication interface 106 within a first preset time, checking the first message; the battery management controller 104 analyzes the checked first message and determines the target battery parameter requested by the upper computer 110; the battery management controller 104 processes the target battery parameters based on the first communication protocol to obtain a second message; the battery management controller 104 sends a second message to the upper computer 110 through the line communication interface 106, and the upper computer 110 obtains the target battery parameters by analyzing the second message.
The battery management controller 104 may be a single chip microcomputer in the BMS, and the single chip microcomputer has the capability of receiving, checking, analyzing and sending messages. The battery management system BMS further comprises a battery charging module and a battery discharging module, wherein the battery charging module comprises a charging MOS tube, and the battery discharging module comprises a discharging MOS tube.
The wired interface 106 and the host interface 108 may each include a circuit through which the communication current or the high-low level signal between the battery management controller 104 and the host 110 can be transmitted.
The upper computer 110 may be directly connected to the wired interface 106, or may be connected to the wired interface 106 through the upper computer interface 108. The host computer 110 may be a microprocessor with computing power that has the ability to receive, process, and send messages.
In one embodiment, as shown in fig. 2, a communication processing method based on a line-through interface is provided, and the method is applied to the battery management controller in fig. 1 for illustration, and includes the following steps:
s202, after the battery is powered on, the one-wire communication interface is configured as a two-way communication interface.
The battery power-on may be that one end of the battery management controller is connected with one end of the upper computer in a physical layer, for example, a battery end delta-letter seat of the battery management controller is connected with a charger or a load delta-letter head of the upper computer.
The one-wire interface may be a battery side circuit connected to the battery management controller, the input and output of the battery side circuit being connected to the battery management controller, in particular, the input of the battery side circuit being connected to the output interface of the battery management controller, the output of the battery side circuit being connected to the input interface of the battery management controller.
The battery end circuit is also provided with an input/output port, one end of which is connected with the upper computer.
Specifically, the flow direction of the electric signal of the input end of the battery end is from the battery end circuit to the battery management controller, the flow direction of the electric signal of the output end of the battery end is from the battery management controller to the battery end circuit, and the flow direction of the signal of the input and output port of the battery end circuit is bidirectional between the battery end circuit and the upper computer.
The configuration of the one-wire communication interface as a two-way communication interface means that the battery management controller realizes half-duplex communication between the battery management controller and the upper computer by means of a battery end circuit.
It should be noted that, the power VCC of the battery-side circuit may be supplied by the battery management controller or the battery may directly supply power to the battery-side circuit, and the common ground GND of the battery-side circuit and the protection ground PGND of the battery-side circuit may be shared with the ground of the battery management controller, where the protection ground PGND may function in the circuit loop as the battery-side output P-pole.
S204, if a first message sent by the upper computer based on the first communication protocol is received through the one-wire communication interface within a first preset time, the first message is checked.
The first preset time refers to a preset starting time of a period of a first-line communication protocol T after the battery management controller and the upper computer start to communicate by means of the first-line communication interface, for example, T is equal to 10s, if the duration of the communication between the battery management controller and the upper computer is less than 10s after the battery management controller and the upper computer start to communicate, a communication protocol between the battery management controller and the upper computer is not changed, and a first message sent by the upper computer based on the first communication protocol is continuously received through the first-line communication interface.
If the duration time exceeds 10s after the communication between the battery management controller and the upper computer is started, the communication protocol between the battery management controller and the upper computer is switched to the SIF protocol.
The first communication protocol may be a MODBUS protocol, which is a general language applied to the electronic controller. Through this protocol, the controllers can communicate with each other, with the controllers via a network (e.g., ethernet) and other devices. It has become a common industry standard.
The precondition that the battery management controller receives the message of the upper computer is that the output end and the input end of the battery management controller are configured to be UART functions, and UART is a universal serial data bus used for asynchronous communication. The bus can communicate bi-directionally, and half duplex transmission and reception can be achieved.
The first message is a message with an actual signal and a content of the actual signal is not null, and specifically, a communication format of the first message is shown in fig. 3, and includes a synchronization signal, a signal "0", a signal "1" and a stop signal.
The frame format of the first message is shown in fig. 4, and includes a synchronization signal, a stop signal, and a number of bytes of actual signal contents, that is, a signal "0" and a signal "1"1 bytes of actual signal contents in the communication format include 8 bits, that is, 8 signals "0" or a signal "1".
The first message of each frame has only one synchronizing signal and one stopping signal, and the synchronizing signal and the stopping signal are the actual signal content to be sent.
The first message may be checked by CRC or other checking methods with error detection and correction. The CRC check is also called cyclic redundancy check code, which is a common check code with error detection and correction capability and is widely applied to early communication. Cyclic redundancy check codes are commonly used for data checking in synchronous communication between external memory and a computer. The Cyclic Redundancy Check (CRC) is a agreed relation between data bits and check bits by some mathematical operation.
S206, analyzing the checked first message, and determining the target battery parameters of the upper computer request.
The first message after verification is analyzed to determine the target battery parameter requested by the upper computer and the operation instruction of the battery management controller.
The requested target battery parameter may be battery real-time status information such as a request for battery remaining capacity, a request for battery real-time voltage, a request for battery real-time current, battery charging type, etc. The operation instructions of the battery management controller can be modification instructions of various parameters of the battery, such as charging high-temperature alarm delay, charging low-temperature alarm delay, charging overcurrent alarm delay, discharging high-temperature alarm delay, discharging low-temperature alarm delay and the like.
S208, processing the target battery parameters based on the first communication protocol to obtain a second message.
After the battery management controller receives the first message from the upper computer, the battery management controller processes the target battery parameters based on the first communication protocol to obtain a second message.
The second message communication format and the frame format are similar to those of the first message, and are not described herein.
S210, sending a second message to the upper computer through the line-through interface, and obtaining the target battery parameters by the upper computer through analyzing the second message.
The upper computer may first check the second message sent by the battery management controller through a line communication interface before analyzing the second message, and the checking mode is similar to that of the first message, which is not described herein.
Wherein the target battery parameter corresponds to the requested target battery parameter.
Specifically, if the requested target battery parameter is real-time state information of the battery, the target battery parameter may be state information of the battery at the time when the first message finishes verification and analysis, and if the requested target battery parameter is a modification instruction of various parameters of the battery, the target battery parameter may be a modification completion result of various parameters of the battery. For example, the modification instruction increases the charge high temperature alarm delay by 10ms, and the modification completion result includes that the charge high temperature alarm delay has increased by 10ms and the charge high temperature alarm delay current time.
In the communication processing method based on the first-line interface, the existing first-line interface is utilized, the first-line interface is configured as the two-way communication interface, so that a communication line is prevented from being opened outside a battery pack, a first message is received on the first-line interface, a target battery parameter requested by an upper computer is obtained according to verification and analysis of the first message, the target battery parameter is further processed, a second message is obtained, the second message is sent to the upper computer through the first-line interface, and the upper computer obtains the target battery parameter through analysis of the second message.
In one embodiment, if the first message sent by the upper computer based on the first communication protocol is not received within the first preset time, configuring the one-way communication interface as a one-way communication interface; processing preset battery parameters based on a second communication protocol to obtain a third message; and sending a third message to the upper computer through the line-through interface, and obtaining preset battery parameters by the upper computer through analyzing the third message.
After the battery is electrified, the battery management controller does not receive a first message sent by the upper computer based on the first communication protocol within a first preset time, and then the one-way communication interface is configured as a one-way communication interface. The first preset time may be a preset start time of a period of the one-wire protocol T, e.g. T equals 10s. If the first message sent by the upper computer based on the first communication protocol is not received within 10 seconds, the one-way communication interface is configured as a one-way communication interface.
The battery power-on may be that one end of the battery management controller is connected with one end of the upper computer in a physical layer, for example, a battery end delta-letter seat of the battery management controller is connected with a charger or a load delta-letter head of the upper computer.
Specifically, the output terminal of the battery terminal circuit corresponding to the wire-through interface, which transmits information to the battery management controller, may be disabled, and the input terminal of the battery management controller, which receives the battery terminal circuit, may be disabled. So as to achieve the function of configuring a one-way communication interface as a one-way communication interface.
It should be noted that the single-wire communication interface may refer to that the host computer receives the signal sent by the battery management controller in a single direction.
The second communication protocol may be a SIF protocol, where the SIF protocol is a one-wire communication protocol, and may be used in a scene such as an instrument of an electric vehicle controller, where a one-wire communication message format generally includes four parts including a message ID, a protocol version, a data content, and a check byte. Message ID: the method comprises the steps of initial message, periodic message and protocol version: the method comprises the following steps of secondary communication protocol version, primary communication protocol version and check byte: remarks (unused bytes in data, 0xFF filled) are checked for message ID, protocol version, and sum of data content (B0-B47).
Specifically, the data content of the third message includes: data sequence number, time, protection reason, battery pack voltage, current, highest cell, lowest cell, temperature information, capacity information, number of cycles, etc.
The protection reasons include: no protection, single body protection, overvoltage protection, undervoltage protection, high temperature protection, low temperature protection, charge MOS failure protection, discharge MOS failure protection, cell failure protection, NTC failure protection and the like.
The preset battery parameter may be the data content of the third parsed message.
Specifically, the third message is sent to the upper computer through the battery management controller every preset time according to the data content format of the agreed third message, and the upper computer analyzes the third message to obtain preset battery parameters. The preset time is flexibly selected according to actual conditions, and is not limited herein. For example, when the battery management controller is tested for use, the remaining capacity of the battery needs to be paid attention to, and therefore, the interval between the transmission of the third message needs to be reduced so that the capacity information is timely acquired by the host computer. By improving the existing one-wire communication interface, the two-way or one-way communication protocol is configured for the one-wire communication interface, and the switching of the two communication modes is realized on the basis of the existing one-wire communication.
In one embodiment, if the first message sent by the host computer based on the first communication protocol is not received within the first preset time, the input end of the first line interface and the output end of the first line interface are configured to be a common IO function, i.e. an open-drain output, the SIF protocol is run, and the input end of the first line interface and the output end of the first line interface are configured to be a UART function immediately after the SIF protocol message is sent, and waiting for receiving the message. Wherein, SIF protocol realizes: the protocol has strict time rules for the start bit (synchronization signal), stop bit and each bit, so a timer is used to achieve accurate timing. SIF message period T is 3S, timing in the main program, setting gu8TimeToYXT flag bit every 3S, then in the systink interrupt program, executing IO flip in time sequence without detecting gu8TimeToYXT is set, and immediately clearing gu8TimeToYXT after finishing data transmission.
In this embodiment, by judging that the first message of the upper computer is not received within the preset time, the battery management controller actively transmits the third message to the upper computer, thereby realizing active data uploading.
In one embodiment, after the step of sending the third message to the host computer through the wire-line interface, the method further comprises: the one-wire communication interface is configured as a two-way communication interface.
After the third message is sent to the upper computer through the line connection interface, the output end of the battery end circuit corresponding to the line connection interface, which sends information to the battery management controller, can be disabled and released, i.e. the input end of the battery management controller, which receives the battery end circuit, is disabled and released. Further, the one-way communication interface is converted from one-way communication to two-way communication.
Specifically, the battery management controller shown in fig. 5 sends a message waveform diagram to the host computer.
Where T is 3s, T1 is 438ms, and T2 is 2562ms. The input end of the line-through interface and the output end of the line-through interface are configured as a common IO function at a start-stop point of t1, t1 is a period of one frame of SIF message, after one frame of complete SIF message is completely sent out, the input end of the line-through interface and the output end of the line-through interface are configured as UART functions at an end point of t1 (a start point of t 2), if the input end of the line-through interface receives data within t2, 10s (a preset value and can be adjusted) is kept (g_com=20, one is subtracted every 500 ms), the gu8TimeToYXT is not set, if the input end of the line-through interface continuously 10s does not receive the message, the gu8TimeToYXT is set, and the SIF protocol is continued. During t1, the input terminal of the one-wire interface is configured in an open drain output mode, and no data is received, so that no interference is caused to data reception during t 2. If the first-line interface is not connected to the pull-up, the input end of the first-line interface can not receive the message all the time, so that the SIF protocol can be run all the time before standing and dormancy (generally, the battery management controller can set that the first-line interface is not pulled up, is not charged and discharged, and enters a standing and dormancy mode within 1-5 minutes under the condition of no charge and discharge protection so as to reduce power consumption).
In this embodiment, after the third message is sent, the one-wire access interface configuration mode is switched from the unidirectional communication mode to the bidirectional communication mode, so as to realize switching between different communication protocols, and improve the data exchange rate.
In one embodiment, the one-wire interface includes a first end connected to the host computer, an input end connected to the battery management controller, and an output end connected to the battery management controller; configuring a line-through interface as a bi-directional communication interface, comprising: configuring an input and an output based on a UART communication protocol; the first end is used for receiving a first message of the upper computer, and the first message is sent to the battery management controller through the output end; the input end is used for receiving the second message sent by the battery management controller, and the second message is sent to the upper computer through the first end.
Specifically, a battery management controller, a line-through interface and an upper computer are shown in fig. 6 as a block diagram. Configuring a one-wire communication interface as a two-way communication interface includes: the output end of the battery management controller is connected with the input end of the one-wire communication interface, the input end of the battery management controller is connected with the output end of the one-wire communication interface, and the first end of the one-wire communication interface is connected with the upper computer. The signal flow direction is that the output end of the battery management controller flows to the input end of the one-wire communication interface, the output end of the one-wire communication interface flows to the input end of the battery management controller, and in addition, the signal flow direction between the first end of the one-wire communication interface and the upper computer flows mutually.
In this embodiment, the one-wire communication interface is configured as a two-way communication interface, so that the battery management controller and the upper computer can form half-duplex communication, and a wheel inquiry and response function between the battery management controller and the upper computer is realized.
In one embodiment, a one-way interface is configured as a one-way communication interface, comprising: disabling the output; the input end is used for receiving a third message sent by the battery management controller, and the third message is sent to the upper computer through the first end.
Specifically, another battery management controller, a line-through interface, and an upper computer as shown in fig. 7 are block diagrams. Configuring a one-way communication interface as a one-way communication interface includes: the output of the one-wire interface and the input of the battery management controller are disabled. The output end of the battery management controller is connected with the input end of a first-line communication interface, and the first section of the first-line communication interface is connected with the upper computer. The signal flow direction is that the output end of the battery management system flows to the input end of the one-wire interface, and then the signal is sent to the upper computer through the first end of the one-wire interface.
In this embodiment, the one-way interface is configured as a one-way communication interface, so that the battery management controller and the upper computer can form simplex communication, and the function of actively reporting signals by the battery management controller is realized.
In one embodiment, if the first end does not receive the pull-up signal, the first end switches the one-wire-through interface to the sleep mode.
The pull-up signal refers to a scheduling signal of the upper computer, and if the first end does not receive the pull-up signal, the upper computer does not send the scheduling signal to the wired-communication interface and the battery management controller at the current moment.
If the first end does not receive the pull-up signal, the battery management controller does not perform charge and discharge control and protection, and the preset time is exceeded, the wire-line interface is switched to the sleep mode, so that the power consumption is reduced. Wherein the preset time may be 1 to 5 minutes.
If the first end receives the pull-up signal, the one-wire communication interface is configured as a two-way communication interface, so that half-duplex communication between the battery management controller and the upper computer is realized.
In this embodiment, by setting the pull-up signal, when the first end of the one-wire interface does not receive the pull-up signal, the one-wire interface is switched to the sleep mode, so as to reduce power consumption.
In order to achieve signal transmission between the battery management controller and the upper computer, in one embodiment, there is also provided a battery management system, including: a battery management controller and a line-through interface connected with the battery management controller; the battery management controller stores a computer program, and the battery management controller performs the above-described method steps.
Wherein the wire-through interface comprises a battery side circuit. Specifically, a schematic diagram of the first battery side circuit is shown in fig. 8.
The first battery terminal circuit comprises an external interrupt circuit, a transmitting circuit, a receiving circuit and an isolation protection circuit.
The external interrupt circuit comprises a resistor R1, a capacitor C1 and a diode D2. The first end of the resistor R1 is connected with the power supply VCC, the second end of the resistor R1 is connected with an external interrupt interface of the battery management controller, the first end of the capacitor C1 and the anode of the diode D2, and the second end of the capacitor C2 is connected with the common ground GND. Principle of operation of external interrupt circuit: when a high level signal of an external interrupt interface of the battery management controller is received, the diode D2 is turned on.
The receiving circuit comprises a triode Q2, a resistor R9, a resistor R10, a resistor R17 and a diode D4. The emitter of the triode Q2 is connected with the first end of the resistor R9 and a POWER supply MCP POWER2 provided by the battery management controller, the POWER supply MCP POWER2 is generally 3.3V, when the battery management controller is dormant, the POWER supply MCP POWER2 needs to be turned off, the base of the triode Q2 is connected with the second end of the resistor R9 and the first end of the resistor R10, the second end of the resistor R10 is connected with the anode of the diode D4, the collector of the triode Q2 is connected with the first end of the resistor R17 and the input end of the battery management controller, and the second end of the resistor R17 is connected with the common ground GND. The working principle of the receiving circuit is as follows: if the diode D4 is turned on, the base current provided by the POWER MCP POWER2 for the base of the transistor Q2 is amplified by the transistor Q2 to obtain the collector current, and further, the high-low level signal at the input end of the battery management controller is obtained according to the on state of the diode D4.
The transmission circuit includes: resistor R3, resistor R5, optocoupler U2. The first end of the resistor R5 and the second end of the optocoupler U2 are connected with the output end of the battery management controller, the second end of the resistor R5 and the second end of the resistor R3 are connected with the first end of the optocoupler U2, the first end of the resistor R3 is connected with the power VCC, and the third end of the optocoupler U2 is connected with the protection ground PGND. The working principle of the transmitting circuit is that if the fourth end of the optical coupler U2 receives a signal that the driving current is larger than the minimum driving current of the optical coupler U2 and smaller than the current limit value of the optical coupler U2, the optical coupler U2 is driven, and then the first end of the optical coupler U2 and the second end of the optical coupler U2 are conducted, and a high-low level signal of the output end of the battery management controller is obtained.
The isolation protection circuit includes: optocoupler U3, resistor R6, resistor R14, TVS2 and fuse F2. The first end of the optocoupler U3 is connected with the first end of the resistor R6 and the first end of the resistor R14, the second end of the optocoupler U3 is connected with the second end of the resistor R14 and the protection ground PGND, and the third end of the optocoupler U3 is connected with the common ground GND. The resistor R6 is connected with the first end of the fuse F2 and the cathode of the transient voltage suppression diode TVS2, the anode of the transient voltage suppression diode TVS2 is connected with the protection ground PGND, and the second end of the fuse F2 is connected with the first end TXRX of the upper computer interface. The working principle of the isolation protection circuit is as follows: when the first end TXRX of the upper computer interface inputs an electrical signal, the first end of the optocoupler U3 and the second end of the optocoupler U3 are driven, so as to conduct the third end of the optocoupler U3 and the fourth end of the optocoupler U3, and when the electrical signal is input and the current is too large, the transient voltage suppression diode TVS2 and the fuse F2 may be triggered, so that the optocoupler U3 or other circuit elements are prevented from being burned out.
A schematic of a second battery side circuit is shown in fig. 9.
The second battery terminal circuit includes: an external interrupt circuit, a receiving circuit, and a transmitting circuit.
Wherein the external interrupt circuit includes: capacitor C2, resistor R7, fet Q4, resistor R11, resistor R15, and resistor R18. The first end of the capacitor C2 is connected with an external interrupt interface of the battery management controller, the first end of the resistor R7 and the drain electrode of the field effect transistor Q4, the source electrode of the field effect transistor Q4 is connected with the first end of the resistor R18 and the first end of the resistor R15, and the grid electrode of the field effect transistor Q4 is connected with the first end of the resistor R11 and the second end of the resistor R18. Principle of operation of external interrupt circuit: when the gate current of the fet Q4 reaches a threshold, the source and drain of the fet Q4 are turned on, and at this time, the external interrupt interface of the battery management controller may send an interrupt signal.
The receiving circuit includes: transistor Q1, resistor R8, resistor R12, diode D3, transistor Q3, resistor R16, resistor R13, diode D1, and fuse F1. The base of triode Q1 is connected with the first end of resistance R8, the first end of resistance R12, triode Q1's collecting electrode is connected with the second end of resistance R8, power VCC, triode Q1's projecting pole is connected with the input of battery management controller, triode Q3's base is connected with the first end of resistance R13, the first end of resistance R16 is connected, triode Q3's projecting pole is connected with diode D3's negative pole, resistance R13's second end is connected with diode D1's negative pole, diode D1's positive pole is connected with fuse F1's first end, fuse F1's second end is connected with host computer interface's first end TXRX. The working principle of the receiving circuit is as follows: the current signal sent by the first end TXRX of the upper computer interface is transmitted to the resistor R12 through the amplification function of the triode Q3, the combined current of the resistors R8 and R12 is improved, and the combined current is amplified through the triode Q1, so that the input end of the battery management controller is identified to obtain a high-level signal.
The transmission circuit includes: resistor R2, resistor R4, optocoupler U1, transient voltage suppression diode TVS1. The first end of the optocoupler U1 is connected with the first end of the resistor R2 and the first end of the resistor R4, the third end of the optocoupler U1 is connected with the anode of the transient voltage suppression diode TVS1, and the fourth end of the optocoupler U1 is connected with the cathode of the transient voltage suppression diode TVS1. The working principle of the transmitting circuit is as follows: the output end of the battery management controller is a high-level signal, so that the first end and the second end of the optical coupler U1 reach a driving current threshold, at this time, the third end and the fourth end of the optical coupler U1 are conducted, and then an electric signal is transmitted to the first end TXRX of the upper computer interface.
It should be noted that, the upper computer connected to the one-wire interface is a schematic diagram of a load-side circuit corresponding to the upper computer interface as shown in fig. 10, which realizes signal transmission through the upper computer interface.
Wherein, load side circuit includes: a transmitting circuit and a receiving circuit.
The transmission circuit includes: resistor R19, resistor R21, optocoupler U4, resistor R20, fuse F3. The first end of the optical coupler U4 is connected with the first end of the resistor R19 and the first end of the resistor R21, and the second end of the optical coupler U4 is connected with the output end of the upper computer.
The receiving circuit includes: transistor Q5, resistor R22, resistor R23, resistor R24, resistor R25, resistor R26, optocoupler U5, and TVS3. The working principle of the receiving end is as follows: after the first end TXRX of the upper computer interface receives the electrical signal sent by the battery management controller, the electrical signal enables the first end and the second end of the optocoupler U5 to be conducted, and further, the combined current between the resistor R23 and the resistor R24 is improved, the combined current is amplified by the third transistor Q5, the electrical signal of the receiving port of the upper computer is kept at a high level, and the electrical signal of the receiving port of the upper computer is changed by changing the electrical potential of the electrical signal sent by the battery management controller.
It will be appreciated that the communication between the load side circuit and the battery side circuit is performed through the first side TXRX of the host interface.
In the implementation, the original one-wire circuit is improved, and a circuit of a signal receiving part of the battery management controller is added, so that the data receiving and transmitting function of the battery management controller is realized.
In one embodiment, the one-wire interface includes a first end coupled to the host computer, an input end coupled to the battery management controller, and an output end coupled to the battery management controller.
Specifically, as shown in fig. 8, 9 and 10, the first end of the wired connection interface connected to the host computer is TXRX, the input end connected to the battery management controller is TX, and the output end RX connected to the battery management controller.
In this embodiment, the first end of the first line interface connected to the host computer, the input end and the output end connected to the battery management controller, provide a carrier for signal transmission in a communication mode configured with the first line interface.
In one embodiment, the one-wire interface further comprises an external interrupt circuit, a transmitting circuit, a receiving circuit, and an isolation protection circuit connected to the output terminal, the isolation protection circuit being disposed between the transmitting circuit, the external interrupt circuit, the receiving circuit, and the first terminal, the receiving circuit being turned on when the first terminal is enabled.
As shown in fig. 8, the isolation protection circuit includes an optocoupler U3, a TVS2, and a fuse F2. The photoelectric isolation of the first end and the battery management controller is realized by using the optical coupler, the condition of communication distortion is avoided, and the transient voltage suppression diode and the fuse are used for avoiding the condition of burning out components caused by overlarge loop current when the first end is in short circuit.
In one embodiment, as shown in fig. 11, a method for compatibility of a whole vehicle protocol and an upper computer protocol of a line-through is provided, which includes:
and S1102, after the battery is powered on, configuring the one-wire communication interface as a two-way communication interface.
S1104, whether the first message is received within a first preset time.
If yes, S1106 is executed, and if no, S1114 is executed.
The first preset time may be set by a TM timer of the battery management controller.
And S1106, if a first message sent by the upper computer based on the first communication protocol is received through the one-wire communication interface within a first preset time, checking the first message.
S1108, analyzing the checked first message, and determining the target battery parameters of the upper computer request.
S1110, processing the target battery parameters based on the first communication protocol to obtain a second message.
S1112, sending a second message to the upper computer through the line-through interface, and obtaining the target battery parameters by the upper computer through analyzing the second message.
And S1114, if the first message sent by the upper computer based on the first communication protocol is not received within the first preset time, configuring the one-way communication interface as a one-way communication interface.
S1116, processing the preset battery parameters based on the second communication protocol to obtain a third message.
S1118, a third message is sent to the upper computer through the line-through interface, and the upper computer obtains preset battery parameters through analyzing the third message.
S1120, the input and output are configured based on UART communication protocol.
S1122, the first end is used for receiving a first message of the upper computer, and the first message is sent to the battery management controller through the output end; the input end is used for receiving the second message sent by the battery management controller, and the second message is sent to the upper computer through the first end.
Wherein, configure a line through interface as one-way communication interface, include: disabling the output; the input end is used for receiving a third message sent by the battery management controller, and the third message is sent to the upper computer through the first end.
If the first end does not receive the pull-up signal, the first end switches the one-wire access interface to the sleep mode.
In this embodiment, the existing one-wire interface is utilized, and the one-wire interface is configured as a two-way communication interface, so that a communication wire is prevented from being opened outside the battery pack, the one-wire interface receives a first message, and according to the verification and analysis of the first message, a target battery parameter requested by the upper computer is obtained, and then the target battery parameter is processed to obtain a second message, the second message is sent to the upper computer through the one-wire interface, and the upper computer obtains the target battery parameter through analyzing the second message. And the active reporting and the polling question and answer are realized through single-wire communication compatibility.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a communication processing device based on the line communication interface, which is used for realizing the communication processing method based on the line communication interface. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more communication processing devices based on a line-through interface provided below may be referred to the limitation of the communication processing method based on a line-through interface hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 12, there is provided a communication processing apparatus based on a line-through interface, including: a configuration module 1202, a determination module 1204, a parsing module 1206, a processing module 1208, and an output module 1210, wherein:
the configuration module 1202 is configured to configure a wire communication interface as a bidirectional communication interface after the battery is powered on; the judging module 1204 is configured to verify the first message if the first message sent by the upper computer based on the first communication protocol is received through the one-wire communication interface within a first preset time; the parsing module 1206 is configured to parse the checked first message, and determine a target battery parameter requested by the upper computer; the processing module 1208 is configured to process the target battery parameter based on the first communication protocol to obtain a second message; the output module 1210 is configured to send a second message to the upper computer through a wire-through interface, and the upper computer obtains the target battery parameter by analyzing the second message.
In one embodiment, the judging module 1204 is further configured to configure the one-wire communication interface as a one-way communication interface if the first message sent by the upper computer based on the first communication protocol is not received within the first preset time; the processing module 1208 is further configured to process the preset battery parameter based on the second communication protocol to obtain a third message; the output module 1210 is further configured to send a third message to the upper computer through a wire-through interface, where the upper computer obtains the preset battery parameter by analyzing the third message.
In one embodiment, the output module 1210 is further configured to configure a one-wire communication interface as a two-way communication interface.
In one embodiment, the one-wire interface includes a first end connected to the host computer, an input end connected to the battery management controller, and an output end connected to the battery management controller; the judging module 1204 is further configured to configure an input terminal and an output terminal based on a UART communication protocol; the first end is used for receiving a first message of the upper computer, and the first message is sent to the battery management controller through the output end; the input end is used for receiving the second message sent by the battery management controller, and the second message is sent to the upper computer through the first end.
In one embodiment, the judging module 1204 is further configured to disable the output terminal; the input end is used for receiving a third message sent by the battery management controller, and the third message is sent to the upper computer through the first end.
In one embodiment, the determining module 1204 is further configured to switch the one-wire access to the sleep mode if the first end does not receive the pull-up signal.
The modules in the communication processing device based on the line communication interface can be implemented in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 13. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store target battery parameter data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a communication processing method based on a line-through interface.
It will be appreciated by those skilled in the art that the structure shown in fig. 13 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.
Claims (10)
1. A communication processing method based on a line-through interface, the method comprising:
after the battery is electrified, the one-wire communication interface is configured as a two-way communication interface;
if a first message sent by an upper computer based on a first communication protocol is received through the line communication interface within a first preset time, checking the first message;
analyzing the first message after verification, and determining target battery parameters of the upper computer request;
Processing the target battery parameters based on a first communication protocol to obtain a second message;
and sending the second message to the upper computer through the line communication interface, and obtaining the target battery parameter by analyzing the second message by the upper computer.
2. The method according to claim 1, wherein the method further comprises:
if a first message sent by the upper computer based on a first communication protocol is not received within the first preset time, configuring the one-way interface as a one-way communication interface;
processing preset battery parameters based on a second communication protocol to obtain a third message;
and sending the third message to an upper computer through the line communication interface, and obtaining the preset battery parameters by analyzing the third message by the upper computer.
3. The method of claim 2, wherein after the step of sending the third message to the host computer via the one-wire interface, the method further comprises:
the one-wire communication interface is configured as a two-way communication interface.
4. The method of claim 2, wherein the one-wire interface comprises a first end connected to a host computer, an input end connected to a battery management controller, and an output end connected to the battery management controller;
The configuring the one-wire communication interface as a two-way communication interface includes: configuring the input and the output based on a UART communication protocol;
the first end is used for receiving a first message of the upper computer, and the first message is sent to the battery management controller through the output end; the input end is used for receiving the second message sent by the battery management controller, and the second message is sent to the upper computer through the first end.
5. The method of claim 4, wherein configuring the one-way interface as a one-way communication interface comprises:
disabling the output;
the input end is used for receiving a third message sent by the battery management controller, and the third message is sent to the upper computer through the first end.
6. The method of claim 5 or 4, wherein the one-wire-through interface is switched to sleep mode if the first end does not receive a pull-up signal.
7. A battery management system, comprising:
a battery management controller and a line-through interface connected with the battery management controller;
the battery management controller has stored a computer program which, when executed, implements the steps of the method of any one of claims 1 to 6.
8. The battery management system of claim 7, wherein the one-wire interface comprises a first end coupled to a host computer, an input end coupled to the battery management controller, and an output end coupled to the battery management controller.
9. The battery management system of claim 8 wherein the one-wire interface further comprises an external interrupt circuit, a transmit circuit, a receive circuit, and an isolation protection circuit coupled to the output terminal, the isolation protection circuit being disposed between the transmit circuit, the external interrupt circuit, the receive circuit, and the first terminal, the receive circuit being conductive when the first terminal is enabled.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310007465.9A CN116224067A (en) | 2023-01-04 | 2023-01-04 | Communication processing method based on line communication interface and battery management system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310007465.9A CN116224067A (en) | 2023-01-04 | 2023-01-04 | Communication processing method based on line communication interface and battery management system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116224067A true CN116224067A (en) | 2023-06-06 |
Family
ID=86583610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310007465.9A Pending CN116224067A (en) | 2023-01-04 | 2023-01-04 | Communication processing method based on line communication interface and battery management system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116224067A (en) |
-
2023
- 2023-01-04 CN CN202310007465.9A patent/CN116224067A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105932749B (en) | A kind of special lithium battery power supply device of garden instrument | |
TWI539720B (en) | Power battery management system with low power state auto wake-up function | |
CN109347154B (en) | Lithium battery charging and discharging drive protection system | |
TW201110502A (en) | Power supply system for power saving and method thereof | |
JP7127248B2 (en) | Battery management system, battery management method, battery pack and electric vehicle | |
WO2020249099A1 (en) | Battery pack | |
CN109358548A (en) | A kind of charging method of automotive diagnostic system, vehicle diagnosis and automotive diagnostic unit | |
WO2021083149A1 (en) | Charging method and charging system | |
CN205930591U (en) | Normal electrified carbone controller power | |
CN106787230A (en) | Wireless charging system and its intellectual water meter being made and intellectual water meter charging method | |
CN116526595A (en) | Self-balancing device of series battery pack capable of single-string independent operation and self-balancing battery cell | |
CN110380469A (en) | Electronic equipment and method of supplying power to | |
WO2021078261A1 (en) | Power supply control method, system and device | |
CN111463858B (en) | Active equalization method, equalization control unit, circuit, system and storage medium | |
WO2022006812A1 (en) | Parallel-connected battery bank wake-up control system and method | |
CN116224067A (en) | Communication processing method based on line communication interface and battery management system | |
WO2024108401A1 (en) | Battery pack parallel connection method, battery management system, battery pack, and electrical device | |
CN113687711B (en) | Terminal wake-up circuit and wake-up method | |
CN109638930B (en) | Battery charging control method and power supply system | |
CN212965358U (en) | Broken line detection circuit with load access automatic wake-up function and power bank | |
CN107171414A (en) | A kind of battery management system of low-power consumption | |
WO2023173264A1 (en) | Battery management method, apparatus, and system | |
CN206117252U (en) | Compatible cell -phone intercom power management system | |
CN113859552B (en) | Battery management system | |
CN109786879A (en) | A kind of mobile phone charging method, device, medium and 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 |