CN113970666A - RS485 communication signal-based program design method - Google Patents

RS485 communication signal-based program design method Download PDF

Info

Publication number
CN113970666A
CN113970666A CN202111233808.0A CN202111233808A CN113970666A CN 113970666 A CN113970666 A CN 113970666A CN 202111233808 A CN202111233808 A CN 202111233808A CN 113970666 A CN113970666 A CN 113970666A
Authority
CN
China
Prior art keywords
parameters
signal
communication
message
signals
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111233808.0A
Other languages
Chinese (zh)
Inventor
郭书宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinweier Electronics Co Ltd
Original Assignee
Shenzhen Xinweier Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xinweier Electronics Co Ltd filed Critical Shenzhen Xinweier Electronics Co Ltd
Priority to CN202111233808.0A priority Critical patent/CN113970666A/en
Publication of CN113970666A publication Critical patent/CN113970666A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements for measuring time integral of electric power or current, e.g. electricity meters

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a program design method based on RS485 communication signals, RS485 communication software is arranged on a battery detection system, RS485 communication parameters are designed on the RS485 communication software, the RS485 communication parameters comprise but are not limited to message parameters, signal parameters and basic parameters, the RS485 communication parameters are edited through a human-computer interaction interface, issued signals are selected, signal derivation requirements are set through step editing, battery test parameters are set through the issued signals, the set RS485 signals reach preset values to protect or jump or complete step tests, a test flow is started, request frame data of the signals are sent to a BMS battery management system through an RS485 communication mode according to the issued signals, and the test flow for completing the steps is executed until the flow is finished, and the invention has the advantages that: the design method provided by the invention provides RS485 communication parameter editing based on a human-computer interaction interface, and meets the requirements of various battery parameters of a user, so that the flexibility of the battery test system software is greatly improved, and the cost is reduced.

Description

