Battery detection method for transmitting CAN message based on process flow

文档序号:1887920 发布日期:2021-11-26 浏览:5次 中文

阅读说明:本技术 基于工步流程发送can报文的电池检测方法 (Battery detection method for transmitting CAN message based on process flow ) 是由 郭书宏 肖映宏 于 2021-08-27 设计创作,主要内容包括:本发明公开了一种基于工步流程发送CAN报文的电池检测方法,通过电池检测系统上设有编辑控制工步软件,点击编辑控制工步软件,进入工步编辑,编辑控制工步,执行控制工步流程,利用定制化设置好的参数,灵活发送CAN报文,根据结束发送CAN报文条件进行判断,满足任意一个条件即停止CAN报文发送,否则继续发送CAN报文,停止CAN报文发送后,再执行后面的流程,直到流程结束,本发明有益效果:解决了电池在量产阶段或成熟阶段,多个设备多个电池检测设备通道加载工步流程,在进入控制工步(发送CAN报文的工步)后,与BMS通讯发送CAN报文,大大方便用户快速验证BMS电池管理系统,无需人工手动发送,大大提高用户产量。(The invention discloses a battery detection method for sending CAN messages based on a process flow, which comprises the following steps of setting editing control process step software on a battery detection system, clicking the editing control process step software, entering process step editing, editing control process steps, executing control process flow, flexibly sending CAN messages by using customized set parameters, judging according to the conditions for sending the CAN messages, stopping sending the CAN messages when any one condition is met, and continuing sending the CAN messages if the any one condition is not met, and executing the following process after the CAN messages are stopped until the process is finished, and the invention has the advantages that: the battery loading step process is characterized in that the loading step process of a plurality of battery detection equipment channels of a plurality of equipment is carried out in the mass production stage or the mature stage, and after the battery enters the control step (the step of sending the CAN message), the CAN message is sent through the communication with the BMS, so that the BMS battery management system CAN be rapidly verified by a user conveniently and greatly, manual sending is not needed, and the user output is greatly improved.)

1. A battery detection method for sending CAN messages based on a process flow is characterized by comprising the following steps:

s1: editing control step software is arranged on the battery detection system;

s2: clicking an editing control process step software, entering a process step editing, editing a control process step, selecting a BMS data frame, clicking a data control, entering a CAN message editing, wherein after the CAN message editing respectively sets parameters such as a CAN interface, a cycle type, an adjacent frame interval, a packet sending mode, a name, data, a sending mode, sending times, an interval, data increment, a byte sequence, a starting byte, a byte length, an increment step length, an increment upper limit and the like, and selects to send a message, all customized parameters are instantly completed, and a required derivative value set is automatically generated for all customized parameters;

s3: executing the control step flow after the editing control step is entered in the step S2, and flexibly sending the CAN message by using the customized set parameters;

s4: judging according to the conditions of finishing sending the CAN message, stopping sending the CAN message when any one condition is met, and continuing sending the CAN message if the any one condition is not met;

s5: the execution in step S4 is stopped to send the CAN message, and the subsequent process is executed until the process is finished.

2. The battery detection method for sending the CAN message based on the process flow according to claim 1, wherein: the CAN message sending mode comprises a packet cycle sending mode and a frame cycle sending mode.

3. The battery detection method for sending the CAN message based on the process flow according to claim 1, wherein: the conditions for finishing sending the CAN message in the step S4 include packet cycle and frame cycle, if the packet cycle packet sending mode is the sending frequency, the sending of the CAN message is finished when the whole packet reaches the sending frequency, and if the packet cycle packet sending mode is the cycle sending, the sending of the CAN message is finished when the process step is finished; if the frame cycle transmission mode is the transmission times, the CAN message is finished being transmitted when the message reaches the transmission times, when all the messages are finished being transmitted, the CAN message is finished being transmitted, and if the frame cycle transmission mode is the cycle transmission, the CAN message is finished being transmitted when the process step is finished.

4. The battery detection method for sending the CAN message based on the process flow according to claim 2, wherein: the packet cyclic sending mode is as follows: all sent messages are treated as a whole, first frame messages in the packets are sent to a BMS battery management system through CAN communication, and the interval time between adjacent frames is waited; sending a second frame message in the packet, and waiting for the interval time of adjacent frames; and repeating the steps until the last frame of message in the packet is sent, waiting for the maximum value millisecond between the interval of the adjacent frames and the interval of the packet, and starting the next round of packet data sending.

