Vehicle battery swapping method and device

By detecting the vehicle's status and blocking fault signals during the battery swapping process, the problem of vehicles being unable to drive due to drivers forgetting to turn off the engine is solved, ensuring the safety of the battery swapping process and the user experience.

CN116639019BActive Publication Date: 2026-05-29GAC AION NEW ENERGY AUTOMOBILE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GAC AION NEW ENERGY AUTOMOBILE CO LTD
Filing Date
2023-05-31
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing battery swapping methods can cause the vehicle to be in a high-voltage state when the driver forgets to turn off the engine, leading to the controller detecting a BMS communication loss fault, triggering various fault signals, causing the vehicle to become inoperable, and reducing the user experience.

Method used

By detecting the vehicle status and outputting battery swapping status signals and fault shielding signals, fault detection is shielded to avoid triggering fault signals, including shielding BMS communication faults and fault prompts, and prohibiting the recording of fault codes, thus ensuring safe battery swapping for the vehicle.

Benefits of technology

It enables safe battery swapping even when the driver forgets to turn off the engine, avoiding vehicle malfunctions and improving user experience and troubleshooting efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116639019B_ABST
    Figure CN116639019B_ABST
Patent Text Reader

Abstract

The application provides a vehicle battery replacement method and device. The method comprises the following steps: detecting whether a target vehicle is in a battery replacement state; if yes, outputting a battery replacement state signal and a fault shielding signal; controlling the target vehicle to enter a battery replacement mode according to the battery replacement state signal, and shielding a fault signal according to the fault shielding signal. It can be seen that the method and device can shield the fault detection scheme, avoid triggering various fault signals, eliminate the possibility that the vehicle cannot run due to battery replacement, improve the problem troubleshooting efficiency, and thus help improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle control technology, and more specifically, to a vehicle battery swapping method and device. Background Technology

[0002] Currently, in the battery swapping process for new energy vehicles, during a normal swap, after the vehicle arrives at the swapping station, the driver keyoffs the engine, leaves the vehicle, and then the swapping operation begins. In practice, the keyoff state ensures that the vehicle is in a low-voltage state when the driver leaves, preventing the VCU from triggering the swapping signal and ensuring that no BMS communication-related faults are recorded. However, in practice, it has been found that when the driver forgets to turn off the engine and leaves the vehicle directly in the keyon state, the vehicle is in a high-voltage state. This causes communication failures between controllers. When the vehicle enters the swapping process with high voltage, the controllers detect BMS communication loss faults and record fault codes and instrument panel fault indications. Therefore, the existing battery swapping method triggers various fault signals during the swapping process, potentially leading to situations where the vehicle cannot move due to the swapping operation, thus reducing the user experience. Summary of the Invention

[0003] The purpose of this application is to provide a vehicle battery swapping method and device, which can avoid triggering various fault signals by shielding fault detection, eliminate the possibility that the vehicle cannot drive due to battery swapping, improve the efficiency of problem diagnosis, and thus help improve the user experience.

[0004] The first aspect of this application provides a vehicle battery swapping method, including:

[0005] Detect whether the target vehicle is in a battery swapping state;

[0006] If so, output the battery swapping status signal and the fault shielding signal;

[0007] The target vehicle is controlled to enter the battery swapping mode based on the battery swapping status signal, and the fault signal is shielded based on the fault shielding signal.

[0008] Furthermore, detecting whether the target vehicle is in a battery swapping state includes:

[0009] When the target vehicle's speed is detected to be less than a preset speed threshold or the target vehicle's bus current value is less than a preset current threshold, it is determined whether the target vehicle's vehicle controller has received a battery swapping reminder status signal.

[0010] If the vehicle controller receives the battery swapping reminder status signal, it determines whether an abnormal battery swapping lock status is detected within a preset time period.

[0011] If an abnormality is detected in the battery swapping lock, it is determined that the target vehicle is in a battery swapping state.

[0012] Further, the fault signal shielding based on the fault shielding signal includes:

