CN112000358B - Upgrading method of charging pile and intelligent charging pile - Google Patents

Upgrading method of charging pile and intelligent charging pile Download PDF

Info

Publication number
CN112000358B
CN112000358B CN202010831292.9A CN202010831292A CN112000358B CN 112000358 B CN112000358 B CN 112000358B CN 202010831292 A CN202010831292 A CN 202010831292A CN 112000358 B CN112000358 B CN 112000358B
Authority
CN
China
Prior art keywords
data
charging pile
frame number
area
current
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202010831292.9A
Other languages
Chinese (zh)
Other versions
CN112000358A (en
Inventor
夏亚军
刘玉达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Junsheng New Energy Automotive Technology Co ltd
Ningbo Junsheng Qunying Automobile System Co Ltd
Original Assignee
Ningbo Junsheng New Energy Automotive Technology Co ltd
Ningbo Junsheng Qunying Automobile System Co Ltd
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 Ningbo Junsheng New Energy Automotive Technology Co ltd, Ningbo Junsheng Qunying Automobile System Co Ltd filed Critical Ningbo Junsheng New Energy Automotive Technology Co ltd
Priority to CN202010831292.9A priority Critical patent/CN112000358B/en
Publication of CN112000358A publication Critical patent/CN112000358A/en
Application granted granted Critical
Publication of CN112000358B publication Critical patent/CN112000358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L53/00Methods of charging batteries, specially adapted for electric vehicles; Charging stations or on-board charging equipment therefor; Exchange of energy storage elements in electric vehicles
    • B60L53/30Constructional details of charging stations
    • B60L53/305Communication interfaces
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L53/00Methods of charging batteries, specially adapted for electric vehicles; Charging stations or on-board charging equipment therefor; Exchange of energy storage elements in electric vehicles
    • B60L53/60Monitoring or controlling charging stations
    • B60L53/68Off-site monitoring or control, e.g. remote control
    • 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
    • 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
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02T90/10Technologies relating to charging of electric vehicles
    • Y02T90/12Electric charging stations
    • 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
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02T90/10Technologies relating to charging of electric vehicles
    • Y02T90/16Information or communication technologies improving the operation of electric vehicles
    • 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
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02T90/10Technologies relating to charging of electric vehicles
    • Y02T90/16Information or communication technologies improving the operation of electric vehicles
    • Y02T90/167Systems integrating technologies related to power network operation and communication or information technologies for supporting the interoperability of electric or hybrid vehicles, i.e. smartgrids as interface for battery charging of electric vehicles [EV] or hybrid vehicles [HEV]
    • 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S30/00Systems supporting specific end-user applications in the sector of transportation
    • Y04S30/10Systems supporting the interoperability of electric or hybrid vehicles
    • Y04S30/12Remote or cooperative charging

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Power Engineering (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a charging pile upgrading method and an intelligent charging pile, which are characterized in that a charging pile controller of the charging pile automatically and sequentially executes charging pile version number verification, receives data to be upgraded transmitted from a server frame by frame, and writes the data into an application area of a Flash memory of the charging pile controller, so that the whole automatic upgrading step is finally completed, manual maintenance is not needed, and the upgrading is fast and convenient and the situation of no upgrading error can be avoided.

Description

Upgrading method of charging pile and intelligent charging pile
Technical Field
The application relates to the technical field of charging piles, in particular to a charging pile upgrading method and an intelligent charging pile.
Background
Along with the vigorous development of technologies such as 5G communication, big data and the like, more and more electric automobiles support on-line upgrading technology service of software and functions by over-the-air software upgrading (OTA) for supporting on-board applications, and the maintenance of on-line upgrading of the whole automobile is facilitated.
Considering the cost problem, the existing charging pile rarely directly communicates with the server background with a 4G or 5G network module. Therefore, the traditional charging pile upgrading method generally requires professional technicians to carry CAN diagnosis tools and notebook computers, go to the charging pile setting position, install the CAN diagnosis tools on the charging pile, and realize the upgrading of the charging pile through CAN communication refreshing.
However, this upgrade method creates a problem: remote automatic upgrading of the charging pile cannot be realized. In order to realize the upgrading of the charging pile, the existing scheme is necessary to be provided with professional technicians to carry out the on-site maintenance and upgrading of the charging pile, so that labor is consumed, and the process is complicated and troublesome.
Disclosure of Invention
Based on the above, it is necessary to provide an upgrade method of a charging pile and an intelligent charging pile, aiming at the problem that the remote automatic upgrade of the charging pile cannot be realized by the traditional charging pile.
The application provides an upgrading method of a charging pile, which is applied to a charging pile controller in an intelligent charging pile, and comprises the following steps:
when an application program runs, the current version number of the charging pile and the latest version number of the charging pile stored on the server are checked, and whether the charging pile needs to be upgraded or not is judged;
If the charging pile is confirmed to need to be upgraded, an upgrade starting message is sent to a server;
Receiving data to be upgraded sent by the server frame by frame, and writing the data to be upgraded into a backup area of a Flash memory frame by frame;
Writing the data to be upgraded in the backup area of the Flash memory into the application area of the Flash memory frame by frame, and sending an upgrade completion message to the server;
and starting the application program by calling the data in the application area.
The application also provides an intelligent charging pile, which comprises:
a charging pile controller for executing the method for upgrading the charging pile mentioned in any one of the foregoing embodiments;
The Bluetooth communication module is in communication connection with the charging pile controller and is used for being in communication connection with external equipment or terminals;
the charging pile controller comprises a control chip and a Flash memory; the Flash memory comprises a Bootloader area, a backup area, an application area and a keyword area.
The application relates to a charging pile upgrading method and an intelligent charging pile, which are characterized in that a charging pile controller of the charging pile automatically and sequentially executes charging pile version number verification, receives data to be upgraded transmitted from a server frame by frame, and writes the data into an application area of a Flash memory of the charging pile controller, so that the whole automatic upgrading step is finally completed, manual maintenance is not needed, and the upgrading is fast and convenient and the situation of no upgrading error can be avoided.
Drawings
Fig. 1 is a flow chart illustrating an upgrade method of a charging pile according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of an intelligent charging pile according to an embodiment of the present application;
Fig. 3 is a schematic structural diagram of a remote upgrade system for a charging pile according to an embodiment of the present application.
Reference numerals:
10-intelligent charging piles; 110-a charging pile controller; 111-a control chip; 112-Flash memory; 112a-Bootloader region; 112 b-a backup area; 112 c-application area; 112 d-keyword field; a 120-Bluetooth communication module; 20-an electric automobile; 30-a server;
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The application provides an upgrading method of a charging pile. It should be noted that the upgrading method of the charging pile provided by the application is applied to any kind of charging pile.
In addition, the upgrade method of the charging pile provided by the application does not limit the execution main body. Optionally, the execution main body of the upgrade method of the charging pile provided by the application can be an intelligent charging pile. Specifically, the execution body may specifically be a charging pile controller in the intelligent charging pile. And the charging pile controller comprises a control chip and a Flash memory. The Flash memory comprises a Bootloader area, a Backup area (Backup area), an application area (App area) and a Keyword area (Keyword area).
As shown in fig. 1, in an embodiment of the present application, the method for upgrading a charging pile includes the following steps S100 to S500:
And S100, when the application program runs, checking the current version number of the charging pile and the latest version number of the charging pile stored on the server, and judging whether the charging pile needs to be upgraded or not.
And S200, if the charging pile is confirmed to need upgrading, an upgrading start message is sent to the server.
S300, receiving the data to be upgraded sent by the server frame by frame. And further writing the data to be upgraded into a backup area of the Flash memory frame by frame.
S400, writing the data to be upgraded in the backup area of the Flash memory into the application area of the Flash memory frame by frame, and sending an upgrade completion message to the server.
S500, starting an application program by calling data in the application area.
Specifically, the execution main body of the step S100 to the step S500 is a charging pile, specifically a charging pile controller in the charging pile. The charging pile can be in communication connection with an intelligent cabin of the electric automobile through Bluetooth, and the intelligent cabin of the electric automobile is in communication connection with the server through a 4G/5G network. All messages and data sent to the server by the charging pile are transmitted to the intelligent cabin of the electric automobile in a Bluetooth communication mode, and the intelligent cabin of the electric automobile is transmitted to the server through a 4G/5G network. Otherwise, all messages and data sent by the server to the charging pile are also the same. The data is transmitted in a transparent transmission mode without changing the content of the data.
In this embodiment, the charging pile controller of the charging pile automatically and sequentially executes the checking of the version number of the charging pile, receives the data to be upgraded transmitted from the server frame by frame, and writes the data into the application area of the Flash memory of the charging pile controller, and finally completes the whole automatic upgrading step, so that the automatic upgrading device does not need manpower maintenance, is fast and convenient to upgrade, and does not have the situation of upgrading errors.
In an embodiment of the present application, in the step S200, before the upgrade start message is sent to the server, the step S200 further includes the following steps S210 to S230:
s210, resetting the current time value recorded by the window time calculator to 0.
Specifically, the window time calculator is set to monitor the length of time of the entire upgrade process. If the upgrade time is too long, the normal running process of the vehicle is disturbed. The step resets the current time value to 0, i.e. starts to count the upgrade.
S220, erasing the data in the backup area and creating the current transmission frame number.
Specifically, the current transmission frame number is the frame number of the frame data to be currently transmitted. For stability of data transmission, the server splits the upgrade data into individual frame data, and sends the individual frame data to the charging pile (of course, the upgrade data is firstly transmitted to the charging pile through the intelligent cabin of the electric vehicle, and then the upgrade data is transmitted to the charging pile through the intelligent cabin, and once the data or message transmission forms of the server and the charging pile are all the rule, the rule is omitted.
Thus, creating the current transmission frame number is advantageous in that it facilitates the server and the charging pile to know which frame data is currently required to be transmitted, and which frame data is being transmitted.
The Flash memory of the charging pile controller is provided with an application area, and an application area upgrading module is arranged in the application area. In this step, the application area upgrade module erases the data in the backup area and creates the current transmission frame number.
S230, giving an initial transmission frame number value to the current transmission frame number.
Specifically, the initial transmission frame number value may be 0. The initial transmission frame number value may be 1. To conform to programming habits of a computer language, the initial transmission frame number value is typically set to 0.
And sending an upgrade starting message at the charging pile controller, and transmitting the upgrade starting message to the server through the electric automobile. After the server receives the upgrade start message, the server performs identity verification on the application area upgrade module of the charging pile, and judges whether the identity verification is passed or not. The application area upgrading module is an upgrading module arranged in the application area.
If the identity verification is passed, the server determines that the application area upgrading module has upgrading authority, and the server sends data to be upgraded to the charging pile frame by frame. If the authentication is not passed, the server terminates the subsequent steps.
In this embodiment, the current time value recorded by the window time calculator is reset, so that the upgrade time of the whole upgrade process can be monitored. By setting the current transmission frame number and the initial transmission frame number value, the server and the charging pile are beneficial to know which frame data is required to be transmitted currently and which frame data is being transmitted.
In an embodiment of the present application, the steps include the following steps S310 to S370:
s310, a data transmission request of frame data corresponding to the current transmission frame number is transmitted to the server.
Specifically, it has been mentioned that the initial transmission frame number may be 0 or 1. For convenience of description, in the present embodiment and the subsequent embodiments, the initial transmission frame number value is set to 1, and description will not be repeated. For example, if the initial transmission frame number is 1, i.e., the current transmission frame number is 1, the application area upgrade module transmits a data transmission request of the 1 st frame data to the server.
S320, receiving the frame data corresponding to the current transmission frame number, performing CRC16 check on the frame data corresponding to the current transmission frame number, and judging whether the frame data corresponding to the current transmission frame number passes the CRC16 check.
Specifically, in the embodiment in which the initial transmission frame number is 1, after receiving the data transmission request of the 1 st frame data, the server may split the upgrade data into individual frame data. Further, the server transmits the 1 st frame data to the charging pile. The application area upgrading module receives the 1 st frame data and performs CRC16 check on the 1 st frame data.
And S331, if the frame data corresponding to the current transmission frame number passes the CRC16 check, writing the frame data corresponding to the current transmission frame number into the backup area.
Specifically, in the embodiment with the initial transmission frame number 1, the application area upgrade module writes the 1 st frame data into the backup area.
S340, after the writing of the frame data corresponding to the current transmission frame number is completed, the frame data corresponding to the current transmission frame number written in the backup area is read. Further, it is compared whether or not the frame data corresponding to the current transmission frame number, which has been written in the backup area, and the frame data corresponding to the current transmission frame number received from the server are identical.
Specifically, this step is to prevent the frame data from being written in error, or from being wrong in the writing process.
S351, if the frame data corresponding to the current transmission frame number is consistent with the current transmission frame number, the frame data is successfully written, and whether the current transmission frame number is equal to the maximum transmission frame number is further judged.
Specifically, when splitting the upgrade data into a plurality of frame data, the server automatically numbers the plurality of frame data, for example, 1,2,3. E.g. the maximum transmission frame number is 10 out of all frame data, then a total of 10 frame data is represented.
The step S300 further includes:
if the two are inconsistent, it is determined that the writing of the frame data corresponding to the current transmission frame number fails, and the frame data needs to be rewritten, and the step S220 is returned.
And S361, if the current transmission frame number is equal to the maximum transmission frame number, determining that the data to be upgraded is completely written, and performing integrity detection on all the written data in the backup area.
Specifically, if the current transmission frame number is equal to the maximum transmission frame number, the current transmission frame number is the last frame data, and all the data to be updated are completely written. Further, integrity checking is performed on all data written in the backup area.
And S370, after the integrity detection of all the written data in the backup area is qualified, executing the following step S400.
Specifically, when it is determined that the frame data writing corresponding to the current transmission frame number is successful, the entire step S300 ends, and the subsequent step S400 is performed.
In this embodiment, for the frame data corresponding to the current transmission frame number, by checking before writing the data and checking after writing the data, it is ensured that each frame data can be correctly written into the backup area. After all frame data are written, the integrity detection is carried out on the whole written data in the backup area, so that the integrity detection is carried out on the whole frame data.
In an embodiment of the present application, after the step S351, the step 300 further includes the following steps S362 to S383:
s362, if the current transmission frame number is not equal to the maximum frame number, determining that the data to be upgraded is not completely written. Further, the current time value recorded by the window time calculator is read.
Specifically, if the current transmission frame number is not equal to the maximum transmission frame number, it indicates that the currently transmitted frame data is not the last frame data, and all the data to be updated are not completely written, so that the next frame data needs to be written.
At this time, due to the limitation of the upgrade time, the current time value recorded by the window time calculator is read at this time to determine whether the upgrade is overtime.
S381, judging whether the current time value is smaller than a preset time threshold.
Specifically, the application area upgrade module is provided with a preset time threshold. The preset time threshold may be three times the total time of data transmission. For example, the data transmission speed of the frame data is 10K/S, the total size of all frame data is 1M, then it takes approximately 5 minutes for transmission to be completed, and then the preset time threshold is set to 15 minutes.
The purpose of this step S381 is to determine if the upgrade has timed out.
And S382, if the current time value is smaller than the preset time threshold value, adding 1 to the value of the current transmission frame number, returning to the step S310, and continuing to receive the next frame data.
Specifically, for example, if the current time value is 1 minute and is less than the preset time threshold value for 15 minutes, it indicates that there is no timeout, the value of the current transmission frame number is added by 1, and the step S310 is returned to continue to receive the next frame data. The value of the current transmission frame number is here increased by 1 in order to enable orderly transmission of frame data in 1,2,3,4,5.
For example, the current transmission frame number is 1, and then the next frame data is the 2 nd frame data.
S383, if the current time value is greater than or equal to the preset time threshold, determining that the data transmission is overtime, sending an upgrade failure message to the server, and executing the step S500.
Specifically, the foregoing also mentions that if the data transmission is overtime, the charging pile controller directly terminates the subsequent upgrading process and directly starts the application program, so as to avoid interference to the normal running process of the vehicle.
In this embodiment, when all frame data are not completely written, after one frame data is written into the backup area, the next frame data is sequentially transmitted by adding 1 to the value of the current transmission frame number. In addition, the interference to the normal running process of the vehicle is avoided through the monitoring of the upgrading time.
In an embodiment of the present application, the step 361 includes the following steps S361 to S361a to S361e:
S361a, dividing all data in the backup area into a first portion and a second portion. The first portion is the last 4 bytes of all data in the backup area. The second portion is the data remaining from the last 4 bytes.
S361b, reading the data of the second part, and performing CRC32 check on the data of the second part to obtain an integrity check value.
And S361c, reading the data of the first part, comparing the data of the first part with the integrity check value, and judging whether the data of the first part is consistent with the integrity check value.
And S361d, if the data of the first part is consistent with the integrity check value, determining that the integrity detection of all the written data in the backup area is qualified, and executing the step S370.
S361e, if the data of the first portion and the integrity check value are not consistent, returning to the step S220.
Specifically, steps S361a to S361e are one way of detecting the integrity of the data.
The embodiment can realize accurate data integrity detection on all data of the backup area.
In an embodiment of the present application, in the step S370, before the step S400 is performed, the step S370 further includes the following steps S371 to S378:
S371, erasing all data of the key word area of the Flash memory.
Specifically, after the integrity check of all the data written in the backup area is qualified, the key writing process of steps S371 to S378 needs to be performed before the step S400 is performed.
S372, a preset first identification character is selected, and the first identification character is written in the first address of the keyword area.
Specifically, the first identification character needs to be preset. The first identification character may be 0xA55A. The first identification character may not be represented by simple data, such as 0x 0000 or 0xFFFF.
S373, the written first identification character is read, and whether the written first identification character is consistent with the preset first identification character is judged.
Specifically, the step is consistent with the function of consistency check after writing of the frame data, so as to judge whether the first identification character has a wrong writing.
S374, if the written first identification character is inconsistent with the preset first identification character, determining that the first identification character is not successfully written, and returning to the step S371.
Specifically, if they are inconsistent, it indicates that the first identification character may be wrongly written, and the procedure returns to step S371 for overwriting.
S375, if the written first identification character is consistent with the preset first identification character, determining that the first identification character is successfully written, and resetting the charging pile controller.
Specifically, if the first identification characters are consistent, the first identification characters are indicated to be free from writing errors, and the charging pile controller is reset.
S376, the application program is started from the Bootloader area, detects the keywords in the keyword area, and judges whether the keywords in the keyword area are the first identifiers.
Specifically, the Bootloader area is started by retrieving data in the Bootloader area of the Flash memory to detect keywords in the keyword area. The data in the Bootloader area refers to the program code burned in the Bootloader area, and when the data is called, a detection program can be triggered to detect whether the keyword in the keyword area is the first identifier. The function of this step is to detect whether the first identifier is present after resetting the charging pile controller.
And S377, if the keyword in the keyword area is the first identifier, executing the following step S400.
Specifically, if the keyword in the keyword area is the first identifier, indicating that the first identifier exists, the following step S400 is executed.
S378, if the keyword in the keyword area is not the first identifier, the step S500 is executed.
Specifically, if the keyword in the keyword area is not the first identifier, it indicates that the first identifier does not exist, and the application program may be directly started.
In this embodiment, the first identifier is written in the key word area of the Flash memory, so that the update of the frame data in the backup area is recorded.
In an embodiment of the present application, in the step S375, before resetting the charging pile controller, the step S375 further includes the following steps S375a to S375c:
s375a, acquiring the charging state of the current charging pile, and judging whether the charging pile is in the charging state.
And S375b, if the charging pile is not in a charging state, executing a step of resetting the charging pile controller.
And S375c, if the charging pile is in a charging state, returning to the step S375a until the charging is finished.
Specifically, after the frame data has been written in the backup area, in the non-charging mode, a reset of the charging pile controller can be requested, and the subsequent step S400 is performed.
In this embodiment, by this way, the charging pile can normally charge the electric vehicle when the backup area writes frame data in asynchronous operation, and the charging pile cannot be charged when the updated backup area writes frame data without disturbing the normal charging operation of the charging pile, i.e. when the application program is updated in step S400.
In an embodiment of the present application, the step S400 includes the following steps S410 to S470:
and S410, erasing all data of the application area, and creating a current migration frame number.
S420, giving an initial transmission frame number value to the current migration frame number.
Specifically, in the present embodiment, steps S410 to S470 are the process of writing all frame data in the backup area into the application area, and the execution subject is the control chip. To make the distinction, a "current migration frame number" is created. Since the frame data of the backup area is copied to the application area, all the migration frame numbers are equal in value to all the transmission frame numbers. The principles of steps S410 to S420 are the same as those of steps S220 to S230, and are not repeated here.
S430, reading frame data corresponding to the current migration frame number in the backup area, and writing the frame data corresponding to the current migration frame number into the application area.
S440, after the frame data corresponding to the current migration frame number is written, the written frame data corresponding to the current migration frame number in the application area is read. Further, it is compared whether the frame data corresponding to the current migration frame number, which has been written in the application area, and the frame data corresponding to the current migration frame number, which has been read from the backup area, are identical.
S451, if the two frame data are consistent, the frame data corresponding to the current migration frame number is determined to be successfully written, and whether the current migration frame number is equal to the maximum migration frame number is further determined.
S461, if the current migration frame number is equal to the maximum migration frame number, determining that all data in the backup area has been written into the application area. Further, integrity detection is performed on all data written in the application area.
S470, after the integrity detection of all the written data in the application area is qualified, executing the following step S500.
Specifically, the principles of steps S430 to S470 are the same as those of steps S331 to S370, except that the execution bodies of steps S331 to S370 are application area upgrade modules, and the execution bodies of steps S430 to S470 are control chips, which are not described herein.
In the step S461, the specific detection method for detecting the integrity of all the written data in the application area is consistent with the specific detection method for detecting the integrity of all the written data in the backup area in the steps S361a to S361e, or the last 4 bytes of all the data in the application area are taken first, the remaining data except the last 4 bytes are subjected to CRC32 calculation to obtain a check value, and the last 4 bytes are compared with the check value, if the two are consistent, it is indicated that all the written data in the application area has the integrity.
In this embodiment, for the frame data corresponding to the current migration frame number, by checking before writing the data and checking after writing the data, it is ensured that each frame data can be correctly written into the backup area. After all frame data are written, the integrity detection is carried out on the whole written data in the backup area, so that the integrity detection is carried out on the whole frame data.
In an embodiment of the present application, the step S400 further includes the following steps S462 to S483:
S462, if the current migration frame number is not equal to the maximum migration frame number, determining that all data of the backup area are not written into the application area, and reading the current time value recorded by the window time calculator.
S481, judging whether the current time value is smaller than the preset time threshold.
And S482, if the current time value is smaller than the preset time threshold value, adding 1 to the value of the current migration frame number, returning to the step S430, and continuing to read the next frame data.
And S483, if the current time value is greater than or equal to the preset time threshold, determining that the data transmission is overtime, sending an upgrade failure message to the server, and executing the step S500.
Specifically, the principles of steps S462 to S483 are identical to those of steps S362 to S383, and will not be described here.
In this embodiment, when all frame data are not completely written, after one frame data is written into the application area, the next frame data is sequentially transmitted by adding 1 to the value of the current migration frame number. In addition, the interference to the normal running process of the vehicle is avoided through the monitoring of the upgrading time.
In an embodiment of the present application, in the step S470, before the step S500 is performed, the step S470 further includes the following steps S471 to S473:
And S471, erasing all data of the key word area.
Specifically, it has been mentioned in the foregoing that the keyword stored in the keyword area should be the first identification character. In this step, the first identification character is erased.
S472, selecting a preset second identification character, writing the second identification character into the first address of the keyword area, and resetting the charging pile controller.
In particular, the second identification character may be represented by simple data, such as 0x0000 or 0xFFFF.
S473, the application program is started from the Bootloader area, detects the keywords in the keyword area, and judges whether the keywords in the keyword area are the first identifiers. .
And S474, if the keyword in the keyword area is the first identifier, returning to the step S471 to rewrite the second identification character.
Specifically, if the keyword in the keyword area is the first identifier, it indicates that the writing of the second identifier fails, and the step S471 is returned, where the second identifier is rewritten by the erasing keyword.
S475, if the keyword in the keyword area is not the first identifier, executing the following step S500.
Specifically, if the key is the second identifier, indicating that the upgrade has been completed, the application may be run, and the subsequent step S500 is performed.
The purpose of writing the second identifier in the key area is to erase the first identifier and to distinguish the written key from the first identifier.
Furthermore, in some special cases, the keywords in the keyword area may not be either the first identifier or the second identifier, but other identifiers, such as when the charging stake was just shipped or restored to a factory setting. At this time, as long as the keyword in the keyword area is not the first identifier, the subsequent step S500 may be directly performed to start the application.
In this embodiment, the second identifier is written in the key word area of the Flash memory, so that the update work of the frame data of the application area is recorded.
As shown in fig. 2, the present application also provides an intelligent charging stake 10.
In one embodiment of the present application, the smart charging post 10 includes a charging post controller 110 and a bluetooth communication module 120.
The charging pile controller 110 is configured to perform the method for upgrading the charging pile mentioned in any one of the foregoing embodiments. The bluetooth communication module 120 is in communication connection with the charging pile controller 110, and the bluetooth communication module 120 is used for communication connection with external devices or terminals.
The charging pile controller 110 includes a control chip 111 and a Flash memory 112. The Flash memory 112 includes a Bootloader area 112a, a backup area 112b, an application area 112c, and a keyword area 112d.
Specifically, the Bootloader area 112a, the backup area 112b, the application area 112c, and the key area 112d allocate respective storage space sizes according to a predetermined allocation rule. The storage spaces of the backup area 112b and the application area 112c are consistent, because all data of the backup area 112b is written into the application area 112c during the upgrade process of the charging pile, thereby avoiding data loss.
Alternatively, bootloader area 112a may allocate 50K of storage space, and backup area 112b and application area 112c may each match 1M of storage space. The key field 112d may match a 1K memory space. The memory space of the key area 112d is minimal because the key area 112d only needs to be written with an identifier, and does not occupy a large memory space.
The application further provides a remote upgrading system of the charging pile.
As shown in fig. 3, in an embodiment of the present application, the remote upgrade system for charging piles includes the intelligent charging piles 10, the electric vehicles 20 and the server 30 as mentioned in the previous embodiment.
Specifically, the vehicle-mounted system of the electric vehicle 20 is provided with a bluetooth communication module. The bluetooth communication module of the electric vehicle 20 and the bluetooth communication module 120 of the intelligent charging post 10 are in communication connection based on a bluetooth communication protocol.
The electric automobile 20 and the server 30 are both provided with a 4G/5G network communication module, and the electric automobile 20 and the server 30 are connected through the 4G/5G network communication module.
In this embodiment, the remote upgrading system of the charging pile effectively avoids the influence of unstable signals, interruption of remote signals, movement of the electric vehicle and the like when the remote automatic upgrading of the charging pile is remote, and avoids the situation that the online upgrading is unsuccessful and the intelligent charging pile 10 cannot work normally.
The technical features of the above embodiments may be combined arbitrarily, and the steps of the method are not limited to the execution sequence, so that all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description of the present specification.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (9)

1. The charging pile upgrading method is characterized by being applied to a charging pile controller in an intelligent charging pile, and comprises the following steps:
S100, when an application program runs, checking the current version number of the charging pile and the latest version number of the charging pile stored on a server, and judging whether the charging pile needs to be upgraded or not;
s200, if the charging pile is confirmed to need upgrading, an upgrading start message is sent to a server;
S300, receiving data to be upgraded sent by the server frame by frame, and writing the data to be upgraded into a backup area of a Flash memory frame by frame;
S400, writing the data to be upgraded in the backup area of the Flash memory into the application area of the Flash memory frame by frame, and sending an upgrade completion message to the server;
the step S400 includes:
s410, erasing all data of the application area, and creating a current migration frame number;
s420, giving an initial transmission frame number value to the current migration frame number;
S430, reading frame data corresponding to the current migration frame number in the backup area, and writing the frame data corresponding to the current migration frame number into the application area;
s440, after the frame data corresponding to the current migration frame number is written, reading the written frame data corresponding to the current migration frame number in the application area, and comparing whether the written frame data corresponding to the current migration frame number in the application area is consistent with the frame data corresponding to the current migration frame number read from the backup area;
S451, if the frame data and the current migration frame number are consistent, determining that the frame data corresponding to the current migration frame number is successfully written, and further judging whether the current migration frame number is equal to the maximum migration frame number;
S461, if the current migration frame number is equal to the maximum migration frame number, determining that all data in the backup area are completely written into the application area, and performing integrity detection on all the written data in the application area;
s470, after the integrity detection of all the written data in the application area is qualified, executing the subsequent step S500;
in the step S470, before the step S500 is performed, the step S470 further includes:
S471, erasing all data in the key word area of the Flash memory;
S472, selecting a preset second identification character, writing a second identifier into the first address of the key word area, and resetting the charging pile controller;
s473, starting an application program from a Bootloader area, detecting keywords in the keyword area, and judging whether the keywords in the keyword area are first identifiers or not;
S474, if the keyword in the keyword area is the first identifier, returning to the step S471 to rewrite the second identification character;
s475, if the keyword in the keyword area is not the first identifier, executing the following step S500;
S500, starting an application program by calling data in the application area.
2. The method of upgrading a charging pile according to claim 1, wherein in the step S200, before sending an upgrade start message to a server, the step S200 further includes:
s210, resetting the current time value recorded by the window time calculator to 0;
S220, erasing the data in the backup area and creating a current transmission frame number;
S230, giving an initial transmission frame number value to the current transmission frame number.
3. The method for upgrading a charging pile according to claim 2, wherein the step S300 comprises:
s310, sending a data sending request of frame data corresponding to the current transmission frame number to a server;
S320, receiving the frame data corresponding to the current transmission frame number, performing CRC16 check on the frame data corresponding to the current transmission frame number, and judging whether the frame data corresponding to the current transmission frame number passes the CRC16 check;
S331, if the frame data corresponding to the current transmission frame number passes the CRC16 check, writing the frame data corresponding to the current transmission frame number into the backup area;
S340, after the writing of the frame data corresponding to the current transmission frame number is completed, reading the written frame data corresponding to the current transmission frame number in the backup area, and comparing whether the written frame data corresponding to the current transmission frame number in the backup area is consistent with the frame data corresponding to the current transmission frame number received from the server;
S351, if the frame data corresponding to the current transmission frame number is consistent with the current transmission frame number, determining that the frame data is successfully written, and further judging whether the current transmission frame number is equal to the maximum transmission frame number;
S361, if the current transmission frame number is equal to the maximum transmission frame number, determining that the data to be upgraded is completely written, and performing integrity detection on all the written data in the backup area;
and S370, after the integrity detection of all the written data in the backup area is qualified, executing the following step S400.
4. A method of upgrading a charging pile according to claim 3, wherein after step S351, step 300 further comprises:
s362, if the current transmission frame number is not equal to the maximum frame number, determining that the data to be upgraded is not completely written, and reading the current time value recorded by the window time calculator;
s381, judging whether the current time value is smaller than a preset time threshold value or not;
S382, if the current time value is smaller than the preset time threshold value, adding 1 to the value of the current transmission frame number, returning to the step S310, and continuing to receive the next frame data;
s383, if the current time value is greater than or equal to the preset time threshold, determining that the data transmission is overtime, sending an upgrade failure message to the server, and executing the step S500.
5. The method of upgrading a charging pile according to claim 4, wherein said step 361 includes:
S361a, dividing all data in the backup area into a first part and a second part, wherein the first part is the last 4 bytes of all data in the backup area, and the second part is the data with the rest of the last 4 bytes removed;
S361b, reading the data of the second part, and performing CRC32 check on the data of the second part to obtain an integrity check value;
S361c, reading the data of the first part, comparing the data of the first part with the integrity check value, and judging whether the data of the first part is consistent with the integrity check value;
s361d, if the data of the first part is consistent with the integrity check value, determining that the integrity detection of all the written data in the backup area is qualified, and executing the step S370;
S361e, if the data of the first portion and the integrity check value are not consistent, returning to the step S220.
6. The method of upgrading a charging pile according to claim 5, wherein in step S370, before performing step S400, step S370 further comprises:
s371, erasing all data of a key word area of the Flash memory;
S372, selecting a preset first identification character, and writing the first identification character into the first address of the keyword area;
S373, reading the written first identification character, and judging whether the written first identification character is consistent with a preset first identification character;
S374, if the written first identification character is inconsistent with the preset first identification character, determining that the first identification character is not successfully written, and returning to the step S371;
S375, if the written first identification character is consistent with the preset first identification character, determining that the first identification character is successfully written, and resetting the charging pile controller;
s376, the application program is started from the Bootloader area, the keywords in the keyword area are detected, and whether the keywords in the keyword area are the first identifiers or not is judged;
S377, if the keyword in the keyword area is the first identifier, executing the following step S400;
s378, if the keyword in the keyword area is not the first identifier, the step S500 is executed.
7. The method of upgrading a charging pile according to claim 6, wherein in step S375, before resetting the charging pile controller, step S375 further comprises:
s375a, acquiring the charging state of the current charging pile, and judging whether the charging pile is in the charging state;
S375b, if the charging pile is not in a charging state, executing a step of resetting the charging pile controller;
and S375c, if the charging pile is in a charging state, returning to the step S375a until the charging is finished.
8. The method for upgrading a charging pile according to claim 2, wherein the step S400 further comprises:
S462, if the current migration frame number is not equal to the maximum migration frame number, determining that all data of the backup area are not written into the application area, and reading the current time value recorded by the window time calculator;
s481, judging whether the current time value is smaller than a preset time threshold value;
S482, if the current time value is smaller than the preset time threshold value, adding 1 to the value of the current migration frame number, returning to the step S430, and continuing to read the next frame data;
And S483, if the current time value is greater than or equal to the preset time threshold, determining that the data transmission is overtime, sending an upgrade failure message to the server, and executing the step S500.
9. An intelligent charging stake, which is characterized by comprising:
a charging pile controller for performing the charging pile upgrade method according to any one of claims 1 to 8;
the Bluetooth communication module is electrically connected with the charging pile controller and is used for being in communication connection with external equipment or terminals;
the charging pile controller comprises a control chip and a Flash memory; the Flash memory comprises a Bootloader area, a backup area, an application area and a keyword area.
CN202010831292.9A 2020-08-18 2020-08-18 Upgrading method of charging pile and intelligent charging pile Active CN112000358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010831292.9A CN112000358B (en) 2020-08-18 2020-08-18 Upgrading method of charging pile and intelligent charging pile

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010831292.9A CN112000358B (en) 2020-08-18 2020-08-18 Upgrading method of charging pile and intelligent charging pile

Publications (2)

Publication Number Publication Date
CN112000358A CN112000358A (en) 2020-11-27
CN112000358B true CN112000358B (en) 2024-05-03

Family

ID=73473804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010831292.9A Active CN112000358B (en) 2020-08-18 2020-08-18 Upgrading method of charging pile and intelligent charging pile

Country Status (1)

Country Link
CN (1) CN112000358B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204365B (en) * 2021-05-27 2024-02-20 宁波均胜新能源汽车技术有限公司 Upgrading method of charging pile and intelligent charging pile
CN113590147A (en) * 2021-06-19 2021-11-02 特瓦特能源科技有限公司 Charging pile upgrading system and method
CN115038075A (en) * 2022-04-21 2022-09-09 清研智行(北京)科技有限公司 Method and device for upgrading application software of intelligent automobile in air and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132573A (en) * 2006-08-23 2008-02-27 中兴通讯股份有限公司 Method for implementing terminal batch upgrading
CN105808296A (en) * 2016-03-08 2016-07-27 江苏万帮德和新能源科技有限公司 Client side software startup method used for charging pile to safely upgrade own program
CN107040590A (en) * 2017-03-28 2017-08-11 合肥亮天新能源科技有限公司 A kind of remote upgrade method of New-type charge stake
CN109918105A (en) * 2019-02-21 2019-06-21 福建星云电子股份有限公司 A kind of charging pile software automatic on-line upgrade method and system
CN110333891A (en) * 2019-07-08 2019-10-15 四川爱联科技有限公司 The method of enhanced OTA upgrading based on Internet of Things

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132573A (en) * 2006-08-23 2008-02-27 中兴通讯股份有限公司 Method for implementing terminal batch upgrading
CN105808296A (en) * 2016-03-08 2016-07-27 江苏万帮德和新能源科技有限公司 Client side software startup method used for charging pile to safely upgrade own program
CN107040590A (en) * 2017-03-28 2017-08-11 合肥亮天新能源科技有限公司 A kind of remote upgrade method of New-type charge stake
CN109918105A (en) * 2019-02-21 2019-06-21 福建星云电子股份有限公司 A kind of charging pile software automatic on-line upgrade method and system
CN110333891A (en) * 2019-07-08 2019-10-15 四川爱联科技有限公司 The method of enhanced OTA upgrading based on Internet of Things

Also Published As

Publication number Publication date
CN112000358A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN112000358B (en) Upgrading method of charging pile and intelligent charging pile
CN109189445B (en) Method for upgrading program of equipment of Internet of things
CN110347412B (en) Electronic control unit firmware upgrade management method, device, equipment and storage medium
CN111142911A (en) Embedded system with abnormal recovery function and upgrading method thereof
CN114489732A (en) Method and device for updating FPGA (field programmable Gate array) firmware of equipment and electronic equipment
CN113220319A (en) Data updating method and device and vehicle
CN116755737A (en) OTA (over the air) upgrading method, device, equipment, storage medium and program for automobile software
JP6935694B2 (en) Electronic control device
US20220244946A1 (en) Ota master, update control method, non-transitory storage medium, and vehicle
CN113672258A (en) System upgrading method and device for vehicle, computer equipment and storage medium
CN114780114A (en) Firmware upgrading method, system, vehicle and storage medium
CN109901117B (en) Radar restarting method and device
CN112599172B (en) Data writing method and device of electronic control unit and storage medium
CN113409867B (en) Nonvolatile memory programming method, nonvolatile memory programming device, electronic equipment and storage medium
CN115437670B (en) Automobile controller program upgrading system based on TFTP
CN117270914B (en) System upgrading method, device, equipment and medium of terminal equipment
CN116204353B (en) Recovery and restoration method, device and equipment of vehicle-mounted system and storage medium
CN117742763A (en) ECU firmware upgrading method, device, system, automobile and storage medium
US20230051776A1 (en) Vehicle software management system and method for recovering software thereof
CN115859392A (en) Method, system, optical module and medium for preventing error erasing of optical module data storage area
CN116932018A (en) Bootloader upgrading method, bootloader upgrading device, bootloader upgrading equipment and medium
CN117555565A (en) Soft support multi-partition FOTA upgrading method, upgrading system and rollback method
CN117130915A (en) Controller refreshing method and system
CN115480795A (en) Method and system for upgrading vehicle-mounted ECU (electronic control Unit) supporting sleep function
CN112379909A (en) Method, device and equipment for refreshing combination instrument program and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant