Master-slave communication monitoring method and device for energy storage electric cabinet, computer equipment and storage medium

By differentially processing the access status parameters of the master and slave, and adjusting the communication mode of the energy storage cabinet, the maintenance inconvenience and communication failure caused by the inequality of the lithium battery module address is solved, and the accuracy and efficiency of communication recognition are improved.

CN118945005APending Publication Date: 2024-11-12GUANG DONG GREENWAY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410944750.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The addresses of different lithium batteries/modules in existing energy storage cabinets are not unique, resulting in inconvenient software maintenance, different communication failure identification standards, which affects communication behavior, and the contents of the communication protocol bearers and MCU peripheral characteristics affect communication efficiency.

Method used

By obtaining the master-slave access status parameters and preset parameters of the energy storage cabinet for differential processing, adjusting the communication mode, sending microcontrolled signals to optimize the communication protocol, enabling or disable the communication protocol, and improving the communication recognition accuracy.

Benefits of technology

It effectively improves the communication recognition accuracy of different master and slave machines of energy storage cabinets, simplifies software maintenance, optimizes communication efficiency, and ensures the effectiveness of communication protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945005A_ABST
    Figure CN118945005A_ABST
Patent Text Reader

Abstract

The invention provides an energy storage electric cabinet master-slave communication monitoring method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring master-slave access state parameters of the energy storage electric cabinet; performing switching differential processing on the master-slave access state parameter and a preset access state parameter to obtain a master-slave access difference component; and sending a master-slave micro-control native loss signal to an energy storage communication controller according to the master-slave access difference component. After the access state parameters of the master and slave machines are collected, the current access communication working condition of the master and slave machines of the energy storage electric cabinet is determined, and then the access state parameters of the master and slave machines are compared with standard access parameters; the difference between the current master-slave machine access communication working condition of the energy storage electric cabinet and the standard master-slave machine access communication working condition is conveniently determined, finally, the master-slave machine communication mode of the energy storage communication controller is optimized and adjusted according to the difference value, and the communication identification accuracy of different master-slave machines of the energy storage electric cabinet is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of energy storage communication, and in particular to a method, device, computer equipment and storage medium for monitoring communication between a master and a slave of an energy storage cabinet. Background Art

[0002] At present, IIC (Inter-integrated circuit) bus communication stipulates the use of 7-bit addressing bytes, D7~D1 bits constitute the address of the slave device, D0 bit is the data transmission direction bit, "0" means writing data, and "1" means reading data. Each slave device has a unique 7-bit device address D7~D1 (0~127). The address of each existing slave device (each lithium battery / module) is different. In the device that uses IIC for external communication, there may be multiple IIC hosts. These hosts have different protocol carrying content and different communication failure identification standards. The simulated slave IIC can enable the MCU to communicate with these devices at the same time.

[0003] However, the address of each existing slave device (each lithium battery / module) is different, so even if the same model and the same function lithium battery / module are used, the software of the slave device will be different, resulting in inconvenient maintenance. For example, when the address needs to be modified, all software needs to be modified. For example, in the patent application with application number 201911325607.6, there are too many communication behaviors that need to be identified in the IIC protocol, and there is a problem that different MCU peripheral characteristics and bus environment affect the communication behavior. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a method, device, computer equipment and storage medium for monitoring the communication between the master and slave machines of an energy storage cabinet, which can effectively improve the accuracy of identifying the communication between different master and slave machines.

[0005] The purpose of this disclosure is achieved through the following technical solutions:

[0006] A method for monitoring communication between a master and a slave of an energy storage cabinet, the method comprising:

[0007] Obtain the master and slave access status parameters of the energy storage cabinet;

[0008] Performing differential processing on the master-slave access state parameter and the preset access state parameter to obtain a master-slave access differential component;

[0009] A master-slave microcontroller native enable signal is sent to the energy storage communication controller according to the master-slave access differential component to adjust the master-slave communication mode of the energy storage cabinet.

[0010] In one of the embodiments, obtaining the master-slave access status parameters of the energy storage cabinet includes: obtaining the host access device type of the energy storage cabinet.