[0013] Based on the fault masking signal, the masking fault codes of each relevant component in the target vehicle are set to 1, and the valid value of the masking fault code is set to 1.

[0014] The BMS communication detection is shielded according to the fault shielding signal, and the detection of BMS communication faults and fault indicator lights are also shielded.

[0015] The fault shielding signal is used to prevent the recording of fault codes related to BMS communication and to prevent the output of fault prompts related to BMS communication loss.

[0016] Furthermore, the method also includes:

[0017] When it is detected that the target vehicle is not in the battery swapping state, the shielding fault codes of each relevant component in the target vehicle are set to 0, and the valid value of the shielding fault codes is set to 1, so that each relevant component exits the shielding state of detecting BMS communication faults according to the shielding fault codes.

[0018] Furthermore, the method also includes:

[0019] When a communication loss, a fault related to the battery swapping lock pin, or a fault related to the battery swapping reminder pin is detected, the valid value of the fault code is set to 0 so that the relevant components in the target vehicle do not process the fault shielding signal.

[0020] A second aspect of this application provides a vehicle battery swapping device, the vehicle battery swapping device comprising:

[0021] The detection unit is used to detect whether the target vehicle is in a battery swapping state.

[0022] The output unit is used to output a battery swapping status signal and a fault shielding signal when the target vehicle is detected to be in a battery swapping state.

[0023] The control unit is used to control the target vehicle to enter the battery swapping mode based on the battery swapping status signal;

[0024] The processing unit is used to perform fault signal shielding based on the fault shielding signal.

[0025] Furthermore, the detection unit includes:

[0026] The first judgment subunit is used to determine whether the vehicle controller of the target vehicle has received a battery swapping reminder status signal when the vehicle speed of the target vehicle is less than a preset vehicle speed threshold or the bus current value of the target vehicle is less than a preset current threshold.

[0027] The second judgment subunit is used to determine whether an abnormality in the battery swapping lock status is detected within a preset time period if the vehicle controller receives the battery swapping reminder status signal.

[0028] A determination subunit is used to determine that the target vehicle is in a battery swapping state if an abnormality is detected in the battery swapping lock.

[0029] Furthermore, the processing unit includes:

[0030] The processing subunit is configured to set the masking fault code of each relevant component in the target vehicle to 1 according to the fault masking signal, and to set the valid value of the masking fault code to 1.

[0031] The shielding subunit is used to shield BMS communication detection according to the fault shielding signal, and to shield the detection of BMS communication faults and fault indicator lights;

[0032] The disable subunit is used to disable the recording of fault codes related to BMS communication and to disable the output of fault prompts related to BMS communication loss based on the fault shielding signal.

[0033] Furthermore, the processing unit is also configured to, when the detection unit detects that the target vehicle is not in a battery swapping state, set the shielding fault code of each relevant component in the target vehicle to 0, and set the valid value of the shielding fault code to 1, so that each relevant component exits the shielding state of detecting BMS communication faults according to the shielding fault code.

[0034] Furthermore, the processing unit is also configured to set the effective value of the fault code shielding to 0 when a communication loss, a fault related to the battery swapping lock pin, or a fault related to the battery swapping reminder pin is detected, so that the relevant components in the target vehicle do not process the fault shielding signal.

[0035] A third aspect of this application provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor runs the computer program to cause the electronic device to perform the vehicle battery swapping method described in any one of the first aspects of this application.

[0036] A fourth aspect of this application provides a computer-readable storage medium storing computer program instructions, which, when read and executed by a processor, perform the vehicle battery swapping method described in any one of the first aspects of this application. Attached Figure Description

[0037] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 A schematic flowchart illustrating a vehicle battery swapping method provided in an embodiment of this application;

[0039] Figure 2 A schematic flowchart illustrating another vehicle battery swapping method provided in this application embodiment;

[0040] Figure 3 This is a schematic diagram of the structure of a vehicle battery swapping device provided in an embodiment of this application.

[0041] Figure 4 This is a schematic diagram of another vehicle battery swapping device provided in an embodiment of this application;

[0042] Figure 5 A signal transmission functional logic diagram provided in an embodiment of this application;

