CHARGING INLET AND METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM FOR UPGRADING THE CHARGING INLET

The charging inlet upgrade method and apparatus address the inefficiencies in existing systems by using a central control module and monitoring modules to ensure valid and successful upgrades, enhancing applicability and efficiency.

JP2024531488AInactive Publication Date: 2024-08-29CHANGCHUN JETTY AUTOMOTIVE PARTS CORPORATION
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024513149
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-08-26
Filing Date
2022-08-09
Publication Date
2024-08-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing charging inlets in electric vehicles lack the ability to upgrade their functionality based on usage or condition, leading to inefficiencies and reduced applicability in upgrading processes.

Method used

A method and apparatus for upgrading charging inlets that involve a central control module, monitoring modules for collecting status information, and a vehicle control unit to manage the upgrade process, ensuring the new application program is valid and successfully written to the memory, with backup mechanisms for the old program and flag bits to mark successful upgrades.

Benefits of technology

Enhances the applicability and efficiency of charging inlet upgrades by ensuring they are performed based on the charging inlet's condition and status, improving safety and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024531488000001_ABST
    Figure 2024531488000001_ABST
Patent Text Reader

Abstract

The present invention provides a charging inlet and a method, apparatus, device and storage medium for upgrading the charging inlet, in which the method includes: receiving a new application program in an upgrade package, checking whether the new application program in the upgrade package is valid, if valid, writing the new application program in the upgrade package into an active area of ​​a memory of the charging inlet to perform an upgrade, determining whether the upgrade is successful, and if the upgrade is successful, setting a flag bit of the charging inlet to mark the upgrade being successful. The present invention can upgrade the charging inlet through the above method to improve the applicability of the upgrade process.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to a Chinese patent application filed on August 26, 2021, bearing application number 202110985980.5 and entitled "Method, apparatus, device and storage medium for charging inlet and charging inlet upgrade," the entire contents of which are incorporated herein by reference.

[0002] The present invention relates to the field of charging inlets, and in particular to a charging inlet and a method, apparatus, device, and storage medium for upgrading the charging inlet. [Background technology]

[0003] With the rapid development of the new energy industry, the number of electric vehicles is gradually increasing, and the requirements for safety, reliability and timeliness of charging equipment are also increasing. The vehicle control unit (ECU) is the brain of the car, and the ECU can be connected to the electronic components on the car. The Unified Diagnostic Service (UDS) is a unified international standard created to realize the vehicle electronic fault diagnosis service, and the ECU and the electronic components need to communicate under the provisions of the UDS.

[0004] A charging inlet is a device that is attached to an electric vehicle and connects to a charging interface. The charging inlet itself may be damaged by conditions such as excessively high or low temperature, vibration, and impact. However, in conventional electric vehicles, the charging inlet not only has the function of connecting to the charging interface to charge, but also can monitor the status of some parts of the charging inlet.

[0005] However, in the prior art, it is only possible to monitor the status of the charging inlet, and there is no method for upgrading the charging inlet. In the prior art, there is a method for upgrading other electronic components of an electric vehicle, but when upgrading, it is not possible to upgrade according to the usage or status of the electronic components. As a result, the upgrading process cannot make corresponding changes according to the actual status of the electronic components, and is not highly applicable. Therefore, there is currently a need for a method for upgrading a charging inlet to improve the applicability of the upgrading process by upgrading the charging inlet. Summary of the Invention

[0006] SUMMARY OF THE DISCLOSURE The embodiments of the present invention aim to provide a charging inlet and a method, apparatus, device, and storage medium for upgrading the charging inlet, thereby upgrading the charging inlet and improving the applicability of the upgrading process.

[0007] In order to achieve the above object, an embodiment of the present invention provides a method for upgrading a charging inlet applied to a vehicle control unit, the method including: receiving a new application program in an upgrade package, and checking whether the new application program in the upgrade package is valid; If the new application program in the upgrade package is valid, the new application program is written into an active area of ​​the memory of the charging inlet to perform an upgrade. determining whether the upgrade is successful, and if the upgrade is successful, setting a flag bit of the charging inlet to mark the upgrade as successful.

[0008] Meanwhile, an embodiment of the present invention provides a charging inlet including a central control module and a monitoring module electrically connected to the central control module, the monitoring module is for collecting status information of the charging inlet and transmitting the status information to the central control module; The central control module is electrically connected to a vehicle control unit for transmitting the status information to the vehicle control unit and for upgrading at an upgrade time under the control of the vehicle control unit.

[0009] According to another aspect, an embodiment of the present invention provides an apparatus for upgrading a charging inlet applied to a vehicle control unit, the apparatus comprising: A receiving module receives a new application program in an upgrade package and checks whether the new application program in the upgrade package is valid; an upgrade module that writes the new application program in the upgrade package into an active area of ​​a memory of the charging inlet to perform an upgrade if the new application program in the upgrade package is valid; and a determining module for determining whether the upgrade is successful, and if the upgrade is successful, for setting a flag bit of the charging inlet to mark the upgrade as successful.

[0010] According to another aspect, an embodiment of the present invention further provides a computing device comprising a memory, a processor and a computer program stored in the memory, the computer program being adapted to execute instructions according to the method of any one of the preceding claims when executed by the processor.

[0011] According to another aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor of a computing device performs instructions according to the method of any one of the above.

[0012] As can be seen from the above technical solutions of the embodiments of the present invention, the embodiments of the present invention first perform a backup process of the old application program on the premise of checking whether the new application program in the upgrade package is valid, and then perform an upgrade for the new application program, thereby improving the applicability and upgrade efficiency of the charging inlet upgrade process.

