Programming method based on RS485 communication signal

Through the programming method based on RS485 communication signals, the problem that traditional equipment cannot collect RS485 signal data is solved, the flexibility and accuracy of the battery test system are realized, the development cost is reduced, and the diversified needs of battery test are met.

CN113970666BActive Publication Date: 2024-11-08NEWARE TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111233808.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2024-11-08
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

Traditional battery detection equipment lacks RS485 communication function and cannot collect RS485 signal data in the BMS battery management system in real time, limiting the flexibility and accuracy of battery testing.

Method used

Design a programming method based on RS485 communication signals, quickly edit RS485 communication parameters through human-computer interactive interface, display and collect the actual signal values ​​in real time, and use preset signal value protection or jump test process to realize communication and data with BMS Analysis.

Benefits of technology

It improves the software flexibility of the battery test system, reduces development costs, meets the ever-changing battery parameter requirements, and realizes the complete process of battery testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113970666B_ABST
    Figure CN113970666B_ABST
Patent Text Reader

Abstract

The invention provides a program design method based on RS485 communication signals. RS485 communication software is provided on a battery detection system, and RS485 communication parameters are designed on the RS485 communication software. The RS485 communication parameters include but are not limited to message parameters, signal parameters, and basic parameters. The RS485 communication parameters are edited through a human-computer interaction interface, and the issued signal is selected. Signal derivative requirements are set through step editing, and battery test parameters are set using the issued signal. The set RS485 signal reaches a preset value to protect or jump or complete the step test, and the test process is started. According to the issued signal, request frame data of the signal is sent to a BMS battery management system through an RS485 communication mode, and the test process of the step is executed until the process ends. The beneficial effect of the invention is that the design method of the invention provides RS485 communication parameter editing in the human-computer interaction interface to meet various battery parameter requirements of users, thereby greatly improving the flexibility of battery test system software and reducing costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of battery test communication signals, and in particular to a program design method based on RS485 communication signals. Background Art

[0002] Nowadays, many batteries are equipped with BMS battery management systems, and each manufacturer has different requirements for BMS technical protocols, so there are various communication methods. RS485 is one of the cheap, simple and mature communication methods, and is therefore adopted by many manufacturers. However, traditional battery testing equipment does not have RS485 communication functions. Battery manufacturers need to support RS485 communication methods and collect specified RS485 signal data from BMS in real time. During the battery charge and discharge test, battery manufacturers generally set corresponding test parameters for various steps according to battery characteristics to determine whether the battery is qualified, and use various test parameters to reach a certain preset value to protect or jump or complete the test of a certain step, thereby completing the entire test process. In addition to common parameters such as voltage, current, capacity, and energy, it is necessary to read RS485 signals from the BMS battery management system as test parameters. Summary of the invention

[0003] The purpose of the present invention is to solve the shortcomings of the above technical problems and provide a novel programming method based on RS485 communication signals, which can quickly edit RS485 communication parameters through a human-computer interaction interface, use the RS485 signal sent to reach a preset value to protect or jump or complete the test of the working step, and display and collect the actual value of the signal in real time during the test, thereby improving the flexibility of the battery test system software and reducing the development cost.

[0004] The present invention is achieved through the following technical solutions:

[0005] A programming method based on RS485 communication signals comprises the following steps:

[0006] S1: Set up RS485 communication software on the battery detection system;

[0007] S2: Design RS485 communication parameters according to the RS485 communication software in step S1, wherein the RS485 communication parameters include but are not limited to message parameters, signal parameters, and basic parameters;

[0008] S3: Designing a human-computer interaction interface according to the RS485 communication software in step S2, wherein the human-computer interaction interface includes but is not limited to control application, typesetting layout, and data storage of RS485 communication parameters;

[0009] S4: Edit RS485 communication parameters through the human-computer interaction interface and select the signal to be sent;

[0010] S5: Set the signal derivative requirements through the work step editing, use the sent signal to set the battery test parameters, and set the RS485 signal to reach the preset value to protect or jump or complete the work step test;

[0011] S6: Start the test process, and send the signal request frame data to the BMS battery management system through RS485 communication according to the signal sent;

