Battery replacement control method and system based on battery replacement equipment, medium and electronic equipment

By comparing the real-time image with the standard image to determine the locking status, it solves the accuracy and high cost problems caused by the secondary module in the signal interaction between electric vehicles and power-swapping equipment, and realizes an efficient and safe power-swapping process.

CN118528987APending Publication Date: 2024-08-23AULTON NEW ENERGY AUTOMOBILE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410779878.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2020-10-26
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing technology, signal interaction between electric vehicles and power swap equipment requires secondary modules, resulting in poor signal accuracy, low power swap efficiency and high cost, which affects the efficiency and safety of the power swap process.

Method used

Using a control method based on battery swapping equipment, the locking status of the locking mechanism is judged by comparing real-time images with standard images, avoiding the use of secondary modules, ensuring that the battery swapping process is carried out when the car is turned off, and improving the battery swapping process. Electrical accuracy and safety.

Benefits of technology

There is no need to rely on secondary modules, which improves the efficiency and safety of power replacement, reduces costs, and ensures the accuracy and user experience of the power replacement process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118528987A
    Figure CN118528987A
Patent Text Reader

Abstract

The invention discloses a battery replacement control method and system based on battery replacement equipment, a medium and electronic equipment. The battery replacement control method comprises the steps that the battery replacement equipment is controlled to lift a battery pack to a first preset height of the bottom of an electric vehicle; controlling the battery replacing equipment to move the lock shaft of the battery pack to the locking position along the lock groove; acquiring a first real-time image of the movable part relative to the fixed part when the lock shaft of the battery pack moves along the lock groove; according to the first real-time image and a first standard image when the movable part is located at the locking position, whether locking of the locking mechanism is completed or not is judged, and corresponding actions are executed. According to the technical scheme, the method does not need to depend on secondary modules on the electric vehicle side and the battery replacing equipment side, the problems that in the interaction process of the secondary modules and the battery replacing equipment, the accuracy of signals is easily lost due to external interference, and the battery replacing efficiency is affected are solved, the cost of the secondary modules can be saved, and the battery replacing process is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This invention is a divisional application of a Chinese patent application with an application date of October 26, 2020, application number 202011158792.7, and invention name “Battery exchange control method, system, medium and electronic device based on battery exchange equipment”. Technical Field

[0002] The present invention relates to the technical field of battery replacement for electric vehicles, and in particular to a battery replacement control method, system, medium and electronic equipment based on a battery replacement device. Background Art

[0003] Electric vehicles use electricity instead of oil, can achieve zero emissions and low noise, and are an important means to solve energy and environmental problems. With the shortage of oil resources and the development of battery technology, electric vehicles have approached or even surpassed traditional fuel vehicles in terms of performance and economy, and have begun to be gradually promoted and applied worldwide. The new generation of energy-saving and environmentally friendly vehicles represented by electric vehicles is an inevitable trend in the development of the automobile industry. As an important prerequisite and foundation for the large-scale promotion and application of electric vehicles, the development of electric vehicle charging and swapping technology and the construction of electric vehicle charging and swapping facilities have attracted widespread attention from all parties.

[0004] Usually, battery swapping equipment (such as a battery swapping cart) is used to take and place the battery pack in the electric vehicle. In the process of placing the battery pack into the battery box of the electric vehicle, it is necessary to ensure that the battery pack is in the upper position (that is, lifted to the chassis position of the electric vehicle) and in the front position (that is, pushed to the position where the battery pack can be locked).

[0005] In the prior art, it is generally necessary to set up secondary modules on both the electric vehicle side and the battery exchange equipment side, and set up a positioning detection sensor and a front positioning detection sensor on the electric vehicle side, and use the signals detected by the positioning detection sensor and the front positioning detection sensor on the electric vehicle side to guide the battery exchange equipment to lift and push the battery pack, so that the battery pack can be accurately locked or unlocked. However, during the process of the signals detected by the positioning detection sensor and the front positioning detection sensor on the electric vehicle side interacting with the battery exchange equipment through the secondary module, the signals are easily lost due to external interference, affecting the battery exchange efficiency, and the cost of the secondary module is relatively high, which is not conducive to the cost optimization of the battery exchange process. Summary of the invention

[0006] The technical problem to be solved by the present invention is to overcome the defects in the prior art that a secondary module is required for signal interaction between a battery swap device and an electric vehicle, the battery swap cost is high, and the signals detected by the upper position detection sensor and the front position detection sensor on the electric vehicle side are required to guide the battery swap device to adjust the battery pack position, resulting in poor accuracy and low battery swap efficiency. A battery swap control method, system, medium and electronic device based on a battery swap device are provided.

[0007] The present invention solves the above technical problems through the following technical solutions:

[0008] A battery replacement control method based on a battery replacement device, wherein the battery replacement device is used to replace a battery pack on an electric vehicle, and the electric vehicle is provided with a locking mechanism, wherein the locking mechanism is used to lock and fix the battery pack, and the locking mechanism comprises a fixed portion and a movable portion, wherein the fixed portion has a locking groove for moving a battery pack locking shaft to a locking position, and the movable portion switches between a locked state and an unlocked state relative to the fixed portion to close or open an opening for the locking shaft to enter and exit the locking groove, and the battery replacement control method comprises:

[0009] Controlling the battery replacement equipment to lift the battery pack to a first preset height at the bottom of the electric vehicle;

[0010] Controlling the battery replacement device to move the lock shaft of the battery pack along the lock slot to the locking position;

[0011] Capturing a first real-time image of the movable portion relative to the fixed portion during a process in which the locking shaft of the battery pack moves along the locking groove;

[0012] determining whether the locking mechanism is locked according to the first real-time image and the first standard image when the movable part is located at the locking position, and performing corresponding actions;

[0013] After the step of controlling the battery replacement device to lift the battery pack to a first preset height at the bottom of the electric vehicle, the following step is further included:

[0014] Trigger a first battery-changing signal, and after waiting for a first preset time, control the battery-changing device to move the lock shaft of the battery pack along the lock slot to the locking position.

[0015] The step of triggering the first power switching signal comprises:

[0016] Detect whether the distance between the guide fork of the battery exchange device and the battery bracket is less than a preset threshold value. If so, generate a first battery exchange signal, and the first battery exchange signal is used to control the ignition switch of the electric vehicle to switch to an off state.

[0017] This technical solution does not need to rely on secondary modules on the electric vehicle side and the battery swapping device side, avoiding the problem that the signal is easily lost due to external interference during the interaction between the secondary module and the battery swapping device, thereby affecting the battery swapping efficiency. It can also save the cost of the secondary module and optimize the battery swapping process. At the same time, it ensures that the battery swapping process is carried out when the car is turned off, thereby improving the safety of the battery swapping operation.

[0018] Preferably, the step of judging whether the locking mechanism is locked according to the first real-time image and the first standard image when the movable part is located at the locking position, and performing corresponding actions comprises:

[0019] determining whether the first real-time image and a first standard image when the movable part is located at the locking position are within a preset error range;

[0020] If so, stop the battery exchange device from moving the battery pack to the locking position in the lock slot.

[0021] This technical solution uses the first real-time image and the first standard image to determine whether the locking is completed. The judgment criteria are intuitive and clear, and the locking situation can be adjusted in real time based on the judgment results, thereby improving the accuracy of the battery replacement process.

[0022] Preferably, the step of controlling the battery replacement device to lift the battery pack to a first preset height at the bottom of the electric vehicle comprises:

[0023] Collecting a first real-time height of the battery swapping device from a reference plane, where the reference plane is a driving plane of the battery swapping device or a parking plane of the electric vehicle;

[0024] Determining whether the first real-time altitude falls within a first preset altitude range;

[0025] If not, the lifting height of the battery exchange device is controlled according to the first height difference between the first real-time height and the first preset height until the battery exchange device lifts the battery pack to the first preset height at the bottom of the electric vehicle.

[0026] This technical solution completes the lifting of the battery pack by comparing the real-time height with the preset height, thereby improving the accuracy of lifting the battery pack.

[0027] Preferably, before the step of controlling the battery replacement device to lift the battery pack to a first preset height at the bottom of the electric vehicle, the step further includes:

[0028] Trigger the second battery replacement signal and wait for the second preset time.

[0029] This technical solution improves the safety of the battery replacement process.

[0030] Preferably, the step of triggering the second battery replacement signal includes:

[0031] Receiving vehicle status information sent by the electric vehicle, the vehicle status information including license plate information and a key signal, the license plate information corresponding to the key signal one by one;

[0032] parsing the key signal;

[0033] If the key signal indicates that the electric vehicle is in an on-state, a second battery-changing signal corresponding to the license plate information is generated, and the second battery-changing signal is used to control the ignition switch of the electric vehicle corresponding to the license plate information to switch to an off state.

[0034] This technical solution provides a specific preferred method for triggering the second battery-swapping signal, ensuring that the battery-swapping process is carried out while the vehicle is turned off, thereby improving the safety of the battery-swapping operation.

[0035] Preferably, the movable portion includes a locking tongue;

[0036] The step of acquiring a first real-time image of the movable portion relative to the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot comprises: acquiring a real-time image of a first end portion of the lock tongue relative to the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot;

[0037] The step of judging whether the locking mechanism is locked according to the first real-time image and the first standard image when the movable part is located at the locking position, and performing corresponding actions includes: judging whether the locking mechanism is locked according to the first end real-time image and the first standard image when the locking tongue is located at the locking position, and adjusting the moving distance of the battery pack according to the judgment result.

[0038] This technical solution specifically determines whether the locking mechanism has been locked through the real-time status of the lock tongue, and the determination result is intuitive and accurate.

[0039] Preferably, the movable portion includes a locking rod and a locking tongue, and the locking rod drives the locking tongue to rotate to open or close the opening of the locking slot;

[0040] The step of acquiring a first real-time image of the movable portion relative to the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot comprises: acquiring a real-time image of a second end portion of the locking rod protruding from the side wall of the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot;

[0041] The step of judging whether the locking mechanism is locked according to the first real-time image and the first standard image when the movable part is in the locking position and performing corresponding actions includes: judging whether the locking mechanism is locked according to the second end real-time image and the first standard image when the locking rod is in the locked state, and adjusting the moving distance of the battery pack according to the judgment result.

[0042] This technical solution specifically achieves locking through the cooperation of the lock tongue and the locking rod, and can judge whether the locking mechanism is locked according to the real-time status of the locking rod, further improving the accuracy of the locking status judgment.

[0043] Preferably, the step of judging whether the locking mechanism is locked according to the second end real-time image and the first standard image of the locking rod in the locked state, and adjusting the moving distance of the battery pack according to the judgment result comprises:

[0044] The distance difference between the end of the locking rod and a preset reference line is obtained based on a real-time image of the second end of the locking rod protruding from the side wall of the fixing portion, and the locking shaft of the battery pack is translated based on the distance difference.

[0045] In this technical solution, the battery pack is translated by the distance difference between the end of the locking rod and the preset reference line, which is simple according to the standard and simplifies the calculation difficulty.

[0046] Preferably, a first unit to be tested is provided on the lock shaft of the battery pack, and a first lock detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method further comprises: determining whether the first lock detection sensor detects the first unit to be tested, and if so, determining that the lock shaft of the battery pack moves to the locking position;

[0047] and / or,

[0048] The movable part includes a lock tongue, a second unit to be tested is provided on the lock tongue, and a second lock detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method further includes: determining whether the second lock detection sensor detects the second unit to be tested, and if so, determining that the lock shaft of the battery pack moves to the locking position;

[0049] and / or,

[0050] The movable part includes a locking rod, on which a third unit to be tested is provided, and a third lock detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method also includes: determining whether the third lock detection sensor detects the third unit to be tested, and if so, determining that the lock shaft of the battery pack is moved to the locking position.

[0051] This technical solution further confirms the locking result through multiple lock detection sensors, ensuring the efficient and accurate completion of the battery replacement process.

[0052] Preferably, the first preset height includes a first lifting height and a second lifting height, and the lifting speed of the battery swapping device within the first lifting height is greater than the lifting speed of the battery swapping device within the second lifting height; wherein, at the first lifting height, the guide fork of the battery swapping device has just entered the battery bracket, and at the second lifting height, the locking shaft of the battery pack enters the fixed part, and the locking shaft lifts the movable part to open the opening of the locking shaft to enter the lock slot.

