BMS test system and method

By refining the BMS testing system and designing its functional modules, the problem of low testing efficiency in BMS software was solved, and automated test scheme configuration and data collection were achieved, thus improving testing efficiency and accuracy.

CN118916261APending Publication Date: 2024-11-08SHENZHEN CLOU ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410864199.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-30
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The low efficiency of BMS software testing is mainly due to the difficulty in quickly discovering and fixing software defects caused by human factors.

Method used

A BMS testing system is adopted, which includes a fine division of application layer, communication interface layer, protocol layer, driver layer and presentation layer. It connects general test motherboard unit, network multi-serial port communication unit and battery simulation unit through switch to realize automatic configuration of test scheme and data acquisition, support simulated battery management and device control, and provide permission management and operation status monitoring.

Benefits of technology

It improves the efficiency of BMS software testing, reduces testing time, and enhances the automation and accuracy of the testing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916261A_ABST
    Figure CN118916261A_ABST
Patent Text Reader

Abstract

The invention provides a BMS test system and method. The BMS test system comprises an application layer, a communication interface layer, a protocol layer, a driving layer and a display layer. The application layer is used for configuring a test scheme according to information of a to-be-tested BMS product and sending the test scheme to the switch through the communication interface layer and the protocol layer, and the switch obtains the test scheme and sends the test scheme to the to-be-tested BMS product; the battery simulation unit obtains the test scheme from the switch and sends the test scheme to the BMS product to be tested; meanwhile, the application layer is also used for receiving sampling information of the BMS product to be tested through the communication interface layer and the protocol layer; the driving layer is used for performing driving control on the general test mainboard unit; and the display layer is used for realizing interaction with a user and displaying operation state monitoring information. The BMS test system is divided into the application layer, the communication interface layer, the protocol layer, the driving layer and the display layer, and the test functions are finely divided, so that the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of BMS testing, and in particular relates to a BMS testing system and method. Background Art

[0002] In the process of BMS testing, it is necessary to develop BMS test software. In the process of BMS software development, due to the existence of human factors, software defects are inevitable. In order to find out the defects in the software and ensure that the software meets the relevant functional requirements, the software needs to be tested. For the testing of software functions, the BMS software needs to be run before testing can be performed. The entire testing process takes a lot of time and is not efficient. Summary of the invention

[0003] In order to overcome the above technical defects, the present invention provides a BMS testing system and method, which can solve the problem of low efficiency of BMS software testing operation.

[0004] In order to solve the above problems, the present invention adopts the following solutions:

[0005] A BMS test system, the BMS test system is connected to a switch, the switch is respectively connected to a universal test mainboard unit and a network multi-serial port communication unit, the network multi-serial port communication unit is connected to a battery simulation unit, the universal test mainboard unit and the battery simulation unit are connected to a BMS product to be tested;

[0006] The BMS test system includes: an application layer, a communication interface layer, a protocol layer, a driver layer and a display layer;

[0007] The application layer is used to configure the test plan according to the information of the BMS product to be tested, and send it to the switch through the communication interface layer and the protocol layer; the universal test mainboard unit obtains the test plan from the switch and sends it to the BMS product to be tested; the battery simulation unit obtains the test plan from the switch and sends it to the BMS product to be tested; at the same time, the application layer is also used to receive sampling information of the BMS product to be tested through the communication interface layer and the protocol layer;

[0008] The driver layer is used to drive and control the universal test mainboard unit;

[0009] The presentation layer is used to implement interaction with users and display operation status monitoring information.

[0010] As a further improvement of the present invention, the application layer includes: a product information management unit, a test scheme management unit, a simulated battery management unit and a simulated device management unit;

[0011] The product information management unit stores project information of the BMS product to be tested, and the project information stores different product information;

[0012] The test scheme management unit configures the test items based on the project information and the product information to construct a test scheme;

[0013] The simulated battery management unit is used to configure communication parameters and configure test parameters of the simulated battery unit;

[0014] The simulation device management unit is used to manage the universal test mainboard unit and control the battery simulation unit.

[0015] As a further improvement of the present invention, managing the universal test mainboard unit includes: upgrading, maintaining, and program managing the universal test mainboard unit.

[0016] As a further improvement of the present invention, the application layer further includes: a permission management unit and a system operation status management unit;

