Charging control method and device, and computer readable storage medium

By identifying the charging port status using visual and force sensors, generating failure types, and performing targeted processing, the problem of invalid retries when the charging gun fails to plug in is solved, thus improving the charging success rate and equipment lifespan.

CN123169705APending Publication Date: 2026-11-27ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611583768.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-13
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing automatic charging equipment cannot effectively distinguish the cause of failure when the charging gun fails to connect, resulting in invalid retries, severe equipment wear and tear, and affecting users' travel.

Method used

The charging port status information is identified by visual and force sensors, a failure type is generated, and targeted processing operations are performed according to the failure level, such as opening the charging port cover, adjusting the posture and position, avoiding obstacles, and reducing unnecessary mechanical movements.

Benefits of technology

It improves the automation of plug-in failure handling and charging success rate, reduces equipment wear and tear, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123169705A_ABST
    Figure CN123169705A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a charging control method and device and a computer readable storage medium, and relates to the technical field of charging control. The method comprises: in the case that the operation result of the plug-in operation of the charging device is plug-in failure, obtaining the corresponding failure type; determining the corresponding fault level based on the failure type; controlling the charging device to perform the corresponding processing operation based on the fault level; and in the case that the processing operation is completed and the fault level is the fault level that allows retry, controlling the charging device to perform the plug-in operation again, the plug-in operation being used for inserting the charging gun into the charging port of the vehicle to be charged. The embodiments of the present disclosure can reduce the invalid mechanical action of the charging device, reduce the wear and tear of the device, and improve the automatic processing capacity of plug-in failure and the charging success rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of charging control technology, and in particular to a charging control method, apparatus and computer-readable storage medium. Background Technology

[0002] In related technologies, automatic charging equipment, such as charging robotic arms, can automatically complete operations such as plugging in and unplugging the charging gun, thereby enabling automatic charging of electric vehicles.

[0003] When automatic charging devices encounter malfunctions such as failed plug-in connection, they only perform simple retrying, failing to truly resolve the issue. Therefore, malfunctions can easily persist for extended periods, leading to charging failures and disrupting user travel. Summary of the Invention

[0004] To address the aforementioned technical problems, this disclosure provides a charging control method, apparatus, and computer-readable storage medium, which can reduce ineffective mechanical movements of charging equipment, decrease equipment wear, and improve the automated handling capability of charging gun malfunctions and charging success rate.

[0005] In a first aspect, this disclosure provides a charging control method, applied to a charging device, the method comprising: If the charging device fails to insert the charging gun, obtain the corresponding failure type. Determine the corresponding fault level based on the failure type; The system controls the charging equipment to perform corresponding processing operations based on the fault level. Furthermore, if the processing operation is completed and the fault level is one that allows retry, the system controls the charging equipment to perform the plug-in operation again. The plug-in operation is used to insert the charging gun into the charging port of the vehicle to be charged.

[0006] In some embodiments of this disclosure, the corresponding failure type is obtained, including: Acquire environmental image information; Image recognition is performed on the environmental image information to obtain the status information of the charging port; the status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port. Failure types are generated based on status information.

[0007] In some embodiments of this disclosure, the corresponding failure type is obtained, including: Acquire environmental image information; The environmental image information is uploaded to the target server to instruct the target server to perform image recognition on the environmental image information to obtain the status information of the charging port, and generate a failure type based on the status information; the status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port. Receive the failure type returned by the target server.

[0008] In some embodiments of this disclosure, the corresponding fault level is determined based on the failure type, including: If the failure type is that the charging port cover is closed, the fault level is determined to be a Level 1 fault. If the failure type is charging port position offset, the offset between the charging port and the target position is less than the offset threshold, and the obstruction status of the charging port is unobstructed, the fault level is determined to be a level two fault. If the failure type is that the charging port is blocked, and / or if the failure type is that the charging port is offset, and the offset of the charging port from the target position is greater than or equal to the offset threshold, the fault level is determined to be a level three fault. Among them, Level 1 faults and Level 2 faults are fault levels that allow retry.

[0009] In some embodiments of this disclosure, the charging device is controlled to perform corresponding processing operations based on the fault level, including: In the event of a Level 1 fault, the charging device will be controlled to open the charging port cover. In the case of a level 2 fault, obtain updated location information; the updated location information is used to indicate the target location when the charging device performs the plug-in operation again; the updated location information is determined by the charging device based on the location of the charging port, or the updated location information is received from the target server; In the case of a level 3 fault, fault information is generated and uploaded to the target server, so that the fault information can be sent to the first terminal associated with the vehicle to be charged and at least one preset second terminal through the target server; the fault information includes at least one of the following: identification information of the charging device, vehicle information of the vehicle to be charged, failure type and environmental image information.

[0010] In some embodiments of this disclosure, the operation of opening the charging port cover includes: Position the charging port cover, and based on the position of the charging port cover, control the actuator of the charging device to open the charging port cover; Alternatively, the charging equipment can be controlled to send an opening command to the vehicle to be charged; the opening command is used to instruct the vehicle to open the charging port cover.

[0011] In some embodiments of this disclosure, the method further includes: If the number of times the gun insertion operation is performed is greater than or equal to the threshold, attempts to perform the gun insertion operation will be stopped.

[0012] In some embodiments of this disclosure, after controlling the charging device to perform corresponding processing operations based on the fault level, the method further includes: If the result of controlling the charging device to perform the plug-in operation again is that the plug-in is successful, the operation record of the failure type and the handling operation is associated and stored to obtain the target data; The target data is sent to the target server so that the target server can perform self-learning optimization based on the target data to obtain optimized operation parameters. Receive optimization operation parameters sent by the target server; Alternatively, the charging device can perform self-learning optimization based on the target data to obtain optimized operating parameters. The optimized operating parameters include at least one of the operating parameters for inserting the gun and the operating parameters for processing.

[0013] Secondly, this disclosure provides a charging control method, applied to a target server, the method comprising: Receive environmental image information sent by the charging device; Image recognition is performed on the environmental image information to obtain the status information of the charging port; the status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port. Failure types are generated based on status information; Send the failure type to the charging device; the failure type is used to instruct the charging device to perform the corresponding processing operation.

[0014] In some embodiments of this disclosure, the method further includes: If the failure type is that the offset between the charging port position and the target position is less than the offset threshold, and the occlusion status of the charging port is unobstructed, the updated position information is determined based on the charging port position. The updated location information will be sent to the charging device.

[0015] In some embodiments of this disclosure, the method further includes: In the case of failure type where the charging port is blocked, and / or in the case of failure type where the charging port position is offset, and the offset of the charging port from the target position is greater than or equal to the offset threshold, a fault message is generated. Alternatively, it can receive fault information sent by the charging device. In addition, the method also includes: The fault information is sent to a first terminal associated with the vehicle to be charged and at least one preset second terminal. The vehicle to be charged is the vehicle corresponding to the plug-in operation of the charging equipment.

[0016] In some embodiments of this disclosure, the method further includes: Receive target data; the target data is obtained by associating and storing the operation record of the failure type and the processing operation when the charging device performs the processing operation and the result of the plugging operation is successful. Optimized operation parameters are obtained by self-learning optimization based on target data; the optimized operation parameters include at least one of the operation parameters for inserting the gun and the operation parameters for processing. Optimized operating parameters are sent to the charging device.

[0017] Thirdly, this disclosure provides a charging control device, which is applied to a charging equipment. The charging control device includes: The acquisition module is used to acquire the corresponding failure type when the charging device fails to insert the charging gun. The determination module is used to determine the corresponding fault level based on the failure type; The execution module is used to control the charging device to perform corresponding processing operations based on the fault level, and to control the charging device to perform the plug-in operation again when the processing operation is completed and the fault level is a fault level that allows retry. The plug-in operation is used to insert the charging gun into the charging port of the vehicle to be charged.

[0018] Fourthly, this disclosure provides a charging control device, which is applied to a target server. The charging control device includes: The receiving module is used to receive environmental image information sent by the charging device; The recognition module is used to perform image recognition on environmental image information to obtain the status information of the charging port; the status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port. The generation module is used to generate failure types based on status information; The sending module is used to send the failure type to the charging device; the failure type is used to instruct the charging device to perform the corresponding processing operation.

[0019] Fifthly, this disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the methods provided in the first and / or second aspects.

[0020] In a sixth aspect, this disclosure provides a computer program product comprising a computer program or instructions that, when executed by a processor, implement the methods provided in the first and / or second aspects.

[0021] The technical solution provided in this disclosure has the following advantages compared with the prior art: This embodiment solves the technical problem of existing automatic charging devices that only perform simple retries when the charging gun insertion operation fails, failing to take differentiated handling measures for different failure reasons, resulting in ineffective retries damaging the equipment, long-term unrecoverable faults, and affecting user travel. The local controller identifies the specific failure type based on image information collected by the visual sensor and contact force information collected by the force sensor. Different failure reasons, such as the charging port cover not being opened, positional deviation, and foreign object obstruction, correspond to different handling operations. When the charging port cover is not open, a remote opening operation is performed; when the position is deviated, visual repositioning and attitude adjustment operations are performed. Each handling operation precisely addresses the corresponding failure reason, eliminating the root cause of the insertion failure. When the insertion operation is performed again after the handling operation is completed, the posture, position, and environmental conditions of the charging gun have been improved, increasing the success rate of insertion. As a result, the charging equipment no longer blindly repeats the same failed actions, but takes targeted corrective measures based on the cause of the failure before retrying. This reduces ineffective mechanical actions, lowers equipment wear, and improves the automated handling capability of plug-in failures and the charging success rate. Attached Figure Description

[0022] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0023] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 One of the flowcharts of a charging control method according to some embodiments of the present disclosure is shown; Figure 2 A second flowchart of a charging control method according to some embodiments of the present disclosure is shown; Figure 3 Structural block diagrams of charging control devices according to some embodiments of the present disclosure are shown; Figure 4 A structural block diagram of a charging control device according to some embodiments of the present disclosure is shown. Detailed Implementation

[0025] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0026] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0027] In some embodiments of this disclosure, a charging control method is provided, which is applied to a charging device.

[0028] For example, the charging equipment is installed at a fixed parking space to perform automatic charging operations on the vehicle to be charged.

[0029] For example, the charging device includes a charging robotic arm, a charging gun, a local controller, a vision sensor, and a force sensor.

[0030] For example, a charging gun is mounted at the end of the charging robotic arm. A vision sensor is mounted at the end of the charging robotic arm or on the body of the charging device to acquire image information of the charging port area of ​​the vehicle to be charged. A force sensor is mounted at the end of the charging robotic arm or at the connection between the charging gun and the robotic arm to detect contact force information during the insertion process. A local controller is communicatively connected to the charging robotic arm, the vision sensor, and the force sensor, respectively, to control the movement of the charging robotic arm and receive sensor data.

[0031] For example, Figure 1 One of the flowcharts of a charging control method according to some embodiments of this disclosure is shown, such as Figure 1 As shown, the method includes: S102, if the charging device fails to insert the charging gun, obtain the corresponding failure type.

[0032] In this embodiment of the disclosure, a local controller controls a charging robotic arm to perform a charging gun insertion operation. The insertion operation is used to insert the charging gun into the charging port of the vehicle to be charged.

[0033] For example, the local controller controls the charging robotic arm to move the charging gun toward the charging port of the vehicle to be charged, so that the head of the charging gun is aligned with the charging port and inserted.

[0034] For example, during the insertion of the charging gun, a force sensor monitors the contact force information between the charging gun and the charging port in real time.

[0035] For example, during the insertion of the charging gun, image information of the charging port area is acquired in real time by a vision sensor.

[0036] For example, during the charging port insertion process, point cloud information of the charging port area is collected by radar sensors such as lidar, ultrasonic radar, and millimeter-wave radar.