[0053] This technical solution sets different lifting speeds for different preset heights, which not only takes efficiency into consideration but also ensures that the lock shaft of the battery pack is not damaged, thereby improving safety.

[0054] Preferably, before controlling the battery replacement device to lift the battery pack to a first preset height at the bottom of the electric vehicle, the method further includes:

[0055] Controlling the battery replacement device to move the lock shaft of the battery pack to a first preset coordinate so that the lock shaft of the battery pack is aligned with the locking mechanism;

[0056] or,

[0057] A first real-time alignment image of the locking mechanism is collected in real time by a visual sensor, and the position of the locking shaft is adjusted according to the first real-time alignment image so that the locking shaft of the battery pack is aligned with the locking mechanism.

[0058] This technical solution performs alignment operations before using the battery exchange equipment to lift the battery pack, which improves the accuracy of the lifting and avoids the risk of battery pack collision or scratches caused by inaccurate alignment.

[0059] Preferably, the battery replacement control method further includes:

[0060] When the battery pack reaches the locking position, the battery exchange device is controlled to descend.

[0061] This technical solution can complete the battery replacement in time, making it convenient for the electric vehicle to start and drive away as soon as possible, so as to facilitate the continued battery replacement for other electric vehicles.

[0062] Preferably, the battery replacement control method further includes:

[0063] When the battery pack reaches the locking position, the lock shaft of the battery pack is controlled to retreat a preset distance in the direction of the lock slot opening so that the lock shaft abuts against the movable part.

[0064] This technical solution can improve the firmness of the battery pack locking, prevent the battery pack from slipping and causing poor contact when powering an electric vehicle, and improve the user experience.

[0065] A battery replacement control method based on a battery replacement device, wherein the battery replacement device is used to replace a battery pack on an electric vehicle, and the electric vehicle is provided with a locking mechanism, wherein the locking mechanism is used to lock and fix the battery pack, and the locking mechanism comprises a fixed portion and a movable portion, wherein the fixed portion has a locking groove for moving a battery pack locking shaft to a locking position, and the movable portion switches between a locked state and an unlocked state relative to the fixed portion to close or open an opening for the locking shaft to enter and exit the locking groove, and the battery replacement control method comprises:

[0066] Controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle;

[0067] Controlling the battery replacement device to move the lock shaft of the battery pack along the lock slot to an unlocked pre-tightened position, so that the movable part moves from a locked state to an unlocked state relative to the fixed part;

[0068] capturing a second real-time image of the movable portion relative to the fixed portion during a process in which the movable portion moves toward an unlocked state;

[0069] determining whether the locking mechanism is completely unlocked according to the second real-time image and the second standard image when the movable part is in the unlocked state, and performing corresponding actions;

[0070] After the step of controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle, the following step is further included:

[0071] Trigger the third battery-changing signal, and after waiting for the third preset time, control the battery-changing device to move the lock shaft of the battery pack along the lock slot to the unlocking and pre-tightening position.

[0072] The step of triggering the third battery swap signal comprises:

[0073] Detect whether the distance between the guide fork of the battery exchange device and the battery bracket is less than a preset threshold value. If so, generate a third battery exchange signal, and the third battery exchange signal is used to control the ignition switch of the electric vehicle to switch to the off state.

[0074] This technical solution does not need to rely on secondary modules on the electric vehicle side and the battery swapping device side, avoiding the problem that the signal is easily lost due to external interference during the interaction between the secondary module and the battery swapping device, thereby affecting the battery swapping efficiency. It can also save the cost of the secondary module and optimize the battery swapping process. At the same time, it ensures that the battery swapping process is carried out when the car is turned off, thereby improving the safety of the battery swapping operation.

[0075] Preferably, the step of judging whether the locking mechanism is unlocked according to the second real-time image and the second standard image when the movable part is in the unlocked state, and performing corresponding actions comprises:

[0076] determining whether the second real-time image and a second standard image when the movable part is in an unlocked state are within a preset error range;

[0077] If not, control the battery exchange device to move the lock shaft of the battery pack along the lock slot to the unlocking pre-tightening position.

[0078] This technical solution uses the second real-time image and the second standard image to determine whether the unlocking is completed. The judgment criteria are intuitive and clear, and the unlocking situation can be adjusted in real time based on the judgment results, thereby improving the accuracy of the battery replacement process.

[0079] Preferably, the step of controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle comprises:

[0080] Collecting a second real-time height of the battery swapping device from a reference plane, where the reference plane is a driving plane of the battery swapping device or a parking plane of the electric vehicle;

[0081] Determining whether the second real-time altitude falls within a second preset altitude range;

[0082] If not, the lifting height of the battery exchange device is controlled according to the second height difference between the second real-time height and the second preset height until the battery exchange device reaches the second preset height at the bottom of the electric vehicle.

[0083] This technical solution compares the real-time height with the preset height to jointly lift the battery swap equipment, thereby improving the lifting accuracy.

[0084] Preferably, before the step of controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle, the step further includes:

[0085] Trigger the fourth battery replacement signal and wait for the fourth preset time.

[0086] This technical solution improves the safety of the battery replacement process.

[0087] Preferably, the step of triggering the fourth battery switching signal includes:

[0088] Receiving vehicle status information sent by the electric vehicle, the vehicle status information including license plate information and a key signal, the license plate information corresponding to the key signal one by one;

[0089] parsing the key signal;

[0090] If the key signal indicates that the electric vehicle is in an on-state, a fourth battery-changing signal corresponding to the license plate information is generated, and the fourth battery-changing signal is used to control the ignition switch of the electric vehicle corresponding to the license plate information to switch to an off state.

[0091] This technical solution provides a specific preferred method for triggering the fourth battery-swapping signal, ensuring that the battery-swapping process is carried out while the vehicle is turned off, thereby improving the safety of the battery-swapping operation.

[0092] Preferably, the movable portion includes a locking tongue;

[0093] The step of acquiring a second real-time image of the movable portion relative to the fixed portion during the process in which the movable portion moves to the unlocked state includes: acquiring a real-time image of a third end portion of the locking tongue relative to the fixed portion;

[0094] The step of judging whether the locking mechanism is completely unlocked based on the second real-time image and the second standard image when the movable part is in the unlocked state, and performing corresponding actions includes: judging whether the locking mechanism is completely unlocked based on the third end real-time image and the second standard image when the lock tongue is in the unlocked pre-tightened position, and adjusting the moving distance of the battery pack according to the judgment result.

[0095] This technical solution specifically determines whether the locking mechanism has been unlocked through the real-time status of the lock tongue, and the judgment result is intuitive and accurate.

[0096] Preferably, the movable portion includes a locking rod and a locking tongue, and the locking rod drives the locking tongue to rotate to open or close the opening of the locking slot;

[0097] The step of acquiring a second real-time image of the movable portion relative to the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot comprises: acquiring a real-time image of a fourth end portion of the locking rod protruding from the side wall of the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot;

[0098] The step of judging whether the locking mechanism is completely unlocked based on the second real-time image and the second standard image when the movable part is in the unlocked pre-tightened position, and performing corresponding actions includes: judging whether the locking mechanism is completely unlocked based on the fourth end real-time image and the second standard image when the locking rod is in the unlocked state, and adjusting the moving distance of the battery pack according to the judgment result.

[0099] This technical solution specifically realizes unlocking through the cooperation of the lock tongue and the locking rod, and can judge whether the locking mechanism has been unlocked according to the real-time status of the locking rod, further improving the accuracy of judging the unlocking status.

[0100] Preferably, the step of comparing the fourth end real-time image with a second standard image of the locking rod in a fully unlocked state and adjusting the moving distance of the battery pack according to the judgment result comprises:

[0101] The distance difference between the end of the locking rod and a preset reference line is obtained based on a real-time image of the fourth end of the locking rod protruding from the side wall of the fixing portion, and the locking shaft of the battery pack is translated based on the distance difference.

[0102] In this technical solution, the battery pack is translated by the distance difference between the end of the locking rod and the preset reference line, which is simple according to the standard and simplifies the calculation difficulty.

[0103] Preferably, a fourth unit to be tested is provided on the lock shaft of the battery pack, and a first unlock detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method further comprises: determining whether the first unlock detection sensor detects the fourth unit to be tested, and if so, determining that the lock shaft of the battery pack moves to the unlock pre-tightening position;

[0104] and / or,

[0105] The movable part includes a lock tongue, a fifth unit to be tested is provided on the lock tongue, and a second unlocking detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method further includes: determining whether the second unlocking detection sensor detects the fifth unit to be tested, and if so, determining that the lock shaft of the battery pack moves to the unlocking pre-tightening position;

[0106] and / or,

[0107] The movable part includes a locking rod, on which a sixth unit to be tested is provided, and a third unlocking detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method also includes: determining whether the third unlocking detection sensor detects the sixth unit to be tested, and if so, determining that the lock shaft of the battery pack is moved to the unlocking pre-tightening position.

[0108] This technical solution further confirms the unlocking result through multiple unlocking detection sensors, ensuring the efficient and accurate completion of the battery replacement process.

[0109] Preferably, the second preset height includes a third lifting height and a fourth lifting height, and the lifting speed of the battery swapping device within the third lifting height is greater than the lifting speed of the battery swapping device within the fourth lifting height; wherein, at the third lifting height, the guide fork of the battery swapping device has just entered the battery bracket, and at the fourth lifting height, the battery swapping device contacts the battery pack to be unlocked.

[0110] This technical solution sets different lifting speeds for different preset heights, which not only takes efficiency into consideration but also ensures that the guide fork of the battery swapping equipment is not damaged, thereby improving safety.

[0111] Preferably, before controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle, the method further includes:

[0112] Controlling the battery swapping device to move to a second preset coordinate so that the battery swapping device is aligned with the battery pack to be unlocked;

[0113] or,

[0114] A second real-time alignment image of the battery swapping device is captured in real time by a visual sensor, and the position of the battery swapping device is adjusted according to the second real-time alignment image so that the battery swapping device is aligned with the battery pack to be unlocked.

[0115] This technical solution performs a positioning operation before lifting the battery swap equipment, which improves the accuracy of lifting and avoids the risk of collision or scratching of the battery swap equipment due to inaccurate positioning.

[0116] Preferably, the battery replacement control method further includes:

[0117] When the battery pack is unlocked, the battery replacement device is controlled to clamp and remove the battery pack.

[0118] This technical solution can ensure that the battery swap equipment can obtain the battery pack efficiently and accurately.

[0119] Preferably, the battery replacement control method further includes:

[0120] When the battery pack is taken out, the battery exchange equipment is controlled to descend.

[0121] This technical solution can remove the battery pack in time to facilitate the battery pack to enter the subsequent charging process as soon as possible.

[0122] A battery replacement control system based on a battery replacement device, wherein the battery replacement device is used to replace a battery pack on an electric vehicle, wherein the electric vehicle is provided with a locking mechanism, wherein the locking mechanism is used to lock and fix the battery pack, wherein the locking mechanism comprises a fixed portion and a movable portion, wherein the fixed portion has a locking groove for moving a battery pack locking shaft to a locking position, wherein the movable portion switches between a locked state and an unlocked state relative to the fixed portion, so as to close or open an opening for the locking shaft to enter and exit the locking groove, wherein the battery replacement control system comprises:

[0123] A first lifting control module, used to control the battery replacement equipment to lift the battery pack to a first preset height at the bottom of the electric vehicle;

[0124] A first translation control module, used to control the battery replacement device to move the lock shaft of the battery pack along the lock slot to the locking position;

[0125] A first image acquisition module, used for acquiring a first real-time image of the movable part relative to the fixed part during the process of the locking shaft of the battery pack moving along the locking groove;

[0126] a locking adjustment module, configured to determine whether the locking mechanism is completely locked according to the first real-time image and a first standard image when the movable part is located at the locking position, and perform a corresponding action;

[0127] A first battery swap signal control module, used to trigger a first battery swap signal and wait for a first preset time;

[0128] The first battery exchange signal control module is used to detect whether the distance between the guide fork of the battery exchange equipment and the battery bracket is less than a preset threshold. If so, the first battery exchange signal is generated, and the first battery exchange signal is used to control the ignition switch of the electric vehicle to switch to the off state.

[0129] This technical solution does not need to rely on secondary modules on the electric vehicle side and the battery swapping device side, avoiding the problem that the signal is easily lost due to external interference during the interaction between the secondary module and the battery swapping device, thereby affecting the battery swapping efficiency. It can also save the cost of the secondary module and optimize the battery swapping process. At the same time, it ensures that the battery swapping process is carried out when the car is turned off, thereby improving the safety of the battery swapping operation.

[0130] A battery replacement control system based on a battery replacement device, wherein the battery replacement device is used to replace a battery pack on an electric vehicle, wherein the electric vehicle is provided with a locking mechanism, wherein the locking mechanism is used to lock and fix the battery pack, wherein the locking mechanism comprises a fixed portion and a movable portion, wherein the fixed portion has a locking groove for moving a battery pack locking shaft to a locking position, wherein the movable portion switches between a locked state and an unlocked state relative to the fixed portion, so as to close or open an opening for the locking shaft to enter and exit the locking groove, wherein the battery replacement control system comprises:

[0131] A second lifting control module, used for controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle;

[0132] A second translation control module is used to control the battery replacement device to move the lock shaft of the battery pack along the lock slot to the unlocking pre-tightening position, so that the movable part moves from the locked state to the unlocked state relative to the fixed part;

[0133] A second image acquisition module, used for acquiring a second real-time image of the movable part relative to the fixed part during the process in which the movable part moves to the unlocked state;

[0134] an unlocking adjustment module, configured to determine whether the locking mechanism has been unlocked according to the second real-time image and a second standard image when the movable part is in an unlocked state, and perform a corresponding action;

[0135] A third battery swap signal control module, used to trigger a third battery swap signal and wait for a third preset time;

[0136] The third battery exchange signal control module is used to detect whether the distance between the guide fork of the battery exchange equipment and the battery bracket is less than a preset threshold. If so, the third battery exchange signal is generated, and the third battery exchange signal is used to control the ignition switch of the electric vehicle to switch to the off state.

[0137] This technical solution does not need to rely on secondary modules on the electric vehicle side and the battery swapping device side, avoiding the problem that the signal is easily lost due to external interference during the interaction between the secondary module and the battery swapping device, thereby affecting the battery swapping efficiency. It can also save the cost of the secondary module and optimize the battery swapping process. At the same time, it ensures that the battery swapping process is carried out when the car is turned off, thereby improving the safety of the battery swapping operation.

[0138] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the aforementioned battery replacement control method based on a battery replacement device when executing the computer program.

[0139] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the aforementioned battery replacement control method based on a battery replacement device.

[0140] The positive progressive effect of the present invention is that the battery replacement control method and system of the battery replacement equipment provided by the present invention do not need to rely on the secondary modules on the electric vehicle side and the battery replacement equipment side in the process of controlling the locking or unlocking of the battery pack, thereby avoiding the problem that the signal is easily lost due to external interference during the interaction between the secondary module and the battery replacement equipment, thereby affecting the battery replacement efficiency. It can also save the cost of the secondary module and optimize the battery replacement process. BRIEF DESCRIPTION OF THE DRAWINGS

[0141] Figure 1 Schematic diagram of the structure of the locking mechanism in Examples 1 to 6 of the present invention.

[0142] Figure 2 This is a flow chart of the first specific implementation of the battery replacement control method of Example 1 of the present invention.

[0143] Figure 3 This is a flowchart of step S13 of the first specific implementation of Example 1 of the present invention.

[0144] Figure 4 It is a schematic diagram of the principle of judging whether the locking mechanism is locked in Embodiment 1 and Embodiment 3 of the present invention.

[0145] Figure 5 This is a flow chart of a second specific implementation of the battery replacement control method of Example 1 of the present invention.

[0146] Figure 6 This is a flow chart of the third specific implementation of the battery replacement control method of Example 1 of the present invention.

[0147] Figure 7 This is a flow chart of the fourth specific implementation method of the battery replacement control method of Example 1 of the present invention.

[0148] Figure 8 This is a flowchart of step S19 in the fourth specific implementation of the battery replacement control method of Example 1 of the present invention.

[0149] Fig. 9 This is a flow chart of the first specific implementation method of the battery replacement control method of Example 2 of the present invention.

[0150] Fig.10 This is a flowchart of step S23 of the first specific implementation of Example 2 of the present invention.

[0151] Fig.11 Schematic diagram of the principle of judging whether the locking mechanism is unlocked in Embodiment 2 and Embodiment 4 of the present invention.

[0152] Fig.12 This is a flow chart of a second specific implementation of the battery replacement control method of Example 2 of the present invention.

[0153] Fig.13 This is a flow chart of the third specific implementation of the battery replacement control method of Example 2 of the present invention.

[0154] Fig.14 This is a flowchart of the fourth specific implementation method of the battery replacement control method of Example 2 of the present invention.

[0155] Fig.15 This is a flowchart of step S29 in the fourth specific implementation of the battery replacement control method of Example 2 of the present invention.

[0156] Fig.16 This is a structural block diagram of a battery replacement control system based on a battery replacement device according to embodiment 3 of the present invention.

[0157] Fig.17 This is a structural block diagram of a battery replacement control system based on a battery replacement device according to embodiment 4 of the present invention.

[0158] Fig.18 This is a structural block diagram of an electronic device according to Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0159] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.

[0160] Example 1

[0161] The present embodiment provides a battery replacement control method based on a battery replacement device. The battery replacement device is used to replace the battery pack on the electric vehicle. The electric vehicle is provided with a locking mechanism, which is used to lock and fix the battery pack. The locking mechanism includes a fixed part and a movable part. The fixed part has a locking groove for moving the battery pack lock shaft to a locking position. The movable part switches between a locked state and an unlocked state relative to the fixed part to close or open the opening of the lock shaft in and out of the lock groove.

[0162] Specifically, Figure 1 As shown, the fixed part may include a lock base 10, and the movable part may include a locking rod 11 and a locking tongue 12. The locking tongue 12 can be rotatably installed on the lock base 10 around a rotation axis. The lock base 10 has a locking groove for locking and fixing the lock shaft of the battery pack. The lock groove has an opening, and the lock shaft of the battery pack enters and exits the lock groove through the opening. The locking rod 11 is rotatably connected to the locking tongue 12 and is arranged above the lock base 10. The locking tongue 12 is driven to rotate by directly driving the locking tongue 12 or the locking rod 11, so that the locking tongue 12 is switched between a locked state and an unlocked state to close or open the lock groove opening. The locking rod 11 can be a rod member with a long rod-like structure. The locking rod 11 can be movably connected to multiple lock bases 10 through the locking tongue 12, thereby realizing synchronous locking and unlocking of the lock shaft by multiple locking tongues 12.

[0163] like Figure 2 As shown, the battery exchange control method may include the following steps: Step S10: controlling the battery exchange device to lift the battery pack to a first preset height at the bottom of the electric vehicle;

[0164] Specifically, the real-time height of the battery swapping equipment from a reference plane can be collected, where the reference plane is the driving plane of the battery swapping equipment or the parking plane of the electric vehicle; then, it is determined whether the first real-time height falls within a first preset height range; if not, the lifting height of the battery swapping equipment is controlled according to the first height difference between the first real-time height and the first preset height, until the battery swapping equipment lifts the battery pack to the first preset height at the bottom of the electric vehicle.

[0165] This step can be achieved by setting a rangefinder or a visual sensor on the battery swapping equipment to detect the real-time height value of the battery swapping equipment relative to its driving plane or the parking plane of the electric vehicle during the lifting process, and determine whether the real-time height value reaches a first preset height. If it reaches the first preset height, the lifting is stopped.

[0166] Preferably, the first preset height includes a first lifting height and a second lifting height, and the lifting speed of the battery swapping equipment within the first lifting height is greater than the lifting speed of the battery swapping equipment within the second lifting height; wherein, at the first lifting height, the guide fork of the battery swapping equipment just enters the battery bracket, and at the second lifting height, the locking shaft of the battery pack enters the fixed part, and the locking shaft lifts the movable part to open the opening of the locking shaft to enter the lock slot.

[0167] By setting different lifting speeds for different preset heights, efficiency can be taken into consideration while also ensuring that the lock shaft of the battery pack is not damaged, thereby improving safety.

[0168] In addition, those skilled in the art can adaptively set different lifting speeds according to the needs of specific application scenarios, and this embodiment does not limit this.

[0169] Step S11: Control the battery exchange equipment to move the lock shaft of the battery pack along the lock groove to the locking position; the locking position is the position where the lock shaft of the battery pack is completely fixed by the lock tongue.

[0170] Step S12: capturing a first real-time image of the movable portion relative to the fixed portion during the process in which the locking shaft of the battery pack moves along the locking groove;

[0171] Specifically, the first real-time image may be a real-time image of a first end portion of the locking tongue 12 relative to the fixing portion; the first real-time image may also be a real-time image of a second end portion of the locking rod 11 protruding from a side wall of the fixing portion.

[0172] Step S13: judging whether the locking mechanism is completely locked according to the first real-time image and the first standard image when the movable part is located at the locking position, and performing corresponding actions.

[0173] Specifically, Figure 3 As shown, step S13 may include:

[0174] Step S131: determining whether the first real-time image and the first standard image when the movable part is in the locked position are within a preset error range;

[0175] If so, execute step S132: stop the battery replacement device from moving the battery pack to the locking position in the lock slot.

[0176] If not, then go to the aforementioned step S11: control the battery exchange equipment to move the lock shaft of the battery pack along the lock slot to the locking position.

[0177] It should be noted that the real-time image and the standard image can be in the form of video or photo, which is not limited in this embodiment. When the real-time image and the standard image are in the form of video, the images are compared in frames (each frame can be used as an independent picture), and when the real-time image and the standard image are in the form of pictures, the images are compared in each picture.

[0178] If the first real-time image is a real-time image of the first end of the lock tongue 12 relative to the fixed portion, it is possible to determine whether the locking mechanism is locked based on the first end real-time image and the first standard image when the lock tongue 12 is in the locked position, and adjust the moving distance of the battery pack based on the determination result. If the determination result is that the locking is not completed, continue to move the lock shaft in the lock slot.

[0179] If the first real-time image is a real-time image of the second end of the locking rod 11 protruding from the side wall of the fixing portion, it is possible to determine whether the locking mechanism is locked based on the real-time image of the second end and the first standard image of the locking rod 11 in the locked state, and adjust the moving distance of the battery pack based on the determination result. If the determination result is that the locking is not completed, continue to move the lock shaft in the lock slot.

[0180] Furthermore, the distance difference between the end 13 of the locking rod 11 and the preset reference line can be obtained based on the real-time image of the second end of the locking rod 11 protruding from the side wall of the fixing portion, and the locking axis of the battery pack can be translated according to the distance difference.

[0181] Specifically, a real-time image of the second end of the locking rod can be collected, and the pixels of the real-time image can be processed into distance data, and then it can be determined whether it falls within a preset standard distance range. If it does not fall within the preset standard distance range, the lock axis of the battery pack continues to be translated in the lock slot.

[0182] For more details, please refer to the attached Figure 4 The camera is fixedly installed below the locking mechanism, and continuously shoots the locking mechanism from the bottom to the top at an upward angle, collects real-time images of the active part, and continuously compares multiple real-time images with the standard image. The degree of overlap between the end 13 of the locking rod 11 in the real-time image and the end 13 of the locking rod 11 in the standard image is used to determine whether to perform the distance judgment operation. If the overlap is within a preset range, the distance d3 between the boundary line 18 where the end 13 of the locking rod 11 is located and the left boundary line 17 (i.e., the preset reference line) of the camera's field of view frame 14 is calculated based on the real-time image. Since the camera is always in a fixed position, the field of view frame 14 and the left boundary line 17 are also in fixed positions. Next, it is determined whether d3 is within a preset standard distance range, wherein the standard distance range is a region formed by the first standard line 15 and the second standard line 16, wherein the distance between the first standard line 15 and the left boundary line 17 is the first distance d1, and the distance between the second standard line 16 and the left boundary line 17 is within the second distance d2. If d3 is between d1 and d2, it is considered that the locking mechanism is locked. It is understandable that the preset standard distance range is set to take into account the errors in the matching process between the battery mechanism and the locking mechanism of different electric vehicles.

[0183] In this embodiment, conventional existing technologies in the field of imaging can be used to process pixels of the real-time image into distance data.

[0184] In this embodiment, whether the locking mechanism is locked can be judged by the real-time status of the locking tongue 12 or the locking rod 11, and the judgment result is intuitive and accurate.

[0185] It can be understood that multiple lock shafts can be set on the side of the battery pack and inserted into multiple lock bases 10 located on the electric vehicle at the same time to fix the battery pack on the battery vehicle. The action of the locking rod 11 can automatically lock the multiple lock shafts on the lock base 10 at the same time, greatly improving the battery replacement efficiency.

[0186] In other embodiments, Figure 5 As shown, before step S10, the following steps may also be included:

[0187] Step S14: Control the battery exchange equipment to move the lock shaft of the battery pack to a first preset coordinate so that the lock shaft of the battery pack is aligned with the locking mechanism; or, Step S15: Use a visual sensor to capture a first real-time alignment image of the locking mechanism, and adjust the position of the lock shaft according to the first real-time alignment image so that the lock shaft of the battery pack is aligned with the locking mechanism.

[0188] This embodiment performs a positioning operation before using the battery replacement equipment to lift the battery pack, which improves the accuracy of the lifting and avoids the risk of collision or scratching the battery pack due to inaccurate positioning.

[0189] In this embodiment, the battery replacement control method may further include the following steps:

[0190] Step S16: When the battery pack reaches the locking position, control the battery replacement equipment to descend.

[0191] In this process, after the battery pack reaches the locked position, the clamping mechanism on the battery swapping device is first controlled to release the battery pack, and then the clamping mechanism retracts, and then the battery swapping device is controlled to descend at a preset speed. This embodiment can end the battery swapping in time by controlling the battery swapping device to descend in time, so that the electric vehicle can start and drive away as soon as possible, so as to facilitate the battery swapping for other electric vehicles.

[0192] In this embodiment, the battery replacement control method may further include the following steps:

[0193] Step S17: When the battery pack reaches the locked position, the lock shaft of the battery pack is controlled to retreat a preset distance in the direction of the lock slot opening so that the lock shaft abuts against the movable part. This embodiment can improve the firmness of the battery pack locking, prevent the battery pack from slipping and causing poor contact when powering the electric vehicle, and improve the user experience.

[0194] In other embodiments, Figure 6 As shown, after step S10, the following steps may also be included:

[0195] Step S18: trigger the first power-changing signal and wait for the first preset time. After waiting for the first preset time, execute step S11.

[0196] Specifically, it can be detected whether the distance between the guide fork of the battery exchange device and the battery bracket is less than a preset threshold value. If so, a first battery exchange signal is generated, and the first battery exchange signal is used to control the ignition switch of the electric vehicle to switch to the off state. The guide fork can be set on the upper part of the battery exchange device. Specifically, a detection object is provided on the guide fork, and a detection sensor is provided on the battery bracket. When the distance between the guide fork and the battery bracket is less than the preset threshold value, the detection sensor on the battery bracket detects the detection object and sends a detection signal to the ignition control unit of the electric vehicle. The ignition control unit controls the ignition to be turned off according to the detection signal.

[0197] In other embodiments, Figure 7 As shown, the following steps may also be included before step S10:

[0198] Step S19: trigger the second battery replacement signal and wait for the second preset time. After waiting for the second preset time, execute step S10.

[0199] Preferably, if Figure 8 As shown, step S19 may specifically include:

[0200] Step S191: receiving vehicle status information sent by the electric vehicle, the vehicle status information includes license plate information and key signal, and the license plate information corresponds to the key signal one by one; step S192: parsing the key signal; step S193: if the key signal indicates that the electric vehicle is in an on-state, then generating a second battery-swapping signal corresponding to the license plate information, the second battery-swapping signal is used to control the ignition switch of the electric vehicle corresponding to the license plate information to switch to an off state. This embodiment ensures that the battery-swapping process is in a state where the vehicle is off by setting the first battery-swapping signal and / or the second battery-swapping signal, thereby improving the safety of the battery-swapping operation.

[0201] In this embodiment, a first unit to be tested is provided on the lock shaft of the battery pack, and a first lock detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method also includes: judging whether the first lock detection sensor detects the first unit to be tested, and if so, determining that the lock shaft of the battery pack is moved to the locked position; and / or, the movable part includes a lock tongue 12, on which a second unit to be tested is provided, and the battery bracket of the electric vehicle is provided with a second lock detection sensor; the battery replacement control method also includes: judging whether the second lock detection sensor detects the second unit to be tested, and if so, determining that the lock shaft of the battery pack is moved to the locked position; and / or, the movable part includes a locking rod 11, on which a third unit to be tested is provided, and the battery bracket of the electric vehicle is provided with a third lock detection sensor; the battery replacement control method also includes: judging whether the third lock detection sensor detects the third unit to be tested, and if so, determining that the lock shaft of the battery pack is moved to the locked position.

[0202] Preferably, the first unit to be tested, the second unit to be tested and the third unit to be tested may be magnetic elements (eg permanent magnets), the magnetic elements radiate magnetic fields (magnetic lines of force) outwardly, and the lock detection sensor may detect the magnetic elements by identifying the magnetic fields.

[0203] This embodiment can also further confirm the locking result through multiple lock detection sensors, ensuring the efficient and accurate completion of the battery replacement process.

[0204] The battery swap control method based on the battery swap device provided in this embodiment does not need to rely on the secondary modules on the electric vehicle side and the battery swap device side during operation, thereby avoiding the problem that the signal loses accuracy due to external interference during the interaction between the secondary module and the battery swap device, thereby affecting the battery swap efficiency. It can also save the cost of the secondary module and optimize the battery swap process.

[0205] Example 2

[0206] The present embodiment provides a battery replacement control method based on a battery replacement device. The battery replacement device is used to replace the battery pack on the electric vehicle. The electric vehicle is provided with a locking mechanism, which is used to lock and fix the battery pack. The locking mechanism includes a fixed part and a movable part. The fixed part has a locking groove for moving the battery pack lock shaft to a locking position. The movable part switches between a locked state and an unlocked state relative to the fixed part to close or open the opening of the lock shaft in and out of the lock groove.

[0207] Specifically, Figure 1 As shown, the fixed part may include a lock base 10, and the movable part may include a locking rod 11 and a locking tongue 12. The locking tongue 12 can be rotatably installed on the lock base 10 around a rotating axis. The lock base 10 has a locking groove for locking and fixing the lock shaft of the battery pack. The lock groove has an opening, and the lock shaft of the battery pack enters and exits the lock groove through the opening. The locking rod 11 is rotatably connected to the locking tongue 12 and is arranged above the lock base 10. The locking tongue 12 is driven to rotate by directly driving the locking tongue 12 or the locking rod 11, so that the locking tongue 12 is switched between a locked state and an unlocked state to close or open the lock groove opening. The locking rod 11 can be a rod member with a long rod-like structure. The locking rod 11 can be movably connected to multiple lock bases 10 through the locking tongue 12, thereby realizing synchronous locking and unlocking of the lock shaft by multiple locking tongues.

[0208] like Fig. 9 As shown, the battery replacement control method may include the following steps:

[0209] Step S20: Control the battery swapping device to be lifted to a second preset height at the bottom of the electric vehicle;

[0210] Specifically, the second real-time height of the battery swapping equipment from a reference plane can be collected, where the reference plane is the driving plane of the battery swapping equipment or the parking plane of the electric vehicle; it is determined whether the second real-time height falls within a second preset height range; if not, the lifting height of the battery swapping equipment is controlled according to the second height difference between the second real-time height and the second preset height until the battery swapping equipment reaches the second preset height at the bottom of the electric vehicle.

[0211] This step is to set a rangefinder or visual sensor on the battery swapping equipment to detect the real-time height value of the battery swapping equipment relative to its driving plane or the electric vehicle parking plane during the lifting process, and determine whether the real-time height value reaches the second preset height. If it reaches the second preset height, the lifting is stopped.

[0212] The battery swap equipment is lifted by comparing the real-time height with the preset height, thereby improving the lifting accuracy.

[0213] Step S21: Control the battery swap device to move the lock shaft of the battery pack along the lock slot to the unlocked pre-tightened position (i.e., control the battery swap device to move the battery pack toward the lock slot opening direction), so that the movable part moves relative to the fixed part from the locked state to the unlocked state;

[0214] Preferably, the second preset height includes a third lifting height and a fourth lifting height, and the lifting speed of the battery swapping device within the third lifting height is greater than the lifting speed of the battery swapping device within the fourth lifting height; wherein, at the third lifting height, the guide fork of the battery swapping device has just entered the battery bracket, and at the fourth lifting height, the battery swapping device contacts the battery pack to be unlocked.

[0215] By setting different lifting speeds for different preset heights, efficiency can be taken into account while ensuring that the guide fork of the battery swap equipment is not damaged, thereby improving safety.

[0216] In addition, those skilled in the art can adaptively set different lifting speeds according to the needs of specific application scenarios, and this embodiment does not limit this.

[0217] Step S22: capturing a second real-time image of the movable portion relative to the fixed portion during the process of the movable portion moving toward the unlocked state;

[0218] Specifically, the second real-time image may be a real-time image of the third end of the locking tongue 12 relative to the fixing portion, or the second real-time image may also be a real-time image of the fourth end of the locking rod 11 protruding from the side wall of the fixing portion.

[0219] Step S23: judging whether the locking mechanism is completely unlocked according to the second real-time image and the second standard image when the movable part is in the unlocked state, and performing corresponding actions.

[0220] Specifically, Fig.10As shown, step S23 may specifically include:

[0221] Step S231: determining whether the second real-time image and the second standard image when the movable part is in the unlocked state are within a preset error range;

[0222] If not, then go to step S21: control the battery replacement device to move the lock shaft of the battery pack along the lock slot to the unlocked pre-tightened position, so that the movable part moves relative to the fixed part from the locked state to the unlocked state;

[0223] If so, execute step S232: stop the battery replacement equipment and move the lock axis of the battery pack along the lock slot to the unlocking pre-tightening position.

[0224] It should be noted that the real-time image and the standard image can be in the form of video or photo, which is not limited in this embodiment. When the real-time image and the standard image are in the form of video, the images are compared in frames (each frame can be used as an independent picture), and when the real-time image and the standard image are in the form of pictures, the images are compared in each picture.

[0225] If the second real-time image shown is a real-time image of the third end of the lock tongue 12 relative to the fixed part, the real-time image of the third end of the lock tongue 12 relative to the fixed part can be collected, and then, based on the real-time image of the third end and the second standard image when the lock tongue 12 is in the unlocking pre-tightening position, it is judged whether the locking mechanism is unlocked, and the moving distance of the battery pack is adjusted according to the judgment result.

[0226] If the second real-time image is a real-time image of the fourth end of the locking rod 11 protruding from the side wall of the fixed part, then a real-time image of the fourth end of the locking rod 11 protruding from the side wall of the fixed part during the movement of the lock shaft of the battery pack along the lock groove can be collected; then, based on the real-time image of the fourth end and the second standard image of the locking rod 11 when it is in the unlocked state, it is determined whether the locking mechanism is unlocked, and the moving distance of the battery pack is adjusted according to the determination result.

[0227] Furthermore, the distance difference between the end 13 of the locking rod 11 and the fixing portion can be obtained based on the real-time image of the fourth end of the locking rod 11 protruding from the side wall of the fixing portion, and the locking axis of the battery pack can be translated according to the distance difference.

[0228] Specifically, a real-time image of the fourth end of the locking rod can be collected, and the pixels of the real-time image can be processed into distance data, and then it can be determined whether the distance data falls outside the preset standard distance. If it does not fall outside the preset standard distance, the lock axis of the battery pack continues to be translated in the lock slot.

[0229] For more details, please refer to the attached Fig.11The camera is fixedly installed below the locking mechanism, and continuously photographs the locking mechanism from the bottom to the top at an upward angle, collects real-time images of the active part, and continuously compares multiple real-time images with the standard image. It is determined whether to perform the distance judgment operation according to the degree of overlap between the end 13 of the locking rod 11 in the real-time image and the end 13 of the locking rod 11 in the standard image. If the degree of overlap is within the preset range, the distance d5 between the boundary line 18 where the end 13 of the locking rod 11 is located and the left boundary line 17 (i.e., the preset reference line) of the camera's field of view frame 14 is calculated according to the real-time image. Since the camera is always in a fixed position, the field of view frame 14 and the left boundary line 17 are also in a fixed position. Next, it is determined whether d5 is outside the preset standard distance. The standard distance here is defined by the third standard line 19, wherein the distance between the third standard line 19 and the left boundary line 17 is the fourth distance d4. If d5 is greater than d4, it is considered that the locking mechanism is unlocked.

