A BMS CAN and RS485 all-in-one communication interface control method and system

By introducing an all-in-one communication interface control method and system in BMS, efficient switching and data transmission of CAN and RS485 protocols are realized, the problem of insufficient communication performance in existing BMS in complex applications is solved, and the scalability and flexibility of the system are improved.

CN119788454AInactive Publication Date: 2025-04-08深圳市华芯控股有限公司
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510265267.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-04-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing BMS management and control technology is difficult to flexibly switch and optimize communication modes according to different working conditions, and realize the rational allocation of resources, which has greatly reduced the overall communication efficiency of BMS in complex applications, hindering the development of battery management technology in a smarter and more general direction.

Method used

It provides a BMS CAN and RS485 all-in-one communication interface management method and system. By receiving bus communication signals from the all-in-one interface circuits of RS485 and CAN, intelligently identify signal types, analyze and send corresponding signal data to the corresponding bus, and realize efficient switching and data transmission of two communication protocols CAN and RS485.

Benefits of technology

It realizes efficient handover and data transmission of two communication protocols CAN and RS485, meets the communication needs of different devices and systems, improves the scalability and flexibility of BMS, and improves the communication efficiency of BMS in complex applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788454A_ABST
    Figure CN119788454A_ABST
Patent Text Reader

Abstract

The present invention relates to the technical fields of battery management system communication interface, and provides a BMS CAN and RS485 all-in-one communication interface control method and system. By receiving a bus communication signal from an all-in-one interface circuit of RS485 and CAN, the signal type of the bus communication signal is intelligently identified to determine whether the bus communication signal is an RS485 signal or a CAN signal; when it is determined that the bus communication signal is an RS485 signal, the RS485 signal is correspondingly parsed to obtain RS485 signal data; when it is determined that the bus communication signal is a CAN signal, the CAN signal is correspondingly parsed to obtain CAN signal data, and when the RS485 signal data is obtained, the RS485 signal data is sent to the RS485 bus for transmission communication, and when the CAN signal data is obtained, the CAN signal data is sent to the CAN bus for transmission communication, so as to realize efficient switching and data transmission of the two communication protocols of CAN and RS485, meet the communication requirements of different devices and systems, and improve the scalability and flexibility of the BMS.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical fields of battery management system communication interface, electrical signal processing, and more particularly to a BMSCAN and RS485 all-in-one communication interface control method and system. Background Art

[0002] Traditional BMS often uses a single communication interface for data interaction. For example, the CAN (Controller Area Network) bus interface was used more often in the early days. It has the advantages of high reliability and strong real-time performance, and can meet the needs of real-time monitoring of battery packs in high-speed mobile devices such as automobiles. Many car companies use it as the first choice for BMS to communicate with the vehicle controller. However, the CAN interface exposes problems such as high cost and complex wiring in some low-speed, long-distance and node-rich industrial scenarios or small distributed energy storage scenarios. In contrast, the RS485 interface is widely used in inter-device communication in industrial automation, smart home and other fields due to its low cost, long transmission distance and ability to connect multiple nodes. However, when facing high real-time requirements and high data rate transmission, the transmission efficiency and anti-interference ability of the RS485 interface are slightly insufficient compared to the CAN bus, making it difficult to ensure the rapid and accurate transmission of battery status information. As battery application scenarios become more complex and diverse, BMS with a single communication interface can no longer be fully adapted. In some large energy storage systems, it is necessary to ensure high-speed real-time transmission of the core data of the battery pack to the main control unit (similar to the CAN advantage scenario), while taking into account the large amount of low-speed data collection and control of many peripheral auxiliary devices such as temperature sensors and power balancing modules (similar to the application field of RS485). The coexistence of different interface devices also brings compatibility problems and increases the cost of system development and maintenance. Although there are BMS control solutions for CAN and RS485 interfaces on the market, there is a lack of an efficient software system that organically integrates the two and uniformly controls them. It is difficult to flexibly switch and optimize communication modes according to different working conditions and realize the reasonable allocation of resources, which greatly reduces the overall communication efficiency of BMS in complex applications and hinders the development of battery management technology towards a smarter and more universal direction.

[0003] In summary, the existing BMS control technology for CAN and RS485 interfaces has the problem of difficulty in flexibly switching and optimizing communication modes according to different working conditions and achieving reasonable allocation of resources, which leads to a significant reduction in the overall communication efficiency of BMS in complex applications and hinders the development of battery management technology towards a smarter and more universal direction. Summary of the invention

[0004] In view of the deficiencies in the above-mentioned prior art, the present invention provides a BMS CAN and RS485 all-in-one communication interface management and control method and system to achieve efficient switching and data transmission of the two communication protocols of CAN and RS485, meet the communication requirements of different devices and systems, and improve the scalability and flexibility of BMS.

[0005] In a first aspect, the present invention provides a BMS CAN and RS485 all-in-one communication interface control method, comprising: Receiving a bus communication signal from an all-in-one interface circuit of RS485 and CAN, wherein the bus communication signal is used for battery management system communication, wherein the all-in-one interface circuit of RS485 and CAN is connected to an RS485 bus or a CAN bus, and the RS485 bus or the CAN bus connects the bus communication signal to the all-in-one interface circuit of RS485 and CAN; Intelligently identify the signal type of the bus communication signal to determine whether the bus communication signal is an RS485 signal or a CAN signal; when it is determined that the bus communication signal is an RS485 signal, correspondingly parse the RS485 signal to obtain RS485 signal data; when it is determined that the bus communication signal is a CAN signal, correspondingly parse the CAN signal to obtain CAN signal data; When the RS485 signal data is obtained, the RS485 signal data is sent to the RS485 bus for transmission communication; when the CAN signal data is obtained, the CAN signal data is sent to the CAN bus for transmission communication.

[0006] In a second aspect, the present invention provides a BMS CAN and RS485 all-in-one communication interface control system, comprising: An all-in-one interface circuit of RS485 and CAN, used for transmitting and providing bus communication signals, wherein the bus communication signals are used for communication with a battery management system, wherein the all-in-one interface circuit of RS485 and CAN is connected to an RS485 bus or a CAN bus, and the RS485 bus or the CAN bus connects the bus communication signals to the all-in-one interface circuit of RS485 and CAN; The MCU module is connected to communicate with the RS485 and CAN all-in-one interface circuit to run the above-mentioned BMS CAN and RS485 all-in-one communication interface control method.

[0007] Compared with the prior art, the present invention has the following beneficial effects: The present invention provides a BMS CAN and RS485 all-in-one communication interface control method and system, by receiving a bus communication signal from an RS485 and CAN all-in-one interface circuit, the bus communication signal is used for battery management system communication, the RS485 and CAN all-in-one interface circuit is connected to an RS485 bus or a CAN bus, the RS485 bus or the CAN bus connects the bus communication signal to the RS485 and CAN all-in-one interface circuit, and then intelligently identifies the signal type of the bus communication signal to determine whether the bus communication signal is an RS485 signal or a CAN signal, and when the bus communication signal is determined to be an RS485 signal or a CAN signal, the RS485 bus or the CAN bus connects the bus communication signal to the RS485 and CAN all-in-one interface circuit. When the S485 signal is received, the RS485 signal is analyzed accordingly to obtain RS485 signal data; when it is determined that the bus communication signal is a CAN signal, the CAN signal is analyzed accordingly to obtain CAN signal data; when the RS485 signal data is obtained, the RS485 signal data is sent to the RS485 bus for transmission and communication; when the CAN signal data is obtained, the CAN signal data is sent to the CAN bus for transmission and communication, thereby realizing efficient switching and data transmission of the two communication protocols of CAN and RS485, meeting the communication requirements of different devices and systems, and improving the scalability and flexibility of BMS. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their description are used to explain the present invention and do not constitute an improper limitation of the present invention. Some specific embodiments of the present invention will be described in detail in an exemplary and non-restrictive manner with reference to the drawings. The same reference numerals in the drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the drawings: Figure 1 It is a flow chart of a BMS CAN and RS485 all-in-one communication interface control method according to an embodiment of the present invention; Figure 2 It is a structural schematic diagram of a BMS CAN and RS485 all-in-one communication interface control system according to an embodiment of the present invention; Figure 3 It is another structural schematic diagram of the BMS CAN and RS485 all-in-one communication interface control system according to an embodiment of the present invention.

[0009] Description of reference numerals: 100. RS485 and CAN all-in-one interface; 200. Differential processing circuit; 300. Common mode suppression circuit; 400. Signal transceiver chip; 500. Surge suppression circuit; 600. Filter circuit; 101. MCU module. DETAILED DESCRIPTION

[0010] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only an embodiment of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention.

[0011] Embodiment 1 See also Figure 1-Figure 3 This embodiment provides a BMS CAN and RS485 all-in-one communication interface control method, including the following steps: S101, receiving a bus communication signal from an all-in-one interface circuit of RS485 and CAN, wherein the bus communication signal is used for battery management system communication, the all-in-one interface circuit of RS485 and CAN is connected to an RS485 bus or a CAN bus, and the RS485 bus or the CAN bus connects the bus communication signal to the all-in-one interface circuit of RS485 and CAN; S102, intelligently identify the signal type of the bus communication signal to determine whether the bus communication signal is an RS485 signal or a CAN signal; when it is determined that the bus communication signal is an RS485 signal, the RS485 signal is correspondingly parsed to obtain RS485 signal data; when it is determined that the bus communication signal is a CAN signal, the CAN signal is correspondingly parsed to obtain CAN signal data; preferably, when the RS485 signal is correspondingly parsed to obtain RS485 signal data, it may include: parsing the information content of the RS485 signal, determining the frame bar, address, frame end and CRC in the information content of the RS485 signal, to obtain the RS485 signal data. When the CAN signal is correspondingly parsed to obtain CAN signal data, it may include: parsing the information content of the CAN signal, determining the extended frame, address and data field in the information content of the RS485 signal, to obtain the RS485 signal data.

[0012] S103, when the RS485 signal data is obtained, sending the RS485 signal data to the RS485 bus for transmission communication; when the CAN signal data is obtained, sending the CAN signal data to the CAN bus for transmission communication.

