Charging and discharging control method and device, and vehicle

CN122740323APending Publication Date: 2026-09-11上海松鼠创科技术有限责任公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611142579.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-30
Publication Date
2026-09-11

AI Technical Summary

Benefits of technology

本申请提供了一种充放电控制方法、装置及车辆,通过实时采集充电接口上的第一电信号以及放电接口上的第二电信号,并分别判定第一电信号与第二电信号的信号类型,若检测到第一电信号为有效且第二电信号为无效,则判定第一车辆当前处于充电模式;若检测到第一电信号为无效且第二电信号为有效,则判定第一车辆当前处于放电模式,实现了对第一车辆的充放电模式的准确识别,无需复杂的判定逻辑,即可实现对第一车辆的充放电模式的自动识别;并根据识别到的当前充放电模式,接收充电设备提供的电能信号或向第二车辆放电,即基于当前充放电模式配置CP信号通路,以实现对第一车辆的充放电控制,提升了用户体验和系统可靠性,解决了现有方案手动切换存在操作繁琐、响应滞后,且容易出现因模式误判导致的电气安全隐患的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122740323A_ABST
    Figure CN122740323A_ABST
Patent Text Reader

Abstract

This application provides a charging and discharging control method, device, and vehicle, relating to the field of electric vehicle technology. The method includes: acquiring a first electrical signal from a charging interface and a second electrical signal from a discharging interface; identifying the signal type of the first electrical signal and the signal type of the second electrical signal; determining that the first vehicle is in charging mode if the first electrical signal is valid and the second electrical signal is invalid; and determining that the first vehicle is in discharging mode if the first electrical signal is invalid and the second electrical signal is valid. This method achieves automatic identification of the charging and discharging mode of the first vehicle without complex judgment logic. Based on the current charging and discharging mode, it receives electrical energy signals provided by the charging equipment or discharges to the second vehicle, improving user experience and system reliability. It solves the problems of cumbersome operation, slow response, and potential electrical safety hazards caused by mode misjudgment in existing solutions that involve manual switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electric vehicle technology, and more specifically, to charging and discharging control methods, devices, and vehicles. Background Technology

[0002] With the development of technology, electric vehicles have become a mainstream means of transportation. Electric vehicles typically integrate their own high-voltage power battery pack and battery management system, which can power themselves and can be charged by external battery packs.

[0003] Currently, existing electric vehicles are equipped with charging and discharging interfaces, and rely on external hardware to manually switch the interface or to issue control commands from a host computer to determine the current charging and discharging mode of the interface, and allocate the correct CP (Control Pilot) signal path accordingly to charge and discharge through the interface.

[0004] However, the above methods for determining the charging and discharging modes all have certain shortcomings. Therefore, how to automatically identify the current charging and discharging mode of an electric vehicle has become an urgent problem to be solved. Summary of the Invention

[0005] The purpose of this application is to address the shortcomings of the prior art by providing a charging and discharging control method, device, and vehicle to enable automatic identification of the current charging and discharging mode of an electric vehicle.