[0043] Figure 6 This is a timing diagram of a signal sent by a vehicle controller (VCU) to send a battery swap reminder (masking fault codes) according to an embodiment of this application. Detailed Implementation

[0044] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0045] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0046] Example 1

[0047] Please refer to Figure 1 , Figure 1 This embodiment provides a schematic flowchart of a vehicle battery swapping method. The vehicle battery swapping method includes:

[0048] S101. Detect whether the target vehicle is in battery swapping mode. If yes, proceed to step S102; otherwise, end the process.

[0049] S102 outputs battery swapping status signal and fault shielding signal.

[0050] S103. Control the target vehicle to enter the battery swapping mode according to the battery swapping status signal, and perform fault signal shielding according to the fault shielding signal.

[0051] As an optional implementation, the method further includes:

[0052] When a communication loss, a fault related to the battery swapping lock pin, or a fault related to the battery swapping reminder pin is detected, the effective value of the fault code will be set to 0 so that the relevant components in the target vehicle will not process the fault shielding signal.

[0053] In this embodiment, when an abnormal battery swap occurs (the driver forgets to turn off the engine and leaves the vehicle while the key is on), a forced battery swap is performed. Because the key is still on, directly swapping the battery will cause all ECUs receiving BMS signals to report a communication loss fault and record a DTC. Furthermore, there may be instrument panel warning lights and functional limitations. Specifically, this may include:

[0054] ① During the Keyon battery swapping process, the instrument fails to illuminate fault messages related to BMS communication;

[0055] ②During the Keyon battery swapping process, the relevant controllers do not record fault codes indicating lost communication with the BMS;

[0056] ③After the battery swap is completed, the vehicle can be driven normally after the key is turned on and off.

[0057] ④ The TBOX should be replaced under keyon conditions, and the data upload should not be interrupted due to the battery replacement;

[0058] ⑤ TBOX uploads BMS data when it is in the keyon file. If it can receive the BMS data, it will upload normally; if it cannot receive the data, it will upload the data before it was lost.

[0059] It is evident that this method can optimize and improve various situations, allowing relevant information to be shielded, thereby reducing unnecessary trouble.

[0060] In this embodiment, the subject executing the method can be a computing device such as a computer or server, and no limitation is made in this embodiment.

[0061] In this embodiment, the subject executing the method can also be a smart device such as a smartphone or tablet, and no limitation is made in this embodiment.

[0062] As can be seen, implementing the vehicle battery swapping method described in this embodiment can achieve safe battery swapping for new energy vehicles, thereby eliminating the problem of vehicles becoming unable to drive due to battery swapping. Furthermore, this method can reduce customer complaints by shielding fault detection and improves troubleshooting efficiency.

[0063] Example 2

[0064] Please refer to Figure 2 , Figure 2 This embodiment provides a schematic flowchart of a vehicle battery swapping method. The vehicle battery swapping method includes:

[0065] S201. When the speed of the target vehicle is detected to be less than the preset speed threshold or the bus current value of the target vehicle is less than the preset current threshold, step S202 is executed.

[0066] S202. Determine whether the vehicle controller of the target vehicle has received a battery swap reminder status signal. If yes, proceed to step S203; otherwise, proceed to step S210.

[0067] S203. Determine whether an abnormal status of the battery lock is detected within a preset time period. If yes, proceed to step S204; otherwise, proceed to step S210.

[0068] S204. Determine that the target vehicle is in the battery swapping state.

[0069] S205 outputs battery swapping status signal and fault shielding signal.

[0070] S206. Control the target vehicle to enter the battery swapping mode based on the battery swapping status signal.

[0071] S207. Based on the fault masking signal, set the masking fault codes of each relevant component in the target vehicle to 1, and set the valid value of the masking fault codes to 1.

[0072] S208. Shield the BMS communication detection according to the fault shielding signal, and shield the detection of BMS communication faults and fault indicator lights.

[0073] S209. Based on the fault shielding signal, prohibit the recording of fault codes related to BMS communication and prohibit the output of fault prompts related to BMS communication loss, and end this process.

