Communication method and device for vehicle and battery swap station, terminal device and medium

CN117692270BActive Publication Date: 2026-09-08ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311688768.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2026-09-08
Estimated Expiration
2043-12-08

AI Technical Summary

Technical Problem

[0003]然而,尽管换电过程本身已经实现了自动化,但在换电开始前的准备阶段自动化程度相对较低

Benefits of technology

[0035] The vehicle-to-battery swapping station communication method, apparatus, terminal equipment, and storage medium proposed in this application, when the on-board terminal is connected to the vehicle via the CAN serial communication protocol, acquires the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem, respectively; concatenates the communication addresses and vehicle data according to a preset serial communication protocol to obtain a network message; the serial communication protocol is configured based on the CAN serial communication protocol; and sends the network message to the swapping station, so that the swapping station, upon receiving the network message, can parse the communication address based on the serial communication protocol to obtain the vehicle data. The on-board terminal acquires the communication addresses and vehicle data of the vehicle's control subsystem and battery management subsystem based on the CAN serial communication protocol, generates corresponding network messages according to the preset serial communication protocol, and transmits them to the heavy-duty truck swapping station, so that the heavy-duty truck swapping station can parse the network message and extract the vehicle data based on the serial communication protocol. This effectively achieves real-time communication between the vehicle and the swapping station, thereby improving the efficiency of vehicle battery swapping.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117692270B_ABST
    Figure CN117692270B_ABST
Patent Text Reader

Abstract

The application discloses a communication method and device of a vehicle and a battery swap station, a terminal device and a storage medium. The communication method of the vehicle and the battery swap station comprises the following steps: when a vehicle terminal and the vehicle are connected through a serial communication CAN protocol, acquiring vehicle data and a communication address of a control subsystem and a battery management subsystem of the vehicle; splicing the communication address and the vehicle data according to a preset serial communication protocol to obtain a network message; the serial communication protocol is obtained based on the serial communication CAN protocol; and sending the network message to the battery swap station, so that the battery swap station can analyze the communication address based on the serial communication protocol to obtain the vehicle data when receiving the network message, and the real-time communication between the vehicle and the battery swap station can be effectively realized, and the efficiency of battery replacement of the vehicle is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electric vehicle charging and swapping application technology, and in particular to a communication method, device, terminal equipment, and storage medium between a vehicle and a swapping station. Background Technology

[0002] Currently, the charging time for electric vehicles is indeed longer than the refueling time for traditional gasoline vehicles, which limits the acceptance of electric vehicles by some users. To address this issue, the electric vehicle industry is actively promoting the development of rapid battery pack replacement technology, especially for commercial vehicle users. This technology is expected to significantly shorten charging time and improve vehicle operating efficiency.

[0003] However, although the battery swapping process itself has been automated, the level of automation in the preparation phase before the swap begins is relatively low. During this preparation phase, some key tasks still require manual intervention. For example, the battery swapping station needs to manually obtain data from the vehicle's Battery Management System (BMS) and Vehicle Control Unit (VCU), resulting in some human factors remaining in the entire battery swapping process and thus limiting the improvement of vehicle battery replacement efficiency.

[0004] Therefore, it is necessary to propose a communication scheme between vehicles and battery swapping stations. Summary of the Invention

[0005] The main objective of this application is to provide a communication method, device, terminal equipment, and storage medium between a vehicle and a battery swapping station, which aims to effectively realize real-time communication between the vehicle and the battery swapping station, thereby improving the efficiency of vehicle battery swapping.

[0006] To achieve the above objectives, this application provides a communication method between a vehicle and a battery swapping station. This communication method is applied to an on-board terminal and includes the following steps:

[0007] When the vehicle terminal connects to the vehicle via the CAN serial communication protocol, it acquires the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem, respectively.

[0008] According to the preset serial communication protocol, the communication address and vehicle data are concatenated to obtain a network message; the serial communication protocol is configured based on the serial communication CAN protocol.

[0009] The network message is sent to the battery swapping station so that the battery swapping station can parse the communication address based on the serial communication protocol when receiving the network message to obtain the vehicle data.

[0010] Optionally, before the step of obtaining the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem respectively when the vehicle terminal is connected to the vehicle via the serial communication CAN protocol, the method further includes:

[0011] Obtain the vehicle model number of the vehicle;

[0012] The serial communication CAN protocol corresponding to the vehicle model is matched so that the vehicle terminal can connect with the vehicle via the serial communication.

[0013] Optionally, the step of concatenating the communication address and vehicle data according to a preset serial communication protocol to obtain a network packet includes:

[0014] According to the serial communication protocol, obtain the fixed identifier corresponding to the serial communication CAN protocol;

[0015] The network packet is obtained by concatenating the protocol fixed identifier, the communication address, and the vehicle data.

[0016] Optionally, the vehicle-mounted terminal and the battery swapping station are deployed on the same network using a preset long-connection working mode, and the step of sending the network message to the battery swapping station includes:

[0017] The network packet is encrypted and authenticated to obtain an encrypted network packet.

[0018] Based on a preset wireless communication method, the encrypted network message is sent to the battery swapping station.

[0019] This application provides a communication method between a vehicle and a battery swapping station. The communication method between the vehicle and the battery swapping station is applied to the battery swapping station and includes the following steps:

