WO2023024895A1 - 充电座和充电座升级的方法、装置、设备、存储介质 - Google Patents

充电座和充电座升级的方法、装置、设备、存储介质 Download PDF

Info

Publication number
WO2023024895A1
WO2023024895A1 PCT/CN2022/111138 CN2022111138W WO2023024895A1 WO 2023024895 A1 WO2023024895 A1 WO 2023024895A1 CN 2022111138 W CN2022111138 W CN 2022111138W WO 2023024895 A1 WO2023024895 A1 WO 2023024895A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging stand
upgrade
application program
upgrading
new application
Prior art date
Application number
PCT/CN2022/111138
Other languages
English (en)
French (fr)
Inventor
王超
Original Assignee
长春捷翼汽车零部件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 长春捷翼汽车零部件有限公司 filed Critical 长春捷翼汽车零部件有限公司
Priority to EP22860241.3A priority Critical patent/EP4394583A1/en
Publication of WO2023024895A1 publication Critical patent/WO2023024895A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/70Energy storage systems for electromobility, e.g. batteries
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/7072Electromobility specific charging systems or methods for batteries, ultracapacitors, supercapacitors or double-layer capacitors

Definitions

  • the invention relates to the field of charging stands, in particular, to a charging stand and a charging stand upgrade method, device, equipment, and storage medium.
  • the vehicle control unit is equivalent to the brain of the car.
  • the ECU can be connected with the electronic components on the car.
  • the vehicle unified diagnostic service is a unified international standard for the realization of the vehicle electronic fault diagnosis service. Between the ECU and the electronic components need to be Communication is carried out under the provisions of UDS.
  • the charging stand is a device installed on the electric vehicle to connect with the charging interface.
  • the charging stand itself may be damaged due to excessive or low temperature, vibration, impact, etc.
  • the function of interface connection for charging can also monitor part of the status of the charging stand.
  • the purpose of the embodiments of the present invention is to provide a charging stand and a charging stand upgrading method, device, device, and storage medium, so as to upgrade the charging stand and improve the applicability of the upgrading process.
  • an embodiment of the present invention provides a method for upgrading a charging stand, which is applied to a vehicle control unit, including:
  • an embodiment of the present invention provides a charging stand, including a central control module, and a monitoring module electrically connected to the central control module;
  • the monitoring module is used to collect status information of the charging stand and transmit the status information to the central control module;
  • the central control module is electrically connected to the vehicle control unit, and the central control module is used to transmit the state information to the vehicle control unit, and perform an upgrade at an upgrade time under the control of the vehicle control unit.
  • an embodiment of the present invention provides a device for upgrading a charging stand, which is applied to a vehicle control unit; the device includes:
  • Receiving module receive the new application program in the upgrade package, and check whether the new application program in the upgrade package is valid
  • Upgrade module if valid, write the new application program in the upgrade package into the memory activation area of the charging stand for upgrade;
  • Judging module judging whether the upgrade is successful, and when the upgrade is successful, set the flag position of the charging stand to mark the success of the upgrade.
  • an embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored on the memory.
  • a computer program stored on the memory.
  • an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor of a computer device, instructions for executing any one of the above-mentioned methods are executed.
  • the embodiment of the present invention performs the backup process of the old application program first under the premise of checking that the new application program in the upgrade package is valid, and then performs the upgrade of the new application program, thereby improving the charging stand.
  • the applicability and efficiency of the upgrade process are the technical solutions provided by the above embodiments of the present invention.
  • Fig. 1 shows a schematic flowchart of a method for upgrading a charging stand provided by an embodiment of the present invention
  • Fig. 2 shows a second schematic flowchart of a method for upgrading a charging stand provided by an embodiment of the present invention
  • FIG. 3 shows a schematic flow diagram for judging whether the upgrade is successful provided by an embodiment of the present invention
  • Fig. 4 shows a third schematic flowchart of a method for upgrading a charging stand provided by an embodiment of the present invention
  • Fig. 5 shows a fourth schematic flowchart of a method for upgrading a charging stand provided by an embodiment of the present invention
  • Fig. 6 shows a schematic flow chart of judging whether the upgrade time of the charging stand can be selected provided by the embodiment of the present invention
  • Fig. 7 shows a schematic flowchart of determining a standard state interval provided by an embodiment of the present invention
  • Fig. 8 shows a schematic flow chart of judging whether the upgrade time of the charging stand can be selected provided by the embodiment of the present invention
  • Fig. 9 shows a schematic diagram of a module structure of a charging stand provided by an embodiment of the present invention.
  • Fig. 10 shows a schematic diagram of a module structure of a device for upgrading a charging stand provided by an embodiment of the present invention
  • FIG. 11 shows a schematic structural diagram of a computer device provided by an embodiment of the present invention.
  • the vehicle control unit is equivalent to the brain of the car.
  • the ECU can be connected with the electronic components on the car.
  • the vehicle unified diagnostic service is a unified international standard for the realization of the vehicle electronic fault diagnosis service. Between the ECU and the electronic components need to be Communication is carried out under the provisions of UDS.
  • the charging stand is a device installed on the electric vehicle to connect with the charging interface.
  • the charging stand itself may be damaged due to excessive or low temperature, vibration, impact, etc.
  • the function of interface connection for charging can also monitor part of the status of the charging stand.
  • an embodiment of the present invention provides a method for upgrading a charging stand, which can upgrade the charging stand.
  • Figure 1 is a schematic diagram of the steps of a method for upgrading a charging stand provided by an embodiment of the present invention. This specification provides the operation steps of the method as described in the embodiment or flow chart, but based on routine or non-creative work, more or more Fewer operating steps. The sequence of steps enumerated in the embodiments is only one of the execution sequences of many steps, and does not represent the only execution sequence. When an actual system or device product is executed, it may be executed sequentially or in parallel according to the methods shown in the embodiments or drawings.
  • the charging stand is installed on the electric vehicle.
  • the charging pile is connected to the charging connector through the charging cable, and the charging connector is inserted into the charging stand to charge the electric vehicle.
  • a monitoring module capable of monitoring the state information of the charging stand and a central control module electrically connected to the monitoring module are arranged in the charging stand, and the monitoring module may include a temperature monitoring module, a voltage monitoring module, a socket lock monitoring module and a charging indicator monitor module.
  • the central control module is electrically connected with the vehicle control unit (ECU) of the electric vehicle.
  • the temperature monitoring module is mainly to monitor the temperature of terminals, wires, etc. during the charging process;
  • the voltage monitoring module is mainly to monitor the charging voltage during the charging process;
  • the monitoring module is used to monitor whether the socket lock is locked; during the charging process, the charging indicator is used to indicate whether it is charging, and the charging indicator monitoring module monitors the charging status.
  • the central control module can be a single-chip microcomputer, and there can be a memory and a processor in the central control module.
  • the memory can store the status information monitored by the monitoring module, and the processor can send the status information to the ECU.
  • the service unit may be a server.
  • the service unit sends the upgrade package to the ECU, and the ECU further determines the upgrade time by judging whether the upgrade time of the charging stand can be selected, and the charging stand is upgraded at the upgrade time, and the verification data needs to be passed before the upgrade Verify that the charging stand is normal, and upgrade after the verification is successful.
  • upgrading the old application program will be backed up to the backup area of the memory first. If the upgrade is unsuccessful, the old application program in the memory backup area will be restored. In this way, the charging stand can be upgraded, the applicability of the upgrading process can be improved, and the safety in the upgrading process can be guaranteed at the same time.
  • a method for upgrading a charging stand is applied to a vehicle control unit; including:
  • S001 Receive the new application program in the upgrade package, and check whether the new application program in the upgrade package is valid;
  • S003 Determine whether the upgrade is successful, and when the upgrade is successful, set the flag position of the charging stand to mark the success of the upgrade.
  • the new application program in the upgrade package can be upgraded. If the upgrade is performed, before the new application program in the upgrade package is written into the memory activation area of the charging stand, the charging Backup the old application program in the active area of the charging stand memory to the backup area of the charging stand memory, and clear the old application program in the active area of the charging stand memory, so as to receive the new application program in the upgrade package.
  • checking whether the new application program in the upgrade package is valid can be checked by the ECU, and the checking method can be to check the new application program through a corresponding checking algorithm to determine that the new application program does not have loopholes such as program defects, of course Other inspection methods may also be used, and this article does not limit the inspection method.
  • the old application program in the backup area can be cleared to save storage space, and then the flag bit is set to 1. In the initial state, after the ECU receives the upgrade command, it will set the flag position of the charging stand to 0.
  • the flag bit is 0, which means that there is an upgrade command at this time, but the upgrade has not been performed, and the upgrade of the charging stand is required.
  • the flag is 1 indicates that the upgrade is successful at this time, which serves as a marker for the upgrade status and can be used as a basis for other subsequent applications.
  • the new application program in the upgrade package if the new application program in the upgrade package is valid, write the new application program in the upgrade package into the upgrade storage area of the charging stand, and load the new application program after the vehicle control unit restarts.
  • the addresses are stored and the old application before the vehicle control unit is restarted is used as a backup.
  • writing the new application program in the upgrade package into the memory activation area of the charging stand for upgrading includes:
  • the vehicle control unit ECU may receive the upgrade start instruction and the upgrade end instruction sent by the service unit, and perform the process of writing the new application into the activation area of the charging stand memory according to the corresponding instructions.
  • Fig. 2 in the embodiment of the present invention, also includes:
  • S012 Determine whether the charging stand is to be upgraded according to the hardware information and the software information
  • steps S011 to S013 may be executed in parallel with step S001 or one after the other, and the order of execution is not limited.
  • Hardware information can be checked through the temperature monitoring module, voltage monitoring module, socket lock monitoring module and charging indicator monitoring module.
  • Software information can check whether the application program running inside the charging stand is error-free and complete. Only hardware information and software information are checked. Only then can the upgrade be performed.
  • the judging whether the upgrade is successful includes:
  • S021 Receive an initial check code and a termination check code corresponding to the new application program in the upgrade package
  • S022 Calculate the initial check code corresponding to the new application program in the upgrade package, and determine the standard check code corresponding to the new application program in the upgrade package;
  • the new application program in the upgrade package carries an initial check code.
  • the initial check code will be affected by factors such as program reading. After that, the initial check code changes to form the termination check code.
  • the ECU will receive the initial check code and the termination check code, and then calculate the initial check code according to the SHA256 algorithm to obtain the standard check code. If there is no problem in the writing process of the new application, no abnormality occurs, and the upgrade is successful , the termination check code should be consistent with the standard check code. If not, it means that there is a problem in the writing process of the new application program, that is, the upgrade is unsuccessful.
  • the charging stand before upgrading, will wake up after receiving the power-on or wake-up operation of the vehicle control unit ECU, and enter the programming diagnosis session after waking up. After checking that the new application program in the upgrade package is valid and the hardware information and software information of the charging stand are normal, back up the old application program in the storage activation area of the charging stand to the storage backup area of the charging stand, and activate the storage of the charging stand Old applications in the zone are cleared. Before the new application program is written, the charging stand will send a command to request writing to the vehicle control unit ECU, and the ECU will send the corresponding request command to the service unit after receiving the command.
  • the new application program in the upgrade package is written into the activation area of the charging stand memory for upgrading; after the upgrade is completed, the charging stand will send an exit command to the ECU, and the ECU will send a corresponding request command to the service unit after receiving the command. Return the upgrade end command to the ECU, and the ECU stops writing the new application program in the upgrade package into the activation area of the charging stand memory.
  • the ECU will receive the initial check code and the end check code, and then calculate the initial check code according to the SHA256 algorithm to obtain the standard check code. After judging that the standard check code is consistent with the end check code, it is confirmed that the upgrade is successful, and all The flag position of the above-mentioned charging stand is set to indicate that the upgrade is successful.
  • S101 Receive an upgrade instruction, and judge whether the upgrade time of the charging stand can be selected according to the initial state data and recent state data of the charging stand;
  • the ECU judges whether the upgrade time of the charging stand can be selected according to the initial state data and recent state data. If the upgrade time of the charging stand can be selected, the upgrade time can be selected by the car owner or directly in a given time at random.
  • the given time can be a number of times preset in advance, such as 1 hour later, 2 hours later, etc. Generally, Say, a given time is within 12 or 24 hours.
  • the default time is determined as the upgrade time, where the default time can be a preset time in advance, such as 30 seconds later, generally speaking, the default time is a time with a short interval, so as to upgrade in time renew.
  • the upgrade time can be selected according to the needs of the car owner and the state of the vehicle, and the charging stand can be upgraded at an appropriate upgrade time. This process can not only ensure the safety of charging, but also meet the actual needs.
  • step S101 the ECU will obtain the hardware version and software version of the charging stand, and obtain the version information in the upgrade package sent by the service unit, and compare the hardware version and software version of the charging stand pair with the upgrade package If the current version type is consistent with the version type in the upgrade package after comparison, and the current version level is lower than the version level in the upgrade package, step S104 can be performed. In order to ensure the correct and appropriate upgrade of the charging stand, and improve the quality and effect of the upgrade.
  • step S101 judging whether the charging stand can be selected before the upgrade time of the charging stand according to the initial state data and recent state data of the charging stand; also includes:
  • S201 Receive the verification data used by the service unit for upgrading the charging stand, send the verification data to the charging stand, and receive the encrypted data returned by the charging stand;
  • S202 Send the encrypted data to the service unit, when the service unit determines that the decrypted encrypted data is the same as the verification data;
  • S203 According to the initial state data and recent state data of the charging stand, it is judged whether the upgrade time of the charging stand can be selected.
  • encryption verification is performed through the ECU: After the ECU receives the verification data sent by the service unit, it sends the verification data to the charging stand, and the charging stand will encrypt the encrypted data, and then the charging stand will transmit the encrypted data to the ECU, and the ECU After receiving, the encrypted data will be sent to the service unit, and the service unit will decrypt the encrypted data and compare it with the verification data. If they are the same, the verification will pass, and the subsequent step S101 can be performed only after the verification is passed.
  • the charging stand and the service unit share an encryption system, so the encryption of the charging stand and the decryption of the service unit are a corresponding process, which can verify whether the charging stand is the corresponding charging stand for the service unit , to ensure the safety of the charging stand upgrade.
  • the judging whether the upgrade time of the charging stand can be selected according to the initial state data and recent state data of the charging stand includes:
  • S1012 Determine whether the recent state data of the charging stand is within the standard state range
  • the status data can include temperature status data, voltage status data, charging indicator status data and socket lock status data, and the selection time of the initial status data of the charging stand can be set in advance, corresponding to the time when the electric vehicle just left the factory segment, the initial state data is the state of the above state data when the electric vehicle just leaves the factory. Since the various performances of electric vehicles are in the optimal state when they leave the factory, the state data corresponding to this time period is selected as the initial state data, which can be used as a benchmark for various state performances in the later period, and thus the standard state interval can be determined.
  • the recent state data can be the state data corresponding to the week before receiving the upgrade instruction, the first three days, etc., because the recent state data in the most recent time period can reflect the The most recent status of the charging dock.
  • you can choose the charging stand upgrade time that is, the recent state of the charging stand is similar to the state when it just left the factory, indicating that the state of the charging stand is still good, and this can be used as an upgrade time for the charging stand standard.
  • the standard state interval is determined, including:
  • S1011a Eliminate abnormal data in the initial state data of the charging stand
  • S1011b Determine the standard value and error value of the initial state data
  • S1011c Determine the standard state interval according to the standard value and the error value.
  • the initial state data obtained by the charging stand may have some abnormal data due to human factors or natural factors. etc. However, since these abnormal data are not caused by the problems of the charging stand itself, these abnormal data are not representative and need to be eliminated.
  • the isolated forest model can be used to eliminate abnormal data.
  • the standard value and error value of the initial state data can be determined. Specifically, since the initial state data obeys the normal distribution, the initial state data conforms to the normal distribution curve, and the initial state can be determined through the normal distribution curve
  • the expected value ⁇ and variance ⁇ of the data, and then the expected value can be determined as the standard value of the initial state data according to actual needs, and one variance, two variances or three variances can be determined as the error value of the initial state data.
  • one-time variance, two-time variance or three-time variance is used as the error value of the initial state data, the size of the determined standard state interval will be different.
  • the standard state interval determined by one-time variance as the error value is less than twice The variance is used as the standard state interval determined by the error value, and the standard state interval determined by the double variance as the error value is smaller than the standard state interval determined by the triple variance as the error value.
  • the range of the standard state interval can be selected according to actual needs. If the requirements for accuracy are higher and the requirements for inclusiveness are lower, You can choose one-time variance as the error value. If you do not have high requirements for accuracy but higher tolerance, you can choose three-times variance as the error value. In order to meet different precision and inclusive requirements.
  • the standard state interval can be determined in the above-mentioned way.
  • state data such as charging indicator light and socket lock
  • the status information of the charging indicator light can be 0, 0 means the charging indicator light is off or flashing, the standard value is 1, 1 means the charging indicator light is on, and the error value is set to 0 , that is, no error is allowed, and the standard state interval is determined by the standard value and error value.
  • the determining the standard state interval according to the standard value and the error value includes:
  • the difference between the standard value and the error value is determined as the left endpoint value of the standard state interval, and the sum of the standard value and the error value is determined as the right endpoint value of the standard state interval.
  • the standard state interval is determined by the following formula:
  • M is the standard state interval
  • A is the standard value
  • B is the error value
  • the standard state interval can be determined as [ ⁇ - ⁇ , ⁇ + ⁇ ]; if 2 ⁇ (double variance) is used as the error value of the initial state data value, the standard state interval can be determined as [ ⁇ -2 ⁇ , ⁇ +2 ⁇ ]; if 3 ⁇ (triple variance) is used as the error value of the initial state data, the standard state interval can be determined as [ ⁇ -3 ⁇ , ⁇ +3 ⁇ ].
  • the standard state interval can be determined by the above method for state data such as temperature and voltage, and the standard state interval for state data such as charging indicator light and socket lock can be determined as [1, 1], where 1 means that the charging indicator light is on , or the socket lock is locked.
  • the judging whether the upgrade time of the charging stand can be selected according to the initial state data and recent state data of the charging stand includes:
  • S1014 Compare the recent state data with the initial state data, and determine whether the recent state data is consistent with the initial state data
  • the state data corresponding to the charging stand at any time point is selected as the initial state data.
  • the state data is representative.
  • the consistency may not be exactly the same, and they are all considered consistent within the allowable error range.
  • the temperature error range is set at ⁇ 0.1°C, and the temperature in the initial state data is 10°C, and it is determined to be consistent within 9.9-10.1°C.
  • the consistency may be exactly the same, and there is no allowable error range.
  • it also includes: when the upgrade fails, restoring the old application program in the storage backup area of the charging stand to the activation area of the storage in the charging stand.
  • the upgrade time of the charging stand can be selected to improve the interactivity and usability of the system. If not, the default time needs to be determined as the upgrade time to improve the security of the system and ensure that the charging stand can complete the charging task with high performance and high quality.
  • the charging stand 1 includes a central control module 2, and The monitoring module 3 electrically connected to the module 2;
  • the monitoring module 3 is used to collect the status information of the charging stand 1 and transmit the status information to the central control module 2;
  • the central control module 2 is electrically connected to the vehicle control unit 4, and the central control module 2 is used to transmit the state information to the vehicle control unit 4, and upgrade at the time of upgrading under the control of the vehicle control unit 4 .
  • the monitoring module 3 may include a temperature monitoring module, a voltage monitoring module, a socket lock monitoring module and a charging indicator light monitoring module.
  • the temperature monitoring module is mainly to monitor the temperature of terminals, wires, etc. during the charging process;
  • the voltage monitoring module is mainly to monitor the charging voltage during the charging process;
  • the monitoring module is used to monitor whether the socket lock is locked; during the charging process, the charging indicator is used to indicate whether it is charging, and the charging indicator monitoring module monitors the charging state.
  • an embodiment of the present invention also provides a device for upgrading a charging stand.
  • the device may include a system (including a distributed system), software (application), module, component, server, client, etc. using the method described in the embodiment of the present invention combined with necessary implementation hardware.
  • the present invention provides devices as described in one or more embodiments below. Since the implementation of the device to solve the problem is similar to the method, the implementation of the specific device in the embodiment of the present invention can refer to the implementation of the aforementioned method, and the repetition will not be repeated.
  • the term "unit” or "module” may be a combination of software and/or hardware that realizes a predetermined function.
  • FIG. 10 is a schematic diagram of a module structure of an embodiment of a device for upgrading a charging stand provided by an embodiment of the present invention.
  • a device for upgrading a charging stand provided by an embodiment of the present invention includes: a receiving module 100 , an upgrade module 200, and a judging module 300.
  • a device for upgrading a charging stand is applied to a vehicle control unit; the device includes:
  • Receiving module 100 receive the new application program in the upgrade package, and check whether the new application program in the upgrade package is valid;
  • Upgrade module 200 if valid, write the new application program in the upgrade package into the memory activation area of the charging stand for upgrade;
  • Judging module 300 judging whether the upgrade is successful, and when the upgrade is successful, setting the flag position of the charging stand to mark the upgrade is successful.
  • it also includes a backup module: if the upgrade is performed, before the new application program in the upgrade package is written into the memory activation area of the charging stand, back up the old application program in the memory activation area of the charging stand to The storage backup area of the charging stand, and clear the old application program in the activation area of the storage base of the charging stand, so as to receive the new application program in the upgrade package.
  • it also includes an upgrade module: if the new application program in the upgrade package is valid, write the new application program in the upgrade package into the upgrade storage area of the charging stand, and load the new application program after the vehicle control unit is restarted The storage address of the program, and the old application program before the vehicle control unit is restarted as a backup.
  • the upgrade module 100 includes:
  • Receive upgrade command module receive start upgrade command
  • Direct upgrade module write the new application program in the upgrade package into the activation area of the memory of the charging stand for upgrade according to the instruction to start the upgrade.
  • Computer device 1102 may include one or more processors 1104, such as one or more central processing units (CPUs) or graphics processing units (GPUs), each of which may implement one or more hardware threads.
  • the computer device 1102 may also include any memory 1106 for storing any kind of information such as codes, settings, data, etc.
  • the memory 1106 may include any one or combination of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, and so on. More generally, any memory can use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent a fixed or removable component of computer device 1102 . In one instance, when processor 1104 executes the associated instructions stored in any memory or combination of memories, computing device 1102 may perform any operation of the associated instructions.
  • the computer device 1102 also includes one or more drive mechanisms 1108 for interfacing with any memory, such as a hard disk drive, an optical disk drive, or the like.
  • Computer device 1102 may also include an input/output module 1110 (I/O) for receiving various inputs (via input devices 1112) and for providing various outputs (via output devices 1114).
  • I/O input/output module
  • One particular output mechanism may include a presentation device 1116 and an associated graphical user interface 1118 .
  • the input/output module 1110, the input device 1112 and the output device 1114 may not be included, and it may only be used as a computer device in the network.
  • Computer device 1102 may also 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 together the components described above.
  • Communication link 1122 may be implemented in any manner, for example, via a local area network, a wide area network (eg, the Internet), a point-to-point connection, and/or any combination thereof.
  • Communication link 1122 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.
  • an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned method is executed. step.
  • An embodiment of the present invention also provides a computer-readable instruction, wherein when the processor executes the instruction, the program therein causes the processor to execute the methods shown in FIGS. 1 to 8 .
  • sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, rather than by the embodiment of the present invention.
  • the implementation process constitutes any limitation.
  • the term "and/or" is only an association relationship describing associated objects, indicating that there may be three relationships.
  • a and/or B may mean that A exists alone, A and B exist simultaneously, and B exists alone.
  • the character "/" in the present invention generally indicates that the contextual objects are an "or" relationship.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of software products, and the computer software products are stored in a storage medium
  • several instructions are included to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

