Charging adapter control method and system

Through the combination of control module, CAN communication module and data processing module, charging protocol conversion and time management are realized, which solves the problem of charging difficulties caused by the increase in the types of charging protocols, and improves the universality and continuous operation capability of the charging adapter.

CN118438917BActive Publication Date: 2024-09-17GUANGZHOU GUANYTING ELECTWAY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410595840.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-09-17
Estimated Expiration
2044-05-14

AI Technical Summary

Technical Problem

As the types of charging protocols increase, a single charging protocol conversion cannot meet the needs of charging pile manufacturers and users, resulting in low utilization of charging piles and difficulty in charging for users.

Method used

Through the control module, the operating environment is self-checked, the CAN communication module is used to obtain the charging protocol of the charging pile, and the data processing module is used to convert it into the protocol of the device to be charged, combined with the time management module to detect interruption time and events, to realize multiple charging adapters. protocol conversion and continuous operation.

Benefits of technology

It improves the universality of the charging adapter, meets the multiple protocol conversion needs of charging pile manufacturers and users, and ensures the normal operation of the charging adapter and the continuity of the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118438917B
    Figure CN118438917B
Patent Text Reader

Abstract

The present application relates to the technical field of charging adapters, and discloses a charging adapter control method and system, including a self-check of the operating environment. After the self-check is successful, the charging protocol of the charging pile is obtained through CAN communication. After the acquisition is successful, the charging protocol of the charging pile is checked and converted into the charging protocol of the device to be charged, and the system operation time is managed; when no abnormal alarm is issued, the charging pile charges the device to be charged. The system corresponds to the method. In the present application, the operating environment is self-checked by the control module to ensure the normal operating environment of the charging adapter; the charging protocol of the charging pile is obtained through the CAN communication module; the charging protocol of the charging pile is converted with the charging protocol of the device to be charged through the data processing module; the interruption time and events are detected by the time management module to ensure the continuous operation of the charging adapter; the conversion between multiple protocols is realized through the charging adapter control system, so as to improve the universality of the charging adapter and meet the needs of charging pile manufacturers and users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of charging adapters, and in particular to a charging adapter control method and system. Background Art

[0002] With the popularization of electric vehicles, the construction of charging piles has also developed rapidly. However, the inconsistency between the charging protocol of the charging piles and the charging protocol of the vehicles to be charged has resulted in a low utilization rate of the charging piles and charging difficulties for users.

[0003] China's public patent number CN105008173B discloses a conversion between the CHAdeMO charging protocol and the Tesla Motors charging protocol, which enables charging between different charging protocols.

[0004] However, with the increase in the types of charging protocols, such as the CCS charging protocol and the national standard charging protocol, a single conversion can no longer meet the needs of charging pile manufacturers and users. Summary of the invention

[0005] The purpose of the present application is to provide a charging adapter control method and system to solve the technical problems raised in the above background technology.

[0006] To achieve the above objectives, this application discloses the following technical solutions:

[0007] In a first aspect, the present application discloses a charging adapter control method, the method comprising the following steps:

[0008] S1: Initialize the system clock, peripheral modules and system variables, and detect whether the system clock, peripheral modules and system variables are abnormal. If yes, issue an abnormal alarm and re-execute this step. Otherwise, perform gun insertion detection, signal processing, communication processing and current processing;

[0009] S2: Initialize communication, enable data reception, and detect whether the enabling is successful. If so, obtain the charging protocol of the charging pile. Otherwise, issue an abnormal alarm and re-execute this step;

[0010] S3: Check whether the charging protocol of the charging pile is legal. If so, convert the charging protocol of the charging pile into the charging protocol of the device to be charged and send it to the device to be charged. Otherwise, issue an abnormal alarm, discard the charging protocol of the charging pile and re-execute step S2.

[0011] S4: Initialize the system running time and detect whether the system time is interrupted. When an interruption occurs, issue an abnormal alarm, delete the interruption flag of the system time and add a new system time, and detect whether there is an event that does not match the expected setting. When an event that does not match the expected setting is detected within the specified time, issue an abnormal alarm, handle the event first, and repeat the detection after the event is handled to see if there is an event that does not match the expected setting.

[0012] S5: When no abnormal alarm is issued in step S1, step S2, step S3 and step S4, the charging pile starts to charge the device to be charged.