[0020] Receive network messages transmitted by the vehicle terminal; wherein, when the vehicle terminal is connected to the vehicle via the CAN serial communication protocol, obtain the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem respectively; according to the preset serial communication protocol, concatenate the communication address and vehicle data to obtain network messages; the serial communication protocol is configured based on the CAN serial communication protocol;

[0021] Based on the serial communication protocol, the communication address in the network message is parsed to obtain the vehicle data.

[0022] Optionally, the network packet further includes a protocol fixed identifier, the serial communication protocol includes a protocol identifier, and after the step of receiving the network packet transmitted by the vehicle terminal, the method further includes:

[0023] Detect whether the fixed identifier of the protocol matches the identifier of the specification;

[0024] If so, then the step of parsing the communication address in the network packet based on the serial communication protocol to obtain the vehicle data is executed;

[0025] If not, an error message is sent to the vehicle terminal.

[0026] This application also proposes a communication device between a vehicle and a battery swapping station. The communication device is applied to an on-board terminal and includes:

[0027] The acquisition module is used to acquire vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem when the vehicle terminal is connected to the vehicle via the serial communication CAN protocol.

[0028] The splicing module is used to splice the communication address and vehicle data according to a preset serial communication protocol to obtain a network message; the serial communication protocol is configured based on the serial communication CAN protocol.

[0029] The sending module is used to send the network message to the battery swapping station, so that when the battery swapping station receives the network message, it can parse the communication address based on the serial communication protocol to obtain the vehicle data.

[0030] This application also proposes a communication device between a vehicle and a battery swapping station. The communication device is applied at the battery swapping station and includes:

[0031] The receiving module is used to receive network messages transmitted by the vehicle terminal; wherein, when the vehicle terminal is connected to the vehicle via the CAN serial communication protocol, it obtains the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem respectively; according to the preset serial communication protocol, it concatenates the communication address and vehicle data to obtain the network message; the serial communication protocol is configured based on the CAN serial communication protocol.

[0032] The parsing module is used to parse the communication address in the network packet based on the serial communication protocol to obtain the vehicle data.

[0033] This application also proposes a terminal device, which includes a memory, a processor, and a vehicle-to-swapping station communication program stored in the memory and executable on the processor. When the vehicle-to-swapping station communication program is executed by the processor, it implements the steps of the vehicle-to-swapping station communication method described above.

[0034] This application also proposes a computer-readable storage medium storing a communication program between a vehicle and a battery swapping station. When the communication program between the vehicle and the battery swapping station is executed by a processor, it implements the steps of the communication method between the vehicle and the battery swapping station as described above.

[0035] The vehicle-to-battery swapping station communication method, apparatus, terminal equipment, and storage medium proposed in this application, when the on-board terminal is connected to the vehicle via the CAN serial communication protocol, acquires the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem, respectively; concatenates the communication addresses and vehicle data according to a preset serial communication protocol to obtain a network message; the serial communication protocol is configured based on the CAN serial communication protocol; and sends the network message to the swapping station, so that the swapping station, upon receiving the network message, can parse the communication address based on the serial communication protocol to obtain the vehicle data. The on-board terminal acquires the communication addresses and vehicle data of the vehicle's control subsystem and battery management subsystem based on the CAN serial communication protocol, generates corresponding network messages according to the preset serial communication protocol, and transmits them to the heavy-duty truck swapping station, so that the heavy-duty truck swapping station can parse the network message and extract the vehicle data based on the serial communication protocol. This effectively achieves real-time communication between the vehicle and the swapping station, thereby improving the efficiency of vehicle battery swapping. Attached Figure Description

[0036] Figure 1 This is a schematic diagram of the functional modules of the terminal equipment to which the communication device between the vehicle and the battery swapping station belongs in this application;

[0037] Figure 2 This is a schematic flowchart illustrating a first exemplary embodiment of the communication method between the vehicle and the battery swapping station in this application.

[0038] Figure 3 This is a diagram illustrating the vehicle CAN network architecture framework for the communication method between the vehicle and the battery swapping station in this application.

[0039] Figure 4 This is a schematic flowchart illustrating a second exemplary embodiment of the communication method between the vehicle and the battery swapping station in this application.

[0040] Figure 5 This is a schematic flowchart illustrating a third exemplary embodiment of the communication method between a vehicle and a battery swapping station according to this application.

[0041] Figure 6 This is a schematic flowchart illustrating a fourth exemplary embodiment of the communication method between a vehicle and a battery swapping station according to this application.

[0042] Figure 7 This is a flowchart illustrating a fifth exemplary embodiment of the communication method between a vehicle and a battery swapping station according to this application.

[0043] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0044] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0045] The main solution of this application embodiment is as follows: when the vehicle terminal is connected to the vehicle via the CAN serial communication protocol, the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem are obtained respectively; according to the preset serial communication protocol, the communication address and vehicle data are concatenated to obtain a network message; the serial communication protocol is configured based on the CAN serial communication protocol; the network message is sent to the battery swapping station, so that when the battery swapping station receives the network message, it can parse the communication address based on the serial communication protocol to obtain the vehicle data.

