Communication method of charger communication protocol

By setting the UART protocol packet format and message type in the charging communication protocol, the problem of unclear content and difficulty in identifying abnormalities between the two parties of the communication is solved, effective communication and energy allocation of the charger are realized, and charging efficiency and user experience are improved.

CN118972378AInactive Publication Date: 2024-11-15SHENZHEN AUTOOL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411019187.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing charging communication protocol, the content of the protocol packet sent by both parties to the communication is unclear and abnormal situations cannot be identified as soon as possible, resulting in users being unable to effectively allocate energy, affecting charging efficiency and equipment usage experience.

Method used

By setting the UART protocol packet format, the message types are divided into control messages, system messages, reporting messages and charger status messages, and the corresponding protocol packets are transmitted between the chargers to ensure the effectiveness between the main control board and the slave control board Communication, deal with abnormal situations in a timely manner.

Benefits of technology

It realizes rapid analysis and abnormal reporting of the content of the protocol package, ensures that the charger performs operations according to instructions, optimizes charging efficiency and battery life, promptly notifies users of charging information, identify energy sources, and improves energy utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972378A_ABST
    Figure CN118972378A_ABST
Patent Text Reader

Abstract

The invention discloses a communication method of a charger communication protocol, which relates to the technical field of charger communication, and comprises the following steps: S1, setting a UART (Universal Asynchronous Receiver / Transmitter) protocol packet format, S2, dividing message types, S3, transmitting a control message protocol packet, S4, transmitting other message protocol packets, S5, receiving a control instruction and S6, receiving other instructions. According to the invention, the content contained in the packet when the sender sends each request protocol packet is elaborated in detail, and the receiver returns the corresponding data packet according to the requested content after receiving the request protocol packet. And meanwhile, charging parameters are monitored and adjusted in real time by using a control message, a system message, a report message, a specific request packet and a charger state message, so that the charging efficiency and the service life of the battery are optimized, the battery state is known, a user can be timely notified of charging related information subsequently, an energy source identification type can be determined, and the user experience is improved. Energy is efficiently allocated according to actual needs of users, waste is avoided, and the overall energy utilization efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of charger communication, and in particular to a communication method of a charger communication protocol. Background Art

[0002] At a time when science and technology are advancing rapidly and environmental problems are becoming increasingly severe, the combination of smart AI mobile devices and green new energy charging technology is bringing profound changes to our lives. This combination not only improves the user experience of smart mobile devices, but also provides new solutions for environmental protection and sustainable use of energy. In the invention patent with application number 202110883925.5, "a charging communication protocol framework for electric vehicles and non-onboard chargers and its implementation method are disclosed, including multiple ordered functional modules: version negotiation, function negotiation, parameter configuration, authentication, reservation, charging system self-test, pre-charging and energy transmission, and charging end; the charging communication protocol consists of all required functional modules in the framework and zero or more optional functional modules, and supports one or more application instances of overloadable functional modules; different versions of communication protocols can support different optional functional modules and different application instances of overloadable functional modules; vehicles and chargers that follow a specific version of the communication protocol can implement all or part of the functions supported by the version of the communication protocol according to their own implementation conditions and requirements; through version negotiation, function negotiation, and flexible configuration of optional functional modules and overloadable functional modules, the charging communication protocol meets the requirements for compatibility, scalability, and flexibility.";

[0003] The above-mentioned prior art solves the problem that the vehicle cannot complete the version identification of the charger due to the asymmetric version information obtained by the charging parties. However, during use, the content contained in the different protocol packages sent by the communicating parties is not clear. At the same time, when receiving instructions, the corresponding operations are not performed according to the instructions, and the abnormal conditions of the communicating parties cannot be reported in the first time, nor can the identification type of the current charging energy source be determined, resulting in the user being unable to allocate energy according to actual needs. Summary of the invention

[0004] The object of the present invention is to provide a communication method of a charger communication protocol to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: a communication method of a charger communication protocol, comprising the following steps:

[0006] S1. Set the UART protocol packet format: set the protocol header, protocol length, packet sequence number, function code, data point set and byte sequence number corresponding to the check code in the UART protocol packet;

[0007] S2. Classify message types: The transmitted messages are divided into four types, namely control messages, system messages, report messages, specific request packets and charger status messages;

[0008] S3, transmission control message protocol packet: when the main control board sends a request control message related protocol packet, the slave control board receives the corresponding protocol packet using the UART interface, and the returned data packet is transmitted to the main control board;

[0009] S4, transmission of other message protocol packets: the slave control board sends a function failure to start the protocol packet, the master control board receives the protocol packet using the UART interface, and the returned data packet contains the reported SN code and the known information of the master control board. The master control board sends a request to obtain the charging mode protocol packet, the slave control board receives the protocol packet using the UART interface, and the returned data packet contains the charging mode type;

[0010] S5, receiving control instructions: after receiving the control instructions through the charger, the corresponding operation is performed according to the control instructions. When the charger receives the battery detection instruction, the test range is first selected for the rechargeable battery, and the temperature, voltage, current and internal resistance of the rechargeable battery are read. When the charger receives the forced start instruction, the 400A current provided by the charger is directly transmitted to the vehicle;

[0011] S6. Receive other instructions: When the charger slave detects a known abnormality, it generates an abnormal communication protocol packet based on the known abnormality and transmits it to the host. The host sends a heartbeat message to the slave every second. If the host does not receive the message returned by the slave within three seconds, it will be processed according to the known abnormality.

[0012] Preferably, step S2 comprises the following steps:

[0013] S201, dividing the transmitted messages into four types, namely control messages, system messages, report messages, specific request packets and charger status messages;

[0014] S202, control messages include battery detection, programming power, battery repair, forced start, battery charging, battery type change, battery voltage type change, stop battery detection, stop programming battery, stop battery repair, stop forced start, stop battery charging and initialization functions.

[0015] Preferably, the step S2 further comprises the following steps:

[0016] S203, system messages include heartbeat messages, power-on communication, power-off communication and abnormal communication, and reported messages include function failure to start normally, device access report and slave abnormal alarm;

[0017] S204, the specific request packet includes obtaining the battery temperature, obtaining the battery voltage and obtaining the battery current, and the charger status message is to obtain the current charging mode.

[0018] Preferably, the step S3 specifically includes the following steps:

[0019] S301, the main control board sends a request battery detection protocol packet, wherein the request battery detection protocol packet contains information related to battery voltage type, capacity and brand type, and after the slave control board receives the protocol packet using the UART interface, the returned data packet contains temperature, voltage, current, internal resistance and battery type data during battery detection;

[0020] S302, the main control board sends a request programming power protocol packet, wherein the request programming power protocol packet includes voltage data of the rechargeable battery, and after receiving the protocol packet from the control board, the returned data packet includes voltage and current data of the rechargeable battery;

[0021] S303, when the main control board sends a battery repair request protocol packet and a forced start request packet, the slave control board receives the protocol packet using the UART interface, and the returned data packet contains the voltage and current data of the rechargeable battery;

[0022] S304, the main control board sends a charging request protocol packet, wherein the charging request protocol packet includes battery brand type data, and after the control board receives the protocol packet using the UART interface, the returned data packet includes the voltage and current data of the rechargeable battery.

[0023] Preferably, the step S3 specifically further comprises the following steps:

[0024] S305, the main control board sends a battery type change request protocol packet, wherein the battery type change request protocol packet includes the original battery type and the changed battery type, and the slave control board receives the protocol packet using the UART interface, and the returned data packet includes successful change information;

[0025] S306, the main control board sends a voltage type change request protocol packet, wherein the voltage type change request protocol packet includes the original voltage type and the changed voltage type, and the slave control board receives the protocol packet using the UART interface, and the returned data packet includes successful change information;

[0026] S307, the main control board sends a stop request protocol packet, wherein the stop request protocol packet includes a shutdown operation name, and the slave control board receives the protocol packet using the UART interface, and the returned data packet includes successful change information;

[0027] S308, the main control board sends a request initialization function protocol packet, wherein the request initialization function protocol packet includes battery type, battery voltage default type and battery shutdown data, and the control board receives the protocol packet using the UART interface, and the returned data packet contains successful change information.

[0028] Preferably, the step S4 specifically includes the following steps:

[0029] S401, the slave control board sends a protocol packet indicating that the function cannot be started normally, wherein the protocol packet indicating that the function cannot be started normally includes an error type, and the master control board receives the protocol packet using the UART interface, and the returned data packet includes a reported SN code and known information of the master control board;