[0013] It should be noted that, in the present embodiment, by receiving a bus communication signal from an all-in-one interface circuit of RS485 and CAN, the bus communication signal is used for battery management system communication, the all-in-one interface circuit of RS485 and CAN is connected to an RS485 bus or a CAN bus, the RS485 bus or the CAN bus connects the bus communication signal to the all-in-one interface circuit of RS485 and CAN, and then the signal type of the bus communication signal is intelligently identified to determine whether the bus communication signal is an RS485 signal or a CAN signal, and when it is determined that the bus communication signal is an RS485 signal When the RS485 signal is received, the RS485 signal is parsed to obtain RS485 signal data. When it is determined that the bus communication signal is a CAN signal, the CAN signal is parsed to obtain CAN signal data. When the RS485 signal data is obtained, the RS485 signal data is sent to the RS485 bus for transmission communication. When the CAN signal data is obtained, the CAN signal data is sent to the CAN bus for transmission communication, thereby realizing efficient switching and data transmission of the two communication protocols of CAN and RS485, meeting the communication requirements of different devices and systems, and improving the scalability and flexibility of BMS. Among them, in step S101, the bus communication signal from the all-in-one interface circuit of RS485 and CAN is received, and the all-in-one interface circuit of RS485 and CAN is connected to the RS485 bus or CAN bus, and these signals are used for communication of the battery management system (BMS). Since the BMS system needs to adapt the CAN and RS485 interfaces in different application scenarios, step S101 ensures that the signal can flow from two different communication buses (RS485 and CAN) into a unified interface circuit to achieve effective access to the two buses. Doing so can adapt to different environmental requirements, such as automotive high real-time monitoring (CAN) and industrial automation low-speed equipment communication (RS485). In step S102, the type of bus communication signal received is intelligently identified to determine whether it is an RS485 signal or a CAN signal. Since CAN and RS485 are two different communication protocols, and they are adaptive to different scenarios (CAN is suitable for high-speed real-time, RS485 is suitable for long-distance and multi-node devices), the intelligent identification step can ensure that the correct protocol is used when the bus communication signal is received, thereby avoiding misjudgment and communication errors, and ensuring that the system can automatically select a suitable communication protocol according to different scenarios. When the signal is determined to be an RS485 signal, it is necessary to parse the information content in the signal, especially the frame bar, address, frame tail and CRC, to extract the RS485 signal data. The RS485 signal adopts a specific protocol format, and parsing this information (such as frame bar, address, frame tail and CRC, etc.) can ensure the integrity and correctness of the data. In particular, the CRC part can be used to verify whether an error occurs in the transmission of data, thereby improving the reliability of low-speed data transmission.Through these steps, the system can extract and verify the data in the RS485 signal to ensure the accurate transmission of the signal. When the signal is determined to be a CAN signal, the system will parse the extended frame, address and data fields of the signal to extract the CAN signal data. The protocol framework of the CAN signal is relatively complex, including elements such as extended frames, address and data fields. By parsing these fields, the system can extract key data from the CAN signal. The extended frame of the CAN protocol allows data expansion, which is crucial in complex applications, especially in the environment of high-speed real-time data transmission. Parsing these specific fields can ensure that the data is accurately transmitted and meets the real-time requirements. Once the data of the RS485 or CAN signal is obtained, the system will send the corresponding data to the corresponding bus (RS485 bus or CAN bus) for communication. By sending the parsed data to the corresponding bus, the system can ensure that different types of data are transmitted through the appropriate communication path. For the RS485 bus, it is suitable for data acquisition of long-distance and multi-node devices; for the CAN bus, it can ensure efficient and real-time data transmission, thereby ensuring the efficient flow of data under different communication protocols.

[0014] It should be noted that the difference between RS485 signal parsing and CAN signal parsing reflects the characteristics and communication requirements of the two different protocols. RS485 parsing focuses on verifying the frame bar, address, frame tail and CRC in the information. These fields are used for data integrity verification and error checking to ensure data reliability in low-speed communication. CAN parsing involves more complex elements such as extended frames, addresses, and data fields, because the CAN protocol supports multiple data formats and has a high data transmission capacity, which is suitable for use in high-speed real-time systems. In this embodiment, this differentiated parsing method can adapt to the communication of different types of signals (such as RS485 signals and CAN signals) to ensure that the BMS system can work flexibly and efficiently in complex application scenarios.

[0015] In some preferred embodiments, when sending the RS485 signal data to the RS485 bus for transmission communication, it includes: controlling the all-in-one interface circuit of the RS485 and CAN to transmit the RS485 signal, so as to send the RS485 signal data to the RS485 bus for transmission communication. When sending the CAN signal data to the CAN bus for transmission communication, it includes: controlling the all-in-one interface circuit of the RS485 and CAN to transmit the CAN signal, so as to send the CAN signal data to the CAN bus for transmission communication. It should be noted that, in the present embodiment, the all-in-one interface circuit of the RS485 and CAN can allow the RS485 and CAN interfaces to coexist in the same circuit and work efficiently. Control the all-in-one interface circuit to transmit signals, and ensure that the RS485 signal or the CAN signal is sent to the RS485 bus or the CAN bus in the correct way. By controlling the all-in-one interface circuit of the RS485 and CAN, it is not only possible to support the sending of RS485 signals, but also to support the signal sending of CAN signals under the same hardware environment, thereby enhancing the compatibility of the system. In addition, by integrating the control function of signal transmission into the all-in-one interface circuit, the system design can be simplified and the hardware complexity can be reduced, which not only improves the resource utilization efficiency of the system but also reduces costs, because there is no need to configure multiple interface circuits independently for each communication protocol in hardware. Through this optimized configuration, the BMS system can flexibly handle different signal types and communication requirements while maintaining the simplicity and efficiency of the system design.

