Electric vehicle charging and battery replacing integrated equipment and control method

The integrated charging and battery swapping equipment for electric vehicles solves the problem of independent construction of charging piles and battery swapping stations, realizes resource sharing and improves equipment utilization, meets the diverse power needs of electric vehicle users, and ensures safety and ease of operation.

CN121340966APending Publication Date: 2026-01-16ZHEJIANG YUEXIN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511798572.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-02
Publication Date
2026-01-16

AI Technical Summary

Technical Problem

Charging piles and battery swapping stations are usually built and managed as independent facilities, and cannot share power resources. This results in battery swapping equipment being idle for a long time, wasting resources. In addition, car owners often choose to charge rather than swap batteries when the battery is low, which cannot meet emergency power needs.

Method used

Design an integrated charging and battery swapping device for electric vehicles, integrating a charging module and a battery swapping module. Through an integrated control module, it can achieve dynamic resource allocation, automatically switch working modes, prioritize meeting external charging needs or internal battery replenishment, support rapid battery swapping, and configure a safety protection module and an interaction module to simplify operation.

Benefits of technology

It enables the sharing of charging and battery swapping functions, reduces equipment construction and resource waste, improves equipment utilization, meets regular and emergency power needs, and ensures safety and ease of operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121340966A_ABST
    Figure CN121340966A_ABST
Patent Text Reader

Abstract

The invention relates to a charging and battery replacing integrated device for an electric vehicle. A device body comprises a power input module supporting single-phase 220V / three-phase 380V input; 2-4 charging modules which can be selectively matched with independent charging channels (the maximum of a single channel is 20kW) and strip-shaped water lights; the five battery replacement modules are provided with electronic locks and status lamps; the interaction module is provided with a waterproof screen and a light supplementing two-dimensional code; a voice broadcast unit; the safety protection module comprises surge / electric leakage / warm smoke water immersion protection and a fire extinguisher; an audible and visual alarm and a heating and heat dissipation unit. The integrated control module plans all the modules as a whole and comprises dynamic resource distribution (external charging is preferentially carried out, charging is carried out on a battery of a battery replacement bin if no requirement exists, and the charging priority can be set), safety linkage (automatic power-off when the power exceeds the standard, alarming and fault marking) and environment self-adaption (stable operation at the altitude of less than or equal to 2000m is carried out at the temperature of 20 DEG C below zero to 45 DEG C) logic. The equipment shares hardware and power supply resources, construction investment is reduced, the problem that the battery replacement equipment is idle is solved, the charging and emergency battery replacement requirements are met, and operation is convenient and safe.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of charging piles, in particular to an electric vehicle charging and battery swapping integrated device and a control method. BACKGROUND

[0002] With the popularization of electric vehicles, every parking lot basically sets a charging pile specially for charging electric vehicles, and some expressway servers also set a battery swapping station, so that the vehicle owner can obtain electric energy by replacing the battery in the case of urgent travel. The charging station and the battery swapping station are usually constructed and managed as independent facilities, the functions of the charging pile and the battery swapping cabinet are split, the power supply resources and hardware modules cannot be shared, and when the electric vehicle is short of power, most vehicle owners will choose direct charging, only a small part of vehicle owners have emergency power needs and choose battery swapping, which leads to the long-term idle state of the battery swapping equipment and causes resource waste. SUMMARY

[0003] The present application aims to overcome the above-mentioned defects and provide an electric vehicle charging and battery swapping integrated device and a control method.

