Vehicle control method, device and equipment and readable storage medium
By acquiring the electronic lock status of the charging gun and combining it with the driver's door lock control, the problem of arcing when the charging gun is pulled out has been solved, improving safety and charging/discharging compatibility, and extending the service life of the power battery.
Patent Information
- Application Number
- CN202511426511.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-30
- Publication Date
- 2026-01-09
Smart Images

Figure CN121291180A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle control, and in particular to a vehicle control method, apparatus, device, and readable storage medium. Background Technology
[0002] With the rapid development of the new energy vehicle industry, plug-in hybrid electric vehicles (PHEVs), with their "dual-mode" characteristics (gasoline and electric), have become an important option for the transition from traditional gasoline vehicles to pure electric vehicles. The main charging method for PHEVs is slow charging, typically using single-phase 220V or three-phase 380V AC power, which is converted to DC power by an onboard charger to charge the battery.
[0003] In related technologies, an electronic lock and an emergency power supply unit are set up for the power battery unit in the vehicle. If an external charging power supply fails during the charging or discharging process, the electronic lock is activated to lock the charging gun and prevent accidental unlocking.
[0004] However, the above solutions still cannot prevent the charging gun from arcing during occasional events, which increases the danger of vehicle charging / discharging and also affects the lifespan of the power battery. Summary of the Invention
[0005] This application provides a vehicle control method, apparatus, device, and readable storage medium. The technical solution is as follows:
[0006] In one aspect, a vehicle control method is provided, the method comprising:
[0007] In response to the charging state of the charging gun device being in a charging or discharging state, a first locking state of the charging gun electronic lock inside the charging gun device is obtained. The charging gun device is used to provide electrical energy output to the vehicle. The charging state is used to reflect the electrical energy delivery state of the charging gun device. The first locking state is used to reflect the mechanical holding force of the charging gun electronic lock.
[0008] In response to the first locking state indicating that the charging gun device is in a locked state, the charging gun device is controlled according to the second locking state of the door lock inside the driver's door assembly, the second locking state being used to reflect the mechanical holding force of the door lock;
[0009] In response to the first locked state indicating that the charging gun device is in a locked state, an unlock signal for the charging gun device is received, and the charging gun device is controlled according to the unlock signal.
[0010] On the other hand, a vehicle control device includes:
[0011] The acquisition module is used to acquire the first locking state of the charging gun electronic lock in the charging gun device in response to the charging state of the charging gun device being charging or discharging. The charging gun device is used to provide electrical energy output to the vehicle. The charging state is used to reflect the electrical energy transmission state of the charging gun device. The first locking state is used to reflect the mechanical holding force of the charging gun electronic lock.
[0012] The control module is configured to control the charging gun device in response to the first locking state indicating that the charging gun device is in a locked state, according to the second locking state of the door lock inside the driver's door assembly, the second locking state being used to reflect the mechanical holding force of the door lock;
[0013] The control module is configured to receive an unlock signal for the charging gun device in response to the first locking state indicating that the charging gun device is in a locked state, and control the charging gun device according to the unlock signal.
[0014] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one program, the at least one program being loaded and executed by the processor to implement the vehicle control method as described above.
[0015] On the other hand, a computer-readable storage medium is provided, wherein at least one segment is stored in the storage medium, the at least one segment being loaded and executed by a processor to implement the vehicle control method as described above.
[0016] On the other hand, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium, wherein a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform to implement the vehicle control method as described above.
[0017] The beneficial effects of the technical solutions provided in this application include at least the following:
[0018] When the charging gun is clearly in the power transmission state, the system acquires the first locking state of the electronic lock within the charging gun. When the electronic lock is in the unlocked state, the system controls the charging gun in conjunction with the driver's door lock. When the charging gun is in the locked state, the system controls the charging gun based on the unlock signal. This allows the charging gun to be adapted to more charging / discharging methods and improves its operational safety. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This application shows a structural block diagram of a computer system provided in an exemplary embodiment;
[0021] Figure 2 A structural block diagram of a computer system provided in another exemplary embodiment of this application is shown;
[0022] Figure 3 A flowchart of a vehicle control method provided in an exemplary embodiment of this application is shown;
[0023] Figure 4 A flowchart of a vehicle control method provided in another exemplary embodiment of this application is shown;
[0024] Figure 5 This invention provides a structural block diagram of a vehicle control device according to an exemplary embodiment of the present application.
[0025] Figure 6 A structural block diagram of a computer device provided in an exemplary embodiment of this application is shown. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0027] In this application, the terms "first" and "second" are used to distinguish between identical or similar items that have essentially the same function. It should be understood that there is no logical or temporal dependency between "first" and "second", nor is there any limitation on the quantity or execution order.
[0028] Figure 1 A structural block diagram of a computer system provided in an exemplary embodiment of this application is shown. The execution process of the vehicle control method provided in this embodiment is described based on this structural block diagram. The computer system includes a vehicle 10, and the following process is described with the vehicle 10 as the execution subject.
[0029] Optionally, vehicle 10 includes at least one of the following: gasoline vehicle, electric vehicle, hybrid vehicle, fuel cell vehicle, solar vehicle, etc., wherein a hybrid vehicle refers to a combination of a gasoline vehicle and an electric vehicle.
[0030] In this embodiment, the vehicle 10 is implemented as a plug-in hybrid electric vehicle as an example for explanation.
[0031] Optionally, the vehicle 10 includes a charging gun device 100, which is a charging device connected to the vehicle 10. The vehicle 10 has a charging interface that matches the charging gun device 100 on its body or inside the vehicle.
[0032] When the vehicle 10 needs to be charged or discharged, the user connects the charging gun device 100 to the charging interface of the vehicle 10 and connects the other end of the charging gun device 100 to an external power source, so as to provide power to the battery unit inside the vehicle 10 or for the vehicle 10 to provide power to an external power source.
[0033] Optionally, the charging gun device 100 is equipped with a charging gun electronic lock. The charging gun electronic lock is used to reflect the mechanical holding force of the charging gun and maintain the connection between the charging gun device 100 and the vehicle 10. Illustratively, when the mechanical holding force of the charging gun electronic lock meets the preset requirements, the user cannot unplug the charging gun device 100 from the charging interface; when the mechanical holding force of the charging gun electronic lock does not meet the preset requirements, the user can freely unplug the charging gun device 100 from the charging interface, disconnecting the charging gun device 100 from the vehicle 10.
[0034] When the charging gun device 100 is in a charging or discharging state, the vehicle 10 obtains the first locking state of the charging gun electronic lock inside the charging gun device 100. The first locking state includes an locked state and a unlocked state.
[0035] Specifically, when vehicle 10 determines that the first locking state is the locked state, the charging / discharging logic of the charging gun device is controlled according to the second locking state of the interior door lock of the driver's side door assembly of vehicle 10. Illustratively, in the locked state, the user cannot remove the charging gun device 100 from the charging port inside vehicle 10.
[0036] When vehicle 10 determines that the first locking state is locked, it receives an unlock signal for charging gun device 100 and controls the charging / discharging logic of charging gun device according to the unlock signal. Illustratively, in the locked state, the user can unplug charging gun device 100 from the charging port inside vehicle 10 at any time.
[0037] It is worth noting that the above interaction method is only an exemplary example. In other embodiments, the vehicle 10 and the server coordinate to implement the above vehicle control method. Illustratively, the vehicle 10 sends its own vehicle information to the server, including information related to the charging gun device. The server determines a first locking state of the charging gun device 100 based on the vehicle information; and formulates charging execution logic for the charging gun device based on the first locking state. This charging execution logic includes, when the first locking state is locked, the vehicle 10 controls the charging / discharging logic of the charging gun device according to a second locking state of the door lock; and when the first locking state is unlocked, the vehicle controls the charging / discharging logic of the charging gun device according to a received unlocking signal.
[0038] Optionally, the server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud security, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware servers, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. In some embodiments, the server can also be implemented as a node in a blockchain system.
[0039] It should be noted that all information (including but not limited to water level data, operational status data, etc.), data (including but not limited to data used for analysis, stored data, and displayed data), and signals involved in this application have been authorized by the user or by all parties in full, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant regions. For example, the water level data and operational status data involved in this application were obtained with full authorization.
[0040] In this embodiment, when it is clear that the charging gun device is transmitting electrical energy, the first locking state corresponding to the charging gun electronic lock inside the charging gun device is obtained; when the charging gun electronic lock is in the unlocked state, the charging gun device is controlled in conjunction with the driver's door lock; when the charging gun device is in the locked state, the charging gun device is controlled according to the unlocking signal. This enables the charging gun device to adapt to more charging / discharging methods and improves the safety of using the charging gun device.
[0041] In another alternative embodiment, such as Figure 2 As shown, Figure 2 A structural block diagram of a computer system according to another embodiment of this application is shown. The execution process of the vehicle control method provided in this embodiment is described based on this structural block diagram. The computer system includes a vehicle 20, which includes a first controller 200 and a second controller 210.
[0042] The first controller 200 is primarily responsible for interpreting driver intentions, energy management, torque distribution, high-voltage and low-voltage power supply / discharge, and fault arbitration, etc., and is the core of the vehicle's overall power domain. The second controller 210 is primarily responsible for converting the AC power within the vehicle 20 into high-voltage DC power, and charging the power battery cells according to the required voltage / current, or enabling the power battery cells to charge an external power source.
[0043] In this embodiment, vehicle 20 is implemented as a plug-in hybrid electric vehicle, first controller 200 is implemented as a hybrid vehicle controller (HCU), and second controller 210 is implemented as an on-board charger controller (OBC).
[0044] Optionally, the second controller 210 determines the first locking state of the electronic lock of the charging gun in the charging gun device. When the second controller 210 determines that the charging gun device in the vehicle is in the process of charging or discharging, the second controller 210 obtains the first locking state corresponding to the electronic lock of the charging gun in the charging gun device.
[0045] The second controller 210 sends the first lock state to the first controller 200.
[0046] After receiving the first locking state, the first controller 200 obtains the second locking state corresponding to the door lock in the door assembly and sends the second locking state to the second controller 210, which then determines the charging logic or discharging logic of the charging gun device based on the second locking state.
[0047] In another optional embodiment, after receiving the first locked state, the first controller 200 receives an unlock signal for the charging gun device and sends the unlock signal to the second controller 210, which then determines the charging logic or discharging logic of the charging gun device based on the unlock signal.
[0048] In this embodiment, the logic for determining whether to activate the wading mode is run independently by the first controller, and the switching of the wading mode and the operation of the power supply unit are controlled independently by the second controller. This achieves the effect of a layered control strategy, further improving the control efficiency of the vehicle in the wading mode and ensuring the operational safety of the power supply unit.
[0049] Based on the above, the vehicle control method provided in the embodiments of this application will be described. Figure 3 This is a flowchart of a vehicle control method provided in an exemplary embodiment of this application. In this embodiment, the method is executed by a vehicle, such as... Figure 3 As shown, the method includes the following steps.
[0050] Step 300: In response to the charging state of the charging gun device being either charging or discharging, obtain the first locking state of the charging gun electronic lock inside the charging gun device.
[0051] In this embodiment, the vehicle is implemented as a plug-in electric vehicle, such as a plug-in hybrid electric vehicle; or, the vehicle is implemented as a pure electric vehicle. The vehicle includes a battery unit, and the vehicle connects to an external power source to enable the external power source to provide power to the battery unit or the battery unit to provide power to the external power source.
[0052] Optionally, the vehicle is connected to an external power source via a charging gun device. This charging gun device provides electrical output to the vehicle; one end is the charging gun head, and the other end is an external charging interface for connecting to the external power source. The vehicle body or interior is equipped with a charging interface for connecting to the charging gun device.
[0053] Indicatively, the charging gun head of the charging gun device is connected to the power supply interface provided by the vehicle, and the external charging interface of the charging gun device is connected to an external power source to complete the charging or discharging process of the battery cell. The charging process of the battery cell refers to the process of the external power source supplying electrical energy to the battery cell, while the discharging process of the battery cell refers to the process of the battery cell supplying electrical energy to the external power source.
[0054] Optionally, the charging status of the charging gun device can be identified. The charging status reflects the power delivery status of the charging gun device and includes either charging or discharging.
[0055] In an optional embodiment, identifying the charging status of the charging device includes, but is not limited to, any of the following methods.
[0056] The first method involves periodically acquiring the charge changes of the vehicle's battery cells over a specified period of time. These charge changes are used to indicate the changes in the charge value of the corresponding battery cells.
[0057] Determine the maximum value, minimum value, the first time point corresponding to the maximum value, and the second time point corresponding to the minimum value in the charge change.
[0058] The first and second time points are ordered in natural order. If the first time point is earlier than the second time point, the charge value corresponding to the first time point is greater than the charge value corresponding to the second time point, and the charging state is determined to be discharging. If the first time point is later than the second time point, the charging state is determined to be charging.
[0059] The second method involves determining the power type of the external power source, which indicates the type of external power supply.
[0060] When an external power source connects to the vehicle via a charging gun, the external power source sends its device model information to the vehicle. After receiving the device model information, the vehicle obtains a preset charging device list and a preset discharging device list. The preset charging device list records at least one external power source that needs to provide power to the vehicle, and the preset discharging device list records at least one external power source that needs the vehicle to provide power in reverse.
[0061] If the external power source indicated by the device model information matches the preset charging device list, then the charging gun device is determined to be in the charging process; if the external power source indicated by the device model information matches the preset discharging device list, then the charging gun device is determined to be in the discharging process.
[0062] It is worth noting that the above methods are merely illustrative examples, and other methods can also be used to determine the charging status of the charging gun device; this application does not limit these methods. In the above embodiments, the preset charging device list and the preset discharging device list are preset by relevant personnel.
[0063] Optionally, the first locking state is used to reflect the mechanical holding force of the charging gun electronic lock. When the mechanical holding force meets the preset requirements, the charging gun electronic lock is determined to be in the locked state. In the locked state, the user cannot pull the charging gun device from the charging port to physically separate the charging gun device from the vehicle. When the mechanical holding force does not meet the preset requirements, the charging gun electronic lock is determined to be in the unlocked state. In the unlocked state, the user can freely pull the charging gun device from the charging port to physically separate the charging gun device from the vehicle.
[0064] Optionally, the charging gun electronic lock can be implemented as a physical lock or as a software lock; this application does not limit this.
[0065] Indicatively, when the charging gun electronic lock is implemented as a physical lock, the mechanical holding force is used to indicate the engagement between the latch and the bolt in the internal structure of the charging gun electronic lock. When the latch and the bolt are engaged, the charging gun device is determined to be in the locked state; when the latch and the bolt are not engaged, the charging gun device is determined to be in the unlocked state.
[0066] Schematic illustration: When the charging gun's electronic lock is implemented as a software-based lock, the mechanical holding force indicates the charging permission settings within the charging gun device. When the charging permission indicates that the current charging gun device can output or transmit electrical energy, the charging gun device is in a locked state; when the charging permission indicates that the current charging gun device cannot output or transmit electrical energy, the charging gun device is in a locked state. Here, the charging permission refers to whether current is allowed to be delivered to the vehicle through the charging gun device; in other words, the charging permission refers to the permission for current to flow between the charging gun device and the vehicle.
[0067] Optionally, the first locking state can be determined in ways including, but not limited to, at least one of the following ways.
[0068] The first method is to determine it using the current method.
[0069] Optionally, a galvanometer is installed at the electronic lock of the charging gun to collect the current signal passing through the charging gun device.
[0070] That is, to acquire the current signal collected by the ammeter, the current signal including at least one of the following: current value, resistance value, voltage value, etc.
[0071] Extract the spectral characteristics of the current signal. Match the spectral characteristics with a preset spectral match to determine whether the first locking state is an engaged or disengaged state.
[0072] In this embodiment of the application, relevant personnel have pre-collected the locking spectrum features corresponding to multiple current signals generated when the charging gun electronic lock is locked, and the unlocking spectrum features corresponding to multiple current signals generated when the charging gun electronic lock is unlocked.
[0073] The preset locking spectrum feature can be obtained by taking the average value of multiple locking spectrum features, or by taking the maximum value of multiple locking spectrum features, or by taking the minimum value of multiple locking spectrum features.
[0074] The preset locking spectrum feature can be obtained by taking the average value of multiple locking spectrum features, or by taking the maximum value of multiple locking spectrum features, or by taking the minimum value of multiple locking spectrum features.
[0075] In response to a match between the spectral characteristics and a preset locked spectral characteristics, the first locking state is determined to be a locked state; in response to a match between the spectral characteristics and a preset unlocked spectral characteristics, the first locking state is determined to be a unlocked state.
[0076] The second method involves determining this through acceleration and vibration data.
[0077] Optionally, a first vibration sensor is provided at the charging gun device. The first vibration sensor is used to collect vibration data generated between the vehicle and the charging gun device when the charging gun device is inserted into or removed from the vehicle.
[0078] A second vibration sensor is installed at the connection point between the vehicle and the charging gun device. The second vibration sensor is used to collect vibration data generated between the vehicle and the charging gun device when the charging gun device is inserted into or removed from the vehicle.
[0079] Acquire acceleration data collected by an accelerometer, acquire first vibration data collected by a first vibration sensor, and acquire second vibration data collected by a second vibration sensor.
[0080] By analyzing the first vibration data and the second vibration data, a first transfer function for the vibration transmitted from the charging gun device to the vehicle is determined, and a second transfer function for the vibration transmitted from the vehicle to the charging gun device is determined.
[0081] The phase difference and coherence coefficient between the first and second transfer functions are determined. The phase difference indicates the difference between the two vibration data points when the transmission execution subjects are different, while the coherence coefficient indicates the similarity between the two vibration data points when the transmission execution subjects are different. Here, the transmission execution subject refers to the charging gun equipment or the vehicle. Schematic, the transmission execution subject of the first vibration data is the charging gun equipment, and the transmission execution subject of the second vibration data is the vehicle.
[0082] In response to the coherence coefficient meeting the first requirement and the phase difference meeting the second requirement, the first locking state is determined to be the locked state.
[0083] In response to the coherence coefficient not meeting the first requirement or the phase difference not meeting the second requirement, the first locking state is determined to be the locked state.
[0084] It is worth noting that the above method is merely an example, and other methods can also be used to determine the first locking state, which is not limited in this application.
[0085] Step 310: In response to the first locking state indicating that the charging gun device is in a locked state, the charging gun device is controlled according to the second locking state of the interior door lock of the driver's door assembly.
[0086] Optionally, in conjunction with step 300 above, if the charging gun device is determined to be in a locked state, the locking state of the interior door lock of the driver's door assembly is obtained, and this locking state is referred to as the second locking state.
[0087] In this embodiment, the second locking state reflects the mechanical holding force of the door lock, and the second locking state includes either a locked state or a unlocked state. The door lock can be implemented as a physical lock or a software lock; this application does not limit this to either.
[0088] Indicatively, when the door lock is implemented as a physical lock, the mechanical holding force is used to indicate the engagement between the latch and the bolt in the internal structure of the door lock. When the latch and the bolt are engaged, the driver's door is locked; when the latch and the bolt are not engaged, the driver's door is unlocked.
[0089] In some embodiments, an image acquisition device is provided on the side of the vehicle body for capturing images of the driver's door.
[0090] Acquire images of the car door captured during image acquisition. Identify whether the driver's door is open in the car door image.
[0091] When the recognition result indicates that the driver's door is currently open, the second locking state is determined to be locked; when the recognition result indicates that the driver's door is currently closed, the second locking state is determined to be locked.
[0092] In some embodiments, a sound sensor is provided at the lower edge of the driver's side door, and the sound sensor is used to collect sound.
[0093] The system acquires sound data collected by a sound sensor, extracts audio features from the sound data, and compares these audio features with a first audio feature corresponding to a door closing sound. If they match, the second locking state is determined to be the locked state; if they do not match, the audio feature is compared with a second audio feature corresponding to a door opening sound. If they match, the second locking state is determined to be the unlocked state. The first and second audio features are pre-set.
[0094] In some embodiments, a level sensor is provided at the frame of the driver's side door, which is used to collect horizontal data between the driver's side door and the surrounding vehicle body structure.
[0095] The system acquires horizontal data collected by a level sensor. This horizontal data indicates whether the driver's door and the surrounding vehicle body structure are on the same horizontal (vertical) line. If the horizontal data indicates that the driver's door and the surrounding vehicle body structure are on the same horizontal (vertical) line, the second locking state is determined to be the locked state; otherwise, the second locking state is determined to be the unlocked state.
[0096] Optionally, when the second locking state is the locked state, the charging gun device is controlled to switch from the unlocked state to the locked state.
[0097] Step 320: In response to the first locked state indicating that the charging gun device is in a locked state, receive an unlock signal for the charging gun device, and control the charging gun device according to the unlock signal.
[0098] Optionally, in conjunction with step 300 above, it is determined that the charging gun device is in a locked state, based on an unlocking signal for the charging gun device triggered by the user or automatically by the vehicle.
[0099] Unlock signals include active unlock signals and automatic unlock signals. Active unlock signals are unlock signals triggered by the user to unlock the charging gun device, while automatic unlock signals are unlock signals triggered automatically by the vehicle system to unlock the charging gun device.
[0100] Optionally, when the unlock signal is implemented as an active unlock signal, the battery state of charge of the vehicle is obtained, which is used to indicate the capacity of the battery cells in the vehicle.
[0101] In response to the battery's state of charge meeting the preset charge requirements, an active unlock signal is generated. This active unlock signal is used to control the charging gun device to switch from a locked state to an unlocked state. The charging gun device is controlled according to the active unlock signal.
[0102] Optionally, when the unlock signal is an automatic unlock signal, a first unlock signal sent by the vehicle unlocking device is received. The vehicle unlocking device is used to control the vehicle to lock or unlock. Illustratively, the vehicle unlocking device can be a portable car key, and it includes unlocking and locking controls. In response to a trigger operation on the unlocking control, the vehicle unlocking device sends an unlock signal to the vehicle, and the vehicle controls the charging gun device to switch from a locked state to an unlocked state based on this unlock signal. The charging gun device is controlled according to the first unlock signal.
[0103] Optionally, when the unlock signal is an automatic unlock signal, the vehicle includes a central control screen, which provides an unlock trigger control; in response to receiving a trigger signal to the unlock trigger control, a second unlock signal is generated; and the charging gun device is controlled to switch from a locked state to a unlocked state according to the second unlock signal.
[0104] Optionally, when the unlock signal is an automatic unlock signal, the system receives a voice unlock signal from the user and controls the charging gun device to switch from the locked state to the unlocked state based on the voice unlock signal.
[0105] It should be noted that, regardless of whether the charging gun switches from the locked state to the unlocked state or vice versa, upon receiving a control command, the charging gun will cut off the current. After completing the lock state switch, the current will be restored to continue charging or discharging.
[0106] In this embodiment, when it is clear that the charging gun device is transmitting electrical energy, the first locking state corresponding to the charging gun electronic lock inside the charging gun device is obtained; when the charging gun electronic lock is in the unlocked state, the charging gun device is controlled in conjunction with the driver's door lock; when the charging gun device is in the locked state, the charging gun device is controlled according to the unlocking signal. This enables the charging gun device to adapt to more charging / discharging methods and improves the safety of using the charging gun device.
[0107] Based on the above, the vehicle control method provided in the embodiments of this application will be described. Figure 4 This is a flowchart of a vehicle control method provided in an exemplary embodiment of this application. In this embodiment, the method is executed by a vehicle, such as... Figure 4As shown, the method includes the following steps.
[0108] In this embodiment, the vehicle includes an HCU controller 400 and an OBC controller 410. The HCU controller 400 and the OBC controller 410 collaboratively execute the vehicle control method provided in the following embodiment, which includes the following steps.
[0109] Optionally, the control strategy of the HCU controller 400 includes the following.
[0110] Optionally, the HCU controller 400 receives a charging status (signal) indication from the charging gun indicating a connected state, and the OBC controller 410 determines that the charging gun electronic lock is in an unlocked state and the driver's side door lock is in a locked state. The HCU controller 400 then sets the charging gun electronic lock to a locked state and requests the OBC controller 410 to lock the charging gun.
[0111] Optionally, the OBC controller 410 determines that the charging gun electronic lock status (signal) is locked, the HCU controller 400 receives that the charging gun status (signal) is disconnected, the HCU controller 400 sets the charging gun electronic lock status (signal) to default inactive, the HCU controller 400 has no request, and the OBC controller 410 controls the charging gun electronic lock to remain unchanged.
[0112] Optionally, if the HCU controller 400 receives a charging gun status (signal) indicating a connected state, or the OBC controller 410 determines that the charging gun electronic lock status (signal) is locked, or the driver's side door is unlocked, or the charging gun is not currently charging / heating / discharging, the HCU controller 400 requests the OBC controller 410 to control the charging gun to unlock automatically.
[0113] Optionally, if the electronic lock status (signal) of the OBC controller 410 is unlocked, and the HCU controller 400 receives a charging gun status (signal) indicating that it is not connected, the HCU controller 400 sets the electronic lock status (signal) to the default inactive state. If the HCU controller 400 makes no request, the electronic lock of the OBC controller 410 remains unchanged.
[0114] Optionally, the HCU controller 400 receives a charging gun status signal indicating a connected state, or the OBC controller 410 receives an electronic lock status signal indicating a locked state or a manual unlock signal, requesting the slow charging gun / discharging gun to be manually unlocked.
[0115] Optionally, after the HCU controller 400 issues a manual unlock signal, it checks that the electronic status lock signal of the OBC controller 410 is unlocked and then no longer allows charging / heating; when the HCU controller 400 sets the request signal electronic lock status signal to the locked state or automatically unlocks, or the HCU controller 400 detects that the charging gun has been unplugged and re-inserted, or has been awakened after being powered down and put into sleep mode, and other charging / heating conditions for the charging guns are met, then charging / heating is allowed.
[0116] Optional, manual unlocking method 1: Unlock by pressing the car key unlock signal twice. The car key unlock signal is obtained by the user pressing the key to unlock. When the car key unlock signal is triggered, if the HCU controller 400 receives two consecutive car key unlock signal triggers within a set time interval, it requests the charging gun to unlock. This time interval is set to 5 seconds.
[0117] Optional, manual unlocking method 2: Unlock the vehicle via the charging gun electronic lock soft switch on the central control screen. With the central control screen lit, after the IHU controller 400 receives the electronic lock status signal indicating a locked state, the "Charging Gun Unlock" soft switch on the central control screen becomes operable. Clicking the "Charging Gun Unlock" soft switch triggers the IHU controller 400 to send three consecutive frames to activate the electronic unlock control, followed by three more frames to deactivate it. After the IHU controller 400 receives the electronic lock status signal indicating an unlocked state, the "Charging Gun Unlock" function on the central control screen becomes grayed out and inoperable. After the HCU controller 400 receives the electronic lock status (signal), it sends a manual unlock signal, requesting the slow charging / discharging gun to unlock. When the OBC controller 410 receives the automatic unlock signal from the HCU controller 400, it controls the charging gun to unlock and then reports back to the OBC controller 410 that the electronic lock status is unlocked.
[0118] The electronic lock status signals mentioned above include four states: default inactive, locked, automatic unlock, manual unlock, etc. Automatic unlock is the signal emitted by the HCU controller 400 when it automatically unlocks the electronic lock of the slow charging gun / discharging gun; manual unlock is the signal emitted by the user when they manually unlock the electronic lock of the charging gun.
[0119] Optionally, the control strategy of the OBC controller 410 includes the following.
[0120] Optionally, when the OBC controller 410 receives an electronic lock status signal indicating inactivity, the electronic lock remains unchanged; when the OBC controller 410 receives an electronic lock status signal indicating locking, it performs the locking action of the charging gun electronic lock; when the OBC controller 410 receives an electronic lock status signal indicating automatic unlocking or manual unlocking, it performs the unlocking action of the charging gun electronic lock.
[0121] Optionally, the OBC controller 410 also includes self-protection logic, the details of which are as follows.
[0122] Optionally, charging / discharging and heating can be performed after the charging gun electronic lock is locked. However, in order to prevent command nesting dead loops in the interaction with the HCU, the locking signal status of the charging gun electronic lock fed back by the OBC controller 410 should be given with a delay. That is, the charging / heating status or discharging status off signal should be given first, and then the locking status should be given. The current locking status signal is given after a delay of 500ms after the charging / discharging / heating status signal is given.
[0123] The optional charging gun electronic lock stops charging / discharging and heating before unlocking.
[0124] Optionally, when the electronic lock status signal indicates automatic unlocking, it can continue to respond to charging / discharging requests after unlocking and charge after relocking.
[0125] Optionally, when the electronic lock status signal is "manual unlock", the device will not respond to charging / discharging requests after unlocking and will remain in the unlocked state until the electronic lock status signal is "locked" or "automatic unlock", the charging gun is unplugged and then plugged back in, or the device is powered off and then woken up. In this case, the device will exit the "remain unlocked" state and resume responding to charging / discharging requests.
[0126] Optionally, when the OBC controller 410 performs the electronic lock locking action of the charging gun, it should make an appropriate delay according to its own hardware characteristics to avoid the phenomenon that the electronic lock locking action is performed too early before the charging gun is fully inserted, which would prevent the charging gun from being fully inserted.
[0127] In this embodiment, when it is clear that the charging gun device is transmitting electrical energy, the first locking state corresponding to the charging gun electronic lock inside the charging gun device is obtained; when the charging gun electronic lock is in the unlocked state, the charging gun device is controlled in conjunction with the driver's door lock; when the charging gun device is in the locked state, the charging gun device is controlled according to the unlocking signal. This enables the charging gun device to adapt to more charging / discharging methods and improves the safety of using the charging gun device.
[0128] In this embodiment, the HCU controller receives the vehicle key unlock signal or the driver's door lock status signal, and, in conjunction with the charging gun electronic lock status and charging / discharging status, determines whether to request locking or unlocking of the charging gun. The OBC controller executes the locking or unlocking action according to the charging gun locking or unlocking command given by the HCU controller, and feeds back the charging gun electronic lock status to the HCU controller. Simultaneously, the OBC controller itself should execute self-protection logic to lock the charging gun before performing charging / discharging / heating, and to stop charging / discharging / heating before unlocking the charging gun electronic lock.
[0129] Please see Figure 5The diagram illustrates a structural block diagram of a vehicle control device provided in another exemplary embodiment of this application. The device is executed by an on-board terminal and includes the following components.
[0130] The acquisition module 500 is used to acquire the first locking state of the charging gun electronic lock in the charging gun device in response to the charging state of the charging gun device being in charging or discharging. The charging gun device is used to provide electrical energy output to the vehicle. The charging state is used to reflect the electrical energy transmission state of the charging gun device. The first locking state is used to reflect the mechanical holding force of the charging gun electronic lock.
[0131] Control module 510 is configured to control the charging gun device in response to the first locking state indicating that the charging gun device is in a locked state, according to the second locking state of the door lock inside the driver's door assembly, the second locking state being used to reflect the mechanical holding force of the door lock;
[0132] The control module 510 is configured to receive an unlock signal for the charging gun device in response to the first locking state indicating that the charging gun device is in a locked state, and control the charging gun device according to the unlock signal.
[0133] In some embodiments, the unlock signal includes an active unlock signal; the acquisition module 500 is used to acquire the battery state of charge of the vehicle, the battery state of charge being used to indicate the capacity of the battery cells in the vehicle;
[0134] The acquisition module 500 is used to generate the active unlocking signal in response to the battery state of charge meeting the preset charge requirements.
[0135] The control module 510 is used to control the charging gun device according to the active unlock signal.
[0136] In some embodiments, the unlock signal includes a manual unlock signal;
[0137] The acquisition module 500 is used to receive a first unlocking signal sent by the vehicle unlocking device, and the vehicle unlocking device is used to control the vehicle to lock or unlock.
[0138] The control module 510 is used to control the charging gun device according to the first unlock signal.
[0139] In some embodiments, the vehicle includes a central control screen, and the acquisition module 500 is configured to generate a second unlock signal in response to receiving a trigger signal for the unlock trigger control;
[0140] The control module 510 is used to control the charging gun device according to the second unlock signal.
[0141] In some embodiments, a current meter is provided at the electronic lock of the charging gun;
[0142] The acquisition module 500 is used to acquire the current signal collected by the ammeter;
[0143] The acquisition module 500 is used to extract the spectral features of the current signal;
[0144] The acquisition module 500 is configured to determine the first locking state as the locking state in response to the matching of the spectrum feature with the preset locked spectrum feature.
[0145] The acquisition module 500 is used to determine the first locking state as the locking state in response to the matching of the spectrum feature with the preset locking spectrum feature.
[0146] In some embodiments, a first vibration sensor is provided at the charging gun device, and a second vibration sensor is provided at the connection between the vehicle and the charging gun device;
[0147] The acquisition module 500 is used to acquire first vibration data collected by the first vibration sensor, and to acquire second vibration data collected by the second vibration sensor.
[0148] The acquisition module 500 is used to analyze the first vibration data and the second vibration data, determine the first transfer function of the vibration transmitted from the charging gun device to the vehicle, and determine the second transfer function of the vibration transmitted from the vehicle to the charging gun device.
[0149] The acquisition module 500 is used to determine the phase difference and coherence coefficient between the first transfer function and the second transfer function;
[0150] The acquisition module 500 is configured to determine the first locking state as the locked state in response to the coherence coefficient meeting the first requirement and the phase difference meeting the second requirement.
[0151] The acquisition module 500 is used to determine the first locking state as the locked state in response to the coherence coefficient not meeting the first requirement or the phase difference not meeting the second requirement.
[0152] In this embodiment, when it is clear that the charging gun device is transmitting electrical energy, the first locking state corresponding to the charging gun electronic lock inside the charging gun device is obtained; when the charging gun electronic lock is in the unlocked state, the charging gun device is controlled in conjunction with the driver's door lock; when the charging gun device is in the locked state, the charging gun device is controlled according to the unlocking signal. This enables the charging gun device to adapt to more charging / discharging methods and improves the safety of using the charging gun device.
[0153] Figure 6 This illustration shows a structural block diagram of a computer device 600 provided in an exemplary embodiment of this application. The computer device 600 can be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP6 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The computer device 600 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names. Optionally, the computer device 600 can also be implemented as a mobile device, such as a vehicle-mounted terminal or other portable smart terminal.
[0154] Typically, computer device 600 includes a processor 601 and a memory 602.
[0155] Processor 601 may include one or more processing cores, such as a 6-core processor. Processor 601 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 601 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 601 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 601 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0156] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 602 are used to store at least one instruction, which is executed by the processor 601 to implement the model training method or behavior encoding method provided in the method embodiments of this application.
[0157] This application also provides a computer-readable storage medium storing at least one instruction, at least one program, a code set, or an instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the vehicle control method provided in the above-described method embodiments.
[0158] This application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the vehicle control method provided in the above-described method embodiments.
[0159] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk. The above descriptions are merely optional embodiments of this application and are not intended to limit the application. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A vehicle control method, characterized in that, The vehicle is connected to a charging gun device, and the method includes: In response to the charging state of the charging gun device being in a charging or discharging state, a first locking state of the charging gun electronic lock inside the charging gun device is obtained. The charging gun device is used to provide electrical energy output to the vehicle. The charging state is used to reflect the electrical energy delivery state of the charging gun device. The first locking state is used to reflect the mechanical holding force of the charging gun electronic lock. In response to the first locking state indicating that the charging gun device is in a locked state, the charging gun device is controlled according to the second locking state of the door lock inside the driver's door assembly, the second locking state being used to reflect the mechanical holding force of the door lock; In response to the first locked state indicating that the charging gun device is in a locked state, an unlock signal for the charging gun device is received, and the charging gun device is controlled according to the unlock signal.
2. The method according to claim 1, characterized in that, The unlock signal includes an active unlock signal; The step of receiving an unlock signal for the charging gun device and controlling the charging gun device according to the unlock signal includes: The battery state of charge of the vehicle is obtained, which is used to indicate the capacity of the battery cells in the vehicle. In response to the battery state of charge meeting the preset charge requirements, the active unlock signal is generated; The charging gun device is controlled according to the active unlock signal.
3. The method according to claim 1, characterized in that, The unlock signal includes a manual unlock signal; The step of receiving an unlock signal for the charging gun device and controlling the charging gun device according to the unlock signal includes: The system receives a first unlocking signal from a vehicle unlocking device, which controls the vehicle to lock or unlock. The charging gun device is controlled according to the first unlock signal.
4. The method according to claim 3, characterized in that, The vehicle includes a central control screen, which provides an unlock trigger control. The method further includes: In response to receiving a trigger signal for the unlock trigger control, a second unlock signal is generated; The charging gun device is controlled according to the second unlock signal.
5. The method according to any one of claims 1 to 4, characterized in that, A current meter is installed at the electronic lock of the charging gun; The step of obtaining the first locking state of the electronic lock of the charging gun within the charging gun device includes: Acquire the current signal collected by the ammeter; Extract the spectral characteristics of the current signal; In response to the spectral feature matching a preset locked spectral feature, the first locking state is determined to be the locked state; In response to the spectral features matching the preset locking spectral features, the first locking state is determined to be the locking state.
6. The method according to any one of claims 1 to 4, characterized in that, A first vibration sensor is installed at the charging gun device, and a second vibration sensor is installed at the connection between the vehicle and the charging gun device; The method further includes: Acquire first vibration data collected by the first vibration sensor, and acquire second vibration data collected by the second vibration sensor; Analyze the first vibration data and the second vibration data to determine a first transfer function of the vibration transmitted from the charging gun device to the vehicle, and determine a second transfer function of the vibration transmitted from the vehicle to the charging gun device; Determine the phase difference and coherence coefficient between the first transfer function and the second transfer function; In response to the coherence coefficient meeting the first requirement and the phase difference meeting the second requirement, the first locking state is determined to be the locked state; In response to the coherence coefficient not meeting the first requirement or the phase difference not meeting the second requirement, the first locking state is determined to be the locked state.
7. A vehicle control device, characterized in that, The vehicle is connected to a charging gun device, the device comprising: The acquisition module is used to acquire the first locking state of the charging gun electronic lock in the charging gun device in response to the charging state of the charging gun device being charging or discharging. The charging gun device is used to provide electrical energy output to the vehicle. The charging state is used to reflect the electrical energy transmission state of the charging gun device. The first locking state is used to reflect the mechanical holding force of the charging gun electronic lock. The control module is configured to control the charging gun device in response to the first locking state indicating that the charging gun device is in a locked state, according to the second locking state of the door lock inside the driver's door assembly, the second locking state being used to reflect the mechanical holding force of the door lock; The control module is configured to receive an unlock signal for the charging gun device in response to the first locked state indicating that the charging gun device is in a locked state, and control the charging gun device according to the unlock signal.
8. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one program, which is loaded and executed by the processor to implement the vehicle control method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The storage medium stores at least one program, which is loaded and executed by a processor to implement the vehicle control method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium, a processor of a computer device reading the computer instructions from the computer-readable storage medium, and the processor executing the computer instructions to cause the computer device to perform the vehicle control method as described in any one of claims 1 to 6.