[0013] In order to make the above and other objects, features and advantages of the present invention clearer and easier to understand, preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0014] In order to more clearly describe the embodiments of the present invention or the technical solutions in the prior art, the following briefly describes the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings based on these drawings without making inventive efforts. [Brief description of the drawings]

[0015] [Figure 1] 1 is a schematic flowchart of a method for upgrading a charging inlet according to an embodiment of the present invention; [Diagram 2] 2 is a second schematic flowchart of a method for upgrading a charging inlet in accordance with an embodiment of the present invention; [Diagram 3] 1 is a schematic flow chart for determining whether an upgrade is successful according to an embodiment of the present invention; [Figure 4] 3 is a schematic flowchart of a method for upgrading a charging inlet according to an embodiment of the present invention; [Diagram 5] 4 is a schematic flowchart of a method for upgrading a charging inlet according to an embodiment of the present invention. [Figure 6] 1 is a schematic flowchart illustrating a method for determining whether the charging inlet upgrade time can be selected according to an embodiment of the present invention; [Figure 7]1 is a schematic flow chart of determining a standard state section according to an embodiment of the present invention; [Figure 8] 1 is a schematic flowchart illustrating a method for determining whether the charging inlet upgrade time can be selected according to an embodiment of the present invention; [Figure 9] 1 is a schematic diagram of a modular structure of a charging inlet according to an embodiment of the present invention; [Figure 10] FIG. 2 is a schematic diagram of a modular structure of a charging inlet upgrade device according to an embodiment of the present invention; [Figure 11] FIG. 2 is a structural diagram of a computer device according to an embodiment of the present invention;

[0016] Explanation of symbols 1, charging inlet, 2, central control module, 3, monitoring module, 4, vehicle control unit, 100, receiving module, 200, upgrade module, 300, judgment module, 1102, computing device, 1104, processor, 1106, memory, 1108, drive mechanism, 1110, input / output module, 1112, input device, 1114, output device, 1116, display device, 1118, graphical user interface, 1120, network interface, 1122, communication link, 1124, communication bus. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Hereinafter, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without inventive work belong to the scope of protection of the present invention.

[0018] With the rapid development of the new energy industry, the number of electric vehicles is gradually increasing, and the requirements for safety, reliability and timeliness of charging equipment are also increasing. The vehicle control unit (ECU) is the brain of the car, and the ECU can be connected to the electronic components on the car. The Unified Diagnostic Service (UDS) is a unified international standard created to realize the vehicle electronic fault diagnosis service, and the ECU and the electronic components need to communicate under the provisions of the UDS.

[0019] A charging inlet is a device that is attached to an electric vehicle and connected to a charging interface. The charging inlet itself may be damaged by conditions such as excessively high or low temperature, vibration, or impact. However, in conventional electric vehicles, the charging inlet not only has the function of connecting to the charging interface to charge, but also can monitor the status of some parts of the charging inlet.

[0020] However, in the conventional technology, the state of the charging inlet can only be monitored, and there is no method for upgrading the charging inlet. However, in real work and life, in order to timely resolve vulnerabilities that may occur during the charging, monitoring, etc. process inside the charging inlet, the charging inlet is upgraded by a background service unit of the electric vehicle manufacturer when necessary. Therefore, currently, there is a need for a method for upgrading the charging inlet to upgrade the charging inlet.

[0021] In order to solve the above problems, the embodiment of the present invention provides a method for upgrading a charging inlet, which can upgrade a charging inlet. FIG. 1 is a schematic diagram of steps of the method for upgrading a charging inlet according to the embodiment of the present invention, and the present specification provides the operation steps of the method in the embodiment or the flow chart, but it may include more or less operation steps based on the prior art or non-progressive work. The step order listed in the embodiment is only one way of various step execution orders, and does not represent the only execution order. When executed in an actual system or device product, it may be executed according to the order of the method shown in the embodiment or the drawing, or may be executed in parallel.

[0022] The charging inlet is attached to the electric vehicle, and when charging the electric vehicle, the charging station is connected to the charging connector via a charging cable, and the charging connector is inserted into the charging inlet to charge the electric vehicle. The charging inlet is provided with a monitoring module capable of monitoring status information of the charging inlet, and a central control module electrically connected to the monitoring module, and the monitoring module may include a temperature monitoring module, a voltage monitoring module, a socket lock monitoring module, and a charging indicator lamp monitoring module.

[0023] Here, the central control module is electrically connected to a vehicle control unit (ECU) of the electric vehicle. The temperature monitoring module mainly monitors the temperature of the terminals, wires, etc. during charging. The voltage monitoring module mainly monitors the charging voltage during charging. During the charging process, the charging interface is locked by a socket lock at the charging inlet. The socket lock monitoring module monitors whether the socket lock is locked. During the charging process, the charging indicator lamp is for indicating whether charging is in progress, and the charging indicator lamp monitoring module monitors the charging status. The central control module may be a one-chip microcomputer. The central control module may include a memory for storing status information monitored by the monitoring module and a processor for transmitting the status information to the ECU.

[0024] In order to ensure that electric vehicles can be used normally, electric vehicle manufacturers need to upgrade the charging inlets periodically, and during the upgrade, an upgrade package can be sent by the manufacturer's background service unit, and the upgrade contents can include improving the accuracy of temperature monitoring by the temperature monitoring module, adjusting the brightness and color of the charging indicator lamp, etc. Here, the service unit can be a server.

[0025] When the service unit sends an upgrade package, the service unit sends the upgrade package to the ECU, and the ECU further determines the upgrade time by determining whether the upgrade time of the charging inlet can be selected, and upgrades the charging inlet at the upgrade time. Before upgrading, it is necessary to verify whether the charging inlet is normal by verifying data, and upgrade after the verification is successful. During the upgrade, the old application program is first backed up in a backup area of ​​the memory, and if the upgrade is unsuccessful, the old application program in the backup area of ​​the memory is restored again. In this way, the charging inlet can be upgraded. The applicability of the upgrade process can be improved, and at the same time, the safety of the upgrade process can be ensured.

[0026] Referring to FIG. 1, a method for upgrading a charging inlet is applied to a vehicle control unit, comprising: Receiving a new application program in an upgrade package and checking whether the new application program in the upgrade package is valid (S001); If the new application program in the upgrade package is valid, write the new application program in the upgrade package into an active area of ​​the memory of the charging inlet to upgrade it (S002); Determining whether the upgrade is successful, and if the upgrade is successful, setting a flag bit of the charging inlet to mark the upgrade as successful (S003).

[0027] Furthermore, if the new application program in the upgrade package is valid, an upgrade can be performed. When upgrading, before the new application program in the upgrade package is written into the active area of ​​the memory of the charging inlet, the old application program in the active area of ​​the memory of the charging inlet is backed up in a backup area of ​​the memory of the charging inlet, the old application program in the active area of ​​the memory of the charging inlet is erased, and the new application program in the upgrade package is received.

[0028] Specifically, the ECU can check whether the new application program in the upgrade package is valid. The checking method may be to check the new application program by a corresponding checking algorithm to determine whether the new application program has no vulnerability such as a program defect. Of course, other checking methods may be used, and the checking method is not limited in this document. If the upgrade of the application program of the charging inlet fails, the old application program may be backed up in a backup area first, and then the old application program in the active area may be erased to prevent the entire charging inlet from having no executable application program. If the upgrade is successful, the old application program in the backup area may be erased to save memory space. Then, the flag bit is set to 1. In the initial state, after the ECU receives an upgrade command, the ECU sets the flag bit of the charging inlet to 0. The flag bit being 0 indicates that there is an upgrade command at this time, but the upgrade has not been performed, and the charging inlet needs to be upgraded. The flag bit being 1 indicates that the upgrade is successful at this time. The flag bit serves to mark the upgrade state, and can be used as a basis for other subsequent applications.

[0029] In another embodiment of the present invention, if the new application program in the upgrade package is valid, the new application program in the upgrade package is written to the upgrade memory area of ​​the charging inlet, and the memory address of the new application program is loaded after the vehicle control unit is restarted, and the old application program before the vehicle control unit is restarted is used as a backup.

[0030] wherein the step of upgrading by writing a new application program in the upgrade package into an active area of ​​a memory of the charging inlet includes: receiving a command to start the upgrade; writing a new application program in the upgrade package into an active area of ​​a memory of the charging inlet according to an instruction of the upgrade start command, thereby upgrading the application program; receiving a command to finish the upgrade; and stopping writing the new application program in the upgrade package into the active area of ​​the memory of the charging inlet as instructed by the upgrade completion command.

[0031] The vehicle control unit ECU can receive the upgrade start command and the upgrade end command sent by the service unit, and perform the process of writing the new application program into the active area of ​​the memory of the charging inlet according to the corresponding instructions.

[0032] As shown in FIG. 2, in an embodiment of the present invention, Reading hardware information and software information of a charging inlet (S011); determining whether to upgrade the charging inlet based on the hardware information and the software information (S012); If upgrading, the method further includes backing up the old application program in the active area of ​​the memory of the charging inlet to a backup area of ​​the memory of the charging inlet, and erasing the old application program in the active area of ​​the memory of the charging inlet (S013).

[0033] Specifically, the above steps S011 to S013 may be executed in parallel with or before or after step S001, and the execution order is not limited. The hardware information can be checked by a temperature monitoring module, a voltage monitoring module, a socket lock monitoring module, and a charging indicator lamp monitoring module. The software information can be checked to see whether the application program executed inside the charging inlet is error-free and complete. If there is no problem in checking the hardware information and software information, it can be upgraded.

[0034] Referring to FIG. 3, in an embodiment of the present invention, determining whether the upgrade is successful includes: receiving an initial check code and an end check code corresponding to a new application program in the upgrade package (S021); Calculating an initial check code corresponding to the new application program in the upgrade package to determine a standard check code corresponding to the new application program in the upgrade package (S022); Determining whether the end check code is consistent with the standard check code (S023); If there is a match, the upgrade is successful (S024).

[0035] Specifically, the new application program in the upgrade package has an initial check code, and the new application program is written into the active area of ​​the memory of the charging inlet, and the initial check code is affected by factors such as program loading. After the writing of the new application program is completed, the initial check code changes to form an end check code. Meanwhile, the ECU receives the initial check code and the end check code, and then performs calculations on the initial check code based on the SHA256 algorithm to obtain a standard check code. If there is no problem in the writing process of the new application program, no abnormality occurs, and the upgrade is successful, the end check code and the standard check code should be consistent; if they are not consistent, there is a problem in the writing process of the new application program, that is, the upgrade is not successful.