[0004] To achieve the above-mentioned purpose, the present application adopts the following technical solution: an electric vehicle charging and battery swapping integrated device, comprising a charging and battery swapping device body and an integrated control module; The charging and battery swapping device body comprises: a power input module connected to the mains, which adopts single-phase 220V or three-phase 380V voltage input, and the maximum input power is 80kW; a charging module, the charging module comprises 2 or 4 optional charging channels, corresponding to 2 or 4 charging guns, each charging channel works independently, the maximum output current of a single charging channel is 200A, the maximum output voltage is 90V, and the maximum power is 20kW; the charging gun is connected to the charging and battery swapping device body through a 3-meter cable; each charging channel is configured with a charging progress indicator light, which adopts a strip-shaped flowing light, and the lighting length of the strip-shaped flowing light represents the charging capacity; a battery swapping module, the battery swapping module comprises 5 battery storage bins, supports battery swapping function, adapts to standard fast-charging battery packs, each storage battery bin is configured with an electronic lock switch and a state indicator light, and the state indicator light is used to display the charging state or full power state of the battery in the bin; The interactive module comprises a display screen arranged on the front side wall of the device and a two-dimensional code arranged above the battery replacement module, the display screen is designed with a plug-in interface corresponding to the charging module, the interface and the display screen have a waterproof function, the display screen supports switching between a carousel mode and a four-split screen mode, a light supplementing lamp is arranged on the side of the two-dimensional code to ensure that the two-dimensional code can be normally scanned in poor light, and a key is arranged on the two-dimensional code to control the light supplementing lamp to be turned on, a key circuit board is designed on the back of the two-dimensional code, and the light supplementing lamp is turned off after the key is pressed for 10 seconds without being pressed again. The voice broadcast unit is used for broadcasting prompt sounds of charging, taking and replacing batteries, opening and closing the door, and device abnormalities. The safety protection module comprises a surge protector, a leakage grounding protection, a temperature detection sensor, a smoke detection sensor, an aerosol fire extinguisher, a water immersion sensor, and a lightning protection device. The audible and visual alarm is used for emitting audible and visual alarms when the device fails. The heat dissipation unit is used for dissipating heat of the device. The integrated control module is electrically connected with the charging module, the battery replacement module, the interactive module, the voice broadcast unit, the safety protection module, the audible and visual alarm, and the heat dissipation unit, and is configured with dynamic resource allocation logic, battery replacement process control logic, safety linkage control logic, and environment adaptive control logic, and is used for overall planning operation of each module of the device.

[0005] Further, the dynamic resource allocation logic specifically comprises the following steps: detecting a plug-in state of a charging gun of the charging module, determining that there is an external charging demand when it is detected that the charging gun is plugged in, controlling the device to preferentially charge the external electric vehicle, and driving a charging progress indicator lamp of the corresponding charging channel to be lit; when all the charging guns are in a pulled-out state, it is determined that there is no external demand, and the charging of the batteries in the battery replacement module is automatically switched, and the corresponding state indicator lamp is driven to be lit; the charging of the batteries in the battery replacement module can also be configured with a priority, for example, the charging sequence is high power first and low power second, so that a battery is fully charged at the fastest speed, and a full-power battery that can be replaced is provided as soon as possible.

[0006] Further, the charging gun is provided with a KIO signal acquisition module, the KIO on-off signal of the charging gun is received through the KIO signal acquisition module, and it is determined that there is an external charging demand when a high-level signal of the charging gun being plugged in is detected.

[0007] Further, the battery storage compartment is provided with a battery compartment detection sensor for detecting whether there is a battery in the compartment, the sensor adopts an infrared induction switch, and the infrared induction switch signal is transmitted to the integrated control module to determine whether the corresponding battery storage compartment is empty.

[0008] Further, the battery charging and replacing device body further comprises a battery management module electrically connected with the battery replacing module through the integrated control module, for detecting the power of the batteries in each battery storage compartment in the battery replacing module, preferentially identifying the batteries in the full power state, and then identifying the batteries in the highest power state, and transmitting to the integrated control module.

[0009] Further, the battery charging and replacing device body further comprises a battery management module electrically connected with the battery replacing module through the integrated control module, for detecting the power of the batteries in each battery storage compartment in the battery replacing module, preferentially identifying the batteries in the full power state, and then identifying the batteries in the highest power state, and transmitting to the integrated control module.

[0010] Further, the power input module is configured with an air switch box with leakage protection, which is electrically connected with the integrated control module, for cutting off the power supply in response to the instruction of the integrated control module.

[0011] Further, the safety linkage control logic is specifically: when the smoke detection assembly detects that the smoke concentration exceeds the set threshold, the total input power of the device is automatically cut off through the air switch box with leakage protection, the aerosol fire extinguisher and the sound and light alarm are triggered synchronously, and the fault module position is displayed in highlight on the display screen; when the water immersion sensor detects that the water depth at the bottom of the box exceeds 200mm at the bottom of the case, the total input power of the device is automatically cut off through the air switch box with leakage protection, and the voice broadcast unit issues a warning "water enters the device, please stop using", and the display screen pop-up window prompts the fault position.