[0016] In some preferred embodiments, when the RS485 signal data is sent to the RS485 bus for transmission communication or the CAN signal data is sent to the CAN bus for transmission communication, the communication status is monitored in real time by the built-in troubleshooting and diagnostic module. When the communication status is monitored in real time by the built-in troubleshooting and diagnostic module, it includes: defining a communication protocol status bit, and when the built-in troubleshooting and diagnostic module detects that there is a fault in the communication status, querying or actively reporting the fault according to the communication protocol status bit. It should be noted that BMS is usually used for monitoring and management of battery packs, involving the communication of multiple sensors and controllers, and the stability of the system is crucial. Communication protocols (such as CAN and RS485) may cause communication abnormalities due to noise, interference, hardware failure, etc. during operation. By monitoring the communication status in real time through the built-in troubleshooting and diagnostic module, the health of the communication link can be ensured, and possible communication failures can be discovered and responded to in a timely manner, thereby effectively improving the communication reliability of the system. The communication protocol status bit is a flag bit used to identify the current state of the communication protocol. When a communication failure is detected, the system queries the status bit to understand the health of the current communication and performs subsequent fault processing based on the information. The definition and use of status bits can simplify the fault detection process, allowing the system to quickly and effectively determine the type of fault and take appropriate measures. In addition to real-time monitoring and querying of status bits, the active fault reporting function means that when a communication failure occurs, the system will actively report the problem to the main control unit or operation and maintenance personnel. This active reporting mechanism can ensure that faults are responded to in a timely manner, especially in remote monitoring systems, which can reduce manual intervention and improve the automation level of the system.

[0017] In some preferred embodiments, when sending the RS485 signal data to the RS485 bus for transmission communication or sending the CAN signal data to the CAN bus for transmission communication, the RS485 signal data or the CAN signal data sent are encrypted. It should be noted that, in the present embodiment, by encrypting the RS485 signal data or the CAN signal data sent, the information security of communication can be improved.

[0018] Embodiment 2 See also Figure 1-Figure 3 This embodiment provides a BMS CAN and RS485 all-in-one communication interface control system, including: An all-in-one interface circuit of RS485 and CAN, used for transmitting and providing bus communication signals, wherein the bus communication signals are used for communication with a battery management system, wherein the all-in-one interface circuit of RS485 and CAN is connected to an RS485 bus or a CAN bus, and the RS485 bus or the CAN bus connects the bus communication signals to the all-in-one interface circuit of RS485 and CAN; The MCU module is connected to communicate with the RS485 and CAN all-in-one interface circuit to run the above-mentioned BMS CAN and RS485 all-in-one communication interface control method.

[0019] Among them, the all-in-one interface circuit of RS485 and CAN may include: an all-in-one interface of RS485 and CAN, a differential processing circuit, a common mode suppression circuit and a signal transceiver chip; the all-in-one interface of RS485 and CAN is used to access the RS485 bus or the CAN bus to obtain the bus communication signal required for the battery management system communication; the differential processing circuit is electrically connected to the all-in-one interface of RS485 and CAN, and is used to perform differential processing on the bus communication signal required for the battery management system communication to obtain the differential signal of the bus communication signal; the common mode suppression circuit is electrically connected to the differential processing circuit, and is used to perform common mode suppression on the differential signal of the bus communication signal to obtain the bus communication signal after common mode suppression; the signal transceiver chip is electrically connected to the common mode suppression circuit, and is used to transmit and receive the bus communication signal after common mode suppression, and the bus communication signal after common mode suppression is the bus communication signal from the all-in-one interface circuit of RS485 and CAN.

[0020] It should be noted that, in the present embodiment, the all-in-one interface of RS485 and CAN can access RS485 bus or CAN bus, provide access to different signal sources, and reduce the demand for multiple independent communication interfaces. In addition, RS485 and CAN bus use differential signals to communicate, and the differential processing circuit performs differential processing on the signal received by the all-in-one interface. Through differential processing, common mode noise can be removed, and the signal can be made more anti-interference. Common mode signal refers to the same part of the interference signal on two signal lines during signal transmission. Common mode suppression circuit further purifies the signal, improves the quality of the signal, and reduces the error caused by common mode noise by suppressing common mode noise on the differential signal. The signal transceiver chip transmits and receives the bus communication signal after common mode suppression, and the bus communication signal after common mode suppression is the bus communication signal from the all-in-one interface circuit of RS485 and CAN, which is input into the MCU module. The MCU module runs any one of the BMS CAN and RS485 all-in-one communication interface control methods in the above embodiments, identifies the bus communication signal from the all-in-one interface circuit of RS485 and CAN, and determines whether it is an RS485 signal or a CAN signal. When it is determined that the bus communication signal is an RS485 signal, the RS485 signal is analyzed to obtain RS485 signal data; when it is determined that the bus communication signal is a CAN signal, the CAN signal is analyzed to obtain CAN signal data, and when the RS485 signal data is obtained, the RS485 signal data is sent to the RS485 bus for transmission communication, and when the CAN signal data is obtained, the CAN signal data is sent to the CAN bus for transmission communication, so as to realize efficient switching and data transmission of the two communication protocols of CAN and RS485, meet the communication requirements of different devices and systems, and improve the scalability and flexibility of the BMS. It is understandable that the traditional BMS needs to use RS485 and CAN interfaces separately, resulting in the arrangement of multiple communication lines and system complexity. In this embodiment, by integrating these two communication interfaces into an all-in-one interface, reducing the number of interfaces and simplifying wiring, the complexity of the system structure of the battery management system is reduced. By reducing the number of wiring and the complexity of the interface, problems such as poor contact and line failure that may occur in the battery management system can be reduced, thereby effectively reducing the failure rate of the system. The design of the all-in-one interface reduces the number of hardware devices, thereby reducing material and manufacturing costs. In addition, the automatic recognition capability of the RS485 and CAN interfaces enables the battery management system to select the appropriate communication protocol according to different needs, thereby improving the adaptability and scalability of the system.

[0021] In some preferred embodiments, the RS485 and CAN all-in-one interface circuit further includes: a surge suppression circuit; the surge suppression circuit is electrically connected to the RS485 and CAN all-in-one interface, and is used to suppress the surge signal when a surge signal appears in the bus communication signal required for the battery management system communication, and obtain the bus communication signal after surge suppression and output it to the differential processing circuit. It should be noted that in the communication interface of the battery management system (BMS), surge signals (such as voltage spikes or sharp increases in instantaneous current) are usually caused by external electromagnetic interference or emergencies inside the system (such as electrical switch operation, grounding problems, etc.). Such surge signals may damage sensitive electronic equipment, cause system failures or unstable communications. In this embodiment, the surge suppression circuit can effectively prevent interference to the system caused by external or internal surge signals, thereby improving the stability of the battery management system (BMS). Especially in harsh working environments or industrial applications, electrical equipment is often exposed to the risk of surges or high voltage surges, and the surge suppression circuit can provide additional protection for the system. When the anti-interference capability has been improved by the differential processing circuit and the common-mode suppression circuit, the surge suppression circuit can further enhance the system's ability to resist sudden voltage fluctuations, enabling the entire communication link to work reliably in more complex and unstable electrical environments.

[0022] In some preferred embodiments, the RS485 and CAN all-in-one interface circuit further includes: a filter circuit; the filter circuit is electrically connected to the common mode suppression circuit, and is used to filter the bus communication signal after the common mode suppression, and the bus communication signal after the common mode suppression is filtered and then transmitted to the signal transceiver chip for transceiver processing. It should be noted that, when the anti-interference ability of the system has been improved by means of all-in-one interface, differential processing, common mode suppression circuit and surge suppression circuit, the filter circuit can further improve the signal quality of the system. Although the common mode suppression circuit can effectively remove the common mode noise in the signal, high-frequency noise, harmonics and other electrical interference may still exist. The filter circuit performs additional cleaning of the signal at this stage to remove these unnecessary high-frequency components to ensure that the signal is purer. The cleaned signal is transmitted to the signal transceiver chip, which is sent by the signal transceiver chip to the MCU module for identification and processing, which can greatly reduce the misidentification errors caused by noise or signal fluctuations, thereby improving the communication stability and accuracy of the system. In addition, although the surge suppression circuit can handle most of the sudden electrical interference, the filter circuit still provides additional noise suppression capabilities for the system. It can enhance the system's anti-interference ability in complex electromagnetic environments by removing high-frequency signals and stray noise.

[0023] In some preferred embodiments, when the RS485 and CAN all-in-one interface circuit transmits the RS485 signal or the CAN signal, it includes: the signal transceiver chip receives the RS485 signal or the CAN signal according to the transmission control instruction of the NCU module and then sends it out, and the sent RS485 signal or the CAN signal is successively transmitted to the RS485 and CAN all-in-one interface through the common mode suppression circuit and the differential processing circuit, and is output through the RS485 and CAN all-in-one interface to send the CAN signal data or the RS485 signal data to the corresponding CAN bus or the RS485 bus for transmission communication. Preferably, if noise appears before the RS485 signal or the CAN signal passes through the common mode suppression circuit, the noise is filtered out by the filter circuit, and then the RS485 signal or the CAN signal passes through the common mode suppression circuit again. Preferably, if a surge occurs before the RS485 signal or the CAN signal passes through the all-in-one interface of the RS485 and CAN, the surge that occurs is suppressed by the surge suppression circuit, and then the RS485 signal or the CAN signal passes through the all-in-one interface of the RS485 and CAN. It should be noted that the RS485 signal or the CAN signal is output after passing through the common mode suppression circuit and the differential processing circuit, ensuring that the quality of the signal is higher when passing through the all-in-one interface, which can effectively reduce the error rate of the system and improve the reliability of communication. Whether it is RS485 or CAN signal, the system can handle it flexibly to avoid compatibility problems caused by interface restrictions. In this embodiment, by ensuring that the signal is accurately processed before the final output, the immunity of the system to electrical interference is further improved. Whether it is common mode noise from the environment or sudden surge interference, the signal will be fully cleaned and protected, thereby ensuring the reliability of the system in a complex environment.