[0036] In an embodiment of the present invention, before upgrading, the charging inlet is woken up after receiving a power-on operation or a wake-up operation from the vehicle control unit ECU, and enters a programming diagnostic session after waking up. If it is checked that the new application program in the upgrade package is valid and the hardware information and software information of the charging inlet are normal, the old application program in the active area of ​​the memory of the charging inlet is backed up to the backup area of ​​the memory of the charging inlet, and the old application program in the active area of ​​the memory of the charging inlet is erased. Before the new application program is written, the charging inlet sends a command requesting writing to the vehicle control unit ECU, and the ECU sends a corresponding request command after receiving the command. At this time, the service unit returns a command to start upgrading to the ECU, and the ECU writes the new application program in the upgrade package into the active area of ​​the memory of the charging inlet to upgrade. After the upgrade is completed, the charging inlet sends a command requesting logging out to the ECU, and the ECU sends a corresponding request command to the service unit after receiving the command. At this time, the service unit returns a command to end the upgrade to the ECU, and the ECU stops writing the new application program in the upgrade package into the active area of ​​the memory of the charging inlet. The ECU receives the initial check code and the final check code, and performs calculations on the initial check code according to the SHA256 algorithm to obtain the standard check code, and after determining that the standard check code and the final check code are consistent, confirms that the upgrade is successful, and sets a flag bit of the charging inlet to mark the upgrade as successful.

[0037] Refer to Figure 4. Before receiving the new application program in the upgrade package, Receiving an upgrade command and determining whether an upgrade time for the charging inlet can be selected based on initial state data and recent state data of the charging inlet (S101); If the charging inlet upgrade time can be selected, selecting an upgrade time from a predetermined time (S102); If the charging inlet upgrade time cannot be selected, determining a default time as the upgrade time (S103); The method further includes upgrading the charging inlet with the upgrade package transmitted by the service unit at the upgrade time (S104).

[0038] When the vehicle control unit ECU receives an upgrade command sent from the service unit, the vehicle may be in a running state at this time or the vehicle owner may want to use the vehicle, so at this time, the ECU judges whether the upgrade time of the charging inlet can be selected based on the initial state data and the recent state data. If the upgrade time of the charging inlet can be selected, the upgrade time may be selected from a predetermined time by the vehicle owner or directly randomly. Here, the predetermined time may be a plurality of preset times, such as 1 hour, 2 hours, etc., and generally, the predetermined time is within 12 or 24 hours. If the upgrade time of the charging inlet cannot be selected, a default time is determined as the upgrade time, and here, the default time may be a preset time, such as 30 seconds, and generally, the default time is set to a time with a short interval so as to perform the upgrade update in a timely manner. In this manner, the upgrade time can be selected according to the needs of the vehicle owner and the state of the vehicle, and the upgrade of the charging inlet can be performed at an appropriate upgrade time. This process not only ensures the safety of charging and can perform the upgrade in a timely and effective manner, but also meets actual needs.

[0039] In an embodiment of the present invention, before step S101, the ECU obtains the hardware version and software version of the charging inlet, obtains the version information in the upgrade package sent by the service unit, and compares the hardware version and software version of the charging inlet with the version information in the upgrade package, and if the existing version type matches the version type in the upgrade package and the existing version level is lower than the version level in the upgrade package, it can execute step S104, thereby ensuring that the charging inlet is upgraded accurately and properly, and improving the quality and effect of the upgrade.

[0040] Referring to FIG. 5, in an embodiment of the present invention, before determining whether the upgrade time of the charging inlet can be selected based on the initial state data and the recent state data of the charging inlet (step S101), A service unit receives verification data for upgrading a charging inlet, transmits the verification data to the charging inlet, and receives encrypted data returned from the charging inlet (S201); The method further includes sending the encrypted data to the service unit, and when the service unit determines that the decrypted encrypted data is identical to the verification data (S202), determining whether an upgrade time for the charging inlet can be selected based on the initial state data and the most recent state data of the charging inlet (S203).

[0041] Specifically, the encryption verification is performed by the ECU. After receiving the verification data transmitted from the service unit, the ECU transmits the verification data to the charging inlet. The charging inlet encrypts the verification data to obtain encrypted data, and then the charging inlet transmits the encrypted data to the ECU. After receiving the encrypted data, the ECU transmits it to the service unit. The service unit decrypts the encrypted data and compares the decrypted data with the verification data. If they are the same, there is no problem with the verification. Only if there is no problem with the verification, the subsequent step S101 can be performed. In this encryption verification process, since the charging inlet and the service unit share the same encryption system, the encryption of the charging inlet and the decryption of the service unit are corresponding processes. This process makes it possible to verify whether the charging inlet is a charging inlet that corresponds to the service unit, thereby ensuring the safety of the charging inlet upgrade.

[0042] Referring to FIG. 6 , in an embodiment of the present invention, determining whether an upgrade time of the charging inlet can be selected based on the initial state data and the recent state data of the charging inlet includes: determining a standard state section based on the initial state data of the charging inlet (S1011); Determining whether the latest state data of the charging inlet is within the standard state interval (S1012); If the recent state data is within the standard state interval, enabling selection of an upgrade time for the charging inlet (S1013).

[0043] Here, the status data may include temperature status data, voltage status data, charging indicator lamp status data, and socket lock status data. The extraction time of the initial status data of the charging inlet may be a preset time period corresponding to immediately after the shipment of the electric vehicle. The initial status data is the status of the above status data immediately after the shipment of the electric vehicle. Since various performances are in an optimal state immediately after the shipment of the electric vehicle, the status data corresponding to this time period can be extracted as the initial status data and used as a standard for various status performances in later stages. This makes it possible to determine the standard status section.