[0037] For example, during the insertion of the gun, the result of the insertion operation is determined based on at least one of the contact force information output by the force sensor, the image information output by the vision sensor, and the point cloud information output by the radar sensor.

[0038] When the charging gun nozzle is successfully inserted into the charging port and an electrical connection is established, the local controller determines the insertion operation as successful. When the charging gun nozzle fails to be successfully inserted into the charging port, the local controller determines the insertion operation as failed.

[0039] If the insertion of the charging gun fails, the local controller obtains the corresponding failure type. The local controller identifies the failure type based on at least one of the following: image information collected by the vision sensor, contact force information collected by the force sensor, and motion state information of the charging robotic arm.

[0040] For example, the failure type includes at least one of the following: charging port cover not open, position offset, and foreign object obstruction.

[0041] S104, determine the corresponding fault level based on the failure type.

[0042] In this embodiment of the disclosure, different failure types correspond to different fault levels. For example, the fault levels can be divided into progressively higher levels: Level 1 fault, Level 2 fault, and Level 3 fault. A higher fault level indicates a more severe fault.

[0043] For example, a Level 1 fault is one that is easy to resolve. A Level 2 fault requires the vehicle or robotic arm to perform certain operations to resolve it. A Level 3 fault is one that the robotic arm cannot resolve independently.

[0044] S106, based on the fault level, controls the charging equipment to perform the corresponding processing operation, and, if the processing operation is completed and the fault level is a fault level that allows retry, controls the charging equipment to perform the plug-in operation again, the plug-in operation being used to insert the charging gun into the charging port of the vehicle to be charged.

[0045] In this embodiment of the disclosure, the local controller controls the charging device to perform corresponding processing operations based on the fault level. Different failure types correspond to different processing operations.

[0046] For example, when the failure type is "charging port cover not open," the local controller of the charging equipment sends a request to the vehicle control system of the vehicle to be charged to open the charging port cover. The vehicle control system of the vehicle responds to this request and controls the charging port cover to open. After confirming that the charging port cover is open, the local controller determines that the processing operation is complete and then controls the charging equipment to retry the plug-in operation.

[0047] For example, when the failure type is position offset, the vision sensor is controlled to re-acquire image information of the charging port area, and the position offset of the charging port is determined based on the re-acquired image information. If the position offset is small, the target position of the charging port is recalculated based on the re-acquired image information. Based on the recalculated target position, the charging robot arm is controlled to adjust the posture and position of the charging gun so that the tip of the charging gun is aligned with the charging port again.

[0048] If the positional offset is large, such as exceeding the adjustment range of the charging robot arm of the charging equipment, the insertion operation will be terminated, the insertion will not be retried, and a corresponding work order will be generated to guide the maintenance personnel to handle the situation on-site.

[0049] For example, when the failure type is foreign object obstruction, the communication module controlling the charging robotic arm sends the corresponding prompt information to the cloud server, charging manager or user's mobile phone, and does not retry inserting the charging gun, so as to avoid foreign object damage to the charging robotic arm.

[0050] Once the processing operation is complete, control the charging device to perform the insertion operation again. Control the charging robotic arm to move the charging gun towards the charging port again and perform the insertion action, according to the posture and position adjusted after the processing operation.

[0051] After re-performing the insertion operation, the result is reassessed. If the re-performed insertion operation is successful, the charging process begins. If the re-performed insertion operation still fails, the failure type is retrieved again, and the corresponding processing operation is executed.

[0052] In a specific application scenario, a user parks their vehicle in a designated parking space and remotely initiates a charging command via a mobile terminal. Upon receiving the command, the charging equipment controls a robotic arm to perform the charging gun insertion operation. The robotic arm moves the charging gun towards the charging port of the vehicle to be charged.

[0053] During the insertion process, a force sensor at the end of the charging robotic arm detected an obstruction as the charging gun approached the charging port, preventing it from advancing further. Based on the feedback signal from the force sensor, the insertion operation was determined to have failed.

[0054] The system controls a vision sensor to acquire image information of the charging port area and processes this image information. Image recognition results indicate that the charging port cover is closed. The failure type is determined to be "charging port cover not open".

[0055] Based on this failure type, a request to open the charging port cover is sent wirelessly to the vehicle control system of the vehicle to be charged. The vehicle control system responds to this request and controls the charging port cover to open. After confirming the opening of the charging port cover via a visual sensor, the processing operation is considered complete. The charging robotic arm is then controlled to perform the charging gun insertion operation again. The charging robotic arm moves the charging gun towards the opened charging port and successfully inserts it. The result of the insertion operation is "successful insertion," and the charging process begins.

[0056] In another application scenario, a user remotely initiates a charging command via a mobile device late at night. The charging device attempts to plug in the charging gun. However, due to a lateral shift of approximately 3 centimeters in the vehicle's parking position compared to the last charging, the charging gun's nozzle fails to align with the charging port, resulting in a failed plug-in operation.

[0057] Image information of the charging port area is acquired by a vision sensor. The actual position of the charging port in the image information is compared with the stored reference position, and the position offset is calculated to be 3 cm. The failure type is determined to be the position offset type.

[0058] Based on this failure type, the vision sensor is controlled to reacquire image information of the charging port area, and the precise position coordinates of the charging port are recalculated based on the reacquired image information.

[0059] Based on the recalculated precise position coordinates, the robotic arm is controlled to perform corresponding rotation and extension movements on each joint, adjusting the charging gun's tip orientation and position to align with the charging port. After completing the orientation and position adjustment, the processing operation is considered complete. The robotic arm is then controlled to perform the charging gun insertion operation again, and the charging gun tip smoothly inserts into the charging port along the adjusted path.

[0060] In one alternative embodiment, before determining the failure type, the contact force information output by the force sensor is used to determine whether the charging gun failure is caused by a malfunction of the charging robotic arm itself. The feedback values ​​of the joint angles and the motor drive current values ​​of the charging robotic arm are acquired. When the contact force information indicates that the charging gun encounters a hard limit block during movement, and the deviation between the feedback values ​​of each joint angle and the target angle value is greater than a preset deviation threshold, the charging gun failure is determined to be caused by a malfunction of the charging robotic arm itself. All charging gun operations are immediately stopped, a robotic arm malfunction alarm message is generated, and the alarm message is uploaded to the cloud server. Therefore, when the charging robotic arm itself experiences mechanical jamming or control abnormalities, the charging equipment can promptly identify and stop the operation, avoiding the risk of equipment damage that may result from continuing to perform charging gun operations while the robotic arm is malfunctioning.

[0061] This embodiment solves the technical problem of existing automatic charging devices that only perform simple, single retries when the charging gun insertion operation fails, failing to take differentiated handling measures for different failure reasons, resulting in ineffective retries that damage the equipment, long-term unrecoverable faults, and impact on user travel. The local controller identifies the specific failure type based on image information collected by the visual sensor and contact force information collected by the force sensor. Different failure reasons, such as the charging port cover not being opened, positional deviation, and foreign object obstruction, correspond to different handling operations. When the charging port cover is not open, a remote opening operation is performed. If the positional deviation is small, visual repositioning and attitude adjustment operations are performed. If the positional deviation is large, the insertion is stopped and a work order is generated. If a foreign object obstructs the connection and the robotic arm cannot avoid or clear the obstacle, the insertion is also stopped and a work order is generated. Each handling operation precisely addresses the corresponding failure reason, eliminating the root cause of the insertion failure. When the charging gun is inserted again after the initial failure, the attitude, position, and environmental conditions of the charging gun have improved, increasing the success rate of insertion. Therefore, the charging equipment no longer blindly repeats the same failed actions, but instead takes targeted corrective measures based on the cause of the failure before retrying. This reduces unnecessary mechanical movements, lowers equipment wear, and improves the automated handling of insertion failures and the overall charging success rate.

[0062] In some embodiments of this disclosure, the corresponding failure type is obtained, including: Acquire environmental image information; Image recognition is performed on the environmental image information to obtain the status information of the charging port; the status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port. Failure types are generated based on status information.

[0063] In this embodiment of the disclosure, after the local controller determines that the insertion operation has failed, it initiates a failure type identification process.

[0064] For example, the local controller controls a vision sensor to acquire environmental image information of the charging port area. The vision sensor includes an RGB (Red-Green-Blue) camera and a depth camera. The RGB camera is used to acquire color images of the charging port area. The depth camera is used to acquire depth images of the charging port area, which contain distance information of each pixel in the charging port area relative to the vision sensor. The local controller fuses the color image acquired by the RGB camera and the depth image acquired by the depth camera to obtain environmental image information containing both color and depth information.

[0065] The local controller performs image recognition processing on the environmental image information. Image recognition processing includes at least one of object detection processing, semantic segmentation processing, and key point detection processing.

[0066] The local controller inputs environmental image information into a pre-trained image recognition model. The image recognition model takes the environmental image information as input and outputs the state information of each component in the charging port area. The training samples for the image recognition model include images of the charging port area acquired under different lighting conditions, different shooting angles, and different degrees of occlusion, along with the corresponding labeled state information.

[0067] The local controller processes environmental image information using an image recognition model to obtain the status information of the charging port. The status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port.

[0068] The open / closed state of the charging port cover indicates whether it is currently in the open or closed position. The image recognition model performs target detection processing on the cover area in the environmental image information, identifying the cover's outline boundary. Based on the positional relationship between the cover's outline boundary and the center of the charging port, the image recognition model determines whether the cover is in the open or closed position. When the cover's outline boundary is outside the center area of ​​the charging port and the distance between it and the center is greater than a preset distance threshold, the image recognition model determines that the cover is in the open position. When the cover's outline boundary covers or is within the center area of ​​the charging port, the image recognition model determines that the cover is in the closed position.

[0069] The position of the charging port indicates its pixel coordinates within the environmental image and its spatial coordinates relative to the vision sensor. The image recognition model performs keypoint detection processing on the charging port area in the environmental image, outputting the pixel coordinates of multiple key points of the charging port. These key points include the top-left, top-right, bottom-left, and bottom-right corners of the charging port. Based on the pixel coordinates of these key points and the calibration parameters of the vision sensor, the local controller calculates the actual position coordinates of the charging port in physical space. These actual position coordinates include the three-dimensional spatial coordinates of the charging port's center point and the orientation angle of the charging port's end face.

[0070] The occlusion status of the charging port indicates whether the opening area of ​​the charging port is obstructed by foreign objects. The image recognition model performs semantic segmentation processing on the charging port opening area in the environmental image information, classifying the pixels within the opening area into normal background pixels and foreign object pixels. When foreign object pixels are present in the opening area and the total area of ​​the foreign object pixels is greater than a preset area threshold, the image recognition model determines that the charging port is in an obstructed state. When there are no foreign object pixels in the opening area or the total area of ​​the foreign object pixels is less than or equal to the preset area threshold, the image recognition model determines that the charging port is in an unobstructed state.

[0071] The local controller generates a failure type based on the status information. The failure type includes at least one of the following: charging port cover not open, position offset, and foreign object obstruction.

[0072] When the status information indicates that the charging port cover is in the closed position, the local controller will generate a failure type of "charging port cover not open". The direct cause of the charging gun failure in this case is that the charging gun tip is blocked by the closed cover and cannot enter the charging port.

[0073] When the charging port cover is open (indicating the cover is open) and the charging port is unobstructed (indicating the port is unobstructed), the local controller compares the charging port position in the status information with a preset reference position. The local controller reads the pre-stored reference position information from the storage unit. The reference position information is the charging port position recorded in the history of successful charging port insertion. The local controller calculates the positional deviation and angular deviation between the current charging port position and the reference position. If the positional deviation exceeds a preset positional deviation threshold or the angular deviation exceeds a preset angular deviation threshold, the local controller generates a failure type as a position offset.

