communication control method of intelligent power exchange cabinet
Technical Field
the invention relates to the technical field of battery management, in particular to a communication control method of an intelligent power exchange cabinet.
background
along with the increase of electric motor cars, people are also more and more to the user demand of electric motor car battery, if charge with the charger at home every day, not only speed is slow, and receive the place, many-sided restriction such as environment, it is very inconvenient to use, especially to the courier who often uses the electric motor car, send takeaway personnel etc., quick convenient trade battery is the biggest guarantee that improves its work efficiency by accident, then, trade the cabinet and just should transport to come, it can solve electric motor car user's trade battery demand, satisfy people to the needs of convenient trade battery, but in prior art, because the battery of trading the cabinet borrows still and the charge management is not scientific enough, especially communication mode is more complicated, can not satisfy the demand of simple and easy operation, simple and easy management.
Accordingly, there is a need in the art for improvements.
disclosure of Invention
the technical problem to be solved by the embodiment of the invention is as follows: the communication control method of the intelligent power exchange cabinet is provided to solve the problems in the prior art.
According to one aspect of the embodiment of the invention, a communication control method of an intelligent power exchange cabinet is disclosed, which comprises the following steps:
the control panel is communicated with the relay panel and the server side through a CAN bus communication protocol;
the control panel is in data communication with the lithium battery through the one-wire universal asynchronous receiver/transmitter (UART) communication control unit bin and reads the lithium battery data;
the control panel uploads the lithium battery data to the server side through the relay board.
In another embodiment of the communication control method for the intelligent power exchange cabinet according to the present invention, the converting of the first line to the UART communication includes:
firstly, the UART bus is pulled down for 2 seconds, the unit bin and the lithium battery keep a set baud rate, a communication line is activated, and single-wire to serial-port communication is completed;
and if no data interaction exists within 10 seconds, automatically jumping to a single line mode, otherwise, continuously interacting the data.
In another embodiment of the communication control method for the intelligent power distribution cabinet, the data communication between the unit bin and the lithium battery includes:
The unit bin and the lithium battery are in communication connection through a one-line universal UART communication mode;
The unit bin sends a data reading instruction to the lithium battery;
the lithium battery uploads data to the unit bin;
and the data uploading is finished, and the unit bin stores the data into the storage area and uploads the data to the A0 address of the CAN protocol.
in another embodiment of the communication control method for the intelligent power distribution cabinet according to the present invention, the method further includes:
the control panel carries out data communication with the lithium cell through one-line expert commentaries on classics UART communication control multiunit storehouse, reads lithium cell data.
In another embodiment of the communication control method for the intelligent power exchange cabinet according to the present invention, the control board controls the multiple unit bins and the lithium battery to perform data communication through a one-line universal asynchronous receiver/transmitter (UART) communication, and reading the lithium battery data includes:
The CAN shielding devices of all the unit bins are set into a uniform remote frame format, and 10ms interval response time delay is carried out on the code ID of each unit bin;
the control board receives a remote frame which CAN pass through the CAN shielding device;
the control board inquires a local empty buffer area and returns an address;
The relay board broadcasts remote frame data of the A0 address once every 500 milliseconds, wherein the remote frame data comprises the state of a unit bin, the temperature in the bin, a process state code, SOC/SOH data of a battery and error code parameters of the battery;
the relay board broadcasts the remote frame data of the address A1 once every 2.4 seconds, wherein the remote frame data comprises the voltage value of a lithium battery;
The relay board broadcasts the remote frame data of the address A2 once every 5 seconds, including version information;
The relay board broadcasts the remote frame data of the read A3 address once every 3.1 seconds, including the electric meter data;
Each bin delays the data up to the relay board at 10 msec intervals based on its ID.
In another embodiment of the communication control method for the intelligent power distribution cabinet according to the present invention, the method further includes:
the control panel is communicated with the lithium battery through a universal serial bus-to-universal asynchronous receiver/transmitter (UART) communication control unit bin to perform battery replacement service communication.
in another embodiment of the communication control method for the intelligent power exchange cabinet according to the present invention, the performing of power exchange service communication between the control board and the lithium battery through the one-wire switch UART communication control unit cabin includes:
each unit bin sets a unique identifier which CAN pass through the CAN shielding device according to the ID of the code of the unit bin, and the relay board issues a specific frame ID and a corresponding instruction;
the control board receives a data frame which CAN pass through the CAN shielding device;
the CAN receives and interrupts the process, rechecks the data filtered by the CAN shielding device, reads the effective data and stores the effective data in an empty buffer area;
when the battery returning operation is carried out, the control panel sends a battery replacing instruction, the writing operation is carried out on an A0 address, and the cell bin is controlled to carry out the battery returning process;
when the battery borrowing operation is carried out, the control panel sends a battery borrowing instruction, the writing operation is carried out on the address A0, and the cell bin is controlled to carry out the battery borrowing process;
When the lamp writing operation is carried out, the control panel sends a lamp writing instruction, the writing operation is carried out on an A3 address, and the lamp is controlled to be turned off at fixed time and to be turned off at fixed time.
Compared with the prior art, the invention has the following advantages:
The communication control method of the intelligent power switching cabinet carries out communication of the control panel, the relay board and the server through the CAN communication protocol, uses one-wire universal asynchronous receiver/transmitter (UART) communication to carry out data communication with the lithium battery of the knight, reads related data of the battery, carries out data conversion, communicates with the relay board through the CAN protocol, uploads the data to the server, uses I2C bus communication and the like, and accordingly a stable communication network of the intelligent power switching cabinet is formed.
Drawings
in order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description will be given below of the drawings used in the description of the embodiments or the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
fig. 1 is a flow chart of an embodiment of a communication control method of an intelligent power distribution cabinet of the present invention.
Detailed Description
in order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
the communication control method of the intelligent power transformation cabinet provided by the invention is described in more detail below with reference to the accompanying drawings and embodiments.
Fig. 1 is a flowchart of an embodiment of a communication control method of an intelligent power distribution cabinet according to the present invention, and as shown in fig. 1, the communication control method of the intelligent power distribution cabinet of the embodiment includes:
10, the control board communicates with the relay board and the server side through a CAN bus communication protocol;
20, the control board performs data communication with the lithium battery through a one-line universal UART communication control unit bin and reads the lithium battery data;
and 30, the control panel uploads the lithium battery data to the server through the relay board.
the one-line universal UART communication comprises:
Firstly, the UART bus is pulled down for 2 seconds, the unit bin and the lithium battery keep a set baud rate, a communication line is activated, and single-wire to serial-port communication is completed;
and if no data interaction exists within 10 seconds, automatically jumping to a single line mode, otherwise, continuously interacting the data.
the unit storehouse includes with lithium cell data communication:
the unit bin and the lithium battery are in communication connection through a one-line universal UART communication mode;
the unit bin sends a data reading instruction to the lithium battery;
the lithium battery uploads data to the unit bin;
and the data uploading is finished, and the unit bin stores the data into the storage area and uploads the data to the A0 address of the CAN protocol.
and 40, the control panel controls the multiple groups of unit bins and the lithium battery to carry out data communication through one-line communication to UART communication, and reads lithium battery data.
the control panel carries out data communication with the lithium cell through an online UART communication control multiunit storehouse of expert, reads lithium cell data and includes:
the CAN shielding devices of all the unit bins are set into a uniform remote frame format, and 10ms interval response time delay is carried out on the code ID of each unit bin;
The control board receives a remote frame which CAN pass through the CAN shielding device;
the control board inquires a local empty buffer area and returns an address;
The relay board broadcasts remote frame data of the A0 address once every 500 milliseconds, wherein the remote frame data comprises the state of a unit bin, the temperature in the bin, a process state code, SOC/SOH data of a battery and error code parameters of the battery;
the relay board broadcasts the remote frame data of the address A1 once every 2.4 seconds, wherein the remote frame data comprises the voltage value of a lithium battery;
the relay board broadcasts the remote frame data of the address A2 once every 5 seconds, including version information;
the relay board broadcasts the remote frame data of the read A3 address once every 3.1 seconds, including the electric meter data;
Each bin delays the data up to the relay board at 10 msec intervals based on its ID.
and 50, the control panel is communicated with the lithium battery through a universal asynchronous receiver/transmitter (UART) communication control unit bin to perform battery replacement service communication.
the control panel trades electric service communication through a ray of logical UART communication control unit storehouse and lithium cell and includes:
each unit bin sets a unique identifier which CAN pass through the CAN shielding device according to the ID of the code of the unit bin, and the relay board issues a specific frame ID and a corresponding instruction;
The control board receives a data frame which CAN pass through the CAN shielding device;
The CAN receives and interrupts the process, rechecks the data filtered by the CAN shielding device, reads the effective data and stores the effective data in an empty buffer area;
when the battery returning operation is carried out, the control panel sends a battery replacing instruction, the writing operation is carried out on an A0 address, and the cell bin is controlled to carry out the battery returning process;
When the battery borrowing operation is carried out, the control panel sends a battery borrowing instruction, the writing operation is carried out on the address A0, and the cell bin is controlled to carry out the battery borrowing process;
when the lamp writing operation is carried out, the control panel sends a lamp writing instruction, the writing operation is carried out on an A3 address, and the lamp is controlled to be turned off at fixed time and to be turned off at fixed time.
The communication control method of the intelligent power exchange cabinet provided by the invention is described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments or portions thereof without departing from the spirit and scope of the invention.