[0044] Then, it is further determined whether the recent status data of the charging inlet is within the standard status interval, because the recent status data is status data corresponding to one week, three days, etc. prior to receiving an upgrade command, and it is only the recent status data in such a recent time period that can reflect the most recent status of the charging inlet. Finally, if the recent status data is within the standard status interval, the upgrade time of the charging inlet can be selected. In other words, if the recent status of the charging inlet is close to the status immediately after shipment, it indicates that the status of the charging inlet is still good, and this is used as a criterion for whether the upgrade time of the charging inlet can be selected.

[0045] Referring to FIG. 7, in an embodiment of the present invention, in step S1011, determining a standard state section based on the initial state data of the charging inlet includes: removing abnormal data from the initial state data of the charging inlet (S1011a); Determining a standard value and an error value of the initial state data (S1011b); and determining the standard state interval based on the standard value and the error value (S1011c).

[0046] Specifically, immediately after the shipment of an electric vehicle, the charging inlet may inevitably have a small amount of abnormal data in the acquired initial state data due to human or natural factors. These abnormal data may be expressed as a sudden increase or decrease in temperature, a temporary extinguishment of the charging indicator light, etc. However, since these abnormal data are not generated due to a problem with the charging inlet itself, they are not representative and need to be removed. The abnormal data can be removed using the isolated forest model.

[0047] After removing the abnormal data, the standard value and error value of the initial state data can be determined. Specifically, since the initial state data follows a normal distribution, the initial state data can be fitted to a normal distribution curve, and the expected value μ and variance σ of the initial state data can be determined by the normal distribution curve. Furthermore, according to actual needs, the expected value can be determined as the standard value of the initial state data, and 1-fold variance, 2-fold variance or 3-fold variance can be determined as the error value of the initial state data. Among them, when 1-fold variance, 2-fold variance or 3-fold variance is used as the error value of the initial state data, the size of the determined standard state interval is different. In principle, the standard state interval determined with 1-fold variance as the error value is smaller than the standard state interval determined with 2-fold variance as the error value, and the standard state interval determined with 2-fold variance as the error value is smaller than the standard state interval determined with 3-fold variance as the error value.

[0048] The larger the range of the standard state interval, the higher the probability that the recent state data is in the standard state interval, so the range of the standard state interval can be selected according to actual needs. If the requirement for accuracy is higher and the requirement for comprehensiveness is low, 1-fold variance can be selected as the error value. If the requirement for accuracy is not high and the requirement for comprehensiveness is higher, 3-fold variance can be selected as the error value, thereby meeting different requirements based on accuracy and comprehensiveness.

[0049] In addition, the temperature, voltage, and other status data vary in magnitude at different times and follow a normal distribution, so the standard status interval can be determined using the above method. However, the charging indicator, socket lock, and other status data only have two states, on or off, and locked or unlocked, at different times, so the standard status interval cannot be determined using the above method. Regarding such status information, taking the status information of the charging indicator as an example, the abnormal data is 0, where 0 indicates that the charging indicator is not lit or is blinking, and the standard value is 1, where 1 indicates that the charging indicator is lit. The error value is set to 0, i.e., no error is allowed, and the standard status interval is determined by the standard value and the error value.

[0050] Furthermore, determining the standard state interval based on the standard value and the error value includes: The method includes determining a difference between the standard value and the error value as a left endpoint value of the standard condition interval, and determining a sum of the standard value and the error value as a right endpoint value of the standard condition interval.

[0051] Specifically, the standard state interval is determined according to the following formula:

[0052]

number

[0053] Here, M is the standard condition interval, A is the standard value, and B is the error value.

[0054] Specifically, if σ (1x variance) is the error value of the initial state data, the standard state interval can be determined as [μ-σ, μ+σ]; if 2σ (2x variance) is the error value of the initial state data, the standard state interval can be determined as [μ-2σ, μ+2σ]; and if 3σ (3x variance) is the error value of the initial state data, the standard state interval can be determined as [μ-3σ, μ+3σ].

[0055] For status data such as temperature and voltage, the normal state section can be determined by the above method, but for status data such as the charging indicator light and socket lock, the normal state section can be determined as [1, 1], where 1 indicates that the charging indicator light is on or the socket lock is locked.

[0056] Referring to FIG. 8 , in an embodiment of the present invention, determining whether an upgrade time of the charging inlet can be selected based on the initial state data and the recent state data of the charging inlet includes: comparing the most recent state data with the initial state data to determine whether the most recent state data and the initial state data match (S1014); If the recent state data and the initial state data match, enabling selection of an upgrade time for the charging inlet (S1015).

[0057] Here, status data corresponding to the charging inlet at any point in time within a certain period of time after the electric vehicle is shipped is extracted as the initial status data. When extracting this point in time, it is necessary to ensure that the status of the charging inlet at that point in time is good and no abnormal situation has occurred, and the status data at this time is representative.

[0058] Furthermore, it is determined whether the recent state data and the initial state data match, and for the temperature state data and the voltage state data, the match here may not be completely the same, and if it is within an allowable error range, it can be determined that they match. For example, the temperature error range can be set to ±0.1°C, and if the temperature in the initial state data is 10°C, it can be determined that they match if it is within 9.9 to 10.1°C. However, for the charging indicator lamp state data and the socket lock state data, the match here may be completely the same, and there is no allowable error range. Only when the charging indicator lamp state data and the initial charging indicator lamp state data match and both are 1 (the charging indicator lamp is on), or the socket lock state data and the initial socket lock state data match and both are 1 (the socket lock is locked), it can be determined that the two match.

[0059] The method further includes, if the upgrade fails, restoring the old application program in the backup area of ​​the memory of the charging inlet back to the active area of ​​the memory of the charging inlet.

[0060] If the upgrade fails, the flag bit becomes 0, and the old application program in the backup area is restored to the active area again. At this time, the flag bit is still 0. The flag bit being 0 indicates that there is an upgrade command at that time, but the upgrade has not yet been made (the upgrade has not been successful), and the charging inlet needs to be upgraded.

[0061] Through the above series of steps, the charging inlet's recent state data and initial state data can be compared to determine whether the charging inlet's upgrade time can be selected. If the recent state data is within the standard state interval determined by the initial state data or the recent state data is consistent with the initial state data, the charging inlet's upgrade time can be selected, improving the interactivity and availability of the system. If not, in order to improve the system safety and ensure that the charging inlet can complete charging with high performance and quality, the default time needs to be determined as the upgrade time. When the upgrade time arrives, a backup can be performed first, and then the upgrade can be performed. The purpose is to deal with the case where the charging inlet's upgrade is not successful. Even if the upgrade is not successful, the previous old application program can still be used, avoiding waiting for subsequent maintenance or upgrade due to the upgrade being not successful, and improving the efficiency of the charging inlet's upgrade.

[0062] Referring to FIG. 9, based on the method for upgrading a charging inlet described above, the method for upgrading a charging inlet needs to design a charging inlet to be upgraded according to the charging inlet, where the charging inlet 1 includes a central control module 2 and a monitoring module 3 electrically connected to the central control module 2; the monitoring module 3 is for collecting status information of the charging inlet 1 and transmitting the status information to the central control module 2; The central control module 2 is electrically connected to a vehicle control unit 4, for transmitting the status information to the vehicle control unit 4, and for performing the upgrade at the upgrade time under the control of the vehicle control unit 4.

[0063] Specifically, the monitoring module 3 may include a temperature monitoring module, a voltage monitoring module, a socket lock monitoring module, and a charging indicator lamp monitoring module. The temperature monitoring module mainly monitors the temperature of the terminals, wires, etc. during charging. The voltage monitoring module mainly monitors the charging voltage during charging. During the charging process, the charging interface is locked by the socket lock at the charging inlet, and the socket lock monitoring module monitors whether the socket lock is locked. During the charging process, the charging indicator lamp is for indicating whether charging is in progress. The charging indicator lamp monitoring module monitors the charging status.

[0064] Based on the method for upgrading a charging inlet described above, an embodiment of the present invention further provides an apparatus for upgrading a charging inlet. The apparatus includes a system (including a distributed system), software (application), module, component, server, user terminal, etc., using the method described in the embodiment of the present invention, and is combined with necessary implementation hardware. Based on the same innovative idea, the present invention provides an apparatus described in one or more embodiments below. Since the means for solving a problem by the apparatus is similar to the method, the specific embodiment of the apparatus in the embodiment of the present invention can refer to the implementation of the above method, and detailed description will be omitted. The term "unit" or "module" used below may be a combination of software and / or hardware that realizes a certain function. The apparatus described in the following embodiment is preferably realized by software, but may also be realized by hardware or a combination of software and hardware.

[0065] Specifically, Figure 10 is a modular structural schematic diagram of one embodiment of a charging inlet upgrading device according to an embodiment of the present invention. Referring to Figure 10, the charging inlet upgrading device according to an embodiment of the present invention includes a receiving module 100, an upgrading module 200, and a judgment module 300.

[0066] The charging inlet upgrade device applied to the vehicle control unit includes: A receiving module 100 for receiving a new application program in an upgrade package and checking whether the new application program in the upgrade package is valid; an upgrade module 200 for writing the new application program in the upgrade package into an active area of ​​the memory of the charging inlet if the new application program is valid; and a determining module 300 for determining whether the upgrade is successful, and if so, setting a flag bit of the charging inlet to mark the upgrade as successful.

[0067] The charging inlet further includes a backup module, which, when upgrading, backs up the old application program in the active area of ​​the memory of the charging inlet to a backup area of ​​the memory of the charging inlet before the new application program in the upgrade package is written into the active area of ​​the memory of the charging inlet, erases the old application program in the active area of ​​the memory of the charging inlet, and receives the new application program in the upgrade package.

[0068] Further, the upgrade module further includes a progress upgrade module, which, when the new application program in the upgrade package is valid, writes the new application program in the upgrade package to an upgrade memory area of ​​the charging inlet, loads the memory address of the new application program after the vehicle control unit is restarted, and backs up the old application program before the vehicle control unit is restarted.

[0069] Furthermore, the upgrade module 100 includes: an upgrade command receiving module for receiving a command to start the upgrade; a direct upgrade module for writing a new application program in the upgrade package into an active area of ​​a memory of the charging inlet in accordance with an instruction of the upgrade start command to perform an upgrade.

[0070] As shown in FIG. 11, based on the method of upgrading a charging inlet described above, in one embodiment of the present invention, a computer device 1102 is further provided, where the method is executed on the computer device 1102. The computer device 1102 may include a processor 1104, such as, for example, one or more central processing units (CPUs) or graphics processors (GPUs). Each processor unit may implement one or more hardware threads. The computer device 1102 may further include an optional memory 1106 for storing any type of information, such as, for example, code, settings, data, etc. In one embodiment, a computer program residing in the memory 1106 and executable on the processor 1104, when executed by the processor 1104, may execute instructions according to the method described above. For example, the memory 1106 may include, but is not limited to, any one or more combinations of any type of RAM, any type of ROM, a flash memory device, a hard disk, an optical disk, etc. More generally, any memory may store information using any technology. Furthermore, any memory may be volatile or non-volatile to retain information. Additionally, any memory may be a fixed or removable component of the computing device 1102. In one case, when the processor 1104 executes the associated instructions stored in any memory or combination of memories, the computing device 1102 can perform any operation of the associated instructions. The computing device 1102 further includes one or more drives 1108, such as a hard disk drive, an optical disk drive, etc., for interacting with any memory.

[0071] The computing device 1102 may further include an input / output module 1110 (I / O) for receiving various inputs (via input devices 1112) and providing various outputs (via output devices 1114). One particular output mechanism may include a display device 1116 and associated graphical user interface 1118. In other embodiments, the input / output module 1110, the input devices 1112, and the output devices 1114 may not be included, and there may be only one computing device in the network. The computing device 1102 may further include one or more network interfaces 1120 for exchanging data with other devices via one or more communication links 1122. One or more communication buses 1124 couple the above-described components together.

[0072] The communications link 1122 may be implemented in any manner, for example, via a local area network, a wide area network (e.g., the Internet), a point-to-point connection, and / or any combination thereof. The communications link 1122 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc., controlled by any protocol or combination of protocols.

[0073] Corresponding to the methods of Figures 1 to 8, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the above method.

[0074] An embodiment of the present invention further provides computer readable instructions, which, when executed by a processor, program to cause the processor to perform the methods illustrated in FIGS.

[0075] In various embodiments of the present invention, the magnitude of the sequence numbers of each of the above steps does not mean the order of execution, and the order of execution of each step should be determined by its function and internal logic, and it should be understood that this does not constitute any limitation on the implementation process of the embodiments of the present invention.

[0076] In the embodiment of the present invention, it should be understood that the term "and / or" is merely a relational relationship for describing related objects, and indicates that three kinds of relations can exist. For example, A and / or B can indicate three cases: only A exists, A and B exist simultaneously, and only B exists. In addition, the sign " / " in this specification generally indicates that the related objects before and after are in an "or" relationship.

[0077] It is clear to those skilled in the art that for convenience and conciseness of explanation, the specific operating steps of the systems, devices and units described above can be referred to the corresponding steps in the above method examples, and detailed explanations will be omitted here.

[0078] When the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in one computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention, or a part that contributes to the prior art, or all or a part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in one storage medium and includes several instructions for causing one computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or a part of the steps of the method according to each embodiment of the present invention. And the above storage medium includes various media that can store program code, such as a USB memory, a removable hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disk.

[0079] In the present invention, the principle and embodiment of the present invention are described by applying specific examples, but the description of the above examples is only to help understand the method of the present invention and its central idea. Those skilled in the art can modify the specific embodiments and application scope based on the idea of ​​the present invention. As described above, the contents of this specification should not be understood as limiting the present invention.

Claims

1. 1. A method for upgrading a charging inlet, comprising: The method is applied to a vehicle control unit, receiving a new application program in an upgrade package, and checking whether the new application program in the upgrade package is valid; If the new application program in the upgrade package is valid, the new application program is written into an active area of ​​the memory of the charging inlet to perform an upgrade. determining whether the upgrade was successful, and if the upgrade was successful, setting a flag bit of the charging inlet to mark the upgrade as successful.

13. A method for upgrading a charging inlet, comprising:

2. When upgrading, the method further includes backing up an old application program in the active area of ​​the memory of the charging inlet to a backup area of ​​the memory of the charging inlet before the new application program in the upgrade package is written into the active area of ​​the memory of the charging inlet, and erasing the old application program in the active area of ​​the memory of the charging inlet to receive the new application program in the upgrade package. The method for upgrading a charging inlet according to claim 1 .

3. If the new application program in the upgrade package is valid, the new application program in the upgrade package is written into an upgrade storage area of ​​the charging inlet, and after the vehicle control unit is restarted, the storage address of the new application program is loaded, and the old application program before the vehicle control unit is restarted is used as a backup. The method for upgrading a charging inlet according to claim 1 .

4. Writing a new application program in the upgrade package into an active area of ​​a memory of the charging inlet to perform an upgrade, receiving a command to start the upgrade; and writing a new application program in the upgrade package into an active area of ​​a memory of the charging inlet according to an instruction of the upgrade start command to perform the upgrade. The method for upgrading a charging inlet according to claim 1 .

5. Writing a new application program in the upgrade package into an active area of ​​a memory of the charging inlet to perform an upgrade, receiving a command to finish the upgrade; and stopping writing the new application program in the upgrade package to the active area of ​​the memory of the charging inlet according to an instruction of the upgrade completion command. The method for upgrading a charging inlet according to claim 1 .

6. Reading hardware information and software information of the charging inlet; determining whether to upgrade the charging inlet based on the hardware information and the software information; If upgrading, the method further includes backing up the old application program in the active area of ​​the memory of the charging inlet to a backup area of ​​the memory of the charging inlet, and erasing the old application program in the active area of ​​the memory of the charging inlet. The method for upgrading a charging inlet according to claim 1 .