[0030] S402, the main control board sends a request to obtain a charging mode protocol packet, and the slave control board receives the protocol packet using the UART interface. The returned data packet contains the charging mode type, where the charging mode type includes no operation, constant current charging, constant voltage charging, constant power charging and pulse charging;

[0031] S403, the main control board sends a request to obtain the energy source mode protocol packet, and the control board receives the protocol packet using the UART interface. The returned data packet contains the energy source identification type, where the energy source identification type includes no energy source mode, AC power energy source mode, solar energy source mode and wind energy source mode.

[0032] Preferably, the step S5 specifically includes the following steps:

[0033] S501, when the charger receives the battery detection instruction, firstly selects the test range for the rechargeable battery, reads the temperature, voltage, current and internal resistance of the rechargeable battery, and generates a battery health type report according to the relevant parameters of the rechargeable battery;

[0034] S502, when the charger receives the programming power supply instruction, first charge the rechargeable battery to a full power state, then select a voltage value within the allowed voltage range, the voltage range is specifically 11V to 14.8V and 22V to 26V, and adjust the current voltage according to the voltage value by programming operation;

[0035] S503, after receiving the charging instruction, the charger selects the battery type and outputs the corresponding charging voltage and current into the rechargeable battery according to the battery type;

[0036] S504: After receiving the forced start command, the charger directly transmits the 400A current provided by the charger to the vehicle, thereby supporting the vehicle start.

[0037] Preferably, the step S5 specifically includes the following steps:

[0038] S505, after receiving the repair instruction, the charger detects the condition of the rechargeable battery according to the charger. If the detection result shows that the rechargeable battery is abnormal, the charger returns the battery repair information and manually performs the repair according to the preset repair steps;

[0039] S506, when the charger receives the battery type change instruction, the charger reselects the battery type during battery charging and outputs the corresponding charging voltage and current according to the current battery type;

[0040] S507, after receiving the stop instruction and obtaining the shutdown request, the charger performs a stop operation according to the corresponding request;

[0041] S508, when the charger receives the initialization function instruction, it sets all parameters in the rechargeable battery to default values, and turns off the battery detection operation, repair operation, forced start operation and charging operation in the current charger;

[0042] Preferably, the step S6 specifically includes the following steps:

[0043] S601, when the charger slave detects a known abnormality, wherein the known abnormality includes temperature warning, overcurrent warning, overvoltage warning, battery reverse connection warning, short circuit warning, and function failure to start normally, an abnormal communication protocol packet is generated according to the known abnormality, and the packet is transmitted to the host;

[0044] S602, the host sends a heartbeat message to the slave every second, and starts the timer immediately after the sending is completed. If the host does not receive the message returned by the slave within three seconds, it is processed according to the known exception. The slave also starts timing after sending the message. If the slave does not receive the message returned by the host within three seconds, it is processed according to the known exception;

[0045] Preferably, the step S6 specifically further comprises the following steps:

[0046] S603, using the acquisition circuit to obtain the temperature, voltage and current of the rechargeable battery in real time. If the current temperature reaches 45 degrees Celsius, the rechargeable battery host immediately disconnects the charger after receiving a specific request packet;

[0047] S604: After acquiring the current state of the charger, the charging state message is transmitted to the slave device, and the slave device outputs the message through a display interface after receiving the message.

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

[0049] 1. The present invention sets the byte number corresponding to the protocol header, protocol length, packet number, function code, data point set and check code in the UART protocol packet, so that the communicating parties can quickly parse the specific content of the corresponding protocol packet when receiving it. Since the command set and response set are set between the charger main control board and the slave control board, it is ensured that the two parties can communicate effectively, including battery detection, programming power supply, battery repair, forced start, battery charging and battery type change instructions, and each instruction will perform the corresponding operation according to the instruction after receiving it, and use the method of mutual message sending between the communicating parties to determine whether there is an abnormality between the two parties. Once the host or the slave has an abnormality, the abnormality can be reported in time, so that the operator can take measures to intervene in time;