[0046] This application takes into account that the charging time for electric vehicles is indeed longer than the refueling time for traditional gasoline vehicles, which limits the acceptance of some users. To solve this problem, the electric vehicle industry is actively promoting the development of rapid battery pack replacement technology, especially for commercial vehicle users. This technology is expected to greatly shorten charging time and improve vehicle operating efficiency.

[0047] However, although the battery swapping process itself has been automated, the level of automation in the preparation phase before the swap begins is relatively low. During this preparation phase, some key tasks still require manual intervention. For example, the battery swapping station needs to manually obtain data from the vehicle's Battery Management System (BMS) and Vehicle Control Unit (VCU), resulting in some human factors remaining in the entire battery swapping process and thus limiting the improvement of vehicle battery replacement efficiency.

[0048] Therefore, in this embodiment, the vehicle terminal obtains the communication addresses and vehicle data of the vehicle's control subsystem and battery management subsystem based on the serial communication CAN protocol, generates corresponding network messages according to the preset serial communication protocol, and transmits them to the heavy-duty truck battery swapping station. The heavy-duty truck battery swapping station then parses the network messages and extracts the vehicle data based on the serial communication protocol, which can effectively realize real-time communication between the vehicle and the battery swapping station, thereby improving the efficiency of vehicle battery replacement.

[0049] Specifically, refer to Figure 1 , Figure 1This is a functional module diagram of the terminal equipment to which the communication device between the vehicle and the battery swapping station belongs in this application. The communication device between the vehicle and the battery swapping station can be a device independent of the terminal equipment, capable of communication between the vehicle and the battery swapping station. It can be carried on the terminal equipment in hardware or software form. The terminal equipment can be an intelligent terminal with data processing capabilities, such as an on-board terminal or a battery swapping station terminal, or it can be a fixed terminal device or server with data processing capabilities.

[0050] In this embodiment, the terminal equipment of the communication device between the vehicle and the battery swapping station includes at least an output module 110, a processor 120, a memory 130, and a communication module 140.

[0051] The memory 130 stores the operating system and the communication program between the vehicle and the battery swapping station. The communication device between the vehicle and the battery swapping station can respond to the battery swapping request, obtain vehicle data and communication addresses from several control systems based on a pre-configured serial communication protocol, and store the network message corresponding to the battery swapping request in the memory 130 by concatenating the communication address and vehicle data. The output module 110 can be a display screen, etc. The communication module 140 can include a WIFI module, a mobile communication module, and a Bluetooth module, etc., and communicates with external devices or servers through the communication module 140.

[0052] When the communication program between the vehicle and the battery swapping station in memory 130 is executed by the processor, the following steps are performed:

[0053] When the vehicle terminal connects to the vehicle via the CAN serial communication protocol, it acquires the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem, respectively.

[0054] According to the preset serial communication protocol, the communication address and vehicle data are concatenated to obtain a network message; the serial communication protocol is configured based on the serial communication CAN protocol.

[0055] The network message is sent to the battery swapping station so that the battery swapping station can parse the communication address based on the serial communication protocol when receiving the network message to obtain the vehicle data.

[0056] Furthermore, when the communication program between the vehicle and the battery swapping station in memory 130 is executed by the processor, the following steps are also performed:

[0057] Obtain the vehicle model number of the vehicle;

[0058] The serial communication CAN protocol corresponding to the vehicle model is matched so that the vehicle terminal can connect with the vehicle via the serial communication.

[0059] Furthermore, when the communication program between the vehicle and the battery swapping station in memory 130 is executed by the processor, the following steps are also performed:

[0060] According to the serial communication protocol, obtain the fixed identifier corresponding to the serial communication CAN protocol;

[0061] The network packet is obtained by concatenating the protocol fixed identifier, the communication address, and the vehicle data.

[0062] Furthermore, when the communication program between the vehicle and the battery swapping station in memory 130 is executed by the processor, the following steps are also performed:

[0063] The network packet is encrypted and authenticated to obtain an encrypted network packet.

[0064] Based on a preset wireless communication method, the encrypted network message is sent to the battery swapping station.

[0065] Furthermore, when the communication program between the vehicle and the battery swapping station in memory 130 is executed by the processor, the following steps are also performed:

[0066] Receive network messages transmitted by the vehicle terminal; wherein, when the vehicle terminal is connected to the vehicle via the CAN serial communication protocol, obtain the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem respectively; according to the preset serial communication protocol, concatenate the communication address and vehicle data to obtain network messages; the serial communication protocol is configured based on the CAN serial communication protocol;

[0067] Based on the serial communication protocol, the communication address in the network message is parsed to obtain the vehicle data.

[0068] Furthermore, when the communication program between the vehicle and the battery swapping station in memory 130 is executed by the processor, the following steps are also performed:

[0069] Detect whether the fixed identifier of the protocol matches the identifier of the specification;

[0070] If so, then the step of parsing the communication address in the network packet based on the serial communication protocol to obtain the vehicle data is executed;

[0071] If not, an error message is sent to the vehicle terminal.