[0074] S210. Set the masking fault codes of each relevant component in the target vehicle to 0, and set the valid value of the masking fault codes to 1, so that each relevant component exits the masking state for detecting BMS communication faults according to the masking fault codes.

[0075] As an optional implementation, the method further includes:

[0076] When a communication loss, a fault related to the battery swapping lock pin, or a fault related to the battery swapping reminder pin is detected, the effective value of the fault code will be set to 0 so that the relevant components in the target vehicle will not process the fault shielding signal.

[0077] In this embodiment, the method can mainly monitor whether the vehicle is in the battery swapping state through the vehicle controller (VCU) and send a battery swapping status signal. After the various components of the vehicle (including the motor controller (DCU), DC-DC converter (DCDC), gateway (GW) and instrument (ICM) nodes) receive the battery swapping status signal through CAN message, they trigger Keyon to prevent the vehicle from detecting BMS communication and from recording BMS-related DTCs or reporting related instrument fault prompts.

[0078] Please refer to Figure 5 , Figure 5 The signal transmission function logic is illustrated. The vehicle control unit (VCU) connects to the bracket sensors (battery swap reminder (fault code masking) status sensor and battery swap lock status sensor) via hard wiring. After internal processing, the collected bracket sensor signals are forwarded to the powertrain ECAN network via bus messages. Each node in the powertrain ECAN receives this signal, masks its own detection of BMS communication faults and related fault lights, and does not record BMS communication-related DTCs. Additionally, the gateway (GW) forwards this signal to the body BCAN network, where the instrument cluster and other nodes mask their own detection of BMS communication faults and related fault lights, and do not record BMS communication-related DTCs.

[0079] In this embodiment, Figure 6 The signal timing diagram illustrates the vehicle control unit (VCU) sending a battery swap reminder (masking fault codes). This method, under the premise that vehicle speed V ≤ 1.5 kph or bus current is less than 20 A (calibrable), upon receiving a request for a battery swap reminder signal, if the VCU detects an abnormal battery swap lock status within 5 seconds (calibrable), it confirms the vehicle is in a battery swapping state and immediately sends the following signals: The fault code masking signal is set to 1 & the valid fault code masking signal is set to 1; the VCU masks its own detection of BMS communication faults and related fault indicator lights, and does not record BMS communication-related DTCs; upon receiving the fault code masking signal and the valid fault code masking signal, all relevant components immediately enter the BMS communication masking detection without debounce and prohibit the recording of BMS communication-related DTCs; additionally, the instrument panel does not report BMS communication loss-related fault prompts. When the VCU detects a non-battery swapping state, it sends the fault code masking signal set to 0 & the valid fault code masking signal set to 1; upon receiving this, all components should immediately exit the BMS communication masking detection.

[0080] In this embodiment, when communication is lost, each relevant controller replaces the timeout value (sets the masked fault signal to 0 and the masked fault code signal to 0).

[0081] In this embodiment, when the vehicle control unit (VCU) identifies and collects relevant faults in the battery swapping lock pin or the battery swapping reminder pin, the effective shielded fault code signal must be set to 0. At this time, the relevant components do not process the shielded fault code signal.

[0082] In this embodiment, the subject executing the method can be a computing device such as a computer or server, and no limitation is made in this embodiment.

[0083] In this embodiment, the subject executing the method can also be a smart device such as a smartphone or tablet, and no limitation is made in this embodiment.

[0084] As can be seen, implementing the vehicle battery swapping method described in this embodiment can achieve safe battery swapping for new energy vehicles, thereby eliminating the problem of vehicles becoming unable to drive due to battery swapping. Furthermore, this method can reduce customer complaints by shielding fault detection and improves troubleshooting efficiency.

[0085] Example 3

[0086] Please refer to Figure 3 , Figure 3 This is a schematic diagram of a vehicle battery swapping device provided in this embodiment. Figure 3 As shown, the vehicle battery swapping device includes:

[0087] Detection unit 310 is used to detect whether the target vehicle is in a battery swapping state;