[0024] In some preferred embodiments, the all-in-one interface of RS485 and CAN is an all-in-one interface module J1, and the all-in-one interface module J1 is used to access the RS485 bus or the CAN bus. It should be noted that in this embodiment, the all-in-one interface module J1 can support two different communication protocols (RS485 and CAN). This enables the system to flexibly respond to different communication requirements, and both RS485 bus devices and CAN bus devices can be easily accessed into the system. The all-in-one interface module J1 integrates the RS485 and CAN interfaces into the same module, simplifies the hardware design, reduces the number of hardware components, and thus reduces the complexity, volume and cost of the overall system.

[0025] In some preferred embodiments, the differential processing circuit includes a resistor R1, a resistor R2 and a resistor R3; one end of the resistor R1 is connected to the RS485 and CAN multi-in-one interface and one end of the resistor R2, and the other end of the resistor R1 is connected to the common mode suppression circuit; the other end of the resistor R2 is connected to the RS485 and CAN multi-in-one interface and one end of the resistor R3, and the other end of the resistor R3 is connected to the common mode suppression circuit. It should be noted that the resistor R2 can perform differential processing on the signal through the connection path of the resistors R1 and R3, so that the signal can pass through the circuit better and be subsequently processed. The resistor R3 forms a differential signal processing network with the resistors R1 and R2. Through the joint action of these resistors, the signal can be finely differentially processed, thereby reducing the interference caused by noise and common mode signals. The resistors R1, R2 and R3 play the role of impedance matching and current limiting in differential signal processing, ensuring that the transmission of the signal is not affected by reflection and distortion. Through the reasonable setting of these resistors, the amplitude, impedance and transmission characteristics of the signal can be effectively controlled, so that the signal can maintain high quality during the transmission process. In addition, the design of resistors R1, R2 and R3 takes into account the suppression of common-mode signals. They work in conjunction with the common-mode suppression circuit to ensure that the signal after passing through the common-mode suppression circuit will not be distorted by common-mode noise, thereby maintaining the differential characteristics of the signal. In this way, after the dual processing of the common-mode suppression circuit and the differential processing circuit, the quality of the signal is guaranteed. In addition, in this embodiment, through the simple configuration of resistors R1, R2 and R3, the system design can be made concise and easy to implement, while reducing the dependence on expensive processing circuits and reducing costs.

[0026] In some preferred embodiments, the surge suppression circuit includes a bidirectional breakdown diode D1, a bidirectional breakdown diode D2 and a capacitor C1; one anode of the bidirectional breakdown diode D1 is connected to the RS485 and CAN all-in-one interface, and the other anode of the bidirectional breakdown diode D1 is connected to an anode of the bidirectional breakdown diode D2 and one end of the capacitor C1; the other anode of the bidirectional breakdown diode D2 is connected to the RS485 and CAN all-in-one interface, and the other end of the capacitor C1 is connected to the ground terminal of the RS485 and CAN all-in-one interface and the ground. It should be noted that the bidirectional breakdown diodes (D1 and D2): the main function of these diodes is to quickly conduct when the voltage exceeds the predetermined breakdown voltage, absorb and shunt the energy of the surge signal. Bidirectional diodes can work in both directions at the same time, so they can protect forward and reverse surge voltages at the same time. One anode of D1 is connected to the RS485 and CAN all-in-one interface. When a high voltage surge occurs in the RS485 and CAN all-in-one interface, D1 will break down and conduct to protect the circuit from the influence of excessive voltage. The other anode of D1 is connected to an anode of D2 and to one end of capacitor C1. The function of D1 is to limit and shunt the current when the surge signal is transmitted, and guide the surge voltage to D2 and capacitor C1. The other anode of D2 is connected to the RS485 and CAN all-in-one interface. When the surge voltage appears, D2 will quickly turn on and guide the surge signal to the ground wire to prevent the surge signal from affecting the normal communication of the system. Capacitor C1 is connected between D1 and D2 and connected to the ground wire. Capacitor C1 can store a certain amount of electrical energy at the moment of surge voltage and release it quickly, thereby smoothing the voltage fluctuation. By cooperating with D1 and D2, C1 helps to suppress the amplitude of the surge voltage, so that the voltage returns to the normal working range and prevents damage to the circuit. If the surge signal is not suppressed, it may cause circuit damage, component burning, and even system failure. The design of bidirectional breakdown diodes D1, D2 and capacitor C1 can effectively absorb and shunt surge current, prevent it from being transmitted to sensitive circuits and interfaces, and protect the overall safety of the system.

[0027] In some preferred embodiments, the common mode suppression circuit includes a transformer T1; one side of the transformer T1 is connected to the differential processing circuit, and the other side of the transformer T1 is connected to the signal transceiver chip; the transformer T1 is used to perform common mode suppression on the differential signal of the bus communication signal to obtain the bus communication signal after common mode suppression. It should be noted that the windings on both sides of the transformer T1 transmit the signal from one side to the other side through electromagnetic induction, suppress the common mode part in the differential signal, and keep the useful part of the differential signal unchanged, thereby removing the common mode noise and purifying the signal. The input end of the transformer T1 receives a signal from the differential processing circuit. At this time, the signal may contain common mode noise (that is, the noise voltage of the two signal lines is the same). The transformer T1 receives the signal through its primary winding. The output end of the transformer T1 is connected to the signal transceiver chip. The transformer T1 transmits the signal at the input end to the output end through electromagnetic coupling. In this process, the transformer can suppress or remove the common mode component through the action of the magnetic field, while the differential signal (positive and negative voltage difference) can still be effectively transmitted through the transformer. In this way, the common mode components in the signal are effectively removed, and the output signal only retains the valid differential signal, which is crucial for RS485 and CAN protocols because both communication protocols rely on differential signals for efficient and interference-resistant communication.

[0028] In some further preferred embodiments, the filter circuit includes capacitor C2 and capacitor C3; one end of capacitor C2 is connected to the common mode suppression circuit and the signal transceiver chip, and the other end of capacitor C2 is grounded; one end of capacitor C3 is connected to the common mode suppression circuit and the signal transceiver chip, and the other end of capacitor C3 is grounded. It should be noted that in this embodiment, after the common mode noise is removed by the common mode suppression circuit, the signal after common mode suppression may still contain certain high-frequency interference or noise, which may come from the power supply, external equipment or electrical interference inside the system. Capacitors C2 and C3 filter the high-frequency components in the signal. When high-frequency noise appears in the signal, these high-frequency signals will be absorbed and guided to the ground line, thereby reducing the impact of noise on the signal. Capacitors C2 and C3 play different roles for different frequency components in the signal. They provide a low impedance path so that high-frequency signals (such as high-frequency electromagnetic interference) flow into the ground, thereby preventing these noise signals from affecting the subsequent signal recognition and processing process. In this embodiment, by using capacitors C2 and C3 as filter elements, the design is simpler and more economical than other complex filtering schemes. This filtering scheme can achieve effective noise suppression at a low cost, reducing design complexity and system cost.

[0029] In some further preferred embodiments, the signal transceiver chip includes a CAN signal transceiver chip U1 and an RS485 signal transceiver chip U2; the MCU module may include a CAN control MCU and an RS485 control MCU; the CAN signal transceiver chip U1 is connected to the CAN control MCU, and the RS485 signal transceiver chip U2 is connected to the RS485 control MCU; the CAN signal transceiver chip U1 is connected to the filtering circuit and the common mode suppression circuit, and the RS485 signal transceiver chip U2 is connected to the filtering circuit and the common mode suppression circuit; the CAN signal transceiver chip U1 and the RS485 signal transceiver chip U2 are used to receive the bus communication signal after the common mode suppression and transmit it to the CAN control MCU and the RS485 control MCU, and the CAN control MCU and the RS485 control MCU control and process the received bus communication signal after the common mode suppression according to the BMSCAN and RS485 all-in-one communication interface control method in Example 1. It should be noted that the bus communication signal enters the circuit through the all-in-one interface of RS485 and CAN. The signal may be an RS485 signal or a CAN signal. After the signal is processed by the filtering circuit and the common mode suppression circuit, it enters the CAN signal transceiver chip U1 and the RS485 signal transceiver chip U2. The CAN signal transceiver chip U1 and the RS485 signal transceiver chip U2 are respectively connected to the CAN control MCU (such as the MCU connected to the CAN_RX and CAN_TX pins in the CAN signal transceiver chip U1) and the RS485 control MCU (such as the MCU connected to the 485_RX and 485_TX pins in the RS485 signal transceiver chip U2), and are responsible for receiving the signal after common mode suppression and filtering from the all-in-one interface. The received signal will be transmitted to the corresponding MCU for further processing. The MCU analyzes the characteristics of the signal (such as level, waveform, etc.) to identify whether it is an RS485 signal or a CAN signal. In this embodiment, through the cooperation of the CAN signal transceiver chip, the RS485 signal transceiver chip and the respective control MCUs, it is possible to automatically identify whether the received signal is a CAN signal or an RS485 signal, thereby reducing the complexity of the system without the need for intervention or manual switching of external devices. The control MCU can efficiently process signal recognition and control the corresponding signal transceiver chip to output signals based on the recognized signal type. This ensures stable and accurate system communication and can adapt to different communication protocols. Filtered and common-mode suppressed signals can provide clearer signal output, reduce the impact of noise and common-mode interference, and thus improve the system's anti-interference ability and communication stability.