[0072] This embodiment, through the above-described scheme, specifically involves obtaining vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem when the on-board terminal is connected to the vehicle via the CAN serial communication protocol. The communication addresses and vehicle data are then concatenated according to a preset serial communication protocol to obtain a network message. This serial communication protocol is configured based on the CAN serial communication protocol. The network message is then sent to the battery swapping station, which, upon receiving the network message, parses the communication address based on the serial communication protocol to obtain the vehicle data. The on-board terminal obtains the communication addresses and vehicle data of the vehicle's control subsystem and battery management subsystem based on the CAN serial communication protocol, generates corresponding network messages according to the preset serial communication protocol, and transmits them to the heavy-duty truck battery swapping station. The heavy-duty truck battery swapping station then parses the network message based on the serial communication protocol to extract the vehicle data, effectively achieving real-time communication between the vehicle and the battery swapping station, thereby improving the efficiency of vehicle battery replacement.

[0073] Based on, but not limited to, the terminal device architecture described above, this application proposes method embodiments.

[0074] Reference Figure 2 , Figure 2 This is a flowchart illustrating a first exemplary embodiment of the communication method between a vehicle and a battery swapping station according to this application. The communication method between the vehicle and the battery swapping station is applied to an on-board terminal and includes:

[0075] Step S210: When the vehicle terminal is connected to the vehicle via the serial communication CAN protocol, obtain the vehicle data and communication address of the vehicle's control subsystem and battery management subsystem respectively.

[0076] The execution subject of the method in this embodiment can be a communication device between a vehicle and a battery swapping station, or a communication terminal device or server between a vehicle and a battery swapping station. This embodiment takes a communication device between a vehicle and a battery swapping station as an example. The communication device between the vehicle and the battery swapping station can be integrated into a terminal device such as an on-board terminal with data processing function.

[0077] Specifically, the vehicle-mounted terminal serves as an intermediary device for communication between the battery swapping station and the vehicle. At the same time, the vehicle-mounted terminal can collect real-time status information of various modules of the vehicle, such as BMS status, VCU status, alarm status, etc., and then store and forward this information to the battery swapping station.

[0078] As one implementation scheme, the vehicle-mounted terminal can be pre-installed in the passenger compartment of the vehicle and connected to the vehicle via a serial communication CAN protocol. As another implementation scheme, the vehicle-mounted terminal can also be a standalone device, which can be manually connected to any vehicle entering the battery swapping area via a serial communication CAN protocol, thereby reducing the communication cost between the vehicle and the battery swapping station.

[0079] The battery management subsystem can be the vehicle's battery management system (BMS); the control subsystem can be the vehicle's onboard controller (VCU); vehicle data can be information about the vehicle's status and performance, such as battery status, vehicle speed, temperature, etc.; and the communication address can be a unique identifier that identifies specific data or devices and is used to identify the location of the data to be acquired.

[0080] In addition, to ensure that only legitimate nodes can join the CAN bus, a node authentication mechanism can be introduced before step S210. That is, before connecting to the CAN bus, several control systems of the vehicle can provide identity verification to the CAN network, such as username and password, digital certificate or other authentication methods, so that only authenticated nodes can obtain access rights, thereby improving the security of the CAN bus.

[0081] Furthermore, to ensure that only authorized nodes can access critical parts of the CAN bus, access control policies can be implemented, allowing only authenticated and authorized nodes to communicate with the CAN bus, thus ensuring the reliability of communication.

[0082] Step S220: According to the preset serial communication protocol, the communication address and vehicle data are concatenated to obtain a network message; the serial communication protocol is configured based on the serial communication CAN protocol.

[0083] Specifically, a pre-configured serial communication protocol can be used to define the data transmission format and communication rules, such as the communication address, requester, sender, fixed period, length, and signal bits. According to the CAN serial communication protocol, the communication address can be determined to be placed at a specific position at the beginning, end, or middle of the network message. The communication address and vehicle data are then concatenated according to the serial communication protocol to ensure that the vehicle data can be correctly parsed and processed during transmission and reception.

[0084] Step S230: Send the network message to the battery swapping station so that the battery swapping station can parse the communication address based on the serial communication protocol when receiving the network message to obtain the vehicle data.

[0085] Specifically, the battery swapping station parses the communication address in the network message according to the serial communication protocol, and can determine the source and meaning of the vehicle data based on the communication address.

[0086] The vehicle CAN network architecture framework in this embodiment is as follows: Figure 3 The following are shown:

[0087] The vehicle domain network connects to the T-BOX remote communication system, powertrain domain gateway, body domain gateway, driver assistance domain gateway, and entertainment domain gateway. Specifically, the powertrain domain gateway connects to the ESP electronic stability system, TCU transmission control, EMS engine management, and EPB electronic parking brake via the powertrain CANFD; the body domain gateway connects to the ICM instrument cluster, PEPS smart entry and start, and BCM body control via the body control CANFD; the driver assistance domain gateway connects to PAS parking assist, BSD blind spot detection, and PAS parking assist via the driver assistance CANFD; additionally, the driver assistance domain gateway connects to high-precision maps, radar, and cameras via in-vehicle Ethernet; and the entertainment domain gateway connects to TVs, DVDs, and displays via in-vehicle Ethernet.

[0088] For example, in a fleet of electric vans belonging to an urban logistics company, each van is equipped with an advanced onboard terminal. When a van needs charging, the driver drives into a smart battery swapping station provided by the company. While the vehicle is parked, the onboard terminal establishes a communication connection with the vehicle's control subsystem and battery management subsystem via the CAN serial communication protocol. During this process, the onboard terminal obtains vehicle data and communication addresses from both the control subsystem and the battery management subsystem.

[0089] According to the preset serial communication protocol, the vehicle terminal concatenates the communication address and vehicle data in a specified format. This serial communication protocol is configured based on the CAN protocol, ensuring accurate information transmission and standardized data format. After concatenation, the vehicle terminal generates a network message conforming to the communication protocol, which contains key data such as vehicle status and battery information, as well as a communication address identifying the vehicle and the source of the information.

[0090] Then, the onboard terminal transmits this network message to the smart battery swapping station. After receiving the network message, the battery swapping station parses the communication address according to the preset serial communication protocol, enabling the station to accurately identify the vehicle and read vehicle data, including battery status, remaining power, and vehicle operating status, thus automating the vehicle's battery swapping preparation phase.

[0091] This embodiment, through the above-described scheme, specifically obtains the communication addresses and vehicle data of the vehicle's control subsystem and battery management subsystem based on the CAN serial communication protocol via the vehicle terminal. It then generates corresponding network messages according to a preset serial communication protocol and transmits them to the heavy-duty truck battery swapping station. The heavy-duty truck battery swapping station then parses the network messages and extracts the vehicle data based on the serial communication protocol. This effectively enables real-time communication between the vehicle and the battery swapping station, thereby improving the efficiency of vehicle battery replacement.

[0092] Reference Figure 4 , Figure 4 This is a flowchart illustrating a second exemplary embodiment of the communication method between the vehicle and the battery swapping station according to this application. Based on the above... Figure 2 In the embodiment shown, before step S210, when the vehicle terminal is connected to the vehicle via the serial communication CAN protocol, and before obtaining the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem respectively, the following steps are further included:

[0093] Step S410: Obtain the vehicle model of the vehicle;

[0094] Specifically, this application embodiment considers that CAN (Controller Area Network) is a widely used communication bus standard in the automotive field, capable of high-speed and reliable data transmission. In heavy-duty truck battery swapping stations, the CAN bus can be used for data exchange between the vehicle's infotainment system and the BMS (Battery Management System) and the Vehicle Control Unit (VCU), including battery pack information, vehicle VIN code, vehicle gear position, and vehicle handbrake information. In specific implementation, the vehicle terminal needs to physically connect to the heavy-duty truck's CAN bus via a CAN interface. Then, the vehicle terminal uses a CAN parser to parse the data on the CAN bus, including battery information sent by the BMS and vehicle status information from the VCU. Finally, the vehicle terminal performs corresponding operations based on the parsed data, such as displaying battery status, controlling vehicle connection, disconnection, locking / unlocking the battery pack, and initiating battery swapping. Through the CAN-based vehicle-to-vehicle connection method, the heavy-duty truck battery swapping station can obtain real-time information such as the heavy-duty truck's battery status and vehicle status, thereby achieving precise control and management of the battery swapping process. Simultaneously, as a reliable communication standard, the CAN bus ensures stable data transmission, improving the system's reliability and stability.

[0095] However, different heavy-duty truck brands and models may use different CAN communication protocols and data formats. Therefore, when designing and implementing heavy-duty truck battery swapping stations, it is necessary to adapt and configure them according to the specific heavy-duty truck model to ensure that the on-board terminal can correctly parse and process the data on the CAN bus. Therefore, this solution provides a vehicle-to-machine connection method based on the basic CAN protocol for information exchange and to control the vehicle's automatic battery swapping.

[0096] Therefore, this application embodiment adapts and configures the vehicle according to the specific heavy-duty truck model to ensure that the vehicle terminal can correctly parse and process the data on the CAN bus. It proposes a vehicle-machine connection method based on the basic CAN protocol to realize information interaction between heavy-duty trucks and battery swapping stations and control the automatic battery swapping of vehicles.

[0097] Step S420: Match the serial communication CAN protocol corresponding to the vehicle model so that the vehicle terminal and the vehicle can connect via the serial communication.

[0098] Specifically, in this embodiment, a pre-defined protocol adapter can be used to convert the data format of different vehicle models into a standard format conforming to the CAN serial communication protocol, and map the data fields of different vehicle models to the fields defined by the CAN serial communication protocol to ensure that the data can be correctly parsed. See Table 1 below for details:

[0099] Table 1

[0100]

[0101]

[0102]

[0103]

[0104]

[0105]

[0106] This embodiment, through the above-described scheme, specifically utilizes the mapping relationship between the adapter and vehicle model and the battery swapping station. That is, it adapts and configures the adapter according to the specific heavy-duty truck model to ensure that the vehicle terminal can correctly parse and process the data on the CAN bus. This enables a vehicle-to-machine connection method based on the basic CAN protocol. The corresponding information is obtained through the CAN communication address, so that the message does not require secondary processing and improves the real-time performance of information transmission.

[0107] Reference Figure 5 , Figure 5 This is a schematic flowchart illustrating a third exemplary embodiment of the communication method between the vehicle and the battery swapping station according to this application. Based on the above... Figure 2 In the embodiment shown, step S220 involves concatenating the communication address and vehicle data according to a preset serial communication protocol to obtain a network packet, including:

[0108] Step S510: Obtain the fixed identifier corresponding to the serial communication CAN protocol according to the serial communication protocol.