[0012] Further, when the ambient temperature is higher than 35℃, the heat dissipation unit starts the strong heat dissipation mode, and when the ambient temperature is 20℃-35℃, the normal heat dissipation mode is started; to ensure that the device can stably operate under the conditions of ambient temperature of-20℃-45℃ and altitude of ≤2000m.

[0013] Further, the integrated control module is further configured with a data storage and remote monitoring interface: the charging amount, the number of battery replacements, and the fault information of the device can be recorded in real time, uploaded to the remote management platform through the 4G / 5G network, and support remote parameter configuration and fault diagnosis; an external plastic hidden antenna is arranged on the battery charging and replacing device body for information transmission, and a lightning protection device is arranged at the antenna.

[0014] A battery charging and replacing control method based on the device and control system of any one of claims 1-9, characterized in that it comprises the following steps: S1: After the device is powered on, initialize each module, detect the output of the charging module switching power supply, the state of the electronic lock of the battery replacement storage module, the sensor signal of the safety protection module, and if there is an abnormality, the interactive module will broadcast the fault type; S2: After initialization, execute dynamic resource allocation logic, determine whether it is external electric vehicle power supply or internal battery power supply through the charging gun plug-in state sensor; S3: During the power supply / power supply process, real-time safety linkage control logic is executed; S4: When receiving a user battery replacement request, pause the current power supply task, and execute the battery replacement process control logic first, and after completing the battery replacement, restore the original power supply task; S5: The integrated control module records the charging amount, battery replacement times and fault information of the device in real time, and uploads them to the remote management platform through the 4G / 5G network.

[0015] The beneficial effects of the present application: The charging and battery replacement integrated device integrates charging and battery replacement functions, and both share hardware modules, effectively reducing the site space, power supply lines and installation construction investment required for separately constructing traditional charging piles and battery replacement cabinets, solving the pain point of equipment idling, and avoiding resource waste caused by long-term idling of battery replacement equipment. The charging and battery replacement modules share power supply resources, which greatly improves the overall utilization rate of the equipment. The vehicle owner can choose according to the actual situation, and under normal circumstances, the vehicle owner can charge through the charging gun, and in an emergency, the vehicle owner can quickly replace the battery by scanning the code, which fully covers the power demand of most electric vehicle users.

[0016] The integrated control module is equipped with dynamic resource allocation logic, and the device can automatically switch the working mode according to the external charging demand. When there is an external charging request, the device prioritizes power supply for electric vehicles; when there is no external demand, the device automatically supplies power to the batteries in the battery storage compartment, and supports the priority configuration of “high power first, low power second” during the power supply process, so as to reserve full-power batteries at the fastest speed, which not only meets the demand of regular charging, but also guarantees the supply of emergency battery replacement, and realizes the maximum utilization of power supply resources.

[0017] The battery management module monitors the battery power in real time, accurately identifies full-power and high-power batteries, ensures sufficient battery power for the vehicle owner, and avoids wasting time due to frequent battery replacement.

[0018] The interactive module is configured with a waterproof display screen and a two-dimensional code with light supplementing function, and cooperates with the real-time prompt of the voice broadcast unit to simplify the operation process and ensure that the vehicle owner can successfully charge or replace the battery.

[0019] The safety protection module integrates multiple components such as surge protector, leakage grounding protection, temperature / smoke / water immersion sensor, aerosol fire extinguisher, lightning protection device, etc., forming a closed-loop protection system of “detection-early warning-disposal”, which fully covers various hidden dangers such as electrical safety, fire risk and environmental risk.

[0020] The integrated control module is equipped with environmental adaptive control logic to ensure stable operation of the equipment under ambient temperatures ranging from -20℃ to 45℃ and altitudes ≤2000m, solving problems such as high temperature overheating and expanding the applicable scenarios of the equipment.