[0011] In one embodiment, the differential processing of the master-slave access status parameter and the preset access status parameter to obtain the master-slave access differential component includes: obtaining the difference between the host access device type and the preset host type to obtain the host access class difference.

[0012] In one of the embodiments, sending a master-slave microcontroller native disable signal to the energy storage communication controller according to the master-slave access difference comprises: detecting whether the host access class difference is greater than or equal to a preset host class difference; when the host access class difference is greater than or equal to the preset host class difference, sending a host native disable signal to the energy storage communication controller.

[0013] In one of the embodiments, obtaining the master-slave access status parameter of the energy storage cabinet includes: obtaining the slave access device type of the energy storage cabinet.

[0014] In one embodiment, the step of performing differential processing on the master-slave access state parameter and the preset access state parameter to obtain a master-slave access differential component includes: obtaining a difference between the slave access device type and the preset slave type to obtain a slave access type difference.

[0015] In one embodiment, sending a master-slave microcontroller native enable signal to the energy storage communication controller according to the master-slave access difference component includes: detecting whether the slave access class difference is greater than or equal to a preset slave class difference; when the slave access class difference is less than the preset slave class difference, sending a slave native enable signal to the energy storage communication controller.

[0016] A master-slave communication monitoring device for an energy storage cabinet comprises: a master-slave access acquisition module, a transfer processing module and an access enable / disable module; the master-slave access acquisition module is used to obtain master-slave access state parameters of the energy storage cabinet; the transfer processing module is used to perform transfer differential processing on the master-slave access state parameters and preset access state parameters to obtain a master-slave access differential component; the access enable / disable module is used to send a master-slave microcontroller native enable / disable signal to an energy storage communication controller according to the master-slave access differential component to adjust the master-slave communication mode of the energy storage cabinet.

[0017] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0018] Obtain the master and slave access status parameters of the energy storage cabinet;

[0019] Performing differential processing on the master-slave access state parameter and the preset access state parameter to obtain a master-slave access differential component;

[0020] A master-slave microcontroller native enable signal is sent to the energy storage communication controller according to the master-slave access differential component to adjust the master-slave communication mode of the energy storage cabinet.

[0021] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0022] Obtain the master and slave access status parameters of the energy storage cabinet;

[0023] Performing differential processing on the master-slave access state parameter and the preset access state parameter to obtain a master-slave access differential component;

[0024] A master-slave microcontroller native enable signal is sent to the energy storage communication controller according to the master-slave access differential component to adjust the master-slave communication mode of the energy storage cabinet.

[0025] Compared with the prior art, the present invention has at least the following advantages:

[0026] After collecting the master-slave access status parameters, the current master-slave access communication working status of the energy storage cabinet is determined, and then the master-slave access status parameters are compared with the standard access parameters to facilitate determining the difference between the current master-slave access communication working status of the energy storage cabinet and the standard master-slave access communication working status. Finally, based on the above difference value, the master-slave communication mode of the energy storage communication controller is optimized and adjusted, which effectively improves the accuracy of communication recognition of different master-slave machines in the energy storage cabinet. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present disclosure and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0028] Figure 1 It is a flow chart of a method for monitoring communication between a master and a slave of an energy storage cabinet in one embodiment;

[0029] Figure 2 It is a flow chart of a method for monitoring communication between a master and a slave of an energy storage cabinet in another embodiment;

[0030] Figure 3 1 is a diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0031] In order to facilitate the understanding of the present disclosure, the present disclosure will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present disclosure are given in the drawings. However, the present disclosure can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present disclosure more thoroughly and comprehensively understood.

[0032] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only and do not represent the only implementation method.

