Abnormality detection method, device and equipment of charging CAN interface and medium
通过在电动车辆启动后利用预设时器向充电CAN接口发送诊断报文,实时检测其状态,解决了充电CAN接口损坏检测迟缓的问题,提升了检测效率和用户体验。
Patent Information
- Application Number
- CN202411181426.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-11-08
AI Technical Summary
Prior Art During the charging process of electric vehicles, the charging CAN interface is easily damaged by high current, but the detection is slow and manual detection is required, resulting in low detection efficiency and long processing time.
After the electric vehicle is started, the diagnostic message is sent to the charging CAN interface through the timing cycle of the preset timer, and the interface status is determined based on the feedback message and the diagnostic message. If it is abnormal, the fault information will be reported to improve detection timeliness and efficiency.
It realizes instant detection of the charging CAN interface status after the vehicle is started, avoiding users from discovering the interface damage when charging, improving the timeliness and efficiency of detection and improving user experience.
Smart Images

Figure CN118906998A_ABST
Abstract
Description
Background Art
[0002] With the rapid development of new energy electric vehicles and battery technology, the battery capacity of electric vehicles is increasing. In order to shorten the charging time of large-capacity batteries, fast charging piles can be used for fast charging. At the moment when the fast charging pile completes charging and disconnects the charging gun, there is still a large current. The large current can easily damage the vehicle charging CAN interface.
[0003] Since the current that causes damage is the current that disconnects the charging gun, charging is already finished at this time, and the user cannot determine that the charging CAN interface is damaged. Therefore, the common abnormality detection process currently is that when the vehicle is in a low-battery state, the user uses the charging gun to charge it again and detects charging failure during the charging process. At this time, the vehicle is driven to a repair shop for manual inspection to determine that the charging CAN interface is abnormal and repair it.
[0004] However, the commonly used methods currently have the following technical problems: charging anomalies are often detected only when the vehicle is at low power and is being charged. Not only is the detection slow, but manual inspection is also required afterwards, which takes a long time to process, further reducing the efficiency of the detection and processing. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for detecting anomalies of a charging CAN interface, and the method can solve one or more of the above-mentioned technical problems.
[0006] A first aspect of an embodiment of the present invention provides a method for detecting an abnormality of a charging CAN interface, the method comprising:
[0007] After the electric vehicle is started, determine whether the current state of the charging CAN interface is normal;
[0008] If the current status of the charging CAN interface is normal, the diagnostic message is sent to the charging CAN interface in sequence according to the timing cycle of the preset timer;
[0009] After receiving the feedback message sent by the charging CAN interface, it is determined that the state of the charging CAN interface is abnormal according to the feedback message and the diagnosis message.
[0010] In a possible implementation manner of the first aspect, sending the diagnostic message to the charging CAN interface in sequence according to the timing period of the preset timer includes:
[0011] Obtaining a current time node, where the current time node is a real-time timing node of a preset timer;
[0012] If the current time node is the same as the reset time node of the preset timer, continuously send a diagnostic message to the charging CAN interface according to a preset number of times;
[0013] If the current time node is different from the reset timing node of the preset timer, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle, and continuously send diagnostic messages to the charging CAN interface according to the preset number of times.
[0014] In a possible implementation manner of the first aspect, the continuously sending the diagnostic message to the charging CAN interface according to a preset number of times includes:
[0015] Obtaining a diagnostic number value, wherein the diagnostic number value is the number of times a diagnostic message is sent to the charging CAN interface within the timing period corresponding to the current time node;
[0016] If the diagnostic number value is less than the preset number value, continuously sending diagnostic messages to the charging CAN interface according to the difference between the preset number value and the diagnostic number value;
[0017] If the diagnosis number value is greater than or equal to the preset number value, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle to send a diagnostic message to the charging CAN interface.
[0018] In a possible implementation manner of the first aspect, determining, according to the feedback message and the diagnostic message, that the state of the charging CAN interface is abnormal includes:
[0019] If it is determined that the feedback message is different from the corresponding diagnostic message, then it is determined that the state of the charging CAN interface is abnormal;
[0020] If it is determined that the feedback message is the same as the corresponding diagnosis message, it is determined that the state of the charging CAN interface is normal.
[0021] In a possible implementation manner of the first aspect, after the step of determining that the state of the charging CAN interface is abnormal according to the feedback message and the diagnostic message, the method further includes:
[0022] Report abnormal fault status and display fault information for user reference.
[0023] A second aspect of an embodiment of the present invention provides a device for detecting an abnormality of a charging CAN interface, the device comprising:
[0024] A state determination module, used to determine whether the current state of the charging CAN interface is normal after the electric vehicle is started;
[0025] A message sending module, used for sending diagnostic messages to the charging CAN interface in sequence according to the timing cycle of a preset timer if the current state of the charging CAN interface is normal;
[0026] The abnormality detection module is used to determine that the state of the charging CAN interface is abnormal according to the feedback message and the diagnosis message after receiving the feedback message sent by the charging CAN interface.
[0027] In a possible implementation manner of the second aspect, sending the diagnostic message to the charging CAN interface in sequence according to the timing period of the preset timer includes:
[0028] Obtaining a current time node, where the current time node is a real-time timing node of a preset timer;
[0029] If the current time node is the same as the reset time node of the preset timer, continuously send a diagnostic message to the charging CAN interface according to a preset number of times;
[0030] If the current time node is different from the reset timing node of the preset timer, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle, and continuously send diagnostic messages to the charging CAN interface according to the preset number of times.
[0031] In a possible implementation manner of the second aspect, the continuously sending the diagnostic message to the charging CAN interface according to a preset number of times includes:
[0032] Obtaining a diagnostic number value, wherein the diagnostic number value is the number of times a diagnostic message is sent to the charging CAN interface within the timing period corresponding to the current time node;
[0033] If the diagnostic number value is less than the preset number value, continuously sending diagnostic messages to the charging CAN interface according to the difference between the preset number value and the diagnostic number value;
[0034] If the diagnosis number value is greater than or equal to the preset number value, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle to send a diagnostic message to the charging CAN interface.
[0035] In a possible implementation manner of the second aspect, determining, according to the feedback message and the diagnostic message, that the state of the charging CAN interface is abnormal includes:
[0036] If it is determined that the feedback message is different from the corresponding diagnostic message, then it is determined that the state of the charging CAN interface is abnormal;
[0037] If it is determined that the feedback message is the same as the corresponding diagnosis message, it is determined that the state of the charging CAN interface is normal.
[0038] In a possible implementation manner of the second aspect, the apparatus further includes:
[0039] The fault prompt module is used to report abnormal fault status and display fault information for user reference.
[0040] Compared with the prior art, the embodiment of the present invention provides a method, device, equipment and medium for detecting abnormality of a charging CAN interface, and its beneficial effect is that: the present invention can determine whether the current state of the charging CAN interface is normal after the electric vehicle is started; if the current state of the charging CAN interface is normal, a diagnostic message is sent to the charging CAN interface in sequence according to the timing cycle of a preset timer; after receiving the feedback message sent by the charging CAN interface, the state of the charging CAN interface is determined to be abnormal according to the feedback message and the diagnostic message. The present invention can perform real-time detection of the charging CAN interface multiple times according to the timing cycle after the vehicle is started, which can not only improve the timeliness of the detection and avoid lag, but also improve the detection efficiency, avoid the situation where the user finds that the interface is damaged and cannot be charged when charging, and effectively improve the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a flow chart of a method for detecting abnormality of a charging CAN interface provided by an embodiment of the present invention;
[0042] Figure 2 This is an operation flow chart of a method for detecting an abnormality of a charging CAN interface provided by an embodiment of the present invention;
[0043] Figure 3 It is a structural schematic diagram of an abnormality detection device for a charging CAN interface provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] In order to solve the above problems, a charging CAN interface abnormality detection method, device, equipment and medium provided in an embodiment of the present application will be introduced and explained in detail through the following specific embodiments.
[0046] Reference Figure 1 , showing a flow chart of a method for detecting anomalies of a charging CAN interface provided by an embodiment of the present invention.
[0047] In one embodiment, the method is applicable to a control system of a vehicle, for example, a vehicle computer control system.
[0048] Wherein, as an example, the abnormality detection method of the charging CAN interface may include:
[0049] S11. After the electric vehicle is started, determine whether the current state of the charging CAN interface is normal.
[0050] In one embodiment, after the electric vehicle is started, the charging CAN interface of the electric vehicle may be detected for abnormalities. Before the detection, it may be determined whether the current state of the charging CAN interface is normal. If the current state of the charging CAN interface is abnormal, an abnormal prompt may be immediately issued to notify the user to repair the charging CAN interface. If the current state of the charging CAN interface is normal, an abnormality detection may be performed on it.
[0051] S12: If the current state of the charging CAN interface is normal, send diagnostic messages to the charging CAN interface in sequence according to the timing cycle of the preset timer.
[0052] In one embodiment, a timer may be pre-set, and the timing duration of the timer may be set, for example, one minute, five minutes, or ten minutes each time. Each timing duration may be a timing cycle.
[0053] A diagnostic message can be sent to the charging CAN interface at each timing cycle, and then the diagnostic message can be used to determine whether the charging CAN interface is abnormal.
[0054] The present invention can detect abnormalities in the charging CAN interface after the electric vehicle is started, so as to avoid the user discovering that the charging CAN interface is faulty during charging, and can identify in advance whether the charging CAN interface is damaged. Moreover, the entire detection process is carried out according to the timing cycle of the preset timer, and detection is performed once in each timing cycle until the electric vehicle is turned off or the charging CAN interface is determined to be damaged, which can further improve the timeliness and efficiency of the detection.
[0055] In an optional embodiment, the timing duration of the timer may be long or short. For example, if the timing duration of the timer is 1 minute, the timing cycle is also 1 minute, and detection is performed once every minute. For another example, if the timing duration of the timer is 5 minutes, the timing cycle is also 5 minutes, and detection is performed once every 5 minutes.
[0056] In order to trigger the detection process at the start time node of each timing cycle to improve the timeliness of the detection, as an example, sending the diagnostic message to the charging CAN interface in sequence according to the timing cycle of the preset timer may include the following sub-steps:
[0057] S121. Obtain a current time node, where the current time node is a real-time timing node of a preset timer.
[0058] In one embodiment, the real-time timing node of the preset timer may be obtained to obtain the current time node. For example, if the preset timer starts timing from 0 and after timing for 100 milliseconds, the current time node may be 100 ms.
[0059] S122: If the current time node is the same as the reset timing node of the preset timer, continuously send a diagnostic message to the charging CAN interface according to a preset number of times.
[0060] In one embodiment, assuming that the timing duration of the preset timer is 1 minute, corresponding to 60000 milliseconds, the reset timing node may be 60000 milliseconds.
[0061] In actual operation, assuming that the current time node is 60000ms and the reset timing node is 60000 milliseconds, the two are the same, indicating that the current time is the starting time node of the timing cycle, which can trigger the detection process. Multiple diagnostic messages can be continuously sent to the charging CAN interface according to the preset number of times, so as to determine whether the charging CAN interface is abnormal based on multiple diagnostic messages.
[0062] S123: If the current time node is different from the reset timing node of the preset timer, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle, and continuously send diagnostic messages to the charging CAN interface according to the preset number of times.
[0063] In actual operation, assuming that the current time node is 100ms and the reset timing node is 60000 milliseconds, the two are different, indicating that the current time is not the starting time node of the timing cycle, and the timing cycle corresponding to the current time may have been detected once, so you can wait temporarily. At this time, the timer continues to count until the current time node of the timer is the same as the reset timing node, indicating that the next timing cycle has been entered and the detection process can be triggered. For details, please refer to step S122, and continuously send diagnostic messages to the charging CAN interface according to the preset number of times.
[0064] It should be noted that when it is determined that the operation of sending the diagnostic message is completed, the timer can be reset so that the timer can return to zero and restart timing to trigger the next detection. The cycle is repeated until the charging CAN interface is detected to be abnormal.
[0065] Through the above operation mode, whether to trigger the detection is determined according to the current time node, so as to ensure that the detection process can be triggered at the starting time node of the timing cycle every time, so as to improve the timeliness of the detection and avoid the situation of missed detection.
[0066] In an actual application scenario, the communication between the vehicle system and the charging CAN interface may be interrupted due to various situations, resulting in the loss of the diagnostic message sent by the vehicle system to the charging CAN interface, causing the charging CAN interface to fail to receive the diagnostic message and thus be unable to perform diagnosis.
[0067] In order to avoid the above situation, the present invention can send multiple diagnostic messages to the charging CAN interface, where, as an example, the continuous sending of diagnostic messages to the charging CAN interface according to a preset number of times may include the following sub-steps:
[0068] S1221. Obtain a diagnosis count value, wherein the diagnosis count value is the number of times a diagnostic message is sent to the charging CAN interface within a timing period corresponding to the current time node.
[0069] S1222: If the diagnostic number value is less than a preset number value, continuously send diagnostic messages to the charging CAN interface according to the difference between the preset number value and the diagnostic number value.
[0070] S1223: If the diagnosis number value is greater than or equal to the preset number value, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle to send a diagnostic message to the charging CAN interface.
[0071] For example, the timing period of the timer is 1 minute, which corresponds to 60000 milliseconds, and the diagnostic message sending period is 10 milliseconds, that is, only the diagnostic message is sent once each time.
[0072] Since the time to send a message is short, if a message is sent, only 10 milliseconds are used, and the remaining 59990 milliseconds are waiting. If the message is sent incorrectly or there are other reasons that cause the charging CAN interface to fail to receive the message, there will be no detection result in this timing cycle, wasting this detection process.
[0073] In order to avoid the above situation, the number of times to send the message can be preset, for example 20 times or 30 times. Referring to the above example, if the message is sent 30 times, the time required to send the message is only 300 milliseconds, and the waiting time is only 59700 milliseconds, which can greatly shorten the waiting time.
[0074] It should be noted that the number of transmissions can be adjusted according to actual needs, and the upper limit of the number is the ratio of the timing cycle to the message transmission cycle.
[0075] In actual operation, before each diagnostic message is sent, a diagnostic count value can be obtained, which can be the number of times the diagnostic message is sent to the charging CAN interface within the timing cycle corresponding to the current time node. Specifically, it is the number of times the diagnostic message is sent within this timing cycle.
[0076] After obtaining the diagnostic count value, it can be determined whether the diagnostic count value is less than the preset count value. If the diagnostic count value is less than the preset count value, the difference between the preset count value and the diagnostic count value can be calculated, and then multiple diagnostic messages can be continuously sent to the charging CAN interface according to the number corresponding to the difference.
[0077] If the diagnostic count value is greater than or equal to the preset count value, it means that multiple diagnostic messages have been sent. You can wait for the preset timer to count from the current time node to the reset timing node. When the next timing cycle is reached, the diagnostic message is sent to the charging CAN interface in the next timing cycle.
[0078] In a specific operation embodiment, a diagnostic cycle timer can be set, and the timing duration of the diagnostic cycle timer is the product of the number of times the message is sent and the message period. Assuming that the diagnostic message sending period is 10 milliseconds and the number of times it is sent is 50 times, the timing duration of the diagnostic cycle timer is 500 milliseconds.
[0079] After the diagnostic message starts to be sent, the diagnostic cycle timer starts timing until the timing reaches 500 milliseconds, confirming that 50 diagnostic messages have been sent. At this time, the sending can be stopped and reset to zero, and then wait for a timing cycle before sending and starting timing again.
[0080] Through the above-mentioned operation method, it is possible to avoid the situation where the communication between the vehicle system and the charging CAN interface is interrupted due to various factors, resulting in the loss of the diagnostic message sent by the vehicle system to the charging CAN interface, causing the charging CAN interface to fail to receive the diagnostic message and thus be unable to perform diagnosis. The present invention can continuously send diagnostic messages to the charging CAN interface when the diagnostic number value is less than the preset number value, ensuring that diagnostic operations can be performed continuously within each detection cycle.
[0081] S13. After receiving the feedback message sent by the charging CAN interface, determine, according to the feedback message and the diagnosis message, that the state of the charging CAN interface is abnormal.
[0082] In one embodiment, after sending a diagnostic message to the charging CAN interface, the charging CAN interface will feedback a message accordingly, and the vehicle system can determine whether the status of the charging CAN interface is abnormal based on the contents of the feedback message and the diagnostic message.
[0083] In one embodiment, step S13 may include the following sub-steps:
[0084] S131: If it is determined that the feedback message is different from the corresponding diagnosis message, it is determined that the state of the charging CAN interface is abnormal.
[0085] S132: If it is determined that the feedback message is the same as the corresponding diagnosis message, it is determined that the state of the charging CAN interface is normal.
[0086] In actual operation, it can be determined whether the message contents of the feedback message and the diagnostic message are the same. If the message contents of the feedback message and the diagnostic message are the same, it can be determined that the state of the charging CAN interface is normal; conversely, if the message contents of the feedback message and the diagnostic message are different, it can be determined that the state of the charging CAN interface is abnormal.
[0087] By comparing the contents of the sent diagnostic message and the message fed back by the charging CAN interface, it is possible to accurately determine whether the status of the charging CAN interface is abnormal, thereby improving detection accuracy.
[0088] After determining that the state of the charging CAN interface is abnormal, in order to promptly notify the user to handle, as an example, the abnormality detection method of the charging CAN interface may further include the following steps:
[0089] S14. Report the abnormal fault status and display the fault information for user reference.
[0090] Specifically, when it is determined that the status of the charging CAN interface is abnormal, the vehicle computer can record the status of the charging CAN interface and display preset fault prompt information on the vehicle's central control screen to prompt the user to repair the vehicle in time.
[0091] After determining that the status of the charging CAN interface is abnormal, the fault abnormal status can be reported immediately, so that the vehicle system can display the fault information to the user and notify the user in time to perform maintenance to avoid the situation where charging is confirmed to be impossible only after the charging gun is inserted.
[0092] Reference Figure 2 , shows an operation flow chart of a charging CAN interface abnormality detection method provided by an embodiment of the present invention.
[0093] Taking the diagnosis cycle as 1 minute and the diagnosis message being sent 30 times as an example, the abnormality detection method of the charging CAN interface may include the following steps:
[0094] The first step is to determine whether the current state of the charging CAN interface is normal. If the current state of the charging CAN interface is abnormal, a fault prompt is triggered immediately;
[0095] In the second step, if the current status of the charging CAN interface is normal, it can be determined whether the diagnostic cycle of 1 minute has been reached. If the diagnostic cycle of 1 minute has not been reached, the timer continues to count;
[0096] In the third step, if the 1 minute of the diagnosis cycle is reached, it can be determined whether the number of times the diagnosis message is sent is 30 times. If the number of times the diagnosis message is sent is 30 times, wait until the next diagnosis cycle;
[0097] Step 4: If the number of times the diagnostic message is sent is less than 30, the process continues until 30 diagnostic messages are sent;
[0098] The fifth step is to determine whether the charging CAN interface is abnormal based on the feedback message of the charging CAN interface. If it is normal, repeat the first step. If it is abnormal, a fault prompt is triggered immediately.
[0099] In this embodiment, the embodiment of the present invention provides a method for detecting abnormality of a charging CAN interface, and its beneficial effect is that: the present invention can determine whether the current state of the charging CAN interface is normal after the electric vehicle is started; if the current state of the charging CAN interface is normal, a diagnostic message is sent to the charging CAN interface in sequence according to the timing cycle of a preset timer; after receiving the feedback message sent by the charging CAN interface, the state of the charging CAN interface is determined to be abnormal according to the feedback message and the diagnostic message. The present invention can perform real-time detection of the charging CAN interface multiple times according to the timing cycle after the vehicle is started, which can not only improve the timeliness of the detection and avoid lag, but also improve the detection efficiency, avoid the situation where the user finds that the interface is damaged and cannot be charged when charging, and effectively improve the user experience.
[0100] The embodiment of the present invention also provides a charging CAN interface abnormality detection device, see Figure 3 , showing a schematic structural diagram of an abnormality detection device for a charging CAN interface provided by an embodiment of the present invention.
[0101] Wherein, as an example, the abnormality detection device of the charging CAN interface may include:
[0102] The state determination module 201 is used to determine whether the current state of the charging CAN interface is normal after the electric vehicle is started;
[0103] The message sending module 202 is used to send diagnostic messages to the charging CAN interface in sequence according to the timing cycle of the preset timer if the current state of the charging CAN interface is normal;
[0104] The abnormality detection module 203 is used to determine whether the state of the charging CAN interface is abnormal according to the feedback message and the diagnosis message after receiving the feedback message sent by the charging CAN interface.
[0105] Optionally, sending diagnostic messages to the charging CAN interface in sequence according to the timing cycle of a preset timer includes:
[0106] Obtaining a current time node, where the current time node is a real-time timing node of a preset timer;
[0107] If the current time node is the same as the reset time node of the preset timer, continuously send a diagnostic message to the charging CAN interface according to a preset number of times;
[0108] If the current time node is different from the reset timing node of the preset timer, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle, and continuously send diagnostic messages to the charging CAN interface according to the preset number of times.
[0109] Optionally, the continuously sending the diagnostic message to the charging CAN interface according to a preset number of times includes:
[0110] Obtaining a diagnostic number value, wherein the diagnostic number value is the number of times a diagnostic message is sent to the charging CAN interface within the timing period corresponding to the current time node;
[0111] If the diagnostic number value is less than the preset number value, continuously sending diagnostic messages to the charging CAN interface according to the difference between the preset number value and the diagnostic number value;
[0112] If the diagnosis number value is greater than or equal to the preset number value, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle to send a diagnostic message to the charging CAN interface.
[0113] Optionally, determining that the state of the charging CAN interface is abnormal according to the feedback message and the diagnostic message includes:
[0114] If it is determined that the feedback message is different from the corresponding diagnostic message, then it is determined that the state of the charging CAN interface is abnormal;
[0115] If it is determined that the feedback message is the same as the corresponding diagnosis message, it is determined that the state of the charging CAN interface is normal.
[0116] Optionally, the device further comprises:
[0117] The fault prompt module is used to report abnormal fault status and display fault information for user reference.
[0118] Those skilled in the art can clearly understand that, for the sake of convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0119] Furthermore, an embodiment of the present application also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the abnormality detection method for the charging CAN interface as described in the above embodiment is implemented.
[0120] Furthermore, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the abnormality detection method of the charging CAN interface as described in the above embodiment.
[0121] It should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the embodiments of the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. When an element such as a layer, region or substrate is referred to as being "on" or "above" another element, it can be directly on the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as "directly on" or "above" another element, there is no intermediate element. It should also be understood that when an element is referred to as being "under" or "below" another element, it can be directly under or below the other element, or there can also be an intermediate element. On the contrary, when an element is referred to as being "directly under" or "below" another element, there is no intermediate element. Unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0122] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.
[0123] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), apparatuses, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0124] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0125] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0126] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for detecting abnormality of a charging CAN interface, characterized in that: The method comprises: After the electric vehicle is started, determine whether the current state of the charging CAN interface is normal; If the current status of the charging CAN interface is normal, the diagnostic message is sent to the charging CAN interface in sequence according to the timing cycle of the preset timer; After receiving the feedback message sent by the charging CAN interface, it is determined that the state of the charging CAN interface is abnormal according to the feedback message and the diagnosis message.
2. The abnormality detection method of the charging CAN interface according to claim 1 is characterized in that: The sending of diagnostic messages to the charging CAN interface in sequence according to the timing cycle of the preset timer includes: Obtaining a current time node, where the current time node is a real-time timing node of a preset timer; If the current time node is the same as the reset time node of the preset timer, continuously send a diagnostic message to the charging CAN interface according to a preset number of times; If the current time node is different from the reset timing node of the preset timer, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle, and continuously send diagnostic messages to the charging CAN interface according to the preset number of times.
3. The abnormality detection method of the charging CAN interface according to claim 2 is characterized in that: The continuously sending the diagnostic message to the charging CAN interface according to the preset number of times includes: Obtaining a diagnostic number value, wherein the diagnostic number value is the number of times a diagnostic message is sent to the charging CAN interface within the timing period corresponding to the current time node; If the diagnostic number value is less than the preset number value, continuously sending diagnostic messages to the charging CAN interface according to the difference between the preset number value and the diagnostic number value; If the diagnosis number value is greater than or equal to the preset number value, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle to send a diagnostic message to the charging CAN interface.
4. The abnormality detection method of the charging CAN interface according to claim 1 is characterized in that: The determining, according to the feedback message and the diagnostic message, that the state of the charging CAN interface is abnormal includes: If it is determined that the feedback message is different from the corresponding diagnostic message, then it is determined that the state of the charging CAN interface is abnormal; If it is determined that the feedback message is the same as the corresponding diagnosis message, it is determined that the state of the charging CAN interface is normal.
5. The abnormality detection method of the charging CAN interface according to any one of claims 1 to 4, characterized in that: After the step of determining that the state of the charging CAN interface is abnormal according to the feedback message and the diagnostic message, the method further includes: Report abnormal fault status and display fault information for user reference.
6. A charging CAN interface abnormality detection device, characterized in that: The device comprises: A state determination module, used to determine whether the current state of the charging CAN interface is normal after the electric vehicle is started; A message sending module, used for sending diagnostic messages to the charging CAN interface in sequence according to the timing cycle of a preset timer if the current state of the charging CAN interface is normal; The abnormality detection module is used to determine that the state of the charging CAN interface is abnormal according to the feedback message and the diagnosis message after receiving the feedback message sent by the charging CAN interface.
7. The abnormality detection device for the charging CAN interface according to claim 6, characterized in that: The sending of diagnostic messages to the charging CAN interface in sequence according to the timing cycle of the preset timer includes: Obtaining a current time node, where the current time node is a real-time timing node of a preset timer; If the current time node is the same as the reset time node of the preset timer, continuously send a diagnostic message to the charging CAN interface according to a preset number of times; If the current time node is different from the reset timing node of the preset timer, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle, and continuously send diagnostic messages to the charging CAN interface according to the preset number of times.
8. The abnormality detection device for the charging CAN interface according to claim 7, characterized in that: The continuously sending the diagnostic message to the charging CAN interface according to the preset number of times includes: Obtaining a diagnostic number value, wherein the diagnostic number value is the number of times a diagnostic message is sent to the charging CAN interface within the timing period corresponding to the current time node; If the diagnostic number value is less than the preset number value, continuously sending diagnostic messages to the charging CAN interface according to the difference between the preset number value and the diagnostic number value; If the diagnosis number value is greater than or equal to the preset number value, wait for the preset timer to count from the current time node to the reset timing node to trigger the next timing cycle to send a diagnostic message to the charging CAN interface.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the abnormality detection method for the charging CAN interface as described in any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the abnormality detection method for the charging CAN interface as described in any one of claims 1 to 5.