[0050] 2. The present invention elaborates in detail the contents contained in each request protocol packet when the sender sends it. After receiving the request protocol packet, the receiver will also return the corresponding data packet according to the content of the request. At the same time, control messages, system messages, report messages, specific request packets and charger status messages are used to monitor and adjust charging parameters in real time to optimize charging efficiency and battery life, and understand the battery status, so as to facilitate the subsequent timely notification of charging-related information to the user. It can also determine the energy source identification type, efficiently allocate energy according to the actual needs of the user, avoid waste, and improve the overall energy utilization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 Provide an overall method flow chart for an embodiment of the present invention;

[0052] Figure 2 A flow chart of a method for classifying message types provided by an embodiment of the present invention;

[0053] Figure 3 A flow chart of a method for transmitting a control message protocol packet provided by an embodiment of the present invention;

[0054] Figure 4 A flow chart of a method for transmitting other message protocol packets provided by an embodiment of the present invention;

[0055] Figure 5 A flow chart of a method for receiving a control instruction provided by an embodiment of the present invention;

[0056] Figure 6 A flow chart of a method for receiving other instructions provided by an embodiment of the present invention;

[0057] Figure 7 The schematic diagram of the hardware main control board and slave control board circuit provided in the embodiment of the present invention. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] See also Figure 1-7 The present invention provides a technical solution: a communication method of a charger communication protocol, comprising the following steps:

[0060] S1. Set the UART protocol packet format: set the protocol header, protocol length, packet sequence number, function code, data point set and byte sequence number corresponding to the check code in the UART protocol packet;

[0061] S2. Classify message types: The transmitted messages are divided into four types, namely control messages, system messages, report messages, specific request packets and charger status messages;

[0062] S3, transmission control message protocol packet: when the main control board sends a request control message related protocol packet, the slave control board receives the corresponding protocol packet using the UART interface, and the returned data packet is transmitted to the main control board;

[0063] S4, transmission of other message protocol packets: the slave control board sends a function failure to start the protocol packet, the master control board receives the protocol packet using the UART interface, and the returned data packet contains the reported SN code and the known information of the master control board. The master control board sends a request to obtain the charging mode protocol packet, the slave control board receives the protocol packet using the UART interface, and the returned data packet contains the charging mode type;

[0064] S5, receiving control instructions: after receiving the control instructions through the charger, the corresponding operation is performed according to the control instructions. When the charger receives the battery detection instruction, the test range is first selected for the rechargeable battery, and the temperature, voltage, current and internal resistance of the rechargeable battery are read. When the charger receives the forced start instruction, the 400A current provided by the charger is directly transmitted to the vehicle;

[0065] S6. Receive other instructions: When the charger slave detects a known abnormality, it generates an abnormal communication protocol packet based on the known abnormality and transmits it to the host. The host sends a heartbeat message to the slave every second. If the host does not receive the message returned by the slave within three seconds, it will be processed according to the known abnormality.

[0066] Step S2 includes the following steps:

[0067] S201, dividing the transmitted messages into four types, namely control messages, system messages, report messages, specific request packets and charger status messages;

[0068] S202, control messages include battery detection, programming power, battery repair, forced start, battery charging, battery type change, battery voltage type change, stop battery detection, stop programming battery, stop battery repair, stop forced start, stop battery charging and initialization functions;

[0069] Step S2 also includes the following steps:

[0070] S203, system messages include heartbeat messages, power-on communication, power-off communication and abnormal communication, and reported messages include function failure to start normally, device access report and slave abnormal alarm;

[0071] S204, the specific request packet includes obtaining battery temperature, obtaining battery voltage and obtaining battery current, and the charger status message is obtaining the current charging mode;

[0072] Step S3 specifically includes the following steps:

[0073] S301, the main control board sends a request battery detection protocol packet, wherein the request battery detection protocol packet contains information related to battery voltage type, capacity and brand type, and after the slave control board receives the protocol packet using the UART interface, the returned data packet contains temperature, voltage, current, internal resistance and battery type data during battery detection;

[0074] S302, the main control board sends a request programming power protocol packet, wherein the request programming power protocol packet includes voltage data of the rechargeable battery, and after receiving the protocol packet from the control board, the returned data packet includes voltage and current data of the rechargeable battery;

[0075] S303, when the main control board sends a battery repair request protocol packet and a forced start request packet, the slave control board receives the protocol packet using the UART interface, and the returned data packet contains the voltage and current data of the rechargeable battery;