RS485 communication signal-based program design method
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of battery test communication signals, in particular to a program design method based on RS485 communication signals.
[ background of the invention ]
At present, many batteries are equipped with a BMS battery management system, and each manufacturer has inconsistent requirements on BMS technical protocols, so that various communication modes exist, and RS485 is one of the cheap, simple and mature communication modes, so that the battery management system is adopted by many manufacturers. And traditional battery test equipment does not possess the RS485 communication function, and the mode of RS485 communication need be supported to the battery producer to appointed RS485 signal data is gathered in real time in the follow BMS. In the battery charging and discharging test process, a battery manufacturer generally sets corresponding test parameters for various process steps according to battery characteristics to judge whether the battery is qualified or not, and utilizes various test parameters to reach a certain preset value to protect or jump or complete the test of a certain process step, so that the whole test process is completed, and besides common parameters such as voltage, current, capacity and energy, an RS485 signal needs to be read from a BMS battery management system to be used as the test parameters.
[ summary of the invention ]
The invention aims to solve the technical problems and provides a novel RS485 communication signal-based program design method, which is characterized in that RS485 communication parameters are quickly edited through a human-computer interaction interface, the transmitted RS485 signal is utilized to reach a preset value to protect or jump or complete the test of a process step, the actual value of the signal is displayed and collected in real time in the test process, the flexibility of the battery test system software is improved, and the development cost is reduced.
The invention is realized by the following technical scheme:
a programming method based on RS485 communication signals comprises the following steps:
s1: RS485 communication software is arranged on the battery detection system;
s2: designing RS485 communication parameters according to the RS485 communication software in the step S1, wherein the RS485 communication parameters include but are not limited to message parameters, signal parameters and basic parameters;
s3: designing a human-computer interaction interface according to the RS485 communication software in the step S2, wherein the human-computer interaction interface comprises but is not limited to control application, typesetting layout and data storage of RS485 communication parameters;
s4: the RS485 communication parameters are edited through a human-computer interaction interface, and the issued signals are selected;
s5: setting a signal derivation requirement through process step editing, setting battery test parameters by using the issued signal, and protecting or skipping or completing the process step test when the set RS485 signal reaches a preset value;
s6: starting a test flow, and sending request frame data of signals to a BMS battery management system in an RS485 communication mode according to the issued signals;
s7: sending response data according to the BMS battery management system in the step S6, matching and judging a response frame head, a response frame tail and a response frame length after receiving the response data, analyzing a signal part in the data, and obtaining a signal actual value according to a signal start bit, a signal length, a signal byte sequence, a signal change proportion and a signal offset;
s8: the actual value of the signal in step S7 is analyzed and displayed in real time, and the record is collected and used to determine the signal derivation requirement set in step S5, and a test procedure for completing the process step is performed until the procedure is finished.
As a further scheme 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 trailer, and response frame length.
As a further scheme of the invention: the signal parameters in said step S2 include, but are not limited to, signal name, start bit, length, byte order, change ratio, offset, unit, sign.
As a further scheme of the invention: the basic parameters in step S2 include, but are not limited to, RS485 bus serial number, and adjacent frame interval.
As a further scheme of the invention: the control application in step S3 includes, but is not limited to, designing message parameters and signal parameters to be presented in a list or table manner, and supporting a menu, where the menu includes functions of creating, saving, inserting, deleting, selecting completely, reverse selecting, copying, pasting, clearing, and the like.
As a further scheme of the invention: the typesetting layout in the step S3 includes, but is not limited to, adopting a message and signal parallel editing module, and a basic parameter editing module; or a message and signal double-layer framework editing module and a basic parameter editing module.
As a further scheme 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 XML format file.
As a further scheme of the invention: the message and signal parallel editing module displays the message parameters and the signal parameters in the same list or table, and the message parameters and the signal parameters are in parallel relation.
As a further scheme of the invention: the message and signal double-layer framework editing module displays message parameters in a single list or table, displays signal parameters in a single list or table, and belongs to the subset of the message parameters.
Compared with the prior art, the invention has the beneficial effects that:
(1) the design method of the invention is utilized to provide an RS485 communication parameter-based editing area on a human-computer interaction interface, which comprises a menu of message, signal editing and auxiliary editing, wherein the menu comprises the functions of creating, storing, saving, inserting, deleting, full selecting, reverse selecting, copying, pasting, emptying and the like, thereby facilitating the user to quickly edit the RS485 communication parameter;
(2) the actual value of the RS485 signal selected by a user can be analyzed at the bottom layer of the software, the actual value of the signal is displayed and collected in real time in the testing process, the set RS485 signal is used for reaching a preset value to protect or jump or complete the testing of the process step, and the whole testing process is completed;
(3) the method meets the requirements of various battery parameters which are continuously increased and changed by users, thereby greatly improving the flexibility of the battery test system software and reducing the development cost.
[ description of the drawings ]
FIG. 1 is a schematic diagram of a programming method based on RS485 communication signals according to the present invention;
FIG. 2 is a schematic flow chart of a programming method based on RS485 communication signals according to the present invention;
[ detailed description ] embodiments
The present invention will be further described with reference to the accompanying drawings and detailed description, wherein the technical solutions in the embodiments of the present invention are clearly and completely described, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative effort belong to the protection scope of the present invention; in addition, the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Referring to fig. 1-2, in an embodiment of the present invention, a method for programming based on RS485 communication signals includes the following steps:
s1: RS485 communication software is arranged on the battery detection system;
s2: designing RS485 communication parameters according to the RS485 communication software in the step S1, wherein the RS485 communication parameters include but are not limited to message parameters, signal parameters and basic parameters;
s3: designing a human-computer interaction interface according to the RS485 communication software in the step S2, wherein the human-computer interaction interface comprises but is not limited to control application, typesetting layout and data storage of RS485 communication parameters;
s4: the RS485 communication parameters are edited through a human-computer interaction interface, and the issued signals are selected;
s5: setting a signal derivation requirement through process step editing, setting battery test parameters by using the issued signal, and protecting or skipping or completing the process step test when the set RS485 signal reaches a preset value;
s6: starting a test flow, and sending request frame data of signals to a BMS battery management system in an RS485 communication mode according to the issued signals;
s7: sending response data according to the BMS battery management system in the step S6, matching and judging a response frame head, a response frame tail and a response frame length after receiving the response data, analyzing a signal part in the data, and obtaining a signal actual value according to a signal start bit, a signal length, a signal byte sequence, a signal change proportion and a signal offset;
s8: the actual value of the signal in step S7 is analyzed and displayed in real time, and the record is collected and used to determine the signal derivation requirement set in step S5, and a test procedure for completing the process step is performed until the procedure is finished.
As a preferable scheme 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 trailer, and response frame length.
As a preferable scheme of the invention: the signal parameters in said step S2 include, but are not limited to, signal name, start bit, length, byte order, change ratio, offset, unit, sign.
As a preferable scheme of the invention: the basic parameters in step S2 include, but are not limited to, RS485 bus serial number, and adjacent frame interval.
As a preferable scheme of the invention: the control application in step S3 includes, but is not limited to, designing message parameters and signal parameters to be presented in a list or table manner, and supporting a menu, where the menu includes functions of creating, saving, inserting, deleting, selecting completely, reverse selecting, copying, pasting, clearing, and the like.
As a preferable scheme of the invention: the typesetting layout in the step S3 includes, but is not limited to, adopting a message and signal parallel editing module, and a basic parameter editing module; or a message and signal double-layer framework editing module and a basic parameter editing module.
As a preferable scheme 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 XML format file.
As a preferable scheme of the invention: the message and signal parallel editing module displays the message parameters and the signal parameters in the same list or table, and the message parameters and the signal parameters are in parallel relation.
As a preferable scheme of the invention: the message and signal double-layer framework editing module displays message parameters in a single list or table, displays signal parameters in a single list or table, and belongs to the subset of the message parameters.
Appropriate changes and modifications to the embodiments described above will become apparent to those skilled in the art from the disclosure and teachings of the foregoing description. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and variations of the present invention should fall within the scope of the claims of the present invention. Furthermore, although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

