Control method of battery in vehicle, vehicle and storage medium
By establishing a wireless communication connection between the vehicle and the target charging pile and utilizing the communication address verification and pairing mechanism, the problem of low control accuracy of the AC V2G charging pile is solved, bidirectional power transmission and grid dispatch response are achieved, and the accuracy of battery control and energy utilization efficiency are improved.
Patent Information
- Application Number
- CN202511091961.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-05
- Publication Date
- 2025-09-19
AI Technical Summary
AC V2G charging piles are unable to implement advanced functions such as bidirectional power transmission control, grid dispatch response and information interaction in terms of communication control, resulting in low battery control accuracy in vehicles.
By establishing a wireless communication connection between the vehicle and the target charging pile, and utilizing the communication address verification and pairing mechanism, the vehicle status and charging demand information can be transmitted, and the power grid dispatching platform generates a control strategy to control the battery to enter charging or discharging mode.
It realizes two-way power transmission, grid dispatch response and information interaction between vehicles and charging piles, improves the accuracy of battery control and energy utilization efficiency, and ensures the safety and economy of the charging process.
Smart Images

Figure CN120663797A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of interaction between vehicles and power grids, and in particular, to a method for controlling a battery in a vehicle, a vehicle, and a storage medium. Background Art
[0002] Currently, charging stations primarily include AC vehicle-to-grid (V2G) and DC V2G charging stations, capable of basic vehicle charging. However, AC V2G charging stations primarily utilize bidirectional on-board chargers (OBCs) to convert DC power to AC power for loads, enabling vehicle-to-grid connection. Compared to DC V2G, AC V2G offers advantages such as lower equipment cost, better compatibility, and easier installation, making it more suitable for home and small commercial applications. However, AC V2G still faces numerous challenges in communication control.
[0003] In related technologies, AC V2G's AC interface uses only pulse width modulation (PWM) signals for communication. This allows only simple charging functionality and lacks advanced features such as bidirectional power transmission control, grid dispatch response, and information exchange. This hardware interface issue severely limits the advantages of AC V2G technology and its widespread adoption. Consequently, the technical issue of low battery control accuracy in vehicles persists.
[0004] There is currently no good solution to the above problems. Summary of the Invention
[0005] Embodiments of the present application provide a method for controlling a battery in a vehicle, a vehicle, and a storage medium to at least solve the technical problem of low accuracy in controlling the battery in the vehicle.
[0006] According to one aspect of an embodiment of the present application, a method for controlling a battery in a vehicle is provided, wherein the method is applied to a vehicle, and the method may include: in response to a successful physical connection between the vehicle and a target charging pile, receiving communication address information from the target charging pile, wherein the communication address information includes a first wireless communication address and address verification information of the target charging pile, and the target charging pile is connected to a power grid dispatching platform; using the address verification information, verifying the first wireless communication address to obtain a verification result; in response to the verification result indicating that the verification of the first wireless communication address is successful, establishing a wireless communication connection between the vehicle and the target charging pile based on the first wireless communication address; using the wireless communication connection, sending first status information of the vehicle and charging demand information of the vehicle to the target charging pile, wherein the first status information is used to indicate the operating status of the battery in the vehicle, and the power grid dispatching platform is used to determine a control strategy based on the first status information, the charging demand information and the second status information of the power grid dispatching platform, and sending the control strategy to the target charging pile, and the second status information is used to indicate the operating status of the power grid dispatching platform; receiving the control strategy from the target charging pile, and controlling the battery to enter a charging mode or a discharging mode according to the control strategy.
[0007] Furthermore, in response to the verification result indicating that the verification of the first wireless communication address is successful, a wireless communication connection is established between the vehicle and the target charging pile based on the first wireless communication address, including: in response to the verification result indicating that the verification of the first wireless communication address is successful, sending the second wireless communication address of the vehicle to the target charging pile; in response to the target charging pile successfully verifying the received second wireless communication address, receiving the first wireless communication address from the target charging pile, and verifying the first wireless communication address to obtain a first verification result; in response to the first verification result being used to indicate that the security level of the wireless communication connection to be established is higher than the security level threshold, pairing the first wireless communication address with the second wireless communication address to obtain a pairing result; based on the pairing result, establishing a wireless communication connection between the vehicle and the target charging pile.
[0008] Furthermore, based on the pairing result, a wireless communication connection is established between the vehicle and the target charging pile, including: in response to the pairing result being that the first wireless communication address and the second wireless communication address are successfully paired, obtaining first verification information of the first wireless communication address, and using the first verification information to verify the pairing process of the first wireless communication address and the second wireless communication address to obtain a second verification result, wherein the first verification information is used to indicate the security level of the pairing of the second wireless communication address and the first wireless communication address; in response to the second verification result being that the first verification information meets the security level threshold, establishing a wireless communication connection between the vehicle and the target charging pile; the method may also include at least one of the following: in response to the pairing result being that the first wireless communication address and the second wireless communication address are successfully paired, and within the target time period, a wireless communication connection is not successfully established between the vehicle and the target charging pile, clearing the received first wireless communication address, wherein the target charging pile is used to clear the received second wireless communication address; in response to the pairing result being that the first wireless communication address and the second wireless communication address are successfully paired, and the format of the received first wireless communication address is abnormal, and / or the format of the second wireless communication address received by the target charging pile is abnormal, canceling the pairing between the first wireless communication address and the second wireless communication address.
[0009] Furthermore, the first wireless communication address is verified to obtain a first verification result, including: obtaining second verification information of the first wireless communication address, wherein the second verification information is used to indicate the moment when the target charging pile sends the first wireless communication address to the vehicle; in response to the second verification information being less than or equal to a preset moment threshold, determining that the first verification result is used to indicate that the security level of the wireless communication connection to be established is higher than the security level threshold; the address verification information is used to indicate the integrity of the first wireless communication address, and the first wireless communication address is verified using the address verification information to obtain a verification result, including: determining an address verification value corresponding to the address verification information; in response to the address verification information being the same as the address verification value, determining that the verification result indicates that the verification of the first wireless communication address is successful.
[0010] Furthermore, in response to a successful physical connection between the vehicle and the target charging pile, communication address information is received from the target charging pile, including: in response to a successful physical connection between the vehicle and the target charging pile, a target transmission frame is received from the target charging pile, wherein the target charging pile is used to split the first wireless communication address, and based on the split first wireless communication address, adjust the frequency of the pulse width modulation signal of the target charging pile to obtain the target transmission frame; and parse the target transmission frame to obtain the first wireless communication address and address verification information.
[0011] Furthermore, the first status information of the vehicle and the charging demand information of the vehicle are sent to the target charging pile by utilizing the wireless communication connection, including: utilizing the wireless communication connection to control the first wireless communication module of the vehicle to send the first status information and the charging demand information to the second wireless communication module of the target charging pile, wherein the target charging pile is used to send the first status information and the charging demand information to the power grid dispatching platform; the method may also include: controlling the first wireless communication module to receive the control strategy from the second wireless communication module, wherein the control strategy is determined based on the battery control mode, the first status information and the attribute information of the target charging pile, and the control mode is determined based on the second status information and the charging demand information.
[0012] Furthermore, the second state information includes power load information and power price information, the charging demand information includes power price demand information and load demand information, the attribute information includes at least current attributes, the first state information includes at least current state information, the control strategy includes charging control strategy and discharging control strategy, and according to the control strategy, the battery is controlled to enter charging mode or discharging mode, including: in response to the first wireless communication module receiving the discharge control strategy, the battery is controlled to enter the discharge mode, wherein, in the discharge mode, the power load information is greater than or equal to the power load threshold, and the load demand information is to allow the triggering control battery to perform the discharge operation, the power grid dispatching platform is used to determine the discharge control strategy based on at least the discharge current, and the discharge current is the current state information and the power load threshold. The minimum value of the two flow attributes, the discharge control strategy is used to represent the rules for controlling the battery to perform a discharge operation on the target charging pile; in response to the first wireless communication module receiving the charging control strategy, the battery is controlled to enter the charging mode, wherein, in the charging mode, the power load information is less than the power load threshold, and the electricity price information meets the electricity price demand information, the power grid dispatching platform is used to determine the charging control strategy based on at least the charging current, the charging current is the minimum value of the current state information and the current attribute, the charging control strategy is used to represent the rules for performing a charging operation on the battery using the target charging pile; the method may also include: in response to the battery being in the discharge mode, controlling the battery to perform a discharge operation; in response to the battery being in the charging mode, performing a charging operation on the battery.
[0013] Furthermore, the method may also include: in the process of controlling the battery to enter a charging mode or a discharging mode, in response to detecting an abnormal operating state of the battery, determining the abnormal type of the abnormal operating state; determining an abnormality handling strategy associated with the abnormal type, wherein the abnormality handling strategy is used to represent a rule for handling the abnormal operating state of the abnormal type; the abnormality handling strategy includes at least one of the following: in response to the abnormality type being a wireless communication interruption type, re-binding the vehicle and the target charging pile for wireless communication, wherein the target charging pile is used to maintain the charging operation through the pulse width modulation signal of the target charging pile; in response to the abnormality type being an overcurrent type or an overvoltage type, stopping controlling the battery to enter a charging mode or a discharging mode; in response to the abnormality type being a battery overheating type, performing a heat dissipation operation on the battery; in response to the temperature of the battery after performing the heat dissipation operation being less than a temperature threshold corresponding to the battery overheating type, controlling the battery to enter a charging mode or a discharging mode; in response to the abnormality type being a power grid failure type, stopping controlling the battery to enter a discharging mode.
[0014] According to another aspect of an embodiment of the present application, a control device for a battery in a vehicle is also provided, which may include: a receiving module for receiving communication address information from a target charging pile in response to a successful physical connection between the vehicle and the target charging pile, wherein the communication address information includes a first wireless communication address and address verification information of the target charging pile, and the target charging pile is connected to a power grid dispatching platform; a verification module for verifying the first wireless communication address using the address verification information to obtain a verification result; an establishment module for establishing a wireless communication connection between the vehicle and the target charging pile based on the first wireless communication address in response to the verification result indicating that the verification of the first wireless communication address is successful; a sending module for sending first status information of the vehicle and charging demand information of the vehicle to the target charging pile using the wireless communication connection, wherein the first status information is used to indicate the operating status of the battery in the vehicle, the power grid dispatching platform is used to determine a control strategy based on the first status information, the charging demand information and the second status information of the power grid dispatching platform, and send the control strategy to the target charging pile, and the second status information is used to indicate the operating status of the power grid dispatching platform; a control module for receiving the control strategy from the target charging pile, and controlling the battery to enter a charging mode or a discharging mode according to the control strategy.
[0015] According to another aspect of an embodiment of the present application, a vehicle is further provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the method of each embodiment of the present application is executed when the program is running.
[0016] According to another aspect of an embodiment of the present application, a computer-readable storage medium is also provided, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present application.
[0017] According to another aspect of the embodiments of the present application, a computer program product is further provided, including a computer program, which implements the methods in various embodiments of the present application when executed by a processor.
[0018] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method in each embodiment of the present application is implemented.
[0019] According to another aspect of the embodiments of the present application, a computer program is further provided, which implements the methods in various embodiments of the present application when executed by a processor.
[0020] In an embodiment of the present application, if the physical connection between the vehicle and the target charging pile is successful, the communication address information from the target charging pile can be received. The address verification information can be used to verify the first wireless communication address to obtain a verification result. If the verification result is that the verification of the first wireless communication address is successful, a wireless communication connection can be established between the vehicle and the target charging pile based on the first wireless communication address. The first state information and charging demand information of the vehicle are thereby sent to the target charging pile using the wireless communication connection. The above-mentioned first state information and charging demand information can be transmitted to the power grid dispatching platform through the target charging pile. The power grid dispatching platform can use the first state information, the charging demand information and the second state information of the power grid dispatching platform to generate a control strategy, and send the above-mentioned control strategy to the vehicle through the target charging pile. Thus, according to the control strategy, the battery in the vehicle can be controlled to enter charging mode or discharging mode.
[0021] In this embodiment, the address verification information is used to ensure the accuracy of the wireless communication address, so that a wireless communication connection is established between the vehicle and the target charging pile (vehicle pile) based on the successfully verified wireless communication address. The above-mentioned wireless communication connection allows for in-depth information interaction between the vehicle and the target charging pile. The power grid dispatching platform can determine a more accurate control strategy based on the comprehensive information obtained. The above-mentioned method realizes advanced functions such as two-way power transmission between the vehicle and the target charging pile, accurate power grid dispatching response, and timely information interaction. Thereby, the vehicle can fully respond to the power grid dispatch, optimize the energy utilization efficiency, and ensure the safety and economy of the battery charging process. In summary, by introducing wireless communication connection and in-depth information interaction mechanism, combined with the intelligent decision-making of the power grid dispatching platform, the technical problem of low battery control accuracy in the vehicle is effectively solved, and the technical effect of improving the battery control accuracy in the vehicle is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1 is a flow chart of a method for controlling a battery in a vehicle according to an embodiment of the present application;
[0024] Figure 2 This is a flowchart of a method for Bluetooth connection between a vehicle and a charging station according to an embodiment of the present application;
[0025] Figure 3 This is a flow chart of a method for charging and discharging a vehicle and a charging pile according to an embodiment of the present application;
[0026] Figure 4 This is a flow chart of a method for handling abnormal charging and discharging between a vehicle and a charging pile according to an embodiment of the present application;
[0027] Figure 5 2 is a schematic diagram of a battery control device in a vehicle according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] According to an embodiment of the present application, an embodiment of a method for testing data messages in an in-vehicle network system is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0031] In this embodiment, a method for controlling a battery in a vehicle is provided. Figure 1 is a flow chart of a method for controlling a battery in a vehicle according to an embodiment of the present application. Figure 1 As shown, it may include vehicle A, target charging pile B and power grid dispatching platform C. Figure 1 The method shown is applied to a vehicle and includes the following steps:
[0032] Step S102 : In response to a successful physical connection between the vehicle and the target charging pile, receiving communication address information from the target charging pile.
[0033] In the technical solution provided in step S102 above, if the physical connection between the vehicle and the target charging pile is successful, the vehicle can receive communication address information from the target charging pile. The communication address information includes the first wireless communication address and address verification information of the target charging pile, and the target charging pile is connected to the power grid dispatching platform.
[0034] In this embodiment, the vehicle can be a vehicle equipped with a battery management system (BMS) and other necessary communication hardware (such as a Bluetooth module), which can be used to achieve wireless communication with the target charging pile. The vehicle can also be called the on-board terminal. The target charging pile is responsible for physical connection and energy conversion, and has wireless communication capabilities (such as Bluetooth), and can send its own first wireless communication address and address verification information to the vehicle. The target charging pile in the embodiment of the present application is an AC V2G bidirectional charging pile. The target charging pile keeps in touch with the power grid dispatching platform, can receive the dispatching instructions of the power grid dispatching platform and forward them to the vehicle, and at the same time feed back the vehicle-related status information to the power grid dispatching platform. The target charging pile can also be called the pile end. The power grid dispatching platform can be responsible for analyzing the power grid status of the power grid system (such as load, electricity price, etc.) and formulating control strategies.
[0035] Optionally, the physical connection can be a successful connection between the vehicle and the target charging pile through the vehicle's charging gun, that is, the vehicle accesses the target charging pile to achieve a physical connection. The communication address information can be the necessary information sent to the vehicle when the vehicle and the target charging pile establish a wireless communication connection, and can include the first wireless communication address of the target charging pile, such as a Bluetooth Media Access Control (MAC) address, and can also include address verification information for verifying the accuracy of the above-mentioned first wireless communication address, such as a cyclic redundancy check (CRC) code. The first wireless communication address can be a wireless communication identifier of the target charging pile, which can be used to uniquely identify the target charging pile in the wireless communication protocol stack, so as to facilitate the establishment of a communication connection between the vehicle and the target charging pile. The address verification information can be used to ensure the accurate transmission of the first wireless communication address, so that the vehicle can verify the integrity and security of the first wireless communication address through the address verification information after receiving the communication address information. If the verification fails, it indicates that the communication address information may be damaged during the transmission process, and the vehicle will not establish a wireless communication connection with the target charging pile based on the erroneous first wireless communication address, thereby avoiding potential communication problems and safety hazards.
[0036] Optionally, if the vehicle's charging gun is inserted into the charging port of the target charging pile, forming a stable physical connection, the target charging pile can be triggered to send the communication address information to the vehicle.
[0037] Step S104: Use the address verification information to verify the first wireless communication address to obtain a verification result.
[0038] In the technical solution provided in step S104 above in the embodiment of the present application, after receiving the communication address information from the target charging station, the address verification information in the communication address information can be used to verify the first wireless communication address in the communication address information to obtain a verification result. The verification result can be used to indicate whether the vehicle successfully verified the first wireless communication address, that is, it can be used to determine whether the integrity and security of the first wireless communication address meet requirements.
[0039] In this embodiment, the vehicle verifies the address verification information in the received communication address information to determine whether the integrity and security of the first wireless communication address meet requirements. After receiving the communication address information, the vehicle can separate the address verification information from it and use the address verification information to verify the integrity of the first wireless communication address.
[0040] For example, if the address verification information is a CRC checksum, the vehicle can use the corresponding CRC algorithm to recalculate the first wireless communication address to obtain a corresponding CRC value. The recalculated CRC value can be compared with the received CRC checksum. If the two are the same, it can be confirmed that the first wireless communication address has been successfully verified, indicating that the first wireless communication address has not changed during transmission, and the integrity of the first wireless communication address is guaranteed.
[0041] Step S106 : In response to the verification result indicating that the first wireless communication address is successfully verified, a wireless communication connection is established between the vehicle and the target charging pile based on the first wireless communication address.
[0042] In the technical solution provided in step S106 of the embodiment of the present application, if the verification result indicates that the verification of the first wireless communication address is successful, a wireless communication connection can be established between the vehicle and the target charging pile based on the first wireless communication address. The wireless communication connection can be a Bluetooth connection, for example, Bluetooth Low Energy (BLE) can be selected to connect the vehicle to the target charging pile.
[0043] In this embodiment, once the first wireless communication address is successfully verified, the vehicle and the target charging station can verify each other's corresponding wireless communication addresses. If the mutual wireless communication address verification is successful, a wireless communication connection can be established. It should be noted that to ensure the security of information transmission, the vehicle and the target charging station can establish an encrypted Bluetooth communication connection based on negotiation.
[0044] In the embodiments of the present application, the use of wireless communication connections avoids the limitations of traditional wired connections, making the connection between the vehicle and the target charging pile more flexible and not strictly restricted by physical location. The wireless connection enables real-time, high-speed information exchange between the vehicle and the target charging pile, which can be used to dynamically adjust the charging and discharging power, respond to grid dispatch instructions, and monitor battery status. With the help of wireless communication connections, the interaction between the vehicle and the target charging pile is no longer constrained by distance, and the possibility of remote control is realized. For example, the target charging pile can monitor the battery status, which increases convenience and intelligence. The establishment of a wireless communication connection simplifies the deployment and operation of the V2G charging and discharging process, reduces user involvement, helps promote the widespread acceptance and use of V2G technology, and accelerates the deep integration of vehicles, target charging piles and grid dispatch platforms.
[0045] Step S108: Using a wireless communication connection, the first status information of the vehicle and the charging requirement information of the vehicle are sent to the target charging pile.
[0046] In the technical solution provided in step S108 above in the embodiment of the present application, after a wireless communication connection is established between the vehicle and the target charging pile based on the first wireless communication address, the wireless communication connection can be used to send the vehicle's first status information and the vehicle's charging demand information to the target charging pile. The first status information is used to indicate the operating status of the battery in the vehicle. The power grid dispatching platform is used to determine a control strategy based on the first status information, the charging demand information, and the second status information of the power grid dispatching platform, and send the control strategy to the target charging pile. The second status information is used to indicate the operating status of the power grid dispatching platform.
[0047] In this embodiment, the first state information may include but is not limited to the following parameters: the battery's state of charge (SOC), the battery's state of health (SOH), the battery's temperature, the battery's voltage and current, and the battery's charge and discharge rate. Among them, SOC can be used to indicate the battery's current charge level, and can be used to assist the target charging pile in understanding the battery's charge and discharge requirements, and whether the battery can meet the immediate needs of the power grid. SOH can be used to indicate the battery's health level. The battery's temperature can be used to assist the target charging pile and vehicle in temperature management to avoid overheating or overcooling affecting battery performance. The battery voltage and current can assist the target charging pile in adjusting the charge and discharge parameters to ensure that the battery operates within a safe range. The battery charge and discharge rate can be used to assist in determining a suitable charge and discharge strategy. It should be noted that the above-mentioned first state information is for illustrative purposes only and is not specifically limited here. As long as it is information that can assist the power grid dispatching platform in adjusting the charge and discharge strategy based on the real-time status of the battery and optimize energy efficiency, it is within the scope of protection of the embodiments of this application.
[0048] Optionally, the charging demand information can be used to indicate the specific charging requirements of the vehicle under the current circumstances. The charging demand information may include, but is not limited to, the following information: required charging power, charging time window, maximum charging current / voltage, and charging priority. Among them, the required charging power may be the required charging power fed back to the target charging pile based on the battery status and user (driver) needs. The charging time window may be a time period during which the vehicle can accept charging, which may be affected by factors such as user schedules and fluctuations in grid electricity prices. The maximum charging current / voltage may be the maximum charging current and voltage allowed by the battery, which is used to set appropriate charging parameters for the target charging pile to avoid damage to the battery. The charging priority can be used to indicate the urgency of immediate charging, and to help the target charging pile prioritize multiple charging requests.
[0049] Optionally, the second state information can be used to indicate the real-time operating status and demand of the power grid system corresponding to the power grid dispatching platform, and can also be referred to as power grid parameters. The second state information may include, but is not limited to, the following information: power grid load status, electricity price information, power grid dispatching instructions (dispatching instructions), and power grid security parameters. Among them, the power grid load status can be used to indicate the current load level of the power grid system, and to adjust the charging and discharging strategy (control strategy) for the battery to avoid power grid overload or waste of resources. Electricity price information can be used to provide real-time electricity price information, especially peak and valley electricity prices, to help vehicles and target charging piles determine charging and discharging time to reduce charging costs. Dispatching instructions can be direct power grid dispatching requirements, such as requiring vehicles to discharge at a specific time to support power grid peak regulation, or to charge under specific conditions to utilize excess power. Power grid security parameters can be the maximum allowable charging and discharging power, power grid frequency stability requirements, etc., to ensure that charging and discharging operations do not have an adverse impact on the power grid.
[0050] Optionally, the grid dispatching platform can analyze the first status information to assess the battery's charge and discharge capabilities and safety, which can be used to determine when to charge and discharge, as well as the charging or discharging power. The second status information can be analyzed to assess the current health of the grid system and future trends. Charging demand information can be analyzed to help the grid dispatching platform understand the vehicle's individual charging needs. By comprehensively evaluating these three types of information, the grid dispatching platform can develop an appropriate control strategy.
[0051] Optionally, based on the grid load in the second state information, the dispatching platform can calculate the impact of charging and discharging activities on the grid system, optimize load distribution, and avoid local overloads. For example, during peak grid load periods, the grid dispatching platform can instruct vehicles to temporarily stop charging and switch to discharge mode to reduce grid pressure. Combining the first state information and charging demand information, the grid dispatching platform can evaluate the available battery energy storage of vehicles and reasonably allocate power resources. For example, when the grid system is short of power, the grid dispatching platform can call on the vehicle's battery to discharge and supplement the power supply gap of the grid system. Taking into account the difference in peak and valley electricity prices, the grid dispatching platform can determine the lowest-cost control strategy based on the time and priority in the charging demand information and the electricity price information in the second state information. Charging the battery during periods when electricity prices are low, or discharging the battery during periods when electricity prices are high and the grid system has a heavy power load, can not only save electricity bills for users, but also alleviate the power load of the grid system.
[0052] Alternatively, the grid dispatch platform can leverage historical data and machine learning models to predict future load demand and electricity prices, allowing it to plan control strategies in advance to address potential grid imbalances. If a power shortage is predicted for a certain time period in the future, the grid dispatch platform can instruct electric vehicles to charge at the current time to prepare for future demand.
[0053] In the embodiment of the present application, through the intelligent dispatching of the power grid, a dynamic balance of supply and demand is achieved, the demand for spare capacity during power peaks is reduced, and the overall operating efficiency of the power grid system is improved. Vehicles are guided to charge during periods of lower electricity prices to reduce the charging costs of car owners. The charging and discharging strategies are adjusted in real time to quickly respond to fluctuations in the power grid system and maintain the frequency and voltage stability of the power grid system. In summary, the power grid dispatching platform can optimize the resources of the power grid system while meeting user needs by comprehensively analyzing the first state information, the second state information and the charging demand information, thereby achieving economical, environmentally friendly and stable energy management. The above control strategy formulation process reflects the core value of V2G technology in the intelligent power grid system, that is, through the three-party interaction of intelligent vehicles, target charging piles and the power grid system, the intelligent charging and discharging operations of the battery are realized.
[0054] Step S110: receiving a control strategy from a target charging pile, and controlling the battery to enter a charging mode or a discharging mode according to the control strategy.
[0055] In the technical solution provided in the above step S110 of the embodiment of the present application, after sending the first status information of the vehicle and the charging demand information of the vehicle to the target charging pile, a control strategy from the target charging pile can be received, and the battery can be controlled to enter the charging mode or the discharging mode according to the control strategy.
[0056] In this embodiment, after the vehicle receives the control strategy, the control strategy can be parsed to understand the intention of the grid dispatching platform. It can also be verified whether the control strategy complies with the safe operating limits of the battery in the vehicle, for example, whether the power information in the control strategy exceeds the maximum charge and discharge capacity of the battery, whether the time window is reasonable, etc., to ensure that the execution of the control strategy will not damage the health of the battery. It should be noted that the above-mentioned parsing process for the control strategy is only for illustration and is not specifically limited here. As long as the process and method can ensure the accurate implementation of the control strategy and ensure the safety of the battery, they are within the scope of protection of the embodiments of the present invention.
[0057] Optionally, if the control strategy indicates charging, the vehicle's battery mode can be switched to charging mode. At this point, the battery's charging parameters, such as voltage and current, can be adjusted to execute charging instructions with appropriate efficiency. Simultaneously, the battery's status can be monitored in real time to ensure that all battery indicators remain within a safe range during the charging process. If the control strategy indicates discharging, the battery can be controlled to enter discharge mode. The battery is inverted into AC power and fed back to the grid system via the charging station. In discharge mode, the battery's discharge rate can be adjusted based on the power requirements and time window in the control strategy, while the battery's status is continuously monitored to prevent over-discharge and ensure its long-term health.
[0058] In the embodiments of the present application, by executing the control strategy, the vehicle can respond to the real-time needs of the grid dispatching platform, whether charging to replenish energy or discharging to support the peak load of the grid system, and can achieve optimal energy configuration. When executing the charge and discharge control strategy, the battery status can be monitored in real time to avoid overcharging and over-discharging of the battery and ensure the health of the battery. Accurate control of the charge and discharge mode (charging mode and discharging mode) can improve charging efficiency and reduce energy waste.
[0059] In steps S102 to S110 of the embodiment of the present application, if the physical connection between the vehicle and the target charging pile is successful, communication address information from the target charging pile can be received. The address verification information can be used to verify the first wireless communication address, obtaining a verification result. If the verification result indicates successful verification of the first wireless communication address, a wireless communication connection can be established between the vehicle and the target charging pile based on the first wireless communication address. The vehicle's first status information and charging demand information are then transmitted to the target charging pile via the wireless communication connection. The target charging pile can then transmit this first status information and charging demand information to the power grid dispatching platform. The power grid dispatching platform can use the first status information, charging demand information, and the second status information from the power grid dispatching platform to generate a control strategy, which is then transmitted to the vehicle via the target charging pile. The vehicle's battery can then be controlled to enter either charging or discharging mode according to the control strategy. In this embodiment, the above method achieves advanced features such as bidirectional power transmission between the vehicle and the target charging pile, accurate power grid dispatch response, and timely information exchange. This enables the vehicle to fully respond to power grid dispatch, optimizes energy efficiency, and ensures the safety and economy of the battery charging process. In summary, by introducing wireless communication connections and in-depth information interaction mechanisms, combined with the intelligent decision-making of the power grid dispatching platform, the technical problem of low battery control accuracy in vehicles has been effectively solved, and the technical effect of improving the accuracy of battery control in vehicles has been achieved.
[0060] The embodiments of the present application are described in detail below in combination with the above steps.
[0061] As an optional implementation, step S106, in response to the verification result indicating that the verification of the first wireless communication address is successful, a wireless communication connection is established between the vehicle and the target charging pile based on the first wireless communication address, including: in response to the verification result indicating that the verification of the first wireless communication address is successful, the second wireless communication address of the vehicle is sent to the target charging pile; in response to the target charging pile successfully verifying the received second wireless communication address, the first wireless communication address from the target charging pile is received, and the first wireless communication address is verified to obtain a first verification result; in response to the first verification result indicating that the security level of the wireless communication connection to be established is higher than the security level threshold, the first wireless communication address and the second wireless communication address are paired to obtain a pairing result; based on the pairing result, a wireless communication connection is established between the vehicle and the target charging pile.
[0062] In this embodiment, in the process of establishing a wireless communication connection between the vehicle and the target charging pile based on the first wireless communication address, if it is detected that the verification result is successful for the first wireless communication address, the vehicle can be controlled to send the second wireless communication address of the vehicle to the target charging pile. The target charging pile can verify the received second wireless communication address. If the verification of the second wireless communication address is successful, the first wireless communication address can be sent to the vehicle through the target charging pile, so that the vehicle verifies the first wireless communication address and obtains a first verification result. If the first verification result is that the verification of the first wireless communication address is successful, the first wireless communication address and the second wireless communication address can be paired, so that a wireless communication connection is established between the vehicle and the target charging pile based on the pairing result obtained. Among them, the wireless communication address can be the vehicle's own Bluetooth MAC address. The first verification result can be used to indicate whether the security level of the wireless communication connection to be established is higher than the security level threshold.
[0063] Optionally, this embodiment describes a two-way communication security enhancement mechanism designed to ensure the security of the wireless communication connection established between the vehicle and the target charging station by verifying and pairing two wireless communication addresses (the first and second wireless communication addresses). The above process enables the embodiment of the present application to not only utilize address verification information to verify the first wireless communication address, but also introduce dynamic secondary verification, thereby significantly improving the security of the wireless communication connection.
[0064] Optionally, if the first wireless communication address is successfully verified, it can indicate the security of the initial connection between the vehicle and the target charging pile. After the first wireless communication address passes the verification of the address verification information, it means that the vehicle and the target charging pile have established basic trust, but the level of trust still needs to be further enhanced to ensure the security of subsequent wireless communications. After the vehicle successfully verifies the first wireless communication address, it sends the vehicle's own second wireless communication address to the target charging pile. After receiving the second wireless communication address, the target charging pile can verify the second wireless communication address. For example, it can check whether the format of the MAC address is correct, and confirm whether the MAC address matches the pre-registered legal vehicle address to prevent illegal devices from accessing. It should be noted that the process of the target charging pile verifying the second wireless communication address is only for illustration, and no specific restrictions are made here. As long as it is a verification method that can improve the security of the wireless communication connection between the vehicle and the target charging pile, it is within the protection scope of the embodiments of this application.
[0065] Optionally, the target charging pile can send the first wireless communication address to the vehicle so that the vehicle can perform final verification. The vehicle verifies the received first wireless communication address to ensure the legitimacy and security of the first wireless communication address. The verification process may include cross-verification, verification of whether the format is correct, historical record checking, etc. After the verification of the first wireless communication address is completed, a first verification result is obtained, which indicates that the wireless communication addresses of both parties have been confirmed to be legal and can enter the next pairing process. It should be noted that the above-mentioned process of the vehicle verifying the first wireless communication address is only for illustration, and no specific restrictions are made this time. As long as it is a verification method that can improve the security of the wireless communication connection between the vehicle and the target charging pile, it is within the protection scope of the embodiments of this application.
[0066] Optionally, based on the verification result of verifying both the first and second wireless communication addresses, the first and second wireless communication addresses can be paired. This pairing ensures a unique and secure wireless communication connection between the two parties, preventing unauthorized access by third parties. Once pairing is successful, an encrypted wireless communication connection is established between the vehicle and the target charging station. For example, this can be achieved through a pairing protocol like Bluetooth or similar wireless technologies, providing a secure channel for information transmission between the two parties.
[0067] Optionally, by verifying the first wireless communication address and the second wireless communication address, a dual verification mechanism is formed. Even if one of the addresses is compromised, it is difficult for an attacker to use the other address for illegal communication, thereby significantly improving the security of the wireless communication connection between the vehicle and the target charging pile. By exchanging wireless communication addresses, the vehicle and the target charging pile can exchange dynamic keys, providing security for subsequent encrypted wireless communications. The pairing result ensures the uniqueness and security of the wireless communication connection between the vehicle and the target charging pile. Even if there are multiple target charging piles and vehicles in the same area, a correct wireless communication connection can be established accurately and without error, avoiding the risk of mispairing.
[0068] Optionally, after the first wireless communication address and the second wireless communication address are successfully paired, the wireless communication connection between the vehicle and the target charging station can use encryption technology, such as the Advanced Encryption Standard (AES) or asymmetric encryption (Rivest-Shamir-Adleman, RSA), to ensure the confidentiality and integrity of information during transmission. It should be noted that the encryption technology used in the above wireless communication connection is only for illustration and is not specifically limited here.
[0069] In the embodiments of the present application, by verifying and dynamically pairing the wireless communication addresses of the vehicle and the target charging station, the security of the wireless communication between the vehicle and the target charging station is significantly enhanced, allowing for subsequent accurate information transmission and energy (power) exchange. By introducing a verification and dynamic pairing mechanism for a second wireless communication address, the security of the wireless communication connection between the vehicle and the target charging station is effectively enhanced, ensuring the reliability of V2G technology in actual applications where the vehicle is connected to the target charging station to perform charging and discharging operations.
[0070] As an optional embodiment, based on the pairing result, a wireless communication connection is established between the vehicle and the target charging pile, including: in response to the pairing result that the first wireless communication address and the second wireless communication address are successfully paired, obtaining first verification information of the first wireless communication address, and using the first verification information, verifying the pairing process of the first wireless communication address and the second wireless communication address to obtain a second verification result, wherein the first verification information is used to indicate the security level of the pairing of the second wireless communication address and the first wireless communication address; in response to the second verification result that the first verification information meets the security level threshold, establishing a wireless communication connection between the vehicle and the target charging pile; the method may also include at least one of the following: in response to the pairing result that the first wireless communication address and the second wireless communication address are successfully paired, and the wireless communication connection is not successfully established between the vehicle and the target charging pile within the target time period, clearing the received first wireless communication address, wherein the target charging pile is used to clear the received second wireless communication address; in response to the pairing result that the first wireless communication address and the second wireless communication address are successfully paired, and the format of the received first wireless communication address is abnormal, and / or the format of the second wireless communication address received by the target charging pile is abnormal, canceling the pairing between the first wireless communication address and the second wireless communication address.
[0071] In this embodiment, during the process of establishing a wireless communication connection between the vehicle and the target charging station based on the pairing result, first verification information for the first wireless communication address can be obtained. The first verification information is used to verify the pairing process of the first wireless communication address and the second wireless communication address, resulting in a second verification result. If the second verification result indicates that the first verification information meets the security threshold, a wireless communication connection can be established between the vehicle and the target charging station. If the pairing result indicates that the first and second wireless communication addresses are successfully paired, and a wireless communication connection is not successfully established between the vehicle and the target charging station within a target time period, the received first wireless communication address can be cleared, and the target charging station can also clear the received second wireless communication address. If the pairing result indicates that the first and second wireless communication addresses are successfully paired, and the format of the received first wireless communication address is abnormal, and / or the format of the second wireless communication address received by the target charging station is abnormal, the pairing between the first and second wireless communication addresses can be canceled. The first verification information can be used to indicate the security level of the pairing between the first and second wireless communication addresses and can be a one-time password (OTP) or other form of security token, without specific limitation herein. The target time period can be a preset duration, for example, 5 seconds.
[0072] Optionally, this embodiment describes an implementation method for establishing a secure wireless communication connection between a vehicle and a target charging pile based on the pairing result, and in particular ensures the security and reliability of the wireless communication connection through additional verification information and exception handling mechanisms.
[0073] Optionally, after the first wireless communication address and the second wireless communication address are successfully paired, first verification information can be obtained. The pairing process is then re-verified using the first verification information to confirm that the pairing security level meets predetermined standards. The first verification information reflects the security level of the pairing and can ensure wireless communication security. After the first verification information passes the security threshold test, a second verification result is obtained, indicating that the communication address pairing process between the two parties is secure and reliable, and a wireless communication connection can be established based on this.
[0074] Optionally, if a wireless communication connection is not successfully established within the set target time period, the previously received first wireless communication address will be cleared. At the same time, the target charging station can also clear the received second wireless communication address. The above mechanism prevents invalid or expired pairing information from occupying memory, reducing security risks. If the format of the first wireless communication address or the second wireless communication address is abnormal, that is, it does not meet the expected format requirements, the pairing of the above two wireless communication addresses will be canceled. Abnormal addresses may trigger security warnings or system failures, so timely cancellation of pairing can effectively ensure the safe and stable operation of the system.
[0075] For example, if the received MAC address format is incorrect or the CRC check fails, a 10kHz emergency signal can be sent to terminate pairing.
[0076] In this embodiment, secondary verification of the first verification information and the setting of a security threshold significantly enhance the security of the wireless communication connection and reduce the risk of unauthorized access. The handling of connection establishment failures within the target time period and the cancellation of pairing due to abnormal address formats improve responsiveness and reliability in the face of unexpected situations, ensuring that a wireless communication connection between the vehicle and the target charging station is established only when various safety conditions are met.
[0077] As an optional implementation, the first wireless communication address is verified to obtain a first verification result, including: obtaining second verification information of the first wireless communication address, wherein the second verification information is used to indicate the moment when the target charging pile sends the first wireless communication address to the vehicle; in response to the second verification information being less than or equal to a preset moment threshold, determining that the first verification result is used to indicate that the security level of the wireless communication connection to be established is higher than the security level threshold; the address verification information is used to indicate the integrity of the first wireless communication address, step S104, using the address verification information, verifying the first wireless communication address to obtain a verification result, including: determining an address verification value corresponding to the address verification information; in response to the address verification information being the same as the address verification value, determining that the verification result indicates that the verification of the first wireless communication address is successful.
[0078] In this embodiment, in the process of verifying the first wireless communication address, the second verification information of the first wireless communication address can be obtained. If the second verification information is less than or equal to the preset time threshold, it can be determined that the first verification result is used to indicate that the security level of the wireless communication connection to be established is higher than the security level threshold. In the process of verifying the first wireless communication address using the address verification information, the address verification value corresponding to the address verification information can be determined. If the address verification information is the same as the address verification value, it is determined that the verification result indicates that the verification of the first wireless communication address is successful. Among them, the second verification information can be used to indicate the moment when the target charging pile sends the first wireless communication address to the vehicle, that is, it can be an additional timestamp for the target charging pile to send the Bluetooth MAC address to the vehicle, for example, it can be the Coordinated Universal Time (UTC) time. The address verification value can be a CRC check value determined by the vehicle.
[0079] Optionally, to ensure high security and data integrity of wireless communication between the vehicle and the target charging station, this embodiment describes two verification mechanisms: timestamp-based security verification and CRC-based address integrity verification. These two verification mechanisms work together to effectively prevent data tampering and replay attacks, ensuring the reliability and security of wireless communication.
[0080] Optionally, obtain second verification information of the first wireless communication address, wherein the above-mentioned second verification information is actually the timestamp attached by the target charging pile when sending the first wireless communication address, and is marked with UTC time. Compare the second verification information (i.e., the timestamp) with the preset time threshold. Among them, the setting of the above-mentioned preset time threshold depends on the real-time requirements, which can be used to prevent replay attacks, that is, attackers attempt to illegally access by recording and replaying previous communications. If the difference between the second verification information) and the current time is less than or equal to the preset time threshold, it can be determined that the first verification result is safer than the safety threshold. This means that the time synchronization between the target charging pile and the vehicle is good, and the wireless communication occurred recently, which reduces the risk of replay attacks.
[0081] Optionally, after the vehicle receives the first wireless communication address from the target charging pile, the address verification value corresponding to the address verification information is calculated according to a pre-set verification mechanism, for example, using a cyclic redundancy check (CRC) algorithm. The received address verification information is then compared with the calculated address verification value. If the two match, the verification result indicates that the verification of the first wireless communication address is successful, that is, the first wireless communication address has not been tampered with during the transmission process. By introducing the CRC verification mechanism, the first wireless communication address is effectively prevented from being maliciously modified during the transmission process, thereby ensuring the integrity and authenticity of the first wireless communication address. If the address verification value and the address verification information are different, that is, the CRC verification fails (does not pass), the wireless communication connection process between the vehicle and the target charging pile can be terminated at this time.
[0082] In an embodiment of the present application, the security of the wireless communication connection is significantly enhanced, especially the ability to resist replay attacks and data tampering, through the dual verification mechanism of timestamp and CRC check. The CRC check mechanism ensures the integrity and credibility of the communication data. The time synchronization mechanism with preset time thresholds ensures that the communication occurs in the most recent time, improving the timeliness and security of the communication. The dynamic calculation and comparison of the CRC check value not only verifies the integrity of the first wireless communication address, but also reflects the flexibility and response speed of the system. The comprehensive verification process that combines timestamp verification with CRC check provides a more comprehensive and reliable security solution compared to a single verification mechanism.
[0083] As an optional implementation, step S102, in response to a successful physical connection between the vehicle and the target charging pile, receives communication address information from the target charging pile, including: in response to a successful physical connection between the vehicle and the target charging pile, receives a target transmission frame from the target charging pile, wherein the target charging pile is used to split the first wireless communication address, and based on the split first wireless communication address, adjusts the frequency of the pulse width modulation signal of the target charging pile to obtain the target transmission frame; and parses the target transmission frame to obtain the first wireless communication address and address verification information.
[0084] In this embodiment, in the process of receiving the communication address information from the target charging pile, a target transmission frame from the target charging pile can be received. The vehicle obtains the first wireless communication address and address verification information by parsing the target transmission frame. Among them, when the physical connection between the vehicle and the target charging pile is successful, the target charging pile can split its own first wireless communication address, and adjust the frequency of the PWM signal of the target charging pile based on the split first wireless communication address to obtain frequency information. Among them, the frequency information can be used to indicate the size of the frequency of the adjusted pulse width modulation signal. The vehicle may include an OBC with V2G function, a Bluetooth module and a BMS. The pile end may include an AC charging pile with a PWM demodulation module, a Bluetooth module and a power grid interface.
[0085] Optionally, the physical connection between the vehicle and the target charging station is achieved by docking the charging plug with the socket. After the connection is successful, the target charging station begins to prepare for the transmission of wireless communication information. The target charging station fills the communication address information into a predefined initial transmission frame and appropriately encodes or modulates the information for transmission via a PWM signal. The target charging station sends the constructed target transmission frame via a PWM signal, and the PWM modulation module in the vehicle's bidirectional OBC (On-Board Charger) can receive the above PWM signal.
[0086] Optionally, the target charging pile converts the information of the Bluetooth MAC address into a frequency change of the PWM signal. By precisely adjusting the frequency of the PWM signal, each part of the frequency change corresponds to a part of the information of the MAC address, thereby realizing information encoding. The above-mentioned frequency adjustment is determined according to each bit of the MAC address. For example, different frequency changes correspond to different numerical values or characters. After the PWM modulation module of the vehicle receives the PWM signal, the frequency information in the PWM signal can be parsed. By identifying the frequency change pattern, the first communication address information and address verification information sent by the target charging pile can be restored. The method of adjusting the PWM signal frequency not only allows a preliminary communication address exchange between the target charging pile and the vehicle, but also improves the security and anti-interference capability of information transmission through the complexity of the frequency change and the address verification information.
[0087] In the embodiment of the present application, the frequency change of the PWM signal is used to carry the communication address information, which is particularly suitable for scenarios where there is already a physical connection (such as the charging process), and information transmission can be achieved without additional hardware facilities. Through the above method, the rapid and covert exchange of wireless communication addresses is achieved, laying the foundation for subsequent Bluetooth pairing and secure communication. Combining the analysis of PWM frequency information and address verification information, the integrity and accuracy of the communication address can be effectively verified, increasing the security level of the communication link.
[0088] For example, assuming that the Bluetooth MAC address of the target charging pile is 00:11:22:33:44:55, and the frequency change mapping rules corresponding to the target charging pile are as follows: 00:2.5kHz, 11:3.0kHz, 22:3.5kHz, 33:4.0kHz, 44:4.5kHz, 55:5.0kHz. The target charging pile can encode the above Bluetooth MAC address information into the frequency change of the PWM signal and send it to the vehicle. After the vehicle's OBC receives the PWM signal, it can parse the frequency information byte by byte to obtain the corresponding Bluetooth MAC address of 00:11:22:33:44:55. It can further parse the address verification information (such as CRC check value), verify the correctness of the Bluetooth MAC address, and use the parsed wireless communication address to establish Bluetooth pairing, and finally establish a wireless communication link.
[0089] As an optional implementation, step S108, using a wireless communication connection to send the vehicle's first status information and the vehicle's charging demand information to a target charging pile, includes: using a wireless communication connection to control the vehicle's first wireless communication module to send the first status information and charging demand information to the target charging pile's second wireless communication module, wherein the target charging pile is used to send the first status information and charging demand information to the power grid dispatching platform; the method may also include: controlling the first wireless communication module to receive a control strategy from the second wireless communication module, wherein the control strategy is determined based on the battery's control mode, the first status information, and the target charging pile's attribute information, and the control mode is determined based on the second status information and the charging demand information.
[0090] In this embodiment, in the process of sending the first status information and charging requirement information to the target charging pile using a wireless communication connection, the wireless communication connection can be used to control the first wireless communication module of the vehicle to send the first status information and charging requirement information to the second wireless communication module of the target charging pile. The target charging pile can also control the first wireless communication module to receive the control strategy from the second wireless communication module based on the received first status information and the second charging requirement information. The control strategy can be determined based on the battery-based control mode, the first status information, and the attribute information of the target charging pile. The control mode can be determined based on the second status information and the charging requirement information. The first wireless communication module can be a Bluetooth module of the vehicle. The second wireless communication module can be a Bluetooth module of the target charging pile. The first status information, charging requirement information, attribute information, and second status information can be collectively referred to as negotiation information.
[0091] Optionally, after the vehicle establishes a physical connection with the target charging pile, a secure wireless communication connection is established between the vehicle's first wireless communication module and the charging pile's second wireless communication module via Bluetooth or other wireless communication technologies. The vehicle uses this wireless communication connection to send the vehicle's first status information to the target charging pile via the first wireless communication module. In addition to the first status information, the vehicle can also send charging demand information to the target charging pile, such as the vehicle's desired charging rate, charging deadline, or charging mode (such as fast charging or normal charging), so that the target charging pile can better understand and respond to the vehicle's charging needs.
[0092] Optionally, after the target charging pile receives the first state information and charging demand information of the vehicle, the first state information, charging demand information and attribute information of the target charging pile (for example, maximum power output, charging efficiency, grid dispatching requirements, etc.) are combined and transmitted to the grid dispatching platform. Thus, the grid dispatching platform can generate a suitable control strategy based on the first state information, charging demand information, attribute information received from the target charging pile and the second state information of the grid dispatching platform itself. The above control strategy aims to optimize the charging process, meet the needs of the vehicle, and coordinate with the instructions of the grid dispatching platform as much as possible to improve the overall efficiency of the power grid.
[0093] Optionally, the target charging pile sends the generated control strategy back to the first wireless communication module of the vehicle through the second wireless communication module. The control strategy may include the selection of charging mode, adjustment of charging power, scheduling of battery discharge, etc. After the vehicle receives the control strategy from the target charging pile, it can adjust the charging or discharging behavior of the battery according to the instructions in the control strategy. For example, if the control strategy indicates the use of slow charging mode to avoid peak load of the power grid, it can be adjusted to slow charging mode. At the same time, the first wireless communication module of the vehicle can continue to communicate with the target charging pile to monitor the battery charging status in real time and respond to corresponding dynamic adjustments.
[0094] Optionally, the control strategy is formulated taking into account the first state information of the vehicle's battery, charging demand information, attribute information of the target charging pile, and so on, in order to achieve intelligent management of the battery. For example, when the SOC is low, the control strategy may give priority to the fast charging mode; when the SOC is close to full charge and the grid demand is low, it can switch to the discharge mode to feed power back to the grid system. It should be noted that the control strategy is not static and can be dynamically adjusted according to multiple factors such as the real-time first state information of the vehicle, grid scheduling requirements, charging pile load conditions, etc., to adapt to the ever-changing charging or discharging environment.
[0095] In an embodiment of the present application, the first status information and charging demand information of the vehicle are transmitted in real time through a wireless communication connection, so that the power grid dispatching system can formulate and execute a more intelligent and efficient charging or discharging control strategy, thereby improving the response speed and energy utilization efficiency of V2G technology. The information interaction between the vehicle and the target charging pile enables the power grid dispatching platform to monitor and guide the two-way flow of energy in real time, which contributes to the load balance of the power grid system and the effective use of renewable energy, and reduces the operating cost of the power system. Based on the real-time status of the vehicle's battery and the attribute information of the target charging pile, the vehicle can respond more flexibly to the power grid dispatching needs, optimize the battery charging and discharging process, extend the battery life, and at the same time improve the user's charging experience and cost-effectiveness.
[0096] As an optional implementation, the second state information includes power load information and electricity price information, the charging demand information includes electricity price demand information and load demand information, the attribute information includes at least current attributes, the first state information includes at least current state information, the control strategy includes a charging control strategy and a discharging control strategy, step S110, according to the control strategy, controlling the battery to enter a charging mode or a discharging mode, including: in response to the first wireless communication module receiving the discharge control strategy, controlling the battery to enter a discharge mode, wherein, in the discharge mode, the power load information is greater than or equal to the power load threshold, and the load demand information is to allow triggering the control battery to perform a discharge operation, the power grid dispatching platform is used to determine the discharge control strategy based on at least the discharge current, and the discharge current is the power The minimum value of the flow state information and the current attribute, the discharge control strategy is used to represent the rule for controlling the battery to perform a discharge operation on the target charging pile; in response to the first wireless communication module receiving the charging control strategy, the battery is controlled to enter the charging mode, wherein, in the charging mode, the power load information is less than the power load threshold, and the electricity price information meets the electricity price demand information, the power grid dispatching platform is used to determine the charging control strategy based on at least the charging current, the charging current is the minimum value of the current state information and the current attribute, the charging control strategy is used to represent the rule for performing a charging operation on the battery using the target charging pile; the method may also include: in response to the battery being in the discharge mode, controlling the battery to perform a discharge operation; in response to the battery being in the charging mode, performing a charging operation on the battery.
[0097] In this embodiment, when controlling the battery to enter charging mode or discharging mode according to a control strategy, if the first wireless communication module receives the discharging control strategy, the battery can be controlled to enter discharging mode. If the first wireless communication module receives the charging control strategy, the battery can be controlled to enter charging mode. In charging mode, the battery is charged using a target charging station. In discharging mode, the battery is controlled to discharge to a target charging station. The power load information corresponding to the discharging mode is greater than or equal to a power load threshold, and the load demand information indicates user permission to trigger the battery to perform a discharging operation. The power grid dispatching platform can be configured to determine the discharge control strategy based at least on the discharge current. The discharge current can be the minimum of the current state information and the current attributes. The power load information corresponding to the charging mode is less than the power load threshold, and the electricity price information meets the electricity price demand information. The power grid dispatching platform can be configured to determine the charging control strategy based at least on the charging current. The charging current can be the minimum of the current state information and the charging attributes. The electricity price demand information can indicate the electricity price range in which the user requires charging and the electricity price range in which charging is not required. The load demand information can indicate whether the user chooses to reverse power when the power grid load is high.
[0098] Optionally, the grid dispatching platform formulates a charging or discharging control strategy based on real-time power load, electricity price information, and the current state of the vehicle battery. This includes determining the size of the charging current or discharging current as a key parameter of the control strategy. When determining the current size, the actual current state information of the battery (such as the current charging and discharging current) and the current properties of the target charging pile (such as the maximum allowable current) can be considered to ensure that the charging and discharging operations are carried out within a safe range. The discharge current is the minimum value of the current state information and the current properties to avoid damage to the battery caused by excessive discharge; the charging current is also based on the minimum value principle to ensure that the battery is charged at a safe current and extend the battery life.
[0099] Optionally, in discharge mode, the vehicle control system monitors power load information. When the grid load reaches or exceeds a threshold, and the load demand information confirms that it allows, it will initiate a battery discharge operation, feeding power back to the grid to help balance the grid load. In charging mode, when the grid load falls below a threshold and the current electricity price meets the user's charging needs, the vehicle will initiate the charging process, absorbing power from the grid to charge the vehicle battery.
[0100] In the embodiments of this application, by dynamically adjusting the battery's charge and discharge patterns, the vehicle can respond to grid dispatch demands in real time, effectively balancing grid load and stabilizing electricity prices, thereby improving grid operating efficiency. By adjusting the charging strategy based on real-time electricity price information, users can choose to charge when electricity prices are low, reducing charging costs and improving economic benefits. The control strategy considers the battery's current state and the properties of the charging station to ensure that the charge and discharge currents are within a safe range, helping to extend battery life and reduce potential damage to the battery caused by charging.
[0101] As an optional embodiment, the method may further include: in the process of controlling the battery to enter a charging mode or a discharging mode, in response to detecting an abnormal operating state of the battery, determining the abnormal type of the abnormal operating state; determining an abnormality handling strategy associated with the abnormal type, wherein the abnormality handling strategy is used to represent a rule for handling the abnormal operating state of the abnormal type; the abnormality handling strategy includes at least one of the following: in response to the abnormality type being a wireless communication interruption type, re-binding the vehicle and the target charging pile for wireless communication, wherein the target charging pile is used to maintain the charging operation through the pulse width modulation signal of the target charging pile; in response to the abnormality type being an overcurrent type or an overvoltage type, stopping controlling the battery to enter a charging mode or a discharging mode; in response to the abnormality type being a battery overheating type, performing a heat dissipation operation on the battery; in response to the temperature of the battery after performing the heat dissipation operation being less than the temperature threshold corresponding to the battery overheating type, controlling the battery to enter a charging mode or a discharging mode; in response to the abnormality type being a power grid failure type, stopping controlling the battery to enter a discharging mode.
[0102] In this embodiment, while the battery is in charging mode or discharging mode, the status of the charging or discharging operation performed by the battery can be monitored in real time. If an abnormal operating state of the battery is detected, the abnormal type of the abnormal operating state can be determined. The abnormality handling strategy associated with the abnormal type is determined. The abnormality handling strategy may include at least one of the following: if the abnormality type is a wireless communication interruption type, the charging vehicle can be wirelessly bound to the target charging station. If the abnormality type is an overcurrent type or an overvoltage type, control of the battery entering charging mode or discharging mode can be stopped. If the abnormality type is a battery overheating type, a heat dissipation operation can be performed on the battery. During the heat dissipation operation, the battery temperature can be detected in real time. If the battery temperature is detected to have recovered, that is, the temperature is less than the temperature threshold corresponding to the battery overheating type, the battery can be controlled to re-enter charging mode or discharging mode, that is, continue charging and discharging. If the abnormality type is a power grid failure type, the battery can be stopped from entering discharging mode, that is, discharging to the power grid system can be stopped, and the battery can be switched to vehicle self-use mode.
[0103] Optionally, the vehicle and target charging station continuously monitor the operating status of the battery in real time, including wireless communication status, charge and discharge current and voltage, battery temperature, and grid operation. If any deviation from the normal operating range is detected, an anomaly detection program can be initiated to determine the type of anomaly. Based on the specific manifestations of the anomaly, the type can be quickly identified, such as wireless communication interruption, overcurrent or overvoltage, battery overheating, and grid failure.
[0104] Optionally, if a wireless communication interruption is detected, the target charging pile maintains basic PWM signal transmission to ensure that at least the charging operation is not immediately interrupted. At the same time, the vehicle re-establishes wireless communication binding with the target charging pile and exchanges basic information through the pulse width modulation signal of the target charging pile until wireless communication such as Bluetooth is reconnected and full communication capabilities are restored. If the abnormality type is overcurrent or overvoltage, measures can be taken to stop the battery charging and discharging operations to prevent damage to the battery hardware. If the battery is detected to be overheating, the vehicle automatically starts the cooling system to reduce the battery temperature. Once the battery temperature drops below the safe temperature threshold, the charging and discharging operations are automatically resumed and the V2G charging and discharging tasks are continued. If a power grid failure occurs, the battery discharge mode will be stopped immediately and switched to the vehicle's self-use mode to avoid the risks of feeding back electrical energy to an unstable power grid and ensure the safety of the vehicle and passengers.
[0105] In the embodiment of the present application, by implementing the above-mentioned exception handling strategy, it is possible to respond quickly when encountering various abnormal situations to ensure the health of the battery. Even in the case of wireless communication interruption, basic charging operations can be maintained through basic PWM signals, which enhances the stability and reliability of the vehicle, the target charging pile and the grid dispatching platform. The immediate response and heat dissipation operation to battery overheating helps to extend battery life and reduce the negative impact of charging and discharging operations on battery performance. Immediately stopping the discharge mode in the event of a grid failure not only protects the stable operation of the grid, but also ensures the safety of users and vehicles.
[0106] The technical solutions of the embodiments of the present application are illustrated below with reference to preferred implementation methods.
[0107] Currently, the industry primarily utilizes DC V2G (vehicle-to-grid) technology. DC V2G technology uses bidirectional power converters to enable bidirectional energy flow between electric vehicle batteries and the grid, with the primary power conversion performed by DC V2G bidirectional charging stations. This is due to high costs, heavy loads, and bulky equipment, making it limited in densely populated areas like residential communities. AC V2G technology primarily utilizes OBCs to convert DC power into AC power for loads, enabling the connection of electric vehicles to the grid. Compared to DC V2G, AC V2G offers advantages such as lower equipment costs, better compatibility, and easier installation, making it more suitable for home and small commercial applications. However, AC V2G technology still faces numerous challenges in communication and control. Currently, the AC interface only uses PWM communication, limiting AC V2G systems to simple charging functions and incapable of implementing advanced features such as bidirectional power transmission control, grid dispatch response, and information exchange. These hardware interface issues severely limit the full potential of AC V2G technology and its widespread deployment.
[0108] The embodiment of the present application proposes an AC V2G communication control method, and the entire vehicle can interact through the AC V2G communication method with little or no modification, thereby realizing safe and efficient power transmission and basic control functions between electric vehicles and the power grid, and improving the adaptability and reliability of the AC V2G system. The modification cost is low, and it is more suitable for applications in high-aggregation power consumption scenarios such as homes and small commercial places. By utilizing the existing OBC's integrated AC / DC conversion module (such as 6.6kW bidirectional topology), reusing its hardware architecture, and only adding contactors and current sensors to some models, it saves the cost and volume of the AC / DC conversion module compared to independent V2G devices, and realizes low-cost safe and efficient power transmission and basic control functions between electric vehicles and the power grid, and improves the adaptability of the AC V2G system to application scenarios.
[0109] The method of the embodiment of the present application is further illustrated below.
[0110] In this embodiment, the communication device (communication system) may include an on-board terminal, a charging station terminal, and a communication protocol stack. The on-board terminal includes a bidirectional OBC (including a PWM modulation module) with V2G functionality, a Bluetooth module, and a BMS. The charging station terminal includes an AC charging station (including a PWM demodulation module), a Bluetooth module, and a power grid interface. The communication protocol stack may include a basic protocol layer based on PWM frequency variation, overlaid with a Bluetooth high-level protocol.
[0111] Optionally, the vehicle is connected to an AC V2G bidirectional charging station. The charging station receives grid dispatch instructions and forwards them to the vehicle via the Bluetooth communication channel established above. Vehicle-to-pile PWM hard-wired communication enables automatic Bluetooth binding between the vehicle and the charging station. Once Bluetooth binding is established, information can be transmitted using the Bluetooth data transmission protocol, exchanging charging parameters (such as SOC and charging power). Through this new type of Bluetooth interaction, the vehicle and AC V2G bidirectional charging station execute the charging and discharging process.
[0112] In this embodiment, during the vehicle-to-pile connection process, the vehicle is connected to the AC V2G charging pile, and Bluetooth pairing is automatically triggered through PWM hard-wired communication. The charging pile receives the grid dispatch command and forwards it to the vehicle through the established Bluetooth channel. The vehicle-to-pile exchange key parameters such as SOC and charge and discharge power through the Bluetooth protocol. During the charging and discharging process, the vehicle OBC switches to a bidirectional working mode (reusing the original AC / DC module). The charging / discharging operation is performed according to the negotiated parameters, and real-time data synchronization is maintained via Bluetooth throughout the process.
[0113] Figure 2 : is a flow chart of a method for connecting a vehicle and a charging pile via Bluetooth according to an embodiment of the present application. Figure 2 As shown, the method may include the following steps:
[0114] Step S201: The vehicle connects to the charging station. The vehicle establishes contact with the charging station through a physical connection and prepares for V2G interaction.
[0115] Step S202: PWM signal initialization: The PWM signal of the charging pile is initialized to prepare for subsequent Bluetooth automatic pairing and information transmission.
[0116] In step S203, the charging station sends a synchronization header. The charging station sends a specific synchronization header via a PWM signal to the vehicle to identify the start of communication. The transmission of the synchronization header ensures the consistency of communication between the two parties and provides time synchronization for subsequent MAC address exchange.
[0117] Step S204: The vehicle parses the synchronization header. After receiving the synchronization header, the vehicle begins to parse and identify the PWM signal, preparing for the subsequent MAC address transmission.
[0118] In step S205, the vehicle sends its MAC address to the charging station. The vehicle sends its MAC address to the charging station via a PWM signal. This ensures that the charging station can identify and pair with the vehicle.
[0119] Step S206: The charging station receives and verifies the vehicle's MAC address. After receiving the vehicle's MAC address, the charging station verifies its correctness and uniqueness to prevent unauthorized devices from accessing the vehicle.
[0120] In step S207, the charging pile sends its own MAC address to the vehicle. The charging pile sends its own MAC address to the vehicle, completing the communication address exchange between the two parties and ensuring two-way communication between the vehicle and the charging pile.
[0121] In step S208, the vehicle receives and verifies the MAC address of the charging station. After receiving the MAC address of the charging station, the vehicle performs verification to ensure the integrity of the information. MAC address verification is essential for establishing a secure Bluetooth connection, preventing errors or malicious interference in communication.
[0122] Step S209: The vehicle and the charging station both activate their respective Bluetooth modules. After the MAC address verification is successful, the vehicle and the charging station activate their respective Bluetooth modules and prepare for Bluetooth pairing.
[0123] Step S210: Automatic pairing based on the exchanged MAC addresses. The vehicle and charging station automatically perform Bluetooth pairing based on the exchanged MAC address information, eliminating the need for manual operation. Automatic pairing simplifies the user experience, improving pairing efficiency and user experience.
[0124] Step S211: Establish an encrypted BLE connection. After successful pairing, both parties establish an encrypted BLE (Bluetooth Low Energy) connection to ensure the security of the communication content. Establishing an encrypted BLE connection provides security for subsequent data exchange, protecting user privacy and system security.
[0125] In an embodiment of the present application, after the vehicle is connected to the AC charging pile, the Bluetooth binding of the vehicle and the charging pile is performed through the PWM signal of the AC charging pile. The specific method is that the charging pile transmits the MAC address of the vehicle or pile by changing the PWM signal frequency (such as 2kHz~10kHz) for one-to-one matching and binding, to prevent problems such as multiple Bluetooth cannot be accurately bound or binding errors. The Bluetooth MAC address (48 bits, such as 00:11:22:33:44:55) is split into 6 bytes, and each byte is mapped to a specific PWM frequency. The transmission frame structure may include a synchronization header, device type, MAC length, MAC data, and CRC check. Among them, synchronization header: 2kHz→10kHz→5kHz (lasting 100ms); device type: 1 byte (0x01=vehicle, 0x02=charging pile); MAC length: fixed to 6 bytes; MAC data: 6-byte Bluetooth MAC address; CRC check: 2 bytes to ensure data integrity.
[0126] Optionally, the two-way communication security enhancement mechanism can also include timestamp verification, one-time keys, and asymmetric encryption. For timestamp verification, a timestamp (4 bytes, UTC time) is attached to the MAC address when it is transmitted, and the receiver verifies that the time difference is ≤5 seconds to prevent replay attacks. For one-time keys (OTP), a dynamically generated OTP (such as a 6-digit number) is embedded in the PWM transmission for secondary verification during Bluetooth pairing. For asymmetric encryption, a pre-shared RSA public key is used to exchange encrypted session keys through PWM before Bluetooth pairing.
[0127] Optionally, the two-way communication security enhancement mechanism exception handling can include MAC verification failure and Bluetooth connection timeout. For MAC verification failure, if the received MAC address is formatted incorrectly or the CRC check fails, a 10kHz emergency signal is sent to terminate pairing. For Bluetooth connection timeout, if a BLE connection is not established within 5 seconds after successful pairing, the saved MAC address is automatically cleared, requiring pairing again.
[0128] Optionally, after the Bluetooth binding pairing is completed, the vehicle and charging pile are bound to each other via Bluetooth, and information is transmitted using the Bluetooth data transmission protocol, which may include but is not limited to the following characteristic values: battery status (SOC, SOH, temperature); charging parameters (voltage, current, power); grid demand (peak and valley electricity prices, peak-shaving instructions); and security authentication (digital certificate exchange).
[0129] Figure 3 This is a flow chart of a method for charging and discharging a vehicle and a charging pile according to an embodiment of the present application. Figure 3 As shown, the method may include the following steps:
[0130] Step S301: If Bluetooth binding is completed, perform initialization operations. After Bluetooth binding is successful, the vehicle and the charging pile begin to perform initialization procedures, such as setting communication parameters, confirming the charge and discharge mode, and presetting safety policies.
[0131] Step S302: Determine the battery mode. If the battery mode is determined to be G2V charging mode, then the charging process of steps S303 to S307 may be executed. If the battery mode is determined to be V2G discharging mode, then the discharging process of steps S308 to S312 may be executed.
[0132] Step S303: Detecting grid parameters: In charging mode, the charging station starts detecting grid parameters, including real-time voltage, frequency, and available power, to ensure that the charging process complies with grid regulations and avoids adverse effects on the grid.
[0133] Step S304: Initiate AC-DC conversion. Upon detecting that the grid parameters meet charging requirements, the charging station's AC-DC converter activates, converting the grid's AC power into DC power suitable for charging the electric vehicle's batteries, providing energy conversion for the charging operation.
[0134] Step S305: Execute a three-stage charging operation. The charging process is performed according to a three-stage charging strategy, namely, constant current charging, constant voltage charging, and floating charging stages, to optimize battery charging efficiency and extend battery life.
[0135] Step S306: Real-time charging monitoring. Continuously monitor the battery status, including SOC, temperature, and charge and discharge current, to ensure battery safety and respond promptly to any abnormal conditions.
[0136] Step S307: Determine whether the charging termination condition is met. The real-time monitoring data is used to determine whether a predetermined charging termination condition is met, such as when the SOC reaches the target value or the battery temperature is too high, to determine whether to stop charging to avoid overcharging or battery damage.
[0137] Step S308: Evaluate the battery status. When the discharge mode begins, the battery status is evaluated, including SOC, health status, temperature, etc., to ensure that the battery has sufficient energy to discharge to the grid without damaging the battery health.
[0138] Step S309: start the DC-AC inverter.
[0139] Step S310: Grid-connected synchronization control. When the vehicle performs a discharge operation, grid-connected synchronization control is performed to ensure that the discharge current is synchronized with the grid frequency and phase, prevent grid disturbances, and ensure stable grid operation.
[0140] Step S311: Power quality adjustment: During the discharge process, the power quality, including voltage, current, and power factor, is continuously monitored and adjusted to ensure that the power fed back to the grid meets grid standards, thereby improving discharge efficiency and grid compatibility.
[0141] Step S312: Determine whether the charge / discharge termination conditions are met. Based on the battery status and grid demand during the discharge process, determine whether the discharge termination conditions are met, such as when the SOC drops to a preset threshold or the grid load returns to normal, to determine whether to stop the discharge operation.
[0142] Step S313: Entering the standby mode. That is, when it is detected that the charging end condition or the discharging end condition is met, the battery can enter the standby mode.
[0143] Figure 4This is a flow chart of a method for handling abnormal charging and discharging between a vehicle and a charging pile according to an embodiment of the present application. Figure 4 As shown, the method may include the following steps:
[0144] Step S401: Detect abnormal conditions during the charge and discharge process. Continuously monitor various parameters during the charge and discharge process, such as current, voltage, temperature, and communication status, to promptly detect any deviations from normal ranges, including but not limited to communication interruptions, overcurrent / overvoltage, battery overheating, and grid failures.
[0145] Step S402: Determine the type of abnormality. If the abnormality is a communication interruption, then execute steps S402 through S404. If the abnormality is an overcurrent / overvoltage, then execute steps S405 through S406. If the abnormality is a battery overheat, then execute steps S407 through S408. If the abnormality is a power grid failure, then execute steps S409 through S410.
[0146] Step S403: Switch to the PWM basic protocol to maintain basic functions. When a communication interruption occurs, the system automatically switches to the PWM basic protocol to maintain basic charge and discharge control functions when wireless communication such as Bluetooth fails, ensuring that energy exchange is not immediately interrupted while maintaining basic safety and control.
[0147] Step S404: Attempt to restore the Bluetooth connection. While switching to the PWM basic protocol, attempt to re-establish the Bluetooth connection to quickly restore full communication functions, restore advanced charge and discharge control and data interaction capabilities, and improve system stability and user experience.
[0148] Step S405: The hardware protection circuit is immediately disconnected. In the event of an overcurrent or overvoltage condition, the hardware protection circuit will immediately shut down the charging and discharging channels to prevent damage to the battery or charging station circuit.
[0149] Step S406: Record the fault code and issue an early warning. The fault code of this abnormality is recorded and an early warning is issued to the user and the backend to facilitate subsequent troubleshooting and maintenance by technical personnel, while also providing users with timely safety warnings.
[0150] Step S407: Reduce power and activate the cooling system. When battery overheating is detected, the charging and discharging power is automatically reduced and the cooling system is activated to reduce heat generation and accelerate heat dissipation, protecting the battery from high temperature damage and extending battery life.
[0151] Step S408: Continue charging and discharging after the temperature has recovered. After monitoring that the battery temperature has dropped to a safe range, the charging and discharging operation is automatically resumed. The above mechanism ensures the continuity and efficiency of the charging and discharging process.
[0152] Step S409: Execute islanding protection and stop discharging to the grid. When a grid fault occurs, immediately stop discharging from the battery to the grid and execute islanding protection measures to prevent current backflow from damaging the battery or vehicle and further impacting the faulty grid.
[0153] Step S410: Switching to vehicle self-use mode. After a grid failure, the charging and discharging mode is switched to vehicle self-use mode, which prioritizes the vehicle's own power needs, provides necessary power services, ensures safe travel, and avoids the risks of charging and discharging operations in an unstable grid environment.
[0154] For example, when a vehicle's charging plug is plugged into a charging station, the resistance of the charging connection confirmation signal line changes, triggering the connection detection mechanism. The charging station's control and steering circuitry outputs a pulse-width modulated signal with an initial duty cycle of 5%. The charging station first transmits a synchronization signal sequence with a specific frequency combination, such as 2 kHz for 100 milliseconds, 10 kHz for 50 milliseconds, and 5 kHz for 150 milliseconds. After the vehicle successfully decodes the signal, it converts the 6-byte Bluetooth MAC address into a corresponding frequency signal response, with each byte corresponding to a 0.1 kHz increment. Upon receiving the signal, the charging station responds with its own MAC address in the same manner, completing the pairing information exchange. The dispatch center (grid dispatch platform) issues structured command data containing fields such as the command number, 5kW power requirement, 2-hour duration, and quality of service level. The charging station forwards the complete command content via the Bluetooth Low Energy Generic Attribute Profile's Specific Characteristic Value channel. The battery management system monitors the current state of charge in real time, displaying, for example, an SOC of 80% and an ambient temperature reading of 32 degrees Celsius. Based on the battery's rated capacity, temperature compensation factor, and health status, the actual available discharge capacity of 43.7 kWh is calculated. The DC conversion stage converts the battery pack voltage, and the inverter unit uses space vector pulse width modulation technology to output three-phase AC power at a switching frequency that meets the grid-connected fluctuation range and frequency accuracy requirements. Grid frequency deviation is calculated in real time within a 200 millisecond detection window. Output power is dynamically adjusted based on a preset algorithm. When the frequency is detected to be below 50 Hz, the discharge power is increased by 2% for every 0.1 Hz deviation. Upon completion of the discharge task, the system automatically generates a structured settlement report containing the precise end timestamp, the actual discharge amount of 10.27 kWh, and the corresponding profit of 6.16 RMB. This report is then transmitted back to the charging station system via an established Bluetooth channel.
[0155] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0156] According to another aspect of the embodiments of the present application, corresponding to the embodiment of the above-mentioned method for controlling a battery in a vehicle, this specification also provides a device for controlling a battery in a vehicle.
[0157] Figure 5 is a schematic diagram of a battery control device in a vehicle according to an embodiment of the present application. Figure 5 As shown, the control device 50 of the battery in the vehicle may include: a receiving module 502, a verification module 504, an establishment module 506, a sending module 508 and a control module 510. Among them, the receiving module 502 is used to receive the communication address information from the target charging pile in response to the successful physical connection between the vehicle and the target charging pile; the verification module 504 is used to use the address verification information to verify the first wireless communication address and obtain a verification result; the establishment module 506 is used to establish a wireless communication connection between the vehicle and the target charging pile based on the first wireless communication address in response to the verification result indicating that the verification of the first wireless communication address is successful; the sending module 508 is used to use the wireless communication connection to send the first state information of the vehicle and the charging demand information of the vehicle to the target charging pile; the control module 510 is used to receive the control strategy from the target charging pile and control the battery to enter the charging mode or the discharging mode according to the control strategy.
[0158] An embodiment of the present application further provides a vehicle, comprising: a memory storing an executable program; and a processor for running the program, wherein the method of each embodiment of the present application is executed when the program is running.
[0159] An embodiment of the present application further provides a computer-readable storage medium, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present application.
[0160] An embodiment of the present application further provides a computer program product, including a computer program, which implements the methods in various embodiments of the present application when executed by a processor.
[0161] An embodiment of the present application further provides a computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method in each embodiment of the present application is implemented.
[0162] The embodiments of the present application further provide a computer program, which, when executed by a processor, implements the methods in the above-mentioned embodiments of the present application.
[0163] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0164] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of the units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0165] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0166] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0167] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk, etc., various media that can store program code.
[0168] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for controlling a battery in a vehicle, characterized in that: Applied to a vehicle, the method comprises: In response to a successful physical connection between the vehicle and the target charging pile, receiving communication address information from the target charging pile, wherein the communication address information includes a first wireless communication address and address verification information of the target charging pile, and the target charging pile is connected to a power grid dispatching platform; Verifying the first wireless communication address using the address verification information to obtain a verification result; In response to the verification result indicating that the first wireless communication address is successfully verified, establishing a wireless communication connection between the vehicle and the target charging pile based on the first wireless communication address; Using the wireless communication connection, sending first status information of the vehicle and charging demand information of the vehicle to the target charging pile, wherein the first status information is used to indicate the operating status of a battery in the vehicle, and the power grid dispatching platform is used to determine a control strategy based on the first status information, the charging demand information, and second status information of the power grid dispatching platform, and send the control strategy to the target charging pile, wherein the second status information is used to indicate the operating status of the power grid dispatching platform; The control strategy is received from the target charging pile, and the battery is controlled to enter a charging mode or a discharging mode according to the control strategy.
2. The method according to claim 1, characterized in that In response to the verification result indicating that the verification of the first wireless communication address is successful, establishing a wireless communication connection between the vehicle and the target charging pile based on the first wireless communication address, including: In response to the verification result indicating that the verification of the first wireless communication address is successful, sending the second wireless communication address of the vehicle to the target charging pile; In response to the target charging pile successfully verifying the received second wireless communication address, receiving the first wireless communication address from the target charging pile, and verifying the first wireless communication address to obtain a first verification result; In response to the first verification result indicating that the security level of the wireless communication connection to be established is higher than a security level threshold, pairing the first wireless communication address with the second wireless communication address to obtain a pairing result; Based on the pairing result, the wireless communication connection is established between the vehicle and the target charging pile.
3. The method according to claim 2, characterized in that Based on the pairing result, establishing the wireless communication connection between the vehicle and the target charging pile includes: In response to the pairing result being that the first wireless communication address and the second wireless communication address are successfully paired, obtaining first verification information of the first wireless communication address, and using the first verification information to verify the pairing process of the first wireless communication address and the second wireless communication address to obtain a second verification result, wherein the first verification information is used to indicate a security level of the pairing of the second wireless communication address and the first wireless communication address; In response to the second verification result being that the first verification information meets a safety level threshold, establishing the wireless communication connection between the vehicle and the target charging pile; The method further includes at least one of the following: in response to the pairing result being that the first wireless communication address is successfully paired with the second wireless communication address, and the wireless communication connection is not successfully established between the vehicle and the target charging pile within a target time period, clearing the received first wireless communication address, wherein the target charging pile is configured to clear the received second wireless communication address; In response to the pairing result that the first wireless communication address and the second wireless communication address are successfully paired, and the format of the received first wireless communication address is abnormal, and / or the format of the second wireless communication address received by the target charging pile is abnormal, the pairing between the first wireless communication address and the second wireless communication address is canceled.
4. The method according to claim 1, wherein Verifying the first wireless communication address to obtain a first verification result includes: Obtaining second verification information of the first wireless communication address, wherein the second verification information is used to indicate the time when the target charging pile sends the first wireless communication address to the vehicle; In response to the second verification information being less than or equal to a preset time threshold, determining that the first verification result indicates that a security level of the wireless communication connection to be established is higher than a security level threshold; The address verification information is used to indicate the integrity of the first wireless communication address. The first wireless communication address is verified using the address verification information to obtain a verification result, including: Determining an address verification value corresponding to the address verification information; In response to the address verification information being identical to the address verification value, determining that the verification result indicates that verification of the first wireless communication address is successful.
5. The method according to claim 1, wherein In response to a successful physical connection between the vehicle and the target charging pile, receiving communication address information from the target charging pile, including: In response to a successful physical connection between the vehicle and the target charging pile, receiving a target transmission frame from the target charging pile, wherein the target charging pile is used to split the first wireless communication address and, based on the split first wireless communication address, adjust the frequency of the pulse width modulation signal of the target charging pile to obtain the target transmission frame; The target transmission frame is parsed to obtain the first wireless communication address and the address verification information.
6. The method according to claim 1, characterized in that Using the wireless communication connection, sending the first status information of the vehicle and the charging requirement information of the vehicle to the target charging pile includes: Using the wireless communication connection, controlling the first wireless communication module of the vehicle to send the first status information and the charging demand information to the second wireless communication module of the target charging pile, wherein the target charging pile is configured to send the first status information and the charging demand information to the power grid dispatching platform; The method also includes: controlling the first wireless communication module to receive the control strategy from the second wireless communication module, wherein the control strategy is determined based on the control mode of the battery, the first status information and the attribute information of the target charging pile, and the control mode is determined based on the second status information and the charging demand information.
7. The method according to claim 6, characterized in that The second state information includes power load information and power price information, the charging demand information includes power price demand information and load demand information, the attribute information includes at least current attributes, the first state information includes at least current state information, the control strategy includes a charging control strategy and a discharging control strategy, and controlling the battery to enter a charging mode or a discharging mode according to the control strategy includes: In response to the first wireless communication module receiving the discharge control strategy, controlling the battery to enter the discharge mode, wherein, in the discharge mode, the power load information is greater than or equal to a power load threshold, and the load demand information is to allow triggering control of the battery to perform a discharge operation, the power grid dispatching platform is configured to determine the discharge control strategy based at least on a discharge current, the discharge current being a minimum value between the current state information and the current attribute, and the discharge control strategy being configured to represent a rule for controlling the battery to perform the discharge operation toward a target charging pile; In response to the first wireless communication module receiving the charging control strategy, controlling the battery to enter the charging mode, wherein, in the charging mode, the power load information is less than the power load threshold, and the electricity price information satisfies the electricity price requirement information, the power grid dispatching platform is configured to determine the charging control strategy based at least on the charging current, the charging current being a minimum value between the current state information and the current attribute, and the charging control strategy is configured to represent a rule for performing a charging operation on the battery using the target charging pile; The method further comprises: In response to the battery being in the discharge mode, controlling the battery to perform the discharge operation; In response to the battery being in the charging mode, the charging operation is performed on the battery.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: in a process of controlling the battery to enter the charging mode or the discharging mode, in response to detecting an abnormal operation state of the battery, determining an abnormality type of the abnormal operation state; Determining an exception handling strategy associated with the exception type, wherein the exception handling strategy is used to represent a rule for handling the abnormal operation state of the exception type; The exception handling strategy includes at least one of the following: In response to the abnormality type being a wireless communication interruption type, re-binding the vehicle to the target charging pile via wireless communication, wherein the target charging pile is configured to maintain the charging operation via a pulse width modulation signal of the target charging pile; In response to the abnormality type being an overcurrent type or an overvoltage type, stopping controlling the battery to enter the charging mode or the discharging mode; In response to the abnormality type being a battery overheat type, performing a heat dissipation operation on the battery; in response to the temperature of the battery after performing the heat dissipation operation being less than a temperature threshold corresponding to the battery overheat type, controlling the battery to enter the charging mode or the discharging mode; In response to the abnormality type being a grid fault type, controlling the battery to enter the discharge mode is stopped.
9. A vehicle, characterized in that: include: a memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 8 when running.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 8.
Citation Information
Cited By
Method for repairing battery pack by vehicle and method for repairing battery pack by charging pile
CN120863420A
Charger control method and system based on autonomous decision making and accurate positioning
CN121440849A
A charging machine control method and system based on autonomous decision and accurate positioning
CN121440849B