[0021] The integrated control module is equipped with safety linkage control logic. When the smoke concentration exceeds the standard, it automatically cuts off the main power supply, triggers the fire extinguisher and audible and visual alarms, and marks the fault location on the display screen. When water enters the equipment, it immediately cuts off the power and provides dual warnings via voice and pop-up windows to quickly block safety risks and prevent the accident from escalating. The power input module is equipped with a circuit breaker box with leakage protection, which can respond to control commands to cut off power in an emergency. Attached Figure Description

[0022] Figure 1 This is a front view of the charging and swapping device body of the present invention; Figure 2 This is a side view of the charging and swapping device body of the present invention.

[0023] 1. Charging / swapping device body; 2. Charging gun; 3. Charging progress indicator light; 4. Battery storage compartment; 5. Status indicator light; 6. Display screen; 7. QR code; 8. Buttons. Detailed Implementation

[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention are within the scope of protection of the present invention.

[0025] Embodiments of the present invention: such as Figure 1 , 2 As shown, an integrated charging and swapping device for electric vehicles includes a charging and swapping device body and an integrated control module. The charging and swapping device body includes: a power input module, a charging module, a swapping module, an interaction module, a voice broadcast unit, a safety protection module, an audible and visual alarm, a heat dissipation unit, and a battery management module. All of the above modules are electrically connected to the integrated control module. The four charging guns in the charging module are respectively set at the four corners of the device cabinet. The five battery storage compartments in the swapping module are arranged sequentially from top to bottom. The total length of the device cabinet is 2.1 meters, the width is 0.75 meters, and the total height is 2.3 meters (including the top advertising board, the height of the cabinet alone is 1.9 meters). The overall structure is compact, occupies little space, and is convenient for deployment.

[0026] Power input module, connected to the mains, using single-phase 220V or three-phase 380V voltage input, maximum input power 80kW, configured with a leakage protection air switch box, which is electrically connected with the integrated control module, used to cut off the power in response to the instructions of the integrated control module; Charging module, the charging module includes 2 or 4 optional charging channels, corresponding to 2 or 4 charging guns (4 charging guns are ①-④ respectively, and there are obvious marks on the charging guns), each charging channel works independently, the maximum output current of a single charging channel is 200A, the maximum output voltage is 90V (the power output voltage range is 35V-90V, supporting 48 / 60 / 72 series battery pack charging), and the maximum power is 20kW; The device is externally connected to a 3-meter cable, and the charging gun is connected through the cable (the cable length is at least 3 meters, but not limited to 3 meters, and the cable is not shown in the figure); Each charging channel is configured with a charging progress indicator light, which is convenient for users to see the charging status in real time, and the charging progress indicator light is not lit when the charging gun is not working, the charging progress indicator light uses a strip-shaped flowing light, and the length of the strip-shaped flowing light represents the charging capacity; The KIO signal acquisition module is provided on the charging gun, and the KIO on-off signal of the charging gun is received through the KIO signal acquisition module, and when a high-level signal of the charging gun is detected, it is determined that there is an external charging demand; Battery replacement module, the battery replacement module includes 5 battery storage bins, supports battery replacement function, adapts to standard fast charging battery pack, each storage battery bin is configured with an electronic lock switch and a state indicator light, and the state indicator light is used to display the charging state or full power state of the battery in the bin; The battery storage bin is provided with a battery bin detection sensor for detecting whether there is a battery in the bin, and the sensor uses an infrared induction switch, which transmits the infrared induction switch signal to the integrated control module, for determining whether the corresponding battery storage bin is empty; Interactive module, including a display screen (21.5-inch Android screen) arranged on the front side wall of the device and a two-dimensional code arranged above the battery replacement module, the display screen is designed with a plug-in interface with the charging module, and the interface and the display screen have a waterproof function; The design is in a configurable manner, one is in a carousel mode, and the other is in a four-split screen mode, the two-dimensional code is provided with a light supplementing lamp on the side to ensure that the code can be normally scanned in poor light; And a key is arranged on the two-dimensional code, which is used to control the light supplementing lamp to be lit, and the outside is protected by acrylic, which is flush with the box body after installation; The key circuit board is designed on the back of the two-dimensional code, and the light supplementing lamp is turned off after 10 seconds if the key is not pressed again after being pressed; Voice broadcast unit, used to broadcast prompt sounds of charging, taking and placing batteries, opening and closing bin doors, and device abnormalities; A safety protection module, which comprises a surge protector, a leakage ground protection (action current 30mA, time less than 0.1s), a temperature detection sensor (detection range: -40℃~125℃), a smoke detection sensor (smoke sensitivity: 0.5db / m (s0.1); reaction time 10S after action), an aerosol fire extinguisher (starting temperature 175℃+15℃), a water immersion sensor (water depth higher than the bottom of the case by 200mm, the water immersion sensor detects 10S after action), a lightning protection device (T2 level); An audible and visual alarm for emitting audible and visual alarm when the device fails; A heat dissipation unit for device heat dissipation; A battery management module, which is electrically connected with the battery replacement module through the integrated control module, is used for detecting the power of the battery in each battery storage compartment in the battery replacement module, preferentially identifying the battery in full power state, and then identifying the battery in the highest power state, and transmitting to the integrated control module; The integrated control module is electrically connected with the charging module, the battery replacement module, the interaction module, the voice broadcast unit, the safety protection module, the audible and visual alarm, and the heat dissipation unit. The integrated control module is configured with dynamic resource allocation logic, battery replacement process control logic, safety linkage control logic, and environment adaptive control logic, and is used for overall planning the operation of each module of the device. The dynamic resource allocation logic is specifically: detecting the plug-in state of the charging gun of the charging module, when the charging gun is detected to be inserted, it is determined that there is an external charging demand, and the device is controlled to preferentially charge the external electric vehicle, and the charging progress indicator light of the corresponding charging channel is driven to light up; when all charging guns are in the pulled-out state, it is determined that there is no external demand, and the battery in the battery replacement module is automatically switched to charge, and the corresponding state indicator light is driven to light up. The battery in the battery replacement module can also be configured with priority, for example, the charging sequence is high power first and low power second, so that a battery is fully charged at the fastest speed, and a full-power battery that can be replaced is provided as soon as possible.

[0027] When the charging gun is used to charge the external electric vehicle, the voice broadcast unit broadcasts "** number charging gun starts charging" when the charging gun is inserted and charging starts, and the broadcast unit broadcasts "** number charging gun charging ends" after charging is completed.

[0028] The battery replacing process control logic is specifically: in response to a battery replacing request initiated by a user through scanning a code, an empty battery compartment is detected and identified through a battery compartment detection sensor; an electronic lock switch corresponding to the empty battery compartment is controlled to open; after the battery compartment detection sensor detects that the user has put in a battery to be charged and the compartment door is closed, the battery management module obtains battery capacity data of all storage compartments, and a battery in a full charge state is identified in priority; if there is a full battery, the electronic lock switch of the corresponding battery storage compartment is controlled to open; if there is no full battery, the battery management module identifies the battery with the highest capacity, and the corresponding electronic lock is opened, so that the user can take out the battery, thus completing the battery replacing.

[0029] During the battery replacing process, after the empty compartment door is opened, the voice broadcast unit broadcasts "the ** compartment door is open, please put in the battery"; after the full charge / high capacity battery compartment door is opened, the voice broadcast unit broadcasts "the ** compartment door is open, please take out the battery"; and within 10 seconds after the prompt broadcast, if the vehicle owner does not respond, the voice broadcast unit repeatedly broadcasts the prompt sound.

[0030] The safety linkage control logic is specifically: when the smoke detection component detects that the smoke concentration exceeds a set threshold, the air gap box with leakage protection automatically cuts off the total input power supply of the equipment after 10 seconds, synchronously triggers the aerosol fire extinguisher and the audible and visual alarm, and highlights the position of the fault module on the display screen; when the water immersion sensor detects that the water depth at the bottom of the box body exceeds 200mm, the air gap box with leakage protection automatically cuts off the total input power supply of the equipment after 10 seconds, and the voice broadcast unit issues a warning "water has entered the equipment, please stop using it", and the display screen pops up a prompt of the fault position.

[0031] When the ambient temperature is higher than 35℃, the heat dissipation unit starts a strong heat dissipation mode, and when the ambient temperature is 20℃-35℃, the heat dissipation unit starts a normal heat dissipation mode; the equipment is ensured to stably operate under the conditions of an ambient temperature of-20℃-45℃ and an altitude of ≤2000m.

[0032] The integrated control module is further configured with a data storage and remote monitoring interface: the charging quantity, the number of battery replacements, and fault information of the equipment can be recorded in real time, uploaded to a remote management platform through a 4G / 5G network, and remote parameter configuration and fault diagnosis are supported; an external plastic hidden antenna is arranged on the body of the charging and battery replacing equipment, for information transmission, and a lightning protection device is arranged at the antenna.

[0033] A charging and battery replacing control method based on the equipment and control system of any one of claims 1-9, characterized in that it comprises the following steps: S1: after the equipment is powered on, initialize each module, detect the output of the charging module switching power supply, the state of the electronic lock of the battery replacing storage module, and the sensor signal of the safety protection module, and if there is an abnormality, broadcast the fault type through the interaction module; S2: After initialization, execute dynamic resource allocation logic, determine whether to supply power to external electric vehicles or charge internal batteries through the charging gun plug state sensor; S3: During the power supply / charging process, real-time safety linkage control logic is executed; S4: When receiving a user battery replacement request, pause the current charging task, and execute the battery replacement process control logic first. After completing the battery replacement, resume the original charging task; S5: The integrated control module records the charging amount, battery replacement times, and fault information of the equipment in real time, and uploads them to the remote management platform through the 4G / 5G network.

Claims

1. An electric vehicle charging and battery swapping integrated device, characterized in that, The charging and battery replacing device comprises a device body and an integrated control module, wherein the device body comprises: a power input module connected to the mains, which adopts single-phase 220V or three-phase 380V voltage input, and the maximum input power is 80kW; a charging module, which comprises two or four optional charging channels corresponding to two or four charging guns, each charging channel works independently, the maximum output current of a single charging channel is 200A, the maximum output voltage is 90V, and the maximum power is 20kW; each charging channel is provided with a charging progress indicator lamp, which adopts a bar-shaped flowing water lamp, and the lighting length of the bar-shaped flowing water lamp represents the charging capacity; a battery replacing module, which comprises five battery storage bins suitable for standard fast charging battery packs, each storage battery bin is provided with an electronic lock switch and a state indicator lamp, and the state indicator lamp is used to display the charging state or full power state of the battery in the bin; an interactive module, which comprises a display screen arranged on the front side wall of the device and a two-dimensional code arranged above the battery replacing module; the display screen supports switching between a carousel mode and a four-split screen mode, the two-dimensional code is provided with a light supplementing lamp on the side, and a key is arranged on the two-dimensional code for controlling the light supplementing lamp to light up; a voice broadcast unit for broadcasting prompt sounds of charging, taking and placing batteries, opening and closing the bin door, and device abnormalities; a safety protection module, which comprises a surge protector, a leakage grounding protection, a temperature detection sensor, a smoke detection sensor, an aerosol fire extinguisher, a water immersion sensor, and a lightning protection device; an audible and visual alarm for emitting audible and visual alarms when the device fails; a heat dissipation unit for dissipating heat of the device; the integrated control module is electrically connected with the charging module, the battery replacing module, the interactive module, the voice broadcast unit, the safety protection module, the audible and visual alarm, and the heat dissipation unit, and is provided with dynamic resource allocation logic, battery replacing process control logic, safety linkage control logic, and environment adaptive control logic for overall planning the operation of each module of the device. The dynamic resource allocation logic specifically comprises: detecting the plug-in state of the charging gun of the charging module, determining that there is an external charging demand when the charging gun is detected to be plugged in, controlling the device to preferentially charge the external electric vehicle, and driving the charging progress indicator lamp of the corresponding charging channel to light up; when all the charging guns are in the unplugged state, it is determined that there is no external demand, and the battery in the battery replacing module is automatically switched to charging, and the corresponding state indicator lamp is driven to light up; the battery replacing process control logic also has a priority configuration, specifically, high-capacity batteries are charged first, and low-capacity batteries are charged later.

2. The electric vehicle charging and battery swapping integrated device of claim 1, wherein: The charging gun is provided with a KIO signal acquisition module, which receives the KIO on-off signal of the charging gun, and determines that there is an external charging demand when a high-level signal of the charging gun is detected.

3. The electric vehicle charging and battery swapping integrated device of claim 1, wherein: The battery storage bin is provided with a battery bin detection sensor for detecting whether there is a battery in the bin, the sensor adopts an infrared induction switch, and the infrared induction switch signal is transmitted to the integrated control module to determine whether the corresponding battery storage bin is empty.

4. The electric vehicle charging and battery swapping integrated device of claim 3, wherein: The battery charging and replacing device body further comprises a battery management module electrically connected with the battery replacing module through the integrated control module, used for detecting the power of the batteries in each battery storage compartment in the battery replacing module, preferentially identifying the batteries in the full power state, and then identifying the batteries in the highest power state, and transmitting to the integrated control module.

5. The electric vehicle charging and battery swapping integrated device according to claim 4, characterized in that: The battery replacing process control logic is specifically: in response to a battery replacing request initiated by a user through scanning a code, an empty compartment is detected and identified through a battery compartment detection sensor; an electronic lock switch of the corresponding empty compartment is controlled to be opened; after the user puts in a battery to be charged and closes the compartment door, the battery management module acquires battery power data of all storage compartments, preferentially identifies the batteries in the full power state; If there is a full power battery, the electronic lock switch of the corresponding battery storage compartment is controlled to be opened; If there is no full power battery, the battery management module identifies the battery with the highest power, and the corresponding electronic lock is opened, so that the user can take out the battery, and the battery replacing is completed.

6. The electric vehicle charging and battery swapping integrated device of claim 1, wherein: The power input module is configured with an air switch box with leakage protection, which is electrically connected with the integrated control module, used for cutting off the power supply in response to the instruction of the integrated control module.

7. The electric vehicle charging and battery swapping integrated device of claim 6, wherein: The safety linkage control logic is specifically: when the smoke detection assembly detects that the smoke concentration exceeds the set threshold, the total input power of the device is automatically cut off through the air switch box with leakage protection, the aerosol fire extinguisher and the sound and light alarm are synchronously triggered, and the fault module position is highlighted on the display screen; when the water immersion sensor detects that the water depth at the bottom of the box body exceeds 200mm, the total input power of the device is automatically cut off through the air switch box with leakage protection, and the voice broadcast unit issues a warning "water enters the device, please stop using", and the display screen pop-up window prompts the fault position. 8.The electric vehicle charging and battery swapping integrated device of claim 1, wherein: When the ambient temperature is higher than 35℃, the heat dissipation unit starts the strong heat dissipation mode, and when the ambient temperature is 20℃-35℃, the normal heat dissipation mode is started; the device is ensured to stably operate under the conditions of an ambient temperature of-20℃-45℃ and an altitude of ≤2000m. 9.The electric vehicle charging and battery swapping integrated device of claim 1, wherein: The integrated control module is further configured with a data storage and remote monitoring interface: the charging amount, the number of battery replacements, and the fault information of the device can be recorded in real time, uploaded to the remote management platform through the 4G / 5G network, and remote parameter configuration and fault diagnosis are supported; an external plastic hidden antenna is arranged on the battery charging and replacing device body for information transmission, and a lightning protection device is arranged at the antenna.

10. A method for controlling charging and discharging based on the device and control system according to any one of claims 1-9, characterized in that, The method comprises the following steps: S1: after the device is powered on, each module is initialized, the output of the charging module switching power supply, the electronic lock state of the battery replacing storage module, and the sensor signal of the safety protection module are detected, and if there is an abnormality, the type of the fault is broadcast through the interaction module; S2: after the initialization is completed, the dynamic resource allocation logic is executed, and whether the external electric vehicle is powered or the internal battery is recharged is determined through the charging gun plug state sensor; S3: in the process of power supply / recharge, the safety linkage control logic is executed in real time; S4: when receiving a user battery replacing request, the current recharging task is suspended, the battery replacing process control logic is preferentially executed, and after the battery replacing is completed, the original recharging task is resumed; S5: the integrated control module records the charging amount, the number of battery replacements, and the fault information of the device in real time, and uploads them to the remote management platform through the 4G / 5G network.