[0033] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present disclosure. The terms used herein in the specification of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0034] The present disclosure relates to a method for monitoring the communication between the master and slave machines of an energy storage cabinet. In one embodiment, the method for monitoring the communication between the master and slave machines of the energy storage cabinet includes obtaining the master-slave machine access status parameters of the energy storage cabinet; performing differential processing on the master-slave machine access status parameters and the preset access status parameters to obtain the master-slave access differential component; and sending a master-slave microcontroller native enable signal to the energy storage communication controller according to the master-slave access differential component to adjust the master-slave machine communication mode of the energy storage cabinet. After the master-slave machine access status parameters are collected, the current master-slave machine access communication working condition of the energy storage cabinet is determined, and then the master-slave machine access status parameters are compared with the standard access parameters to facilitate the determination of the difference between the current master-slave machine access communication working condition of the energy storage cabinet and the standard master-slave machine access communication working condition. Finally, according to the above difference value, the master-slave machine communication mode of the energy storage communication controller is optimized and adjusted, which effectively improves the accuracy of communication recognition between different master-slave machines of the energy storage cabinet.

[0035] See also Figure 1 , which is a flow chart of a method for monitoring communication between a master and a slave of an energy storage cabinet according to an embodiment of the present disclosure. The method for monitoring communication between a master and a slave of an energy storage cabinet includes some or all of the following steps.

[0036] S100: Obtain the master and slave access status parameters of the energy storage cabinet.

[0037] In this embodiment, the master-slave access status parameter is the operating status data of the master and slave machines in the energy storage cabinet when they are connected to the cabinet, that is, the master-slave access status parameter is the current master-slave access communication working status of the energy storage cabinet. By collecting the master-slave access status parameter, it is convenient to determine the communication operation status of the master and slave machines in the energy storage cabinet when they are connected to the cabinet.

[0038] S200: performing differential processing on the master-slave access state parameter and the preset access state parameter to obtain a master-slave access differential component.

[0039] In this embodiment, the master-slave access state parameter is the operating state data of the master and slave in the energy storage cabinet when they are connected to the cabinet, that is, the master-slave access state parameter is the current master-slave access communication working condition of the energy storage cabinet. By collecting the master-slave access state parameter, it is convenient to determine the communication operating condition when the master and slave in the energy storage cabinet are connected to the cabinet. The preset access state parameter is the reference operating state data of the master and slave in the energy storage cabinet when they are connected to the cabinet, that is, the preset access state parameter is the standard communication working condition of the master and slave access of the energy storage cabinet. By differentially processing the master-slave access state parameter and the preset access state parameter, it is convenient to determine the degree of difference in the master-slave access communication working condition of the energy storage cabinet.

[0040] S300: Sending a master-slave microcontroller native disable signal to the energy storage communication controller according to the master-slave access differential component to adjust the master-slave communication mode of the energy storage cabinet.

[0041] In this embodiment, the master-slave access differential component is obtained based on the master-slave access state parameter and the preset access state parameter. The master-slave access state parameter is the operating state data of the master and slave in the energy storage cabinet when they are connected to the cabinet, that is, the master-slave access state parameter is the current master-slave access communication working condition of the energy storage cabinet. By collecting the master-slave access state parameter, it is convenient to determine the communication operating condition when the master and slave in the energy storage cabinet are connected to the cabinet. The preset access state parameter is the reference operating state data of the master and slave in the energy storage cabinet when they are connected to the cabinet, that is, the preset access state parameter is the standard communication working condition of the master and slave access of the energy storage cabinet. By performing differential processing on the master-slave access state parameter and the preset access state parameter, it is convenient to determine the degree of difference in the master-slave access communication working condition of the energy storage cabinet. After obtaining the master-slave access differential, the difference in communication status of the current master-slave connection of the energy storage cabinet can be determined, so that it is convenient to send a master-slave microcontroller native enable / disable signal to the energy storage communication controller to adjust the communication status of the currently connected master-slave of the energy storage cabinet to the enable or disable state of the native communication protocol, thereby facilitating the adjustment of the master-slave communication mode of the energy storage cabinet to the corresponding communication protocol.

[0042] In the above embodiment, after the master-slave access state parameters are collected, the current master-slave access communication working condition of the energy storage cabinet is determined, and then the master-slave access state parameters are compared with the standard access parameters to facilitate determining the difference between the current master-slave access communication working condition of the energy storage cabinet and the standard master-slave access communication working condition. Finally, based on the above difference value, the master-slave communication mode of the energy storage communication controller is optimized and adjusted, which effectively improves the accuracy of communication identification of different master-slave machines in the energy storage cabinet.

[0043] In one of the embodiments, the acquisition of the master-slave access status parameters of the energy storage cabinet includes: acquiring the host access device type of the energy storage cabinet. In this embodiment, the master-slave access status parameters are the operating status data of the master and slave access cabinet in the energy storage cabinet, that is, the master-slave access status parameters are the current master-slave access communication working conditions of the energy storage cabinet. By collecting the master-slave access status parameters, it is convenient to determine the communication operation conditions when the master and slave in the energy storage cabinet are accessed to the cabinet. The master-slave access status parameters include the host access device type of the energy storage cabinet, and the host access device type is the access host type corresponding to the energy storage cabinet when the device is accessed, that is, the host access device type is the model of the host access device in the energy storage cabinet. By collecting the host access device type, it is convenient to determine the communication protocol corresponding to the host access device in the energy storage cabinet.

[0044] Further, the master-slave access state parameter and the preset access state parameter are subjected to differential processing to obtain the master-slave access differential component, including: obtaining the difference between the host access device type and the preset host type to obtain the host access type difference. In this embodiment, the master-slave access state parameter is the operating state data of the master-slave access cabinet in the energy storage cabinet, that is, the master-slave access state parameter is the current master-slave access communication working condition of the energy storage cabinet. By collecting the master-slave access state parameter, it is convenient to determine the communication operating condition of the master-slave access cabinet in the energy storage cabinet. The preset access state parameter is the reference operating state data of the master-slave access cabinet in the energy storage cabinet, that is, the preset access state parameter is the standard communication working condition of the master-slave access of the energy storage cabinet. By conducting differential processing on the master-slave access state parameter and the preset access state parameter, it is convenient to determine the degree of difference in the master-slave access communication working condition of the energy storage cabinet. The master-slave access status parameter includes the host access device type of the energy storage cabinet. The host access device type is the access host type corresponding to the energy storage cabinet when accessing the device, that is, the host access device type is the model of the host device connected to the energy storage cabinet. By collecting the host access device type, it is convenient to determine the communication protocol corresponding to the host device connected to the energy storage cabinet. After obtaining the difference between the host access device type and the preset host type, the degree of difference between the communication protocol of the host device connected to the energy storage cabinet and the standard communication protocol.

[0045] Furthermore, the sending of the master-slave microcontroller native disabling signal to the energy storage communication controller according to the master-slave access difference component includes: detecting whether the host access class difference is greater than or equal to the preset host class difference; when the host access class difference is greater than or equal to the preset host class difference, sending the host native disabling signal to the energy storage communication controller. In this embodiment, the master-slave access difference component is obtained based on the master-slave access state parameter and the preset access state parameter, and the master-slave access state parameter is the operating state data of the master and slave access cabinet in the energy storage cabinet, that is, the master-slave access state parameter is the current master-slave access communication working condition of the energy storage cabinet, and by collecting the master-slave access state parameter, it is convenient to determine the communication operating condition of the master and slave access cabinet in the energy storage cabinet. The preset access state parameter is the reference operating state data of the master and slave access cabinet in the energy storage cabinet, that is, the preset access state parameter is the standard communication working condition of the master and slave access of the energy storage cabinet. By performing differential processing on the master-slave access state parameter and the preset access state parameter, it is convenient to determine the difference degree of the master-slave access communication work of the energy storage cabinet. After obtaining the master-slave access differential, the difference in the communication state of the current master-slave access of the energy storage cabinet can be determined, so that it is convenient to send a master-slave microcontroller native enable / disable signal to the energy storage communication controller to adjust the enable or disable state of the native communication protocol of the currently accessed master-slave communication state of the energy storage cabinet, and then it is convenient to adjust the master-slave communication mode of the energy storage cabinet to the corresponding communication protocol. The master-slave access state parameter includes the host access device type of the energy storage cabinet, and the host access device type is the access host type corresponding to the energy storage cabinet when the device is accessed, that is, the host access device type is the model of the host device accessed in the energy storage cabinet. By collecting the host access device type, it is convenient to determine the communication protocol corresponding to the access host device in the energy storage cabinet. After obtaining the difference between the host access device type and the preset host type, the degree of difference between the communication protocol of the host device accessed in the energy storage cabinet and the standard communication protocol. The host access class difference is greater than or equal to the preset host class difference, indicating that the communication protocol of the host device accessed in the energy storage cabinet is different, that is, it indicates that the communication protocol of the host device accessed in the energy storage cabinet fails to communicate with the original communication. By sending a host native failure signal to the energy storage communication controller, the communication protocol of the accessed host is used to ensure that the communication protocol of the host device accessed in the energy storage cabinet is valid for the original slave communication.

[0046] In another embodiment, when the host access class difference is less than the preset host class difference, a host native enable signal is sent to the energy storage communication controller to enable the original communication protocol of the energy storage cabinet to ensure normal communication between the connected host and the original slave device.

[0047] In one of the embodiments, the acquisition of the master-slave access status parameters of the energy storage cabinet includes: acquiring the slave access device type of the energy storage cabinet. In this embodiment, the master-slave access status parameters are the operating status data of the master and slave access cabinet in the energy storage cabinet, that is, the master-slave access status parameters are the current master-slave access communication working conditions of the energy storage cabinet. By collecting the master-slave access status parameters, it is convenient to determine the communication operation conditions when the master and slave in the energy storage cabinet are accessed. The master-slave access status parameters include the slave access device type of the energy storage cabinet, and the slave access device type is the corresponding access slave type of the energy storage cabinet when the device is accessed, that is, the slave access device type is the model of the slave device accessed in the energy storage cabinet. By collecting the slave access device type, it is convenient to determine the communication protocol corresponding to the slave device accessed in the energy storage cabinet.

[0048] Further, the master-slave access state parameter and the preset access state parameter are subjected to differential processing to obtain the master-slave access differential component, including: obtaining the difference between the slave access device type and the preset slave type to obtain the slave access type difference. In this embodiment, the master-slave access state parameter is the operating state data of the master-slave access cabinet in the energy storage cabinet, that is, the master-slave access state parameter is the current master-slave access communication working condition of the energy storage cabinet. By collecting the master-slave access state parameter, it is convenient to determine the communication operating condition of the master-slave access cabinet in the energy storage cabinet. The preset access state parameter is the reference operating state data of the master-slave access cabinet in the energy storage cabinet, that is, the preset access state parameter is the standard communication working condition of the master-slave access of the energy storage cabinet. By conducting differential processing on the master-slave access state parameter and the preset access state parameter, it is convenient to determine the degree of difference in the master-slave access communication working condition of the energy storage cabinet. The master-slave access state parameter includes the slave access device type of the energy storage cabinet, and the slave access device type is the access slave type corresponding to the energy storage cabinet when accessing the device, that is, the slave access device type is the model of the slave device connected in the energy storage cabinet. By collecting the slave access device type, it is convenient to determine the communication protocol corresponding to the slave device connected in the energy storage cabinet. After obtaining the difference between the slave access device type and the preset slave type, the degree of difference between the communication protocol of the slave device connected in the energy storage cabinet and the standard communication protocol.

[0049] Furthermore, the sending of the master-slave microcontroller native enable signal to the energy storage communication controller according to the master-slave access difference component includes: detecting whether the slave access class difference is greater than or equal to the preset slave class difference; when the slave access class difference is less than the preset slave class difference, sending the slave native enable signal to the energy storage communication controller. In this embodiment, the master-slave access difference component is obtained based on the master-slave access state parameter and the preset access state parameter, and the master-slave access state parameter is the operating state data of the master and slave access cabinet in the energy storage cabinet, that is, the master-slave access state parameter is the current master-slave access communication working condition of the energy storage cabinet, and by collecting the master-slave access state parameter, it is convenient to determine the communication operating condition of the master and slave access cabinet in the energy storage cabinet. The preset access state parameter is the reference operating state data of the master and slave access cabinet in the energy storage cabinet, that is, the preset access state parameter is the standard communication working condition of the master and slave access of the energy storage cabinet. By performing differential processing on the master-slave access state parameter and the preset access state parameter, it is convenient to determine the difference degree of the master-slave access communication work of the energy storage cabinet. After obtaining the master-slave access differential, the difference in the communication state of the current master-slave access of the energy storage cabinet can be determined, so that it is convenient to send a master-slave microcontroller native enable / disable signal to the energy storage communication controller to adjust the enable or disable state of the native communication protocol of the currently accessed master-slave communication state of the energy storage cabinet, and then it is convenient to adjust the master-slave communication mode of the energy storage cabinet to the corresponding communication protocol. The master-slave access state parameter includes the slave access device type of the energy storage cabinet, and the slave access device type is the corresponding access slave type of the energy storage cabinet when the device is accessed, that is, the slave access device type is the access slave device model in the energy storage cabinet. By collecting the slave access device type, it is convenient to determine the communication protocol corresponding to the access slave device in the energy storage cabinet. After obtaining the difference between the slave access device type and the preset slave type, the degree of difference between the communication protocol of the slave device accessed in the energy storage cabinet and the standard communication protocol. The slave access type difference is less than the preset slave type difference, indicating that the communication protocol of the slave device accessed in the energy storage cabinet is the same, that is, it indicates that the communication protocol of the slave device accessed in the energy storage cabinet is valid with the native communication, and the communication protocol of the original host is used by sending a host native enable signal to the energy storage communication controller to ensure that the communication protocol of the slave device accessed in the energy storage cabinet is valid with the original host communication.

[0050] In another embodiment, when the slave access class difference is greater than or equal to the preset slave class difference, a slave native disable signal is sent to the energy storage communication controller to shut down the communication protocol of the access slave of the energy storage cabinet, and communicate with the communication protocol of the original host of the energy storage cabinet to ensure that the accessed slave communicates normally with the original host device.

[0051] In the actual communication simulation process of the host and slave of the energy storage cabinet, the IIC external communication protocol is usually used. The identification and processing methods of various frame structures in the IIC protocol include: frame start signal, host addressing read and write signal, host write signal, host read signal, and end signal. When connecting to the host or slave, interference by other signals often occurs, which easily leads to the corresponding PIN foot misdetecting the communication signal of the IIC protocol, and then leads to poor communication response efficiency between the master and slave.

[0052] In order to improve the communication response efficiency between the master and slave machines, the master-slave microcontroller native enable signal is sent to the energy storage communication controller according to the master-slave access differential component to adjust the master-slave communication mode of the energy storage cabinet, and then further includes:

[0053] Get the serial data interrupt value of the energy storage cabinet;

[0054] Detecting whether the serial data interruption value is greater than a preset serial data falling edge value;

[0055] When the serial data interrupt value is greater than the preset serial data falling edge value, return to the previous step and send a reconfiguration data signal to the energy storage communication controller to reconfigure the serial data falling edge interrupt communication mode.

[0056] In this embodiment, the serial data interrupt value is the interrupt detection data corresponding to the serial data line after the master and slave machines of the energy storage cabinet are connected, that is, the serial data interrupt value is the interrupt signal parameter corresponding to the level change of the serial data line after the master and slave machines of the energy storage cabinet are connected. The preset serial data falling edge value is the data corresponding to the falling edge interruption of the serial data line after the master and slave machines of the energy storage cabinet are connected. The serial data interrupt value is greater than the preset serial data falling edge value, indicating that the serial data line interruption after the master and slave machines of the energy storage cabinet are connected is in a rising edge state. At this time, the interrupt communication of the energy storage cabinet is not turned on or has ended, and re-detection is required. By sending a reconfiguration data signal to the energy storage communication controller to reconfigure the serial data falling edge interrupt communication mode, it is convenient to re-determine the interrupt edge change of the serial data line after the master and slave machines of the energy storage cabinet are connected.