[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows: In a first aspect, embodiments of this application provide a charging and discharging control method applied to a first vehicle, the first vehicle being provided with a charging interface and a discharging interface, the method comprising: Collect the first electrical signal from the charging interface and the second electrical signal from the discharging interface; Based on the first electrical signal and the second electrical signal, determine the current charging and discharging mode of the first vehicle; According to the current charging and discharging mode, receive the power signal provided by the charging device or discharge to the second vehicle; The step of determining the current charging / discharging mode of the first vehicle based on the first electrical signal and the second electrical signal includes: Identify the signal type of the first electrical signal and the signal type of the second electrical signal, wherein the signal type includes: valid or invalid; If the first electrical signal is valid and the second electrical signal is invalid, then the first vehicle is determined to be in charging mode. If the first electrical signal is invalid and the second electrical signal is valid, then the first vehicle is determined to be in discharge mode.

[0007] Optionally, identifying the signal type of the first electrical signal and the signal type of the second electrical signal includes: If the current resistance value on the charging interface is detected to be equal to the preset first characteristic resistance value, or the current voltage value on the charging interface is equal to the preset first characteristic voltage value, then the first electrical signal is determined to be valid. If the current resistance value on the discharge interface is equal to the preset second characteristic resistance value, or the current voltage value on the discharge interface is equal to the preset second characteristic voltage value, then the second electrical signal is determined to be valid.

[0008] Optionally, the receiving of the power signal provided by the charging device includes: The charging interface receives a signal to be charged under a first communication protocol provided by the charging device, converts the signal to be charged into a target charging signal under a second communication protocol, and transmits the target charging signal to the power battery pack in the first vehicle.

[0009] Optionally, discharging the power to the second vehicle includes: The system obtains the discharge signal under the second communication protocol from the VCU in the first vehicle, converts the discharge signal into a target discharge signal under the first communication protocol, and transmits the target discharge signal to the second vehicle through the discharge interface.

[0010] Optionally, the method further includes: If both the first electrical signal and the second electrical signal are invalid within a preset time period, then the first vehicle is determined to be in idle mode. If both the first electrical signal and the second electrical signal are valid, then the first vehicle is determined to be in interlock mode.

[0011] Optionally, the method further includes: If the first vehicle is in the idle mode, the CP_OUT switch on the first vehicle is kept off.

[0012] Optionally, the method further includes: If the first vehicle is in interlock mode, the current charging / discharging mode is determined based on the remaining battery power of the first vehicle, and the first vehicle is controlled to perform charging / discharging operations based on the current charging / discharging mode.

[0013] Optionally, the method further includes: During charging, the first electrical signal of the charging interface is detected in real time. If the first electrical signal is invalid, the CP_OUT switch is controlled to open. And / or, during discharging, the second electrical signal of the discharging interface is detected in real time. If the second electrical signal is invalid, the CP_OUT switch is controlled to open.

[0014] Secondly, embodiments of this application also provide a charging and discharging control device, which is integrated into a first vehicle and includes: The signal acquisition module is used to acquire the first electrical signal on the charging interface and the second electrical signal on the discharging interface; The pattern recognition module is used to determine the current charging and discharging mode of the first vehicle based on the first electrical signal and the second electrical signal. The charging and discharging control module is used to receive the electrical energy signal provided by the charging device or to discharge to the second vehicle according to the current charging and discharging mode. The step of determining the current charging / discharging mode of the first vehicle based on the first electrical signal and the second electrical signal includes: Identify the signal type of the first electrical signal and the signal type of the second electrical signal, wherein the signal type includes: valid or invalid; If the first electrical signal is valid and the second electrical signal is invalid, then the first vehicle is determined to be in charging mode. If the first electrical signal is invalid and the second electrical signal is valid, then the first vehicle is determined to be in discharge mode.

[0015] Thirdly, embodiments of this application also provide a vehicle, which is provided with a charging interface and a discharging interface, and the vehicle performs the charging and discharging control method as described above.

[0016] The beneficial effects of this application are: This application provides a charging and discharging control method, device, and vehicle. By real-time acquisition of a first electrical signal on the charging interface and a second electrical signal on the discharging interface, and determining the signal types of the first and second electrical signals respectively, if the first electrical signal is detected as valid and the second electrical signal as invalid, it is determined that the first vehicle is currently in charging mode; if the first electrical signal is detected as invalid and the second electrical signal as valid, it is determined that the first vehicle is currently in discharging mode. This achieves accurate identification of the charging and discharging mode of the first vehicle without the need for complex determination logic, thus enabling automatic identification of the charging and discharging mode of the first vehicle. Based on the identified current charging and discharging mode, it receives electrical energy signals provided by the charging equipment or discharges to the second vehicle, that is, it configures the CP signal path based on the current charging and discharging mode to achieve charging and discharging control of the first vehicle. This improves user experience and system reliability, and solves the problems of cumbersome operation, slow response, and electrical safety hazards caused by mode misjudgment in existing solutions that require manual switching. Attached Figure Description

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

[0018] Figure 1 This is a schematic diagram of the structure of a charge / discharge mode control device provided in an embodiment of this application; Figure 2 A schematic flowchart illustrating a charging / discharging mode control method provided in an embodiment of this application; Figure 3 A schematic flowchart illustrating another charging / discharging mode control method provided in an embodiment of this application; Figure 4 A flowchart illustrating another charging / discharging mode control method provided in an embodiment of this application; Figure 5 Provided for the embodiments of this application Figure 1 A schematic diagram of the pin wiring of each module in the charging and discharging control device; Figure 6 Provided for the embodiments of this application Figure 1 A schematic diagram of the wiring connections between the modules in the charging and discharging control device; Figure 7 This is a structural schematic diagram of a vehicle provided in an embodiment of this application. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this application, but not all embodiments.

[0020] The structure of the charge / discharge control device provided in this application will be described through the following embodiments.

[0021] Optionally, refer to Figure 1 The diagram shown is a structural schematic of a charge / discharge control device provided in this application. Figure 1 As shown, the charging and discharging control device 100 is integrated into the first vehicle, which is a towed electric caravan.

[0022] The charge / discharge control device 100 includes a signal acquisition module 1, a pattern recognition module 2, and a charge / discharge control module 3, wherein the signal acquisition module 1, the pattern recognition module 2, and the charge / discharge control module 3 are connected in sequence for communication.

[0023] The first vehicle is also equipped with a charging port and a discharging port. A charging gun can be plugged into the charging port, and the charging terminals of other vehicles (such as the towing vehicle of a motorhome) or external high-voltage power supply equipment can be connected to the discharging port.

[0024] Therefore, the power battery pack on the first vehicle can be charged by connecting to a charging pile or an external power source through the charging interface on the first vehicle; external electrical equipment or a vehicle being discharged (such as a US standard tractor) can be connected to the discharging interface on the first vehicle to provide external power.

[0025] Signal acquisition module 1 is used to acquire the first electrical signal on the charging interface and the second electrical signal on the discharging interface; The pattern recognition module 2 is used to determine the current charging and discharging mode of the first vehicle based on the first electrical signal and the second electrical signal. The charging and discharging control module 3 is used to receive the electrical energy signal provided by the charging device or to discharge to the second vehicle according to the current charging and discharging mode. Therefore, in this embodiment, the signal acquisition module 1 can acquire the first electrical signal on the charging interface and the second electrical signal on the discharging interface in real time (or periodically); and the pattern recognition module 2 can analyze and process the first and second electrical signals to determine whether the current charging and discharging mode of the first vehicle is charging mode or discharging mode, thus achieving accurate identification of the charging and discharging mode of the first vehicle; the charging and discharging control module 3 can receive the power signal provided by the charging pile or discharge to the second vehicle according to the current charging and discharging mode, thereby switching the charging and discharging mode of the first vehicle. That is, based on the identified current charging and discharging mode, the CP signal path and controller role are configured to achieve charging and discharging control of the first vehicle, which improves the user experience and system reliability, and solves the problems of cumbersome operation, slow response, and electrical safety hazards caused by mode misjudgment in the existing solution.

[0026] The process of determining the current charging / discharging mode of the first vehicle based on the first and second electrical signals includes: Identify the signal type of the first electrical signal and the signal type of the second electrical signal, wherein the signal type includes: valid or invalid; If the first electrical signal is valid and the second electrical signal is invalid, then the first vehicle is determined to be in charging mode. If the first electrical signal is invalid and the second electrical signal is valid, then the first vehicle is determined to be in discharge mode.

[0027] In this embodiment, the charging and discharging control module determines the signal types of the first electrical signal and the second electrical signal respectively. If the first electrical signal is detected as valid and the second electrical signal is invalid, it is determined that the first vehicle is currently in charging mode; if the first electrical signal is detected as invalid and the second electrical signal is valid, it is determined that the first vehicle is currently in discharging mode, thus achieving accurate identification of the charging and discharging mode of the first vehicle.

[0028] Therefore, this application provides a charging and discharging control device that integrates a signal acquisition module, a pattern recognition module, and a charging and discharging control module. The integrated Supply Equipment Vehicle Communication Controller (SEVCC) (i.e., the charging and discharging control module of this application) simultaneously integrates the functions of the Electric Vehicle Communication Controller (EVCC) and the Supply Equipment Communication Controller (SECC), thereby reducing the hardware cost and control complexity of the vehicle charging and discharging system and reducing communication delays and failure points between controllers.

[0029] It should be noted that SECC is generally located at the charging pile end, while EVCC is located at the vehicle end. This application provides a method to integrate SEVCC at the first vehicle end to control the vehicle end to switch between charging and discharging modes.

[0030] In one specific embodiment, the first vehicle is an electric trailer caravan. The caravan is equipped with a Vehicle Control Unit (VCU) which controls the entire caravan. The SEVCC communicates with the VCU and is independent of the VCU and other controllers. It can control the caravan to switch between charging mode and discharging mode based on the first electrical signal on the charging interface and the second electrical signal on the discharging interface.

[0031] Optionally, refer to Figure 2 As shown, this application provides a charging and discharging control method applied to a first vehicle. The first vehicle is equipped with a charging interface and a discharging interface. The method includes: S101, Collect the first electrical signal on the charging interface and the second electrical signal on the discharging interface.

[0032] S102. Determine the current charging and discharging mode of the first vehicle based on the first electrical signal and the second electrical signal.

[0033] S103. Depending on the current charging / discharging mode, receive the power signal provided by the charging equipment or discharge to the second vehicle.

[0034] In this embodiment, the first electrical signal on the charging interface and the second electrical signal on the discharging interface can be collected in real time; and the first and second electrical signals can be logically determined to identify whether the current charging and discharging mode of the first vehicle is charging mode or discharging mode, thus realizing automatic identification of the charging and discharging mode of the first vehicle; and based on the current charging and discharging mode, the correct CP signal path is allocated to receive the power signal provided by the charging pile or to discharge to the second vehicle, thereby realizing automatic switching of the charging and discharging mode of the first vehicle.

[0035] Among them, continue to refer to Figure 3 As shown, step S103 above determines the current charging / discharging mode of the first vehicle based on the first electrical signal and the second electrical signal, including: S201. Identify the signal type of the first electrical signal and the signal type of the second electrical signal.

[0036] The signal types include: valid or invalid.

[0037] S202. If the first electrical signal is valid and the second electrical signal is invalid, then it is determined that the first vehicle is in charging mode.

[0038] S203. If the first electrical signal is invalid and the second electrical signal is valid, then the first vehicle is determined to be in discharge mode.

[0039] In this embodiment, the signal type of the first electrical signal is further determined. For example, the first electrical signal is compared with a preset first threshold. If the first electrical signal is not equal to the first threshold, the first electrical signal is determined to be invalid; if the first electrical signal is equal to the first threshold, the first electrical signal is determined to be valid. Similarly, the signal type of the second electrical signal can also be identified.

[0040] If the first electrical signal is detected as valid and the second electrical signal as invalid, the first vehicle is determined to be in charging mode; if the first electrical signal is detected as invalid and the second electrical signal as valid, the first vehicle is determined to be in discharging mode. This achieves accurate identification of the charging and discharging modes of the first vehicle without the need for complex judgment logic. It solves the problems of cumbersome operation, slow response, and electrical safety hazards caused by mode misjudgment in existing solutions that require manual switching.

[0041] In summary, this application provides a charging and discharging control method. By real-time acquisition of a first electrical signal on the charging interface and a second electrical signal on the discharging interface, and by determining the signal types of the first and second electrical signals respectively, if the first electrical signal is detected as valid and the second electrical signal as invalid, the first vehicle is determined to be in charging mode; if the first electrical signal is detected as invalid and the second electrical signal as valid, the first vehicle is determined to be in discharging mode. This method achieves accurate identification of the charging and discharging modes of the first vehicle without the need for complex determination logic, thus solving the problems of cumbersome operation, slow response, and electrical safety hazards caused by mode misjudgment in existing solutions.

[0042] Optionally, refer to Figure 4 As shown, step S201 above includes: S301. If the current resistance value on the charging interface is detected to be equal to the preset first characteristic resistance value, or the current voltage value on the charging interface is equal to the preset first characteristic voltage value, then the first electrical signal is determined to be valid.

[0043] For example, the first characteristic resistance value is 1.3kΩ.

[0044] In one feasible approach, refer to Figure 5 As shown, Figure 1 A schematic diagram of the pin connections for each module in the charging and discharging control device. The PP terminal on the charging interface is connected to the first voltage divider circuit. Figure 5 The first voltage divider circuit (not shown) is connected to the PP detection pin of the BMS on the first vehicle. For example, a 1.3kΩ resistor is connected in series to pull up to the reference voltage, and the pull-down resistor is the detection resistor inside the charging gun. When the external charging gun is plugged into the charging interface, if the charging and discharging control module SEVCC detects that the current resistance value on the charging interface is equal to 1.3kΩ, or the current voltage value on the charging interface is equal to the preset first characteristic voltage value, then the charging gun connection is confirmed, and the first electrical signal is determined to be valid.

[0045] S302. If the current resistance value on the discharge interface is equal to the preset second characteristic resistance value, or the current voltage value on the discharge interface is equal to the preset second characteristic voltage value, then the second electrical signal is determined to be valid.

[0046] For example, the second characteristic voltage value is 2.74kΩ.

[0047] In another possible approach, refer to Figure 5As shown, the PP terminal on the discharge interface is directly connected to the PP_Detect pin of the SEVCC. The American standard tractor contains a 2.74kΩ pull-down resistor. When the charging terminal of the American standard tractor is connected to the discharge interface, the charge / discharge control module SEVCC forms a voltage divider with the 2.74kΩ resistor through its internal pull-up resistor. If the current resistance value on the discharge interface is detected to be equal to 2.74kΩ, the second electrical signal is determined to be valid.

[0048] Among them, continue to refer to Figure 5 As shown, the CP terminal on the charging interface and the CP terminal on the discharging interface are respectively connected to the CP1_IN and CP2_IN pins of the SEVCC charge / discharge control module via independent physical lines (e.g., ...). Figure 5 (Only the CP_IN pin is shown in the image). The SEVCC charge / discharge control module integrates two CP signal receiving channels and one CP signal transmitting driver.

[0049] therefore, Figure 5 The SEVCC charging and discharging control module shown receives two CP signals simultaneously. One signal comes from the CP terminal of the charging interface, and the other comes from the CP terminal of the discharging interface. The two CP signals are respectively connected to two CP input channels inside the SEVCC.

[0050] refer to Figure 6 As shown, Figure 1 The wiring diagram of each module in the charging and discharging control device shows that the CP_OUT switch is a single-pole double-throw analog switch. The common terminal of the CP_OUT switch is connected to the CP main circuit inside the vehicle. This main circuit is connected to the CP detection of the BMS on the first vehicle and the bidirectional port of the CP transceiver inside the SEVCC.

[0051] Therefore, through the above Figure 5 and Figure 6 The hardware circuit diagram shown demonstrates that the SEVCC charge / discharge control module can automatically determine whether to activate the charging or discharging path using pure hardware detection (PP resistor identification), and can complete the correct routing of the CP signal without manual intervention, thereby improving user experience and system reliability.

[0052] Optionally, receiving a power signal provided by a charging device includes: The system receives a signal to be charged under a first communication protocol provided by the charging device through the charging interface, converts the signal to be charged into a target charging signal under a second communication protocol, and transmits the target charging signal to the power battery pack in the first vehicle.

[0053] For example, the first communication protocol is the American standard SAE J1772 protocol, and the second communication protocol is the Chinese standard GB / T 27930 protocol.

[0054] In one feasible approach, when the first vehicle is detected to be in charging mode, the EVCC protocol stack is activated, and the vehicle waits for the CP charging signal (PWM duty cycle or digital communication) sent by the US standard charging pile to establish charging communication. After confirming that charging communication has been established, the vehicle can receive the charging signal under the US standard SAE J1772 protocol provided by the US standard charging pile through the charging interface on the first vehicle, convert the charging signal into the target charging signal under the national standard GB / T 27930 protocol, and transmit the target charging signal to the power battery pack in the first vehicle to complete the charging operation of the first vehicle.

[0055] Optionally, discharging electricity to the second vehicle includes: The system obtains the discharge signal under the second communication protocol from the VCU in the first vehicle, converts the discharge signal into a target discharge signal under the first communication protocol, and transmits the target discharge signal to the second vehicle through the discharge interface.

[0056] In one feasible approach, when the first vehicle is detected to be in discharge mode, the SECC protocol stack is activated, and a CP discharge signal (PWM or digital communication) is actively sent through the CP line on the discharge interface to establish discharge communication with the American standard tractor or external load. After confirming that the discharge communication has been established, the discharge signal under the GB / T27930 protocol is obtained from the VCU in the first vehicle, and the discharge signal is converted into a target discharge signal under the American standard SAE J1772 protocol. The target discharge signal is then transmitted to the American standard tractor through the discharge interface to achieve discharge control of the first vehicle.

[0057] Optionally, the method further includes: If both the first electrical signal and the second electrical signal are invalid within a preset time period, then the first vehicle is determined to be in idle mode. If both the first electrical signal and the second electrical signal are valid, then the first vehicle is determined to be in interlock mode.

[0058] In one feasible approach, if it is detected that both the first and second electrical signals are invalid within a preset time period, i.e., the flag bits of both the first and second electrical signals are 0, it can be determined that the first vehicle is in idle mode, that is, the first vehicle has not performed any charging or discharging operation within the preset time period.

[0059] In another possible implementation, if it is detected that both the first and second electrical signals are valid within a preset time period, that is, the flag bits of both the first and second electrical signals are 1, it can be determined that the first vehicle is in interlock mode. That is, while the charging gun is plugged into the charging interface on the first vehicle, the charging end of the tractor is connected to the discharging interface on the first vehicle. At this time, it can be configured as a discharge priority (i.e., prioritize meeting the external discharge demand) or a charging priority strategy. In this embodiment, the default is discharge priority. At the same time, the user is informed through the in-vehicle prompt that one of them needs to be unplugged.

[0060] Optionally, the method further includes: If the first vehicle is in idle mode, the CP_OUT switch on the first vehicle is kept off.

[0061] In one feasible approach, refer to Figure 6 As shown, if the first vehicle is detected to be in idle mode, the CP_OUT switch on the first vehicle is kept open or floating, that is, the CP_OUT switch is set to a high impedance state or neutral position to disable the CP signal output.

[0062] Optionally, if the first vehicle is detected to be in idle mode, the port status of the charging interface (and discharging interface) on the first vehicle is periodically and actively polled, or the port status of the charging interface (and discharging interface) is passively checked (e.g., by being woken up by the vehicle, BMS, etc.).

[0063] Optionally, the method further includes: If the first vehicle is in interlock mode, the current charging / discharging mode is determined based on the remaining battery power of the first vehicle, and the first vehicle is controlled to perform charging / discharging operations based on the current charging / discharging mode.

[0064] In one feasible approach, if the first vehicle is detected to be in interlock mode and its remaining battery power is 70%, it is determined that the first vehicle has a relatively high remaining battery power, and a portion of the battery power can be supplied to the tractor. This indicates that the first vehicle is in discharge mode, and the first vehicle is controlled to perform a discharge operation. Alternatively, if the first vehicle is detected to be in interlock mode and its remaining battery power is 20%, it is determined that the first vehicle has insufficient remaining battery power and needs to be charged as soon as possible to ensure its normal operation. This indicates that the first vehicle is in charging mode, and the first vehicle is controlled to perform a charging operation, thus achieving charging control of the first vehicle.

[0065] Optionally, the method further includes: During charging, the first electrical signal of the charging interface is detected in real time. If the first electrical signal is invalid, the CP_OUT switch is controlled to open. And / or, during discharging, the second electrical signal of the discharging interface is detected in real time. If the second electrical signal is invalid, the CP_OUT switch is controlled to open.

[0066] In one feasible approach, during charging, the SEVCC continuously monitors the first electrical signal of the charging interface. If the first electrical signal is detected to be invalid, i.e., the first electrical signal disappears (e.g., voltage jump), the CP_OUT switch is controlled to open. And / or, during discharging, the SEVCC continuously monitors the second electrical signal of the discharging interface. If the second electrical signal is detected to be invalid, i.e., the second electrical signal disappears (e.g., voltage jump), the CP_OUT switch is controlled to open, so as to immediately terminate the charging and discharging process and restore the system to idle mode.

[0067] Optionally, Table 1 below shows the determination logic for charge / discharge identification provided in this application, as detailed below: Table 1. Logic for Charge / Discharge Identification

[0068] Therefore, in this application, the current charging and discharging mode of the first vehicle is automatically identified based on the signal type of the first electrical signal and the signal type of the second electrical signal. Without manual operation or external commands, it can automatically distinguish whether the vehicle is currently connected to a charging gun or a tractor. Based on the current charging and discharging mode, it controls the CP_OUT switch to configure the corresponding CP signal path and controller role, thereby improving the user experience and system reliability.

[0069] Meanwhile, by automatically switching the internal or external CP_OUT switch of the SEVCC charging and discharging control module, it is ensured that the CP signal comes from / goes to the charging interface in charging mode and comes from / goes to the discharging interface in discharging mode. This avoids signal conflicts and communication chaos caused by the simultaneous activation of two CP signals and ensures the reliability of CP signal routing.

[0070] Optionally, the charging and discharging control method and device provided in this application can realize bidirectional energy interaction, that is, support V2V (vehicle-to-vehicle) and V2G (vehicle-to-grid) scenarios. When the first vehicle is used as a discharge power source, the charging and discharging control module SEVCC automatically switches to the SECC role, actively sends CP signals and ISO 15118 communication management, and interacts with the EVCC of the second vehicle or the load end; and when the first vehicle is detected to be in an idle state, the CP_OUT switch is controlled to be in the open state, the CP main circuit is isolated from the outside, and the risk of abnormal discharge or short circuit caused by accidental contact or wiring harness failure is avoided.

[0071] Optionally, refer to Figure 7As shown, this application provides a vehicle equipped with a charging interface and a discharging interface. The vehicle executes the charging and discharging control method provided in the above embodiments. The vehicle integrates EVCC and SECC functions, reducing the hardware cost and control complexity of the vehicle's charging and discharging system. At the same time, it can automatically distinguish whether the currently connected device is a charging gun or a second vehicle, and configure the CP signal path and controller role accordingly, reducing communication delays and fault points between controllers, improving user experience and system reliability, and solving problems such as separate charging and discharging controllers, reliance on manual switching for mode recognition, and inflexible CP signal path configuration in the prior art.

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

Claims

1. A charging and discharging control method, characterized in that, Applied to a first vehicle, the first vehicle being provided with a charging interface and a discharging interface, the method includes: Collect the first electrical signal from the charging interface and the second electrical signal from the discharging interface; Based on the first electrical signal and the second electrical signal, determine the current charging and discharging mode of the first vehicle; According to the current charging and discharging mode, receive the power signal provided by the charging device or discharge to the second vehicle; The step of determining the current charging / discharging mode of the first vehicle based on the first electrical signal and the second electrical signal includes: Identify the signal type of the first electrical signal and the signal type of the second electrical signal, wherein the signal type includes: valid or invalid; If the first electrical signal is valid and the second electrical signal is invalid, then the first vehicle is determined to be in charging mode. If the first electrical signal is invalid and the second electrical signal is valid, then the first vehicle is determined to be in discharge mode.

2. The method according to claim 1, characterized in that, The step of identifying the signal type of the first electrical signal and identifying the signal type of the second electrical signal includes: If the current resistance value on the charging interface is detected to be equal to the preset first characteristic resistance value, or the current voltage value on the charging interface is equal to the preset first characteristic voltage value, then the first electrical signal is determined to be valid. If the current resistance value on the discharge interface is equal to the preset second characteristic resistance value, or the current voltage value on the discharge interface is equal to the preset second characteristic voltage value, then the second electrical signal is determined to be valid.

3. The method according to claim 1, characterized in that, The receiving of the electrical energy signal provided by the charging device includes: The charging interface receives a signal to be charged under a first communication protocol provided by the charging device, converts the signal to be charged into a target charging signal under a second communication protocol, and transmits the target charging signal to the power battery pack in the first vehicle.

4. The method according to claim 1, characterized in that, The discharge to the second vehicle includes: The system obtains the discharge signal under the second communication protocol from the VCU in the first vehicle, converts the discharge signal into a target discharge signal under the first communication protocol, and transmits the target discharge signal to the second vehicle through the discharge interface.

5. The method according to claim 1, characterized in that, The method further includes: If both the first electrical signal and the second electrical signal are invalid within a preset time period, then the first vehicle is determined to be in idle mode. If both the first electrical signal and the second electrical signal are valid, then the first vehicle is determined to be in interlock mode.

6. The method according to claim 5, characterized in that, The method further includes: If the first vehicle is in the idle mode, the CP_OUT switch on the first vehicle is kept off.

7. The method according to claim 5, characterized in that, The method further includes: If the first vehicle is in interlock mode, the current charging / discharging mode is determined based on the remaining battery power of the first vehicle, and the first vehicle is controlled to perform charging / discharging operations based on the current charging / discharging mode.

8. The method according to claim 1, characterized in that, The method further includes: During charging, the first electrical signal of the charging interface is monitored in real time. If the first electrical signal is invalid, the CP_OUT switch is controlled to open; and / or, During the discharge process, the second electrical signal of the discharge interface is detected in real time. If the second electrical signal is invalid, the CP_OUT switch is controlled to open.

9. A charging and discharging control device, characterized in that, The charging and discharging control device is integrated into the first vehicle and includes: The signal acquisition module is used to acquire the first electrical signal from the charging interface and the second electrical signal from the discharging interface; The pattern recognition module is used to determine the current charging and discharging mode of the first vehicle based on the first electrical signal and the second electrical signal. The charging and discharging control module is used to receive the electrical energy signal provided by the charging device or to discharge to the second vehicle according to the current charging and discharging mode. The step of determining the current charging / discharging mode of the first vehicle based on the first electrical signal and the second electrical signal includes: Identify the signal type of the first electrical signal and the signal type of the second electrical signal, wherein the signal type includes: valid or invalid; If the first electrical signal is valid and the second electrical signal is invalid, then the first vehicle is determined to be in charging mode. If the first electrical signal is invalid and the second electrical signal is valid, then the first vehicle is determined to be in discharge mode.

10. A vehicle, characterized in that, The vehicle is equipped with a charging interface and a discharging interface, and the vehicle performs the charging and discharging control method as described in any one of claims 1 to 8.