5. The battery detection method for sending the CAN message based on the process flow according to claim 2, wherein: the frame cycle sending mode flow is as follows: when the messages are sent for the first time, all the messages are sent for the same time, the priorities are arranged, the messages are selected to be sent, the messages from the first frame to the Nth frame are sequentially judged, the message Y which is longest from the last sending time and meets the interval of the messages at a millisecond or more is found, namely, the message Y is sent to a BMS battery management system through CAN communication, and after the sending is completed, the interval of the adjacent frames is waited for a millisecond; and selecting a message to be sent from the priority, and starting to continue round-robin judgment and sending.

6. The battery detection method for sending the CAN message based on the process flow according to claim 1, wherein: and the step editing is a step skip type.

7. The battery detection method for sending the CAN message based on the process flow according to claim 6, wherein: and the step jump type is that the step jump continues to be sent circularly or the step jump is completed by circularly sending or the step jump is triggered.

8. The battery detection method for sending the CAN message based on the process flow according to claim 4, wherein: the data content sent next time by each frame of message is a message increment sub-process.

9. The battery detection method for sending the CAN message based on the process flow according to claim 8, wherein: the message increment sub-process comprises the following steps:

firstly, sending an initial message;

the message is increased progressively, and the step length is increased progressively according to the byte sequence and the appointed byte;

judging whether the specified byte data is larger than or equal to the incremental upper limit, and continuing the second step if the specified byte data is not larger than the incremental upper limit;

fourthly, gradually increasing the upper limit message sending.

[ technical field ] A method for producing a semiconductor device

The invention relates to the technical field of battery detection, in particular to a battery detection method for sending CAN messages based on a process flow.

[ background of the invention ]

Can (controller Area network), a serial communication protocol bus for real-time applications, which can transmit signals by twisted pair, is one of the most widely used field buses in the world. CAN, as a de facto standard in the field of battery test technology, is a core network for all battery tests, although there are some problems (e.g., slow speed, short messages).

With the continuous development of new energy power batteries, the capacity, safety and endurance of the batteries increasingly become important concerns. The power battery is basically equipped with a BMS battery management system for the purpose of intelligently managing and maintaining the respective battery cells, preventing overcharge and overdischarge of the battery, extending the lifespan of the battery, and monitoring the state of the battery. And each manufacturer has inconsistent requirements on the BMS technical protocol, so that various communication modes exist, and CAN communication is one of the communication modes with wider application. In the mass production stage, particularly in the automatic production, the battery characteristics and the test scheme are relatively mature, and the battery is detected according to the pre-edited process flow (or called as the test scheme). But also needs to communicate with the BMS in real time, and the corresponding CAN messages are sent according to the process flow at different stages.

[ summary of the invention ]

The invention aims to solve the technical problems and provides a novel battery detection method for sending CAN messages based on a process flow.

The invention is realized by the following technical scheme:

a battery detection method for sending CAN messages based on a process flow comprises the following steps:

s1: editing control step software is arranged on the battery detection system;

s2: clicking an editing control process step software, entering a process step editing, editing a control process step, selecting a BMS data frame, clicking a data control, entering a CAN message editing, wherein after the CAN message editing respectively sets parameters such as a CAN interface, a cycle type, an adjacent frame interval, a packet sending mode, a name, data, a sending mode, sending times, an interval, data increment, a byte sequence, a starting byte, a byte length, an increment step length, an increment upper limit and the like, and selects to send a message, all customized parameters are instantly completed, and a required derivative value set is automatically generated for all customized parameters;

s3: executing the control step flow after the editing control step is entered in the step S2, and flexibly sending the CAN message by using the customized set parameters;

s4: judging according to the conditions of finishing sending the CAN message, stopping sending the CAN message when any one condition is met, and continuing sending the CAN message if the any one condition is not met;

s5: the execution in step S4 is stopped to send the CAN message, and the subsequent process is executed until the process is finished.

Further, the CAN message sending mode includes a packet cycle sending mode and a frame cycle sending mode.