7. To determine whether the upgrade was successful, receiving an initial check code and a final check code corresponding to a new application program in the upgrade package; performing a calculation on an initial check code corresponding to the new application program in the upgrade package to determine a standard check code corresponding to the new application program in the upgrade package; determining whether the end check code matches the standard check code; If they match, the upgrade is successful. The method for upgrading a charging inlet according to claim 1 .

8. Before receiving new application programs in an upgrade package, receiving an upgrade command and determining whether an upgrade time for the charging inlet can be selected based on initial state data and recent state data of the charging inlet; If the charging inlet upgrade time is selectable, extracting the upgrade time from the predetermined time; If the charging inlet upgrade time cannot be selected, determine the default time as the upgrade time; At the upgrade time, upgrading the charging inlet with the upgrade package transmitted by the service unit. The method for upgrading a charging inlet according to claim 1 .

9. before determining whether an upgrade time for the charging inlet can be selected based on the initial state data and the recent state data for the charging inlet; receiving verification data for upgrading the charging inlet by the service unit, transmitting the verification data to the charging inlet, and receiving encrypted data returned from the charging inlet; sending the encrypted data to the service unit; and when the service unit determines that the decrypted encrypted data is the same as the verification data, determining whether an upgrade time for the charging inlet can be selected based on initial state data and recent state data of the charging inlet. The method for upgrading a charging inlet according to claim 8 .

10. Determining whether an upgrade time for the charging inlet can be selected based on the initial state data and the recent state data for the charging inlet includes: determining a standard state section based on initial state data of the charging inlet; determining whether recent state data of the charging inlet is within the standard state interval; and selecting an upgrade time for the charging inlet if the recent state data is within the standard state interval. The method for upgrading a charging inlet according to claim 8 .

11. Determining a standard state section based on the initial state data of the charging inlet removing abnormal data from the initial state data of the charging inlet; determining a standard value and an error value of the initial state data; determining the standard condition interval based on the standard value and the error value. The method for upgrading a charging inlet according to claim 10.

12. Determining the standard state interval based on the standard value and the error value determining a difference between the standard value and the error value as a left endpoint value of the standard condition interval, and determining a sum of the standard value and the error value as a right endpoint value of the standard condition interval. The method for upgrading a charging inlet according to claim 11 .

13. Determining whether an upgrade time for the charging inlet can be selected based on the initial state data and the recent state data for the charging inlet includes: comparing the most recent state data with the initial state data to determine whether the most recent state data and the initial state data match; and selecting an upgrade time for the charging inlet if the recent state data and the initial state data match. The method for upgrading a charging inlet according to claim 8 .

14. If the upgrade fails, the old application program in the backup area of ​​the memory of the charging inlet is restored to the active area of ​​the memory of the charging inlet. The method for upgrading a charging inlet according to claim 1 .

15. a central control module; and a monitoring module electrically connected to the central control module; the monitoring module is for collecting status information of the charging inlet and transmitting the status information to the central control module; the central control module is electrically connected to a vehicle control unit; The central control module is for transmitting the status information to the vehicle control unit and upgrading at an upgrade time under control of the vehicle control unit. A charging inlet characterized by:

16. A charging inlet upgrade device, comprising: The apparatus is adapted for a vehicle control unit, A receiving module receives a new application program in an upgrade package and checks whether the new application program in the upgrade package is valid; an upgrade module that writes the new application program in the upgrade package into an active area of ​​a memory of the charging inlet to perform an upgrade if the new application program in the upgrade package is valid; a determining module for determining whether the upgrade is successful, and if the upgrade is successful, for setting a flag bit of the charging inlet to mark the upgrade as successful. Charging inlet upgrade equipment.

17. The charging inlet further includes a backup module for backing up an old application program in the active area of ​​the memory of the charging inlet to a backup area of ​​the memory of the charging inlet before a new application program in the upgrade package is written into the active area of ​​the memory of the charging inlet, and erasing the old application program in the active area of ​​the memory of the charging inlet to receive the new application program in the upgrade package. The charging inlet upgrading device according to claim 16 .

18. and a progress upgrade module for writing the new application program in the upgrade package to an upgrade storage area of ​​the charging inlet when the new application program in the upgrade package is valid, and loading the storage address of the new application program after the vehicle control unit is restarted, and using the old application program before the vehicle control unit is restarted as a backup. The charging inlet upgrading device according to claim 16 .

19. The upgrade module includes: an upgrade command receiving module for receiving a command to start the upgrade; a direct upgrade module for writing a new application program in the upgrade package into an active area of ​​a memory of the charging inlet according to an instruction of the upgrade start command to perform the upgrade. The charging inlet upgrading device according to claim 16 .

20. 1. A computing device including a memory, a processor, and a computer program stored in the memory, comprising: The computer program, when executed by the processor, performs instructions according to the method of any one of claims 1 to 14.

1. A computer device comprising:

21. A computer-readable storage medium having a computer program stored thereon, The computer program, when executed by a processor of a computing device, performs instructions according to the method of any one of claims 1 to 14. A computer-readable storage medium comprising:

Citation Information

Patent Citations

  • Program management system for on-vehicle electronic control unit

    JP2009053920A

  • On-vehicle updating device, on-vehicle updating system and updating method for communication device

    JP2018020718A

  • Inspection apparatus, inspection system, information processing apparatus, inspection method and computer program

    JP2018073245A

  • Update system, electronic control device, update management device, and update management method

    JP2019084941A

  • On-vehicle control system and vehicle

    JP2020028150A