一种充电座和充电座升级的方法、装置、设备、存储介质,其中方法包括:接收升级包中的新应用程序,并检查所述升级包中的新应用程序是否有效(S001);若有效,则将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级(S002);判断是否升级成功,当升级成功时,将所述充电座的标志位置位,以标记升级成功(S003)。可以通过上述方法对充电座进行升级,提高升级过程的适用性。

Description

充电座和充电座升级的方法、装置、设备、存储介质
本申请要求2021年08月26日递交的申请号为202110985980.5、发明名称为“充电座和充电座升级的方法、装置、设备、存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及充电座领域,特别地,涉及一种充电座和充电座升级的方法、装置、设备、存储介质。
背景技术
随着新能源产业的迅速发展,电动汽车的数量逐步增加,而对充电设备的安全性、可靠性和及时性需求也不断提高。车辆控制单元(ECU)相当于汽车的大脑,ECU能够与汽车上的电子元件连接,车辆统一诊断服务(UDS)是实现车辆电子故障诊断服务制定的统一国际标准,ECU和电子元件之间需要在UDS的规定下进行通信。
充电座是安装在电动汽车上用于与充电接口连接的装置,充电座本身可能因温度过高或过低、振动、撞击等情况发生损坏,而现有的电动汽车中充电座除了具有与充电接口连接进行充电的作用,还可以对充电座的部分状态情况进行监测。
但现有技术中只能够监测充电座的状态情况,不存在对充电座进行升级的方法,现有技术中虽然存在对电动汽车的其他电子元件的升级方法,但是在升级时无法根据电子元件的使用情况或状态情况进行升级,这就导致升级的过程无法根据电子元件的实际情况进行相应的变化,适用性不强。因此现在亟需一种充电座升级的方法,来对充电座进行升级,提高升级过程的适用性。
发明内容
本发明实施例的目的在于提供一种充电座和充电座升级的方法、装置、设备、存储介质,以对充电座进行升级,提高升级过程的适用性。
为达到上述目的,一方面,本发明实施例提供了一种充电座升级的方法,应用于车辆控制单元,包括:
接收升级包中的新应用程序,并检查所述升级包中的新应用程序是否有效;
若有效,则将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级;
判断是否升级成功,当升级成功时,将所述充电座的标志位置位,以标记升级成功。
另一方面,本发明实施例提供了一种充电座,包括中控模块,以及与中控模块电连接的监测模块;
所述监测模块用于采集所述充电座的状态信息并将所述状态信息传递给所述中控模块;
所述中控模块与车辆控制单元电连接,所述中控模块用于将所述状态信息传递给所述车辆控制单元,并在车辆控制单元的控制下在升级时间进行升级。
又一方面,本发明实施例提供了一种充电座升级的装置,应用于车辆控制单元;所述装置包括:
接收模块:接收升级包中的新应用程序,并检查所述升级包中的新应用程序是否有效;
升级模块:若有效,则将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级;
判断模块:判断是否升级成功,当升级成功时,将所述充电座的标志位置位,以标记升级成功。
又一方面,本发明实施例还提供了一种计算机设备,包括存储器、处理器、以及存储在所述存储器上的计算机程序,所述计算机程序被所述处理器运行时,执行上述任意一项所述方法的指令。
又一方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被计算机设备的处理器运行时,执行上述任意一项所述方法的指令。
由以上本发明实施例提供的技术方案可见,本发明实施例通过检查升级包中的新应用程序有效的前提下先行进行旧应用程序的备份过程,再进行新应用程序的升级,提高了充电座升级过程的适用性和升级效率。
为让本发明的上述和其他目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附图式,作详细说明如下。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本发明实施例提供的一种充电座升级的方法的流程示意图;
图2示出了本发明实施例提供的一种充电座升级的方法的第二流程示意图;
图3示出了本发明实施例提供的用于判断是否升级成功的流程示意图;
图4示出了本发明实施例提供的一种充电座升级的方法的第三流程示意图;
图5示出了本发明实施例提供的一种充电座升级的方法的第四流程示意图;
图6示出了本发明实施例提供的判断是否可选择充电座升级时间的流程示意图;
图7示出了本发明实施例提供的确定标准状态区间的流程示意图;
图8示出了本发明实施例提供的判断是否可选择充电座升级时间的流程示意图;
图9示出了本发明实施例提供的一种充电座的模块结构示意图;
图10示出了本发明实施例提供的一种充电座升级的装置的模块结构示意图;
图11示出了本发明实施例提供的计算机设备的结构示意图。
附图符号说明:
1、充电座;
2、中控模块;
3、监测模块;
4、车辆控制单元;
100、接收模块;
200、升级模块;
300、判断模块;
1102、计算机设备;
1104、处理器;
1106、存储器;
1108、驱动机构;
1110、输入/输出模块;
1112、输入设备;
1114、输出设备;
1116、呈现设备;
1118、图形用户接口;
1120、网络接口;
1122、通信链路;
1124、通信总线。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
随着新能源产业的迅速发展,电动汽车的数量逐步增加,而对充电设备的安全性、可靠性和及时性需求也不断提高。车辆控制单元(ECU)相当于汽车的大脑,ECU能够与汽车上的电子元件连接,车辆统一诊断服务(UDS)是实现车辆电子故障诊断服务制定的统一国际标准,ECU和电子元件之间需要在UDS的规定下进行通信。
充电座是安装在电动汽车上用于与充电接口连接的装置,充电座本身可能因温度过高或过低、振动、撞击等情况发生损坏,而现有的电动汽车中充电座除了具有与充电接口连接进行充电的作用,还可以对充电座的部分状态情况进行监测。
但现有技术中只能够监测充电座的状态情况,不存在对充电座进行升级的方法,但在实际工作和生活中,还要在需要的时候通过电动汽车厂商后台的服务单元对充电座进行升级,以便及时解决充电座内部在充电、监测等过程中可能产生的漏洞。因此现在亟需一种充电座升级的方法,来对充电座进行升级。
为了解决上述问题,本发明实施例提供了一种充电座升级的方法,能够对充电座进行升级。图1是本发明实施例提供的一种充电座升级的方法的步骤示意图,本说明书提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的劳动可以包括 更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的***或装置产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行。
充电座安装在电动汽车上,在向电动汽车充电时,充电桩通过充电线与充电接头连接,充电接头***充电座中对电动汽车进行充电。在充电座中设置有能够对充电座的状态信息进行监测的监测模块和与监测模块电连接的中控模块,监测模块可以包括温度监测模块、电压监测模块、插座锁监测模块和充电指示灯监测模块。
其中,中控模块与电动汽车的车辆控制单元(ECU)电连接。温度监测模块主要是对充电过程中端子、电线等的温度进行监测;电压监测模块主要是对充电过程中的充电电压进行监测;充电过程中充电接口在充电座中通过插座锁锁紧,插座锁监测模块是对插座锁是否锁紧进行监测;充电过程中充电指示灯用于指示是否正在充电,充电指示灯监测模块对充电状态进行监测。中控模块可以为单片机,中控模块中可以有存储器和处理器,存储器可以将监测模块监测到的状态信息存储,处理器可以将状态信息发送给ECU。
为了保证电动汽车能够正常使用,电动汽车厂商在需要定期对充电座进行升级,升级时可以通过厂商后台的服务单元发送升级包,升级的内容可以包括提高温度监测模块对温度进行监测的精准度,调节充电指示灯的亮度和颜色等等。其中服务单元可以为服务器。
当服务单元发送升级包时,服务单元将升级包发送给ECU,ECU通过判断是否可选择充电座升级时间进一步确定升级时间,在升级时间对充电座进行升级,在进行升级前,需要通过验证数据验证充电座是否正常,验证成功后进行升级。升级时会先将旧应用程序备份至存储器的备份区中,如果升级不成功,则将存储器备份区中的旧应用程序重新恢复。通过这种方法能够进行充电座的升级,提高升级过程的适用性,同时保证升级过程中的安全性。
参照图1,一种充电座升级的方法,应用于车辆控制单元;包括:
S001:接收升级包中的新应用程序,并检查所述升级包中的新应用程序是否有效;
S002:若有效,则将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级;
S003:判断是否升级成功,当升级成功时,将所述充电座的标志位置位,以标记升级成功。
进一步的,若所述升级包中的新应用程序有效,则可以进行升级,若进行升级,在所述升级包中的新应用程序写入所述充电座存储器激活区中之前,将所述充电座存储器激活区中的旧应用程序备份至充电座存储器备份区中,并将所述充电座存储器激活区中的旧应用程序清除,以接收所述升级包中的新应用程序。
具体的,检查所述升级包中的新应用程序是否有效可以通过ECU进行检查,检查的方法可以是通过相应的检查算法对新应用程序进行检查,确定新应用程序不存在程序缺陷等漏洞,当然也可以是其他检查的方法,本文对检查方法不做限定。为了防止充电座的应用程序升级失败后,导致整个充电座中没有可以运行的应用程序,可以将旧应用程序先在备份区备份一下,然后再将激活区中的旧应用程序清除。当升级成功时,可以将备份区中的旧应用程序清除,以达到节省存储空间的目的,然后,将标志位置位为1。在初始状态时,ECU接收到升级指令后,就会将充电座的标志位置位为0,标志位为0表示此时有升级指令,但未进行升级,需要进行充电座的升级,标志位为1表示此时升级成功,起到标记升级状态的作用,可以作为后续其他应用的依据。
在本文另一实施例中,若所述升级包中的新应用程序有效,则将所述升级包中的新应用程序写入充电座升级存储区中,车辆控制单元重启后加载新应用程序的存储地址,并将车辆控制单元重启前的旧应用程序作为备份。
其中,所述将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级,包括:
接收开始升级指令;
根据所述开始升级指令的指示,将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级;
接收升级结束指令;
根据所述升级结束指令的指示,停止将所述升级包中的新应用程序写入所述充电座存储器激活区中。
车辆控制单元ECU可以接收到服务单元发送的开始升级指令和升级结束指令,根据对应的指示进行新应用写入充电座存储器激活区的过程。
参照图2,在本发明实施例中,还包括:
S011:读取充电座的硬件信息和软件信息;
S012:根据所述硬件信息和所述软件信息,确定所述充电座是否进行升级;
S013:若进行升级,则将所述充电座存储器激活区中的旧应用程序备份至充电座存储器备份区中,并将所述充电座存储器激活区中的旧应用程序清除。
具体的,上述步骤S011至S013可以与步骤S001并行或一先一后执行,对其执行的顺序不做限定。硬件信息可以通过温度监测模块、电压监测模块、插座锁监测模块和充电指示灯监测模块进行检查,软件信息可以检查充电座内部运行的应用程序是否无差错且完整,只有硬件信息和软件信息检查通过后才可以进行升级。
参照图3,进一步的,在本发明实施例中,所述判断是否升级成功,包括:
S021:接收所述升级包中的新应用程序对应的初始校验码和终止校验码;
S022:对所述升级包中的新应用程序对应的初始校验码进行计算,确定所述升级包中新应用程序对应的标准校验码;
S023:判断所述终止校验码与所标准述校验码是否一致;
S024:若一致,则升级成功。
具体的,升级包中的新应用程序携带有初始校验码,随着新应用程序写入充电座存储器激活区,初始校验码会受程序的读入等因素影响,在新应用程序写完后,初始校验码发生改变,形成终止校验码。而ECU会接收初始校验码和终止校验码,然后依据SHA256算法对初始校验码进行计算,得到标准校验码,如果新应用程序的写入过程不存在问题、未发生异常、升级成功,则终止校验码与标准校验码应当保持一致,如果不一致,说明新应用程序写入过程存在问题,即升级不成功。
在本发明的实施例中,进行升级之前,充电座会接收车辆控制单元ECU的上电或唤醒的操作后被唤醒,唤醒后进入编程诊断会话。在检查升级包中的新应用程序有效且充电座的硬件信息和软件信息正常的情况下,将充电座存储器激活区中的旧应用程序备份至充电座存储器备份区中,并将充电座存储器激活区中的旧应用程序清除。在新应用程序写入之前,充电座会向车辆控制单元ECU发送请求写入的命令,ECU接收到命令后向服务单元发送相应请求指令,此时服务单元回传开始升级指令给ECU,ECU将升级包中的新应用程序写入充电座存储器激活区中进行升级;升级完毕后,充电座会向ECU发送请求退出的命令,ECU接收到命令后向服务单元发送相应请求指令,此时服务单元回传升级结束指令给ECU,ECU停止将升级包中的新应用程序写入充电座存储器激活区中。ECU会接收初始校验码和终止校验码,然后依据SHA256算法对初始校验码进行计算,得到标准校验码,判断标准校验码与终止校验码一致后,确认升级成功,将所述充电座的标志位置位,以标记升级成功。
参照图4,在接收升级包中的新应用程序之前,还包括:
S101:接收升级指令,根据充电座的初始状态数据和近期状态数据判断是否可选择充电座升级时间;
S102:如果可选择充电座升级时间,则从给定时间中选取升级时间;
S103:如果不可选择充电座升级时间,则将默认时间确定为升级时间;
S104:在所述升级时间通过服务单元传输的升级包对充电座进行升级。
当车辆控制单元ECU接收到服务单元发送的升级指令时,由于车辆此时可能处于正在行驶状态或者车主急需用车,此时ECU根据初始状态数据和近期状态数据判断是否可选择充电座升级时间。如果可选择充电座升级时间,则可以由车主或者直接随机在给定时间中选取升级时间,其中给定时间可以为提前预设的若干时间,比如1小时后,2小时后等等,一般来说,给定时间在12或24小时内。如果不可选择充电座升级时间,则将默认时间确定为升级时间,其中默认时间可以为提前预设的时间,比如30秒后,一般来说,默认时间为间隔较短的时间,以便及时进行升级更新。通过这种方法,可以根据车主需要和车辆的状态来进行升级时间的选择,在合适的升级时间进行充电座升级,这一过程既可以保证充电的安全,及时有效进行升级,又符合实际需求。
在本发明实施例中,步骤S101之前,ECU会获取充电座的硬件版本和软件版本,并获取服务单元发送的升级包中的版本信息,将充电座对的硬件版本和软件版本与升级包中的版本信息进行比较,如果现有版本类型与升级包中的版本类型经比较后一致,且现有版本等级低于升级包中的版本等级,则可以进行步骤S104。以保证充电座进行正确、合适的升级,提高升级的质量和效果。
参照图5,在本发明实施例中,步骤S101:所述根据充电座的初始状态数据和近期状态数据判断是否可选择充电座升级时间之前;还包括:
S201:接收服务单元用于充电座升级的验证数据,将所述验证数据发送给充电座,并接收充电座回传的加密数据;
S202:将所述加密数据发送给所述服务单元,当服务单元确定所述加密数据解密后与所述验证数据相同时;
S203:根据充电座的初始状态数据和近期状态数据判断是否可选择充电座升级时间。
具体的,通过ECU进行加密验证:ECU接收到服务单元发送的验证数据后,将验证数据发送给充电座,充电座会进行加密,得到加密数据,然后充电座会将加密数据传 送给ECU,ECU在接收后会将加密数据发送给服务单元,服务单元将加密数据解密后与验证数据进行比较,如果相同则验证通过,验证通过才可以进行后续步骤S101。这一加密验证过程中,充电座和服务单元共用一套加密***,因此充电座的加密和服务单元的解密是一个对应的过程,这一过程可以验证充电座是否为与服务单元对应的充电座,以保证充电座升级的安全性。
参照图6,在本发明实施例中,所述根据充电座的初始状态数据和近期状态数据判断是否可选择充电座升级时间,包括:
S1011:根据所述充电座的初始状态数据,确定标准状态区间;
S1012:判断充电座的近期状态数据是否在所述标准状态区间内;
S1013:如果所述近期状态数据在所述标准状态区间内,则可选择充电座升级时间。
其中,状态数据可以包括温度状态数据、电压状态数据、充电指示灯状态数据和插座锁状态数据,充电座的初始状态数据的选取时间可以为提前设定好的,电动汽车刚出厂时对应的时间段,初始状态数据为上述状态数据在电动汽车刚出厂时的状态。由于电动汽车刚出厂时各种性能处于最优状态,因此以这个时间段对应的状态数据选作初始状态数据,可以作为后期各种状态性能的基准,由此可以确定标准状态区间。
然后进一步判断充电座近期状态数据是否在标准状态区间内,近期状态数据可以为接收到升级指令前一周、前三天等对应的状态数据,因为这种最近时间段的近期状态数据才能够反应出充电座的最近状态。最后如果近期状态数据在标准状态区间内,则可以选择充电座升级时间,即充电座的近期状态与刚出厂时状态相近,表明充电座的状态仍旧不错,以此作为是否可选择充电座升级时间的标准。
参照图7,在本发明实施例中,步骤S1011中所述根据所述充电座的初始状态数据,确定标准状态区间,包括:
S1011a:将所述充电座的所述初始状态数据中的异常数据剔除;
S1011b:确定所述初始状态数据的标准值和误差值;
S1011c:根据所述标准值和误差值确定所述标准状态区间。
具体的,电动汽车刚出厂时,无法避免充电座因为人为因素或自然因素导致获取到的初始状态数据中有些许异常数据,这些异常数据可能表现为温度突增或突降,充电指示灯短暂熄灭等等。但是由于这些许异常数据并不是因为充电座自身出现问题而产生 的,因此这些异常数据不具备代表性,需要将其剔除,可以使用孤立森林模型对异常数据进行剔除。
在将异常数据剔除后,可以确定初始状态数据的标准值和误差值,具体的,由于初始状态数据服从正态分布,将初始状态数据符合正态分布曲线,通过正态分布曲线可以确定初始状态数据的期望值μ和方差σ,进而可以根据实际需求将期望值确定为初始状态数据的标准值,将一倍方差、二倍方差或三倍方差确定为初始状态数据的误差值。其中一倍方差、二倍方差或三倍方差作为初始状态数据的误差值时,会导致确定的标准状态区间的大小不同,原则上,一倍方差作为误差值所确定的标准状态区间小于二倍方差作为误差值所确定的标准状态区间,二倍方差作为误差值所确定的标准状态区间小于三倍方差作为误差值所确定的标准状态区间。
标准状态区间的范围越大,近期状态数据在标准状态区间内的概率就越高,因此标准状态区间的范围可以根据实际需求来进行选择,如果对精准度要求更高,包容性要求较低,就可以选择一倍方差作为误差值,如果对精准度要求不高,对包容性要求更高,就可以选择三倍方差作为误差值。以此来满足不同的精准度和包容性要求。
需要注意的是,对于温度、电压等状态数据存在不同时间点温度或电压高低不同,服从正态分布,可以用上述方式确定标准状态区间。但是对于充电指示灯、插座锁等状态数据,在不同时间点只可能存在亮或灭,锁紧或未锁紧这两种状态,无法用上述方式确定标准状态区间。对于这类状态信息,以充电指示灯的状态信息为例,异常数据可以为0,0表示充电指示灯不亮或闪烁,标准值为1,1表示充电指示灯亮起,误差值设定为0,即不允许存在误差,通过标准值和误差值确定标准状态区间。
进一步的,所述根据所述标准值和误差值确定所述标准状态区间,包括:
将所述标准值与所述误差值之差确定为所述标准状态区间的左端点值,将所述标准值与所述误差值之和确定为所述标准状态区间的右端点值。
具体的,所述标准状态区间通过如下公式确定:
M∈[A-B,A+B];
其中,M为标准状态区间,A为标准值,B为误差值。
具体的,如果将σ(一倍方差)作为初始状态数据的误差值,则标准状态区间可以确定为[μ-σ,μ+σ];如果将2σ(二倍方差)作为初始状态数据的误差值,则标准状态区间可以确定为[μ-2σ,μ+2σ];如果将3σ(三倍方差)作为初始状态数据的误差值,则标准状态区间可以确定为[μ-3σ,μ+3σ]。
需要注意的是,对于温度、电压等状态数据可以通过上述方法确定标准状态区间,对于充电指示灯、插座锁等状态数据可以确定标准状态区间为[1,1],其中1代表充电指示灯亮起,或插座锁锁紧。
参照图8,此外,在本发明实施例中,所述根据充电座的初始状态数据和近期状态数据判断是否可选择充电座升级时间,包括:
S1014:比较所述近期状态数据与所述初始状态数据,判断所述近期状态数据与所述初始状态数据是否一致;
S1015:如果所述近期状态数据与所述初始状态数据一致,则可选择充电座升级时间。
其中,在电动汽车出厂后的一段时间内,选取其中任意时间点充电座对应的状态数据作为初始状态数据,在选取该时间点时,需要确保该时间点充电座的状态良好,没有异常情况发生,这时的状态数据才具备代表性。
进一步的,判断近期状态数据与初始状态数据是否一致,对于温度状态数据和电压状态数据来说,此处的一致可能并非完全相同,在允许的误差范围内,都算作一致,例如,可以将温度误差范围设置在±0.1℃,初始状态数据中的温度为10摄氏度,则在9.9-10.1℃内均确定为一致。但是对于充电指示灯状态数据和插座锁状态数据来说,此处的一致可能为完全相同,不存在允许的误差范围,只有充电指示灯状态数据与初始充电指示灯状态数据一致,均为1(充电指示灯亮起),或插座锁状态数据与初始插座锁状态数据一致,均为1(插座锁锁紧)才能确定为两者一致。
进一步的,还包括:当升级失败时,将所述充电座存储器备份区中的旧应用程序重新恢复至所述充电座存储器激活区中。
如果升级失败,标志位为0,将备份区中的旧应用重新恢复至激活区中,此时标志位仍旧为0,标志位为0,表示此时有升级指令,但未进行升级(升级未成功),需要进行充电座的升级。
通过上述一系列步骤,可以通过充电座的近期状态数据与初始状态数据进行比较,判断充电座是否可选择充电座的升级时间,如果近期状态数据在由初始状态数据确定的标准状态区间内,或者近期状态数据与初始状态数据一致,则可以选择充电座的升级时间,以提高***的交互性和可用性。如若不然,则需要将默认时间确定为升级时间,以提高***的安全性,保证充电座能够高性能高质量的完成充电任务。在升级时间到来时,可以先进行备份,再进行升级,目的是防止充电座升级不成功的情况发生,即使升 级不成功,可以续用之间的旧应用程序,避免因升级不成功造成无限等待后续维修升级的过程,提高了充电座的升级效率。
参照图9,基于上述所述的一种充电座升级的方法,需要设计一种充电座使得充电座升级的方法基于充电座来进行升级,其中充电座1包括中控模块2,以及与中控模块2电连接的监测模块3;
所述监测模块3用于采集所述充电座1的状态信息并将所述状态信息传递给所述中控模块2;
所述中控模块2与车辆控制单元4电连接,所述中控模块2用于将所述状态信息传递给所述车辆控制单元4,并在车辆控制单元4的控制下在升级时间进行升级。
具体的,监测模块3可以包括温度监测模块、电压监测模块、插座锁监测模块和充电指示灯监测模块。温度监测模块主要是对充电过程中端子、电线等的温度进行监测;电压监测模块主要是对充电过程中的充电电压进行监测;充电过程中充电接口在充电座中通过插座锁锁紧,插座锁监测模块是对插座锁是否锁紧进行监测;充电过程中充电指示灯用于指示是否正在充电,充电指示灯监测模块对充电状态进行监测。
基于上述所述的一种充电座升级的方法,本发明实施例还提供一种充电座升级的装置。所述的装置可以包括使用了本发明实施例所述方法的***(包括分布式***)、软件(应用)、模块、组件、服务器、客户端等并结合必要的实施硬件的装置。基于同一创新构思,本发明提供装置如下面的一个或多个实施例所述。由于装置解决问题的实现方案与方法相似,因此本发明实施例具体的装置的实施可以参见前述方法的实施,重复之处不再赘述。以下所使用的,术语“单元”或者“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
具体地,图10是本发明实施例提供的一种充电座升级的装置的一个实施例的模块结构示意图,参照图10,本发明实施例提供的一种充电座升级的装置包括:接收模块100、升级模块200、判断模块300。
一种充电座升级的装置,应用于车辆控制单元;所述装置包括:
接收模块100:接收升级包中的新应用程序,并检查所述升级包中的新应用程序是否有效;
升级模块200:若有效,则将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级;
判断模块300:判断是否升级成功,当升级成功时,将所述充电座的标志位置位,以标记升级成功。
进一步的,还包括,备份模块:若进行升级,在所述升级包中的新应用程序写入所述充电座存储器激活区中之前,将所述充电座存储器激活区中的旧应用程序备份至充电座存储器备份区中,并将所述充电座存储器激活区中的旧应用程序清除,以接收所述升级包中的新应用程序。
进一步的,还包括,进行升级模块:若所述升级包中的新应用程序有效,则将所述升级包中的新应用程序写入充电座升级存储区中,车辆控制单元重启后加载新应用程序的存储地址,并将车辆控制单元重启前的旧应用程序作为备份。
进一步的,所述升级模块100包括:
接收升级指令模块:接收开始升级指令;
直接升级模块:根据所述开始升级指令的指示,将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级。
参照图11所示,基于上述所述的一种充电座升级的方法,本发明一实施例中还提供一种计算机设备1102,其中上述方法运行在计算机设备1102上。计算机设备1102可以包括一个或多个处理器1104,诸如一个或多个中央处理单元(CPU)或图形处理器(GPU),每个处理单元可以实现一个或多个硬件线程。计算机设备1102还可以包括任何存储器1106,其用于存储诸如代码、设置、数据之类的任何种类的信息,一具体实施方式中,存储器1106上并可在处理器1104上运行的计算机程序,所述计算机程序被所述处理器1104运行时,可以执行根据上述方法的指令。非限制性的,比如,存储器1106可以包括以下任一项或多种组合:任何类型的RAM,任何类型的ROM,闪存设备,硬盘,光盘等。更一般地,任何存储器都可以使用任何技术来存储信息。进一步地,任何存储器可以提供信息的易失性或非易失性保留。进一步地,任何存储器可以表示计算机设备1102的固定或可移除部件。在一种情况下,当处理器1104执行被存储在任何存储器或存储器的组合中的相关联的指令时,计算机设备1102可以执行相关联指令的任一操作。计算机设备1102还包括用于与任何存储器交互的一个或多个驱动机构1108,诸如硬盘驱动机构、光盘驱动机构等。
计算机设备1102还可以包括输入/输出模块1110(I/O),其用于接收各种输入(经由输入设备1112)和用于提供各种输出(经由输出设备1114)。一个具体输出机构可以包括呈现设备1116和相关联的图形用户接口1118。在其他实施例中,还可以不包括输入/输出模块1110、输入设备1112以及输出设备1114,仅作为网络中的一台计算机设备。计算机设备1102还可以包括一个或多个网络接口1120,其用于经由一个或多个通信链路1122与其他设备交换数据。一个或多个通信总线1124将上文所描述的部件耦合在一起。
通信链路1122可以以任何方式实现,例如,通过局域网、广域网(例如,因特网)、点对点连接和/或其任何组合。通信链路1122可以包括由任何协议或协议组合支配的硬连线链路、无线链路、路由器、网关功能、名称服务器等的任何组合。
对应于图1-图8中的方法,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法的步骤。
本发明实施例还提供一种计算机可读指令,其中当处理器执行所述指令时,其中的程序使得处理器执行如图1至图8所示的方法。
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
还应理解,在本发明实施例中,术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本发明中字符“/”,一般表示前后关联对象是一种“或”的关系。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述 方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本发明中应用了具体实施例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (21)

  1. 一种充电座升级的方法,其特征在于,应用于车辆控制单元,包括:
    接收升级包中的新应用程序,并检查所述升级包中的新应用程序是否有效;
    若有效,则将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级;
    判断是否升级成功,当升级成功时,将所述充电座的标志位置位,以标记升级成功。
  2. 根据权利要求1所述的充电座升级的方法,其特征在于,还包括:
    若进行升级,在所述升级包中的新应用程序写入所述充电座存储器激活区中之前,将所述充电座存储器激活区中的旧应用程序备份至充电座存储器备份区中,并将所述充电座存储器激活区中的旧应用程序清除,以接收所述升级包中的新应用程序。
  3. 根据权利要求1所述的充电座升级的方法,其特征在于,还包括:
    若所述升级包中的新应用程序有效,则将所述升级包中的新应用程序写入充电座升级存储区中,车辆控制单元重启后加载新应用程序的存储地址,并将车辆控制单元重启前的旧应用程序作为备份。
  4. 根据权利要求1所述的充电座升级的方法,其特征在于,所述将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级,包括:
    接收开始升级指令;
    根据所述开始升级指令的指示,将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级。
  5. 根据权利要求1所述的充电座升级的方法,其特征在于,所述将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级,包括:
    接收升级结束指令;
    根据所述升级结束指令的指示,停止将所述升级包中的新应用程序写入所述充电座存储器激活区中。
  6. 根据权利要求1所述的充电座升级的方法,其特征在于,还包括:
    读取充电座的硬件信息和软件信息;
    根据所述硬件信息和所述软件信息,确定所述充电座是否进行升级;
    若进行升级,则将所述充电座存储器激活区中的旧应用程序备份至充电座存储器备份区中,并将所述充电座存储器激活区中的旧应用程序清除。
  7. 根据权利要求1所述的充电座升级的方法,其特征在于,所述判断是否升级成功,包括:
    接收所述升级包中的新应用程序对应的初始校验码和终止校验码;
    对所述升级包中的新应用程序对应的初始校验码进行计算,确定所述升级包中新应用程序对应的标准校验码;
    判断所述终止校验码与所标准述校验码是否一致;
    若一致,则升级成功。
  8. 根据权利要求1所述的充电座升级的方法,其特征在于,在接收升级包中的新应用程序之前,还包括:
    接收升级指令,根据充电座的初始状态数据和近期状态数据判断是否可选择充电座升级时间;
    如果可选择充电座升级时间,则从给定时间中选取升级时间;
    如果不可选择充电座升级时间,则将默认时间确定为升级时间;
    在所述升级时间通过服务单元传输的升级包对充电座进行升级。
  9. 根据权利要求8所述的充电座升级的方法,其特征在于,所述根据充电座的初始状态数据和近期状态数据判断是否可选择充电座升级时间之前;还包括:
    接收服务单元用于充电座升级的验证数据,将所述验证数据发送给充电座,并接收充电座回传的加密数据;
    将所述加密数据发送给所述服务单元,当服务单元确定所述加密数据解密后与所述验证数据相同时;
    根据充电座的初始状态数据和近期状态数据判断是否可选择充电座升级时间。
  10. 根据权利要求8所述的充电座升级的方法,其特征在于,所述根据充电座的初始状态数据和近期状态数据判断是否可选择充电座升级时间,包括:
    根据所述充电座的初始状态数据,确定标准状态区间;
    判断充电座的近期状态数据是否在所述标准状态区间内;
    如果所述近期状态数据在所述标准状态区间内,则可选择充电座升级时间。
  11. 根据权利要求10所述的充电座升级的方法,其特征在于,所述根据所述充电座的初始状态数据,确定标准状态区间,包括:
    将所述充电座的所述初始状态数据中的异常数据剔除;
    确定所述初始状态数据的标准值和误差值;
    根据所述标准值和误差值确定所述标准状态区间。
  12. 根据权利要求11所述的充电座升级的方法,其特征在于,所述根据所述标准值和误差值确定所述标准状态区间,包括:
    将所述标准值与所述误差值之差确定为所述标准状态区间的左端点值,将所述标准值与所述误差值之和确定为所述标准状态区间的右端点值。
  13. 根据权利要求8所述的充电座升级的方法,其特征在于,所述根据充电座的初始状态数据和近期状态数据判断是否可选择充电座升级时间,包括:
    比较所述近期状态数据与所述初始状态数据,判断所述近期状态数据与所述初始状态数据是否一致;
    如果所述近期状态数据与所述初始状态数据一致,则可选择充电座升级时间。
  14. 根据权利要求1所述的充电座升级的方法,其特征在于,还包括:
    当升级失败时,将所述充电座存储器备份区中的旧应用程序重新恢复至所述充电座存储器激活区中。
  15. 一种充电座,其特征在于,包括中控模块,以及与中控模块电连接的监测模块;
    所述监测模块用于采集所述充电座的状态信息并将所述状态信息传递给所述中控模块;
    所述中控模块与车辆控制单元电连接,所述中控模块用于将所述状态信息传递给所述车辆控制单元,并在车辆控制单元的控制下在升级时间进行升级。
  16. 一种充电座升级的装置,其特征在于,应用于车辆控制单元;所述装置包括:
    接收模块:接收升级包中的新应用程序,并检查所述升级包中的新应用程序是否有效;
    升级模块:若有效,则将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级;
    判断模块:判断是否升级成功,当升级成功时,将所述充电座的标志位置位,以标记升级成功。
  17. 根据权利要求16所述的充电座升级的装置,其特征在于,还包括:
    备份模块:若进行升级,在所述升级包中的新应用程序写入所述充电座存储器激活区中之前,将所述充电座存储器激活区中的旧应用程序备份至充电座存储器备份区中,并将所述充电座存储器激活区中的旧应用程序清除,以接收所述升级包中的新应用程序。
  18. 根据权利要求16所述的充电座升级的装置,其特征在于,还包括:
    进行升级模块:若所述升级包中的新应用程序有效,则将所述升级包中的新应用程序写入充电座升级存储区中,车辆控制单元重启后加载新应用程序的存储地址,并将车辆控制单元重启前的旧应用程序作为备份。
  19. 根据权利要求16所述的充电座升级的装置,其特征在于,所述升级模块包括:
    接收升级指令模块:接收开始升级指令;
    直接升级模块:根据所述开始升级指令的指示,将所述升级包中的新应用程序写入所述充电座存储器激活区中进行升级。
  20. 一种计算机设备,包括存储器、处理器、以及存储在所述存储器上的计算机程序,其特征在于,所述计算机程序被所述处理器运行时,执行根据权利要求1-14任意一项所述方法的指令。
  21. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被计算机设备的处理器运行时,执行根据权利要求1-14任意一项所述方法的指令。