[0012] S7: The BMS battery management system in step S6 sends response data. After receiving the response data, it matches and judges the response frame header, response frame tail, and response frame length, parses the signal part in the data, and obtains the actual value of the signal according to the signal start bit, length, byte order, change ratio, and offset;

[0013] S8: Analyze the actual value of the signal in step S7 and display, collect and record it in real time, and use it to determine the signal derivation requirements set in step S5, and execute the test process of the completion step until the process ends.

[0014] As a further solution of the invention: the message parameters in step S2 include but are not limited to the message name, request frame data, response frame header, response frame tail, and response frame length.

[0015] As a further solution of the invention: the signal parameters in step S2 include but are not limited to signal name, start bit, length, byte order, change ratio, offset, unit, and symbol.

[0016] As a further solution of the invention: the basic parameters in step S2 include but are not limited to the RS485 bus sequence number and the interval between adjacent frames.

[0017] As a further solution of the invention: the control application in step S3 includes but is not limited to designing the message parameters and signal parameters to be displayed in a list or table manner, supporting menus, and the menus include functions such as new, save, save as, insert, delete, select all, invert, copy, paste, and clear.

[0018] As a further solution of the invention: the typesetting layout in step S3 includes but is not limited to using a message and signal parallel editing module, and a basic parameter editing module; or a message and signal double-layer architecture editing module, and a basic parameter editing module.

[0019] As a further solution of the invention: the data storage in step S3 is not limited to storing RS485 communication parameters in XML format, and obtaining RS485 communication parameters from XML format files.

[0020] As a further solution of the invention: the message and signal parallel editing module displays the message parameters and signal parameters in the same list or table, and the message parameters and signal parameters are in a parallel relationship.

[0021] As a further solution of the invention: the message and signal double-layer architecture editing module displays the message parameters in a separate list or table, and the signal parameters in a separate list or table, and the signal parameters are a subset of the message parameters.

[0022] Compared with the prior art, the present invention has the following beneficial effects:

[0023] (1) The design method of the present invention is used to provide an RS485 communication parameter editing area in the human-computer interaction interface, including a message, signal editing and auxiliary editing menu. The menu includes functions such as create, save, save as, insert, delete, select all, reverse select, copy, paste, clear, etc., which is convenient for users to quickly edit RS485 communication parameters;

[0024] (2) The software can analyze the actual value of the RS485 signal selected by the user, display and collect the actual value of the signal in real time during the test, and use the set RS485 signal to reach the preset value to protect, jump or complete the test of the work step, thus completing the entire test process;

[0025] (3) Meet users' ever-increasing and changing requirements for various battery parameters, thereby greatly improving the flexibility of battery testing system software and reducing development costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a schematic diagram of a programming method based on RS485 communication signals of the present invention;

[0027] Figure 2 The present invention is a flowchart of a programming method based on RS485 communication signals. DETAILED DESCRIPTION

[0028] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods, and the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention; in addition, the embodiments in this application and the features in the embodiments can be combined with each other without conflict.

[0029] See also Figures 1-2 In an embodiment of the present invention, a programming method based on RS485 communication signals comprises the following steps:

[0030] S1: Set up RS485 communication software on the battery detection system;

[0031] S2: Design RS485 communication parameters according to the RS485 communication software in step S1, wherein the RS485 communication parameters include but are not limited to message parameters, signal parameters, and basic parameters;

[0032] S3: Designing a human-computer interaction interface according to the RS485 communication software in step S2, wherein the human-computer interaction interface includes but is not limited to control application, typesetting layout, and data storage of RS485 communication parameters;

[0033] S4: Edit RS485 communication parameters through the human-computer interaction interface and select the signal to be sent;

[0034] S5: Set the signal derivative requirements through the work step editing, use the sent signal to set the battery test parameters, and set the RS485 signal to reach the preset value to protect or jump or complete the work step test;

[0035] S6: Start the test process, and send the signal request frame data to the BMS battery management system through RS485 communication according to the signal sent;

[0036] S7: The BMS battery management system in step S6 sends response data. After receiving the response data, it matches and judges the response frame header, response frame tail, and response frame length, parses the signal part in the data, and obtains the actual value of the signal according to the signal start bit, length, byte order, change ratio, and offset;