[0013] Preferably, in step S1, the gun plug detection specifically includes: when connecting the device to be charged, detecting the connection between the charging gun and the device to be charged, judging whether the connection between the charging gun and the device to be charged is normal, if yes, completing the gun plug detection and ending the gun plug detection, otherwise, terminating the gun plug detection and issuing an abnormal alarm;

[0014] The signal processing specifically includes: processing the signals recorded in each link to perform the signal processing;

[0015] The communication processing specifically includes: the communication processing temporarily stores the information sent by the terminal in the memory of the communication processing node in the network based on the network, and performs the conversion of the information transmission rate or the exchange of the communication media. If the communication is normal, the communication processing is completed, otherwise an abnormal alarm is issued; after the communication processing is completed, the charging permission processing is entered, and charging preparation is allowed when no abnormal alarm is issued, otherwise an abnormal alarm is issued;

[0016] The current processing specifically includes: after the current is initialized and no abnormal alarm is issued, the current is set to a safe current range that meets the corresponding charging pile and then the current processing is completed.

[0017] Preferably, the system clock, the peripheral modules and the system variables are initialized, and the system clock, the peripheral modules and the system variables are detected to see if they are abnormal, and if so, an abnormal alarm is issued and this step is re-executed, specifically including:

[0018] A1: Control module initialization, wherein the initialization includes initializing the system clock, peripheral modules and system variables;

[0019] A2: the control module performs a self-check. If no abnormal alarm is issued during the self-check, step A3 is executed; otherwise, the control module executes step A4.

[0020] A3: The control module processes the event corresponding to the abnormal alarm and repeats step A2;

[0021] A4: The control module completes the pre-charging preparation;

[0022] The step S2 comprises:

[0023] B1: CAN communication module initialization;

[0024] B2: the CAN communication module enables the receiving unit of the CAN communication module;

[0025] B3: The CAN communication module determines whether the CAN communication module is enabled successfully. If yes, the CAN communication module executes step B5; otherwise, the CAN communication module executes step B4;

[0026] B4: The CAN communication module issues an abnormal alarm, and steps B2 and B3 are repeated;

[0027] B5: The receiving unit of the CAN communication module obtains the charging protocol of the charging pile and sends it to the data processing module;

[0028] B6: The CAN communication module completes the preparation before charging.

[0029] Preferably, the step S3 comprises:

[0030] C1: data processing module initialization;

[0031] C2: the data processing module reads the charging protocol of the charging pile obtained by the receiving unit of the CAN communication module;

[0032] C3: The data processing module checks whether the charging protocol of the charging pile is legal. If yes, the data processing module executes step C5. Otherwise, the data processing module executes step C4 and issues an abnormal alarm.

[0033] C4: the data processing module discards the charging protocol of the illegal charging pile and repeats steps C2 and C3;

[0034] C5: The data processing module converts the charging protocol word of the charging pile into the charging protocol of the device to be charged and sends it to the device to be charged;

[0035] C6: The data processing module completes the preparation before charging.

[0036] Preferably, the step S4 comprises:

[0037] D1: Time management module initialization;

[0038] D2: the time management module detects whether an interruption time occurs, if so, the time management module executes step D3 and issues an abnormal alarm, otherwise, the time management module repeats step D2 until step D6;

[0039] D3: the time management module deletes the interrupt flag of the system time and adds the new system time, and then repeats step D2 until step D6;

[0040] D4: The time management module detects whether an event that does not match the expected setting occurs during the specified time of the system operation. If so, the time management module executes step D5 and issues an abnormal alarm. Otherwise, the time management module repeats step D4 until step D6;

[0041] D5: Process the corresponding event, and after the processing is completed, repeat step D4 until step D6;

[0042] D6: The time management module completes the preparation before charging.

[0043] In a second aspect, the present application discloses a charging adapter control system, including: a control module, a CAN communication module, a data processing module and a time management module;

[0044] The control module is configured to: initialize the system clock, peripheral modules and system variables, and detect whether the system clock, the peripheral modules and the system variables are abnormal. If yes, the control module will issue an abnormal alarm and end the task; otherwise, the control module will perform gun insertion detection, signal processing, communication processing and current processing;

[0045] The CAN communication module is configured as follows: after the CAN communication module is initialized, the receiving unit of the CAN communication module is enabled, and the receiving unit of the CAN communication module is detected whether it is successfully enabled, otherwise the CAN communication module issues an abnormal alarm and re-executes the task, and if so, the receiving unit of the CAN communication module obtains the charging protocol of the charging pile;

[0046] The data processing module is configured to: process the charging protocol of the charging pile obtained through the receiving module of the CAN communication module, and the data processing module checks whether the charging protocol of the charging pile is legal. Otherwise, the charging protocol of the illegal charging pile is discarded and re-read. If yes, the charging protocol of the charging pile is converted into the charging protocol of the device to be charged and sent to the device to be charged.

[0047] Preferably, the control module comprises: a system time function unit for clock initialization, a peripheral module unit for initialization of peripheral devices, a system variable unit for initialization of variables defined in the system, and an abnormality detection unit;

[0048] The abnormality detection unit includes a gun insertion detection subunit, a signal processing subunit, a communication processing subunit and a current processing subunit;

[0049] The plug-in detection subunit is used to detect the connection between the charging gun and the vehicle when connecting the vehicle, and detect whether the charging gun and the vehicle are connected normally. If yes, the next step of detection is performed, otherwise the detection is terminated and an abnormal alarm is issued;

[0050] The signal processing subunit is used to process the signals recorded in each link;

[0051] The communication processing subunit is used to temporarily store the information sent by the terminal in the memory of the communication processing node in the network based on the network, and to change the information transmission rate or exchange the communication media; if the communication is normal, the communication processing is completed, otherwise an abnormal alarm is issued; after the communication processing is completed, the charging permission processing is entered, and charging preparation is allowed when no abnormal alarm is issued, otherwise an abnormal alarm is issued;

[0052] The current processing subunit is used to set the current to a safe current range that meets the corresponding charging pile after the current is initialized and no abnormal alarm is issued.

[0053] Preferably, the time management module comprises: a time processing unit and an event processing unit;

[0054] When the time processing unit detects that the system time is interrupted, it issues an abnormal alarm, deletes the interruption mark of the system time, and adds a new system time;

[0055] When the event processing unit detects that an event that does not match the expected settings occurs during the specified time of system operation, an abnormal alarm is issued, and the charging adapter control system gives priority to processing the event. After the event is processed, the event processing unit continues to determine whether an event that does not match the expected settings occurs within the specified time.

[0056] Preferably, the charging adapter control system is an embedded system, and the charging adapter control system is installed in the corresponding charging adapter.

[0057] Preferably, the working method of the charging adapter comprises the following steps:

[0058] E1: Connect one end of the charging adapter to the charging pile, and the other end of the charging adapter to the device to be charged. The charging adapter control system detects whether the connection is successful. If so, execute step E2, otherwise, issue an abnormal alarm;

[0059] E2: The charging adapter control system starts to run and automatically executes the above charging adapter control method. If the charging adapter control method runs successfully, step E3 is executed, otherwise an abnormal alarm is issued;

[0060] E3: Start charging until charging is completed;

[0061] E4: Disconnect the charging adapter and end charging.

[0062] Beneficial effects: The charging adapter control method and system of the present application realizes the function of ensuring the normal operating environment of the charging adapter by self-checking the operating environment through the control module; realizes the acquisition of the charging protocol of the charging pile through the CAN communication module; realizes the conversion of the charging protocol of the charging pile and the charging protocol of the device to be charged by receiving the obtained charging protocol of the charging pile through the data processing module; realizes the function of ensuring the continuous operation of the charging adapter by detecting the interruption time and events through the time management module. Finally, the conversion of multiple protocols can be realized through the charging adapter control system, which improves the universality of the charging adapter and meets the needs of charging pile manufacturers and users. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0064] Figure 1 A flowchart of a charging adapter control method provided in an embodiment of the present application;

[0065] Figure 2 A flowchart of step S1 of the charging adapter control method provided in an embodiment of the present application;

[0066] Figure 3 A flowchart of step S2 of the charging adapter control method provided in an embodiment of the present application;

[0067] Figure 4 A flowchart of step S3 of the charging adapter control method provided in an embodiment of the present application;

[0068] Figure 5 A flowchart of step S4 of the charging adapter control method provided in an embodiment of the present application;

[0069] Figure 6 A schematic diagram of a charging adapter control system provided in an embodiment of the present application;