[0230] In this embodiment, the pixels of the real-time image can be processed into distance data using conventional existing technologies in the field of photography. In this embodiment, whether the locking mechanism is unlocked can be determined by the real-time status of the lock tongue 12 or the locking rod 11, and the determination result is intuitive and accurate.

[0231] In other embodiments, in other embodiments, Fig.12 As shown, before step S20, the following steps may also be included:

[0232] Step S24: Control the battery swap device to move to a second preset coordinate so that the battery swap device is aligned with the battery pack to be unlocked; or, Step S25: Use a visual sensor to capture a second real-time alignment image of the battery swap device in real time, and adjust the position of the battery swap device according to the second real-time alignment image so that the battery swap device is aligned with the battery pack to be unlocked.

[0233] This embodiment performs a positioning operation before lifting the battery swap equipment, which improves the accuracy of lifting and avoids the risk of collision or scratching of the battery swap equipment due to inaccurate positioning.

[0234] In this embodiment, the battery replacement control method further includes:

[0235] Step S26: When the battery pack is unlocked, control the battery exchange equipment to clamp and remove the battery pack.

[0236] In this process, after the battery pack is unlocked, the clamping mechanism on the battery swap device is first controlled to extend toward the battery pack, and then the clamping structure is controlled to clamp the battery pack and remove the battery pack from the battery bracket. This embodiment can ensure that the battery swap device can efficiently and accurately obtain the battery pack.

[0237] In this embodiment, the battery replacement control method further includes:

[0238] Step S27: After the battery pack is taken out, the battery replacement device is controlled to descend. In this embodiment, the battery pack can be removed in time to facilitate the battery pack to enter the subsequent charging process as soon as possible.

[0239] like Fig.13 As shown, in other implementations, the following steps may also be included after step S20:

[0240] Step S28: trigger the third battery exchange signal and wait for the third preset time. Then, control the battery exchange device to move the lock shaft of the battery pack along the lock slot to the unlocking pre-tightening position.

[0241] Specifically, it can be detected whether the distance between the guide fork of the battery exchange device and the battery bracket is less than a preset threshold value. If so, a third battery exchange signal is generated, and the third battery exchange signal is used to control the ignition switch of the electric vehicle to switch to the off state. The guide fork can be set on the upper part of the battery exchange device. Specifically, a detection object is provided on the guide fork, and a detection sensor is provided on the battery bracket. When the distance between the guide fork and the battery bracket is less than the threshold value, the detection sensor detects the detection object and sends a detection signal to the ignition control unit. The ignition control unit controls the ignition to be turned off according to the detection signal.

[0242] In other embodiments, Fig.14 As shown, the following steps may also be included before step S20:

[0243] Step S29: trigger the fourth battery exchange signal and wait for the fourth preset time. Then, control the battery exchange device to be lifted to the second preset height at the bottom of the electric vehicle.

[0244] Preferably, if Fig.15 As shown, step S29 may specifically include: step S291: receiving vehicle status information sent by the electric vehicle, the vehicle status information including license plate information and key signal, the license plate information and the key signal corresponding one to one; step S292: parsing the key signal; step S293: if the key signal indicates that the electric vehicle is in an on-state, generating a fourth battery-changing signal corresponding to the license plate information, the fourth battery-changing signal being used to control the ignition switch of the electric vehicle corresponding to the license plate information to switch to an off state.

[0245] This embodiment ensures that the battery swapping process is carried out when the vehicle is turned off by setting the third battery swapping signal and / or the fourth battery swapping signal, thereby improving the safety of the battery swapping operation.

[0246] In this embodiment, a fourth unit to be tested is provided on the lock shaft of the battery pack, and a first unlocking detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method also includes: judging whether the first unlocking detection sensor detects the fourth unit to be tested, and if so, determining that the lock shaft of the battery pack is moved to the unlocking pre-tightening position; and / or, the movable part includes a lock tongue 12, on which a fifth unit to be tested is provided, and the battery bracket of the electric vehicle is provided with a second unlocking detection sensor; the battery replacement control method also includes: judging whether the second unlocking detection sensor detects the fifth unit to be tested, and if so, determining that the lock shaft of the battery pack is moved to the unlocking pre-tightening position; and / or, the movable part includes a locking rod 11, on which a sixth unit to be tested is provided, and the battery bracket of the electric vehicle is provided with a third unlocking detection sensor; the battery replacement control method also includes: judging whether the third unlocking detection sensor detects the sixth unit to be tested, and if so, determining that the lock shaft of the battery pack is moved to the unlocking pre-tightening position.

[0247] Preferably, the fourth unit to be tested, the fifth unit to be tested and the sixth unit to be tested may be magnetic elements (eg permanent magnets), the magnetic elements radiate magnetic fields (magnetic lines of force) outwardly, and the lock detection sensor may detect the magnetic elements by identifying the magnetic fields.

[0248] This embodiment can also further confirm the unlocking result through multiple unlocking detection sensors, ensuring the efficient and accurate completion of the battery replacement process.

[0249] The battery swap control method based on the battery swap device provided in this embodiment does not need to rely on the secondary modules on the electric vehicle side and the battery swap device side during operation, thereby avoiding the problem that the signal loses accuracy due to external interference during the interaction between the secondary module and the battery swap device, thereby affecting the battery swap efficiency. It can also save the cost of the secondary module and optimize the battery swap process.

[0250] Example 3

[0251] The present embodiment provides a battery replacement control system based on a battery replacement device. The battery replacement device is used to replace the battery pack on the electric vehicle. The electric vehicle is provided with a locking mechanism, which is used to lock and fix the battery pack. The locking mechanism includes a fixed part and a movable part. The fixed part has a locking groove for moving the battery pack locking shaft to a locking position. The movable part switches between a locked state and an unlocked state relative to the fixed part to close or open the opening of the locking shaft in and out of the lock groove.

[0252] Specifically, Figure 1As shown, the fixed part may include a lock base 10, and the movable part may include a locking rod 11 and a locking tongue 12. The locking tongue 12 can be rotatably installed on the lock base 10 around a rotating axis. The lock base 10 has a locking groove for locking and fixing the lock shaft of the battery pack. The lock groove has an opening, and the lock shaft of the battery pack enters and exits the lock groove through the opening. The locking rod 11 is rotatably connected to the locking tongue 12 and is arranged above the lock base 10. The locking tongue 12 is driven to rotate by directly driving the locking tongue 12 or the locking rod 11, so that the locking tongue 12 is switched between a locked state and an unlocked state to close or open the lock groove opening. The locking rod 11 can be a rod member with a long rod-like structure. The locking rod 11 can be movably connected to multiple lock bases 10 through the locking tongue 12, thereby realizing synchronous locking and unlocking of the lock shaft by multiple locking tongues.

[0253] like Fig.16 As shown, the battery replacement control system 2 in this embodiment may include:

[0254] A first lifting control module 21, used to control the battery replacement equipment to lift the battery pack to a first preset height at the bottom of the electric vehicle;

[0255] The first lifting control module 21 is used to collect the real-time height of the battery swapping equipment from a reference plane, which is the driving plane of the battery swapping equipment or the parking plane of the electric vehicle; to determine whether the first real-time height falls within a first preset height range; if not, to control the lifting height of the battery swapping equipment according to the first height difference between the first real-time height and the first preset height, until the battery swapping equipment lifts the battery pack to the first preset height at the bottom of the electric vehicle.

[0256] Preferably, the first preset height includes a first lifting height and a second lifting height, and the lifting speed of the battery swapping equipment within the first lifting height is greater than the lifting speed of the battery swapping equipment within the second lifting height; wherein, at the first lifting height, the guide fork of the battery swapping equipment just enters the battery bracket, and at the second lifting height, the locking shaft of the battery pack enters the fixed part, and the locking shaft lifts the movable part to open the opening of the locking shaft to enter the lock slot.

[0257] By setting different lifting speeds for different preset heights, efficiency can be taken into consideration while also ensuring that the lock shaft of the battery pack is not damaged, thereby improving safety.

[0258] In addition, those skilled in the art can adaptively set different lifting speeds according to the needs of specific application scenarios, and this embodiment does not limit this.

[0259] The first translation control module 22 is used to control the battery replacement equipment to move the lock shaft of the battery pack along the lock groove to the locking position; the locking position is the position where the lock shaft of the battery pack is completely fixed by the lock tongue 12.

[0260] A first image acquisition module 23, used for acquiring a first real-time image of the movable part relative to the fixed part during the process in which the lock shaft of the battery pack moves along the lock groove;

[0261] Specifically, the first real-time image may be a real-time image of a first end portion of the locking tongue 12 relative to the fixing portion; the first real-time image may also be a real-time image of a second end portion of the locking rod 11 protruding from a side wall of the fixing portion.

[0262] The locking adjustment module 24 is used to determine whether the locking mechanism is completely locked according to the first real-time image and the first standard image when the movable part is located at the locking position, and perform corresponding actions.

[0263] Specifically, the locking adjustment module 24 is used to determine whether the first real-time image and the first standard image when the movable part is in the locking position are within a preset error range; if so, stop the battery replacement equipment from moving the battery pack to the locking position in the lock slot; if so, call the first translation control module 22.

[0264] It should be noted that the real-time image and the standard image can be in the form of video or photo, which is not limited in this embodiment. When the real-time image and the standard image are in the form of video, the images are compared in frames (each frame can be used as an independent picture), and when the real-time image and the standard image are in the form of pictures, the images are compared in each picture.

[0265] If the first real-time image shown is a real-time image of the first end portion of the locking tongue 12 relative to the fixed portion, the first image acquisition module 23 is used to acquire a real-time image of the first end portion of the locking tongue 12 relative to the fixed portion when the locking shaft of the battery pack moves along the locking groove; the locking adjustment module 24 is used to determine whether the locking mechanism is locked based on the first end real-time image and the first standard image when the locking tongue 12 is in the locked position, and adjust the moving distance of the battery pack based on the judgment result.

[0266] If the first real-time image is a real-time image of the second end of the locking rod 11 protruding from the side wall of the fixed part, the first image acquisition module 23 is used to acquire a real-time image of the second end of the locking rod 11 protruding from the side wall of the fixed part when the locking shaft of the battery pack moves along the locking groove; the locking adjustment module 24 is used to determine whether the locking mechanism is locked based on the second end real-time image and the first standard image of the locking rod 11 in the locked state, and adjust the moving distance of the battery pack based on the judgment result.

[0267] The locking adjustment module 24 is used to obtain the distance difference between the end 13 of the locking rod 11 and the fixing part according to the real-time image of the second end of the locking rod 11 protruding from the side wall of the fixing part, and translate the locking axis of the battery pack according to the distance difference.

[0268] Specifically, the pixels of the real-time image can be processed into distance data, and then it is determined whether it falls within the preset standard distance range. If it does not fall within the preset standard distance range, the lock axis of the battery pack continues to be translated in the lock slot.

[0269] For more details, please refer to the attached Figure 4 The camera is fixedly installed below the locking mechanism, and continuously shoots the locking mechanism from the bottom to the top at an upward angle, collects real-time images of the active part, and continuously compares multiple real-time images with the standard image. The degree of overlap between the end 13 of the locking rod 11 in the real-time image and the end 13 of the locking rod 11 in the standard image is used to determine whether to perform the distance judgment operation. If the overlap is within a preset range, the distance d3 between the boundary line 18 where the end 13 of the locking rod 11 is located and the left boundary line 17 (i.e., the preset reference line) of the camera's field of view frame 14 is calculated based on the real-time image. Since the camera is always in a fixed position, the field of view frame 14 and the left boundary line 17 are also in fixed positions. Next, it is determined whether d3 is within a preset standard distance range, wherein the standard distance range is a region formed by the first standard line 15 and the second standard line 16, wherein the distance between the first standard line 15 and the left boundary line 17 is the first distance d1, and the distance between the second standard line 16 and the left boundary line 17 is within the second distance d2. If d3 is between d1 and d2, it is considered that the locking mechanism is locked. It is understandable that the preset standard distance range is set to take into account the errors in the matching process between the battery mechanism and the locking mechanism of different electric vehicles.