[0017] The authority management unit is used to manage the authority of the user;

[0018] The system operation status management unit is used to receive and display the operation status information of the BMS product to be tested.

[0019] As a further improvement of the present invention, the communication interface layer includes: a serial communication interface, a client mode interface group, a TCP server mode interface and an SFTP file transfer interface;

[0020] The serial communication interface communicates with the battery simulation unit through the network multi-serial communication unit to transmit the test scheme and the test parameters;

[0021] The client mode interface group is used to send data to the BMS product to be tested;

[0022] The TCP server mode interface is used to receive data for testing BMS products;

[0023] The Sftp file transfer interface is used to upgrade the network of the BMS product to be tested.

[0024] As a further improvement of the present invention, the client mode interface group includes: a Tcp client mode interface and a Udp client mode interface;

[0025] The Tcp client mode interface is used to connect to the network port of the BMS product to be tested;

[0026] The Udp client mode interface is used to connect to the network interface of the network multi-serial port communication unit.

[0027] As a further improvement of the present invention, the protocol layer includes: an OOP object-oriented protocol unit and a Modbus protocol unit;

[0028] The OOP object-oriented protocol unit is used to provide an OOP object-oriented protocol when communicating at the communication interface layer;

[0029] The Modbus protocol unit is used to provide the Modbus protocol when communicating at the communication interface layer.

[0030] As a further improvement of the present invention, the driving layer includes: a DC power supply unit, an external time base source;

[0031] The DC power supply unit is connected to the universal test mainboard unit to provide working power;

[0032] The external time base source is connected to the universal test mainboard unit to provide a reference time frequency.

[0033] The present invention also provides a BMS testing method, which is used in the above-mentioned BMS testing system, comprising the steps of:

[0034] Connect the BMS product to be tested;

[0035] If the connection is successful, the test plan is configured and loaded into the BMS product to be tested;

[0036] After the BMS product to be tested completes the test plan, a test conclusion report is generated.

[0037] As a further improvement of the present invention, the configuration scheme includes: controlling the simulated battery unit to output test parameters for collection by the BMS product to be tested;

[0038] Comparing the sampling information with the configuration scheme;

[0039] If they are consistent, the test conclusion report is generated.

[0040] Compared with the prior art, the present invention has the following beneficial effects: the present invention divides the BMS test system into an application layer, a communication interface layer, a protocol layer, a driver layer and a display layer, and performs a fine division of the test functions, thereby improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The specific embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings, wherein:

[0042] Figure 1This is a connection diagram of the BMS test system described in Example 1 during use;

[0043] Figure 2 A schematic diagram of the overall architecture of the BMS test system described in Example 1;

[0044] Figure 3 This is a schematic diagram of the structure of the application layer described in Example 1;

[0045] Figure 4 The process of the BMS test method described in Example 2 Figure 1 ;

[0046] Figure 5 The process of the BMS test method described in Example 2 Figure 2 ;

[0047] Figure 6 The use process of the BMS test method described in Example 2 Figure 1 ;

[0048] Figure 7 The use process of the BMS test method described in Example 2 Figure 2 .

[0049] Description of reference numerals:

[0050] 1. BMS test system; 11. Application layer; 111. Product information management unit; 112. Test plan management unit; 113. Simulated battery management unit; 114. Simulated device management unit; 115. Permission management unit; 116. System operation status management unit; 12. Communication interface layer; 121. Serial communication interface; 122. Client mode interface group; 1221. Tcp client mode interface; 1222. Udp client mode interface; 123. TCP server mode interface; 124. Sftp file transfer interface; 13. Protocol layer; 131. OOP object-oriented protocol unit; 132. Modbus protocol unit; 14. Driver layer; 141. DC power supply unit; 142. External time base source; 15. Display layer; 16. Data persistence layer; 17. Database; 2. Universal test motherboard unit; 3. Network multi-serial communication unit; 4. Battery simulation unit; 5. BMS products to be tested; 6. Switch. DETAILED DESCRIPTION

[0051] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0052] Example 1