[0037] S8: Analyze the actual value of the signal in step S7 and display, collect and record it in real time, and use it to determine the signal derivation requirements set in step S5, and execute the test process of the completion step until the process ends.

[0038] As a preferred solution of the invention: the message parameters in step S2 include but are not limited to message name, request frame data, response frame header, response frame tail, and response frame length.

[0039] As a preferred solution of the invention: the signal parameters in step S2 include but are not limited to signal name, start bit, length, byte order, change ratio, offset, unit, and symbol.

[0040] As a preferred solution of the invention: the basic parameters in step S2 include but are not limited to RS485 bus sequence number and adjacent frame interval.

[0041] As a preferred solution of the invention: the control application in step S3 includes but is not limited to designing the message parameters and signal parameters to be displayed in a list or table manner, supporting menus, and the menus include functions such as new, save, save as, insert, delete, select all, invert, copy, paste, and clear.

[0042] As a preferred embodiment of the invention: the typesetting layout in step S3 includes but is not limited to using a message and signal parallel editing module, and a basic parameter editing module; or a message and signal double-layer architecture editing module, and a basic parameter editing module.

[0043] As a preferred solution of the invention: the data storage in step S3 includes but is not limited to storing RS485 communication parameters in XML format, and obtaining RS485 communication parameters from an XML format file.

[0044] As a preferred solution of the invention: the message and signal parallel editing module displays the message parameters and signal parameters in the same list or table, and the message parameters and signal parameters are in a parallel relationship.

[0045] As a preferred solution of the invention: the message and signal dual-layer architecture editing module displays message parameters in a separate list or table, and displays signal parameters in a separate list or table, and signal parameters are a subset of message parameters.

[0046] According to the disclosure and teaching of the above description, those skilled in the art to which the present invention belongs may also make appropriate changes and modifications to the above embodiments. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and changes to the present invention should also fall within the scope of protection of the claims of the present invention. In addition, although some specific terms are used in this specification, these terms are only for the convenience of description and do not constitute any limitation to the present invention.

Claims

1. A programming method based on RS485 communication signal, characterized in that, The steps include: S1: Set up RS485 communication software on the battery detection system; S2: Design RS485 communication parameters according to the RS485 communication software in step S1, wherein the RS485 communication parameters include message parameters, signal parameters, and basic parameters; the message parameters include message name, request frame data, response frame header, response frame tail, and response frame length; the signal parameters include signal name, start bit, length, byte order, change ratio, offset, unit, and symbol; the basic parameters include RS485 bus sequence number and adjacent frame interval; S3: Designing a human-computer interaction interface according to the RS485 communication software in step S2, the human-computer interaction interface includes control application, typesetting layout, and data storage of RS485 communication parameters; the control application includes designing message parameters and signal parameters to be displayed in a list or table manner, and supporting menus; the typesetting layout includes using a message and signal parallel editing module, and a basic parameter editing module; or a message and signal double-layer architecture editing module, and a basic parameter editing module; the data storage includes storing RS485 communication parameters in XML format, and obtaining RS485 communication parameters from XML format files; S4: Edit RS485 communication parameters through the human-computer interaction interface and select the signal to be sent; S5: Set the signal derivative requirements through the work step editing, use the sent signal to set the battery test parameters, and set the RS485 signal to reach the preset value to protect or jump or complete the work step test; S6: Start the test process, and send the signal request frame data to the BMS battery management system through RS485 communication according to the signal sent; S7: The BMS battery management system in step S6 sends response data. After receiving the response data, it matches and judges the response frame header, response frame tail, and response frame length, parses the signal part in the data, and obtains the actual value of the signal according to the signal start bit, length, byte order, change ratio, and offset; S8: Analyze the actual value of the signal in step S7 and display, collect and record it in real time, and use it to determine the signal derivation requirements set in step S5, and execute the test process of the completion step until the process ends.

2. The programming method based on RS485 communication signal according to claim 1, wherein: The message and signal parallel editing module displays the message parameters and signal parameters in the same list or table, and the message parameters and signal parameters are in a parallel relationship.

3. The programming method based on RS485 communication signal according to claim 1, wherein: The message and signal dual-layer architecture editing module displays message parameters in a separate list or table, and displays signal parameters in a separate list or table. Signal parameters are a subset of message parameters.