[0270] In this embodiment, conventional existing technologies in the field of imaging can be used to process pixels of the real-time image into distance data.

[0271] In this embodiment, whether the locking mechanism is locked can be judged by the real-time status of the locking tongue 12 or the locking rod 11, and the judgment result is intuitive and accurate.

[0272] In addition, multiple lock shafts can be set on the side of the battery pack and inserted into multiple lock bases 10 located on the electric vehicle at the same time to fix the battery pack on the battery vehicle. The action of the locking rod 11 can automatically lock the multiple lock shafts on the lock base 10 at the same time, greatly improving the battery replacement efficiency.

[0273] In other embodiments, the battery exchange control system 2 also includes a first alignment control module 25, which is used to use the battery exchange equipment to move the lock shaft of the battery pack to a first preset coordinate so that the lock shaft of the battery pack is aligned with the locking mechanism; or, the first alignment control module 25 is used to control the visual sensor to capture a first real-time alignment image of the locking mechanism in real time, and adjust the position of the lock shaft according to the first real-time alignment image so that the lock shaft of the battery pack is aligned with the locking mechanism.

[0274] This embodiment performs a positioning operation before using the battery replacement equipment to lift the battery pack, which improves the accuracy of the lifting and avoids the risk of collision or scratching the battery pack due to inaccurate positioning.

[0275] Furthermore, the first lifting control module 21 is also used to control the battery exchange equipment to descend when the battery pack reaches the locking position.

[0276] In this process, after the battery pack reaches the locked position, the clamping mechanism on the battery swapping device is first controlled to release the battery pack, and then the clamping mechanism retracts, and then the battery swapping device is controlled to descend at a preset speed. This embodiment can end the battery swapping in time by controlling the battery swapping device to descend in time, so that the electric vehicle can start and drive away as soon as possible, so as to facilitate the battery swapping for other electric vehicles.

[0277] Furthermore, the locking adjustment module 24 is also used to control the lock shaft of the battery pack to retreat a preset distance in the direction of the lock slot opening after the battery pack reaches the locking position, so that the lock shaft abuts against the movable part.

[0278] This embodiment can also improve the locking firmness of the battery pack, prevent the battery pack from slipping and causing poor contact when powering the electric vehicle, and improve the user experience.

[0279] In other embodiments, the battery swap control system 2 further includes a first battery swap signal regulation module 26, which is used to trigger a first battery swap signal and wait for a first preset time.

[0280] The first battery exchange signal control module 26 is used to detect whether the distance between the guide fork of the battery exchange device and the battery bracket is less than a preset threshold value. If so, a first battery exchange signal is generated, and the first battery exchange signal is used to control the ignition switch of the electric vehicle to switch to the off state. The guide fork can be set on the upper part of the battery exchange device.

[0281] In other embodiments, the battery swap control system 2 may further include a second battery swap signal regulation module 27 for triggering a second battery swap signal and waiting for a second preset time.

[0282] The second battery-changing signal control module 27 is used to receive vehicle status information sent by the electric vehicle, the vehicle status information includes license plate information and key signals, and the license plate information corresponds to the key signal one by one; analyze the key signal; if the key signal indicates that the electric vehicle is in an active state, a second battery-changing signal corresponding to the license plate information is generated, and the second battery-changing signal is used to control the ignition switch of the electric vehicle corresponding to the license plate information to switch to the off state.

[0283] This embodiment ensures that the battery swapping process is carried out while the vehicle is turned off by setting the first battery swapping signal and / or the second battery swapping signal, thereby improving the safety of the battery swapping operation.

[0284] In other embodiments, a first unit to be tested is provided on the lock shaft of the battery pack, and a first lock detection sensor is provided on the battery bracket of the electric vehicle; the battery exchange control system 2 also includes a lock determination module 28, and the lock determination module 28 is used to determine whether the first lock detection sensor detects the first unit to be tested, and if so, it is determined that the lock shaft of the battery pack is moved to the locked position; and / or, the movable part includes a lock tongue 12, and a second unit to be tested is provided on the lock tongue 12, and a second lock detection sensor is provided on the battery bracket of the electric vehicle; the lock determination module 28 is also used to determine whether the second lock detection sensor detects the second unit to be tested, and if so, it is determined that the lock shaft of the battery pack is moved to the locked position; and / or, the movable part includes a locking rod 11, and a third unit to be tested is provided on the locking rod 11, and a third lock detection sensor is provided on the battery bracket of the electric vehicle; the lock determination module 28 is also used to determine whether the third lock detection sensor detects the third unit to be tested, and if so, it is determined that the lock shaft of the battery pack is moved to the locked position.

[0285] Preferably, the first unit to be tested, the second unit to be tested and the third unit to be tested may be magnetic elements (eg permanent magnets), the magnetic elements radiate magnetic fields (magnetic lines of force) outwardly, and the lock detection sensor may detect the magnetic elements by identifying the magnetic fields.

[0286] This embodiment can also further confirm the locking result through multiple lock detection sensors, ensuring the efficient and accurate completion of the battery replacement process.

[0287] The battery swap control system based on the battery swap device provided in this embodiment does not need to rely on the secondary modules on the electric vehicle side and the battery swap device side during operation, thereby avoiding the problem that the signal loses accuracy due to external interference during the interaction between the secondary module and the battery swap device, thereby affecting the battery swap efficiency. It can also save the cost of the secondary module and optimize the battery swap process.

[0288] Example 4

[0289] A battery replacement control system based on a battery replacement device, the battery replacement device is used to replace the battery pack on an electric vehicle, the electric vehicle is provided with a locking mechanism, the locking mechanism is used to lock and fix the battery pack, the locking mechanism includes a fixed part and a movable part, the fixed part has a lock slot for the battery pack lock shaft to move to a locked position, the movable part switches between a locked state and an unlocked state relative to the fixed part to close or open the opening of the lock shaft to enter and exit the lock slot.

[0290] Specifically, Figure 1As shown, the fixed part may include a lock base 10, and the movable part may include a locking rod 11 and a locking tongue 12. The locking tongue 12 can be rotatably installed on the lock base 10 around a rotating axis. The lock base 10 has a locking groove for locking and fixing the lock shaft of the battery pack. The lock groove has an opening, and the lock shaft of the battery pack enters and exits the lock groove through the opening. The locking rod 11 is rotatably connected to the locking tongue 12 and is arranged above the lock base 10. The locking tongue 12 is driven to rotate by directly driving the locking tongue 12 or the locking rod 11, so that the locking tongue 12 is switched between a locked state and an unlocked state to close or open the lock groove opening. The locking rod 11 can be a rod member with a long rod-like structure. The locking rod 11 can be movably connected to multiple lock bases 10 through the locking tongue 12, thereby realizing synchronous locking and unlocking of the lock shaft by multiple locking tongues.

[0291] like Fig.17 As shown, the battery replacement control system 3 in this embodiment may include:

[0292] The second lifting control module 31 is used to control the battery swapping device to be lifted to a second preset height at the bottom of the electric vehicle;

[0293] Specifically, the second lifting control module 31 is used to collect the second real-time height of the battery swapping equipment from a reference plane, which is the driving plane of the battery swapping equipment or the parking plane of the electric vehicle; determine whether the second real-time height falls within a second preset height range; if not, control the lifting height of the battery swapping equipment according to the second height difference between the second real-time height and the second preset height until the battery swapping equipment reaches the second preset height at the bottom of the electric vehicle.

[0294] Preferably, the second preset height includes a third lifting height and a fourth lifting height, and the lifting speed of the battery swap device in the third lifting height is greater than the lifting speed of the battery swap device in the fourth lifting height; wherein, at the third lifting height, the guide fork of the battery swap device has just entered the battery bracket, and at the fourth lifting height, the battery swap device contacts the battery pack to be unlocked. By setting different lifting speeds for different preset heights, while taking into account efficiency, it is also possible to ensure that the guide fork of the battery swap device is not damaged, thereby improving safety.

[0295] Those skilled in the art can adaptively set different lifting speeds according to the needs of specific application scenarios, and this embodiment does not limit this.

[0296] The second translation control module 32 is used to control the battery exchange equipment to move the lock shaft of the battery pack along the lock groove to the unlocked pre-tightened position, so that the movable part moves from the locked state to the unlocked state relative to the fixed part; the unlocked state means that the movable part releases the lock on the lock shaft and the battery pack can be removed.

[0297] A second image acquisition module 33, used for acquiring a second real-time image of the movable part relative to the fixed part when the movable part moves to the unlocked state;

[0298] The second real-time image may be a real-time image of the third end of the locking tongue 12 relative to the fixing portion, or the second real-time image may also be a real-time image of the fourth end of the locking rod 11 protruding from the side wall of the fixing portion.

[0299] The unlocking adjustment module 34 is used to determine whether the locking mechanism is completely unlocked according to the second real-time image and the second standard image when the movable part is in the unlocked state, and perform corresponding actions.

[0300] Specifically, the unlocking adjustment module 34 is used to determine whether the second real-time image and the second standard image when the movable part is in the unlocked state are within a preset error range; if not, the second translation control module 32 is called; if so, the battery replacement equipment is stopped to move the lock axis of the battery pack along the lock slot to the unlocking pre-tightening position.

[0301] It should be noted that the real-time image and the standard image can be in the form of video or photo, which is not limited in this embodiment. When the real-time image and the standard image are in the form of video, the images are compared in frames (each frame can be used as an independent picture), and when the real-time image and the standard image are in the form of pictures, the images are compared in each picture.

[0302] If the second real-time image shown is a real-time image of the third end of the locking tongue 12 relative to the fixed part, the second image acquisition module 33 is used to acquire the real-time image of the third end of the locking tongue 12 relative to the fixed part; the locking adjustment module 24 is used to determine whether the locking mechanism is unlocked based on the third end real-time image and the second standard image when the locking tongue 12 is in the unlocked state, and adjust the moving distance of the battery pack according to the judgment result.

[0303] If the second real-time image is a real-time image of the fourth end of the locking rod 11 protruding from the side wall of the fixed part, the second image acquisition module 33 is used to acquire the real-time image of the fourth end of the locking rod 11 protruding from the side wall of the fixed part when the lock shaft of the battery pack moves along the lock groove; the locking adjustment module 24 is used to determine whether the locking mechanism is unlocked based on the real-time image of the fourth end and the second standard image of the locking rod 11 when it is in the unlocked state, and adjust the moving distance of the battery pack according to the judgment result.

[0304] Furthermore, the distance difference between the end 13 of the locking rod 11 and the fixing portion can be obtained based on the real-time image of the fourth end of the locking rod 11 protruding from the side wall of the fixing portion, and the locking axis of the battery pack can be translated according to the distance difference.

[0305] Specifically, a real-time image of the fourth end of the locking rod can be collected, and the pixels of the real-time image can be processed into distance data, and then it can be determined whether the distance data falls outside the preset standard distance. If it does not fall outside the preset standard distance, the lock axis of the battery pack continues to be translated in the lock slot.

[0306] For more details, please refer to the attached Fig.11 The camera is fixedly installed below the locking mechanism, and continuously photographs the locking mechanism from the bottom to the top at an upward angle, collects real-time images of the active part, and continuously compares multiple real-time images with the standard image. It is determined whether to perform the distance judgment operation according to the degree of overlap between the end 13 of the locking rod 11 in the real-time image and the end 13 of the locking rod 11 in the standard image. If the degree of overlap is within the preset range, the distance d5 between the boundary line 18 where the end 13 of the locking rod 11 is located and the left boundary line 17 (i.e., the preset reference line) of the camera's field of view frame 14 is calculated according to the real-time image. Since the camera is always in a fixed position, the field of view frame 14 and the left boundary line 17 are also in a fixed position. Next, it is determined whether d5 is outside the preset standard distance. The standard distance here is defined by the third standard line 19, wherein the distance between the third standard line 19 and the left boundary line 17 is the fourth distance d4. If d5 is greater than d4, it is considered that the locking mechanism is unlocked.