Claims (9)

1. A program design method based on RS485 communication signals is characterized by comprising the following steps:
s1: RS485 communication software is arranged on the battery detection system;
s2: designing RS485 communication parameters according to the RS485 communication software in the step S1, wherein the RS485 communication parameters include but are not limited to message parameters, signal parameters and basic parameters;
s3: designing a human-computer interaction interface according to the RS485 communication software in the step S2, wherein the human-computer interaction interface comprises but is not limited to control application, typesetting layout and data storage of RS485 communication parameters;
s4: the RS485 communication parameters are edited through a human-computer interaction interface, and the issued signals are selected;
s5: setting a signal derivation requirement through process step editing, setting battery test parameters by using the issued signal, and protecting or skipping or completing the process step test when the set RS485 signal reaches a preset value;
s6: starting a test flow, and sending request frame data of signals to a BMS battery management system in an RS485 communication mode according to the issued signals;
s7: sending response data according to the BMS battery management system in the step S6, matching and judging a response frame head, a response frame tail and a response frame length after receiving the response data, analyzing a signal part in the data, and obtaining a signal actual value according to a signal start bit, a signal length, a signal byte sequence, a signal change proportion and a signal offset;
s8: the actual value of the signal in step S7 is analyzed and displayed in real time, and the record is collected and used to determine the signal derivation requirement set in step S5, and a test procedure for completing the process step is performed until the procedure is finished.
2. The RS485 communication signal based programming method of claim 1, wherein: the message parameters in step S2 include, but are not limited to, message name, request frame data, response frame header, response frame trailer, and response frame length.
3. The RS485 communication signal based programming method of claim 1, wherein: the signal parameters in said step S2 include, but are not limited to, signal name, start bit, length, byte order, change ratio, offset, unit, sign.
4. The RS485 communication signal based programming method of claim 1, wherein: the basic parameters in step S2 include, but are not limited to, RS485 bus serial number, and adjacent frame interval.
5. The RS485 communication signal based programming method of claim 1, wherein: the control application in step S3 includes, but is not limited to, designing the message parameters and signal parameters to be presented in a list or table manner, and supporting menus.
6. The RS485 communication signal based programming method of claim 1, wherein: the typesetting layout in the step S3 includes, but is not limited to, adopting a message and signal parallel editing module, and a basic parameter editing module; or a message and signal double-layer framework editing module and a basic parameter editing module.
7. The RS485 communication signal based programming method of claim 1, wherein: 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 XML format file.
8. The RS485 communication signal based programming method of claim 6, wherein: the message and signal parallel editing module displays the message parameters and the signal parameters in the same list or table, and the message parameters and the signal parameters are in parallel relation.
9. The RS485 communication signal based programming method of claim 6, wherein: the message and signal double-layer framework editing module displays message parameters in a single list or table, displays signal parameters in a single list or table, and belongs to the subset of the message parameters.
CN202111233808.0A 2021-10-22 2021-10-22 RS485 communication signal-based program design method Pending CN113970666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111233808.0A CN113970666A (en) 2021-10-22 2021-10-22 RS485 communication signal-based program design method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111233808.0A CN113970666A (en) 2021-10-22 2021-10-22 RS485 communication signal-based program design method

Publications (1)

Publication Number Publication Date
CN113970666A true CN113970666A (en) 2022-01-25

Family

ID=79587998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111233808.0A Pending CN113970666A (en) 2021-10-22 2021-10-22 RS485 communication signal-based program design method