[0074] When the status information indicates that the charging port cover is in the open position and the status of the charging port is in the blocked position, the local controller will generate the failure type as foreign object blockage type.

[0075] In a specific application scenario, after determining that the charging port has failed to connect, the local controller controls the vision sensor to acquire environmental image information of the charging port area. An RGB camera acquires a color image of the charging port area, and a depth camera acquires a corresponding depth image. The local controller inputs the color and depth images into an image recognition model. After processing the environmental image information, the image recognition model outputs the status information of the charging port. The status information indicates that the cover is in the open position, the center point of the charging port is located at 0.15 meters in the x-axis direction, -0.02 meters in the y-axis direction, and 0.30 meters in the z-axis direction in the vision sensor coordinate system, and there is a foreign object with an area of ​​approximately 200 square millimeters within the opening area of ​​the charging port. Based on this status information, the local controller generates a failure type of "foreign object occlusion." The local controller further calculates the protrusion height of the foreign object relative to the end face of the charging port based on the depth information of the foreign object in the depth image, which is used for parameter setting of subsequent obstacle avoidance actions.

[0076] In another specific application scenario, the status information output by the image recognition model indicates that the cover is in the closed position. The local controller generates a failure type as "charging port cover not open" and accordingly executes the processing operation of sending a charging port cover opening request to the vehicle to be charged.

[0077] In another specific application scenario, the image recognition model outputs a status information indicating that the cover is in the open position and the charging port is unobstructed. However, the center point of the charging port is offset by 4 centimeters horizontally relative to the reference position, exceeding the preset position deviation threshold of 2 centimeters. The local controller generates a failure type as a position offset type and performs visual relocalization and attitude adjustment processing accordingly.

[0078] In one alternative embodiment, the local controller adjusts the exposure parameters of the vision sensor based on the current ambient light intensity before acquiring environmental image information. The local controller obtains the current ambient light intensity value through the photosensitive element of the vision sensor. When the ambient light intensity value is lower than a preset light threshold, the local controller increases the exposure time of the vision sensor or increases its sensitivity, and controls the supplementary light on the charging device to turn on. When the ambient light intensity value is higher than or equal to the preset light threshold, the local controller maintains the default exposure parameters of the vision sensor. Therefore, even in low-light environments such as at night or in underground parking garages, the vision sensor can still acquire clear environmental image information, ensuring the recognition accuracy of the image recognition model under low-light conditions.

[0079] This embodiment of the disclosure obtains the status information of the charging port by acquiring environmental image information and performing image recognition on the environmental image information. Then, it generates a failure type based on the status information, enabling the charging device to accurately identify the root cause of the charging gun failure based on the opening status of the charging port cover, the positional offset of the charging port, and the obstruction status of the charging port. This solves the technical problem of existing automatic charging devices that can only perceive the failure result when the charging gun fails, but cannot distinguish different failure reasons such as the charging port cover not being open, positional offset, and foreign object obstruction, resulting in a lack of targeted subsequent handling measures and an inability to effectively solve the root cause of the problem. The image recognition model fuses the color image and depth image of the charging port area, simultaneously outputting information in three dimensions: cover status, position coordinates, and obstruction status, enabling the local controller to comprehensively judge the failure cause from multiple dimensions. When the cover is closed, the reason for the charging gun failure is physical obstruction, requiring remote opening of the cover; when the position is offset, the reason for the charging gun failure is alignment deviation. When the deviation is small, repositioning and attitude adjustment are required; when the deviation is large and cannot be resolved by positioning and adjustment, the charging gun is stopped and a work order is generated; when a foreign object obstructs the charging gun and cannot be avoided, the charging gun is also stopped and a work order is generated. Therefore, the generation of failure types is based on specific image recognition results. Different failure types correspond to different handling strategies, providing an accurate classification basis for subsequent targeted processing operations, thereby improving the accuracy and effectiveness of fault handling.

[0080] In some embodiments of this disclosure, the corresponding failure type is obtained, including: Acquire environmental image information; The environmental image information is uploaded to the target server to instruct the target server to perform image recognition on the environmental image information to obtain the status information of the charging port, and generate a failure type based on the status information; the status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port. Receive the failure type returned by the target server.

[0081] In this embodiment of the disclosure, after the local controller determines that the insertion operation has failed, it initiates a failure type identification process.

[0082] For example, the local controller controls the vision sensor to acquire environmental image information of the charging port area.

[0083] The local controller uploads environmental image information to the target server via the communication module. The communication module supports wireless network communication protocols, including at least one of cellular network communication and wireless LAN communication.

[0084] For example, the target server is a remote server deployed in the cloud, which is configured with an image recognition model and a fault analysis engine. The local controller packages the environmental image information into a data packet and sends it to the target server's receiving port via the communication module. The data packet contains the charging device's identification information, timestamp information, and environmental image information.

[0085] After receiving environmental image information, the target server performs image recognition processing on it. The image recognition model on the target server takes the environmental image information as input and outputs the state information of each component in the charging port area. The image recognition model includes at least one of an object detection network, a semantic segmentation network, and a keypoint detection network. The image recognition model performs object detection and keypoint detection processing on the color image, identifying the contour boundary of the charging port cover and multiple keypoints of the charging port. The image recognition model performs semantic segmentation processing on the depth image, identifying foreign object pixels within the charging port opening area.

[0086] The target server processes the environmental image information using an image recognition model to obtain the status information of the charging port. The status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port.

[0087] The target server generates a failure type based on the status information. The failure type includes at least one of the following: charging port cover not open, position offset, and foreign object obstruction.

[0088] For example, when the status information indicates that the charging port cover is in the closed position, the target server generates a failure type as "charging port cover not open". When the status information indicates that the cover is in the open position and the charging port is unobstructed, the target server compares the position of the charging port with a reference position and determines whether to generate a "position offset" type based on the position deviation and angle deviation. When the status information indicates that the cover is in the open position and the charging port is obstructed, the target server generates a failure type as "foreign object obstruction". The target server encapsulates the generated failure type into a response data packet and sends it to the communication module of the charging device via network communication.

[0089] The local controller receives the failure type returned by the target server through the communication module. The local controller parses the failure type from the response data packet and controls the charging device to perform the corresponding processing operation based on the failure type.

[0090] In a specific application scenario, after determining that the charging port has failed to connect, the local controller controls the vision sensor to collect environmental image information of the charging port area. The local controller packages the color and depth images into a data packet and uploads it to the cloud server via a wireless network. Upon receiving the data packet, the cloud server calls an image recognition model to process the environmental image information. The image recognition model identifies that the charging port cover is in the open position, the center point of the charging port is offset by 5 cm vertically relative to the reference position, and there are no foreign objects in the opening area. Based on the position offset in the status information, the cloud server generates a failure type as a position offset type. The cloud server encapsulates the position offset type identifier into a response data packet and sends it to the charging device. After receiving the failure type returned by the cloud server, the local controller performs visual relocalization and attitude adjustment operations based on the position offset type.

[0091] In another application scenario, the charging equipment in a home parking space operates in an environment with weak network signal. The local controller attempts to upload environmental image information to the cloud server, but the communication module detects that the current network signal strength is below a preset communication threshold. After waiting for a preset timeout period without receiving a response data packet from the cloud server, the local controller automatically switches to local recognition mode, calls a locally stored lightweight image recognition model to recognize the environmental image information, automatically generates a failure type, and executes the corresponding processing operation. When the network signal is restored, the local controller synchronously uploads the local recognition results and processing records to the cloud server.

[0092] In one alternative embodiment, the local controller performs privacy filtering on the environmental image information before uploading it to the target server. The local controller blurs the background area outside the charging port area in the color image, retaining only the clear image information of the charging port area and its adjacent areas. In the privacy-filtered environmental image information, private information such as license plate numbers, faces, and surrounding environmental markers are blurred and cannot be identified. The local controller then uploads the privacy-filtered environmental image information to the cloud server. Therefore, the image information uploaded to the cloud server does not contain identifiable personal privacy information, reducing the risk of user privacy leakage and improving the data security of charging devices in home scenarios.

[0093] This embodiment of the disclosure solves the technical problem that deploying a large-scale image recognition model may lead to decreased recognition speed, increased power consumption, and increased cost when local computing resources of the charging device are limited. The cloud server is equipped with a high-performance image recognition model capable of quickly and accurately identifying the charging port cover status, location information, and occlusion status in the environmental image information, and returning the recognition results to the charging device in the form of failure types. The charging device does not need to deploy a complex image recognition model locally; it only needs to perform environmental image acquisition, data uploading, and result receiving operations, reducing the computational load and storage usage of the local controller. When the network signal is poor, the charging device can automatically switch to a local lightweight recognition mode to ensure that the fault recognition function can still operate in unstable network environments. Therefore, the fault recognition capability of the charging device is enhanced by cloud computing power, improving recognition accuracy and processing speed, while also possessing local degradation operation capability in the event of network anomalies, thus balancing recognition accuracy and system reliability.

[0094] In some embodiments of this disclosure, the corresponding fault level is determined based on the failure type, including: If the failure type is that the charging port cover is closed, the fault level is determined to be a Level 1 fault. If the failure type is charging port position offset, the offset between the charging port and the target position is less than the offset threshold, and the obstruction status of the charging port is unobstructed, the fault level is determined to be a level two fault. If the failure type is that the charging port is blocked, and / or if the failure type is that the charging port is offset, and the offset of the charging port from the target position is greater than or equal to the offset threshold, the fault level is determined to be a level three fault. Among them, Level 1 faults and Level 2 faults are fault levels that allow retry.

[0095] In this embodiment of the disclosure, the fault levels include progressively higher levels: Level 1 fault, Level 2 fault, and Level 3 fault. Level 1 fault is the least severe, and Level 3 fault is the most severe.

[0096] If the failure type is that the charging port cover is closed, and it can be resolved by sending an open cover command or performing an open cover action, then the fault level is determined to be the mildest level one fault.

[0097] If the failure type is that the charging port position is slightly off and the charging port is not blocked by foreign objects, and can be resolved by repositioning or adjusting the position, then the fault level is determined to be a level two fault.

[0098] If the failure type is that the charging port is blocked by a foreign object, the fault level is determined to be a level three fault because the charging robotic arm cannot remove the obstacle blocking the charging port.

[0099] If the failure type is that the charging port position is significantly offset and cannot be resolved by repositioning or adjusting the orientation, then the fault level is determined to be a level three fault.

[0100] This disclosure categorizes charging failures into three levels of severity. Based on the failure level, the charging equipment is controlled to perform corresponding operations. This improves the success rate of plugging in the charging gun and reduces unnecessary mechanical movements, thereby lowering equipment wear.

[0101] In some embodiments of this disclosure, the charging device is controlled to perform corresponding processing operations based on the fault level, including: In the event of a Level 1 fault, the charging device will be controlled to open the charging port cover. In the case of a level 2 fault, obtain updated location information; the updated location information is used to indicate the target location when the charging device performs the plug-in operation again; the updated location information is determined by the charging device based on the location of the charging port, or the updated location information is received from the target server; In the case of a level 3 fault, fault information is generated and uploaded to the target server, so that the fault information can be sent to the first terminal associated with the vehicle to be charged and at least one preset second terminal through the target server; the fault information includes at least one of the following: identification information of the charging device, vehicle information of the vehicle to be charged, failure type and environmental image information.

[0102] In this embodiment of the disclosure, after obtaining the failure type, the local controller selects the corresponding processing operation based on the specific content of the failure type. The processing operation performs corrective actions targeting the root cause of the failure type.

[0103] For example, when the fault level is Level 1, the local controller controls the charging device to open the charging port cover. The local controller sends a charging port cover opening request to the vehicle control system of the vehicle to be charged via wireless communication. This request includes the charging device's identifier and an opening command. In response to the request, the vehicle control system of the vehicle to be charged controls the drive motor of the charging port cover to perform the opening action. After sending the opening request, the local controller continuously monitors the status of the charging port cover using a vision sensor. When the image information collected by the vision sensor indicates that the charging port cover has switched from the closed position to the open position, the local controller confirms that the opening operation is complete. If the local controller does not detect the cover opening within a preset waiting time, it resends the opening request, or generates an alarm message indicating that the cover opening has failed after repeating the process a preset number of times. After confirming that the opening operation is complete, the local controller controls the charging robotic arm to perform the charging gun insertion operation again.

[0104] For example, when the fault level is level two, the local controller obtains updated location information. When generating the failure type, the local controller simultaneously obtains the offset between the charging port position and the target position from the status information. The target position is a pre-stored reference position, which is the charging port position recorded in the history of successful charging port insertion. The offset includes at least one of horizontal, vertical, and angular offsets. The offset threshold is a pre-calibrated maximum allowable offset value, ranging from 1 cm to 3 cm. The local controller compares the offset with the offset threshold. When the offset is less than the offset threshold, the local controller determines that the current charging port insertion failure is due to a slight positional misalignment, which can be resolved through position correction. The local controller also checks the obstruction status of the charging port to confirm that it is unobstructed.

[0105] The updated location information is used to indicate the target location when the charging device performs the plug-in operation again. The updated location information is determined by the charging device based on the location of the charging port, or it is received from the target server.

[0106] In the implementation where the updated position information is determined locally, the local controller directly calculates the updated target position based on the current position of the charging port in the environmental image information collected by the vision sensor. The local controller uses the current position coordinates of the charging port as the target position coordinates in the updated position information. Based on the updated target position coordinates and the kinematic model of the charging robot arm, the local controller calculates the rotation angles and extensions of each joint required for the charging robot arm to move from its current posture to the target position. The local controller uses the calculated joint parameters as part of the updated position information.

[0107] In the implementation method of determining updated location information in the cloud, the local controller uploads environmental image information to the target server. The target server performs image recognition on the environmental image information to obtain the precise location coordinates of the charging port. Based on the precise location coordinates of the charging port, combined with the robotic arm parameters and installation position parameters of the charging device, the target server calculates the updated target position. The target server encapsulates the updated location information into a response data packet and sends it to the charging device via network communication. The local controller receives the updated location information returned by the target server.

[0108] In a specific application scenario, the failure type identified by the local controller is that the offset between the charging port position and the target position is less than the offset threshold, and the charging port is unobstructed. The local controller obtains the offset from the status information as 1.5 cm horizontally and 0.8 cm vertically, both less than the offset threshold of 2 cm. The local controller re-acquires image information of the charging port area using a vision sensor and calculates the current position coordinates of the charging port based on the re-acquired image information. The local controller determines the current position coordinates as the target position coordinates in the updated position information. Based on the updated target position coordinates, the local controller calculates the adjustment amount of each joint of the charging robotic arm, controls the charging robotic arm to move the charging gun head to the updated target position, and then performs the charging gun insertion operation again.

[0109] In another specific application scenario, the local controller's local computing resources are limited, making it unable to quickly and accurately calculate the target location. The local controller uploads environmental image information to a cloud server. The cloud server performs high-precision identification and positioning of the charging port in the environmental image information, calculating updated location information. The cloud server then sends the updated location information to the charging device. After receiving the updated location information, the local controller controls the charging robotic arm to adjust its posture and perform the charging gun insertion operation again based on the target location coordinates.

[0110] When the fault level is Level 3, the local controller generates fault information. This fault information includes at least one of the following: charging device identification information, vehicle information of the vehicle to be charged, failure type, and environmental image information. The charging device identification information includes the charging device's serial number, model number, and installation location. The vehicle information of the vehicle to be charged includes at least one of the following: vehicle identification number, vehicle model, and license plate number. The failure type is the specific failure type identified by the local controller or cloud server. The environmental image information consists of a color image and a depth image of the charging port area captured by a visual sensor.

[0111] The local controller uploads fault information to the target server via a communication module. The target server is a remote server deployed in the cloud, used to receive and distribute fault information.

[0112] For example, the local controller packages the fault information into a data packet and sends it to the receiving port of the target server via a wireless network. Upon receiving the fault information, the target server queries the first terminal associated with the vehicle to be charged, based on the vehicle information in the fault information. The first terminal is the vehicle owner's mobile terminal, on which a charging management application is installed. The target server sends the fault information to the first terminal via a push service. The target server also selects a target second terminal from at least one preset second terminal according to a preset maintenance scheduling strategy. The at least one preset second terminal is a mobile terminal belonging to maintenance personnel. The target server sends the fault information to the selected second terminal, which also includes the installation location of the charging equipment and the time of the fault.

[0113] In one implementation, when sending fault information to the first terminal, the target server also determines the sending method of the fault information based on the relationship between the current time and the user's preset do-not-disturb period. When the current time is within the user's preset do-not-disturb period, the target server sends the fault information to the first terminal silently, that is, via SMS notification or in-app notification, without triggering the mobile terminal's ringtone or vibration alert. When the current time is not within the do-not-disturb period, the target server sends the fault information to the first terminal normally, including at least one of application push notification and SMS notification.

[0114] In another implementation, after sending fault information to the second terminal, the target server also generates a maintenance work order. The maintenance work order includes the fault occurrence time, charging device location, failure type, environmental image information, and the contact information for the first terminal. The target server assigns the maintenance work order to the maintenance personnel corresponding to the target second terminal. The target server continuously monitors the processing status of the maintenance work order. If the target server does not receive feedback that the maintenance work order has been processed within a preset processing time threshold, the target server reassigns the maintenance work order to a candidate second terminal. A typical value for the processing time threshold is 2 hours.

[0115] For example, the fault information includes the charging device's serial number, the vehicle's license plate number, the failure type (foreign object obstruction), and an environmental image of the charging port area captured by a visual sensor. The local controller uploads the fault information to the cloud server. The cloud server queries the owner's mobile terminal associated with the vehicle based on the vehicle information and pushes a fault notification message to that owner's mobile terminal. For example, the notification content might be: "Your vehicle's charging port is faulty; a foreign object is obstructing the charging port. Automatic repair has been reported and is expected to be processed within 2 hours." Simultaneously, the cloud server sends the fault information and a maintenance work order to the maintenance personnel's mobile terminal. The work order includes the installation location of the charging device and an image of the surrounding environment. After receiving the work order, the maintenance personnel proceed to the site to handle the issue.

[0116] In another application scenario, the user pre-sets a "Do Not Disturb" period in the charging management application from 22:00 to 07:00 the next day. The charging device fails to plug in the charging port at 23:30, with the failure type being that the charging port position offset exceeds the offset threshold, and the number of attempts reaching three. When the cloud server sends fault information to the vehicle owner's mobile terminal, it detects that the current time 23:30 is within the "Do Not Disturb" period and sends a fault notification to the vehicle owner's mobile terminal via SMS, without triggering ringtone or vibration alerts, to avoid disturbing the user's rest late at night.

[0117] This disclosure solves the technical problem that existing technologies, which only use a uniform retry method, result in many invalid actions, high equipment wear, and low fault handling accuracy because different failure reasons require different handling methods. When the charging port cover is closed, the failure to insert the charging gun is due to physical obstruction. In this case, no position correction can solve the problem; only opening the cover can remove the obstruction. When there is a slight positional shift, the failure to insert the charging gun is due to alignment deviation. In this case, no external assistance is needed; the problem can be solved simply by correcting the target position based on the visually recognized current charging port position. The acquisition of updated position information can be completed either locally through real-time calculation using a visual sensor or in the cloud through a high-precision recognition algorithm. Both methods provide flexible technical paths for charging devices with different computing capabilities. Therefore, the processing operation corresponding to each failure type is precisely addressed based on the root cause of the failure type, avoiding ineffective actions such as blindly adjusting the posture when the cover is closed or blindly requesting the cover to be opened when the position is offset. This reduces ineffective mechanical actions, lowers equipment wear, and improves the accuracy and efficiency of fault handling.

[0118] In some embodiments of this disclosure, the operation of opening the charging port cover includes: Position the charging port cover, and based on the position of the charging port cover, control the actuator of the charging device to open the charging port cover; Alternatively, the charging equipment can be controlled to send an opening command to the vehicle to be charged; the opening command is used to instruct the vehicle to open the charging port cover.

[0119] In this embodiment of the disclosure, when the failure type is that the charging port cover is in a closed state, the local controller performs the operation of opening the charging port cover.

[0120] In one embodiment, the local controller locates the position of the charging port cover and controls the actuator of the charging device to open the charging port cover based on the position of the charging port cover.

[0121] For example, the local controller acquires environmental image information of the charging port area through a vision sensor and performs image recognition processing on the environmental image information. The image recognition model performs target detection in the charging port area, identifies the outline boundary of the charging port cover, and outputs the coordinates of the center point and edge contour points of the charging port cover. Based on the pixel coordinates of the charging port cover in the image, combined with the calibration parameters of the vision sensor, the local controller calculates the actual position coordinates of the charging port cover in physical space.

[0122] For example, the actuator of the charging device includes a dedicated cover-opening tool or charging gun body at the end of the charging robotic arm. The local controller calculates the rotation angle and extension amount of each joint required for the charging robotic arm to move from its current posture to the position of the charging port cover based on the actual position coordinates of the charging port cover and the kinematic model of the charging robotic arm.

[0123] The local controller sends the calculated joint parameters to the drive motor of the charging robotic arm. Responding to the joint parameters, the drive motor controls the charging robotic arm to move the actuator to the location of the charging port cover. Once the actuator reaches the charging port cover, the local controller controls the actuator to perform a preset opening action.

[0124] For example, the preset opening action includes at least one of pressing the open button on the cover, hooking the edge of the cover and pulling it outward, or applying a pushing force in the opening direction of the cover. After performing the opening action, the local controller re-acquires image information of the charging port area through a vision sensor to confirm that the charging port cover has switched from the closed position to the open position.

[0125] In another implementation, the local controller controls the charging equipment to send an opening command to the vehicle to be charged. The opening command instructs the vehicle to open the charging port cover.

[0126] For example, a wireless communication connection is established between the charging device and the vehicle to be charged. The wireless communication connection includes at least one of Bluetooth, Wi-Fi, and cellular communication connections. The local controller generates an opening command, which includes the device identifier of the charging device and an operation code for opening the cover. The local controller sends the opening command to the vehicle control system of the vehicle to be charged via a communication module.

[0127] After receiving and parsing the opening command, the vehicle control system of the vehicle to be charged controls the drive motor of the charging port cover to perform the opening action. After completing the opening action, the vehicle control system of the vehicle to be charged returns a confirmation message of successful opening to the charging equipment via wireless communication. After receiving the confirmation message, the local controller confirms that the charging port cover has been opened. If the local controller does not receive the confirmation message within a preset waiting time, the local controller resends the opening command, or generates an alarm message indicating that the cover has failed to open after repeating the command a preset number of times.

[0128] In a specific application scenario, the vehicle to be charged is an older model that does not support remote opening of the charging port cover. After the local controller of the charging equipment detects a failure due to the charging port cover being closed, it selects the first implementation method to perform the opening operation. The local controller acquires image information of the charging port area using a vision sensor. The image recognition model identifies the center point of the charging port cover as being located at 0.12 meters in the x-axis direction, -0.01 meters in the y-axis direction, and 0.28 meters in the z-axis direction in the vision sensor coordinate system. Based on these coordinates, the local controller controls the end effector of the charging robotic arm to move to the front of the charging port cover. Under the control of the local controller, a lever at the end of the charging robotic arm inserts into the gap at the edge of the cover and applies outward pulling force. The charging port cover flips open under the pull of the lever. After the local controller confirms that the cover is open via the vision sensor, it controls the charging robotic arm to retract and prepare for the insertion of the charging gun.

