Vehicle charging control method, electronic device, and vehicle
By recording and updating the charging gun status while the vehicle is in sleep mode, the problem of the vehicle being unable to recognize changes in the charging gun connection is solved, normal charging is restored, and the user experience is improved.
Patent Information
- Application Number
- CN202611402793.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-06
AI Technical Summary
During vehicle charging, if the user stops charging and the vehicle enters a sleep state, and the charging gun is unplugged and then plugged back in, the on-board charger cannot recognize the change in the charging gun's connection status, resulting in the inability to charge normally.
The connection status of the charging gun is recorded before the vehicle enters sleep mode, and the on-board charger is woken up after the user unplugs the gun, updating the charging gun status to disconnected, and updating it to connected when the gun is plugged in, generating a change signal to trigger normal charging.
Ensuring the charging gun's status matches the actual situation avoids charging failures and improves the user experience.
Smart Images

Figure CN123040635A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle control technology, and in particular to a vehicle charging control method, electronic device, and vehicle. Background Technology
[0002] Currently, if a user actively triggers the charging stop during the charging process, the vehicle will control the charging to stop, and after a certain delay, the vehicle will enter a sleep state.
[0003] However, if a user unplugs the charging gun after the vehicle has entered sleep mode and then plugs it back in to charge, it often fails to charge. Summary of the Invention
[0004] In view of this, the purpose of this application is to propose a vehicle charging control method, electronic device and vehicle, which can wake up the on-board charger by unplugging the charging gun after the vehicle enters a sleep state triggered by stopping charging, so that the on-board charger can change the connection status of the charging gun to the disconnected state in a timely manner, so that the disconnected to connected signal can be generated normally after the charging gun is plugged in again, and normal charging can be performed.
[0005] To achieve the above objectives, this application provides a vehicle charging control method, comprising: During the charging process, in response to receiving a stop charging command, the vehicle is controlled to stop charging; After the first delay and while the charging gun remains connected, the on-board charger enters a sleep state, and the charging gun status recorded by the on-board charger is the connected state. In response to the action of unplugging the charging gun, the on-board charger is woken up, and the on-board charger changes the recorded state of the charging gun to the disconnected state. In response to the insertion of the charging gun, the on-board charger changes the state of the charging gun from the disconnected state to the connected state, generates a disconnect-to-connection change signal, and starts charging normally based on the change signal.
[0006] Based on the same inventive concept, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method described above when executing the computer program.
[0007] Based on the same inventive concept, this application also provides a vehicle including the electronic equipment described above.
[0008] As can be seen from the above, the vehicle charging control method, electronic device, and vehicle provided in this application can receive a stop charging command issued by the user during the vehicle charging process. Based on this stop charging command, the vehicle will be controlled to stop charging. After a first delay, the on-board charger will enter a sleep state. If the user does not unplug the charging gun within the first delay, the on-board charger will retain the record that the charging gun was in a connected state before entering the sleep state. In the sleep state, if the user unplugs the charging gun, the on-board charger will be awakened, allowing it to promptly change the recorded charging gun state from connected to disconnected. Then, when the user plugs the charging gun back in, the charger will receive the insertion action, causing the on-board charger to change the charging gun state from disconnected to connected. This timely generation of a disconnect-to-connection change signal allows the vehicle to start charging normally, achieving the purpose of recharging without encountering a situation where charging cannot be resumed, thus improving the user experience. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 This is a schematic diagram illustrating an application scenario of an embodiment of this application; Figure 2 This is a flowchart of a vehicle charging control method according to an embodiment of this application; Figure 3 A flowchart of a vehicle charging control method according to another embodiment of this application; Figure 4 This is a flowchart of a vehicle charging control method according to another embodiment of this application; Figure 5 This is a structural block diagram of a vehicle charging control device according to an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0011] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.
[0012] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0013] Definitions: OBC: On-Board Charger.
[0014] HUT: Head Unit, host controller.
[0015] VCU: Vehicle Control Unit.
[0016] NM: Network Management.
[0017] CC: Connection Confirmation.
[0018] CP: Control Pilot, charging guidance.
[0019] CAN: Controller Area Network, local area network bus.
[0020] In related technologies, the vehicle is equipped with a stop charging control (for example, a stop charging button is provided on the central control display of HUT). When the user triggers the stop charging control during the charging process, the vehicle will stop charging, based on the fact that the stop charging control has a memory function.
[0021] Furthermore, after a certain period of time without charging, the vehicle will enter a sleep state, at which time the on-board charger (OBC) will also enter a sleep state. If the charging gun was connected before entering the sleep state, the OBC will retain the memory that the charging gun was connected. Thus, after entering the sleep state, since the OBC also goes into sleep mode, it will retain the memory that the charging gun was connected.
[0022] Then, if the user unplugs the charging gun, the onboard charger, having entered sleep mode, retains the record of the charging gun being connected. When the user tries to plug the charging gun back in, the vehicle is awakened by the plugging in, but the onboard charger's record of the charging gun remaining connected shows no change. Furthermore, because the stop-charging control has a memory function, remembering when the user triggered it, the vehicle believes the user was still in the state before the stop-charging control was activated, and therefore cannot resume charging. This fails to meet the user's need to plug in the charging gun again.
[0023] refer to Figure 1 This is a schematic diagram illustrating an application scenario of the vehicle charging control method provided in this application embodiment. The application scenario includes: a charging gun 101 and a vehicle 102, wherein the vehicle is equipped with a vehicle controller (VCU) 1021 and an on-board charger (OBC) 1022.
[0024] When the user inserts the charging gun 101 into the vehicle 102, the vehicle controller 1021 and the on-board charger 1022 are activated. The vehicle controller 1021 sends a charging command to the on-board charger 1022, which then initiates charging. During charging, if the vehicle controller 1021 receives a stop-charging command from the user, it will control the on-board charger 1022 to stop charging. After a first delay following the stop-charging, the on-board charger 1022 will enter a sleep state. If the user does not unplug the charging gun 101 within this first delay, the on-board charger 1022 will retain the connection status of the charging gun 101 before entering the sleep state. In sleep mode, if the user unplugs the charging gun 101, the on-board charger 1022 will be woken up, allowing it to promptly change the recorded state of the charging gun 101 from connected to disconnected. Then, when the user plugs the charging gun 101 back in, the on-board charger 1022 will change the state of the charging gun 101 from disconnected to connected, thus generating a disconnect-to-connection change signal. This signal is then sent to the vehicle controller 1021, which, triggered by the change signal, can control the on-board charger 1022 to start charging normally, achieving the purpose of recharging.
[0025] Based on the above, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0026] The vehicle charging control method proposed in the embodiments of this application, such as Figure 2 As shown, the method includes: Step 201: During the charging process, in response to receiving a stop charging command, the vehicle is controlled to stop charging.
[0027] In practice, during the charging process, after the vehicle is powered on, a stop charging control (e.g., a hardware button or a software touch icon) is set on the display screen of the host controller (HUT) on the vehicle. If the user wants to stop the vehicle from charging midway, he can trigger the stop charging control, and then the host controller will generate a stop charging command and send the stop charging command to the vehicle controller.
[0028] After receiving the stop charging command, the vehicle controller will control the on-board charger to disconnect the charging gun from the battery and stop charging.
[0029] Step 202: After the first delay and while the charging gun remains connected, the on-board charger enters a sleep state, and the charging gun status recorded by the on-board charger is the connected state.
[0030] In practice, a timer starts after charging stops. If the user does not unplug the charging gun within the first delay after the timer starts, the charging gun remains connected to the vehicle. After the first delay ends, the on-board charger enters a sleep state. During this sleep state, the on-board charger remembers the recorded charging gun status, and the charging gun status will remain the same as the connection status recorded before it went into sleep mode.
[0031] Step 203: In response to the action of unplugging the charging gun, control the on-board charger to wake up, and the on-board charger changes the recorded state of the charging gun to the disconnected state.
[0032] In practice, the vehicle can monitor the unplugging of the charging gun while in sleep mode. If the unplugging action is detected, the on-board charger will be woken up and started to operate normally in order to record the unplugging action. In this way, the on-board charger can change the recorded charging gun status from connected to disconnected based on the unplugging action, thus matching the on-board charger with the actual unplugging of the charging gun.
[0033] Step 204: In response to the insertion of the charging gun, the on-board charger changes the state of the charging gun from the disconnected state to the connected state, generates a disconnected-to-connected change signal, and starts charging normally based on the change signal.
[0034] In practice, when a user wants to resume charging, they simply insert the charging gun into the vehicle's charging port. This will trigger the charging gun to accept the insertion action. At this point: If the on-board charger is in normal operation, it will directly change the recorded charging gun status from disconnected to connected based on the plugging action, generate a disconnect-to-connection change signal, and start charging normally based on the change signal. If the on-board charger is in a dormant state, it will be woken up by the insertion of the charging gun. Then, the on-board charger will change the recorded charging gun status from disconnected to connected based on the insertion action, generate a disconnect-to-connection change signal, and start charging normally based on the change signal.
[0035] The above scheme allows the system to receive a stop-charging command from the user during vehicle charging. Based on this command, the system stops charging, and after a first delay, the onboard charger enters a sleep state. If the user does not unplug the charging gun within this delay, the onboard charger retains the previous state (connected) for the charging gun. If the user unplugs the charging gun in sleep mode, the onboard charger is awakened, and its recorded state is changed from connected to disconnected. When the user plugs the charging gun back in, the system receives the insertion signal, causing the onboard charger to change its state back to connected. This timely signal triggers the vehicle to restart charging, preventing charging failures and improving the user experience.
[0036] If the user unplugs the charging gun within the first delay after the timer starts, the on-board charger can accurately detect the unplugging action. It then promptly changes the recorded charging gun status from connected to disconnected while the on-board charger is running (before entering sleep mode). After the first delay, both the vehicle controller and the on-board charger enter sleep mode. If the user wants to plug the charging gun back in to resume charging, the on-board charger will wake up and change the charging gun status from disconnected to connected, generating a disconnect-to-connection change signal. Based on this signal, normal charging will then begin.
[0037] In some embodiments, step 201, which involves controlling the vehicle to stop charging in response to receiving a stop charging command, includes: In response to the vehicle controller receiving a stop charging command, the stop charging flag is set to valid, and the vehicle is controlled to stop charging.
[0038] In practice, to accurately respond to charging stop commands, a charging stop flag is set in the vehicle controller. Upon receiving a charging stop command, the vehicle controller will set the charging stop flag to active (e.g., set to 1), preventing vehicle charging while the flag is active. Furthermore, to ensure normal response to charging stop commands even if the user does not unplug the charging gun, the charging stop flag will remain active.
[0039] To facilitate subsequent recharging, the charging stop flag will not remain active indefinitely. The specific adjustment process is as follows: Step 203 includes: Step A1: In response to receiving the action of unplugging the charging gun, control the on-board charger to wake up.
[0040] In practice, after the user unplugs the charging gun from the vehicle's charging port, a sensor on the vehicle's charging port can detect the unplugging action, thus generating a unplugging signal. Based on the unplugging signal, a vehicle charger wake-up signal is generated, which controls the vehicle charger to wake up and resume normal operation.
[0041] In step A2, the on-board charger changes the recorded state of the charging gun to the disconnected state and generates a wake-up command to send to the dormant vehicle controller. When the on-board charger enters the dormant state, the vehicle controller also enters the dormant state.
[0042] In specific implementation, in step 202 above, the on-board charger and the vehicle controller enter sleep mode together. After the on-board charger is woken up by unplugging the charging gun and enters normal operation, it retrieves the charging gun status record and matches the recorded charging gun status with the current unplugging action. Since the recorded charging gun status is connected and does not match the unplugging action, the charging gun status is changed from connected to disconnected. This ensures that the charging gun status recorded in the on-board charger matches the actual charging gun status.
[0043] Step A3: After receiving the wake-up command, the vehicle controller wakes up and resets the stop charging flag to invalid. The invalidation of the stop charging flag is one of the basic conditions for normal charging start.
[0044] In practice, to avoid a situation where the stop charging flag remains active, preventing subsequent charging attempts from proceeding normally, the vehicle controller, upon receiving a wake-up command from the on-board charger, will be able to detect the charging gun being unplugged. Based on this unplugging action, the vehicle controller will reset the stop charging flag to invalid (e.g., set it to 0).
[0045] Charging will only begin normally when the stop charging flag is invalid and all other charging conditions are met. These other charging conditions include at least: the battery is not fully charged, the charging gun is connected, and the charging gun can provide charging current to the battery.
[0046] The above scheme allows setting a stop charging flag, which controls the charging process. To ensure normal charging resumption later, the vehicle controller is activated when the on-board charger is turned off after the charging gun is disconnected, and the stop charging flag is reset to invalid, ensuring normal charging when the charging gun is plugged in again.
[0047] In some embodiments, step 204, which involves starting charging normally based on the change signal, includes: Step B1: The on-board charger sends the change signal to the vehicle controller.
[0048] In practice, after the user inserts the charging gun again, the on-board charger can change the recorded charging gun status from disconnected to connected based on the insertion action, generate a disconnect-to-connection change signal, and send the change signal to the vehicle controller through the transmission bus.
[0049] In step B2, after receiving the change signal, the vehicle controller determines that a charging gun insertion has occurred and that the stop charging flag remains invalid, and sends a charging permission command to the on-board charger.
[0050] In practice, when the vehicle controller receives a change signal and determines that the charging gun has been inserted, it will retrieve the stop charging flag. If the stop charging flag is invalid, the vehicle controller will generate a charge-allowing command and then send the charge-allowing command to the on-board charger.
[0051] Step B3: After receiving the charging permission command, the on-board charger acquires the battery signal, determines that the battery signal meets the charging conditions, and controls the charging of the battery.
[0052] In practice, after receiving the charging permission command, the on-board charger will retrieve the battery signal and compare it with the corresponding charging conditions. Only if the battery signal meets the charging conditions can the battery be charged. The on-board charger will then control the battery to connect to the charging gun so that the current from the charging gun can charge the battery.
[0053] The battery signals include: battery level and power supply voltage corresponding to the charging gun; the charging conditions include: the battery level has reached saturation and the power supply voltage corresponding to the charging gun meets the voltage requirements.
[0054] After receiving the charging permission command, the vehicle motor retrieves the battery power level and the power supply voltage corresponding to the charging gun. If the battery power level is saturated or the power supply voltage corresponding to the charging gun does not meet the voltage requirements, charging will be prohibited. If the battery power level is not saturated and the power supply voltage corresponding to the charging gun meets the voltage requirements, the charging gun will be connected to the battery to charge the battery.
[0055] The above solution allows the vehicle controller to determine whether charging is permitted based on the change signal generated by the on-board charger after the charging gun is reinserted, combined with the invalidity of the stop charging flag. It then generates a charging permission command and sends it to the on-board charger. If the on-board charger then determines that the battery signal meets the charging conditions, it will control the battery to charge, thus ensuring normal operation and resumption of charging upon reinsertion of the charging gun.
[0056] In some embodiments, during the hibernation state, a sentry mode is activated to monitor the unplugging action of the charging gun.
[0057] In practice, the sentry mode is a monitoring program set in the vehicle controller that can be activated when the on-board charger is in sleep mode to monitor the vehicle's charging port.
[0058] When the on-board charger enters sleep mode, the vehicle controller also enters sleep mode. After the vehicle controller enters sleep mode, it will activate the sentry mode, which has a monitoring function and can monitor the status of the vehicle's charging port.
[0059] Step 203 includes: Step C1: Detect the charging gun's unplugging action through the sentry mode, generate a first network management message, and send the first network management message to the on-board charger to wake up the on-board charger.
[0060] In practice, if the user pulls out the charging gun, the vehicle's charging port will generate a pull-out signal. The sentry mode can receive this pull-out signal in a timely manner and determine that the charging gun has been pulled out based on the signal. In order to transmit the pull-out action to the on-board charger, the sentry mode will generate a first network management message (e.g., an NM network management message) corresponding to the pull-out action. The sentry mode sends the first network management message to the on-board charger, so that the on-board charger can be woken up based on the first network management message and enter a normal operating state.
[0061] In step C2, when the on-board charger determines that the charging gun's state recorded before hibernation is connected, it controls the charging gun's state to change to disconnected.
[0062] In practice, after the on-board charger wakes up, it retrieves the charging gun status recorded before hibernation. Since the user did not unplug the charging gun before hibernation, the recorded charging gun status is "connected." This "connected" status does not match the unplugging action, so the on-board charger changes the charging gun status from "connected" to "disconnected," ensuring that the recorded charging gun status matches the actual charging gun situation.
[0063] The above solution enables timely detection of charging gun unplugging actions via the sentry mode, which in turn wakes up the on-board charger and changes the charging gun status from connected to disconnected, ensuring that the charging gun status always matches the plugging and unplugging status, thus enabling accurate charging control based on the charging gun status.
[0064] Specifically, the process of combining steps C1 and C2 with steps A1 to A3 to execute step 203 includes: Step D1: The charging gun is detected to be unplugged in sentinel mode, a first network management message is generated, and the first network management message is sent to the on-board charger to wake up the on-board charger.
[0065] Step D2: When the on-board charger determines that the charging gun status recorded before hibernation is connected, it controls the charging gun status to change to disconnected.
[0066] Step D3: The on-board charger generates a wake-up command and sends it to the vehicle controller.
[0067] In step D4, after receiving the wake-up command, the vehicle controller wakes up and resets the stop charging flag to invalid.
[0068] The above scheme uses a sentry mode combined with a stop charging flag to control the charging process when the charging gun is plugged in again. This ensures that if the conditions required for charging are met after the charging gun is plugged in again, charging can proceed normally.
[0069] In some embodiments, after the on-board charger changes the recorded charging gun state to a disconnected state in step 203, the method further includes: Step E1: After the on-board charger determines the state of the charging gun and completes the change from the connected state to the disconnected state, it controls the on-board charger to enter a sleep state.
[0070] In practice, the on-board charger changes the charging gun status from connected to disconnected. After the change is completed, if it is confirmed that there is no wake-up signal, it will control the on-board charger to enter sleep mode again to reduce the energy consumption of the on-board charger.
[0071] Alternatively, in step E2, after a second delay, the on-board charger is controlled to enter a sleep state.
[0072] In practice, after the on-board charger wakes up and changes the recorded charging gun status to the disconnected state, the second delay period begins to run. After the second delay period ends, the on-board charger will enter sleep mode again to reduce the energy consumption of the on-board charger.
[0073] The change action of the on-board charger changing the charging gun status from connected to disconnected generally takes a short time. The second delay is much longer than the change action itself. For example, if the change action takes 0.01 seconds, the second delay is 60 seconds.
[0074] The above scheme provides two ways to wake up the on-board charger and put it back into sleep mode. Users can choose between these two methods according to their actual needs. This allows the on-board charger to promptly change the charging gun status to disconnected state based on the gun removal action, and also allows it to promptly return to sleep mode, reducing the energy consumption of the on-board charger.
[0075] In some embodiments, after the on-board charger enters a sleep state, the system further includes: Step F1: If a plug-in wake-up source is detected, the dormant on-board charger will be woken up.
[0076] In practice, the user inserts the charging gun into the vehicle, which then detects the charging gun as a wake-up source, thereby waking up the dormant on-board charger and allowing it to operate normally.
[0077] Step F2: After the on-board charger is woken up, it generates a second network management message, determines the reason for waking up the on-board charger, and sends the second network management message and the reason for waking up to the vehicle controller.
[0078] In practice, after the on-board charger wakes up and operates normally, it generates a second network management message (NM network management message). This second network management message contains data that can be transmitted within the vehicle. The on-board charger also obtains the wake-up reason and combines it with the second network management message, so that the second network management message carries the wake-up reason and is sent to the vehicle controller.
[0079] In step F3, after the vehicle controller determines that it has received the second network management message and the wake-up reason, it determines that a charging gun insertion action has occurred, sends a charging permission command to the on-board charger, and starts charging using the on-board charger.
[0080] In practice, after receiving a second network management message carrying the wake-up reason from the on-board charger, the vehicle controller determines that a charging gun insertion action has occurred. The vehicle controller then retrieves the stop charging flag; if valid, it is set to invalid; otherwise, it remains unchanged. Next, the vehicle controller generates a charging permission command and sends it to the on-board charger. Upon receiving this command, the on-board charger retrieves the battery level and the corresponding power supply voltage for the charging gun. If the battery level is saturated or the power supply voltage for the charging gun does not meet the voltage requirements, charging is prohibited. If the battery level is not saturated and the power supply voltage for the charging gun meets the voltage requirements, the charging gun is connected to the battery to begin charging.
[0081] With the above scheme, if the user unplugs the charging gun and then plugs it back in, the vehicle controller can determine that the wake-up reason for the on-board charger carried in the second network management message is the charging gun plugging wake-up, and that it is from the second network management message of the on-board charger. The vehicle controller can then determine that the charging gun plugging action has occurred and will directly generate a charging permission command to allow the on-board charger to resume charging.
[0082] In some embodiments, step F1 includes: If at least one of the following is determined when a plug-in action is detected, namely, a charging guide (CP) wake-up, a charging gun connection confirmation (CC) wake-up, or a plug-in management message wake-up, the dormant on-board charger will be woken up.
[0083] In practice, charging guidance wake-up is a level change signal generated by charging guidance (CP) based on the insertion action; charging gun connection confirmation wake-up is a pulse signal generated by connection confirmation (CC) after the charging gun is inserted and confirmed to be able to connect normally; and insertion management message wake-up is a message signal generated by the battery manager after the insertion of the charging gun is confirmed.
[0084] After the user inserts the charging gun into the vehicle's charging port, the system can generate a corresponding charging guidance wake-up based on the insertion action; or, it can generate a charging gun connection confirmation wake-up based on the connection confirmation status of the charging gun determined by the insertion action; or, it can generate a charging gun management message based on the insertion action. Any of these wake-up methods can wake up the dormant on-board charger normally.
[0085] The above solution provides multiple wake-up methods, any of which can wake up the dormant on-board charger, providing diverse wake-up options for the on-board charger and enabling subsequent changes to the charging gun status.
[0086] In some embodiments, step 201 includes: Step 2011: During the charging process, the vehicle is in a powered-on state, and the vehicle controller and the on-board charger operate normally in the powered-on state.
[0087] In practice, during the charging process, if the vehicle is powered on, a charging stop control will be displayed on the central control screen. When the vehicle is powered on, both the vehicle controller and the on-board charger will operate normally, ensuring timely response to the triggering of the charging stop control.
[0088] Step 2012: In response to the user triggering the charging stop control, a stop charging command is generated and sent to the vehicle controller.
[0089] In practice, if a user wants to stop charging midway, the user will trigger the charging stop control, which will generate a corresponding stop charging command. This stop charging command will then be converted into a network transmission message (e.g., a CAN message) and sent to the vehicle controller.
[0090] Step 2013: After receiving the stop charging command, the vehicle controller generates a power cut-off signal and sends the power cut-off signal to the on-board charger.
[0091] In practice, after receiving the charging stop command, the vehicle controller will set the corresponding charging stop flag to valid and generate a power cut-off signal to send to the on-board charger. This power cut-off signal instructs the on-board charger to cut off the power supply and thus stop charging.
[0092] Step 2014: The on-board charger performs a power cut-off process according to the power cut-off signal to stop the vehicle from charging.
[0093] In practice, after receiving a power cut-off signal, the on-board charger will control the connection switch between the charging gun and the battery to disconnect, thus cutting off the charging power to the battery and stopping the charging of the battery.
[0094] The above solution allows the vehicle controller and on-board charger to work together to cut off the power supply and stop charging when the user triggers the charging stop control, thus responding promptly to the user's need to stop charging midway.
[0095] The vehicle charging control method of this application is described below with reference to a specific embodiment, such as... Figure 3 The logic diagram shown below illustrates the specific process as follows: S1, the charging gun is inserted into the vehicle for charging. During the charging process, the vehicle is powered on, and a stop charging control is provided on the vehicle's display screen.
[0096] S2, the user triggers the stop charging control, generates a stop charging command, and sends the stop charging command to the vehicle controller.
[0097] Once the vehicle is powered on, the display screen of the host controller (HUT) on the vehicle is equipped with a stop charging control (e.g., a hardware stop charging button or a software stop charging touch icon). If the user wants to stop the vehicle from charging midway, they can trigger the stop charging control, and then the host controller will generate a stop charging command and send the stop charging command to the vehicle controller.
[0098] S3, the vehicle controller receives the stop charging command, sets the stop charging flag to valid, and controls the vehicle to stop charging.
[0099] S4: After charging stops, a first delay timer is initiated. If the user does not unplug the charging gun after the first delay timer expires, the vehicle powers down and enters sleep mode. The corresponding vehicle controller and onboard charger also enter sleep mode. At this point, a sentry mode is activated upon entering sleep mode. This sentry mode has a monitoring function, capable of monitoring the status of the vehicle's charging port and thus detecting the insertion and removal of the charging gun.
[0100] S5, using the sentry mode to detect the charging gun being pulled out, generating a first network management message (e.g., an NM network management message), and sending the first network management message to the on-board charger to wake up the on-board charger.
[0101] When a user pulls out the charging gun, the vehicle's charging port generates a signal indicating that the charging gun has been pulled out. The Sentinel Mode can receive this signal in a timely manner and determine that the charging gun has been pulled out based on the signal. In order to transmit the action to the on-board charger, the Sentinel Mode generates a first network management message corresponding to the action.
[0102] S6, the on-board charger obtains the charging gun status recorded before hibernation as a connected state based on the first network management message corresponding to the gun unplugging action, controls the charging gun status to change to a disconnected state, and generates a wake-up command to send to the vehicle controller.
[0103] S7. After receiving the wake-up command, the vehicle controller wakes up and resets the stop charging flag to invalid. Charging will only start normally when the stop charging flag is invalid and all other charging conditions are met. These other charging conditions include at least: the battery is not fully charged, the charging gun is connected, and the charging gun can provide charging current to the battery.
[0104] After the on-board charger wakes up, the S8 and the vehicle controller enter sleep mode again after a second delay. After sleep mode, the sentry mode is restarted.
[0105] S9, after the user inserts the charging gun again, the sentry mode detects the insertion action of the charging gun. Based on this insertion action, the on-board charger will be woken up. The on-board charger will change the recorded charging gun status from disconnected to connected, generate a disconnected to connected change signal, and send the change signal to the vehicle controller through the transmission bus.
[0106] S10: After receiving the change signal, the vehicle controller determines that the charging gun insertion behavior has occurred and determines that the stop charging flag is kept invalid, and sends a charging permission command to the on-board charger.
[0107] If the vehicle controller receives a change signal and determines that a charging gun insertion has occurred, and the corresponding stop charging flag is valid, charging will be prohibited.
[0108] S11: After receiving the charging permission command, the on-board charger acquires the battery signal, determines that the battery signal meets the charging conditions, and controls the charging of the battery.
[0109] After receiving the charging permission command, the on-board charger will also check the battery level and the power supply voltage corresponding to the charging gun. If the battery level is saturated or the power supply voltage corresponding to the charging gun does not meet the voltage requirements, charging will be prohibited. If the battery level is not saturated and the power supply voltage corresponding to the charging gun meets the voltage requirements, the charging gun will be connected to the battery to charge the battery.
[0110] The above scheme allows the vehicle to stop charging upon receiving a user's command during charging. After a first delay, both the vehicle controller and the onboard charger enter a sleep state. If the user doesn't unplug the charging gun within this delay, the onboard charger retains the charging gun's previously connected state. Upon unplugging, the onboard charger is promptly awakened, changing the charging gun's state from connected to disconnected. This ensures the charging gun's state always matches the plugging / unplugging status, allowing the stop-charging flag to be reset to invalid. Subsequent plugging in will then be recognized, and charging will resume once the battery signal meets the charging conditions, preventing situations where charging is impossible and improving the user experience.
[0111] As another optional embodiment, the vehicle charging control method, such as Figure 4 As shown, it includes: S1', the charging gun is inserted into the vehicle for charging. During the charging process, the vehicle is powered on, and a stop charging control is provided on the vehicle's display screen.
[0112] S2', when the user triggers the stop charging control, a stop charging command is generated and sent to the vehicle controller.
[0113] S3' When the vehicle controller receives the stop charging command, it sets the stop charging flag to valid and controls the vehicle to stop charging.
[0114] S4': After charging stops, a first delay timer is started. If the user does not unplug the charging gun after the first delay timer ends, the vehicle power-off enters sleep mode, and the corresponding vehicle controller and on-board charger also enter sleep mode. In sleep mode, a sentry mode is activated. If the user detects an unplugging action but cannot wake up the on-board charger, or if waking up the on-board charger fails, the subsequent steps S5' will be performed.
[0115] When the user unplugs the charging gun, the vehicle is in a dormant state and cannot detect that the charging gun has been unplugged. Therefore, the stop charging flag in the vehicle controller remains valid, and the charging gun in the on-board charger remains connected.
[0116] S5', after determining that a plug-in wake-up source has been detected (e.g., a hard-wired signal corresponding to the charging gun connection confirmation (CC) of the charging interface after plugging in the plug), the dormant on-board charger is woken up.
[0117] S6' After the on-board charger is woken up, it generates a second network management message (e.g., an NM network management message), determines the reason for the on-board charger's wake-up, and sends the second network management message and the reason for the wake-up to the vehicle controller.
[0118] Among them, after the user inserts the charging gun into the vehicle's charging port, a corresponding charging guide (CP) wake-up can be generated based on the insertion action; or, the charging gun connection confirmation wake-up can be obtained by determining the charging gun connection confirmation (CC) status based on the insertion action; or, the charging gun management message generated based on the insertion action can be used to wake up the dormant on-board charger.
[0119] S7' After the vehicle controller confirms that it has received the second network management message and the wake-up reason, it determines that the charging gun insertion action has occurred, sets the stop charging flag to invalid, sends a charging permission command to the on-board charger, and starts charging using the on-board charger.
[0120] The above scheme allows the vehicle to stop charging upon receiving a user's stop-charging command during vehicle charging. After a first delay, both the vehicle controller and the on-board charger enter a sleep state. If the user does not unplug the charging gun within this delay, the on-board charger retains the connection status of the charging gun before entering sleep mode. If the user unplugs and then plugs the charging gun back in, the vehicle controller can determine that the wake-up reason for the on-board charger is a charging gun plug-in wake-up message from the on-board charger. The vehicle controller will then invalidate the stop-charging flag, thus generating a charging permission command. This allows the on-board charger to resume charging normally once the battery meets the charging conditions, preventing situations where charging is impossible and improving the user experience.
[0121] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.
[0122] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the claims of this application. In some cases, the actions or steps described in the claims of this application can be performed in a different order than that shown in the above embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0123] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a vehicle charging control device.
[0124] refer to Figure 5 The device includes: The stop charging control module 301 is configured to control the vehicle to stop charging in response to receiving a stop charging command during the charging process. The sleep control module 302 is configured to enter a sleep state when the on-board charger remains connected after a first delay, and the on-board charger records the charging gun status as a connected state. The gun removal response module 303 is configured to respond to the gun removal action of the charging gun, control the on-board charger to wake up, and the on-board charger changes the recorded state of the charging gun to the disconnected state. The charging module 304 is activated and configured to respond to the insertion action of the charging gun. The on-board charger changes the state of the charging gun from the disconnected state to the connected state, generates a disconnect-to-connection change signal, and starts charging normally based on the change signal.
[0125] In some embodiments, the charging stop control module 301 is specifically configured as follows: In response to the vehicle controller receiving a stop charging command, the stop charging flag is set to valid, and the vehicle is controlled to stop charging; The draw response module 303 is specifically configured as follows: In response to receiving a charging gun unplugging action, the on-board charger is controlled to wake up; The on-board charger changes the recorded charging gun status to the disconnected state and generates a wake-up command to send to the dormant vehicle controller. When the on-board charger enters the dormant state, the vehicle controller also enters the dormant state. After receiving the wake-up command, the vehicle controller wakes up and resets the stop charging flag to invalid. The invalidation of the stop charging flag is one of the basic conditions for normal charging start.
[0126] In some embodiments, activating the charging module 304 is specifically configured as follows: The on-board charger sends the change signal to the vehicle controller; After receiving the change signal, the vehicle controller determines that a charging gun insertion has occurred and that the stop charging flag remains invalid, and sends a charging permission command to the on-board charger. After receiving the charging permission command, the on-board charger acquires the battery signal, determines that the battery signal meets the charging conditions, and controls the charging of the battery.
[0127] In some embodiments, during the hibernation state, a sentry mode is activated to monitor the unplugging action of the charging gun. The draw response module 303 is specifically configured as follows: The sentry mode detects the charging gun being pulled out, generates a first network management message, sends the first network management message to the on-board charger, and wakes up the on-board charger. When the on-board charger determines that the charging gun's state recorded before hibernation is connected, it controls the charging gun's state to change to disconnected.
[0128] In some embodiments, the hibernation control module 302 is specifically configured as follows: After the on-board charger changes the recorded charging gun status to the disconnected state: After the on-board charger determines the charging gun's state and completes the change from a connected state to a disconnected state, it controls the on-board charger to enter a sleep state; or, After a second delay, the on-board charger is controlled to enter a sleep state.
[0129] In some embodiments, the device further includes a wake-up charging control module configured to: After the on-board charger enters a sleep state, if a plug-in wake-up source is detected, the on-board charger will be woken up from its sleep state. After the on-board charger is woken up, it generates a second network management message, determines the reason for waking up the on-board charger, and sends the second network management message and the reason for waking up to the vehicle controller. After the vehicle controller determines that it has received the second network management message and the wake-up reason, it determines that the charging gun insertion action has occurred, sends a charging permission command to the on-board charger, and starts charging using the on-board charger.
[0130] In some embodiments, waking up the charging control module is specifically configured as follows: If at least one of the following is determined when the plug-in action is detected: charging guidance wake-up, charging gun connection confirmation wake-up, and plug-in management message wake-up, the dormant on-board charger will be woken up.
[0131] In some embodiments, the charging stop control module 301 is further configured to: During the charging process, the vehicle is in a powered-on state, and the vehicle controller and the on-board charger operate normally in the powered-on state. In response to the user triggering the charging stop control, a stop charging command is generated and sent to the vehicle controller; After receiving the stop charging command, the vehicle controller generates a power cut-off signal and sends the power cut-off signal to the on-board charger. The on-board charger cuts off the power according to the power cut-off signal, so as to stop the vehicle from charging.
[0132] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.
[0133] The apparatus of the above embodiments is used to implement the corresponding method in any of the foregoing embodiments and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0134] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the methods described in any of the above embodiments.
[0135] Figure 6 This embodiment illustrates a more specific hardware structure of an electronic device. The device may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.
[0136] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0137] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0138] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.
[0139] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0140] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.
[0141] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0142] The electronic devices described above are used to implement the corresponding methods in any of the foregoing embodiments and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0143] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing the computer to perform the methods described in any of the above embodiments.
[0144] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random-access memory (SRAM), dynamic random-access memory (DRAM), other types of random-access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital video disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0145] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to perform the methods described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0146] Based on the same concept, corresponding to any of the above embodiments, this application also provides a computer program product, including computer program instructions, which, when run on a computer, cause the computer to perform the method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0147] Based on the same inventive concept, this application also provides a vehicle including the device or electronic device described in the above embodiments. The beneficial effects of embodiments having corresponding devices or electronic devices will not be elaborated further here.
[0148] It is understood that before using the technical solutions of the various embodiments in this application, users will be informed of the type, scope of use, and usage scenarios of the personal information involved in an appropriate manner, and user authorization will be obtained.
[0149] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose, based on the prompt message, whether to provide personal information to the software or hardware such as electronic devices, applications, servers, or storage media performing the operations described in this application.
[0150] As an optional but not limited implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0151] It is understood that the above notification and user authorization process is merely illustrative and does not limit the implementation of this application. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this application.
[0152] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.
[0153] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0154] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0155] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the claims of this application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.
Claims
1. A vehicle charging control method, characterized in that, include: During the charging process, in response to receiving a stop charging command, the vehicle is controlled to stop charging; After the first delay and while the charging gun remains connected, the on-board charger enters a sleep state, and the charging gun status recorded by the on-board charger is the connected state. In response to the action of pulling out the charging gun, the on-board charger is woken up, and the on-board charger changes the recorded state of the charging gun to the disconnected state. In response to the insertion of the charging gun, the on-board charger changes the state of the charging gun from the disconnected state to the connected state, generates a disconnect-to-connection change signal, and starts charging normally based on the change signal.
2. The method according to claim 1, characterized in that, The response to receiving a stop charging command, controlling the vehicle to stop charging, includes: In response to the vehicle controller receiving a stop charging command, the stop charging flag is set to valid, and the vehicle is controlled to stop charging; The step of responding to receiving a charging gun unplugging action, controlling the on-board charger to wake up, and the on-board charger changing the recorded charging gun status to a disconnected state includes: In response to receiving a charging gun unplugging action, the on-board charger is controlled to wake up; The on-board charger changes the recorded charging gun status to the disconnected state and generates a wake-up command to send to the dormant vehicle controller. When the on-board charger enters the dormant state, the vehicle controller also enters the dormant state. After receiving the wake-up command, the vehicle controller wakes up and resets the stop charging flag to invalid. The invalidation of the stop charging flag is one of the basic conditions for normal charging start.
3. The method according to claim 2, characterized in that, The normal charging start based on the changed signal includes: The on-board charger sends the change signal to the vehicle controller; After receiving the change signal, the vehicle controller determines that a charging gun insertion has occurred and that the stop charging flag remains invalid, and sends a charging permission command to the on-board charger. After receiving the charging permission command, the on-board charger acquires the battery signal, determines that the battery signal meets the charging conditions, and controls the charging of the battery.
4. The method according to claim 1, characterized in that, During the hibernation state, a sentry mode is activated to monitor the charging gun's unplugging action. The step of responding to receiving a charging gun unplugging action, controlling the on-board charger to wake up, and the on-board charger changing the recorded charging gun status to a disconnected state includes: The sentry mode detects the charging gun being pulled out, generates a first network management message, sends the first network management message to the on-board charger, and wakes up the on-board charger. When the on-board charger determines that the charging gun's state recorded before hibernation is connected, it controls the charging gun's state to change to disconnected.
5. The method according to claim 1, characterized in that, After the on-board charger changes the recorded charging gun status to the disconnected state, it also includes: After the on-board charger determines the charging gun's state and completes the change from a connected state to a disconnected state, it controls the on-board charger to enter a sleep state; or, After a second delay, the on-board charger is controlled to enter a sleep state.
6. The method according to claim 1, characterized in that, After the on-board charger enters a sleep state, the following is also included: Once a power-on source is detected, the on-board charger that is in sleep mode will be woken up. After the on-board charger is woken up, it generates a second network management message, determines the reason for waking up the on-board charger, and sends the second network management message and the reason for waking up to the vehicle controller. After the vehicle controller determines that it has received the second network management message and the wake-up reason, it determines that the charging gun insertion action has occurred, sends a charging permission command to the on-board charger, and starts charging using the on-board charger.
7. The method according to claim 6, characterized in that, The step of determining that a plug-in wake-up source has been detected and waking up the dormant on-board charger includes: If at least one of the following is determined when the plug-in action is detected: charging guidance wake-up, charging gun connection confirmation wake-up, and plug-in management message wake-up, the dormant on-board charger will be woken up.
8. The method according to claim 1, characterized in that, During the charging process, in response to receiving a stop charging command, the vehicle is controlled to stop charging, including: During the charging process, the vehicle is in a powered-on state, and the vehicle controller and the on-board charger operate normally in the powered-on state. In response to the user triggering the charging stop control, a stop charging command is generated and sent to the vehicle controller; After receiving the stop charging command, the vehicle controller generates a power cut-off signal and sends the power cut-off signal to the on-board charger. The on-board charger cuts off the power according to the power cut-off signal, so as to stop the vehicle from charging.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 8.
10. A vehicle, characterized in that, Includes the electronic device as described in claim 9.