[0057] Further, the detecting whether the serial data interruption value is greater than a preset serial data falling edge value further includes:

[0058] When the serial data interruption value is less than or equal to the preset serial data falling edge value, obtaining the serial clock timing level of the energy storage cabinet;

[0059] Detecting whether the serial clock timing level is less than or equal to a preset serial clock level;

[0060] When the serial clock timing level is less than or equal to the preset serial clock level, a clock up and data down signal is sent to the energy storage communication controller.

[0061] In this embodiment, the serial data interruption value is less than or equal to the preset serial data falling edge value, indicating that the serial data line interruption after the master and slave machines of the energy storage cabinet are connected is in a falling edge state, and at this time, the serial data of the master and slave machines of the energy storage cabinet are in the starting state. The collected serial clock timing level is the level corresponding to the serial clock line of the master and slave of the energy storage cabinet. The preset serial clock level is the corresponding level of the standard serial clock signal in the initial stage of the master and slave communication protocol of the energy storage cabinet. The serial clock timing level is less than or equal to the preset serial clock level, indicating that the level corresponding to the serial clock line of the master and slave of the energy storage cabinet changes within the specified time, that is, it indicates that the level of the serial clock line of the master and slave of the energy storage cabinet decreases within the specified time. Specifically, the IIC protocol communication of the energy storage cabinet is currently in the idle stage, and the serial clock line of the master and slave becomes a low level within 4.7μS. At this time, a clock up and data down signal is sent to the energy storage communication controller to enable the rising edge interrupt communication of the serial clock line of the master and slave, and disable the falling edge interrupt communication of the serial data line of the master and slave, so as to facilitate the identification of whether the PIN pin that triggers the interrupt is a communication pin, thereby effectively improving the interrupt management response rate of the IIC protocol communication of the energy storage cabinet.

[0062] In another embodiment, when the serial clock timing level is greater than the preset serial clock level, the serial data interruption value of the energy storage cabinet is returned and re-acquired, and the above steps need to be repeated.

[0063] Furthermore, when the serial clock timing level is less than or equal to the preset serial clock level, a clock up and data down signal is sent to the energy storage communication controller, and then it also includes:

[0064] Get the serial clock interrupt value of the energy storage cabinet;

[0065] Detecting whether the serial clock interrupt value is greater than a preset serial clock rising edge value;

[0066] When the serial clock interrupt value is greater than the preset serial clock rising edge value, an addressing read-write signal is sent to the energy storage communication controller.

[0067] In this embodiment, the serial clock interrupt value is the interrupt detection data corresponding to the serial clock line after the master and slave machines of the energy storage cabinet are connected, that is, the serial clock interrupt value is the interrupt signal parameter corresponding to the change in the level of the serial clock line after the master and slave machines of the energy storage cabinet are connected. The preset serial clock rising edge value is the data corresponding to the rising edge interrupt of the serial clock line after the master and slave machines of the energy storage cabinet are connected. The serial clock interrupt value is greater than the preset serial clock rising edge value, indicating that the serial clock line interrupt after the master and slave machines of the energy storage cabinet are connected is in a rising edge state. At this time, the interrupt communication of the energy storage cabinet has been started, and the addressing read and write signals are sent to the energy storage communication controller to facilitate the host addressing, shift sending and host writing operations, so as to facilitate the establishment of communication between the master and slave machines.

[0068] In another embodiment, when the serial clock interrupt value is less than or equal to the preset serial clock rising edge value, return to the previous step and re-acquire the serial clock interrupt value of the energy storage cabinet. For details, see Figure 2 .

[0069] The above-mentioned various preset variables are all set in the database for timely retrieval, and different preset variables are placed in different storage units, that is, in different storage stacks. Moreover, the serial data interrupt value, serial clock timing level and serial clock interrupt value can be collected through corresponding detectors, for example, through the interrupt manager in the master-slave access acquisition module.