[0129] In another application scenario, the vehicle to be charged is a new model that supports remote opening of the charging port cover. After receiving a failure message indicating the charging port cover is closed, the local controller of the charging equipment selects the second implementation method to perform the opening operation. The local controller sends an opening command to the vehicle control system of the vehicle to be charged via a wireless communication module. The opening command carries the charging equipment's device identifier and an operation code for opening the cover. Upon receiving the opening command, the vehicle control system verifies the charging equipment's device identifier. If verification is successful, it controls the drive motor of the charging port cover to perform the opening action. The charging port cover automatically flips open under the drive motor. The vehicle control system of the vehicle to be charged returns a confirmation message of successful opening to the charging equipment via wireless communication. After receiving the confirmation message, the local controller confirms that the charging port cover is open and controls the charging robotic arm to perform the charging gun insertion operation.

[0130] In one alternative embodiment, before controlling the actuator of the charging device to open the charging port cover, the local controller also detects the surface material and hardness of the charging port cover using a force sensor. The local controller controls the charging robotic arm to bring the force sensor into contact with the surface of the charging port cover with a preset contact force, and the force sensor outputs a contact force feedback signal. The local controller identifies the material type of the charging port cover based on the rate of change and peak value of the contact force feedback signal output by the force sensor. When the identification result is a plastic cover, the local controller controls the actuator to perform the opening action with a first opening force. When the identification result is a metal cover, the local controller controls the actuator to perform the opening action with a second opening force, which is greater than the first opening force. Thus, the charging device adaptively adjusts the magnitude of the opening force according to the material type of the charging port cover, applying a smaller force on plastic covers to avoid damaging the cover, and applying a larger force on metal covers to ensure reliable opening, thereby achieving a balance between the success rate of opening the cover and the protection of the cover.

[0131] This disclosure provides two different technical paths for opening the charging port cover when it is closed. One approach involves locating the cover and controlling the charging device's actuator to open it, or sending an opening command to the vehicle to be charged. This solves the problem of varying support for remote opening functionality across different vehicle models, where a single opening method cannot be adapted to all models, leading to some vehicles failing to automatically resume charging when the cover is closed. The first approach uses the charging device's own actuator to mechanically open the cover, independent of the vehicle's remote control function, making it suitable for older models that do not support remote opening or vehicles with communication connectivity issues. The second approach sends an opening command to the vehicle via wireless communication, with the vehicle's own drive motor executing the opening action. This method offers high precision and avoids mechanical damage to the cover, making it suitable for newer models that support remote opening functionality. The two implementation methods provide adaptive cover opening solutions for vehicles with different configurations to be charged. The charging equipment can automatically select the appropriate cover opening method according to the vehicle model information or communication handshake results, thereby improving the success rate and scenario adaptability of the charging equipment in different vehicle models and communication conditions.

[0132] In some embodiments of this disclosure, the method further includes: If the number of times the gun insertion operation is performed is greater than or equal to the threshold, attempts to perform the gun insertion operation will be stopped.

[0133] In this embodiment, the local controller has a built-in retry counter to accumulate the number of times the plug-in operation is executed in the current charging task. When the number of executions is greater than or equal to a threshold, the local controller determines that the number of retry attempts has reached the upper limit. At this time, it controls the charging device to stop attempting to perform the plug-in operation and no longer continues to retry the plug-in, and generates a corresponding work order.

[0134] For example, the generated work order is used to guide maintenance personnel to the site to perform maintenance operations.

[0135] For example, the number of times threshold ranges from 2 to 5 times.

[0136] For example, the threshold number of times is 3.

[0137] This embodiment of the disclosure counts the total number of times the charging gun insertion operation is performed during a single charging task. When the count exceeds a preset threshold, it is determined that the fault causing the insertion failure cannot be eliminated by the charging device itself. In this case, the insertion is not retried to avoid additional mechanical wear caused by repeated retrying of the insertion operation.

[0138] In some embodiments of this disclosure, after controlling the charging device to perform corresponding processing operations based on the fault level, the method further includes: If the result of controlling the charging device to perform the plug-in operation again is that the plug-in is successful, the operation record of the failure type and the handling operation is associated and stored to obtain the target data; The target data is sent to the target server so that the target server can perform self-learning optimization based on the target data to obtain optimized operation parameters. Receive optimization operation parameters sent by the server; Alternatively, the charging device can perform self-learning optimization based on the target data to obtain optimized operating parameters. The optimized operating parameters include at least one of the operating parameters for inserting the gun and the operating parameters for processing.

[0139] In this embodiment of the disclosure, after the local controller controls the charging robotic arm to perform the insertion operation again, it re-evaluates the operation result of the insertion operation.

[0140] For example, the local controller detects the contact force between the charging gun and the charging port using a force sensor, and confirms whether the charging gun tip is fully inserted into the charging port using a vision sensor. When the charging gun tip is successfully inserted into the charging port and an electrical connection is established, the local controller determines that the insertion operation is successful.

[0141] After successful charging, the local controller associates and stores the failure type and handling operation records to obtain the target data. The target data includes a complete record of the entire charging task, from the initial charging failure to the final successful charging.

[0142] For example, the target data includes at least one of the following: failure type, execution record of processing operation, environmental parameters, vehicle attitude parameters, and recovery method identifier. The failure type is the type identifier corresponding to this charging failure. The execution record of processing operation includes the type of processing operation performed, the number of times it was performed, and the execution time. The environmental parameters include the ambient light intensity and ambient temperature at the time of the charging failure. The vehicle attitude parameters include the parking position deviation and parking angle deviation of the vehicle to be charged relative to the charging equipment. The recovery method identifier indicates the type of processing operation that ultimately led to successful charging.

[0143] The local controller stores the target data in the local storage unit.

[0144] In one implementation, the local controller sends target data to the target server via a communication module. Upon receiving the target data, the target server performs self-learning optimization processing to obtain optimized operating parameters. The target server extracts common and unique features from the target data uploaded by multiple charging devices. Common features are the patterns of charging device insertion failures and recovery under the same or similar conditions. Unique features are the patterns of current charging device insertion failures and recovery in its designated parking space environment. The target server performs statistical analysis on the failure types, environmental parameters, and recovery method identifiers in the target data to identify the processing operation type and operating parameter combination with the highest success rate under specific environmental conditions. The target server updates the optimized operating parameters based on the statistical analysis results. The optimized operating parameters include at least one of the operating parameters for insertion and processing operations. The operating parameters for insertion include insertion speed, insertion angle, and insertion force threshold. The operating parameters for processing operations include position offset correction, obstacle avoidance action amplitude, and opening force magnitude. The target server then distributes the optimized operating parameters to the charging devices. The local controller receives the optimized operation parameters sent by the target server and stores them in the local storage unit for use in subsequent charging tasks.

[0145] In another implementation, the local controller performs self-learning optimization processing locally based on target data to obtain optimized operating parameters. The local controller runs a lightweight self-learning algorithm that performs statistical analysis on target data from multiple charging tasks stored locally. The local controller compares the target data of the current charging task with the target data of historical charging tasks to identify the processing operation type and parameter combination with the highest success rate in the current dedicated parking space environment. The local controller updates the optimized operating parameters locally based on the statistical analysis results. The local controller stores the optimized operating parameters in local storage, without relying on the participation of a cloud server.

[0146] In a specific application scenario, charging devices in residential parking spaces repeatedly experienced charging port cover failures (specifically, plugging in the charging guns) under low-light conditions at night. The solution was always to send an open command to the vehicle being charged, successfully opening the cover and plugging in the charging gun. The local controller sent this data to a cloud server. After analyzing the data, the cloud server identified that the opening response time of the charging port cover for the vehicle being charged under low-light conditions was approximately 1.5 seconds longer than during the day. Based on this identification, the cloud server extended the open command waiting time in the optimized operation parameters from the default 5 seconds to 7 seconds and sent this optimized operation parameter to the charging device. The local controller received and stored this optimized operation parameter, and in subsequent nighttime charging tasks, it executed the open command and waited 7 seconds before determining whether the cover was open, avoiding false opening failures due to insufficient waiting time.

[0147] In another application scenario, the charging equipment in a home parking space locally stores target data for 50 charging tasks. The local controller runs a local self-learning algorithm to analyze position offset faults in the 50 target data sets. It finds that when the parking position of the vehicle to be charged is offset to the left by 2 to 3 centimeters relative to the reference position, correcting the plug-in nozzle target position to the left by 2.5 centimeters and then plugging in again achieves a 95% success rate. Based on this analysis, the local controller updates the position offset correction amount in its local optimized operating parameters to 2.5 centimeters. In subsequent charging tasks, when the local controller detects a position offset fault and the offset is within the range of 2 to 3 centimeters, it directly adjusts the plug-in nozzle target position according to the 2.5-centimeter correction amount, completing the plug-in without needing to visually reposition it again.

[0148] In one alternative embodiment, after receiving or generating optimized operating parameters, the local controller applies these parameters to the insertion operation in the next charging task. In the next charging task, before the initial insertion operation, the local controller controls the charging robot arm to perform the insertion operation based on the insertion speed, insertion angle, and insertion force threshold in the optimized operating parameters. When the insertion speed in the optimized operating parameters is lower than the default speed, the charging robot arm approaches the charging port at a lower speed, providing more detection time for the force and vision sensors, thus improving the positioning accuracy when insertion is successful again. Therefore, the optimized operating parameters remain effective in each charging task, achieving real-time positive feedback from historical experience to the current operation, ensuring that the charging device performs better in each charging task than in the previous one.

[0149] This embodiment of the disclosure stores the failure type and handling operation record as target data after a successful plug-in, and optimizes the operating parameters based on the target data through cloud-based or local self-learning. This allows the charging device to extract experience from each plug-in failure and continuously optimize its operating parameters. This solves the technical problem of existing charging devices not recording fault characteristics and recovery methods after plug-in failure handling, resulting in the same handling process being executed when the same or similar faults recur, and failing to utilize historical experience to improve handling efficiency and success rate. The target data includes multi-dimensional information such as failure type, environmental parameters, vehicle posture parameters, and recovery method identifiers. Cloud-based self-learning extracts common patterns from data from multiple charging devices, while local self-learning extracts individual patterns from the personalized data of the current dedicated parking space. Optimized operating parameters directly adjust specific control parameters such as plug-in speed, plug-in angle, and position offset correction, enabling the charging device to perform operations with better parameters when encountering the same or similar failure conditions in subsequent charging tasks. As a result, the operating parameters of the charging device are continuously optimized with the increase in usage, its adaptability to the dedicated parking space environment gradually improves, and the plug-in success rate and fault handling efficiency are continuously improved in long-term use.

[0150] In some embodiments of this disclosure, a charging control method is provided, which is applied to a target server.

[0151] For example, Figure 2 A second flowchart of a charging control method according to some embodiments of the present disclosure is shown, such as... Figure 2 As shown. The method includes: S202, receives environmental image information sent by the charging device.

[0152] In this embodiment, the target server receives environmental image information sent by the charging device through a communication port. After determining that the plug-in operation has failed, the charging device acquires environmental image information of the charging port area using a vision sensor, packages this environmental image information into a data packet, and uploads it to the target server via a wireless network. The data packet contains the charging device's device identification information, timestamp information, and environmental image information. After receiving the data packet, the target server parses the environmental image information from it.

[0153] S204 performs image recognition on the environmental image information to obtain the status information of the charging port.

[0154] The status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port.

[0155] In this embodiment, the target server performs image recognition processing on the environmental image information. An image recognition model is deployed on the target server. The image recognition model takes the environmental image information as input and outputs the state information of each component in the charging port area. The image recognition model includes at least one of an object detection network, a semantic segmentation network, and a keypoint detection network. The image recognition model performs object detection processing and keypoint detection processing on the color image to identify the contour boundary of the charging port cover and multiple keypoints of the charging port. The image recognition model performs semantic segmentation processing on the depth image to identify foreign object pixels within the opening area of ​​the charging port.

[0156] The target server processes environmental image information using an image recognition model to obtain the status information of the charging port. This status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the occlusion state of the charging port. The open state of the charging port cover indicates whether the cover is currently in an open or closed position. The image recognition model makes this determination based on the positional relationship between the cover's outline boundary and the center of the charging port.

[0157] When the cover's outline boundary is outside the central area of ​​the charging port, the image recognition model determines the cover is in the open position. When the cover's outline boundary covers or is within the central area of ​​the charging port, the image recognition model determines the cover is in the closed position. The position of the charging port is used to indicate the pixel coordinates of the charging port in the environmental image information and its spatial coordinates relative to the vision sensor.

[0158] The image recognition model outputs the pixel coordinates of multiple key points of the charging port. The target server calculates the actual physical location coordinates of the charging port based on these coordinates and the calibration parameters of the visual sensor. The occlusion status of the charging port indicates whether its opening is obstructed by an object. The image recognition model performs semantic segmentation on the pixels within the opening area. When there are foreign object pixels within the opening area and the total area of ​​these pixels exceeds a preset area threshold, the image recognition model determines that the charging port is obstructed.

[0159] S206, Generate failure type based on status information.

[0160] In this embodiment, the target server generates a failure type based on status information. The failure type includes at least one of the following: charging port cover not open, position offset, and foreign object obstruction. When the status information indicates the charging port cover is in a closed position, the target server generates the failure type as "charging port cover not open." When the status information indicates the cover is in an open position and the charging port is unobstructed, the target server compares the position of the charging port with a reference position. The target server reads pre-stored reference position information from the storage unit and calculates the positional deviation and angular deviation between the current charging port position and the reference position. When the positional deviation is greater than a preset positional deviation threshold or the angular deviation is greater than a preset angular deviation threshold, the target server generates the failure type as "position offset." When the status information indicates the cover is in an open position and the charging port is obstructed, the target server generates the failure type as "foreign object obstruction."

[0161] S208, send the failure type to the charging device.

[0162] The failure type is used to instruct the charging device to perform the corresponding processing operation.

[0163] In this embodiment, the target server encapsulates the generated failure type into a response data packet and sends it to the charging device via network communication. The failure type is used to instruct the charging device to perform the corresponding processing operation. After receiving the failure type returned by the target server, the charging device controls the charging device to perform the corresponding processing operation according to the failure type.

[0164] In a specific application scenario, after a charging device in a home parking space fails to plug in its charging port, it uses a visual sensor to collect environmental image information of the charging port area and uploads this image information to a cloud server. Upon receiving the environmental image information, the cloud server uses an image recognition model to process it. The image recognition model outputs the charging port's status information, indicating that the cover is in the open position, the center point of the charging port is offset 4 cm vertically relative to a reference position, and there are no foreign objects in the opening area. Based on the positional offset in the status information, the cloud server generates a failure type as a positional offset type. The cloud server encapsulates the positional offset type identifier into a response data packet and sends it to the charging device. Upon receiving the positional offset type, the charging device performs visual repositioning and attitude adjustment processing.

[0165] In another application scenario, after the cloud server performs image recognition on the environmental image information, the output status information indicates that the cover is in the closed position. The cloud server generates a failure type as "charging port cover not open" and sends this failure type to the charging device. Upon receiving the "charging port cover not open" type, the charging device performs the operation to open the charging port cover.

[0166] In one alternative embodiment, after receiving environmental image information sent by the charging device, the target server further evaluates the image quality of the environmental image information. The target server calculates the sharpness index and signal-to-noise ratio index of the environmental image information. When the sharpness index is lower than a preset sharpness threshold or the signal-to-noise ratio index is lower than a preset signal-to-noise ratio threshold, the target server sends an image re-acquisition command to the charging device. In response to the image re-acquisition command, the charging device re-acquisitions the environmental image information of the charging port area and sends the re-acquisitioned environmental image information to the target server. The target server then performs image recognition processing again on the re-acquisitioned environmental image information. Thus, when the quality of the environmental image information uploaded by the charging device is insufficient, the target server can request the charging device to re-acquisition the image, avoiding recognition errors caused by blurry images or excessive noise, and improving the reliability of cloud-based image recognition.

[0167] This embodiment of the disclosure receives environmental image information sent by a charging device through a target server, performs image recognition on the environmental image information to obtain the status information of the charging port, generates a failure type based on the status information, and sends the failure type to the charging device. This allows the computational tasks of image recognition and failure type generation to be performed by a cloud server, solving the technical problem that deploying a large-scale image recognition model may lead to decreased recognition speed, increased power consumption, and increased costs when the local computing resources of the charging device are limited. The cloud server is equipped with a high-performance image recognition model, capable of quickly and accurately recognizing the status, location information, and occlusion status of the charging port cover in the environmental image information, and returning the recognition result to the charging device in the form of a failure type. The charging device does not need to deploy a complex image recognition model locally; it only needs to perform environmental image acquisition, data upload, and result reception operations, reducing the computational load and storage usage of the local controller. The cloud server can provide fault identification services for multiple charging devices simultaneously, reducing the hardware cost of a single charging device. Therefore, the fault identification capability of the charging device is enhanced by cloud computing power, improving recognition accuracy and processing speed, while simultaneously reducing the hardware cost and maintenance complexity of the charging device.

[0168] In some embodiments of this disclosure, the method further includes: If the failure type is that the offset between the charging port position and the target position is less than the offset threshold, and the occlusion status of the charging port is unobstructed, the updated position information is determined based on the charging port position. The updated location information will be sent to the charging device.

[0169] In this embodiment of the disclosure, during the process of generating a failure type based on status information, when the status information indicates that the charging port cover is in the open position and the charging port is in an unobstructed state, the target server calculates the offset between the charging port position and the target position. The target position is a reference position pre-stored in the target server, which is the charging port position recorded in the history of successful charging gun insertion.

[0170] For example, the offset includes at least one of horizontal offset, vertical offset, and angular offset.

[0171] For example, the offset threshold is a pre-calibrated maximum allowable offset value, which ranges from 1 cm to 3 cm.

[0172] The target server compares the calculated offset with an offset threshold. If the offset is less than the threshold, the target server determines that the current charging port failure is due to a slight positional misalignment, which can be resolved through position correction. Simultaneously, the target server checks the obstruction status in the status information to confirm that the charging port is unobstructed. If the offset is less than the threshold and the obstruction status is unobstructed, the target server determines and updates the position information based on the charging port's location in the status information.

[0173] The target server extracts the current position coordinates of the charging port from the status information. These coordinates include the three-dimensional spatial coordinates of the charging port's center point in the target server's coordinate system and the orientation angle of the charging port's end face. The target server directly uses these current coordinates as the target position coordinates in the updated position information. This updated position information indicates the target position for the charging device when it performs the plug-in operation again. The target server encapsulates the updated position information into a response data packet. This response data packet contains the target position coordinates and orientation angle from the updated position information. The target server then sends the updated position information to the charging device via a wireless communication connection.

[0174] After receiving the updated location information from the target server, the charging device controls the charging robotic arm to adjust its posture and position based on the target location coordinates and orientation angle in the updated location information. The charging robotic arm moves the charging gun's nozzle to the updated target position and then performs the charging gun insertion operation again.

[0175] In a specific application scenario, the charging device in a home parking space uploads environmental image information to a cloud server. The cloud server performs image recognition on the environmental image information to obtain the status information of the charging port. The status information indicates that the charging port cover is in the open position, the charging port is unobstructed, and the center point of the charging port is offset by 1.5 cm horizontally and 0.8 cm vertically relative to the target position. The cloud server calculates that the horizontal offset of 1.5 cm and the vertical offset of 0.8 cm are both less than the offset threshold of 2 cm. Based on the current position coordinates of the charging port in the status information, the cloud server generates updated position information, in which the target position coordinates are consistent with the current position coordinates of the charging port. The cloud server sends the updated position information to the charging device. After receiving the updated position information, the charging device controls the charging robotic arm to move the charging gun head to the updated position according to the target position coordinates, and then performs the charging gun insertion operation again.

[0176] In another application scenario, after the cloud server performs image recognition on the environmental image information, the obtained offset is 2.5 cm in the horizontal direction, which is greater than the offset threshold of 2 cm. The cloud server determines that the current charging port insertion failure is not due to a slight positional misalignment. At this time, the cloud server sends a failure type with a larger charging port positional misalignment to the charging device, instructing the charging device not to retry the charging port insertion operation.

[0177] In one alternative embodiment, after determining the updated location information, the cloud server compares the updated location information with the charging device's historical location information. The cloud server reads the historical location information recorded by the charging device when it most recently successfully plugged in, from the storage unit. When the deviation between the updated location information and the historical location information exceeds a preset change threshold, the cloud server determines that the parking location of the vehicle to be charged has significantly changed relative to the historical record. The cloud server adds a location change identifier to the updated location information and sends this identifier to the charging device. After receiving the updated location information, the charging device, upon recognizing the location change identifier, controls the charging robotic arm to perform a complete charging port scan to confirm the accuracy of the updated location information. Thus, when the vehicle's parking location changes significantly, the charging device obtains more comprehensive charging port location information through scanning, avoiding repeated failures due to single location recognition errors.

[0178] This embodiment addresses the technical problem that charging devices with limited local computing resources or insufficient visual positioning accuracy cannot obtain accurate target position information in scenarios with slight positional deviations, leading to repeated failures when retrying to plug in the charging port. The cloud server accurately identifies the charging port position in the environmental image based on a high-precision image recognition model and directly converts the recognition result into updated position information, which is then sent to the charging device. The charging device does not need to perform high-precision position calculations locally; it only needs to adjust the charging arm's plug-in posture and position based on the received updated position information to complete the correction. Therefore, the charging device obtains high-precision position correction data from the cloud in scenarios with slight positional deviations, improving the positioning accuracy of retrying to plug in the charging port and increasing the success rate of retrying to plug in the charging port, while reducing the local computing requirements of the charging device.

[0179] In some embodiments of this disclosure, the method further includes: When the failure type corresponds to a level three failure, fault information is generated. Alternatively, it can receive fault information sent by the charging device. In addition, the method also includes: Send fault information to a first terminal associated with the vehicle to be charged and at least one preset second terminal.

[0180] In this embodiment of the disclosure, the charging device can determine the corresponding fault level based on the failure type. For example, the fault levels include Level 1 fault, Level 2 fault, and Level 3 fault.

[0181] If the failure type is that the charging port cover is closed, and it can be resolved by sending an open cover command or performing an open cover action, then the failure level is determined to be the mildest level one failure.

[0182] If the failure type is a small offset of the charging port position, which can be resolved by repositioning or adjusting the orientation, then the fault level is determined to be a level two fault.

[0183] If the failure type is that the charging port is blocked and the charging robotic arm cannot remove the obstacle blocking the charging port, then the fault level is determined to be a level three fault.

[0184] If the failure type is that the charging port position is significantly offset and cannot be resolved by repositioning or adjusting the orientation, then the fault level is determined to be a level three fault.

[0185] When a fault is determined to be a Level 3 fault, the target server generates fault information. This fault information includes at least one of the following: charging device identification information, vehicle information of the vehicle to be charged, failure type, and environmental image information. The charging device identification information includes the charging device's serial number, model number, and installation location. The vehicle information includes at least one of the following: vehicle identification number, vehicle model, and license plate number. The failure type is the specific failure type identified by the target server. The environmental image information consists of a color image and a depth image of the charging port area uploaded by the charging device. The target server stores the generated fault information in a cloud storage unit.