Country Status (1)

Country Link
CN (1) CN113970666A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130137975A (en) * 2012-06-08 2013-12-18 넥스콘 테크놀러지 주식회사 Method and apparatus for controlling communication of battery management system
CN104283749A (en) * 2014-09-25 2015-01-14 烽火通信科技股份有限公司 Communication system based on RS-485 half-duplex bus and service disc communication upgrading method
CN105912472A (en) * 2016-04-12 2016-08-31 中国船舶重工集团公司第七〇二研究所 Software design method capable of variable customization in battery testing system
CN106324385A (en) * 2016-08-08 2017-01-11 北京新能源汽车股份有限公司 Testing system and method for battery management system
CN109065975A (en) * 2018-07-12 2018-12-21 国网四川省电力公司阿坝供电公司 A kind of direct current system management system and its control method
CN112069176A (en) * 2020-08-26 2020-12-11 北京航天发射技术研究所 Communication protocol database design method, device, equipment and storage medium
CN112532476A (en) * 2020-11-23 2021-03-19 国网智慧能源交通技术创新中心(苏州)有限公司 BMS (battery management system) protocol simulation test system and test method for V2G electric vehicle
CN113406514A (en) * 2021-06-15 2021-09-17 深圳市新威尔电子有限公司 Battery test equipment identification system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130137975A (en) * 2012-06-08 2013-12-18 넥스콘 테크놀러지 주식회사 Method and apparatus for controlling communication of battery management system
CN104283749A (en) * 2014-09-25 2015-01-14 烽火通信科技股份有限公司 Communication system based on RS-485 half-duplex bus and service disc communication upgrading method
CN105912472A (en) * 2016-04-12 2016-08-31 中国船舶重工集团公司第七〇二研究所 Software design method capable of variable customization in battery testing system
CN106324385A (en) * 2016-08-08 2017-01-11 北京新能源汽车股份有限公司 Testing system and method for battery management system
CN109065975A (en) * 2018-07-12 2018-12-21 国网四川省电力公司阿坝供电公司 A kind of direct current system management system and its control method
CN112069176A (en) * 2020-08-26 2020-12-11 北京航天发射技术研究所 Communication protocol database design method, device, equipment and storage medium
CN112532476A (en) * 2020-11-23 2021-03-19 国网智慧能源交通技术创新中心(苏州)有限公司 BMS (battery management system) protocol simulation test system and test method for V2G electric vehicle
CN113406514A (en) * 2021-06-15 2021-09-17 深圳市新威尔电子有限公司 Battery test equipment identification system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
尹天成: "基于LabVIEW的BMS上位机系统设计", 中国知网, 15 February 2020 (2020-02-15), pages 8 - 64 *

Similar Documents

Publication Publication Date Title
CN108415408A (en) Automobile packet parsing based on CAN communication and method for diagnosing faults
CN109782735B (en) Test data simulation method, device and system
CN104166610A (en) Mobile terminal detection method and detection system
CN109857095A (en) A kind of off-line detection system and method for domain controller
CN112874382A (en) Charging monitoring system and method for pure electric commercial vehicle
CN107878243A (en) A kind of battery management system and method
JP2002091548A (en) Bcu control system
CN102680908B (en) Battery status detection record analyzer and control method
CN113970666A (en) RS485 communication signal-based program design method
CN103809051B (en) The detection method of switch matrix, Auto-Test System and switch matrix therein
CN113702849A (en) Battery detection data processing method
CN211148867U (en) Battery pack diagnostic device for electric vehicle
WO2024113990A1 (en) Information query method for optical modules, and a related assembly thereof
CN103439903B (en) A kind of method of sampling of data acquisition unit used for electric vehicle
CN202676891U (en) Cell state detection and record analyzer
CN113282442B (en) Method and system for automatically calibrating and downloading preset firmware at high speed in chip mass production
CN112925701B (en) Test case editing method, vehicle testing method and device
CN104569841A (en) Aging detection method and device for battery pack
CN104730461A (en) Series battery pack information collection and display apparatus
CN110473307B (en) Intelligent battery pairing repair method and system
CN114460472A (en) Electric meter chip, control method thereof, electronic device and online simulation system
CN113933739A (en) Direct current fault recording device and fault recording method
CN106790188A (en) The main frame collocation method of battery management system, device and battery management system
CN208595999U (en) A kind of force snesor calibrating installation
CN217931928U (en) Tool testing system for lithium battery protection board

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination