Search

US-12623567-B2 - Charging socket, charging socket upgrading method and apparatus, device, and storage medium (amended)

US12623567B2US 12623567 B2US12623567 B2US 12623567B2US-12623567-B2

Abstract

The present disclosure provides a charging socket, a charging socket upgrading method and apparatus, a device, and a storage medium. The method includes: receiving a new application program in an upgrade package, and checking whether the new application program in the upgrade package is valid (S 001 ); if so, writing the new application program in the upgrade package into a memory activation area of a charging socket for an upgrade (S 002 ); determining whether the upgrade is successful, and if so, setting a flag position of the charging socket to mark the success of the upgrade (S 003 ). According to the described method, the charging socket can be upgraded by the aforementioned method, thereby improving the applicability of the upgrading process.

Inventors

  • Chao Wang
  • Yun Miao

Assignees

  • CHANGCHUN JETTY AUTOMOTIVE TECHNOLOGY CO., LTD.

Dates

Publication Date
20260512
Application Date
20220809
Priority Date
20210826

Claims (16)

  1. 1 . A charging socket upgrading method, which is applied to an automobile control unit, the method comprising: 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 is valid, writing the new application program in the upgrade package into a memory activation area of the charging socket for an upgrade; and judging whether the upgrade is successful, and if so, setting a flag position of the charging socket to mark the success of the upgrade, wherein before receiving the new application program in the upgrade package, the method further comprises: receiving an upgrade instruction, and judging whether an upgrade time of the charging socket is selectable according to initial state data and recent state data of the charging socket, determining a standard state interval according to the initial state data of the charging socket; judging whether the recent state data of the charging socket is within the standard state interval; and if the recent state data of the charging socket is within the standard state interval, determining that the upgrade time of the charging socket is selectable; if the upgrade time of the charging socket is selectable, selecting the upgrade time from given time; if the upgrade time of the charging socket is not selectable, determining a default time as the upgrade time; and upgrading the charging socket through the upgrade package transmitted by a service unit at the upgrade time.
  2. 2 . The charging socket upgrading method according to claim 1 , further comprising: if the upgrade is carried out, before writing the new application program in the upgrade package into the memory activation area of the charging socket, backing up an old application program in the memory activation area of the charging socket to a memory backup area of the charging socket, and clearing the old application program in the memory activation area of the charging socket to receive the new application program in the upgrade package.
  3. 3 . The charging socket upgrading method according to claim 1 , further comprising: if the new application program in the upgrade package is valid, writing the new application program in the upgrade package into an upgrade storage area of the charging socket, loading a storage address of the new application program after the automobile control unit restarts, and taking the old application program before the automobile control unit restarts as a backup.
  4. 4 . The charging socket upgrading method according to claim 1 , wherein writing the new application program in the upgrade package into a memory activation area of the charging socket for an upgrade comprises: receiving an upgrade starting instruction; and writing the new application program in the upgrade package into the memory activation area of the charging socket for an upgrade according to the upgrade starting instruction.
  5. 5 . The charging socket upgrading method according to claim 1 , wherein writing the new application program in the upgrade package into a memory activation area of the charging socket for an upgrade comprises: receiving an upgrade ending instruction; and stopping writing the new application program in the upgrade package into the memory activation area of the charging socket according to the upgrade ending instruction.
  6. 6 . The charging socket upgrading method according to claim 1 , further comprising: reading hardware information and software information of the charging socket; determining whether to upgrade the charging socket according to the hardware information and the software information; and if so, backing up an old application program in the memory activation area of the charging socket to a memory backup area of the charging socket, and clearing the old application program in the memory activation area of the charging socket.
  7. 7 . The charging socket upgrading method according to claim 1 , wherein judging whether the upgrade is successful comprises: receiving an initial checksum and a termination checksum corresponding to the new application program in the upgrade package; calculating the initial checksum corresponding to the new application program in the upgrade package, and determining a standard checksum corresponding to the new application program in the upgrade package; judging whether the termination checksum is consistent with the standard checksum; and if so, the upgrade is successful.
  8. 8 . The charging socket upgrading method according to claim 1 , wherein before judging whether an upgrade time of the charging socket is selectable according to initial state data and recent state data of the charging socket, the method further comprises: receiving verification data used by the service unit to upgrade the charging socket, sending the verification data to the charging socket, and receiving encrypted data returned by the charging socket; sending the encrypted data to the service unit, when the service unit determines that the encrypted data is the same as the verification data after decryption; and judging whether an upgrade time of the charging socket is selectable according to initial state data and recent state data of the charging socket.
  9. 9 . The charging socket upgrading method according to claim 1 , wherein determining a standard state interval according to the initial state data of the charging socket comprises: eliminating abnormal data in the initial state data of the charging socket; determining a standard value and an error value of the initial state data; and determining the standard state interval according to the standard value and the error value.
  10. 10 . The charging socket upgrading method according to claim 9 , wherein determining the standard state interval according to the standard value and the error value comprises: determining a difference between the standard value and the error value as a left end point value of the standard state interval, and determining a sum of the standard value and the error value as a right end point value of the standard state interval.
  11. 11 . The charging socket upgrading method according to claim 1 , wherein judging whether an upgrade time of the charging socket is selectable according to initial state data and recent state data of the charging socket comprises: comparing the recent state data with the initial state data, and judging whether the recent state data is consistent with the initial state data; if so, the upgrade time of the charging socket is selectable.
  12. 12 . The charging socket upgrading method according to claim 1 , further comprising: when the upgrade is failed, restoring an old application program in a memory backup area of the charging socket to the memory activation area of the charging socket.
  13. 13 . A charging socket upgrading apparatus, comprising a memory, a processor, and a computer program stored in the memory, wherein the apparatus is applied to an automobile control unit, the apparatus further comprising: a receiving module configured to receive a new application program in an upgrade package and check whether the new application program in the upgrade package is valid; an upgrading module configured to write the new application program in the upgrade package into a memory activation area of the charging socket for an upgrade, if the new application program in the upgrade package is valid; and a judging module configured to judge whether the upgrade is successful, and if so, set a flag position of the charging socket to mark the success of the upgrade, wherein before receiving the new application program in the upgrade package, the upgrading module is further configured to: receive an upgrade instruction, and judge whether an upgrade time of the charging socket is selectable according to initial state data and recent state data of the charging socket, determine a standard state interval according to the initial state data of the charging socket; judge whether the recent state data of the charging socket is within the standard state interval; and if the recent state data of the charging socket is within the standard state interval, determine that the upgrade time of the charging socket is selectable; if the upgrade time of the charging socket is selectable, select the upgrade time from given time; if the upgrade time of the charging socket is not selectable, determine a default time as the upgrade time; and upgrade the charging socket through the upgrade package transmitted by a service unit at the upgrade time.
  14. 14 . The charging socket upgrading apparatus according to claim 13 , further comprising: a backup module configured to, if the upgrade is carried out, before the new application program in the upgrade package is written into the memory activation area of the charging socket, back up an old application program in the memory activation area of the charging socket to a memory backup area of the charging socket, and clear the old application program in the memory activation area of the charging socket to receive the new application program in the upgrade package.
  15. 15 . The charging socket upgrading apparatus according to claim 13 , further comprising: an upgrade conduction module configured to, if the new application program in the upgrade package is valid, write the new application program in the upgrade package into an upgrade storage area of the charging socket, load a storage address of the new application program after the automobile control unit restarts, and take the old application program before the automobile control unit restarts as a backup.
  16. 16 . The charging socket upgrading apparatus according to claim 13 , wherein the upgrading module comprises: an upgrade instruction receiving module configured to receive an upgrade starting instruction; and a direct upgrading module configured to write the new application program in the upgrade package into the memory activation area of the charging socket for an upgrade, according to the upgrade starting instruction.

Description

CROSS-REFERENCE TO RELATED APPLICATION This application is a U.S. National Stage of International Application No. PCT/CN2022/111138, filed Aug. 9, 2022, which claims priorities to Chinese Patent Application No. 202110985980.5, filed on Aug. 26, 2021, both of which are hereby incorporated by reference in their entireties. TECHNICAL FIELD The present disclosure relates to the field of charging sockets, and particularly to a charging socket, a charging socket upgrading method and apparatus, a device, and a storage medium. BACKGROUND With the rapid development of new energy industry, the number of electric automobiles is gradually increasing, and the demand for safety, reliability and timeliness of charging devices is also increasing. An automobile control unit (ECU) is equivalent to the brain of an automobile, and is connectable to electronic components on the automobile. A unified diagnosis service (UDS) of the automobile is a unified international standard formulated to realize an automobile electronic fault diagnosis service, and the ECU and the electronic components need to be communicated with each other under the UDS. A charging socket is an apparatus mounted on the electric automobile and connected to a charging interface. The charging socket itself may be damaged due to a too high or too low temperature, a vibration, an impact or the like. In the existing electric automobiles, the charging socket not only has the function of charging through a connection with the charging interface, but also can monitor part of the states of the charging socket. However, in the prior art, only the states of the charging socket can be monitored, and there is no method for upgrading the charging socket. Although there are methods for upgrading other electronic components of the electric automobile in the prior art, the upgrade cannot be carried out according to the usage or state of the electronic components, which leads to the failure to make corresponding changes in the upgrading process according to the actual situations of the electronic components, and the applicability is limited. Therefore, there is an urgent need for a charging socket upgrading method to upgrade the charging socket, so as to improve the applicability of the upgrading process. SUMMARY The embodiments of the present disclosure aim to provide a charging socket, a charging socket upgrading method and apparatus, a device and a storage medium, so as to upgrade the charging socket and improve the applicability of the upgrading process. In order to achieve the above objective, in an aspect, an embodiment of the present disclosure provides a charging socket upgrading method, which is applied to an automobile control unit, the method comprising: receiving a new application program in an upgrade package, and checking whether the new application program in the upgrade package is valid;if so, writing the new application program in the upgrade package into a memory activation area of the charging socket for an upgrade; andjudging whether the upgrade is successful, and if so, setting a flag position of the charging socket to mark the success of the upgrade. In another aspect, an embodiment of the present disclosure provides a charging socket, comprising a central control module and a monitoring module electrically connected thereto; the monitoring module is configured to collect state information of the charging socket and transmit the state information to the central control module; andthe central control module is electrically connected to an automobile control unit, and configured to transmit the state information to the automobile control unit and upgrade at an upgrade time under the control of the automobile control unit. In still another aspect, an embodiment of the present disclosure provides a charging socket upgrading apparatus, which is applied to an automobile control unit, the apparatus comprising: a receiving module configured to receive a new application program in an upgrade package and check whether the new application program in the upgrade package is valid;an upgrading module configured to write the new application program in the upgrade package into a memory activation area of the charging socket for an upgrade, if the new application program in the upgrade package is valid; anda judging module configured to judge whether the upgrade is successful, and if so, set a flag position of the charging socket to mark the success of the upgrade. In still another aspect, an embodiment of the present disclosure provides a computer device, comprising a memory, a processor, and a computer program stored in the memory, in which when executed by the processor, the computer program performs instructions of any of the aforementioned methods. In still another aspect, an embodiment of the present disclosure provides a computer-readable storage medium in which a computer program is stored, in which when executed by a processor of a computer device, the computer