[0070] Figure 7 A flowchart of the working method of the charging adapter provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] The technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0072] In this article, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0073] The first aspect of this embodiment discloses Figure 1 A charging adapter control method is shown, the method comprising the following steps:

[0074] S1: Initialize the system clock, peripheral modules and system variables, and detect whether there are abnormalities in the system clock, peripheral modules and system variables. If yes, issue an abnormal alarm and re-execute this step. Otherwise, perform gun insertion detection, signal processing, communication processing and current processing;

[0075] S2: Initialize communication, enable data reception, and detect whether the enabling is successful. If so, obtain the charging protocol of the charging pile. Otherwise, issue an abnormal alarm and re-execute this step;

[0076] S3: Check whether the charging protocol of the charging pile is legal. If so, convert the charging protocol of the charging pile into the charging protocol of the device to be charged and send it to the device to be charged. Otherwise, issue an abnormal alarm, discard the charging protocol of the charging pile and re-execute step S2.

[0077] S4: Initialize the system running time and detect whether the system time is interrupted. When an interruption occurs, issue an abnormal alarm, delete the interruption flag of the system time and add a new system time, and detect whether there is an event that does not match the expected setting. When an event that does not match the expected setting is detected within the specified time, issue an abnormal alarm, handle the event first, and repeat the detection after the event is handled to see whether there is an event that does not match the expected setting. The specified time can be but not limited to 10Ms and 100Ms.

[0078] S5: When no abnormal alarm is issued in step S1, step S2, step S3 and step S4, the charging pile starts to charge the device to be charged.

[0079] Based on the above, this embodiment implements the operation environment preparation and charging protocol preparation of the charging pile before charging the device to be charged through steps S1 to S4.

[0080] Specifically, in step S1, the gun plug detection specifically includes: when connecting the device to be charged, detecting the connection between the charging gun and the device to be charged, judging whether the connection between the charging gun and the device to be charged is normal, if yes, completing the gun plug detection and ending the gun plug detection, otherwise terminating the gun plug detection and issuing an abnormal alarm;

[0081] Signal processing specifically includes: processing the signals recorded in each link to perform signal processing;

[0082] The communication processing specifically includes: the communication processing temporarily stores the information sent by the terminal in the memory of the communication processing node in the network based on the network, and converts the information transmission rate or exchanges the communication media. If the communication is normal, the communication processing is completed, otherwise an abnormal alarm is issued; after the communication processing is completed, the charging permission processing is entered. When no abnormal alarm is issued, charging preparation is allowed, otherwise an abnormal alarm is issued;

[0083] The current processing specifically includes: after the current is initialized and no abnormal alarm is issued, the current is set to a safe current range that meets the corresponding charging pile and then the current processing is completed.

[0084] As a preferred implementation of this embodiment, Figure 2 As shown, the system clock, peripheral modules and system variables are initialized, and the system clock, peripheral modules and system variables are detected to see if they are abnormal. If they are, an abnormal alarm is issued and this step is re-executed, which specifically includes:

[0085] A1: Control module initialization, wherein the initialization includes initializing the system clock, peripheral modules and system variables;

[0086] A2: The control module performs a self-check. If no abnormal alarm is issued during the self-check, the control module executes step A3. Otherwise, the control module executes step A4.

[0087] A3: The control module processes the event corresponding to the abnormal alarm and repeats step A2;

[0088] A4: The control module completes the preparation before charging;

[0089] like Figure 3 As shown, step S2 includes:

[0090] B1: CAN communication module initialization;

[0091] B2: CAN communication module enables the receiving unit of the CAN communication module;

[0092] B3: The CAN communication module determines whether the CAN communication module is enabled successfully. If yes, the CAN communication module executes step B5, otherwise, the CAN communication module executes step B4;

[0093] B4: The CAN communication module issues an abnormal alarm and repeats steps B2 and B3;

[0094] B5: The receiving unit of the CAN communication module obtains the charging protocol of the charging pile and sends it to the data processing module;

[0095] B6: The CAN communication module completes the preparation before charging. Among them, the CAN initialization function interface is:

[0096] Function Initialize CAN communication prototype unsigned char CAN_Initialize(void) parameter none return 0: Initialization successful, others: Initialization failed return 0: Read successfully, others: error code

[0097] As a preferred implementation of this embodiment, Figure 4 As shown, step S3 includes:

[0098] C1: data processing module initialization;

[0099] C2: The data processing module reads the charging protocol of the charging pile obtained by the receiving unit of the CAN communication module;

[0100] C3: The data processing module checks whether the charging protocol of the charging pile is legal. If it is legal, the data processing module executes step C5. Otherwise, the data processing module executes step C4 and issues an abnormal alarm.

[0101] C4: The data processing module discards the charging protocol of the illegal charging pile and repeats steps C2 and C3;

[0102] C5: The data processing module converts the charging protocol word of the charging pile into the charging protocol of the device to be charged and sends it to the device to be charged;

[0103] C6: The data processing module completes the pre-charging preparation. Among them, the CAN read buffer interface is:

[0104] Function Read CAN buffer prototype unsigned short CAN_ReadBuf(void) parameter none return One frame of Buffer data

[0105] As a preferred implementation of this embodiment, Figure 5 As shown, step S4 includes:

[0106] D1: Time management module initialization;

[0107] D2: The time management module detects whether an interruption time occurs. If so, the time management module executes step D3 and issues an abnormal alarm. Otherwise, the time management module repeats step D2 until step D6;

[0108] D3: The time management module deletes the interrupt flag of the system time and adds the new system time, and then repeats step D2 until step D6;

[0109] D4: The time management module detects whether an event that does not match the expected setting occurs during the specified time of the system operation. If so, the time management module executes step D5 and issues an abnormal alarm. Otherwise, the time management module repeats step D4 until step D6;

[0110] D5: Process the corresponding event, and after the processing is completed, repeat step D4 until step D6;

[0111] D6: The time management module completes the preparation before charging.

[0112] The second aspect of this embodiment discloses Figure 6 A charging adapter control system shown includes: a control module, a CAN communication module, a data processing module and a time management module;

[0113] The control module is configured as follows: initializing the system clock, peripheral modules and system variables, and detecting whether there are abnormalities in the system clock, peripheral modules and system variables. If so, the control module will issue an abnormal alarm and end the task, otherwise the control module will perform gun insertion detection, signal processing, communication processing and current processing; among them, the system clock initialization refers to placing all working components in the same working preparation state to ensure the consistency of future work; the peripheral module refers to the external peripheral function module. All components of electronic products must be in the state set by the program within the specified time to operate normally, and all components can only proceed at the pace of the program. The initialization of the peripheral module ensures that all components are in step with each other and can operate stably; the variables defined in the system usually need to be initialized before use. Initialization is to assign an initial value to the variable. The specific system variable initialization is divided into static variable initialization and dynamic variable initialization. Static variables are stored in the static variable area of ​​the system. The initialization process is automatically completed by the system when the system is loaded; dynamic variables are loaded with a corresponding data when the system is called to complete the initialization. In the system, the power consumption and charging time will be cleared whenever the system is started or when charging is performed;

[0114] The CAN communication module is configured as follows: after the CAN communication module is initialized, the receiving unit of the CAN communication module is enabled, and the receiving unit of the CAN communication module is detected to see whether it is enabled successfully. Otherwise, the CAN communication module issues an abnormal alarm and re-executes the task. If it is, the receiving unit of the CAN communication module obtains the charging protocol of the charging pile.

[0115] The data processing module is configured to: process the charging protocol of the charging pile obtained through the receiving module of the CAN communication module, and the data processing module checks whether the charging protocol of the charging pile is legal. Otherwise, the charging protocol of the illegal charging pile is discarded and re-read. If yes, the charging protocol of the charging pile is converted into the charging protocol of the device to be charged and sent to the device to be charged.

[0116] Specifically, the control module includes: a system time function unit for clock initialization, a peripheral module unit for initializing peripheral devices, a system variable unit for initializing variables defined in the system, and an abnormality detection unit;

[0117] The abnormality detection unit includes a gun insertion detection subunit, a signal processing subunit, a communication processing subunit and a current processing subunit;

[0118] The plug-in detection subunit is used to detect the connection between the charging gun and the vehicle when connecting the vehicle, and detect whether the charging gun and the vehicle are connected normally. If so, the next step of detection is carried out, otherwise the detection is terminated and an abnormal alarm is issued;

[0119] The signal processing subunit is used to process the signals recorded in each link;