Further, the conditions for finishing sending the CAN packet in step S4 include packet cycle and frame cycle, if the packet cycle packet sending mode is the sending frequency, the sending of the CAN packet is finished when the whole packet reaches the sending frequency, and if the packet cycle packet sending mode is the cycle sending, the sending of the CAN packet is finished when the process step is finished; if the frame cycle transmission mode is the transmission times, the CAN message is finished being transmitted when the message reaches the transmission times, when all the messages are finished being transmitted, the CAN message is finished being transmitted, and if the frame cycle transmission mode is the cycle transmission, the CAN message is finished being transmitted when the process step is finished.

Further, the packet cyclic transmission mode is as follows: all sent messages are treated as a whole, first frame messages in the packets are sent to a BMS battery management system through CAN communication, and the interval time between adjacent frames is waited; sending a second frame message in the packet, and waiting for the interval time of adjacent frames; and repeating the steps until the last frame of message in the packet is sent, waiting for the maximum value millisecond between the interval of the adjacent frames and the interval of the packet, and starting the next round of packet data sending.

Further, the frame cycle sending method flow is as follows: when the messages are sent for the first time, all the messages are sent for the same time, the priorities are arranged, the messages are selected to be sent, the messages from the first frame to the Nth frame are sequentially judged, the message Y which is longest from the last sending time and meets the interval of the messages at a millisecond or more is found, namely, the message Y is sent to a BMS battery management system through CAN communication, and after the sending is completed, the interval of the adjacent frames is waited for a millisecond; and selecting a message to be sent from the priority, and starting to continue round-robin judgment and sending.

Further, the step editing is a step skip type.

Further, the type of the step jump is that the step jump continues to be sent circularly or the step jump is completed by circularly sending or the step jump is triggered.

Further, the data content sent next time by each frame of message is a message increment sub-process.

Further, the packet increment sub-process includes the following steps:

firstly, sending an initial message;

the message is increased progressively, and the step length is increased progressively according to the byte sequence and the appointed byte;

judging whether the specified byte data is larger than or equal to the incremental upper limit, and continuing the second step if the specified byte data is not larger than the incremental upper limit;

fourthly, gradually increasing the upper limit message sending.

The invention has the beneficial effects that:

(1) the battery detection method for sending the CAN message based on the process flow has the advantages of simple operation, strong practicability and capability of saving a large amount of labor cost;

(2) the invention solves the problem that in the mass production stage or the mature stage of the battery, a plurality of devices and a plurality of battery detection device channels load the process flow, and after entering the control process (the process step of sending the CAN message), the battery detection device communicates with the BMS to send the CAN message, thereby greatly facilitating the user to quickly verify the BMS battery management system, avoiding manual sending and greatly improving the user output.

[ description of the drawings ]

FIG. 1 is a schematic flow chart of a battery detection method for sending CAN messages based on a process step flow according to the present invention;

FIG. 2 is a flow chart of an embodiment 1 of the present invention for completing step jump in loop transmission;

FIG. 3 is a schematic flow chart of step jump continuous loop transmission embodiment 2 according to the present invention;

FIG. 4 is a schematic flow chart of embodiment 3 of triggering step skipping according to the present invention;

FIG. 5 is a flow chart of a frame cyclic transmission method according to the present invention;

FIG. 6 is a flow chart of a packet round-robin transmission scheme according to the present invention;

fig. 7 is a schematic diagram of a message increment sub-process according to the present invention.

[ detailed description ] embodiments

The invention is further described with reference to the accompanying drawings and the detailed description:

as shown in fig. 1, a battery detection method for sending a CAN message based on a process flow includes the following steps:

s1: editing control step software is arranged on the battery detection system;

s2: clicking an editing control process step software, entering a process step editing, editing a control process step, selecting a BMS data frame, clicking a data control, entering a CAN message editing, wherein after the CAN message editing respectively sets parameters such as a CAN interface, a cycle type, an adjacent frame interval, a packet sending mode, a name, data, a sending mode, sending times, an interval, data increment, a byte sequence, a starting byte, a byte length, an increment step length, an increment upper limit and the like, and selects to send a message, all customized parameters are instantly completed, and a required derivative value set is automatically generated for all customized parameters;