[0307] In this embodiment, conventional existing technologies in the field of imaging can be used to process pixels of the real-time image into distance data.

[0308] In this embodiment, whether the locking mechanism is unlocked can be judged by the real-time status of the lock tongue 12 or the locking rod 11, and the judgment result is intuitive and accurate.

[0309] In other embodiments, the battery swap control system 3 may further include a third battery swap signal regulation module 36 for triggering a third battery swap signal and waiting for a third preset time.

[0310] The third battery exchange signal control module 36 is used to detect whether the distance between the guide fork of the battery exchange equipment and the battery bracket is less than a preset threshold. If so, a third battery exchange signal is generated, and the third battery exchange signal is used to control the ignition switch of the electric vehicle to switch to the off state.

[0311] In other embodiments, the battery swap control system 3 further includes a fourth battery swap signal regulation module 37, which is used to trigger a fourth battery swap signal and wait for a fourth preset time.

[0312] The fourth battery-swap signal control module 37 is used to receive vehicle status information sent by the electric vehicle, the vehicle status information includes license plate information and key signals, and the license plate information corresponds to the key signal one by one; analyze the key signal; if the key signal indicates that the electric vehicle is in an active state, a fourth battery-swap signal corresponding to the license plate information is generated, and the fourth battery-swap signal is used to control the ignition switch of the electric vehicle corresponding to the license plate information to switch to the off state.

[0313] The aforementioned implementation manner ensures that the battery swapping process is carried out while the vehicle is turned off by setting the third battery swapping signal and / or the fourth battery swapping signal, thereby improving the safety of the battery swapping operation.

[0314] In other embodiments, a fourth unit to be tested is provided on the lock shaft of the battery pack, a first unlocking detection sensor is provided on the battery bracket of the electric vehicle, and the battery exchange control system 3 also includes an unlocking determination module 38, and the unlocking determination module 38 is used to determine whether the first unlocking detection sensor detects the fourth unit to be tested. If so, it is determined that the lock shaft of the battery pack is moved to the unlocking pre-tightening position; and / or, the movable part includes a locking tongue 12, on which a fifth unit to be tested is provided, and a second unlocking detection sensor is provided on the battery bracket of the electric vehicle. The unlocking determination module 38 is also used to determine whether the second unlocking detection sensor detects the fifth unit to be tested. If so, it is determined that the lock shaft of the battery pack is moved to the unlocking pre-tightening position; and / or, the movable part includes a locking rod 11, on which a sixth unit to be tested is provided, and a third unlocking detection sensor is provided on the battery bracket of the electric vehicle. The unlocking determination module 38 is also used to determine whether the third unlocking detection sensor detects the sixth unit to be tested. If so, it is determined that the lock shaft of the battery pack is moved to the unlocking pre-tightening position.

[0315] Preferably, the fourth unit to be tested, the fifth unit to be tested and the sixth unit to be tested may be magnetic elements (eg permanent magnets), the magnetic elements radiate magnetic fields (magnetic lines of force) outwardly, and the lock detection sensor may detect the magnetic elements by identifying the magnetic fields.

[0316] This embodiment can also further confirm the unlocking result through multiple unlocking detection sensors, ensuring the efficient and accurate completion of the battery replacement process.

[0317] In other embodiments, the battery swap control system 3 also includes a second alignment control module 35, which is used to move the battery swap device to a second preset coordinate so that the battery swap device is aligned with the battery pack to be unlocked; or, the second alignment control module 35 is also used to control the visual sensor to capture a second real-time alignment image of the battery swap device in real time, and adjust the position of the battery swap device according to the second real-time alignment image so that the battery swap device is aligned with the battery pack to be unlocked.

[0318] This embodiment performs a positioning operation before lifting the battery swap equipment, which improves the accuracy of lifting and avoids the risk of collision or scratching of the battery swap equipment due to inaccurate positioning.

[0319] Furthermore, the unlocking adjustment module 34 is also used to control the battery replacement equipment to clamp and remove the battery pack after the battery pack is unlocked.

[0320] In this process, after the battery pack is unlocked, the clamping mechanism on the battery swap device is first controlled to extend toward the battery pack, and then the clamping structure is controlled to clamp the battery pack and remove the battery pack from the battery bracket. This embodiment can ensure that the battery swap device can efficiently and accurately obtain the battery pack.

[0321] Furthermore, the second lifting control module 31 is also used to control the descent of the battery exchange equipment after the battery pack is taken out.

[0322] This implementation allows the battery pack to be removed in time, so that the battery pack can enter the subsequent charging process as soon as possible.

[0323] The battery swap control system based on the battery swap device provided in this embodiment does not need to rely on the secondary modules on the electric vehicle side and the battery swap device side during operation, thereby avoiding the problem that the signal loses accuracy due to external interference during the interaction between the secondary module and the battery swap device, thereby affecting the battery swap efficiency. It can also save the cost of the secondary module and optimize the battery swap process.

[0324] Example 5

[0325] The present invention also provides an electronic device, such as Fig.18 As shown, the electronic device may include a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the battery replacement control method based on the battery replacement device in the aforementioned embodiment 1 or embodiment 2 are implemented.

[0326] Understandably, Fig.18 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0327] like Fig.18 As shown, the electronic device 41 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 41 may include, but are not limited to, at least one processor 42, at least one memory 43, and a bus 44 connecting different system components (including the memory 43 and the processor 42).

[0328] The bus 44 may include a data bus, an address bus, and a control bus.

[0329] The memory 43 may include a volatile memory, such as a random access memory (RAM) 431 and / or a cache memory 432 , and may further include a read-only memory (ROM) 433 .

[0330] The memory 43 may also include a program tool 435 (or utility) having a set (at least one) of program modules 434, such program modules 434 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0331] The processor 42 executes various functional applications and data processing by running the computer program stored in the memory 43, such as the steps of the battery replacement control method based on the battery replacement equipment in the aforementioned embodiment 1 or embodiment 2 of the present invention.

[0332] The electronic device 41 may also communicate with one or more external devices 45 (e.g., keyboard, pointing device, etc.). Such communication may be performed through an input / output (I / O) interface 46. Furthermore, the model generating electronic device 41 may also communicate with one or more networks (e.g., a local area network LAN, a wide area network WAN, and / or a public network) through a network adapter 47.

[0333] like Fig.18 As shown, the network adapter 47 can communicate with other modules of the model-generated electronic device 41 through the bus 44. It should be understood by those skilled in the art that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated electronic device 41, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0334] It should be noted that, although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above may be embodied in one unit / module. Conversely, the features and functions of one unit / module described above may be further divided into multiple units / modules for embodiment.

[0335] Example 6

[0336] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the battery replacement control method based on the battery replacement device in the aforementioned embodiment 1 or embodiment 2 are implemented.

[0337] Among them, more specific forms in which computer-readable storage media can be used include but are not limited to: portable disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, optical storage devices, magnetic storage devices, or any suitable combination of the above.

[0338] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of the battery replacement control method based on the battery replacement device in the aforementioned embodiment 1 or embodiment 2.

[0339] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0340] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.

Claims

1. A battery replacement control method based on a battery replacement device, wherein the battery replacement device is used to replace a battery pack on an electric vehicle, and the electric vehicle is provided with a locking mechanism, wherein the locking mechanism is used to lock and fix the battery pack, and the locking mechanism comprises a fixed portion and a movable portion, wherein the fixed portion has a locking groove for the battery pack locking shaft to move to a locking position, and the movable portion switches between a locked state and an unlocked state relative to the fixed portion to close or open an opening for the locking shaft to enter and exit the locking groove, It is characterized in that The battery replacement control method comprises: Controlling the battery replacement equipment to lift the battery pack to a first preset height at the bottom of the electric vehicle; Controlling the battery replacement device to move the lock shaft of the battery pack along the lock slot to the locking position; Capturing a first real-time image of the movable portion relative to the fixed portion during a process in which the locking shaft of the battery pack moves along the locking groove; determining whether the locking mechanism is locked according to the first real-time image and the first standard image when the movable part is located at the locking position, and performing corresponding actions; After the step of controlling the battery replacement device to lift the battery pack to a first preset height at the bottom of the electric vehicle, the following step is further included: Trigger a first battery replacement signal and wait for a first preset time; The step of triggering the first power switching signal comprises: Detect whether the distance between the guide fork of the battery exchange device and the battery bracket is less than a preset threshold value. If so, generate the first battery exchange signal, which is used to control the ignition switch of the electric vehicle to switch to an off state.

2. The battery replacement control method based on the battery replacement device according to claim 1, It is characterized in that The step of judging whether the locking mechanism is locked according to the first real-time image and the first standard image when the movable part is located at the locking position, and performing corresponding actions comprises: determining whether the first real-time image and a first standard image when the movable part is located at the locking position are within a preset error range; If so, stop the battery exchange device from moving the battery pack to the locking position in the lock slot.

3. The battery replacement control method based on the battery replacement device according to claim 1, It is characterized in that The step of controlling the battery replacement device to lift the battery pack to a first preset height at the bottom of the electric vehicle comprises: Collecting a first real-time height of the battery swapping device from a reference plane, where the reference plane is a driving plane of the battery swapping device or a parking plane of the electric vehicle; Determining whether the first real-time altitude falls within a first preset altitude range; If not, the lifting height of the battery exchange device is controlled according to the first height difference between the first real-time height and the first preset height until the battery exchange device lifts the battery pack to the first preset height at the bottom of the electric vehicle.

4. The battery replacement control method based on the battery replacement device according to claim 1, It is characterized in that Before the step of controlling the battery replacement device to lift the battery pack to a first preset height at the bottom of the electric vehicle, the step further includes: Trigger the second battery replacement signal and wait for the second preset time.

5. The battery replacement control method based on the battery replacement device according to claim 4, It is characterized in that The step of triggering the second battery replacement signal comprises: Receiving vehicle status information sent by the electric vehicle, the vehicle status information including license plate information and a key signal, the license plate information corresponding to the key signal one by one; parsing the key signal; If the key signal indicates that the electric vehicle is in an on-state, a second battery-changing signal corresponding to the license plate information is generated, and the second battery-changing signal is used to control the ignition switch of the electric vehicle corresponding to the license plate information to switch to an off state.

6. The battery replacement control method based on the battery replacement device according to claim 1, It is characterized in that The movable portion includes a locking tongue; The step of acquiring a first real-time image of the movable portion relative to the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot comprises: acquiring a real-time image of a first end portion of the lock tongue relative to the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot; The step of judging whether the locking mechanism is locked according to the first real-time image and the first standard image when the movable part is located at the locking position, and performing corresponding actions includes: judging whether the locking mechanism is locked according to the first end real-time image and the first standard image when the locking tongue is located at the locking position, and adjusting the moving distance of the battery pack according to the judgment result.

7. The battery replacement control method based on the battery replacement device according to claim 1, It is characterized in that The movable part includes a locking rod and a locking tongue, and the locking rod drives the locking tongue to rotate to open or close the opening of the locking slot; The step of acquiring a first real-time image of the movable portion relative to the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot comprises: acquiring a real-time image of a second end portion of the locking rod protruding from the side wall of the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot; The step of judging whether the locking mechanism is locked according to the first real-time image and the first standard image when the movable part is in the locking position and performing corresponding actions includes: judging whether the locking mechanism is locked according to the second end real-time image and the first standard image when the locking rod is in the locked state, and adjusting the moving distance of the battery pack according to the judgment result.

8. The battery replacement control method based on the battery replacement device according to claim 7, It is characterized in that The step of judging whether the locking mechanism is locked according to the second end real-time image and the first standard image of the locking rod in the locked state, and adjusting the moving distance of the battery pack according to the judgment result comprises: The distance difference between the end of the locking rod and a preset reference line is obtained based on a real-time image of the second end of the locking rod protruding from the side wall of the fixing portion, and the locking shaft of the battery pack is translated based on the distance difference.

9. The battery replacement control method based on the battery replacement device according to claim 1, It is characterized in that The lock shaft of the battery pack is provided with a first unit to be tested, and the battery bracket of the electric vehicle is provided with a first lock detection sensor; the battery replacement control method further comprises: determining whether the first lock detection sensor detects the first unit to be tested, and if so, determining that the lock shaft of the battery pack moves to the locking position; and / or, The movable part includes a lock tongue, a second unit to be tested is provided on the lock tongue, and a second lock detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method further includes: determining whether the second lock detection sensor detects the second unit to be tested, and if so, determining that the lock shaft of the battery pack moves to the locking position; and / or, The movable part includes a locking rod, on which a third unit to be tested is provided, and a third lock detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method also includes: determining whether the third lock detection sensor detects the third unit to be tested, and if so, determining that the lock shaft of the battery pack is moved to the locking position.

10. The battery replacement control method based on the battery replacement device according to claim 1, It is characterized in that The first preset height includes a first lifting height and a second lifting height, and the lifting speed of the battery swapping device within the first lifting height is greater than the lifting speed of the battery swapping device within the second lifting height; wherein, at the first lifting height, the guide fork of the battery swapping device has just entered the battery bracket, and at the second lifting height, the locking shaft of the battery pack enters the fixed part, and the locking shaft lifts the movable part to open the opening of the locking shaft to enter the lock slot.

11. The battery replacement control method based on the battery replacement device according to claim 1, It is characterized in that Before controlling the battery replacement device to lift the battery pack to a first preset height at the bottom of the electric vehicle, the method further includes: Controlling the battery replacement device to move the lock shaft of the battery pack to a first preset coordinate so that the lock shaft of the battery pack is aligned with the locking mechanism; or, A first real-time alignment image of the locking mechanism is collected in real time by a visual sensor, and the position of the locking shaft is adjusted according to the first real-time alignment image so that the locking shaft of the battery pack is aligned with the locking mechanism.

12. The battery replacement control method based on the battery replacement device according to any one of claims 1 to 11, It is characterized in that The battery replacement control method further includes: When the battery pack reaches the locking position, the battery exchange device is controlled to descend.

13. The battery replacement control method based on the battery replacement device according to any one of claims 1 to 11, It is characterized in that The battery replacement control method further includes: When the battery pack reaches the locking position, the lock shaft of the battery pack is controlled to retreat a preset distance in the direction of the lock slot opening so that the lock shaft abuts against the movable part.

14. A battery replacement control method based on a battery replacement device, wherein the battery replacement device is used to replace a battery pack on an electric vehicle, and the electric vehicle is provided with a locking mechanism, wherein the locking mechanism is used to lock and fix the battery pack, and the locking mechanism comprises a fixed portion and a movable portion, wherein the fixed portion has a locking groove for the battery pack locking shaft to move to a locking position, and the movable portion switches between a locked state and an unlocked state relative to the fixed portion to close or open an opening for the locking shaft to enter and exit the locking groove, It is characterized in that The battery replacement control method comprises: Controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle; Controlling the battery replacement device to move the lock shaft of the battery pack along the lock slot to an unlocked pre-tightened position, so that the movable part moves from a locked state to an unlocked state relative to the fixed part; capturing a second real-time image of the movable portion relative to the fixed portion during a process in which the movable portion moves toward an unlocked state; determining whether the locking mechanism is completely unlocked according to the second real-time image and the second standard image when the movable part is in the unlocked state, and performing corresponding actions; After the step of controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle, the following step is further included: Trigger a third battery replacement signal and wait for a third preset time; The step of triggering the third battery swap signal comprises: Detect whether the distance between the guide fork of the battery exchange device and the battery bracket is less than a preset threshold value. If so, generate a third battery exchange signal, and the third battery exchange signal is used to control the ignition switch of the electric vehicle to switch to the off state.

15. The battery replacement control method based on the battery replacement device according to claim 14, It is characterized in that The step of judging whether the locking mechanism is unlocked according to the second real-time image and the second standard image when the movable part is in the unlocked state, and performing corresponding actions comprises: determining whether the second real-time image and a second standard image when the movable part is in an unlocked state are within a preset error range; If not, control the battery exchange device to move the lock shaft of the battery pack along the lock slot to the unlocking pre-tightening position.

16. The battery replacement control method based on the battery replacement device according to claim 14, It is characterized in that The step of controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle comprises: Collecting a second real-time height of the battery swapping device from a reference plane, where the reference plane is a driving plane of the battery swapping device or a parking plane of the electric vehicle; Determining whether the second real-time altitude falls within a second preset altitude range; If not, the lifting height of the battery exchange device is controlled according to the second height difference between the second real-time height and the second preset height until the battery exchange device reaches the second preset height at the bottom of the electric vehicle.

17. The battery replacement control method based on the battery replacement device according to claim 14, It is characterized in that Before the step of controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle, the step further includes: Trigger the fourth battery replacement signal and wait for the fourth preset time.

18. The battery replacement control method based on the battery replacement device according to claim 17, It is characterized in that The step of triggering the fourth battery swap signal comprises: Receiving vehicle status information sent by the electric vehicle, the vehicle status information including license plate information and a key signal, the license plate information corresponding to the key signal one by one; parsing the key signal; If the key signal indicates that the electric vehicle is in an on-state, a fourth battery-changing signal corresponding to the license plate information is generated, and the fourth battery-changing signal is used to control the ignition switch of the electric vehicle corresponding to the license plate information to switch to an off state.

19. The battery replacement control method based on the battery replacement device according to claim 14, It is characterized in that The movable portion includes a locking tongue; The step of acquiring a second real-time image of the movable portion relative to the fixed portion during the process in which the movable portion moves to the unlocked state includes: acquiring a real-time image of a third end portion of the locking tongue relative to the fixed portion; The step of judging whether the locking mechanism is completely unlocked based on the second real-time image and the second standard image when the movable part is in the unlocked state, and performing corresponding actions includes: judging whether the locking mechanism is completely unlocked based on the third end real-time image and the second standard image when the lock tongue is in the unlocked pre-tightened position, and adjusting the moving distance of the battery pack according to the judgment result.

20. The battery replacement control method based on the battery replacement device according to claim 14, It is characterized in that The movable part includes a locking rod and a locking tongue, and the locking rod drives the locking tongue to rotate to open or close the opening of the locking slot; The step of acquiring a second real-time image of the movable portion relative to the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot comprises: acquiring a real-time image of a fourth end portion of the locking rod protruding from the side wall of the fixed portion during the process in which the lock shaft of the battery pack moves along the lock slot; The step of judging whether the locking mechanism is completely unlocked based on the second real-time image and the second standard image when the movable part is in the unlocked pre-tightened position, and performing corresponding actions includes: judging whether the locking mechanism is completely unlocked based on the fourth end real-time image and the second standard image when the locking rod is in the unlocked state, and adjusting the moving distance of the battery pack according to the judgment result.

21. The battery replacement control method based on the battery replacement device according to claim 20, It is characterized in that The step of comparing the fourth end real-time image with the second standard image of the locking rod in the fully unlocked state and adjusting the moving distance of the battery pack according to the judgment result comprises: The distance difference between the end of the locking rod and a preset reference line is obtained based on a real-time image of the fourth end of the locking rod protruding from the side wall of the fixing portion, and the locking shaft of the battery pack is translated based on the distance difference.

22. The battery replacement control method based on the battery replacement device according to claim 14, It is characterized in that A fourth unit to be tested is provided on the lock shaft of the battery pack, and a first unlock detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method further comprises: determining whether the first unlock detection sensor detects the fourth unit to be tested, and if so, determining that the lock shaft of the battery pack moves to the unlock pre-tightening position; and / or, The movable part includes a lock tongue, a fifth unit to be tested is provided on the lock tongue, and a second unlocking detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method further includes: determining whether the second unlocking detection sensor detects the fifth unit to be tested, and if so, determining that the lock shaft of the battery pack moves to the unlocking pre-tightening position; and / or, The movable part includes a locking rod, on which a sixth unit to be tested is provided, and a third unlocking detection sensor is provided on the battery bracket of the electric vehicle; the battery replacement control method also includes: determining whether the third unlocking detection sensor detects the sixth unit to be tested, and if so, determining that the lock shaft of the battery pack is moved to the unlocking pre-tightening position.

23. The battery replacement control method based on the battery replacement device according to claim 14, It is characterized in that The second preset height includes a third lifting height and a fourth lifting height, and the lifting speed of the battery swapping device within the third lifting height is greater than the lifting speed of the battery swapping device within the fourth lifting height; wherein, at the third lifting height, the guide fork of the battery swapping device has just entered the battery bracket, and at the fourth lifting height, the battery swapping device contacts the battery pack to be unlocked.

24. The battery replacement control method based on the battery replacement device according to claim 14, It is characterized in that Before controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle, the method further includes: Controlling the battery swapping device to move to a second preset coordinate so that the battery swapping device is aligned with the battery pack to be unlocked; or, A second real-time alignment image of the battery swapping device is captured in real time by a visual sensor, and the position of the battery swapping device is adjusted according to the second real-time alignment image so that the battery swapping device is aligned with the battery pack to be unlocked.

25. The battery replacement control method based on the battery replacement device according to any one of claims 14 to 24, It is characterized in that The battery replacement control method further includes: When the battery pack is unlocked, the battery replacement device is controlled to clamp and remove the battery pack.

26. The battery replacement control method based on the battery replacement device according to claim 25, It is characterized in that The battery replacement control method further includes: When the battery pack is taken out, the battery exchange equipment is controlled to descend.

27. A battery replacement control system based on a battery replacement device, wherein the battery replacement device is used to replace a battery pack on an electric vehicle, wherein the electric vehicle is provided with a locking mechanism, wherein the locking mechanism is used to lock and fix the battery pack, wherein the locking mechanism comprises a fixed portion and a movable portion, wherein the fixed portion has a locking groove for moving a battery pack locking shaft to a locking position, wherein the movable portion switches between a locked state and an unlocked state relative to the fixed portion, so as to close or open an opening for the locking shaft to enter and exit the locking groove, It is characterized in that The battery replacement control system comprises: A first lifting control module, used to control the battery replacement equipment to lift the battery pack to a first preset height at the bottom of the electric vehicle; A first translation control module, used to control the battery replacement device to move the lock shaft of the battery pack along the lock slot to the locking position; A first image acquisition module, used for acquiring a first real-time image of the movable part relative to the fixed part during the process of the locking shaft of the battery pack moving along the locking groove; a locking adjustment module, configured to determine whether the locking mechanism is completely locked according to the first real-time image and a first standard image when the movable part is located at the locking position, and perform a corresponding action; A first battery swap signal control module, used to trigger a first battery swap signal and wait for a first preset time; The first battery-exchange signal control module is used to detect whether the distance between the guide fork of the battery-exchange equipment and the battery bracket is less than a preset threshold. If so, the first battery-exchange signal is generated, and the first battery-exchange signal is used to control the ignition switch of the electric vehicle to switch to the off state.

28. A battery replacement control system based on a battery replacement device, wherein the battery replacement device is used to replace a battery pack on an electric vehicle, wherein the electric vehicle is provided with a locking mechanism, wherein the locking mechanism is used to lock and fix the battery pack, wherein the locking mechanism comprises a fixed portion and a movable portion, wherein the fixed portion has a locking groove for moving a battery pack locking shaft to a locking position, wherein the movable portion switches between a locked state and an unlocked state relative to the fixed portion, so as to close or open an opening for the locking shaft to enter and exit the locking groove, It is characterized in that The battery replacement control system comprises: A second lifting control module, used for controlling the battery exchange device to be lifted to a second preset height at the bottom of the electric vehicle; A second translation control module is used to control the battery replacement device to move the lock shaft of the battery pack along the lock slot to the unlocking pre-tightening position, so that the movable part moves from the locked state to the unlocked state relative to the fixed part; A second image acquisition module, used for acquiring a second real-time image of the movable part relative to the fixed part during the process in which the movable part moves to the unlocked state; an unlocking adjustment module, configured to determine whether the locking mechanism has been unlocked according to the second real-time image and a second standard image when the movable part is in an unlocked state, and perform a corresponding action; A third battery swap signal control module, used to trigger a third battery swap signal and wait for a third preset time; The third battery exchange signal control module is used to detect whether the distance between the guide fork of the battery exchange equipment and the battery bracket is less than a preset threshold. If so, the third battery exchange signal is generated, and the third battery exchange signal is used to control the ignition switch of the electric vehicle to switch to the off state.

29. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, it implements the steps of the battery replacement control method based on the battery replacement equipment as described in any one of claims 1-26.

30. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the battery replacement control method based on the battery replacement equipment as described in any one of claims 1-26 are implemented.