[0120] The communication processing subunit is used to temporarily store the information sent by the terminal in the memory of the communication processing node in the network based on the network, and to change the information transmission rate or exchange the communication media; if the communication is normal, the communication processing is completed, otherwise an abnormal alarm is issued; after the communication processing is completed, the charging permission processing is entered, and charging preparation is allowed when no abnormal alarm is issued, otherwise an abnormal alarm is issued;

[0121] The current processing subunit is used to set the current to a safe current range that meets the corresponding charging pile after the current is initialized and no abnormal alarm is issued.

[0122] Specifically, the time management module includes: a time processing unit and an event processing unit;

[0123] When the time processing unit detects that the system time is interrupted, it issues an abnormal alarm, deletes the interruption flag of the system time, and adds a new system time;

[0124] When the event processing unit detects that an event that does not match the expected settings occurs during the specified time of system operation, an abnormal alarm is issued. The charging adapter control system gives priority to processing the event. After the event is processed, the event processing unit continues to determine whether an event that does not match the expected settings occurs within the specified time.

[0125] As a simple example, at time T 0 After initialization, at time T 1When the system time is interrupted, the system issues an abnormal alarm and deletes the time. T 0 , the moment T 1 As the new system time

[0126] As a preferred implementation of this embodiment, the charging adapter control system is an embedded system, and the charging adapter control system is installed in the corresponding charging adapter.

[0127] Specifically, Figure 7 As shown, the working method of the charging adapter includes the following steps:

[0128] E1: Connect one end of the charging adapter to the charging pile, and the other end of the charging adapter to the device to be charged. The charging adapter control system detects whether the connection is successful. If so, execute step E2, otherwise, an abnormal alarm is issued;

[0129] E2: The charging adapter control system starts to run and automatically executes the above charging adapter control method. If the above charging adapter control operation method is successful, step E3 is executed, otherwise an abnormal alarm is issued;

[0130] E3: Start charging until charging is completed;

[0131] E4: Disconnect the charging adapter and end charging.

[0132] As a simple example 1, a control method and system for an electric vehicle CHAdeMO to national standard adapter:

[0133] The adapter control method and system for converting CHAdeMO of electric vehicles to the national standard completes the auxiliary charging interaction between the device to be charged and the charging pile, realizes the export of domestic models overseas and uses the adapter control method and system to achieve barrier-free, safe and fast charging. The auxiliary charging of the adapter control method and system completes the interaction process with the human-computer interaction system, improving the convenience of charging;

[0134] The hardware main control chip uses STM32F407, 168M main frequency, the software uses ucos embedded operating system, and is programmed in C language;

[0135] CHAdeMO port and national standard port are installed at both ends of the charging adapter, and CHAdeMO charging protocol and national standard charging protocol are embedded. When charging, the owner connects the ports of the charging pile, charging adapter and car to each other, of which the national standard port is connected to the charging port on the car, and the other CHAdeMO port is connected to the charging gun. After completing the connection with the charging pile, the charging operation can be carried out normally.

[0136] As a simple example 2, the control method and system of electric vehicle CCS to Tesla adapter:

[0137] The electric car CCS to Tesla adapter control system completes the auxiliary charging interaction with each adapter and charging pile, and realizes the barrier-free, safe and fast charging problem of Tesla models using the adapter control system in places where CCS charging piles are used. The auxiliary charging of the adapter control system completes the interaction process with the human-computer interaction system, improving the convenience of charging;

[0138] The hardware main control chip uses STM32F407, 168M main frequency, the software uses ucos embedded operating system, and is programmed in C language;

[0139] The CCS port and Tesla port are installed at both ends of the charging adapter, and the CCS charging protocol and Tesla charging protocol are embedded. When charging, the owner connects the ports of the charging pile, charging adapter, and car to each other. The Tesla port is connected to the charging port on the car, and the other CCS port is connected to the charging gun. After completing the connection with the charging pile, the charging operation can be carried out normally.

[0140] In summary, the charging adapter control method and system of this embodiment realizes the function of ensuring the normal operating environment of the charging adapter by self-checking the operating environment through the control module; realizes the acquisition of the charging protocol of the charging pile through the CAN communication module; realizes the conversion of the charging protocol of the charging pile and the charging protocol of the device to be charged by receiving the obtained charging protocol of the charging pile through the data processing module; realizes the function of ensuring the continuous operation of the charging adapter by detecting the interruption time and events through the time management module. Finally, the conversion of multiple protocols can be realized through the charging adapter control system, which improves the universality of the charging adapter and meets the needs of charging pile manufacturers and users.