[0076] S304, the main control board sends a charging request protocol packet, wherein the charging request protocol packet includes battery brand type data, and after the control board receives the protocol packet using the UART interface, the returned data packet includes the voltage and current data of the rechargeable battery;

[0077] Step S3 specifically also includes the following steps:

[0078] S305, the main control board sends a battery type change request protocol packet, wherein the battery type change request protocol packet includes the original battery type and the changed battery type, and the battery types include three types, namely lead-acid, ternary lithium and lithium iron phosphate. The slave control board receives the protocol packet using the UART interface, and the returned data packet includes successful change information;

[0079] S306, the main control board sends a voltage type change request protocol packet, wherein the voltage type change request protocol packet includes the original voltage type and the changed voltage type, and the voltage type includes two types, namely 12V and 24V, and the slave control board receives the protocol packet using the UART interface, and the returned data packet includes successful change information;

[0080] S307, the main control board sends a request to stop protocol packet, wherein the request to stop protocol packet contains a shutdown operation name, and the shutdown operation name includes stop battery detection, stop programming power supply, stop battery repair, stop forced start and stop battery charging, and the slave control board receives the protocol packet using the UART interface, and the returned data packet contains successful change information;

[0081] S308, the main control board sends a request initialization function protocol packet, wherein the request initialization function protocol packet includes the battery type, the battery voltage default type and the battery shutdown data, and the slave control board receives the protocol packet using the UART interface, and the returned data packet includes the successful change information;

[0082] Step S4 specifically includes the following steps:

[0083] S401, the slave control board sends a protocol packet indicating that the function cannot be started normally, wherein the protocol packet indicating that the function cannot be started normally includes an error type, and the master control board receives the protocol packet using the UART interface, and the returned data packet includes a reported SN code and known information of the master control board;

[0084] S402, the main control board sends a request to obtain a charging mode protocol packet, and the slave control board receives the protocol packet using the UART interface. The returned data packet contains the charging mode type, where the charging mode type includes no operation, constant current charging, constant voltage charging, constant power charging and pulse charging;

[0085] S403, the main control board sends a request to obtain an energy source mode protocol packet, and the slave control board receives the protocol packet using the UART interface. The returned data packet contains an energy source identification type, wherein the energy source identification type includes no energy source mode, mains energy source mode, solar energy source mode, and wind energy source mode;

[0086] Step S5 specifically includes the following steps:

[0087] S501, when the charger receives the battery detection instruction, firstly selects the test range for the rechargeable battery, reads the temperature, voltage, current and internal resistance of the rechargeable battery, and generates a battery health type report according to the relevant parameters of the rechargeable battery;

[0088] S502, when the charger receives the programming power supply instruction, first charge the rechargeable battery to a full power state, then select a voltage value within the allowed voltage range, the voltage range is specifically 11V to 14.8V and 22V to 26V, and adjust the current voltage according to the voltage value by programming operation;

[0089] S503, after receiving the charging instruction, the charger selects the battery type and outputs the corresponding charging voltage and current into the rechargeable battery according to the battery type;

[0090] S504, when the charger receives the forced start command, the 400A current provided by the charger is directly transmitted to the vehicle, thereby supporting the vehicle start;

[0091] Step S5 specifically includes the following steps:

[0092] S505, after receiving the repair instruction, the charger detects the condition of the rechargeable battery according to the charger. If the detection result shows that the rechargeable battery is abnormal, the charger returns the battery repair information and manually performs the repair according to the preset repair steps;

[0093] S506, when the charger receives the battery type change instruction, the charger reselects the battery type during battery charging and outputs the corresponding charging voltage and current according to the current battery type;

[0094] S507, after receiving the stop instruction and obtaining the shutdown request, the charger performs a stop operation according to the corresponding request;

[0095] S508, when the charger receives the initialization function instruction, it sets all parameters in the rechargeable battery to default values, and turns off the battery detection operation, repair operation, forced start operation and charging operation in the current charger;

[0096] Step S6 specifically includes the following steps:

[0097] S601, when the charger slave detects a known abnormality, wherein the known abnormality includes temperature warning, overcurrent warning, overvoltage warning, battery reverse connection warning, short circuit warning, and function failure to start normally, an abnormal communication protocol packet is generated according to the known abnormality, and the packet is transmitted to the host;