[0053] This embodiment discloses a BMS test system. Figure 1 and Figure 2 As shown, the BMS test system 1 is connected to a switch 6, which is respectively connected to the universal test mainboard unit and the network multi-serial port communication unit 3, the network multi-serial port communication unit 3 is connected to the battery simulation unit 4, and the universal test mainboard unit and the battery simulation unit 4 are connected to the BMS product 5 to be tested; the BMS test system 1 includes: an application layer 11, a communication interface layer 12, a protocol layer 13, a driver layer 14 and a display layer 15; the application layer 11 is used to configure the test plan according to the information of the BMS product 5 to be tested, and send it to the switch 6 through the communication interface layer 12 and the protocol layer 13, the universal test mainboard unit obtains the test plan from the switch 6 and sends it to the BMS product 5 to be tested; the battery simulation unit 4 obtains the test plan from the switch 6 and sends it to the BMS product 5 to be tested; at the same time, the application layer 11 is also used to receive the sampling information of the BMS product 5 to be tested through the communication interface layer 12 and the protocol layer 13; the driver layer 14 is used to drive and control the universal test mainboard unit; the display layer 15 is used to realize interaction with the user and display the operation status monitoring information.

[0054] like Figure 3 As shown, the application layer 11 includes: a product information management unit 111 , a test scheme management unit 112 , a simulated battery management unit 113 and a simulated device management unit 114 .

[0055] The product information management unit 111 stores the project information of the BMS product 5 to be tested. The project information stores different product information. For example, in a certain R&D project, multiple products are included. During specific use, when the user switches the project information, the product information is also switched synchronously accordingly.

[0056] The test plan management unit 112 configures the test items based on the project information and product information to construct a test plan. Specifically, the test plan management unit 112 has the function of importing and exporting files. During specific use, the user can export the test plan to the local XML through the test plan management unit 112, or the user has already made the relevant test plan offline. At this time, it can also be imported through the test plan management unit 112. Based on this, there are more ways to configure test plans, which makes the testing process more flexible. At the same time, the test plan management unit 112 also has the function of importing and exporting event configuration table Excel and exporting database 17.

[0057] The simulated battery management unit 113 is used to configure communication parameters and test parameters of the simulated battery cells. The test parameters include: the number, address, channel, baud rate, etc. of the battery simulation unit 4; collecting and setting information such as the voltage, temperature, current, etc. of the simulated battery cells; and addressing and synchronizing the simulated battery cells 4.

[0058] The simulation device management unit 114 is used to manage the universal test mainboard unit and control the battery simulation unit 4. The management of the universal test mainboard unit includes: upgrading, maintaining, and managing the scheme of the universal test mainboard unit. Specifically, through the simulation device management unit 114, the management, maintenance, upgrading, scheme management, DIDO state management, and external device state of the universal test mainboard unit can be realized. The simulation device management unit 114 mainly performs RS232 maintenance, RS485, DIDO configuration control, AO state input and output, and PWM capture on the universal test mainboard. In addition, the simulation device management unit 114 is also used to simulate the device using the serial port.

[0059] Furthermore, the application layer 11 also includes: a permission management unit 115 and a system operation status management unit 116; the permission management unit 115 is used to manage user permissions. For example, based on the permission management unit 115, the administrator can add user permissions, delete user permissions, query user permissions, modify user permissions, etc. At the same time, the application layer 11 also provides a screening function. The administrator can filter users by user name and role, and use paging processing to display user information, which is convenient for the administrator to manage users; the system operation status management unit 116 is used to receive and display the operation status information of the BMS product 5 to be tested, mainly including product information, alarm protection status information, gate status, balance status, cluster voltage, cluster current, SOC, SOH, chargeable capacity, dischargeable capacity, voltage and temperature extremes, etc. The system operation status management unit 116 can be implemented using a display screen.

[0060] The communication interface layer 12 includes: a serial communication interface 121 AsynSerialPort, a client mode interface group 122, a tcp server mode interface 123 and a Sftp file transfer interface 124.

[0061] The serial port communication interface 121AsynSerialPort communicates with the battery simulation unit 4 through the network multi-serial port communication unit 3 to transmit the test plan and test parameters. Specifically, the serial port communication interface 121AsynSerialPort is mainly used to connect the serial port of the network multi-serial port communication unit 3, and operate the battery simulation unit 4 connected to the network multi-serial port communication unit 3 through the serial port of the network multi-serial port communication unit 3 to perform parameter setting, voltage and temperature adjustment, upgrade and other operations on the battery simulation unit 4.