[0186] In another implementation, the target server receives fault information sent by the charging device. After the charging device detects that the fault triggering conditions are met locally, it generates fault information and uploads it to the target server via a communication module. The target server receives the fault information sent by the charging device through a communication port and parses the specific content of the fault information from the data packet.

[0187] The target server sends fault information to a first terminal associated with the vehicle to be charged and at least one preset second terminal. Based on the vehicle information of the vehicle to be charged in the fault information, the target server queries the first terminal associated with that vehicle. The first terminal is the vehicle owner's mobile terminal, on which a charging management application is installed. The target server sends the fault information to the first terminal via push service. The target server also selects a target second terminal from at least one preset second terminal according to a preset operation and maintenance scheduling strategy. At least one preset second terminal is a mobile terminal belonging to an operation and maintenance personnel. The target server sends fault information to the selected second terminal, which also includes the installation location of the charging equipment and the time of the fault.

[0188] In one implementation, when sending fault information to the first terminal, the target server also determines the sending method of the fault information based on the relationship between the current time and the user's preset do-not-disturb period. The target server reads the do-not-disturb period setting from the user configuration corresponding to the first terminal. When the current time is within the user's preset do-not-disturb period, the target server sends the fault information to the first terminal silently, that is, via SMS notification or in-app notification, without triggering the mobile terminal's ringtone or vibration alert. When the current time is not within the do-not-disturb period, the target server sends the fault information to the first terminal normally, including at least one of application push notification and SMS notification.

[0189] In another implementation, after sending fault information to the second terminal, the target server also generates a maintenance work order. The maintenance work order includes the fault occurrence time, charging device location, failure type, environmental image information, and the contact information for the first terminal. The target server assigns the maintenance work order to the maintenance personnel corresponding to the target second terminal. The target server continuously monitors the processing status of the maintenance work order. If the target server does not receive feedback that the maintenance work order has been processed within a preset processing time threshold, the target server reassigns the maintenance work order to a candidate second terminal. A typical value for the processing time threshold is 2 hours.

[0190] In a specific application scenario, after three failed attempts to plug in the charging port, the charging device in a residential parking space packages the failure type, number of attempts, and environmental image information and uploads it to a cloud server. Upon receiving the fault information from the charging device, the cloud server parses the failure type as foreign object obstruction and identifies three attempts. Based on the vehicle information in the fault message, the cloud server locates the owner's mobile terminal associated with the vehicle and pushes a fault notification message to that terminal stating, "Your vehicle's charging port is malfunctioning; a foreign object is obstructing the charging port. Automatic repair has been reported and is expected to be processed within 2 hours." Simultaneously, the cloud server sends the fault information and a maintenance work order to the maintenance personnel's mobile terminal. The work order includes the installation location of the charging device and an image of the surrounding environment. Upon receiving the work order, the maintenance personnel proceed to the site to handle the issue.

[0191] In another specific application scenario, when the cloud server generates a failure type based on status information, it detects that the failure type is a charging port position offset exceeding the offset threshold, reaching 4.5 centimeters. The cloud server generates the fault information directly in the cloud, without waiting for the charging device to upload it. The cloud server detects that the user is within a preset do-not-disturb period based on the current time and sends a fault notification to the vehicle owner's terminal via silent SMS, without triggering a ringtone.

[0192] In another specific application scenario, after the cloud server sends fault information and maintenance work orders to the maintenance personnel's second terminal, it starts a processing timer. Two hours later, if the cloud server does not receive feedback that the maintenance work order has been processed, it automatically reassigns the maintenance work order to the backup maintenance personnel corresponding to the alternative second terminal and sends the fault information and work order to the backup maintenance personnel.

[0193] In one alternative embodiment, after sending fault information to the first terminal, the cloud server also receives user feedback instructions returned by the first terminal. These user feedback instructions include at least one of a manual plug-in instruction and a waiting maintenance instruction. When the user feedback instruction is a manual plug-in instruction, the cloud server sends this instruction to the local controller of the charging equipment, putting the charging equipment into a manual plug-in standby mode, allowing the user to manually plug in the charging cable at their parking space. When the user feedback instruction is a waiting maintenance instruction, the cloud server maintains the current maintenance work order status, awaiting processing by maintenance personnel. Thus, after receiving a fault notification, the vehicle owner can choose to immediately manually plug in the cable or wait for maintenance personnel to handle the situation, providing a flexible interactive mechanism with user participation and shortening fault recovery time.

[0194] In one alternative embodiment, when sending fault information to the vehicle user of a vehicle awaiting charging, the online status of the vehicle user's application can be obtained. If the vehicle user's application is offline, meaning the vehicle user has not started the charging monitoring application, the vehicle user can be reminded to pay attention to the charging failure fault by calling the vehicle user or sending a text message.

[0195] In one alternative embodiment, the location information of the vehicle user can also be obtained, such as the location of the vehicle user's mobile phone. The location information is used to determine whether the user is at home. For example, the user can enable the home-based binding function. After enabling this function, if the location information determines that the vehicle user is at home, a fault message can be sent directly to the vehicle user, reminding them to pay attention to the charging failure and to go to the charging location for inspection. If the location information determines that the vehicle user is not at home, it is determined that the vehicle user may not be able to handle the charging failure themselves. In this case, a fault message is sent to the maintenance personnel of the charging equipment, reminding them to handle the fault.

[0196] In one alternative embodiment, after sending fault information to maintenance personnel and guiding them to handle the fault, if the maintenance personnel do not arrive in time or fail to handle the fault within the set time, the cloud server will proactively call the vehicle user to inform them that the charging plug failed and the attempt to handle the fault failed, and remind the vehicle user to try manually plugging in the charging plug.

[0197] Optionally, the charging equipment monitors the connection status between the charging gun and the vehicle's charging port in real time. Once the charging gun is detected as being manually plugged in by the vehicle user and a physical connection is established between the charging equipment and the vehicle's charging port, the charging equipment automatically starts charging.

[0198] This embodiment of the disclosure generates fault information when a fault level of three is detected by the target server, or receives fault information sent by the charging device, and sends the fault information to the vehicle owner terminal and the maintenance terminal. This enables the alarm and response process for charging plug faults to be centrally scheduled and distributed in the cloud, solving the technical problem in home charging scenarios where users are away or resting late at night, resulting in excessively long charging interruptions and affecting users' travel the next day. The cloud server, as the centralized processing node for fault information, can generate fault information automatically when a serious fault is detected locally, or receive fault information uploaded by the charging device. Both methods ensure the reliability of fault information generation. The cloud server associates with the vehicle owner terminal based on vehicle information and allocates maintenance terminals according to the maintenance scheduling strategy, enabling fault information to be delivered to both the vehicle owner and maintenance personnel simultaneously. A do-not-disturb period mechanism ensures that fault notifications are sent silently during user rest periods. The maintenance work order generation and timeout reassignment mechanism ensures that faults are processed within a preset time. As a result, alarms and responses to charging plug malfunctions are centrally scheduled in the cloud, and the distribution of fault information covers both vehicle owners and maintenance personnel, improving the timeliness of response and processing efficiency of charging faults in unattended home scenarios.

[0199] In some embodiments of this disclosure, the method further includes: Receive target data; the target data is obtained by associating and storing the operation record of the failure type and the processing operation when the charging device performs the processing operation and the result of the plugging operation is successful. Optimized operation parameters are obtained by self-learning optimization based on target data; the optimized operation parameters include at least one of the operation parameters for inserting the gun and the operation parameters for processing. Optimized operating parameters are sent to the charging device.

[0200] In this embodiment, after successful charging, the charging device associates and stores the failure type and processing operation records to obtain target data. The charging device uploads the target data to the target server via a communication module. The target server receives the target data sent by the charging device via a communication port. The target data includes a complete record of the entire charging task, from the initial charging failure to the final successful charging.

[0201] For example, the target data includes at least one of the following: failure type, execution record of processing operation, environmental parameters, vehicle attitude parameters, and recovery method identifier. The failure type is the type identifier corresponding to this charging failure. The execution record of processing operation includes the type of processing operation performed, the number of times it was performed, and the execution time. The environmental parameters include the ambient light intensity and ambient temperature at the time of the charging failure. The vehicle attitude parameters include the parking position deviation and parking angle deviation of the vehicle to be charged relative to the charging equipment. The recovery method identifier indicates the type of processing operation that ultimately led to successful charging.

[0202] The target server stores the received target data in a cloud storage unit. It then reads the historical target data set of the current charging device from this cloud storage unit. This historical target data set includes all target data uploaded by the current charging device in previous charging tasks. Based on the currently received target data and the historical target data set, the target server performs self-learning optimization processing to obtain optimized operating parameters.

[0203] The target server's self-learning optimization process comprises two stages: statistical analysis and parameter optimization. In the statistical analysis stage, the target server categorizes and statistically analyzes the failure types, environmental parameters, and recovery method identifiers in the target data. The target server identifies the processing operation types with the highest success rates under different environmental conditions. When the ambient light intensity is below a first light threshold, the target server statistically analyzes the success rate distribution of various processing operation types. When the ambient light intensity is between the first and second light thresholds, the target server statistically analyzes the success rate distribution of various processing operation types. When the parking position deviation of the vehicle to be charged falls within different deviation ranges, the target server statistically analyzes the success rate distribution of various processing operation types. Based on the statistical results, the target server determines the processing operation type with the highest success rate and its corresponding operating parameters under each environmental condition.

[0204] During the parameter optimization phase, the target server updates and optimizes the operational parameters based on the statistical analysis results. The optimized operational parameters include at least one of the operational parameters for the insertion operation and the operational parameters for the processing operation. The operational parameters for the insertion operation include insertion speed, insertion angle, and insertion force threshold. The operational parameters for the processing operation include position offset correction, obstacle avoidance action amplitude, and opening force magnitude. When the statistical analysis results indicate that the success rate is highest when the insertion speed is reduced to a first speed value under low light conditions, the target server sets the insertion speed in the optimized operational parameters to the first speed value.

[0205] For example, when the statistical analysis results indicate that the position offset is within the range of 2 to 3 centimeters in the dedicated parking space environment of the current charging equipment, the success rate is highest when the position offset correction is set to 2.5 centimeters. The target server will set the position offset correction in the optimized operation parameters to 2.5 centimeters.

[0206] After completing the self-learning optimization process, the target server encapsulates the optimized operation parameters into a response data packet and sends the optimized operation parameters to the charging device via a wireless communication connection. Upon receiving the optimized operation parameters, the charging device stores them in its local storage unit for use in subsequent charging tasks.

[0207] In a specific application scenario, the charging equipment in a home parking space uploaded target data for a total of 120 charging tasks over three consecutive months. The cloud server performed statistical analysis on these 120 data points. The results showed that under low-light conditions at night, the failure rate for charging port covers not opening was 45%, with a 92% success rate in opening the covers by sending an opening command to the vehicle being charged. Based on these results, the cloud server optimized the priority of the cover opening method in the operation parameters, prioritizing sending the opening command to the vehicle, and extended the waiting time after sending the opening command from the default 5 seconds to 7 seconds. The cloud server then distributed these optimized operation parameters to the charging equipment. When the charging equipment encounters a charging port cover not opening failure during subsequent nighttime charging tasks, it will prioritize sending the opening command to the vehicle.