[0141] Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A charging adapter control method, characterized in that: The method comprises the following steps: S1: Initialize the system clock, peripheral modules and system variables, and detect whether the system clock, peripheral modules and system variables are abnormal. If yes, issue an abnormal alarm and re-execute this step. Otherwise, perform gun insertion detection, signal processing, communication processing and current processing; S2: Initialize communication, enable data reception, and detect whether the enabling is successful. If so, obtain the charging protocol of the charging pile. Otherwise, issue an abnormal alarm and re-execute this step; S3: Check whether the charging protocol of the charging pile is legal. If so, convert the charging protocol of the charging pile into the charging protocol of the device to be charged and send it to the device to be charged. Otherwise, issue an abnormal alarm, discard the charging protocol of the charging pile and re-execute step S2. S4: Initialize the system running time and detect whether the system time is interrupted. When an interruption occurs, issue an abnormal alarm, delete the interruption flag of the system time and add a new system time, and detect whether there is an event that does not match the expected setting. When an event that does not match the expected setting is detected within the specified time, issue an abnormal alarm, handle the event first, and repeat the detection after the event is handled to see if there is an event that does not match the expected setting. S5: When no abnormal alarm is issued in step S1, step S2, step S3 and step S4, the charging pile starts charging the device to be charged; In step S1, the gun plug detection specifically includes: when connecting the charging device to be charged, detecting the connection between the charging gun and the charging device to be charged, judging whether the charging gun and the charging device are connected normally, if yes, completing the gun plug detection and ending the gun plug detection, otherwise terminating the gun plug detection and issuing an abnormal alarm; The signal processing specifically includes: processing the signals recorded in each link to perform the signal processing; The communication processing specifically includes: the communication processing temporarily stores the information sent by the terminal in the memory of the communication processing node in the network based on the network, and performs the conversion of the information transmission rate or the exchange of the communication media. If the communication is normal, the communication processing is completed, otherwise an abnormal alarm is issued; after the communication processing is completed, the charging permission processing is entered, and charging preparation is allowed when no abnormal alarm is issued, otherwise an abnormal alarm is issued; The current processing specifically includes: after the current is initialized and no abnormal alarm is issued, the current is set to a safe current range that meets the corresponding charging pile and then the current processing is completed.

2. The charging adapter control method according to claim 1, characterized in that: Initializing the system clock, peripheral modules and system variables, detecting whether the system clock, peripheral modules and system variables are abnormal, and if so, issuing an abnormal alarm and re-executing this step, specifically includes: A1: Control module initialization, wherein the initialization includes initializing the system clock, peripheral modules and system variables; A2: the control module performs a self-check. If no abnormal alarm is issued during the self-check, step A3 is executed; otherwise, the control module executes step A4; A3: The control module processes the event corresponding to the abnormal alarm and repeats step A2; A4: The control module completes the pre-charging preparation; The step S2 comprises: B1: CAN communication module initialization; B2: the CAN communication module enables the receiving unit of the CAN communication module; B3: The CAN communication module determines whether the CAN communication module is enabled successfully. If yes, the CAN communication module executes step B5; otherwise, the CAN communication module executes step B4; B4: The CAN communication module issues an abnormal alarm, and steps B2 and B3 are repeated; B5: The receiving unit of the CAN communication module obtains the charging protocol of the charging pile and sends it to the data processing module; B6: The CAN communication module completes the preparation before charging.

3. The charging adapter control method according to claim 2, characterized in that: The step S3 comprises: C1: data processing module initialization; C2: the data processing module reads the charging protocol of the charging pile obtained by the receiving unit of the CAN communication module; C3: The data processing module checks whether the charging protocol of the charging pile is legal. If yes, the data processing module executes step C5. Otherwise, the data processing module executes step C4 and issues an abnormal alarm. C4: the data processing module discards the charging protocol of the illegal charging pile and repeats steps C2 and C3; C5: The data processing module converts the charging protocol word of the charging pile into the charging protocol of the device to be charged and sends it to the device to be charged; C6: The data processing module completes the preparation before charging.