[0030] It should be pointed out that the above embodiments are only preferred specific implementation modes of the present invention, and the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention. The protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A BMS CAN and RS485 all-in-one communication interface control method, characterized in that: include: Receiving a bus communication signal from an all-in-one interface circuit of RS485 and CAN, wherein the bus communication signal is used for battery management system communication, wherein the all-in-one interface circuit of RS485 and CAN is connected to an RS485 bus or a CAN bus, and the RS485 bus or the CAN bus connects the bus communication signal to the all-in-one interface circuit of RS485 and CAN; Intelligently identify the signal type of the bus communication signal to determine whether the bus communication signal is an RS485 signal or a CAN signal; when it is determined that the bus communication signal is an RS485 signal, correspondingly parse the RS485 signal to obtain RS485 signal data; when it is determined that the bus communication signal is a CAN signal, correspondingly parse the CAN signal to obtain CAN signal data; When the RS485 signal data is obtained, the RS485 signal data is sent to the RS485 bus for transmission communication; when the CAN signal data is obtained, the CAN signal data is sent to the CAN bus for transmission communication.

2. The BMS CAN and RS485 all-in-one communication interface control method according to claim 1, characterized in that: When the RS485 signal is parsed to obtain RS485 signal data, it includes: parsing the information content of the RS485 signal, judging the frame bar, address, frame tail and CRC in the information content of the RS485 signal, so as to obtain the RS485 signal data.

3. The BMS CAN and RS485 all-in-one communication interface control method according to claim 1, characterized in that: When the CAN signal is parsed to obtain the CAN signal data, it includes: parsing the information content of the CAN signal, determining the extended frame, address and data field in the information content of the RS485 signal, so as to obtain the RS485 signal data.

4. The BMS CAN and RS485 all-in-one communication interface control method according to claim 1, characterized in that: When sending the RS485 signal data to the RS485 bus for transmission communication, it includes: controlling the all-in-one interface circuit of RS485 and CAN to transmit the RS485 signal, so as to send the RS485 signal data to the RS485 bus for transmission communication.

5. The BMS CAN and RS485 all-in-one communication interface control method according to claim 1, characterized in that: When the CAN signal data is sent to the CAN bus for transmission communication, it includes: controlling the RS485 and CAN all-in-one interface circuit to transmit the CAN signal, so as to send the CAN signal data to the CAN bus for transmission communication.

6. The BMS CAN and RS485 all-in-one communication interface control method according to any one of claims 1 to 5, characterized in that: When the RS485 signal data is sent to the RS485 bus for transmission communication or the CAN signal data is sent to the CAN bus for transmission communication, the communication status is monitored in real time through the built-in fault troubleshooting and diagnosis module.

7. The BMS CAN and RS485 all-in-one communication interface control method according to claim 6, characterized in that: When the communication status is monitored in real time through the built-in fault detection and diagnosis module, it includes: defining a communication protocol status bit, and when the built-in fault detection and diagnosis module detects that there is a fault in the communication status, querying or actively reporting the fault according to the communication protocol status bit.

8. The BMS CAN and RS485 all-in-one communication interface control method according to any one of claims 1 to 5, characterized in that: When the RS485 signal data is sent to the RS485 bus for transmission communication or when the CAN signal data is sent to the CAN bus for transmission communication, the sent RS485 signal data or the CAN signal data is encrypted.

9. The BMS CAN and RS485 all-in-one communication interface control method according to any one of claims 1 to 5, characterized in that: The all-in-one interface circuit of RS485 and CAN includes: an all-in-one interface of RS485 and CAN, a differential processing circuit, a common mode suppression circuit and a signal transceiver chip; the all-in-one interface of RS485 and CAN is used to access the RS485 bus or the CAN bus to obtain the bus communication signal required for the battery management system communication; the differential processing circuit is electrically connected to the all-in-one interface of RS485 and CAN, and is used to perform differential processing on the bus communication signal required for the battery management system communication to obtain the differential signal of the bus communication signal; the common mode suppression circuit is electrically connected to the differential processing circuit, and is used to perform common mode suppression on the differential signal of the bus communication signal to obtain the bus communication signal after common mode suppression; the signal transceiver chip is electrically connected to the common mode suppression circuit, and is used to transmit and receive the bus communication signal after common mode suppression, and the bus communication signal after common mode suppression is the bus communication signal from the all-in-one interface circuit of RS485 and CAN.

10. A BMS CAN and RS485 all-in-one communication interface control system, characterized in that: include: An all-in-one interface circuit of RS485 and CAN, used for transmitting and providing bus communication signals, wherein the bus communication signals are used for communication with a battery management system, wherein the all-in-one interface circuit of RS485 and CAN is connected to an RS485 bus or a CAN bus, and the RS485 bus or the CAN bus connects the bus communication signals to the all-in-one interface circuit of RS485 and CAN; The MCU module is connected and communicated with the all-in-one interface circuit of RS485 and CAN, and runs the BMS CAN and RS485 all-in-one communication interface control method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Signal conversion device of all-in-one serial bus connector

    CN101782879A

  • Automobile CAN (Controller Area Network) bus adapter circuit and method thereof

    CN102490669A

  • Bus control system and method supporting multiple protocols

    CN112804128A

  • Communication mistake proofing method based on CAN and RS485 bus two-in-one BMS protocol

    CN118611828A

  • Aircraft engineering simulator heterogeneous peripheral adaptive conversion device and method

    CN119420820A