the sending mode is as follows: the method is effective when the cyclic transmission selection frame is cyclic and mainly comprises multiple transmissions and cyclic transmissions. When the message is sent for multiple times, the message is sent for the appointed times, and then the sending is finished; when the cyclic sending is selected, the message is sent circularly all the time;

the number of sending times is as follows: the message sending times are effective when the sending mode is selected to send for multiple times;

the interval is as follows: the time interval between the next transmission of the frame and the current frame;

the data is incremented: if the two conditions are not the same, the selection is effective if the two conditions are the same, otherwise, the selection is not effective;

the byte order is: the method for storing the message data mainly comprises an Intel and a Motorola, wherein the low bit of the Intel is in the low byte, and the high bit of the Intel is in the high byte; motorola is low on high byte and high on low byte;

the start byte: the initial byte position of the incremental data is in the range of 0-7, and the CANFD is in the range of 1-8;

the length of the bytes is as follows: the length of the incremental data is 1-8, and the CANFD is 1-64;

the increment step size is as follows: the size of each increment;

the incremental upper limit: the maximum value of the data is increased, namely the maximum value can only be increased to the value;

s3: executing the control step flow after the editing control step is entered in the step S2, and flexibly sending the CAN message by using the customized set parameters;

s4: judging according to the conditions of finishing sending the CAN message, stopping sending the CAN message when any one condition is met, and continuing sending the CAN message if the any one condition is not met;

s5: the execution in step S4 is stopped to send the CAN message, and the subsequent process is executed until the process is finished.

Preferably, the CAN message sending mode includes a packet cycle sending mode and a frame cycle sending mode.

Preferably, the conditions for finishing sending the CAN packet in step S4 include packet cycle and frame cycle, if the packet cycle packet sending mode is sending times, the sending of the CAN packet is finished when the whole packet reaches the sending times, and if the packet cycle packet sending mode is cycle sending, the sending of the CAN packet is finished when the process step is finished; if the frame cycle transmission mode is the transmission times, the CAN message is finished being transmitted when the message reaches the transmission times, when all the messages are finished being transmitted, the CAN message is finished being transmitted, and if the frame cycle transmission mode is the cycle transmission, the CAN message is finished being transmitted when the process step is finished.

In a preferred embodiment, as shown in fig. 6, the packet cyclic transmission mode flow includes: all sent messages are treated as a whole, first frame messages in the packets are sent to a BMS battery management system through CAN communication, and the interval time between adjacent frames is waited; sending a second frame message in the packet, and waiting for the interval time of adjacent frames; and repeating the steps until the last frame of message in the packet is sent, waiting for the maximum value millisecond between the interval of the adjacent frames and the interval of the packet, and starting the next round of packet data sending.

In a preferred embodiment, as shown in fig. 5, the frame cycle transmission mode flow includes: when the messages are sent for the first time, all the messages are sent for the same time, the priorities are arranged, the messages are selected to be sent, the messages from the first frame to the Nth frame are sequentially judged, the message Y which is longest from the last sending time and meets the interval of the messages at a millisecond or more is found, namely, the message Y is sent to a BMS battery management system through CAN communication, and after the sending is completed, the interval of the adjacent frames is waited for a millisecond; and selecting a message to be sent from the priority, and starting to continue round-robin judgment and sending.

As shown in fig. 2, fig. 3, and fig. 4, the step editing is of a step jump type.

Preferably, the type of the step jump is that the step jump continues to be sent circularly or the step jump is completed by circularly sending or the step jump is triggered;

the step skipping continues to circularly transmit: indicating that the next process step is directly jumped, and continuing to circulate if the data frame has circulation;

and the cyclic sending completes the step jump: the next step is skipped after the control step is executed;

the triggering step skips: and if the voltage in the condition for triggering the work step jump is less than 5V jump, executing the work step after the control work step of sending the CAN message.

Preferably, the data content of the next transmission of each frame of message is a message increment sub-process.

As shown in fig. 7, the packet increment sub-process includes the following steps:

firstly, sending an initial message;

the message is increased progressively, and the step length is increased progressively according to the byte sequence and the appointed byte;

judging whether the specified byte data is larger than or equal to the incremental upper limit, and continuing the second step if the specified byte data is not larger than the incremental upper limit;

fourthly, gradually increasing the upper limit message sending.

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.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:电池电压采样时序自动控制系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类