[0109] Specifically, in order to enable the battery swapping station to determine that the data comes from the correct sender and conforms to the pre-configured serial communication protocol, this application embodiment sets a unique fixed protocol identifier for the serial communication CAN protocol in the serial communication protocol to identify the protocol version or type used, so as to ensure that the data receiver knows the communication protocol used by the sender.

[0110] Step S520: Concatenate the protocol fixed identifier, the communication address, and the vehicle data to obtain the network packet.

[0111] For example, regarding vehicle-side VIN code information, first, a fixed header of "66" is retrieved, followed by the CAN address (4 characters in size). Then, the parameter values ​​are appended to form a complete communication message, implemented using TCP / IP Socket communication, and transmitted from the vehicle-side to the station. Upon receiving the message, the station parses the corresponding vehicle-side information based on the received address. See Table 2 below:

[0112] Table 2

[0113]

[0114] More specifically, to construct a network message, a fixed message header can be added first, serving as the start marker or identifier for communication. Then, address information, typically four characters in size, is obtained from the CAN communication to identify the vehicle or a specific part of the communication. The VIN code information is then added to the message; this parameter value can include the VIN code itself, as well as other vehicle-related information. The fixed message header, CAN address, and parameter value are then assembled to form a complete communication message. This message can then be sent to the station using TCP / IP Socket communication. Upon receiving the message, the station can identify and process data from different vehicles based on the CAN communication address.

[0115] This embodiment, through the above-described scheme, specifically by obtaining a fixed protocol identifier, ensures that each network packet contains a unique identifier related to the communication protocol; by concatenating the fixed protocol identifier, communication address, and vehicle data into a network packet, it can improve the integrity and consistency of data, thereby enhancing the reliability of data exchange, in the case where different heavy-duty truck brands and models use different CAN protocols and data formats, making it difficult for heavy-duty truck swapping stations to correctly parse vehicle data.

[0116] Reference Figure 6 , Figure 6 This is a flowchart illustrating a fourth exemplary embodiment of the communication method between the vehicle and the battery swapping station according to this application. Based on the above... Figure 2In the embodiment shown, the vehicle-mounted terminal and the battery swapping station are deployed on the same network using a preset long-connection working mode. Step S230 involves sending a network message to the battery swapping station, including:

[0117] Step S610: Encrypt and authenticate the network packet to obtain an encrypted network packet;

[0118] Specifically, introducing encryption and authentication mechanisms on the CAN bus ensures that transmitted messages are not eavesdropped on or tampered with during transmission, and allows legitimate nodes to communicate. This protects critical information from unauthorized access.

[0119] The encryption mechanism can be a symmetric key encryption algorithm, an asymmetric encryption algorithm, a key exchange protocol, etc.; the authentication mechanism can be an authentication algorithm based on a hash function, an RSA algorithm, a DSA data signature algorithm, a lightweight token, etc.

[0120] Step S620: Based on a preset wireless communication method, send the encrypted network message to the battery swapping station.

[0121] Specifically, the preferred wireless communication method is TCP / IP Socket, but in other embodiments it can also be HTTP / HTTPS, etc.

[0122] In addition, to detect abnormal behavior, communication on the CAN bus is monitored in real time. This includes detecting abnormal messages, frequent retransmissions, and abnormal data traffic. Once abnormal behavior is detected, the system should immediately take appropriate security measures, such as disabling node access, isolating infected nodes, or logging and reporting security incidents. This helps in quickly responding to potential attacks or failures.

[0123] Further protection of the CAN bus physical interface can be enhanced to prevent physical attacks such as cable cutting, signal interference, or eavesdropping. Physical security measures can include using physically shielded cables, encrypted transmission lines, secure location controls, and measures to prevent physical intrusion. This helps ensure the physical security of the bus, preventing interference with signals and intrusion.

[0124] This embodiment, through the above scheme, specifically encrypts and authenticates the network packets to obtain encrypted network packets; based on a preset wireless communication method, it sends the encrypted network packets to the battery swapping station, enabling authorized vehicles to communicate with the battery swapping station through the vehicle terminal, and ensuring that vehicle data can be reliably transmitted and processed, thereby improving data security and integrity.

[0125] Reference Figure 7 , Figure 7This is a flowchart illustrating a fifth exemplary embodiment of the vehicle-to-swapping station communication method of this application. The vehicle-to-swapping station communication method is applied to a swapping station and includes the following steps:

[0126] Step S710: Receive network messages transmitted by the vehicle terminal; wherein, when the vehicle terminal is connected to the vehicle via the CAN serial communication protocol, obtain the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem respectively; according to the preset serial communication protocol, concatenate the communication address and vehicle data to obtain network messages; the serial communication protocol is configured based on the CAN serial communication protocol.

[0127] Step S720: Based on the serial communication protocol, the communication address in the network packet is parsed to obtain the vehicle data.

[0128] Specifically, a battery swapping station includes a station terminal and a station control unit. The station terminal receives network packets sent by vehicles, which contain communication addresses and vehicle data. Then, the station terminal can parse the communication addresses in the network packets according to a pre-configured serial communication protocol to determine the vehicle data corresponding to each of the various control systems. After extracting the vehicle data at the station terminal, it can be transmitted to the station control unit.