[0070] In one of the embodiments, the present disclosure also relates to a master-slave communication monitoring device of an energy storage cabinet, comprising: a master-slave access acquisition module, a transfer processing module and an access enable / disable module; the master-slave access acquisition module is used to obtain the master-slave access status parameters of the energy storage cabinet; the transfer processing module is used to perform transfer differential processing on the master-slave access status parameters and preset access status parameters to obtain a master-slave access differential component; the access enable / disable module is used to send a master-slave microcontroller native enable / disable signal to the energy storage communication controller according to the master-slave access differential component to adjust the master-slave communication mode of the energy storage cabinet.

[0071] In this embodiment, after the master-slave access acquisition module collects the master-slave access state parameters, the current master-slave access communication working status of the energy storage cabinet is determined, and then the transfer processing module compares the master-slave access state parameters with the standard access parameters to facilitate determining the difference between the current master-slave access communication working status of the energy storage cabinet and the standard master-slave access communication working status. Finally, the access loss module optimizes and adjusts the master-slave communication mode of the energy storage communication controller according to the above difference value, effectively improving the accuracy of identifying different master-slave communications of the energy storage cabinet.

[0072] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as master-slave access state parameters, master-slave access differential components, and master-slave microcontroller native loss signals. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a master-slave communication monitoring method for an energy storage cabinet is implemented.

[0073] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0074] In one of the embodiments, the present application further provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0075] In one of the embodiments, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0076] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0077] The above-mentioned embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the patent of the present disclosure shall be based on the attached claims.

Claims

1. A method for monitoring communication between a master and a slave of an energy storage cabinet, characterized in that: include: Obtain the master and slave access status parameters of the energy storage cabinet; Performing differential processing on the master-slave access state parameter and the preset access state parameter to obtain a master-slave access differential component; A master-slave microcontroller native enable signal is sent to the energy storage communication controller according to the master-slave access differential component to adjust the master-slave communication mode of the energy storage cabinet.

2. The energy storage cabinet master-slave communication monitoring method according to claim 1 is characterized in that: The obtaining of the master-slave access status parameters of the energy storage cabinet includes: Obtain the host access device type of the energy storage cabinet.

3. The energy storage cabinet master-slave communication monitoring method according to claim 2 is characterized in that: The step of performing differential processing on the master-slave access state parameter and the preset access state parameter to obtain a master-slave access differential component includes: The difference between the host access device type and the preset host type is calculated to obtain a host access class difference.

4. The energy storage cabinet master-slave communication monitoring method according to claim 3 is characterized in that: The sending of a master-slave microcontroller native disable signal to the energy storage communication controller according to the master-slave access differential component includes: Detecting whether the host access class difference is greater than or equal to a preset host class difference; When the host access class difference is greater than or equal to the preset host class difference, a host native disable signal is sent to the energy storage communication controller.

5. The energy storage cabinet master-slave communication monitoring method according to claim 1 is characterized in that: The obtaining of the master-slave access status parameters of the energy storage cabinet includes: Obtain the slave access device type of the energy storage cabinet.

6. The energy storage cabinet master-slave communication monitoring method according to claim 5 is characterized in that: The step of performing differential processing on the master-slave access state parameter and the preset access state parameter to obtain a master-slave access differential component includes: The difference between the slave access device type and the preset slave type is calculated to obtain the slave access class difference.

7. The energy storage cabinet master-slave communication monitoring method according to claim 6 is characterized in that: The sending of a master-slave microcontroller native disable signal to the energy storage communication controller according to the master-slave access differential component includes: Detecting whether the slave access class difference is greater than or equal to a preset slave class difference; When the slave access class difference is less than the preset slave class difference, a slave native enable signal is sent to the energy storage communication controller.

8. A master-slave communication monitoring device for an energy storage cabinet, characterized in that: include: A master-slave access acquisition module, which is used to obtain master-slave access status parameters of the energy storage cabinet; A transfer processing module, the transfer processing module is used to perform transfer difference processing on the master-slave access state parameter and the preset access state parameter to obtain a master-slave access difference component; The access enable / disable module is used to send a master-slave microcontroller native enable / disable signal to the energy storage communication controller according to the master-slave access differential component to adjust the master-slave communication mode of the energy storage cabinet.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.