[0088] The output unit 320 is used to output a battery swapping status signal and a fault shielding signal when the target vehicle is detected to be in a battery swapping state.

[0089] Control unit 330 is used to control the target vehicle to enter the battery swapping mode based on the battery swapping status signal;

[0090] The processing unit 340 is used to perform fault signal shielding based on the fault shielding signal.

[0091] In this embodiment, the explanation of the vehicle battery swapping device can be referred to the description in Embodiment 1 or Embodiment 2, and will not be repeated here.

[0092] As can be seen, implementing the vehicle battery swapping device described in this embodiment enables safe battery swapping for new energy vehicles, thereby eliminating the problem of vehicles becoming unable to drive due to battery swapping. Furthermore, this device can reduce customer complaints by shielding fault detection and improves troubleshooting efficiency.

[0093] Example 4

[0094] Please refer to Figure 4 , Figure 4 This is a schematic diagram of a vehicle battery swapping device provided in this embodiment. Figure 4 As shown, the vehicle battery swapping device includes:

[0095] Detection unit 310 is used to detect whether the target vehicle is in a battery swapping state;

[0096] The output unit 320 is used to output a battery swapping status signal and a fault shielding signal when the target vehicle is detected to be in a battery swapping state.

[0097] Control unit 330 is used to control the target vehicle to enter the battery swapping mode based on the battery swapping status signal;

[0098] The processing unit 340 is used to perform fault signal shielding based on the fault shielding signal.

[0099] As an optional implementation, the detection unit 310 includes:

[0100] The first judgment subunit 311 is used to determine whether the vehicle controller of the target vehicle has received a battery swapping reminder status signal when the vehicle speed of the target vehicle is less than a preset vehicle speed threshold or the bus current value of the target vehicle is less than a preset current threshold.

[0101] The second judgment subunit 312 is used to determine whether an abnormality in the battery swapping lock status is detected within a preset time period if the vehicle controller receives a battery swapping reminder status signal.

[0102] The determination subunit 313 is used to determine that the target vehicle is in the battery swapping state if an abnormality is detected in the battery swapping lock.

[0103] As an optional implementation, the processing unit 340 includes:

[0104] The processing subunit 341 is used to set the masking fault code of each relevant component in the target vehicle to 1 according to the fault masking signal, and to set the effective value of the masking fault code to 1.

[0105] The shielding subunit 342 is used to shield BMS communication detection according to the fault shielding signal, and to shield the detection of BMS communication faults and fault indicator lights.

[0106] The disable subunit 343 is used to disable the recording of fault codes related to BMS communication based on the fault shielding signal, and to disable the output of fault prompts related to BMS communication loss.

[0107] As an optional implementation, the processing unit 340 is also configured to set the shielding fault codes of each relevant component in the target vehicle to 0 and set the valid value of the shielding fault codes to 1 when the detection unit detects that the target vehicle is not in the battery swapping state, so that each relevant component exits the shielding state of detecting BMS communication faults according to the shielding fault codes.

[0108] As an optional implementation, the processing unit 340 is also configured to set the effective value of the fault code to 0 when a communication loss, a fault related to the battery swapping lock pin, or a fault related to the battery swapping reminder pin is detected, so that the relevant components in the target vehicle do not process the fault shielding signal.

[0109] In this embodiment, the explanation of the vehicle battery swapping device can be referred to the description in Embodiment 1 or Embodiment 2, and will not be repeated here.

[0110] As can be seen, implementing the vehicle battery swapping device described in this embodiment enables safe battery swapping for new energy vehicles, thereby eliminating the problem of vehicles becoming unable to drive due to battery swapping. Furthermore, this device can reduce customer complaints by shielding fault detection and improves troubleshooting efficiency.

[0111] This application provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor runs the computer program to enable the electronic device to perform the vehicle battery swapping method in embodiment 1 or embodiment 2 of this application.

[0112] This application provides a computer-readable storage medium storing computer program instructions, which are read and executed by a processor to perform the vehicle battery swapping method in embodiment 1 or embodiment 2 of this application.