[0129] The station control system executes corresponding control operations based on received vehicle data and predefined instructions. These instructions may include starting, stopping, charging, and powering off the battery swapping process. The station control system uses vehicle data to make decisions to ensure the safe and effective execution of the battery swapping operation.

[0130] This fully utilizes the collaboration between the station and the station control. The station is responsible for parsing the data transmitted from the vehicle and passing it to the station control, while the station control is responsible for controlling the vehicle based on the data. This enables the station to communicate with the vehicle-side battery management system (BMS) and the vehicle control unit (VCU). For example, the station can obtain battery status information from the vehicle, such as battery number, battery rated capacity, SOC value, vehicle VIN code, vehicle speed signal, and high-voltage connection disconnection status.

[0131] Furthermore, the network packet also includes a protocol fixed identifier, and the serial communication protocol includes a protocol identifier. Step S710, after receiving the network packet transmitted by the vehicle terminal, further includes:

[0132] Step S701: Detect whether the protocol fixed identifier matches the specification identifier;

[0133] Step S702: If yes, then execute the step of parsing the communication address in the network packet based on the serial communication protocol to obtain the vehicle data;

[0134] Step S703: If not, then an error message is sent to the vehicle terminal.

[0135] Specifically, the station can detect whether the fixed protocol identifier carried in the network packet matches the protocol identifier configured in the serial communication protocol. If the protocols match, step S720 is executed, and the communication address in the network packet is parsed based on the serial communication protocol to obtain the vehicle data. If the protocols do not match, the system will send an error message to the vehicle, notifying it of the communication protocol inconsistency. After receiving the error message, the vehicle can take appropriate measures to resolve the protocol inconsistency problem, such as reconfiguring communication parameters to match the communication protocol.

[0136] In this embodiment, through the above-described scheme, when a battery swapping station receives a network message sent by the vehicle terminal, it parses the communication address in the network message using a pre-configured serial communication protocol, enabling the battery swapping station to read vehicle data. This effectively achieves real-time communication between the vehicle and the battery swapping station, thereby improving the efficiency of vehicle battery replacement. Furthermore, by setting up protocol matching and error handling at the battery swapping station, the security and stability of communication between the vehicle and the battery swapping station can be improved, reducing abnormal issues in data transmission.

[0137] Furthermore, this application also proposes a communication device between a vehicle and a battery swapping station. This communication device is applied to an on-board terminal and includes:

[0138] The acquisition module is used to acquire vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem when the vehicle terminal is connected to the vehicle via the serial communication CAN protocol.

[0139] The splicing module is used to splice the communication address and vehicle data according to a preset serial communication protocol to obtain a network message; the serial communication protocol is configured based on the serial communication CAN protocol.

[0140] The sending module is used to send the network message to the battery swapping station, so that when the battery swapping station receives the network message, it can parse the communication address based on the serial communication protocol to obtain the vehicle data.

[0141] Furthermore, this application also proposes a communication device between a vehicle and a battery swapping station, wherein the communication device is applied at the battery swapping station, and the device includes:

[0142] The receiving module is used to receive network messages transmitted by the vehicle terminal; wherein, when the vehicle terminal is connected to the vehicle via the CAN serial communication protocol, it obtains the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem respectively; according to the preset serial communication protocol, it concatenates the communication address and vehicle data to obtain the network message; the serial communication protocol is configured based on the CAN serial communication protocol.

[0143] The parsing module is used to parse the communication address in the network packet based on the serial communication protocol to obtain the vehicle data.

[0144] The principle and implementation process of communication between the vehicle and the battery swapping station in this embodiment are explained in the above embodiments and will not be repeated here.

[0145] Furthermore, this application also proposes a terminal device, which includes a memory, a processor, and a vehicle-to-swapping station communication program stored in the memory and executable on the processor. When the vehicle-to-swapping station communication program is executed by the processor, it implements the steps of the vehicle-to-swapping station communication method described above.

[0146] Since the communication program between this vehicle and the battery swapping station is executed by the processor, it adopts all the technical solutions of all the aforementioned embodiments, and therefore has at least all the beneficial effects brought about by all the technical solutions of all the aforementioned embodiments, which will not be repeated here.

[0147] Furthermore, embodiments of this application also propose a computer-readable storage medium storing a communication program between a vehicle and a battery swapping station. When the communication program between the vehicle and the battery swapping station is executed by a processor, it implements the steps of the communication method between the vehicle and the battery swapping station as described above.

[0148] Since the communication program between this vehicle and the battery swapping station is executed by the processor, it adopts all the technical solutions of all the aforementioned embodiments, and therefore has at least all the beneficial effects brought about by all the technical solutions of all the aforementioned embodiments, which will not be repeated here.

[0149] Compared to existing technologies, the vehicle-to-battery swapping station communication method, apparatus, terminal equipment, and storage medium proposed in this application, when the on-board terminal is connected to the vehicle via the CAN serial communication protocol, acquires the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem, respectively; concatenates the communication addresses and vehicle data according to a preset serial communication protocol to obtain a network message; the serial communication protocol is configured based on the CAN serial communication protocol; and sends the network message to the battery swapping station, so that the battery swapping station, upon receiving the network message, can parse the communication address based on the serial communication protocol to obtain the vehicle data. The on-board terminal acquires the communication addresses and vehicle data of the vehicle's control subsystem and battery management subsystem based on the CAN serial communication protocol, generates corresponding network messages according to the preset serial communication protocol, and transmits them to the heavy-duty truck battery swapping station, so that the heavy-duty truck battery swapping station can parse the network message and extract the vehicle data based on the serial communication protocol. This effectively achieves real-time communication between the vehicle and the battery swapping station, thereby improving the efficiency of vehicle battery swapping.