[0098] S602, the host sends a heartbeat message to the slave every second, and starts the timer immediately after the sending is completed. If the host does not receive the message returned by the slave within three seconds, it is processed according to the known exception. The slave also starts timing after sending the message. If the slave does not receive the message returned by the host within three seconds, it is processed according to the known exception;

[0099] Step S6 specifically also includes the following steps:

[0100] S603, using the acquisition circuit to obtain the temperature, voltage and current of the rechargeable battery in real time. If the current temperature reaches 45 degrees Celsius, the rechargeable battery host immediately disconnects the charger after receiving a specific request packet;

[0101] S604: After acquiring the current state of the charger, the charging state message is transmitted to the slave device, and the slave device outputs the message through a display interface after receiving the message.

[0102] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0103] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A communication method for a charger communication protocol, characterized in that: The method comprises the following steps: S1. Set the UART protocol packet format: set the protocol header, protocol length, packet sequence number, function code, data point set and byte sequence number corresponding to the check code in the UART protocol packet; S2. Classify message types: The transmitted messages are divided into four types, namely control messages, system messages, report messages, specific request packets and charger status messages; S3, transmission control message protocol packet: when the main control board sends a request control message related protocol packet, the slave control board receives the corresponding protocol packet using the UART interface, and the returned data packet is transmitted to the main control board; S4, transmission of other message protocol packets: the slave control board sends a function failure to start the protocol packet, the master control board receives the protocol packet using the UART interface, and the returned data packet contains the reported SN code and the known information of the master control board. The master control board sends a request to obtain the charging mode protocol packet, the slave control board receives the protocol packet using the UART interface, and the returned data packet contains the charging mode type; S5, receiving control instructions: after receiving the control instructions through the charger, the corresponding operation is performed according to the control instructions. When the charger receives the battery detection instruction, the test range is first selected for the rechargeable battery, and the temperature, voltage, current and internal resistance of the rechargeable battery are read. When the charger receives the forced start instruction, the 400A current provided by the charger is directly transmitted to the vehicle; S6. Receive other instructions: When the charger slave detects a known abnormality, it generates an abnormal communication protocol packet based on the known abnormality and transmits it to the host. The host sends a heartbeat message to the slave every second. If the host does not receive the message returned by the slave within three seconds, it will be processed according to the known abnormality.

2. The communication method of a charger communication protocol according to claim 1, characterized in that: The step S2 comprises the following steps: S201, dividing the transmitted messages into four types, namely control messages, system messages, report messages, specific request packets and charger status messages; S202, control messages include battery detection, programming power, battery repair, forced start, battery charging, battery type change, battery voltage type change, stop battery detection, stop programming battery, stop battery repair, stop forced start, stop battery charging and initialization functions.

3. The communication method of a charger communication protocol according to claim 2, characterized in that: The step S2 further comprises the following steps: S203, system messages include heartbeat messages, power-on communication, power-off communication and abnormal communication, and reported messages include function failure to start normally, device access report and slave abnormal alarm; S204, the specific request packet includes obtaining the battery temperature, obtaining the battery voltage and obtaining the battery current, and the charger status message is to obtain the current charging mode.

4. The communication method of a charger communication protocol according to claim 1, characterized in that: The step S3 specifically comprises the following steps: S301, the main control board sends a request battery detection protocol packet, wherein the request battery detection protocol packet contains information related to battery voltage type, capacity and brand type, and after the slave control board receives the protocol packet using the UART interface, the returned data packet contains temperature, voltage, current, internal resistance and battery type data during battery detection; S302, the main control board sends a request programming power protocol packet, wherein the request programming power protocol packet includes voltage data of the rechargeable battery, and after receiving the protocol packet from the control board, the returned data packet includes voltage and current data of the rechargeable battery; S303, when the main control board sends a battery repair request protocol packet and a forced start request packet, the slave control board receives the protocol packet using the UART interface, and the returned data packet contains the voltage and current data of the rechargeable battery; S304, the main control board sends a charging request protocol packet, wherein the charging request protocol packet includes battery brand type data, and after the control board receives the protocol packet using the UART interface, the returned data packet includes the voltage and current data of the rechargeable battery.