4. The charging adapter control method according to claim 1, characterized in that: The step S4 comprises: D1: Time management module initialization; D2: the time management module detects whether an interruption time occurs, if so, the time management module executes step D3 and issues an abnormal alarm, otherwise, the time management module repeats step D2 until step D6; D3: the time management module deletes the interrupt flag of the system time and adds the new system time, and then repeats step D2 until step D6; D4: The time management module detects whether an event that does not match the expected setting occurs during the specified time of the system operation. If so, the time management module executes step D5 and issues an abnormal alarm. Otherwise, the time management module repeats step D4 until step D6; D5: Process the corresponding event, and after the processing is completed, repeat step D4 until step D6; D6: The time management module completes the preparation before charging.

5. A charging adapter control system, characterized in that: include: Control module, CAN communication module, data processing module and time management module; The control module is configured to: initialize the system clock, peripheral modules and system variables, and detect whether the system clock, the peripheral modules and the system variables are abnormal. If yes, the control module will issue an abnormal alarm and end the task; otherwise, the control module will perform gun insertion detection, signal processing, communication processing and current processing; The CAN communication module is configured as follows: after the CAN communication module is initialized, the receiving unit of the CAN communication module is enabled, and the receiving unit of the CAN communication module is detected whether it is successfully enabled, otherwise the CAN communication module issues an abnormal alarm and re-executes the task, and if so, the receiving unit of the CAN communication module obtains the charging protocol of the charging pile; The data processing module is configured to: process the charging protocol of the charging pile obtained by the receiving module of the CAN communication module, and check whether the charging protocol of the charging pile is legal. If not, the charging protocol of the illegal charging pile is discarded and re-read. If yes, the charging protocol of the charging pile is converted into the charging protocol of the device to be charged and sent to the device to be charged; The time management module is configured to: initialize the system running time, and detect whether the system time is interrupted. When an interruption occurs, an abnormal alarm is issued, the interruption flag of the system time is deleted and a new system time is added, and whether an event that does not match the expected setting occurs. When an event that does not match the expected setting occurs within a specified time, an abnormal alarm is issued, the event is processed first, and after the event is processed, it is repeatedly detected whether an event that does not match the expected setting occurs; The control module includes: a system time function unit for clock initialization, a peripheral module unit for peripheral device initialization, a system variable unit for initialization of variables defined in the system, and an abnormality detection unit; The abnormality detection unit includes a gun insertion detection subunit, a signal processing subunit, a communication processing subunit and a current processing subunit; The plug-in detection subunit is used to detect the connection between the charging gun and the vehicle when connecting the vehicle, and detect whether the charging gun and the vehicle are connected normally. If yes, the next step of detection is performed, otherwise the detection is terminated and an abnormal alarm is issued; The signal processing subunit is used to process the signals recorded in each link; The communication processing subunit is used to temporarily store the information sent by the terminal in the memory of the communication processing node in the network based on the network, and to change the information transmission rate or exchange the communication media; if the communication is normal, the communication processing is completed, otherwise an abnormal alarm is issued; after the communication processing is completed, the charging permission processing is entered, and charging preparation is allowed when no abnormal alarm is issued, otherwise an abnormal alarm is issued; The current processing subunit is used to set the current to a safe current range that meets the corresponding charging pile after the current is initialized and no abnormal alarm is issued.

6. The charging adapter control system according to claim 5, characterized in that: The time management module includes: a time processing unit and an event processing unit; When the time processing unit detects that the system time is interrupted, it issues an abnormal alarm, deletes the interruption mark of the system time, and adds a new system time; When the event processing unit detects that an event that does not match the expected settings occurs during the specified time of system operation, an abnormal alarm is issued, and the charging adapter control system gives priority to processing the event. After the event is processed, the event processing unit continues to determine whether an event that does not match the expected settings occurs within the specified time.

7. The charging adapter control system according to claim 5, characterized in that: The charging adapter control system is an embedded system, and the charging adapter control system is installed in the corresponding charging adapter.

8. The charging adapter control system according to claim 7, characterized in that: The working method of the charging adapter comprises the following steps: E1: Connect one end of the charging adapter to the charging pile, and the other end of the charging adapter to the device to be charged. The charging adapter control system detects whether the connection is successful. If so, execute step E2, otherwise, issue an abnormal alarm; E2: The charging adapter control system starts to run and automatically executes the charging adapter control method according to any one of claims 1 to 4. If the charging adapter control method runs successfully, step E3 is executed, otherwise an abnormal alarm is issued; E3: Start charging until charging is completed; E4: Disconnect the charging adapter and end charging.