[0150] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0151] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0152] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the methods of each embodiment of this application.

[0153] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A communication method between a vehicle and a battery swapping station, characterized in that, The communication method between the vehicle and the battery swapping station is applied to an on-board terminal, and the communication method between the vehicle and the battery swapping station includes the following steps: When the vehicle terminal connects to the vehicle via the CAN serial communication protocol, it acquires the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem, respectively. According to the preset serial communication protocol, the communication address and vehicle data are concatenated to obtain a network message; the serial communication protocol is configured based on the serial communication CAN protocol. The network message is sent to the battery swapping station so that the battery swapping station can parse the communication address based on the serial communication protocol when receiving the network message to obtain the vehicle data.

2. The communication method between the vehicle and the battery swapping station as described in claim 1, characterized in that, Before the step of obtaining the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem respectively when the vehicle terminal is connected to the vehicle via the serial communication CAN protocol, the method further includes: Obtain the vehicle model number of the vehicle; The serial communication CAN protocol corresponding to the vehicle model is matched so that the vehicle terminal can connect with the vehicle via the serial communication.

3. The communication method between the vehicle and the battery swapping station as described in claim 1, characterized in that, The step of concatenating the communication address and vehicle data according to a preset serial communication protocol to obtain a network message includes: According to the serial communication protocol, obtain the fixed identifier corresponding to the serial communication CAN protocol; The network packet is obtained by concatenating the protocol fixed identifier, the communication address, and the vehicle data.

4. The communication method between the vehicle and the battery swapping station as described in claim 1, characterized in that, The vehicle-mounted terminal and the battery swapping station are deployed on the same network using a preset long-connection working mode. The step of sending the network message to the battery swapping station includes: The network packet is encrypted and authenticated to obtain an encrypted network packet. Based on a preset wireless communication method, the encrypted network message is sent to the battery swapping station.

5. A communication method between a vehicle and a battery swapping station, characterized in that, The communication method between the vehicle and the battery swapping station is applied to the battery swapping station, and the communication method between the vehicle and the battery swapping station includes the following steps: Receive network messages transmitted by the vehicle terminal; wherein, when the vehicle terminal is connected to the vehicle via the CAN serial communication protocol, obtain the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem respectively; according to the preset serial communication protocol, concatenate the communication address and vehicle data to obtain the network message; the serial communication protocol is configured based on the CAN serial communication protocol; Based on the serial communication protocol, the communication address in the network message is parsed to obtain the vehicle data.

6. The communication method between the vehicle and the battery swapping station as described in claim 5, characterized in that, The network message also includes a fixed protocol identifier, the serial communication protocol includes a protocol identifier, and after the step of receiving the network message transmitted by the vehicle terminal, the method further includes: Detect whether the fixed identifier of the protocol matches the identifier of the specification; If so, then the step of parsing the communication address in the network packet based on the serial communication protocol to obtain the vehicle data is executed; If not, an error message is sent to the vehicle terminal.

7. A communication device between a vehicle and a battery swapping station, characterized in that, The communication device between the vehicle and the battery swapping station is applied to the vehicle-mounted terminal, and the communication device between the vehicle and the battery swapping station includes: The acquisition module is used to acquire vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem when the vehicle terminal is connected to the vehicle via the serial communication CAN protocol. The splicing module is used to splice the communication address and vehicle data according to a preset serial communication protocol to obtain a network message; the serial communication protocol is configured based on the serial communication CAN protocol. The sending module is used to send the network message to the battery swapping station, so that when the battery swapping station receives the network message, it can parse the communication address based on the serial communication protocol to obtain the vehicle data.

8. A communication device between a vehicle and a battery swapping station, characterized in that, The communication device between the vehicle and the battery swapping station is used at the battery swapping station, and the device includes: The receiving module is used to receive network messages transmitted by the vehicle terminal; wherein, when the vehicle terminal is connected to the vehicle via the CAN serial communication protocol, it obtains the vehicle data and communication addresses of the vehicle's control subsystem and battery management subsystem respectively; according to the preset serial communication protocol, it concatenates the communication address and vehicle data to obtain the network message; the serial communication protocol is configured based on the CAN serial communication protocol. The parsing module is used to parse the communication address in the network packet based on the serial communication protocol to obtain the vehicle data.

9. A terminal device, characterized in that, The terminal device includes a memory and a processor. The memory stores a communication program between the vehicle and the battery swapping station that can run on the processor. When the communication program between the vehicle and the battery swapping station is executed by the processor, it implements the steps of the communication method between the vehicle and the battery swapping station as described in any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a communication program between the vehicle and the battery swapping station, which, when executed by a processor, implements the steps of the communication method between the vehicle and the battery swapping station as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Vehicle, battery replacing method, battery replacing device and computer readable storage medium

    CN113291194A

  • Data processing method and device, control equipment, remote monitoring terminal and system

    CN114205343A