5. The communication method of the charger communication protocol according to claim 4, characterized in that: The step S3 specifically further comprises the following steps: S305, the main control board sends a battery type change request protocol packet, wherein the battery type change request protocol packet includes the original battery type and the changed battery type, and the slave control board receives the protocol packet using the UART interface, and the returned data packet includes successful change information; S306, the main control board sends a voltage type change request protocol packet, wherein the voltage type change request protocol packet includes the original voltage type and the changed voltage type, and the slave control board receives the protocol packet using the UART interface, and the returned data packet includes successful change information; S307, the main control board sends a stop request protocol packet, wherein the stop request protocol packet includes a shutdown operation name, and the slave control board receives the protocol packet using the UART interface, and the returned data packet includes successful change information; S308, the main control board sends a request initialization function protocol packet, wherein the request initialization function protocol packet includes battery type, battery voltage default type and battery shutdown data, and the control board receives the protocol packet using the UART interface, and the returned data packet contains successful change information.

6. The communication method of a charger communication protocol according to claim 1, characterized in that: The step S4 specifically comprises the following steps: S401, the slave control board sends a protocol packet indicating that the function cannot be started normally, wherein the protocol packet indicating that the function cannot be started normally includes an error type, and the master control board receives the protocol packet using the UART interface, and the returned data packet includes a reported SN code and known information of the master control board; S402, the main control board sends a request to obtain a charging mode protocol packet, and the slave control board receives the protocol packet using the UART interface, and the returned data packet contains the charging mode type; S403, the main control board sends a request to obtain an energy source mode protocol packet, and the slave control board receives the protocol packet using the UART interface. The returned data packet includes an energy source identification type.

7. The communication method of a charger communication protocol according to claim 1, characterized in that: The step S5 specifically comprises the following steps: S501, when the charger receives the battery detection instruction, firstly selects the test range for the rechargeable battery, reads the temperature, voltage, current and internal resistance of the rechargeable battery, and generates a battery health type report according to the relevant parameters of the rechargeable battery; S502, when the charger receives the programming power supply instruction, first charge the rechargeable battery to a full power state, then select a voltage value within the allowed voltage range, the voltage range is specifically 11V to 14.8V and 22V to 26V, and adjust the current voltage according to the voltage value by programming operation; S503, after receiving the charging instruction, the charger selects the battery type and outputs the corresponding charging voltage and current into the rechargeable battery according to the battery type; S504: After receiving the forced start command, the charger directly transmits the 400A current provided by the charger to the vehicle, thereby supporting the vehicle start.

8. The communication method of the charger communication protocol according to claim 7, characterized in that: The step S5 specifically further comprises the following steps: S505, after receiving the repair instruction, the charger detects the condition of the rechargeable battery according to the charger. If the detection result shows that the rechargeable battery is abnormal, the charger returns the battery repair information and manually performs the repair according to the preset repair steps; S506, when the charger receives the battery type change instruction, the charger reselects the battery type during battery charging and outputs the corresponding charging voltage and current according to the current battery type; S507, after receiving the stop instruction and obtaining the shutdown request, the charger performs a stop operation according to the corresponding request; S508: After the charger receives the initialization function instruction, it sets all parameters in the rechargeable battery to default values, and turns off the battery detection operation, repair operation, forced start operation and charging operation in the current charger.

9. The communication method of a charger communication protocol according to claim 1, characterized in that: The step S6 specifically comprises the following steps: S601, when the charger slave detects a known abnormality, generates an abnormal communication protocol packet according to the known abnormality and transmits it to the host; S602. The host sends a heartbeat message to the slave once every second. The timer is started immediately after the sending is completed. If the host does not receive the message returned by the slave within three seconds, it is processed according to the known exception. The slave also starts timing after sending the message. If the slave does not receive the message returned by the host within three seconds, it is processed according to the known exception.

10. A communication method of a charger communication protocol according to claim 9, characterized in that: The step S6 specifically further comprises the following steps: S603, using the acquisition circuit to obtain the temperature, voltage and current of the rechargeable battery in real time. If the current temperature reaches 45 degrees Celsius, the rechargeable battery host immediately disconnects the charger after receiving a specific request packet; S604: After acquiring the current state of the charger, the charging state message is transmitted to the slave device, and the slave device outputs the message through a display interface after receiving the message.