PCT/CN2022/111138 2021-08-26 2022-08-09 充电座和充电座升级的方法、装置、设备、存储介质 WO2023024895A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22860241.3A EP4394583A1 (en) 2021-08-26 2022-08-09 Charging stand, charging stand upgrading method and apparatus, device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110985980.5 2021-08-26
CN202110985980.5A CN113656056B (zh) 2021-08-26 2021-08-26 充电座和充电座升级的方法、装置、设备、存储介质

Publications (1)

Publication Number Publication Date
WO2023024895A1 true WO2023024895A1 (zh) 2023-03-02

Family

ID=78482073

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/111138 WO2023024895A1 (zh) 2021-08-26 2022-08-09 充电座和充电座升级的方法、装置、设备、存储介质

Country Status (3)

Country Link
EP (1) EP4394583A1 (zh)
CN (1) CN113656056B (zh)
WO (1) WO2023024895A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737207A (zh) * 2023-08-09 2023-09-12 北京集度科技有限公司 一种固件升级方法、装置及设备
CN117539519A (zh) * 2024-01-09 2024-02-09 成都智邦科技有限公司 一种充电桩的程序批量升级方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656056B (zh) * 2021-08-26 2024-02-23 长春捷翼汽车科技股份有限公司 充电座和充电座升级的方法、装置、设备、存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577473A (zh) * 2017-08-24 2018-01-12 苏州汇川联合动力***有限公司 一种电动汽车软件升级的多点远程烧录方法以及***
CN108958777A (zh) * 2018-08-03 2018-12-07 广州云海智联科技有限公司 一种无线充电设备及控制方法
CN113094072A (zh) * 2021-04-25 2021-07-09 上海华东汽车信息技术有限公司 车辆升级方法、装置、电子装置及存储介质
CN113656056A (zh) * 2021-08-26 2021-11-16 长春捷翼汽车零部件有限公司 充电座和充电座升级的方法、装置、设备、存储介质

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110129517A (ko) * 2010-05-26 2011-12-02 나병호 전기자동차 배터리펙 충전을 위한 서비스 방법 과 시스템
JP5360300B2 (ja) * 2010-06-23 2013-12-04 トヨタ自動車株式会社 プログラム更新装置
KR101539861B1 (ko) * 2013-11-06 2015-07-28 한양대학교 산학협력단 전기자동차 충전을 위한 충전 어플리케이션 업데이트 방법
WO2016180075A1 (zh) * 2015-05-14 2016-11-17 深圳市家信信息科技开发有限公司 一种智能电动车远程检测方法、***及其码表
CN107748670A (zh) * 2017-09-13 2018-03-02 国电南瑞科技股份有限公司 电动汽车直流充电模块控制器程序在线升级***
US11204750B2 (en) * 2018-03-30 2021-12-21 Intel Corporation Systems, methods and apparatus for distributed software/firmware update and software versioning system for automated vehicles
CN111698307A (zh) * 2020-06-04 2020-09-22 中国第一汽车股份有限公司 一种车辆远程升级方法、装置、设备及存储介质
CN112440802B (zh) * 2020-11-09 2022-05-13 广州小鹏汽车科技有限公司 车辆充电***、方法、装置、车辆及存储介质
CN112677770A (zh) * 2020-12-16 2021-04-20 宝能(广州)汽车研究院有限公司 Ota升级方法、存储介质以及电子设备和车辆

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577473A (zh) * 2017-08-24 2018-01-12 苏州汇川联合动力***有限公司 一种电动汽车软件升级的多点远程烧录方法以及***
CN108958777A (zh) * 2018-08-03 2018-12-07 广州云海智联科技有限公司 一种无线充电设备及控制方法
CN113094072A (zh) * 2021-04-25 2021-07-09 上海华东汽车信息技术有限公司 车辆升级方法、装置、电子装置及存储介质
CN113656056A (zh) * 2021-08-26 2021-11-16 长春捷翼汽车零部件有限公司 充电座和充电座升级的方法、装置、设备、存储介质

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737207A (zh) * 2023-08-09 2023-09-12 北京集度科技有限公司 一种固件升级方法、装置及设备
CN116737207B (zh) * 2023-08-09 2023-11-17 北京集度科技有限公司 一种固件升级方法、装置及设备
CN117539519A (zh) * 2024-01-09 2024-02-09 成都智邦科技有限公司 一种充电桩的程序批量升级方法
CN117539519B (zh) * 2024-01-09 2024-04-02 成都智邦科技有限公司 一种充电桩的程序批量升级方法