[0113] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0114] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0115] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0116] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0117] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0118] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A vehicle battery swapping method, characterized in that, include: Detect whether the target vehicle is in a battery swapping state; If so, output the battery swapping status signal and the fault shielding signal; The system controls the target vehicle to enter the battery swapping mode according to the battery swapping status signal, and sets the shielded fault codes of each relevant component in the target vehicle to 1 according to the fault shielding signal, and sets the valid value of the shielded fault codes to 1; it also shields the BMS communication detection according to the fault shielding signal, and shields the detection of BMS communication faults and fault indicator lights. The fault shielding signal is used to prevent the recording of fault codes related to BMS communication and to prevent the output of fault prompts related to BMS communication loss. The method further includes: When a fault is detected in the battery swapping lock pin or the battery swapping reminder pin, the effective value of the fault code is set to 0 so that the relevant components in the target vehicle do not process the fault shielding signal. The method further includes: When it is detected that the target vehicle is not in the battery swapping state, the shielding fault codes of each relevant component in the target vehicle are set to 0, and the valid value of the shielding fault codes is set to 1, so that each relevant component exits the shielding state of detecting BMS communication faults according to the shielding fault codes.

2. The vehicle battery swapping method according to claim 1, characterized in that, The detection of whether the target vehicle is in a battery swapping state includes: When the target vehicle's speed is detected to be less than a preset speed threshold or the target vehicle's bus current value is less than a preset current threshold, it is determined whether the target vehicle's vehicle controller has received a battery swapping reminder status signal. If the vehicle controller receives the battery swapping reminder status signal, it determines whether an abnormal battery swapping lock status is detected within a preset time period. If an abnormality is detected in the battery swapping lock, it is determined that the target vehicle is in a battery swapping state.

3. A vehicle battery swapping device, characterized in that, The vehicle battery swapping device includes: The detection unit is used to detect whether the target vehicle is in a battery swapping state. The output unit is used to output a battery swapping status signal and a fault shielding signal when the target vehicle is detected to be in a battery swapping state. The control unit is used to control the target vehicle to enter the battery swapping mode based on the battery swapping status signal; The processing unit is used to perform fault signal shielding based on the fault shielding signal; The processing unit is also used to set the effective value of the fault code to 0 when a fault related to the battery swapping lock pin or the battery swapping reminder pin is detected, so that the relevant components in the target vehicle do not process the fault shielding signal. The processing unit includes: The processing subunit is configured to set the masking fault code of each relevant component in the target vehicle to 1 according to the fault masking signal, and to set the valid value of the masking fault code to 1. The shielding subunit is used to shield BMS communication detection according to the fault shielding signal, and to shield the detection of BMS communication faults and fault indicator lights. The disable subunit is used to disable the recording of fault codes related to BMS communication and to disable the output of fault prompts related to BMS communication loss based on the fault shielding signal. The processing unit is further configured to, when the detection unit detects that the target vehicle is not in a battery swapping state, set the shielding fault codes of each relevant component in the target vehicle to 0 and set the valid value of the shielding fault codes to 1, so that each relevant component exits the shielding state of detecting BMS communication faults according to the shielding fault codes.

4. The vehicle battery swapping device according to claim 3, characterized in that, The detection unit includes: The first judgment subunit is used to determine whether the vehicle controller of the target vehicle has received a battery swapping reminder status signal when the vehicle speed of the target vehicle is less than a preset vehicle speed threshold or the bus current value of the target vehicle is less than a preset current threshold. The second judgment subunit is used to determine whether an abnormality in the battery swapping lock status is detected within a preset time period if the vehicle controller receives the battery swapping reminder status signal. A determination subunit is used to determine that the target vehicle is in a battery swapping state if an abnormality is detected in the battery swapping lock.

5. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory being used to store a computer program, and the processor running the computer program to cause the electronic device to perform the vehicle battery swapping method according to any one of claims 1 to 2.

6. A readable storage medium, characterized in that, The readable storage medium stores computer program instructions, which, when read and executed by a processor, perform the vehicle battery swapping method according to any one of claims 1 to 2.