[0208] In another specific application scenario, the cloud server performs statistical analysis on historical target data of the current charging equipment. It finds that when the parking position of the vehicle to be charged is offset to the left by 1 to 2 centimeters relative to the reference position, correcting the plug-in target position by 1.5 centimeters to the left before plugging in again achieves a 95% success rate. Based on this statistical result, the cloud server updates the position offset correction amount in the optimized operation parameters to 1.5 centimeters. The cloud server then sends the optimized operation parameters to the charging equipment. In subsequent charging tasks, when the charging equipment detects a position offset within the range of 1 to 2 centimeters, it directly adjusts the plug-in target position according to the 1.5-centimeter correction.

[0209] In one alternative embodiment, the cloud server, during self-learning optimization, also weights historical target data based on the usage time of the charging equipment. The cloud server assigns higher weights to recently generated target data and lower weights to earlier generated target data. The influence of recent target data on the current self-learning optimization is greater than that of earlier target data. When the environment of the charging equipment's dedicated parking space changes slowly, such as the addition of obstacles or changes in ground markings, the recent target data reflects the fault characteristics under the current environmental conditions, and its higher weight allows the optimized operating parameters to respond more quickly to environmental changes. When the environment of the charging equipment's dedicated parking space remains stable, all target data participates in self-learning optimization, and the adjustment of optimized operating parameters tends to stabilize. Thus, the self-learning optimization process fully utilizes all historical data to obtain more accurate statistical conclusions when the environment is stable, and responds quickly to fault characteristics under new environmental conditions through a weighted mechanism when the environment changes.

[0210] This embodiment of the disclosure receives target data uploaded by the charging device after successful insertion via a target server. Based on this target data, it performs self-learning optimization processing to obtain optimized operating parameters, which are then sent back to the charging device. This allows the charging device to learn from each failed insertion and continuously optimize its operating parameters, solving the technical problem of limited local computing resources for individual charging devices and the difficulty in conducting in-depth statistical analysis of large amounts of accumulated target data to discover the optimal combination of operating parameters. A cloud server aggregates the long-term accumulated target data from individual charging devices and uses statistical analysis methods to identify the processing operation types and operating parameter combinations with the highest success rates under different environmental conditions. The optimized operating parameters are personalized for the specific conditions of the current charging device's dedicated parking space environment. Specific control parameters such as insertion speed, position offset correction, and cover opening waiting time are continuously adjusted. Each time the charging device receives new optimized operating parameters, its subsequent charging performance improves. Therefore, the charging device's operating parameters are continuously optimized with increased usage, its adaptability to dedicated parking space environments gradually improves, and the insertion success rate and fault handling efficiency are continuously improved over long-term use, achieving a cloud-based self-learning closed loop based on historical data.

[0211] In some embodiments of this disclosure, a charging control device is provided, which is applied to a charging device, exemplarily... Figure 3 Structural block diagrams of charging control devices according to some embodiments of the present disclosure are shown, such as... Figure 3 As shown, the charging control device 300 includes: an acquisition module 302, a determination module 304, and an execution module 306.

[0212] The acquisition module 302 is used to acquire the corresponding failure type when the result of the charging device performing the plug-in operation is a plug-in failure; Module 304 is used to determine the corresponding fault level based on the failure type; The execution module 306 is used to control the charging device to perform corresponding processing operations based on the fault level, and, when the processing operation is completed and the fault level is a fault level that allows retry, to control the charging device to perform the plug-in operation again, the plug-in operation being used to insert the charging gun into the charging port of the vehicle to be charged.

[0213] This embodiment of the present disclosure obtains the corresponding failure type when the charging device fails to insert the charging gun, and controls the charging device to perform corresponding processing operations based on the fault level. This prevents the charging device from blindly repeating the same failed action, but instead takes targeted corrective measures based on the cause of the failure and then retryes. This reduces invalid mechanical actions, reduces equipment wear, and improves the automated handling capability of the charging gun failure and the charging success rate.

[0214] In some embodiments of this disclosure, a charging control device is provided, which is applied to a target server, exemplarily... Figure 4 Structural block diagrams of charging control devices according to some embodiments of the present disclosure are shown, such as... Figure 4 As shown, the charging control device 400 includes: a receiving module 402, an identification module 404, a generating module 406, and a transmitting module 408.

[0215] The receiving module 402 is used to receive environmental image information sent by the charging device; The recognition module 404 is used to perform image recognition on environmental image information to obtain the status information of the charging port; the status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the occlusion state of the charging port. Generation module 406 is used to generate failure types based on status information; The sending module 408 is used to send the failure type to the charging device; the failure type is used to instruct the charging device to perform the corresponding processing operation.

[0216] This embodiment of the disclosure obtains the status information of the charging port by acquiring environmental image information and performing image recognition on the environmental image information. Then, based on the status information, a failure type is generated, enabling the charging device to accurately identify the root cause of the charging gun failure based on the opening status of the charging port cover, the positional offset of the charging port, and the obstruction of the charging port. The generation of this failure type is based on specific image recognition results; different types of failure causes correspond to different fault levels and different handling strategies, providing an accurate classification basis for subsequent targeted processing operations, thereby improving the accuracy and effectiveness of fault handling.

[0217] In some embodiments of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the charging control method provided in any of the above embodiments.

[0218] In some embodiments of this disclosure, a charging device is provided, comprising: The charging control device of the charging equipment provided in any of the above embodiments.

[0219] In some embodiments of this disclosure, a target server is provided, comprising: The charging control device for the target server provided in any of the above embodiments.

[0220] In some embodiments of this disclosure, a computer program product is provided, which includes a computer program or instructions that, when executed by a processor, implement the charging control method provided in any of the above embodiments.

[0221] In some embodiments of this disclosure, a charging system is provided, comprising: The charging device provided in any of the above embodiments; and the target server provided in any of the above embodiments, the target server being communicatively connected to the charging device.

[0222] It should be noted that, in this document, relational terms such as “first” and “second” are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms “comprising,” “including,” or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus.

[0223] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A charging control method, characterized in that, The method is applied to a charging device, and the method includes: If the charging device fails to insert the charging gun, the corresponding failure type is obtained. Based on the failure type, determine the corresponding failure level; Based on the fault level, the charging device is controlled to perform a corresponding processing operation. When the processing operation is completed and the fault level is a fault level that allows retry, the charging device is controlled to perform the plug-in operation again. The plug-in operation is used to insert the charging gun into the charging port of the vehicle to be charged.

2. The method according to claim 1, characterized in that, The method of obtaining the corresponding failure type includes: Acquire environmental image information; The environmental image information is subjected to image recognition to obtain the status information of the charging port; the status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port; The failure type is generated based on the status information.

3. The method according to claim 1, characterized in that, The method of obtaining the corresponding failure type includes: Acquire environmental image information; The environmental image information is uploaded to the target server to instruct the target server to perform image recognition on the environmental image information to obtain the status information of the charging port, and generate the failure type based on the status information; the status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port; Receive the failure type returned by the target server.

4. The method according to claim 2 or 3, characterized in that, The process of determining the corresponding fault level based on the failure type includes: If the failure type is that the charging port cover is closed, the fault level is determined to be a level one fault. If the failure type is charging port position offset, the offset of the charging port from the target position is less than the offset threshold, and the obstruction state of the charging port is unobstructed, the fault level is determined to be a level two fault. If the failure type is that the charging port is blocked, and / or if the failure type is that the charging port position is offset, and the offset of the charging port from the target position is greater than or equal to the offset threshold, the fault level is determined to be a level three fault. Among them, the first-level fault and the second-level fault are fault levels that allow retry.

5. The method according to claim 4, characterized in that, The step of controlling the charging device to perform corresponding processing operations based on the fault level includes: In the event of a level 1 fault, the charging device is controlled to open the charging port cover. In the case of a level 2 fault, updated location information is obtained; the updated location information is used to indicate the target location when the charging device performs the plug-in operation again; the updated location information is determined by the charging device based on the location of the charging port, or the updated location information is received from the target server; In the case of a level 3 fault, fault information is generated and uploaded to the target server, so that the fault information can be sent to a first terminal associated with the vehicle to be charged and at least one preset second terminal through the target server; the fault information includes at least one of the following: identification information of the charging device, vehicle information of the vehicle to be charged, the failure type, and environmental image information.

6. The method according to claim 5, characterized in that, The operation of opening the charging port cover includes: Position the charging port cover, and based on the position of the charging port cover, control the actuator of the charging device to open the charging port cover; Alternatively, the charging device can be controlled to send an opening command to the vehicle to be charged; the opening command is used to instruct the vehicle to be charged to open the charging port cover.

7. The method according to claim 1, characterized in that, The method further includes: If the number of times the insertion operation is performed is greater than or equal to the threshold number, attempts to perform the insertion operation will be stopped.

8. The method according to any one of claims 1 to 3, characterized in that, After controlling the charging device to perform the corresponding processing operation based on the fault level, the method further includes: If the result of controlling the charging device to perform the plug-in operation again is that the plug-in is successful, the operation record of the failure type and the processing operation is associated and stored to obtain the target data; The target data is sent to the target server, so that the target server can perform self-learning optimization processing based on the target data to obtain optimized operation parameters; Receive the optimized operation parameters sent by the target server; Alternatively, the charging device can be controlled to perform self-learning optimization processing based on the target data to obtain the optimized operating parameters; The optimized operating parameters include at least one of the operating parameters for the gun insertion operation and the operating parameters for the processing operation.

9. A charging control method, characterized in that, The method is applied to the target server, and the method includes: Receive environmental image information sent by the charging device; The environmental image information is subjected to image recognition to obtain the status information of the charging port; the status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port; A failure type is generated based on the status information; The failure type is sent to the charging device; the failure type is used to instruct the charging device to perform the corresponding processing operation.

10. The charging control method according to claim 9, characterized in that, The method further includes: If the failure type is charging port position offset, and the offset between the charging port position and the target position is less than the offset threshold, and the occlusion status of the charging port is unobstructed, then the updated position information is determined based on the charging port position. The updated location information is sent to the charging device.

11. The method according to claim 9, characterized in that, The method further includes: In the case where the failure type is that the charging port is blocked, and / or in the case where the failure type is that the charging port position is offset, and the offset of the charging port from the target position is greater than or equal to the offset threshold, a fault information is generated. Alternatively, it can receive fault information sent by the charging device; Furthermore, the method further includes: The fault information is sent to a first terminal associated with the vehicle to be charged and at least one preset second terminal, wherein the vehicle to be charged is the vehicle corresponding to the plug-in operation of the charging device.

12. The charging control method according to claim 9, characterized in that, The method further includes: Receive target data; the target data is obtained by associating and storing the operation record of the failure type and the processing operation when the charging device performs the processing operation again and the result of the insertion operation is successful. Based on the target data, self-learning optimization processing is performed to obtain optimized operation parameters; the optimized operation parameters include at least one of the operation parameters of the gun insertion operation and the operation parameters of the processing operation. The optimized operating parameters are sent to the charging device.

13. A charging control device, characterized in that, The charging control device is applied to the charging equipment, and the charging control device includes: The acquisition module is used to acquire the corresponding failure type when the charging device fails to insert the charging gun. The determination module is used to determine the corresponding fault level based on the failure type; An execution module is configured to control the charging device to perform a corresponding processing operation based on the fault level, and, when the processing operation is completed and the fault level is a fault level that allows retry, control the charging device to perform the plug-in operation again, the plug-in operation being used to insert the charging gun into the charging port of the vehicle to be charged.

14. A charging control device, characterized in that, The charging control device is applied to the target server, and the charging control device includes: The receiving module is used to receive environmental image information sent by the charging device; The recognition module is used to perform image recognition on the environmental image information to obtain the status information of the charging port; the status information includes at least one of the following: the open state of the charging port cover, the position of the charging port, and the obstruction state of the charging port. The generation module is used to generate a failure type based on the status information; A sending module is used to send the failure type to the charging device; the failure type is used to instruct the charging device to perform a corresponding processing operation.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 12.