Charging message communication method and apparatus, and electronic device
By dividing the data frame of the charging message into the first and second data frames, ensuring that the length of the charging message conforms to the preset length, the problem of low stability of charging message transmission between the vehicle and the charging pile is solved, and a more stable charging process is achieved. .
Patent Information
- Application Number
- CN202410756364.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-23
AI Technical Summary
During the charging process, charging messages between the vehicle and the charging pile are prone to frame loss, resulting in low charging message transmission stability and a technical problem that cannot be effectively solved.
By dividing the data frame of the charging message into a first data frame and a second data frame, the first data frame contains a field length less than the preset length, a communication connection is first established between the vehicle and the charging pile, and then the second data frame is transmitted, Ensure that the message length meets the preset length to reduce frame loss.
It improves the stability of charging message transmission between the vehicle and the charging pile, and solves the problem of low stability caused by easy frame loss during the charging process.
Smart Images

Figure CN118540672A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of charging, and in particular to a charging message communication method, device and electronic equipment. Background Art
[0002] With the rapid development of new energy vehicles, more and more people have purchased new energy vehicles or hybrid vehicles. In order to match so many vehicles, many parking lots and communities are equipped with vehicle charging piles. However, vehicles of different brands and charging piles of different brands need to exchange charging-related information through communication protocols to ensure the smooth progress of the charging process. In addition, there are many different types of vehicles or charging modes, such as ordinary charging, fast charging, high-power fast charging, etc. Therefore, when charging, the data length of the communication between the vehicle and the charging pile often exceeds the length that can be carried by a frame of the communication protocol. Therefore, the overly long charging message makes it impossible to establish a stable communication connection between the charging pile and the vehicle, making it easy for the charging message to lose frames during transmission, resulting in low stability when the vehicle is charging.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] Embodiments of the present invention provide a charging message communication method, device, and electronic device to at least solve the technical problem of low stability of charging message transmission during vehicle charging due to easy frame loss of charging messages.
[0005] According to one aspect of an embodiment of the present invention, a communication method for a charging message is provided, comprising: in response to receiving a charging message from a vehicle, obtaining multiple data frames corresponding to the charging message, wherein the message length of the charging message is greater than a preset length; dividing the multiple data frames based on the preset length to obtain a first data frame and a second data frame, wherein the length of the field contained in the first data frame is less than the preset length; sending a first data frame of the charging message to a charging pile, wherein the charging message includes multiple data frames, and the first data frame is the first data frame among the multiple data frames; determining a first connection state between the vehicle and the charging pile according to a first response state of the charging pile to the first data frame, wherein the first connection state is used to indicate whether a communication connection is successfully established between the vehicle and the charging pile; when the connection state is that the vehicle and the charging pile have successfully established a communication connection, sending a second data frame of the charging message to the charging pile, wherein the second data frame is a data frame other than the first data frame among the multiple data frames.
[0006] Furthermore, the method also includes: determining a second connection state between the vehicle and the charging pile based on a second response state of the charging pile to a preset data frame in the second data frame, wherein the preset data frame is the last data frame in the second data frame, and the second connection state is used to indicate whether the vehicle and the charging pile have successfully closed the communication connection.
[0007] Furthermore, the first connection state between the vehicle and the charging pile is determined according to the first response state of the charging pile to the first data frame, including: if the first response state is that the first response message of the first data frame is not received within a first preset time period, the first connection state is determined based on the first number of sending times of the first data frame; if the first response state is that the first response message is received within the first preset time period, the first connection state is determined based on the first message type of the first response message.
[0008] Furthermore, the first connection state is determined based on the first number of sending times of the first data frame, including: if the first number of sending times is less than a preset number of times, sending the first data frame to the charging pile, and determining the first connection state according to the first response state of the charging pile to the first data frame, until the first connection state is that the vehicle and the charging pile successfully establish a communication connection, or the first number of sending times is greater than or equal to the preset number of times; if the first number of sending times is greater than or equal to the preset number of times, determining that the first connection state is that the vehicle and the charging pile have not successfully established a communication connection.
[0009] Furthermore, the first connection state is determined based on the first message type of the first reply message, including: if the first message type is a reply confirmation message type, determining that the first connection state is that the vehicle and the charging pile successfully establish a communication connection; if the first message type is an abandoned connection confirmation message type, determining that the first connection state is that the vehicle and the charging pile fail to successfully establish a communication connection.
[0010] Furthermore, the second connection state between the vehicle and the charging pile is determined according to the second response state of the charging pile to the preset data frame in the second data frame, including: if the second response state is that the second response message of the preset data frame is not received within the second preset time length, the second connection state is determined based on the second number of sending times of the second data frame; if the second response state is that the second response message is received within the second preset time length, the second connection state is determined based on the second message type of the second response message.
[0011] Furthermore, the second connection state is determined based on the second number of sending times of the second data frame, including: if the second number of sending times is less than the preset number of times, sending the second data frame to the charging pile, and determining the second connection state according to the second response state of the charging pile to the second data frame, until the second connection state is that the vehicle and the charging pile successfully close the communication connection, or the second number of sending times is greater than or equal to the preset number of times; if the second number of sending times is greater than or equal to the preset number of times, sending a preset message to the charging pile, and determining that the second connection state is that the vehicle and the charging pile successfully disconnect the communication connection, wherein the preset message is used to prompt that the communication connection between the vehicle and the charging pile has been closed.
[0012] Further, determining the second connection state based on the second message type of the second response message includes: if the second message type is a reception end confirmation message type or a connection abandonment confirmation message type, determining that the second connection state is that the vehicle and the charging pile successfully close the communication connection.
[0013] According to another aspect of an embodiment of the present invention, a communication device for a charging message is also provided, including: an acquisition module, for acquiring multiple data frames corresponding to the charging message in response to receiving a charging message from a vehicle, wherein the message length of the charging message is greater than a preset length; a division module, for dividing the multiple data frames based on the preset length to obtain a first data frame and a second data frame, wherein the length of the field contained in the first data frame is less than the preset length; a first sending module, for sending a first data frame of the charging message to a charging pile, wherein the charging message includes multiple data frames, and the first data frame is the first data frame among the multiple data frames; a determination module, for determining a first connection state between the vehicle and the charging pile according to a first response state of the charging pile to the first data frame, wherein the first connection state is used to indicate whether the vehicle and the charging pile have successfully established a communication connection; a second sending module, for sending a second data frame of the charging message to the charging pile when the connection state is that the vehicle and the charging pile have successfully established a communication connection, wherein the second data frame is a data frame other than the first data frame among the multiple data frames.
[0014] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the method in each embodiment of the present invention is executed when the program is running.
[0015] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention.
[0016] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.
[0017] In an embodiment of the present invention, in response to receiving a charging message of a vehicle, a plurality of data frames corresponding to the charging message are obtained; the plurality of data frames are divided based on a preset length to obtain a first data frame and a second data frame; the first data frame of the charging message is sent to the charging pile; the first connection state between the vehicle and the charging pile is determined according to the first response state of the charging pile to the first data frame; when the connection state is that the vehicle and the charging pile have successfully established a communication connection, the second data frame of the charging message is sent to the charging pile. The present application adopts a method of dividing the data frames of the charging message whose message length is greater than the preset length, and divides the data frames based on the preset length to obtain the first data frame and the second data frame whose message length meets the preset length, so that the vehicle and the charging pile can establish a connection relationship between the vehicle and the charging pile through the first data frame, and when the communication connection is established between the vehicle and the charging pile, the other data frames in the charging message are transmitted through the second data frame. The present application improves the stability of the charging message transmission by first identifying the first data frame and then identifying the second data frame, and solves the technical problem of low stability of the charging message transmission when the vehicle is charging due to the easy loss of the charging message frame. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0019] Figure 1 is a flow chart of an optional charging message communication method according to an embodiment of the present invention;
[0020] Figure 2 is a flow chart of an optional charging message communication method according to an embodiment of the present invention;
[0021] Figure 3 It is a schematic diagram of the structure of an optional charging message communication device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] According to an embodiment of the present invention, an embodiment of a method for communicating a charging message is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0025] Figure 1 is a flow chart of an optional charging message communication method according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0026] Step S102, in response to receiving a charging message from a vehicle, obtaining multiple data frames corresponding to the charging message, wherein the message length of the charging message is greater than a preset length.
[0027] The above-mentioned vehicles are electric vehicles or hybrid vehicles, including electric cars, electric trucks, electric buses, hybrid cars, hybrid trucks, hybrid buses and other vehicles equipped with power batteries.
[0028] The above charging message is a charging request sent by the vehicle to the charging pile after the vehicle is physically connected to the charging pile.
[0029] The above-mentioned data frame (DF) is a structured data set, which is usually used to store and transmit data. The data frame in the present invention refers to the data frame in the charging message, including vehicle charging data such as vehicle battery status, charging requirements, charging connection type and billing information.
[0030] The above charging message is a charging request sent by the vehicle to request charging after the vehicle is connected to the charging pile, wherein the charging request includes multiple data frames.
[0031] The above-mentioned preset length is the field length preset by the charging pile. When the field length of the message is less than the preset length, the message can be recognized. When the field length of the message is greater than the preset length, the message cannot be recognized. In the present application, the length of the charging message sent by the vehicle is greater than the recognition length preset by the charging pile, so the charging pile cannot directly recognize the charging message sent by the vehicle. The above-mentioned preset length can be set according to the message length that the charging pile can receive. The above-mentioned preset length can also be manually set based on experience and demand. The above-mentioned preset length can also be set according to the actual application scenario.
[0032] In an optional embodiment, after the vehicle is physically connected to the fast charging pile, the vehicle sends a charging request, i.e., a charging message, to the fast charging pile. The charging message includes multiple data frames, and the multiple data frames include vehicle charging data such as vehicle battery status, charging requirements, charging connection type, and billing information. The message length of the vehicle charging message is greater than the message length preset in the fast charging pile. Therefore, when the fast charging pile identifies the vehicle's charging message, it is easy for frame loss and other phenomena to occur. By dividing the charging message, when the length of the charging message is greater than the preset length, the fast charging pile can identify the divided charging message in batches, thereby improving the stability of the fast charging pile in identifying charging messages with a length greater than the preset length, so as to achieve the purpose of reducing frame loss and other phenomena when the fast charging pile identifies the charging message.
[0033] In another optional embodiment, after the vehicle is connected to the wireless charging pile, the vehicle sends a charging request, i.e., a charging message, to the wireless charging pile. The charging message includes multiple data frames, and the multiple data frames include vehicle charging data such as vehicle battery status, charging requirements, charging connection type, and billing information. The message length of the vehicle charging message is greater than the message length preset in the wireless charging pile. Therefore, when the wireless charging pile identifies the vehicle's charging message, it is easy to lose frames and other phenomena. By dividing the charging message, when the length of the charging message is greater than the preset length, the wireless charging pile can identify the divided charging messages in batches, thereby improving the stability of the wireless charging pile when identifying charging messages with a length greater than the preset length, so as to achieve the purpose of reducing the phenomenon of frame loss and other phenomena when the wireless charging pile identifies the charging message.
[0034] Step S104: divide the multiple data frames based on a preset length to obtain a first data frame and a second data frame, wherein the length of the field included in the first data frame is less than the preset length.
[0035] The above-mentioned first data frame is a data frame obtained by dividing multiple data frames in the charging message according to a preset length less than the preset length. Since the field length of the first data frame obtained after the division is less than the preset length, the charging pile can directly identify the first data frame.
[0036] The second data frame is the rest of the multiple data frames except the first data frame after the multiple data frames in the charging message are divided into smaller than the preset length based on the preset length. The second data frame also contains the data in the charging message. The specific data contained in the first data frame and the specific data contained in the second data frame are determined according to actual needs and the preset length, and the length of the field contained in the first data frame is smaller than the preset length.
[0037] In an optional embodiment, after detecting multiple data frames in a charging message and determining that the length of the charging message is greater than a preset length, since the length of the charging message is greater than the preset length in the charging pile, the charging pile is prone to frame loss when identifying the charging message. Therefore, the multiple data frames can be decomposed based on the preset length, so that the charging pile can identify charging messages with a length less than or equal to the preset length in batches during identification, thereby reducing the phenomenon of frame loss when the charging pile identifies the charging message, and obtaining a first data frame and a second data frame, wherein the first data frame and the second data frame both contain partial data of the charging message, and the data of the charging message specifically contained in the first data frame and the second data frame are set according to actual needs or preset lengths.
[0038] The present application divides overlong charging messages so that the divided charging messages meet the preset length requirements, thereby reducing frame loss when the charging pile identifies the charging message, and solves the technical problem of low stability of charging message transmission when the vehicle is charging due to the easy frame loss of the charging message.
[0039] Step S106, sending a first data frame of a charging message to a charging pile, wherein the charging message includes multiple data frames, and the first data frame is the first data frame among the multiple data frames.
[0040] The above charging piles are used to provide power for electric vehicles (EV) or plug-in hybrid electric vehicles (PHEV), including but not limited to slow charging piles, fast charging piles, wireless charging piles, smart charging piles, etc. The above charging piles can also be replaced by other charging equipment for charging vehicles.
[0041] In an optional embodiment, the vehicle may send the first data frame in the charging message to the fast charging pile, and the fast charging pile may recognize the first data frame to establish a communication connection between the vehicle and the fast charging pile. The charging message may include multiple data frames, and the first data frame is the first data frame among the multiple data frames.
[0042] In another optional embodiment, the first data frame in the charging message can also be sent to the smart charging pile by the vehicle, wherein the first data frame in the charging message includes the first data frame of multiple data frames in the charging message. The charging message includes multiple data frames, and the first data frame is the first data frame of the multiple data frames.
[0043] Step S108, determining a first connection state between the vehicle and the charging pile according to a first response state of the charging pile to the first data frame, wherein the first connection state is used to indicate whether a communication connection is successfully established between the vehicle and the charging pile.
[0044] The above-mentioned first response state is the response state of the charging pile to the vehicle charging request. The first response state can be used to indicate that the charging pile has received the first data frame, and the first response state can also be used to indicate that the charging pile has not received the first data frame. If the first response state is that the charging pile has received the first data frame, it can be determined that the first connection state between the vehicle and the charging pile is that the vehicle and the charging pile have successfully established a communication connection; if the first response state is that the charging pile has not received the first data frame, it can be determined that the first connection state between the vehicle and the charging pile is that the vehicle and the charging pile have not successfully established a communication connection. If the response message fed back by the charging pile is not received, it is determined that the first response state is that the charging pile has not received the first data frame. If the response message fed back by the charging pile is received, it is determined that the first response state is that the charging pile has received the first data frame.
[0045] The above-mentioned first connection state is the connection state between the charging pile and the vehicle, wherein the first connection state includes two states: the vehicle and the charging pile establish a communication connection and the vehicle and the charging pile do not establish a communication connection. In the present invention, the first connection state between the vehicle and the charging pile is determined by the first response state of the charging pile to the first data frame.
[0046] In an optional embodiment, after the vehicle sends the first data frame of the charging message to the charging pile, the charging pile identifies the first data frame. When the charging pile successfully identifies the first data frame, the charging pile sends a first response message to the vehicle. When the vehicle receives the first response message sent by the charging pile, it is determined that the first response state is that the charging pile receives the first data frame. At this time, the first connection state is determined to be that the vehicle and the charging pile have established a communication connection. When the charging pile fails to identify the first data frame, the charging pile cannot send the first response message to the vehicle, and the first response state is determined to be that the charging pile has not received the first data frame. At this time, the first connection state is determined to be that the vehicle and the charging pile have not established a communication connection.
[0047] The present application determines whether a communication connection is established between the vehicle and the charging pile through the first data frame, thereby reducing the amount of data that the charging pile needs to identify and effectively improving the rate at which a communication connection is established between the vehicle and the charging pile.
[0048] Step S110, when the connection state is that the vehicle and the charging pile have successfully established a communication connection, a second data frame of the charging message is sent to the charging pile, wherein the second data frame is a data frame other than the first data frame in the multiple data frames.
[0049] In an optional embodiment, when the connection state between the vehicle and the charging pile is that the vehicle and the charging pile have established a communication connection, a second data frame of a charging message is sent to the charging pile, wherein the second data frame also includes data in the vehicle charging message. After the charging pile recognizes the second data frame, it charges the vehicle according to the charging information required by the vehicle in the second data frame. Exemplarily, the second data frame of the vehicle includes vehicle charging data such as vehicle battery status, charging requirements, charging connection type, and billing information. The specific data in the second data frame of the vehicle is set according to actual needs and preset length.
[0050] In an embodiment of the present invention, in response to receiving a charging message of a vehicle, a plurality of data frames corresponding to the charging message are obtained; the plurality of data frames are divided based on a preset length to obtain a first data frame and a second data frame; the first data frame of the charging message is sent to the charging pile; the first connection state between the vehicle and the charging pile is determined according to the first response state of the charging pile to the first data frame; when the connection state is that the vehicle and the charging pile have successfully established a communication connection, the second data frame of the charging message is sent to the charging pile. The present application adopts a method of dividing the data frames of the charging message whose message length is greater than the preset length, and divides the data frames based on the preset length to obtain the first data frame and the second data frame whose message length meets the preset length, so that the vehicle and the charging pile can establish a connection relationship between the vehicle and the charging pile through the first data frame, and when the communication connection is established between the vehicle and the charging pile, the other data frames in the charging message are transmitted through the second data frame. The present application improves the stability of the charging message transmission by first identifying the first data frame and then identifying the second data frame, and solves the technical problem of low stability of the charging message transmission when the vehicle is charging due to the easy loss of the charging message frame.
[0051] Optionally, the method also includes: determining a second connection state between the vehicle and the charging pile based on a second response state of the charging pile to a preset data frame in the second data frame, wherein the preset data frame is the last data frame in the second data frame, and the second connection state is used to indicate whether the vehicle and the charging pile have successfully closed the communication connection.
[0052] The above-mentioned second response state is a state in which, after the vehicle sends a preset data frame in the second data frame to the charging pile, the charging pile sends a second response message to the vehicle to stop the charging pile from charging the vehicle. The second response state can be used to indicate that the charging pile has received the preset data frame, and the second response state can also be used to indicate that the charging pile has not received the preset data frame. If the second response state is that the charging pile has received the preset data frame, it can be determined that the second connection state between the vehicle and the charging pile is that the vehicle and the charging pile have successfully closed the communication connection; if the second response state is that the charging pile has not received the preset data frame, it can be determined that the second connection state between the vehicle and the charging pile is that the vehicle and the charging pile have not successfully closed the communication connection. If the response message fed back by the charging pile is not received, it is determined that the second response state is that the charging pile has not received the preset data frame. If the response message fed back by the charging pile is received, it is determined that the second response state is that the charging pile has received the preset data frame.
[0053] The above-mentioned preset data frame is the last data frame in the second data frame, and the vehicle uses the preset data frame to send a charging stop and disconnection message to the charging pile.
[0054] The above-mentioned second connection state is a state in which the communication connection between the vehicle and the charging pile is closed and a state in which the communication connection between the vehicle and the charging pile is maintained. When the communication connection between the vehicle and the charging pile is closed, the charging pile stops charging the vehicle. When the communication connection between the vehicle and the charging pile is maintained, the charging pile continues to charge the vehicle.
[0055] In an optional embodiment, by presetting the last data frame in the second data frame as the preset data frame, after the preset data frame in the second data frame is sent to the charging pile, the charging pile identifies the preset data frame, and then the charging pile sends a second response message to the vehicle. After the vehicle receives the second response message, the second response state between the vehicle and the charging pile is determined, wherein the second response state includes the charging pile receiving the preset data frame and the charging pile not receiving the preset data frame. When the second response state is that the charging pile has not received the preset data frame, the second connection state is that the vehicle and the charging pile have not successfully closed the communication connection; when the second response state is that the charging pile has received the preset data frame, it is determined that the vehicle and the charging pile have successfully closed the communication connection to stop charging the vehicle.
[0056] In the present application, the second response state is determined by a preset data frame in the second data frame, and the second connection state between the vehicle and the charging pile is determined by the second response state, so as to timely disconnect the communication connection of the vehicle pre-charging pile to prevent the vehicle battery from being overcharged and damaged, thereby ensuring the safety of the vehicle.
[0057] Optionally, the first connection state between the vehicle and the charging pile is determined according to the first response state of the charging pile to the first data frame, including: if the first response state is that the first response message of the first data frame is not received within a first preset time period, the first connection state is determined based on the first number of sending times of the first data frame; if the first response state is that the first response message is received within the first preset time period, the first connection state is determined based on the first message type of the first response message.
[0058] The above-mentioned first preset time length is a preset time length for the charging pile to send a first response message to the vehicle after the vehicle sends a first data frame to the charging pile, wherein the preset time length can be manually set based on actual conditions.
[0059] The above-mentioned first reply message is the message of successful identification that the charging pile feeds back to the vehicle after the charging pile receives the first data frame sent by the vehicle. The vehicle's receipt of the first reply message is the basis for establishing a communication connection between the vehicle and the charging pile. When the vehicle does not receive the first reply message, the communication connection between the vehicle and the charging pile cannot be established. When the vehicle receives the first reply message, the communication connection between the vehicle and the charging pile is established.
[0060] The first number of transmissions is the number of times the vehicle sends the first data frame to the charging pile. When the first number of transmissions reaches a certain value, it is determined that the vehicle and the charging pile have not successfully established a communication connection.
[0061] The above-mentioned first message type includes a response confirmation message type or a connection abandonment confirmation message type. When the first message type is a response confirmation type message, the first connection state is determined to be that the vehicle and the charging pile successfully establish a communication connection. When the first message type is a connection abandonment confirmation message type, the first connection state is determined to be that the vehicle and the charging pile fail to successfully establish a communication connection.
[0062] In an optional embodiment, after the vehicle sends the first data frame to the charging pile, if the vehicle does not receive the first response message sent by the charging pile within the preset time, that is, the first response state is that the charging pile does not receive the first data frame, then the vehicle sends the first data frame to the charging pile again, and the number of times the vehicle sends the first data frame is recorded as the first number of transmissions. The vehicle makes a judgment based on the first number of transmissions of the first data frame to determine the first connection state between the vehicle and the charging pile. When the first number of transmissions reaches a certain value, it is determined that the vehicle and the charging pile have not successfully established a communication connection. After the vehicle sends the first data frame to the charging pile, if the vehicle receives the first response message sent by the charging pile within the preset time, that is, the first response state is that the charging pile receives the first data frame, then according to the first message type, the first connection state is determined to be that the vehicle and the charging pile have successfully established a communication connection or that the vehicle and the charging pile have not successfully established a communication connection. When the first message type is a message of a response confirmation type, the first connection state is determined to be that the vehicle and the charging pile have successfully established a communication connection. When the first message type is a message type of abandoning connection confirmation, the first connection state is determined to be that the vehicle and the charging pile have not successfully established a communication connection.
[0063] In the present application, a first response state is used to determine whether a communication connection is successfully established between the vehicle and the charging pile to ensure the stability of vehicle charging. The present application limits the frequency of the vehicle sending the first data frame by a preset duration to prevent frequent sending from causing charging pile failure. When the vehicle and the charging pile cannot successfully establish a communication connection, the first data frame is sent multiple times to attempt to establish a communication connection between the vehicle and the charging pile, thereby maximizing the attempt to charge the vehicle.
[0064] Optionally, the first connection state is determined based on the first number of sending times of the first data frame, including: if the first number of sending times is less than a preset number of times, sending the first data frame to the charging pile, and determining the first connection state according to the first response state of the charging pile to the first data frame, until the first connection state is that the vehicle and the charging pile successfully establish a communication connection, or the first number of sending times is greater than or equal to the preset number of times; if the first number of sending times is greater than or equal to the preset number of times, determining that the first connection state is that the vehicle and the charging pile have not successfully established a communication connection.
[0065] The above-mentioned preset number of times is the threshold for the vehicle to repeatedly send the first data frame to the charging pile. When the first sending number is less than the preset number of times and the first response status is that the charging pile has not received the first data frame, the vehicle sends the first data frame to the charging pile again. When the first sending number is greater than or equal to the preset number of times and the first response status is that the charging pile has not received the first data frame, it is determined that the vehicle and the charging pile have not successfully established a communication connection.
[0066] In an optional embodiment, when the first response state is that the charging pile has not received the first data frame, the relationship between the first number of transmissions and the preset number of times is determined. When the first number of transmissions is less than the preset number of times, the vehicle sends the first data frame to the charging pile again to try to establish a communication connection between the vehicle and the charging pile. If the first response state is still that the charging pile has not received the first data frame after the vehicle sends the first data frame to the charging pile again, the relationship between the first number of transmissions and the preset number of times is determined again. If the first number of transmissions is still less than the preset number of times, the vehicle resends the first data frame to the charging pile until the first response state is that the charging pile has received the first data frame or the first number of transmissions is greater than or equal to the preset number of times. When the first response state is that the charging pile has received the first data frame, it is determined that the first connection state is that the vehicle and the charging pile have successfully established a communication connection. When the first number of transmissions is greater than or equal to the preset number of times, it is determined that the first connection state is that the vehicle and the charging pile have not successfully established a communication connection.
[0067] In the present application, a preset number of times is set to limit the first number of times the vehicle resends the first data frame to the charging pile, so that when there is a fault in the communication connection between the vehicle and the charging pile, the first data frame will not be sent indefinitely, thereby causing energy waste.
[0068] Optionally, determining the first connection state based on the first message type of the first reply message includes: if the first message type is a reply confirmation message type, determining that the first connection state is that the vehicle and the charging pile successfully establish a communication connection; if the first message type is an abandoned connection confirmation message type, determining that the first connection state is that the vehicle and the charging pile fail to successfully establish a communication connection.
[0069] In an optional embodiment, after the vehicle receives the first response message sent by the charging pile, the type of the first response message is judged to determine the first connection state between the vehicle and the charging pile. When the type of the first response message is a response confirmation message type, the first connection state is determined to be that the vehicle and the charging pile have successfully established a communication connection, and when the type of the first response message is a connection abandonment confirmation message type, the first connection state is determined to be that the vehicle and the charging pile have not successfully established a communication connection.
[0070] In the present application, after the charging pile receives the first data frame sent by the vehicle, it sends different types of first response messages to the vehicle according to the status information of the charging pile. The vehicle determines whether the vehicle and the charging pile have successfully established a communication connection through the type of the first response message. When the charging pile has a fault but can feedback the first data frame sent by the vehicle, the vehicle can determine whether the communication connection is successfully established, so as to prevent the situation where the vehicle and the charging pile successfully establish a communication connection but the vehicle cannot be charged, thereby improving the user experience.
[0071] Optionally, the second connection state between the vehicle and the charging pile is determined according to the second response state of the charging pile to the preset data frame in the second data frame, including: if the second response state is that the second response message of the preset data frame is not received within the second preset time length, the second connection state is determined based on the second number of sending times of the second data frame; if the second response state is that the second response message is received within the second preset time length, the second connection state is determined based on the second message type of the second response message.
[0072] The second preset time length is a preset time threshold for the charging pile to send a second response message to the vehicle after the vehicle sends the preset data frame in the second data frame to the charging pile.
[0073] The above-mentioned second message type includes reception end confirmation and abandonment connection confirmation message types. When the second message type is the reception end confirmation message type, the vehicle charging is ended, and the second connection state is confirmed to be that the vehicle and the charging pile have successfully closed the communication connection. When the second message type is the abandonment connection confirmation message type, the vehicle charging is ended, and the second connection state is confirmed to be that the vehicle and the charging pile have successfully closed the communication connection.
[0074] In an optional embodiment, after the vehicle sends the preset data frame in the second data frame to the charging pile, it waits for the charging pile to send a second response message to the vehicle. If the vehicle does not receive the second response message within the second preset time, that is, the second response state is that the charging pile has not received the preset data frame, the second data frame is sent to the charging pile again by the vehicle based on the number of times the second data frame is sent. If the second response state is still that the charging pile has not received the preset data frame after sending the second data frame a certain number of times, it is determined that the communication connection between the vehicle and the charging pile is interrupted. When the vehicle does not receive the second response message within the second preset time, the second connection state is determined based on the second message type of the second response message, wherein, when the second message type is a reception end confirmation message type, the vehicle charging ends normally, and the second connection state is confirmed to be that the vehicle and the charging pile have successfully closed the communication connection, and when the second message type is a connection abandonment confirmation message type, the vehicle charging is interrupted, and the second connection state is confirmed to be that the vehicle and the charging pile have successfully closed the communication connection.
[0075] In this application, by distinguishing the second message type, the reason for the end of vehicle charging can be characterized. When the second message type is end confirmation, the vehicle charging ends normally, including that the vehicle is fully charged or the vehicle charging time has reached. When the second message type is abandon connection confirmation, the vehicle charging is interrupted to prompt the user to change the charging pile, thereby improving the user experience.
[0076] Optionally, the second connection state is determined based on the second number of sending times of the second data frame, including: if the second number of sending times is less than a preset number of times, sending the second data frame to the charging pile, and determining the second connection state based on the second response state of the charging pile to the second data frame, until the second connection state is that the vehicle and the charging pile successfully close the communication connection, or the second number of sending times is greater than or equal to the preset number of times; if the second number of sending times is greater than or equal to the preset number of times, sending a preset message to the charging pile, and determining that the second connection state is that the vehicle and the charging pile successfully disconnect the communication connection, wherein the preset message is used to prompt that the communication connection between the vehicle and the charging pile has been closed.
[0077] The above-mentioned preset message is a preset message sent by the vehicle to the charging pile, which is used to prompt the charging pile that the communication connection between the vehicle and the charging pile has been closed to prevent the charging pile from continuously outputting electrical energy.
[0078] In an optional embodiment, after the vehicle sends the second data frame to the charging pile, the vehicle does not receive the second response message sent by the charging pile within the second preset time length, that is, when the second response state is that the charging pile does not receive the preset data frame, the second data frame is sent to the charging pile again by the vehicle, and the number of times the vehicle sends the second data frame is recorded, which is recorded as the second number of transmissions. When the second response state is still that the charging pile does not receive the preset data frame, the second number of transmissions is compared with the preset number of transmissions. If the second number of transmissions is less than the preset number of transmissions, the second data frame is resent to the charging pile by the vehicle until the second response state is that the charging pile receives the preset data frame, or the second number of transmissions is greater than or equal to the preset number of transmissions. When the second response state is that the charging pile receives the preset data frame, the second connection state is determined by the second message type of the second response message. When the second number of transmissions is greater than or equal to the preset number of transmissions, a preset message is sent to the charging pile, and the second connection state is determined to be that the vehicle and the charging pile have successfully disconnected the communication connection.
[0079] In the present application, the vehicle sends a preset message to the charging pile, so that when the vehicle cannot receive the second response message from the charging pile, the preset message prompts the charging pile that the communication connection between the vehicle and the charging pile has been closed to prevent the charging pile from continuously outputting electrical energy and causing damage to the charging pile.
[0080] Optionally, determining the second connection state based on the second message type of the second response message includes: if the second message type is a reception end confirmation message type or a connection abandonment confirmation message type, determining that the second connection state is that the vehicle and the charging pile successfully close the communication connection.
[0081] In an optional embodiment, after the charging pile receives the preset data frame in the second data frame sent by the vehicle, the charging pile sends a second response message to the vehicle. The vehicle judges the type of the second response message, determines that the second information type is a reception end confirmation message type or a connection abandonment confirmation message type, and determines that the second connection state between the vehicle and the charging pile is that the vehicle and the charging pile successfully close the communication connection.
[0082] Combine the following Figure 2 A preferred embodiment of the present invention is described in detail, wherein: Figure 2 is a flow chart of an optional charging message communication method according to an embodiment of the present invention, such as Figure 2 As shown, the communication method of charging message includes the following steps:
[0083] Step S201: The vehicle sends a charging message to the charging pile, and obtains multiple data frames in the charging message.
[0084] In an optional embodiment, after the vehicle is physically connected to the charging pile, the vehicle sends a charging request, i.e., a charging message, to the charging pile, wherein the charging message includes multiple data frames, and the multiple data frames include vehicle charging data such as vehicle battery status, charging requirements, charging connection type, and billing information.
[0085] Step S202: divide multiple data frames in the charging message to obtain a first data frame and a second data frame.
[0086] In an optional embodiment, after detecting multiple data frames in a charging message and determining that the length of the charging message is greater than a preset length, the multiple data frames can be decomposed based on the preset length to obtain a first data frame and a second data frame. After dividing the multiple data frames by the preset length, in order to enable the charging pile to identify the charging message, the field length contained in the first data frame is less than the preset length, so that the charging pile can identify the charging message by identifying the first data frame, wherein the first data frame and the second data frame both contain partial data of the charging message, and the data of the charging message specifically contained in the first data frame and the second data frame is set according to actual needs or preset length.
[0087] Step S203: the vehicle sends a first data frame to the charging pile.
[0088] In an optional embodiment, after obtaining the first data frame and the second data frame, after the vehicle sends the first data frame of the charging message to the charging pile, the charging pile identifies the first data frame.
[0089] Step S204, determining whether the first response state is that the charging pile receives the first data frame.
[0090] In an optional embodiment, after the vehicle sends the first data frame of the charging message to the charging pile, the charging pile identifies the first data frame. When the charging pile successfully identifies the first data frame, the charging pile sends a first response message to the vehicle. When the vehicle receives the first response message sent by the charging pile, it is determined that the first response state is that the charging pile receives the first data frame, and step S206 is performed. When the charging pile fails to identify the first data frame, the charging pile cannot send the first response message to the vehicle, and the first response state is determined to be that the charging pile does not receive the first data frame, and step S205 is performed.
[0091] Step S205, determining whether the first sending number is less than a preset number.
[0092] In an optional embodiment, when the first response state is that the charging pile has not received the first data frame, the relationship between the first number of transmissions and the preset number of times is determined. When the first number of transmissions is less than the preset number of times, step S203 is performed, and the vehicle sends the first data frame to the charging pile again to try to establish a communication connection between the vehicle and the charging pile. If the first response state is still that the charging pile has not received the first data frame after the vehicle sends the first data frame to the charging pile again, the relationship between the first number of transmissions and the preset number of times is determined again. If the first number of transmissions is still less than the preset number of times, the vehicle resends the first data frame to the charging pile until the first response state is that the charging pile has received the first data frame or the first number of transmissions is greater than or equal to the preset number of times. When the first number of transmissions is greater than or equal to the preset number of times, step S207 is performed.
[0093] Step S206, determining whether the first message type is a response confirmation.
[0094] In an optional embodiment, after the vehicle receives the first response message sent by the charging pile, the type of the first response message is judged to determine the first connection state between the vehicle and the charging pile. When the type of the first response message is a response confirmation message type, step S208 is performed; when the type of the first response message is a connection abandonment confirmation message type, step S207 is performed.
[0095] Step S207: The vehicle fails to successfully establish a communication connection with the charging pile.
[0096] In an optional embodiment, when the type of the first response message is a connection abandonment confirmation message type, the first connection state is determined to be that the vehicle and the charging pile have not successfully established a communication connection. When the first number of transmissions is greater than or equal to a preset number of times, the first connection state is determined to be that the vehicle and the charging pile have not successfully established a communication connection.
[0097] Step S208: The vehicle successfully establishes a communication connection with the charging pile.
[0098] In an optional embodiment, when the type of the first response message is a response confirmation message type, it is determined that the first connection state is that the vehicle and the charging pile have successfully established a communication connection, and step S209 is performed.
[0099] Step S209: sending a preset data frame in the second data frame to the charging pile.
[0100] In an optional embodiment, after the vehicle successfully establishes a communication connection with the charging pile, a preset data frame in the second data frame of the charging message is sent to the charging pile.
[0101] Step S210, determining whether the second response state is that the charging pile receives a preset data frame.
[0102] In an optional embodiment, after the vehicle sends a second data frame to the charging pile, the vehicle does not receive a second response message sent by the charging pile within a second preset time period, that is, the second response status is that the charging pile has not received the preset data frame, step S211 is performed, and when the second response status is still that the charging pile has not received the preset data frame, the second number of transmissions is compared with the preset number of transmissions. If the second number of transmissions is less than the preset number of transmissions, step S211 is repeated until the second response status is that the charging pile has received the preset data frame and step 212 is performed, or the second number of transmissions is greater than or equal to the preset number of transmissions and step S213 is performed.
[0103] Step S211, determining whether the second sending number is less than a preset number.
[0104] In an optional embodiment, after the vehicle sends the second data frame to the charging pile, if the vehicle does not receive the second response message sent by the charging pile within the second preset time, that is, the second response state is that the charging pile does not receive the preset data frame, the vehicle sends the second data frame to the charging pile again, and records the number of times the vehicle sends the second data frame, which is recorded as the second number of transmissions. When the second response state is still that the charging pile does not receive the preset data frame, the second number of transmissions is compared with the preset number of transmissions. If the second number of transmissions is less than the preset number of transmissions, the vehicle resends the second data frame to the charging pile until the second response state is that the charging pile receives the preset data frame, or the second number of transmissions is greater than or equal to the preset number of transmissions. When the second number of transmissions is greater than or equal to the preset number of transmissions, step S213 is performed.
[0105] Step S212: determine the second message type of the second response message.
[0106] In an optional embodiment, after the charging pile receives the preset data frame in the second data frame sent by the vehicle, the charging pile sends a second response message to the vehicle. The vehicle judges the type of the second response message, determines that the second information type is a reception end confirmation message type or a connection abandonment confirmation message type, and proceeds to step S214.
[0107] Step S213: The vehicle sends a preset message to the charging station.
[0108] In an optional embodiment, when the second number of sending times is greater than or equal to the preset number of times, a preset message is sent to the charging pile, so that when the vehicle cannot receive the second response message from the charging pile, the preset message prompts the charging pile that the communication connection between the vehicle and the charging pile has been closed.
[0109] Step S214: The vehicle and the charging pile successfully close the communication connection.
[0110] In an optional embodiment, when the second number of transmissions is greater than or equal to the preset number of times, a preset message is sent to the charging pile, and the second connection state is determined to be that the vehicle and the charging pile have successfully disconnected the communication connection. After determining that the second information type is a reception end confirmation message type or a connection abandonment confirmation message type, the second connection state between the vehicle and the charging pile is determined to be that the vehicle and the charging pile have successfully closed the communication connection.
[0111] Example 2
[0112] According to another aspect of an embodiment of the present invention, a charging message communication device is also provided. The device can execute the charging message communication method of the above embodiment. The specific implementation method and preferred application scenario are the same as the above embodiment and will not be repeated here.
[0113] Figure 3 is a schematic diagram of the structure of an optional charging message communication device according to an embodiment of the present invention, such as Figure 3As shown, the communication device of the charging message includes: an acquisition module 30, the acquisition module 30 is used to obtain multiple data frames corresponding to the charging message in response to receiving the charging message of the vehicle, wherein the message length of the charging message is greater than the preset length; a division module 32, the division module 32 is used to divide the multiple data frames based on the preset length to obtain a first data frame and a second data frame, wherein the field length contained in the first data frame is less than the preset length; a first sending module 34, the first sending module 34 is used to send a first data frame of the charging message to the charging pile, wherein the charging message includes multiple data frames, and the first data frame is the first data frame among the multiple data frames; a determination module 36, the determination module 36 is used to determine a first connection state between the vehicle and the charging pile according to a first response state of the charging pile to the first data frame, wherein the first connection state is used to indicate whether the vehicle and the charging pile have successfully established a communication connection; a second sending module 38, the second sending module 38 is used to send a second data frame of the charging message to the charging pile when the connection state is that the vehicle and the charging pile have successfully established a communication connection, wherein the second data frame is a data frame other than the first data frame among the multiple data frames.
[0114] Optionally, the device also includes a connection module, which is used to determine a second connection state between the vehicle and the charging pile based on a second response state of the charging pile to a preset data frame in the second data frame, wherein the preset data frame is the last data frame in the second data frame, and the second connection state is used to indicate whether the vehicle and the charging pile have successfully closed the communication connection.
[0115] Optionally, the determination module is also used to determine the first connection state based on the first number of sending times of the first data frame if the first response state is that the first response message of the first data frame is not received within a first preset time period; and determine the first connection state based on the first message type of the first response message if the first response state is that the first response message is received within the first preset time period.
[0116] Optionally, the determination module is also used to send a first data frame to the charging pile if the first number of transmissions is less than a preset number of times, and determine a first connection state based on a first response state of the charging pile to the first data frame, until the first connection state is that the vehicle and the charging pile successfully establish a communication connection, or the first number of transmissions is greater than or equal to the preset number of times; if the first number of transmissions is greater than or equal to the preset number of times, it is determined that the first connection state is that the vehicle and the charging pile have not successfully established a communication connection.
[0117] Optionally, the determination module is also used to determine that the first connection state is that the vehicle and the charging pile successfully establish a communication connection if the first message type is a response confirmation message type; if the first message type is an abandoned connection confirmation message type, determine that the first connection state is that the vehicle and the charging pile fail to successfully establish a communication connection.
[0118] Optionally, the connection module is also used to determine the second connection state based on the second number of sending times of the second data frame if the second response state is that the second response message of the preset data frame is not received within a second preset time period; if the second response state is that the second response message is received within the second preset time period, determine the second connection state based on the second message type of the second response message.
[0119] Optionally, the connection module is also used to send a second data frame to the charging pile if the second number of sending times is less than a preset number of times, and determine the second connection state based on the second response state of the charging pile to the second data frame, until the second connection state is that the vehicle and the charging pile successfully close the communication connection, or the second number of sending times is greater than or equal to the preset number of times; if the second number of sending times is greater than or equal to the preset number of times, send a preset message to the charging pile, and determine that the second connection state is that the vehicle and the charging pile successfully disconnect the communication connection, wherein the preset message is used to prompt that the communication connection between the vehicle and the charging pile has been closed.
[0120] Optionally, if the second message type is a reception end confirmation message type or a connection abandonment confirmation message type, the second connection state is determined to be that the vehicle and the charging pile successfully close the communication connection.
[0121] Example 3
[0122] An embodiment of the present application further provides an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the program executes the methods in various embodiments of the present invention when running.
[0123] Example 4
[0124] An embodiment of the present application further provides a computer-readable storage medium, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention.
[0125] Example 5
[0126] An embodiment of the present application further provides a computer program product, including a computer program, which implements the methods in various embodiments of the present invention when executed by a processor.
[0127] Example 6
[0128] The embodiments of the present application further provide a computer program, which implements the methods in the above-mentioned embodiments of the present invention when executed by a processor.
[0129] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0130] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0131] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0132] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0133] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0134] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0135] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A charging message communication method, characterized in that: include: In response to receiving a charging message from a vehicle, acquiring a plurality of data frames corresponding to the charging message, wherein a message length of the charging message is greater than a preset length; Dividing the multiple data frames based on the preset length to obtain a first data frame and a second data frame, wherein the length of the field included in the first data frame is less than the preset length; Sending a first data frame of the charging message to a charging pile, wherein the charging message includes multiple data frames, and the first data frame is the first data frame of the multiple data frames; Determining a first connection state between the vehicle and the charging pile according to a first response state of the charging pile to the first data frame, wherein the first connection state is used to indicate whether a communication connection is successfully established between the vehicle and the charging pile; When the connection state is that the vehicle and the charging pile successfully establish the communication connection, a second data frame of the charging message is sent to the charging pile, wherein the second data frame is a data frame other than the first data frame in the multiple data frames.
2. The charging message communication method according to claim 1, characterized in that: The method further comprises: The second connection state between the vehicle and the charging pile is determined according to the second response state of the charging pile to the preset data frame in the second data frame, wherein the preset data frame is the last data frame in the second data frame, and the second connection state is used to indicate whether the vehicle and the charging pile have successfully closed the communication connection.
3. The charging message communication method according to claim 1, characterized in that: Determining a first connection state between the vehicle and the charging pile according to a first response state of the charging pile to the first data frame includes: If the first response state is that the first response message of the first data frame is not received within a first preset time period, determining the first connection state based on a first number of times the first data frame is sent; If the first response status is that the first response message is received within the first preset time period, the first connection status is determined based on a first message type of the first response message.
4. The charging message communication method according to claim 3, characterized in that: Determining the first connection state based on a first number of times the first data frame is sent includes: If the first number of transmissions is less than a preset number of times, the first data frame is transmitted to the charging pile, and the first connection state is determined according to the first response state of the charging pile to the first data frame, until the first connection state is that the vehicle and the charging pile successfully establish the communication connection, or the first number of transmissions is greater than or equal to the preset number of times; If the first sending number is greater than or equal to the preset number, it is determined that the first connection state is that the vehicle and the charging pile have not successfully established the communication connection.
5. The charging message communication method according to claim 3, characterized in that: Determining the first connection state based on the first message type of the first response message includes: If the first message type is a response confirmation message type, determining that the first connection state is that the vehicle and the charging pile successfully establish the communication connection; If the first message type is a connection abandonment confirmation message type, it is determined that the first connection state is that the vehicle and the charging pile have not successfully established the communication connection.
6. The charging message communication method according to claim 2, characterized in that: Determining a second connection state between the vehicle and the charging pile according to a second response state of the charging pile to a preset data frame in the second data frame includes: If the second response state is that a second response message of the preset data frame is not received within a second preset time period, determining the second connection state based on a second number of times the second data frame is sent; If the second response state is that the second response message is received within the second preset time period, the second connection state is determined based on the second message type of the second response message.
7. The charging message communication method according to claim 6, characterized in that: Determining the second connection state based on a second number of times the second data frame is sent includes: If the second sending number is less than the preset number, sending the second data frame to the charging pile, and determining the second connection state according to the second response state of the charging pile to the second data frame, until the second connection state is that the vehicle and the charging pile successfully close the communication connection, or the second sending number is greater than or equal to the preset number; If the second sending number is greater than or equal to the preset number, a preset message is sent to the charging pile, and the second connection state is determined to be that the vehicle and the charging pile have successfully disconnected the communication connection, wherein the preset message is used to prompt that the communication connection between the vehicle and the charging pile has been closed.
8. The charging message communication method according to claim 6, characterized in that: Determining a second connection state based on a second message type of the second response message includes: If the second message type is a reception end confirmation message type or a connection abandonment confirmation message type, it is determined that the second connection state is that the vehicle and the charging pile successfully close the communication connection.
9. A charging message communication device, characterized in that: include: an acquisition module, configured to acquire, in response to receiving a charging message from a vehicle, a plurality of data frames corresponding to the charging message, wherein a message length of the charging message is greater than a preset length; A division module, configured to divide the plurality of data frames based on the preset length to obtain a first data frame and a second data frame, wherein the length of a field included in the first data frame is less than the preset length; A first sending module, configured to send a first data frame of the charging message to a charging pile, wherein the charging message includes a plurality of data frames, and the first data frame is a first data frame among the plurality of data frames; a determination module, configured to determine a first connection state between the vehicle and the charging pile according to a first response state of the charging pile to the first data frame, wherein the first connection state is used to indicate whether a communication connection is successfully established between the vehicle and the charging pile; The second sending module is used to send a second data frame of the charging message to the charging pile when the connection state is that the vehicle and the charging pile successfully establish the communication connection, wherein the second data frame is other data frames among the multiple data frames except the first data frame.
10. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 8 when running.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is executed, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
Citation Information
Cited By
Communication method and apparatus for charging message, and electronic device
WO2025256069A1