[0062] The TCP server mode interface 123 is used to receive data for testing the BMS product, establish a monitoring channel, and thus monitor the data reported by the tested product.

[0063] The client mode interface group 122 is used to send data to the BMS product 5 to be tested; the client mode interface group 122 includes: a Tcp client mode interface 1221 and a Udp client mode interface 1222; the Tcp client mode interface 1221 is used to connect to the network port of the BMS product 5 to be tested, and operate the BMS product 5 to be tested using the communication protocol; the Udp client mode interface 1222 is used to connect to the network interface of the network multi-serial port communication unit 3, connect to the corresponding optical fiber interface on the network multi-serial port communication unit 3 through the port number of the connection object of the Udp client mode interface 1222, establish a transparent transmission channel, and communicate with the device connected to the optical fiber interface on the network multi-serial port communication unit 3.

[0064] The SFTP file transfer interface 124 is used to perform an upgrade operation on the network of the BMS product 5 to be tested.

[0065] The physical connection between the BMS test system and the BMS product 5 to be tested is achieved through the switch 6, but the connection at the software level is achieved through the interface. The BMS test system must not only directly connect to the BMS product 5 to be tested through the switch 6 to obtain product data, but also monitor the DO of the BMS product to be tested through the DI of the universal test mainboard unit 2, and control the DI of the BMS product to be tested through the DO of the universal test mainboard unit 2. Each DI or each DO of the universal test mainboard unit 2 corresponds to a UDP mapping port, and the BMS test system software layer operates different DIs and DOs through different UDP mapping ports.

[0066] The BMS test system establishes a communication channel with the battery simulation unit 4 through the network multi-serial communication unit 3, which is used to control and collect the voltage and temperature of the battery simulation unit 4. Considering that the battery simulation unit 4 is plugged into the motherboard, and the motherboard adopts 485 communication, the optical fiber signal connected to the battery simulation unit 4 motherboard by the network multi-serial communication unit 3 must be converted into a 485 signal. The BMS test system establishes a UDP connection through the network multi-serial communication unit 3, and then accesses the corresponding battery simulation unit 4 motherboard through the UDP mapping port. At this time, the optical fiber signal is connected to the battery simulation unit 4 motherboard, and the addressing signal line of the network multi-serial communication unit 3 is used to address the battery simulation unit 4 of the motherboard, and then the UDP channel is used to send a message of the address of the battery simulation unit 4 to operate the corresponding battery simulation unit 4.

[0067] The protocol layer 13 includes: an OOP object-oriented protocol unit 131 and a Modbus protocol unit 132; the OOP object-oriented protocol unit 131 is used to provide the OOP object-oriented protocol when the communication interface layer 12 communicates; the Modbus protocol unit 132 is used to provide the Modbus protocol when the communication interface layer 12 communicates.

[0068] The driving layer 14 includes: a DC power supply unit 141 and an external time base source 142; the DC power supply unit 141 is connected to the universal test mainboard unit to provide a working power supply; the external time base source 142 is connected to the universal test mainboard unit to provide a reference frequency.

[0069] In addition, this embodiment may also include: a data persistence layer 16 and a database 17, wherein the data persistence layer 16 is responsible for mapping the database 17, converting the data table into an object, and operating the attributes of the object to add, delete, modify and query the data table; in the database 17, the SQLite database 17 is a local database 17, which does not rely on the network and provides flexible and efficient data storage.

[0070] This embodiment divides the BMS test system into an application layer, a communication interface layer, a protocol layer, a driver layer, and a display layer, and performs a fine division of the test functions, thereby improving the test efficiency.

[0071] Example 2

[0072] This embodiment discloses a BMS testing method, such as Figures 4 to 7 As shown, the BMS test system used in Example 1 includes the following steps:

[0073] Connect the BMS product to be tested.

[0074] If the connection is successful, the test plan is configured and loaded into the BMS product to be tested. If the BMS product to be tested fails to load the configuration plan, a new test plan is selected and loaded into the BMS product to be tested.

[0075] After the BMS product to be tested completes the test plan, a test conclusion report is generated. During this process, if the test plan fails to execute, the test plan is re-executed.

[0076] Further, the configuration scheme includes: controlling the simulated battery cell to output test parameters for collection by the BMS product to be tested;

[0077] Comparing the sampled information with the configuration scheme;