Also Published As

Publication number Publication date
CN113656056A (zh) 2021-11-16
CN113656056B (zh) 2024-02-23
EP4394583A1 (en) 2024-07-03

Similar Documents

Publication Publication Date Title
WO2023024895A1 (zh) 充电座和充电座升级的方法、装置、设备、存储介质
CN110474961B (zh) 纯电乘用车基于can总线实现多路远程ota升级方法
US20140142781A1 (en) Vehicle Unit And Method For Operating The Vehicle Unit
CN101373433A (zh) 更新bios的方法以及使用该方法的电脑与***
CN107528829B (zh) Bmc芯片、服务器端及其远程监控管理方法
US20150154028A1 (en) Methods for accessing baseboard management controller
CN111651184A (zh) 一种tbox软件升级方法、tbox及汽车
JP7091486B2 (ja) 電子制御装置、電子制御装置のセキュリティ検証方法
EP3026591B1 (en) Function setting method
CN109062600A (zh) 一种固态硬盘内固件在线升级的实现方法及***
CN112000083A (zh) Ecu数据刷写方法、刷写装置、刷写设备及存储介质
JP2002529853A (ja) 大容量メモリを備えたサブシステムのハードディスクのために書き込みを保護したディスクキャッシュ装置と方法
US7934050B2 (en) Microcomputer for flash memory rewriting
JP4743182B2 (ja) マイクロコンピュータ
CN111198832B (zh) 一种处理方法和电子设备
CN118069192A (zh) 一种固件升级的方法及装置
JP5236376B2 (ja) ネットワークシステムの書き換え装置
CN115129511A (zh) 处理***、相关集成电路、设备和方法
CN115129347A (zh) 一种汽车安全数据的更新方法、装置、设备及产品
US11726853B2 (en) Electronic control device
CN114510751A (zh) 一种基于处理器安全核的硬件防替换装置和方法
WO2013021423A1 (ja) リプログラミングシステム及びリプログラミング方法
JP7051769B2 (ja) 情報処理装置、制御方法、及びプログラム
CN113553085B (zh) 嵌入式操作***在线升级的方法、装置、设备和存储介质
CN109508272B (zh) 可信赖模块的功能验证方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22860241

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2401001214

Country of ref document: TH

WWE Wipo information: entry into national phase

Ref document number: 18686766

Country of ref document: US

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112024003622

Country of ref document: BR

WWE Wipo information: entry into national phase

Ref document number: 2022860241

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2022860241

Country of ref document: EP

Effective date: 20240326

ENP Entry into the national phase

Ref document number: 112024003622

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20240223