[0078] If they are consistent, a test conclusion report is generated.

[0079] Through this step, the control and judgment logic can be compared. If they are inconsistent, it means that the test is inaccurate and there is a problem, and retesting is required; if they are consistent, it means that there is no problem with the test and a report can be output.

[0080] In actual use, select the project name on the BMS test system and enter the test plan name. At the same time, the user can select the execution method, such as single test, multiple tests, continuous test, etc. Then, the BMS test system adds the test task and executes the test.

[0081] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A BMS test system, It is characterized in that The BMS test system is connected to a switch, which is respectively connected to a universal test mainboard unit and a network multi-serial port communication unit, the network multi-serial port communication unit is connected to a battery simulation unit, and the universal test mainboard unit and the battery simulation unit are connected to a BMS product to be tested; The BMS test system includes: an application layer, a communication interface layer, a protocol layer, a driver layer and a display layer; The application layer is used to configure the test plan according to the information of the BMS product to be tested, and send it to the switch through the communication interface layer and the protocol layer; The switch obtains the test scheme and sends it to the BMS product to be tested; the battery simulation unit obtains the test scheme from the switch and sends it to the BMS product to be tested; at the same time, the application layer is also used to receive sampling information of the BMS product to be tested through the communication interface layer and the protocol layer; The driver layer is used to drive and control the universal test mainboard unit; The presentation layer is used to implement interaction with users and display operation status monitoring information.

2. The BMS test system according to claim 1, It is characterized in that The application layer includes: a product information management unit, a test scheme management unit, a simulated battery management unit and a simulated device management unit; The product information management unit stores project information of the BMS product to be tested, and the project information stores different product information; The test scheme management unit configures the test items based on the project information and the product information to construct a test scheme; The simulated battery management unit is used to configure communication parameters and configure test parameters of the simulated battery unit; The simulation device management unit is used to manage the universal test mainboard unit and control the battery simulation unit.

3. The BMS testing system according to claim 2, It is characterized in that Managing the universal test mainboard unit includes: upgrading, maintaining, and program management of the universal test mainboard unit.

4. The BMS testing system according to claim 2, It is characterized in that The application layer also includes: a permission management unit and a system operation status management unit; The authority management unit is used to manage the authority of the user; The system operation status management unit is used to receive and display the operation status information of the BMS product to be tested.

5. The BMS testing system according to claim 2, It is characterized in that The communication interface layer includes: a serial communication interface, a client mode interface group, a TCP server mode interface and an SFTP file transfer interface; The serial communication interface communicates with the battery simulation unit through the network multi-serial communication unit to transmit the test scheme and the test parameters; The client mode interface group is used to send data to the BMS product to be tested; The TCP server mode interface is used to receive data for testing BMS products; The Sftp file transfer interface is used to upgrade the network of the BMS product to be tested.

6. The BMS testing system according to claim 1, It is characterized in that The client mode interface group includes: Tcp client mode interface and Udp client mode interface; The Tcp client mode interface is used to connect to the network port of the BMS product to be tested; The Udp client mode interface is used to connect to the network interface of the network multi-serial port communication unit.

7. The BMS testing system according to claim 1, It is characterized in that The protocol layer includes: OOP object-oriented protocol unit, Modbus protocol unit; The OOP object-oriented protocol unit is used to provide an OOP object-oriented protocol when communicating at the communication interface layer; The Modbus protocol unit is used to provide the Modbus protocol when communicating at the communication interface layer.

8. The BMS testing system according to claim 1, It is characterized in that The driving layer includes: a DC power supply unit and an external time base source; The DC power supply unit is connected to the universal test mainboard unit to provide working power; The external time base source is connected to the universal test mainboard unit to provide a reference time frequency.

9. A BMS testing method, It is characterized in that Used in a BMS test system as claimed in any one of claims 1 to 8, comprising the steps of: Connect the BMS product to be tested; If the connection is successful, the test plan is configured and loaded into the BMS product to be tested; After the BMS product to be tested completes the test plan, a test conclusion report is generated.

10. The test method according to claim 9, It is characterized in that The configuration scheme includes: controlling the simulated battery unit to output test parameters for collection by the BMS product to be tested; Comparing the sampling information with the configuration scheme; If they are consistent, the test conclusion report is generated.