CN107402794A - A kind of itself programme upgrade method of charging pile and device - Google Patents

A kind of itself programme upgrade method of charging pile and device Download PDF

Info

Publication number
CN107402794A
CN107402794A CN201710655667.9A CN201710655667A CN107402794A CN 107402794 A CN107402794 A CN 107402794A CN 201710655667 A CN201710655667 A CN 201710655667A CN 107402794 A CN107402794 A CN 107402794A
Authority
CN
China
Prior art keywords
upgrade file
upgrade
version
slave computer
intelligent terminal
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.)
Pending
Application number
CN201710655667.9A
Other languages
Chinese (zh)
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.)
Towatt Energy Technology Co Ltd
Original Assignee
Towatt Energy Technology 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 Towatt Energy Technology Co Ltd filed Critical Towatt Energy Technology Co Ltd
Priority to CN201710655667.9A priority Critical patent/CN107402794A/en
Publication of CN107402794A publication Critical patent/CN107402794A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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/31Charging columns specially adapted for 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
    • 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

Abstract

The embodiment of the invention discloses a kind of itself programme upgrade method of charging pile and device.This method includes:When upgrade request is received, the voltage of shaking hands of charging gun is obtained, wherein, the upgrade request includes:The version of upgrade file;If the voltage of shaking hands of the charging gun is preset value, upgrade command is sent to intelligent terminal according to the version number of upgrade file, so that upgrade file is sent to slave computer from intelligent terminal corresponding to the version of the upgrade file.By technical scheme, charging pile itself program, lifting upgrading efficiency can be upgraded automatically.

Description

A kind of itself programme upgrade method of charging pile and device
Technical field
The present embodiments relate to a kind of upgrade technique, more particularly to a kind of itself programme upgrade method of charging pile and dress Put.
Background technology
With the fast development of New-energy electric vehicle, the demand of alternating current-direct current charging pile increases severely daily, and all parts of the country all exist Build charging pile, function is also constantly carrying out upgrading perfect, is all that attendant adopts now when the stake built up needs ROMPaq Scene is used, software is upgraded using notebook computer, because charging pile is all scattered construction, the turnover rate of charging pile software also exists Increase, in face of traditional software burning mode, it is necessary to for attendant goes the method for onsite application cd-rom recorder more new procedures, make Company operation maintenance cost increases, and efficiency reduces.
The content of the invention
The embodiment of the present invention provides a kind of charging pile itself programme upgrade method and device, can upgrade charging pile automatically certainly Body program, lifting upgrading efficiency.
In a first aspect, the embodiments of the invention provide a kind of itself programme upgrade method of charging pile, including:
When upgrade request is received, the voltage of shaking hands of charging gun is obtained, wherein, the upgrade request includes:Upgrading text The version of part;
If the voltage of shaking hands of the charging gun is preset value, is sent and risen to intelligent terminal according to the version number of upgrade file Level instruction, so that upgrade file is sent to slave computer from intelligent terminal corresponding to the version of the upgrade file.
Further, if the voltage of shaking hands of the charging gun is preset value, according to the version of upgrade file to intelligent end End sends upgrade command, so that upgrade file corresponding to the version of the upgrade file is sent to slave computer, bag from intelligent terminal Include:
If the voltage of shaking hands of the charging gun is preset value, the current version of charging pile itself program is obtained;
If the version of the upgrade file is higher than the current version, the intelligent terminal is controlled to be sent out to the slave computer Send instruction of shaking hands;
If getting the instruction of shaking hands that the slave computer is replied, upgrade file is passed through into bus transfer to the slave computer In.
Further, when upgrade request is received, the voltage of shaking hands of charging gun is obtained, wherein, the upgrade request bag Include:Before the version of upgrade file, in addition to:
The internal storage region of slave computer is divided into the first memory block and the second memory block, wherein, the first memory block is used for Upgrade file corresponding to the version of upgrade file is stored, the second memory block is used to store upgrade file corresponding to current version;
Accordingly, if the voltage of shaking hands of the charging gun is preset value, according to the version number of upgrade file to intelligent end End sends upgrade command, so that upgrade file corresponding to the version of the upgrade file is sent to slave computer, bag from intelligent terminal Include:
If the voltage of shaking hands of the charging gun is preset value, is sent and risen to intelligent terminal according to the version number of upgrade file Level instruction, so that upgrade file corresponding to the version of the upgrade file sends the first storage into slave computer from intelligent terminal Area;
Upgrade file in first memory block carries out corresponding updating operation.
Further, if the voltage of shaking hands of the charging gun is preset value, according to the version number of upgrade file to intelligence Terminal send upgrade command so that upgrade file corresponding to the version of the upgrade file from intelligent terminal send to slave computer it Afterwards, in addition to:
After the completion of updating operation, if receiving deupdate instruction, the current version in second memory block is obtained Upgrade file carries out deupdate operation corresponding to this.
Further, if the voltage of shaking hands of the charging gun is preset value, according to the version number of upgrade file to intelligence Terminal sends upgrade command, so that upgrade file is sent to slave computer from intelligent terminal corresponding to the version of the upgrade file, Including:
If the voltage of shaking hands of the charging gun is preset value, is sent and risen to intelligent terminal according to the version number of upgrade file Level instruction, so that upgrade file corresponding to the version of the upgrade file passes through data transmission bus in the form of upgrading data packet Sent from intelligent terminal to slave computer, wherein, the upgrade file includes at least one upgrading data packet;
When last upgrading data packet is transmitted into slave computer, according to the whole upgrading data packets stored in slave computer Length, attribute and continuity whole upgrading data packets for judging to store in the slave computer whether be complete upgrade file;
If the whole upgrading data packets stored in slave computer are complete upgrade file, updating operation is carried out.
Second aspect, the embodiment of the present invention additionally provide a kind of charging pile itself program upgrade apparatus, and the device includes:
Acquisition module, for when upgrade request is received, obtaining the voltage of shaking hands of charging gun, wherein, the upgrading please Ask including:The version of upgrade file;
Sending module, if the voltage of shaking hands for the charging gun is preset value, according to the version number of upgrade file to Intelligent terminal sends upgrade command, so that upgrade file is sent to bottom from intelligent terminal corresponding to the version of the upgrade file Machine.
Further, the sending module is specifically used for:
If the voltage of shaking hands of the charging gun is preset value, the current version of charging pile itself program is obtained;
If the version of the upgrade file is higher than the current version, the intelligent terminal is controlled to be sent out to the slave computer Send instruction of shaking hands;
If getting the instruction of shaking hands that the slave computer is replied, upgrade file is passed through into bus transfer to the slave computer In.
Further, in addition to:
Memory block division module, for when upgrade request is received, obtaining the voltage of shaking hands of charging gun, wherein, it is described Upgrade request includes:Before the version of upgrade file, the internal storage region of slave computer is divided into the first memory block and second and deposited Storage area, wherein, the first memory block is used to store upgrade file corresponding to the version of upgrade file, and the second memory block is used to store and worked as Upgrade file corresponding to preceding version;
Accordingly, the sending module includes:
File transmitting element, if the voltage of shaking hands for the charging gun is preset value, according to the version of upgrade file Number to intelligent terminal send upgrade command so that upgrade file corresponding to the version of the upgrade file from intelligent terminal send to The first memory block in slave computer;
Upgrade unit, corresponding updating operation is carried out for the upgrade file in first memory block.
Further, in addition to:
Restoration module, if the voltage of shaking hands for the charging gun is preset value, according to the version number of upgrade file to Intelligent terminal sends upgrade command, so that upgrade file is sent to bottom from intelligent terminal corresponding to the version of the upgrade file After machine, after the completion of updating operation, if receiving deupdate instruction, the current version in second memory block is obtained Corresponding upgrade file carries out deupdate operation.
Further, the sending module is specifically used for:
If the voltage of shaking hands of the charging gun is preset value, is sent and risen to intelligent terminal according to the version number of upgrade file Level instruction, so that upgrade file corresponding to the version of the upgrade file passes through data transmission bus in the form of upgrading data packet Sent from intelligent terminal to slave computer, wherein, the upgrade file includes at least one upgrading data packet;
When last upgrading data packet is transmitted into slave computer, according to the whole upgrading data packets stored in slave computer Length, attribute and continuity whole upgrading data packets for judging to store in the slave computer whether be complete upgrade file;
If the whole upgrading data packets stored in slave computer are complete upgrade file, updating operation is carried out.
The embodiment of the present invention by when upgrade request is received, obtaining the voltage of shaking hands of charging gun, wherein, the upgrading Request includes:The version of upgrade file;If the voltage of shaking hands of the charging gun is preset value, according to the version number of upgrade file Upgrade command is sent to intelligent terminal, so that upgrade file corresponding to the version of the upgrade file is sent under from intelligent terminal Position machine, charging pile itself program, lifting upgrading efficiency can be upgraded automatically.
Brief description of the drawings
Fig. 1 is a kind of flow chart of charging pile itself programme upgrade method in the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of charging pile itself programme upgrade method in the embodiment of the present invention two;
Fig. 3 is a kind of flow chart of charging pile itself programme upgrade method in the embodiment of the present invention three;
Fig. 4 is a kind of structural representation of charging pile itself program upgrade apparatus in the embodiment of the present invention four.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
A kind of flow chart for charging pile itself programme upgrade method that Fig. 1 provides for the embodiment of the present invention one, the present embodiment The situation of charging pile itself program upgrading is applicable to, this method can be by itself program of charging pile provided in an embodiment of the present invention Update device is performed, and the device can be realized by the way of software and/or hardware, as shown in figure 1, this method specifically include as Lower step:
S110, when upgrade request is received, the voltage of shaking hands of charging gun is obtained, wherein, the upgrade request includes:Rise The version of level file.
Wherein, charging pile includes:Charging gun, intelligent terminal and slave computer.
Specifically, when an upgrade request is received, first obtaining the voltage of shaking hands of charging gun, according to shaking hands, voltage determines charging The current state of rifle.
S120, if the voltage of shaking hands of the charging gun is preset value, according to the version number of upgrade file to intelligent terminal Upgrade command is sent, so that upgrade file is sent to slave computer from intelligent terminal corresponding to the version of the upgrade file.
Wherein, the slave computer is the computer that direct control device obtains status of equipment, usually PLC/ single-chip microcomputers it Class, it is preferred that slave computer is single-chip microcomputer.
Specifically, it is by the process that charging gun is connected with vehicle interface:Charging gun button is pressed, inserts vehicle socket, then Decontrol charging gun button.Charging pile will detect the level change for the voltage 12V-6V-4V that shakes hands.Once detect that voltage of shaking hands is 4V, then illustrate that charging pile will determine that charging gun inserts successfully, vehicle interface is fully connected.
Specifically, illustrating that charging gun is in idle condition when the voltage of shaking hands of charging gun is preset value, such as can be, Preset value be 12V you, if the voltage of shaking hands for detecting charging gun is 12V, illustrate that charging gun is in idle condition, if When the voltage of shaking hands for detecting charging gun is 4V, then illustrate that charging gun is in running order.
Liter is received by CAN (Controller Area Network, controller local area network) bus specifically, working as During level request (including the version of upgrade file and escalation target address and command information), first determine whether charging pile is operated in Charged state, upgrade request can be hung up if charging pile is in charging, send busy condition message information and tell intelligent end Hold this upgrade command to ignore, be now arranged in charged state, it is impossible to complete escalation process, need to wait for idle period and carry out this again Escalation process.Current charging process is interrupted because of upgrading so that stop filling in target vehicle midway for protecting in charging process Can not be at full charge, in turn result in the situation of the ratio of increase cancel closedown.If charging pile is in idle condition, then according to liter Level request message version number obtains upgrade file, stores important operational factor, restarts current system.
Optionally, if the voltage of shaking hands of the charging gun is preset value, according to the version of upgrade file to intelligent terminal Upgrade command is sent, so that upgrade file corresponding to the version of the upgrade file is sent to slave computer from intelligent terminal, including:
If the voltage of shaking hands of the charging gun is preset value, the current version of charging pile itself program is obtained;
If the version of the upgrade file is higher than the current version, the intelligent terminal is controlled to be sent out to the slave computer Send instruction of shaking hands;
If getting the instruction of shaking hands that the slave computer is replied, upgrade file is passed through into bus transfer to the slave computer In.
Specifically, if charging pile is in idle condition, by the current of the version of upgrade file and charging pile itself program Version contrasts, if the version of upgrade file is identical with current version or lower than current version, ignores this upgrading, and pass through CAN message, which returns, ignores reason and current version information.
In a specific example, if the version of upgrade file is higher than the current version, start determining for 500MS When, instruction of shaking hands periodically is sent to slave computer, waits the reception data of simultaneously real-time query CAN communication port, until receiving Untill the instruction of shaking hands that slave computer is replied.Upgrading timeout mode is replied if instruction of shaking hands is not received in 500MS and jumps out entrance User program entrance starts to perform user program.
The technical scheme of the present embodiment, by when upgrade request is received, obtaining the voltage of shaking hands of charging gun, wherein, The upgrade request includes:The version of upgrade file;If the voltage of shaking hands of the charging gun is preset value, according to upgrade file Version number send upgrade command to intelligent terminal so that upgrade file corresponding to the version of the upgrade file is from intelligent terminal Send to slave computer, charging pile itself program, lifting upgrading efficiency can be upgraded automatically.
Embodiment two
Fig. 2 be the embodiment of the present invention two in a kind of charging pile itself programme upgrade method flow chart, the present embodiment with Optimized based on previous embodiment one, there is provided preferable charging pile itself programme upgrade method, be specifically, in receiving During upgrade request, the voltage of shaking hands of charging gun is obtained, wherein, the upgrade request includes:Before the version of upgrade file, also wrap Include:The internal storage region of slave computer is divided into the first memory block and the second memory block, wherein, the first memory block, which is used to store, to rise Upgrade file corresponding to the version of level file, the second memory block are used to store upgrade file corresponding to current version;Accordingly, if The voltage of shaking hands of the charging gun is preset value, then sends upgrade command to intelligent terminal according to the version number of upgrade file, with Upgrade file corresponding to the version of the upgrade file is set to be sent from intelligent terminal to slave computer, including:If the charging gun Voltage of shaking hands is preset value, then sends upgrade command to intelligent terminal according to the version number of upgrade file, so that the upgrading text Upgrade file corresponding to the version of part sends the first memory block into slave computer from intelligent terminal;According to first memory block In upgrade file carry out corresponding updating operation.
Accordingly, the method for the present embodiment specifically comprises the following steps:
S210, the internal storage region of slave computer is divided into the first memory block and the second memory block, wherein, the first memory block For storing upgrade file corresponding to the version of upgrade file, the second memory block is used to store upgrading text corresponding to current version Part.
Wherein, second memory block is used to back up upgrade file corresponding to current version, to prevent because upgrading fails Or the situation that the program after upgrading causes charging pile not use when going wrong.
Specifically, mainly complete initialization (CAN communication setting initialization, the function prompt instruction to MCU hardware adaptors Lamp, timer internal), the division to internal storage region, program cache address realm is defined, read internal processes FLASH and respectively mark Know position etc., carrying out data communication for follow-up and upgrading host computer does preparation at initial stage.
S220, when upgrade request is received, the voltage of shaking hands of charging gun is obtained, wherein, the upgrade request includes:Rise The version of level file.
S230, if the voltage of shaking hands of the charging gun is preset value, according to the version number of upgrade file to intelligent terminal Upgrade command is sent, so that upgrade file corresponding to the version of the upgrade file sends the into slave computer from intelligent terminal One memory block.
S240, the upgrade file in first memory block carry out corresponding updating operation.
Optionally, if the voltage of shaking hands of the charging gun is preset value, according to the version number of upgrade file to intelligent end End send upgrade command so that upgrade file corresponding to the version of the upgrade file from intelligent terminal send to slave computer it Afterwards, in addition to:
After the completion of updating operation, if receiving deupdate instruction, the current version in second memory block is obtained Upgrade file carries out deupdate operation corresponding to this.
Wherein, deupdate instruction, which is mainly used in after customer upgrade complete program, finds that upgrade file is problematic, does not have again When having the reparation of upgraded version.
Wherein, deupdate operation mainly by the charging pile after upgrading itself programe reduction for the charging pile before upgrading from Body program.
In a specific example, in DC charging rifle driver normal operation logic, received by CAN When being instructed to deupdate, the working condition of charging gun is determined according to the voltage of shaking hands of charging gun first, and then according to charging gun Working condition determine the working condition of charging pile, then judge the user APP of legacy version in internal FLASH memory storage region It whether there is, then judge whether effectively (i.e. the operation of APP1 identifies 0x08008000 by the user APP of legacy version in storage region Whether station location marker is effective), if the 0x08080000 contents of APP1 memory storages are then effectively copied to APP2 addresses In 0x08020000, set APP2 mark 0x08004000, and redirect APP2 user programs mark 0x08020000.And store weight The operational factor wanted, restarts current system.
The technical scheme of the present embodiment, by when upgrade request is received, obtaining the voltage of shaking hands of charging gun, wherein, The upgrade request includes:The version of upgrade file;If the voltage of shaking hands of the charging gun is preset value, according to upgrade file Version number send upgrade command to intelligent terminal so that upgrade file corresponding to the version of the upgrade file is from intelligent terminal Send to slave computer, charging pile itself program, lifting upgrading efficiency can be upgraded automatically.
Embodiment three
Fig. 3 be the embodiment of the present invention three in a kind of charging pile itself programme upgrade method flow chart, the present embodiment with Optimized based on above-described embodiment, in the present embodiment, if the voltage of shaking hands of the charging gun is preset value, according to liter The version number of level file sends upgrade command to intelligent terminal, so that upgrade file corresponding to the version of the upgrade file is from intelligence Energy terminal is sent to slave computer, including:If the voltage of shaking hands of the charging gun is preset value, according to the version number of upgrade file Upgrade command is sent to intelligent terminal, so that upgrade file is in the form of upgrading data packet corresponding to the version of the upgrade file Sent by data transmission bus from intelligent terminal to slave computer, wherein, the upgrade file includes at least one upgrading data Bag;When last upgrading data packet is transmitted into slave computer, according to the length of the whole upgrading data packets stored in slave computer Whether whole upgrading data packets that degree, attribute and continuity judge to store in the slave computer are complete upgrade file;Under if The whole upgrading data packets stored in the machine of position are complete upgrade file, then carry out updating operation.
As shown in figure 3, the method for the present embodiment specifically comprises the following steps:
S310, when upgrade request is received, the voltage of shaking hands of charging gun is obtained, wherein, the upgrade request includes:Rise The version of level file.
S320, if the voltage of shaking hands of the charging gun is preset value, according to the version number of upgrade file to intelligent terminal Upgrade command is sent, so that upgrade file corresponding to the version of the upgrade file is passed in the form of upgrading data packet by data Defeated bus is sent to slave computer from intelligent terminal, wherein, the upgrade file includes at least one upgrading data packet.
Wherein, the upgrade file is resolved into multiple upgrading data packets, transmitted successively to slave computer, for example, will upgrading File is divided into 4 upgrading data packets, and 4 upgrading data packets are transmitted into slave computer successively.
S330, when last upgrading data packet is transmitted into slave computer, upgraded according to the whole stored in slave computer Whether whole upgrading data packets that length, attribute and the continuity of packet judge to store in the slave computer are completely to upgrade File.
Optionally, can be judged to store in slave computer according to the length of the whole upgrading data packets stored in slave computer complete Whether portion's upgrading data packet is complete upgrade file;Can also be according to the attribute of the whole upgrading data packets stored in slave computer Whether the whole upgrading data packets for judging to store in slave computer are complete upgrade file;Can also be according to storing in slave computer Whether whole upgrading data packets that the continuity of whole upgrading data packets judges to store in slave computer are complete upgrade file, or Any two kinds of synthesis in the length of whole upgrading data packets that person can store according in slave computer, attribute and continuity are sentenced Whether the whole upgrading data packets stored in the disconnected slave computer are complete upgrade file.
S340, if the whole upgrading data packets stored in slave computer are complete upgrade file, carry out updating operation.
Specifically, if the whole upgrading data packets stored in slave computer are complete upgrade file, illustrate upgrade file All transmit into slave computer, then can proceed by upgrading.
In a specific example, because the program file of single-chip microcomputer in charging pile is HEX files mostly, and in bus The message of middle transmission, the effective word joint number of each frame is 8.Therefore need that HEX files are resolved into wrap to send single-chip microcomputer to more, Finally complete the programming of whole upgrade file.HEX files are split by the method that often row 3 wraps, so sent a line needs 3 altogether The message of frame CAN, add seven bytes per one frame identification of frame.Terminate until having sent last bag upgrade file.Data Transmitting procedure includes transmission HEX files and frame identification data.In cycle detection, the message for receiving a frame CAN is detected Extract the byte data of data field first first afterwards, judge Data Identification meaning, different disposal is carried out according to different meanings:If number According to the first byte, for mark (04) of shaking hands, then set is shaken hands flag bit, is shaken hands successfully message by CAN reply;If data First byte is 3 page datas transmission mark (01,02,03) then by mark order buffer corresponding data, and reply to receive and successfully mark Know message.When receive splicing checking mark (06) after still do and verify and with HEX files single file and check number Inspection, it is complete Into rear return one's own profession end of transmission state message;Current line bust this message is returned to if failure is verified, host computer starts Retransmission mechanism.Until after the completion of host computer is transferred to last column and verified, host computer is transmitted mark (08), boot Service routine starts the verification of HEX files continuity after receiving 08.
In another specific example, after single-chip microcomputer receives effect by CAN to be instructed, HEX files effect is performed Test program, the transmitting procedure of HEX files is transmitted by row, and often row is divided into 3 bag datas, after effect instruction is received, first This 3 bag data in sequence, is combined into a line, is stored in entitled array.The data received are carried out with cumulative and effect, array What the first byte represented is data length, and HEX files also have the attribute that 4 bytes represent HEX files except data, calculate first The length of data is received, adds 4 for the 1st byte, all bytes for receiving array length is then carried out cumulative and effect, and finally One byte compares, if mistake, returns to -1, correctly, then performs next step.Array attribute is judged, access group 4th byte, if it is HEX files beginning beginning flag that 0x04, which is represented, header flag is received at this moment set.If 0x00 is represented The data received, if other values represent wrong, return -1.When what is received is data need judge receive data it It is preceding whether to receive header, if not receiving the data that header just directly receives, then prove that HEX files are imperfect, return- 1.If the attribute received is data, and have received header before.If the first data, according to the address received The data length received with this, is added up, and is calculated the writing address of next data and is stored into variable, and set receives Initial data mark, 0 is returned to, and send back and answer data check right instructions.If not the first data, judge whether to receive Initial data mark, if confiscating return -1, otherwise judge to receive the address continuity of data, judge to receive the sheet in data Whether secondary address is consistent with the address offset of last computation, if inconsistent, it was demonstrated that the data received are wrong, and address is discontinuous - 1 is returned, otherwise proves that address is consistent, this address is then added data length, the writing address of next data is calculated and deposits Store up in variable, effect is carried out for receiving data next time.When HEX file integralities, after continuity verifies, start to chip Internal FLASH programmings, the FLASH spaces in APP1 areas are wiped first, then the application program in current APP2 regions by rule Skew copies APP1 areas to and empties APP2, write-in FLASH operation marks 0x08004000.APP1 stand-by programs, and write FLASH running mark 0x08008000, for realizing the user program local backup of last revision.Equipment is facilitated to realize that upgrading is anti- Regret function.After the completion of copy, the application program in APP2 regions is wiped, and this in RAM is received by CAN HEX files write in APP2FLASH regions in order, most rearmounted corresponding APP2 running marks position 0x08004000.Above-mentioned work( It can finish, whole escalation process terminates to send upgrading completion message, redirects APP2 user programs 0x08020000.
In another specific example, for itself program upgrading of the split type direct-current charging posts of 150KW, the embodiment of the present invention Scheme can apply to produce quantizing process, production before give each control chip this service routine of programming and factory testing amount Change program.Can direct package casing, complete complete machine.Detection is directly upgraded to after quantifying by online upgrading method dispatches from the factory admittedly Part program, it is not necessary to dismantle two layers of shell by CAN communication cable to each single-chip microcomputer Direct Programming, convenient and swift, production is once Shaping, improve production efficiency.In addition, the solution of the present invention also achieves remote maintenance functions, inside 150KW direct-current charging posts Integrated operating system, can connect internal network, and application development is carried out by being based on this upgrade method agreement to operating system, The local operating system program of charging station can directly be controlled by remote maintenance center by network, by means of the embodiment of the present invention Scheme upgrades to itself program of all charging piles in charging station.Manpower maintenance cost is greatlyd save, improves version liter The convenience of level.
The technical scheme of the present embodiment, by when upgrade request is received, obtaining the voltage of shaking hands of charging gun, wherein, The upgrade request includes:The version of upgrade file;If the voltage of shaking hands of the charging gun is preset value, according to upgrade file Version number send upgrade command to intelligent terminal so that upgrade file corresponding to the version of the upgrade file is from intelligent terminal Send to slave computer, charging pile itself program, lifting upgrading efficiency can be upgraded automatically.
Example IV
Fig. 4 is a kind of structural representation for charging pile itself program upgrade apparatus that the embodiment of the present invention four provides.This reality The situation that example is applicable to the upgrading of charging pile itself program is applied, the device can be realized by the way of software and/or hardware, the dress Putting can be integrated in the equipment of any offer charging pile itself program upgrade function, as shown in figure 4, itself program of the charging pile Update device specifically includes:Acquisition module 410 and sending module 420.
Wherein, acquisition module 410, for when upgrade request is received, obtaining the voltage of shaking hands of charging gun, wherein, institute Stating upgrade request includes:The version of upgrade file;
Sending module 420, if the voltage of shaking hands for the charging gun is preset value, according to the version number of upgrade file Upgrade command is sent to intelligent terminal, so that upgrade file corresponding to the version of the upgrade file is sent under from intelligent terminal Position machine.
Optionally, the sending module is specifically used for:
If the voltage of shaking hands of the charging gun is preset value, the current version of charging pile itself program is obtained;
If the version of the upgrade file is higher than the current version, the intelligent terminal is controlled to be sent out to the slave computer Send instruction of shaking hands;
If getting the instruction of shaking hands that the slave computer is replied, upgrade file is passed through into bus transfer to the slave computer In.
Optionally, in addition to:
Memory block division module, for when upgrade request is received, obtaining the voltage of shaking hands of charging gun, wherein, it is described Upgrade request includes:Before the version of upgrade file, the internal storage region of slave computer is divided into the first memory block and second and deposited Storage area, wherein, the first memory block is used to store upgrade file corresponding to the version of upgrade file, and the second memory block is used to store and worked as Upgrade file corresponding to preceding version;
Accordingly, the sending module includes:
File transmitting element, if the voltage of shaking hands for the charging gun is preset value, according to the version of upgrade file Number to intelligent terminal send upgrade command so that upgrade file corresponding to the version of the upgrade file from intelligent terminal send to The first memory block in slave computer;
Upgrade unit, corresponding updating operation is carried out for the upgrade file in first memory block.
Optionally, in addition to:
Restoration module, if the voltage of shaking hands for the charging gun is preset value, according to the version number of upgrade file to Intelligent terminal sends upgrade command, so that upgrade file is sent to bottom from intelligent terminal corresponding to the version of the upgrade file After machine, after the completion of updating operation, if receiving deupdate instruction, the current version in second memory block is obtained Corresponding upgrade file carries out deupdate operation.
Optionally, the sending module is specifically used for:
If the voltage of shaking hands of the charging gun is preset value, is sent and risen to intelligent terminal according to the version number of upgrade file Level instruction, so that upgrade file corresponding to the version of the upgrade file passes through data transmission bus in the form of upgrading data packet Sent from intelligent terminal to slave computer, wherein, the upgrade file includes at least one upgrading data packet;
When last upgrading data packet is transmitted into slave computer, according to the whole upgrading data packets stored in slave computer Length, attribute and continuity whole upgrading data packets for judging to store in the slave computer whether be complete upgrade file;
If the whole upgrading data packets stored in slave computer are complete upgrade file, updating operation is carried out.
The technical scheme of the present embodiment, by when upgrade request is received, obtaining the voltage of shaking hands of charging gun, wherein, The upgrade request includes:The version of upgrade file;If the voltage of shaking hands of the charging gun is preset value, according to upgrade file Version number send upgrade command to intelligent terminal so that upgrade file corresponding to the version of the upgrade file is from intelligent terminal Send to slave computer, charging pile itself program, lifting upgrading efficiency can be upgraded automatically.
The said goods can perform the method that any embodiment of the present invention is provided, and possess the corresponding functional module of execution method And beneficial effect.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

  1. A kind of 1. itself programme upgrade method of charging pile, it is characterised in that including:
    When upgrade request is received, the voltage of shaking hands of charging gun is obtained, wherein, the upgrade request includes:Upgrade file Version;
    If the voltage of shaking hands of the charging gun is preset value, upgrading is sent to intelligent terminal according to the version number of upgrade file and referred to Order, so that upgrade file is sent to slave computer from intelligent terminal corresponding to the version of the upgrade file.
  2. 2. according to the method for claim 1, it is characterised in that if the voltage of shaking hands of the charging gun is preset value, root According to upgrade file version to intelligent terminal send upgrade command so that upgrade file corresponding to the version of the upgrade file from Intelligent terminal is sent to slave computer, including:
    If the voltage of shaking hands of the charging gun is preset value, the current version of charging pile itself program is obtained;
    If the version of the upgrade file is higher than the current version, controls the intelligent terminal to be sent to the slave computer and hold Finger makes;
    If getting the instruction of shaking hands that the slave computer is replied, by upgrade file by bus transfer into the slave computer.
  3. 3. according to the method for claim 1, it is characterised in that when upgrade request is received, obtain shaking hands for charging gun Voltage, wherein, the upgrade request includes:Before the version of upgrade file, in addition to:
    The internal storage region of slave computer is divided into the first memory block and the second memory block, wherein, the first memory block is used to store Upgrade file corresponding to the version of upgrade file, the second memory block are used to store upgrade file corresponding to current version;
    Accordingly, if the voltage of shaking hands of the charging gun is preset value, sent out according to the version number of upgrade file to intelligent terminal Upgrade command is sent, so that upgrade file corresponding to the version of the upgrade file is sent to slave computer from intelligent terminal, including:
    If the voltage of shaking hands of the charging gun is preset value, upgrading is sent to intelligent terminal according to the version number of upgrade file and referred to Order, so that upgrade file corresponding to the version of the upgrade file sends the first memory block into slave computer from intelligent terminal;
    Upgrade file in first memory block carries out corresponding updating operation.
  4. 4. according to the method for claim 3, it is characterised in that if the voltage of shaking hands of the charging gun is preset value, root Upgrade command is sent to intelligent terminal according to the version number of upgrade file, so that upgrade file corresponding to the version of the upgrade file Sent from intelligent terminal to slave computer, in addition to:
    After the completion of updating operation, if receiving deupdate instruction, the current version pair in second memory block is obtained The upgrade file answered carries out deupdate operation.
  5. 5. according to the method for claim 1, it is characterised in that if the voltage of shaking hands of the charging gun is preset value, root Upgrade command is sent to intelligent terminal according to the version number of upgrade file, so that upgrade file corresponding to the version of the upgrade file Sent from intelligent terminal to slave computer, including:
    If the voltage of shaking hands of the charging gun is preset value, upgrading is sent to intelligent terminal according to the version number of upgrade file and referred to Order so that upgrade file corresponding to the version of the upgrade file in the form of upgrading data packet by data transmission bus from intelligence Energy terminal is sent to slave computer, wherein, the upgrade file includes at least one upgrading data packet;
    When last upgrading data packet is transmitted into slave computer, according to the length of the whole upgrading data packets stored in slave computer Whether whole upgrading data packets that degree, attribute and continuity judge to store in the slave computer are complete upgrade file;
    If the whole upgrading data packets stored in slave computer are complete upgrade file, updating operation is carried out.
  6. A kind of 6. itself program upgrade apparatus of charging pile, it is characterised in that including:
    Acquisition module, for when upgrade request is received, obtaining the voltage of shaking hands of charging gun, wherein, the upgrade request bag Include:The version of upgrade file;
    Sending module, if the voltage of shaking hands for the charging gun is preset value, according to the version number of upgrade file to intelligence Terminal sends upgrade command, so that upgrade file is sent to slave computer from intelligent terminal corresponding to the version of the upgrade file.
  7. 7. device according to claim 6, it is characterised in that the sending module is specifically used for:
    If the voltage of shaking hands of the charging gun is preset value, the current version of charging pile itself program is obtained;
    If the version of the upgrade file is higher than the current version, controls the intelligent terminal to be sent to the slave computer and hold Finger makes;
    If getting the instruction of shaking hands that the slave computer is replied, by upgrade file by bus transfer into the slave computer.
  8. 8. device according to claim 6, it is characterised in that also include:
    Memory block division module, for when upgrade request is received, obtaining the voltage of shaking hands of charging gun, wherein, the upgrading Request includes:Before the version of upgrade file, the internal storage region of slave computer is divided into the first memory block and the second memory block, Wherein, the first memory block is used to store upgrade file corresponding to the version of upgrade file, and the second memory block is used to store current version Upgrade file corresponding to this;
    Accordingly, the sending module includes:
    File transmitting element, if the voltage of shaking hands for the charging gun is preset value, according to the version number of upgrade file to Intelligent terminal sends upgrade command, so that upgrade file is sent to bottom from intelligent terminal corresponding to the version of the upgrade file The first memory block in machine;
    Upgrade unit, corresponding updating operation is carried out for the upgrade file in first memory block.
  9. 9. device according to claim 8, it is characterised in that also include:
    Restoration module, if the voltage of shaking hands for the charging gun is preset value, according to the version number of upgrade file to intelligence Terminal send upgrade command so that upgrade file corresponding to the version of the upgrade file from intelligent terminal send to slave computer it Afterwards, after the completion of updating operation, if receiving deupdate instruction, the current version obtained in second memory block is corresponding Upgrade file carry out deupdate operation.
  10. 10. device according to claim 6, it is characterised in that the sending module is specifically used for:
    If the voltage of shaking hands of the charging gun is preset value, upgrading is sent to intelligent terminal according to the version number of upgrade file and referred to Order so that upgrade file corresponding to the version of the upgrade file in the form of upgrading data packet by data transmission bus from intelligence Energy terminal is sent to slave computer, wherein, the upgrade file includes at least one upgrading data packet;
    When last upgrading data packet is transmitted into slave computer, according to the length of the whole upgrading data packets stored in slave computer Whether whole upgrading data packets that degree, attribute and continuity judge to store in the slave computer are complete upgrade file;
    If the whole upgrading data packets stored in slave computer are complete upgrade file, updating operation is carried out.
CN201710655667.9A 2017-08-03 2017-08-03 A kind of itself programme upgrade method of charging pile and device Pending CN107402794A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710655667.9A CN107402794A (en) 2017-08-03 2017-08-03 A kind of itself programme upgrade method of charging pile and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710655667.9A CN107402794A (en) 2017-08-03 2017-08-03 A kind of itself programme upgrade method of charging pile and device

Publications (1)

Publication Number Publication Date
CN107402794A true CN107402794A (en) 2017-11-28

Family

ID=60401932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710655667.9A Pending CN107402794A (en) 2017-08-03 2017-08-03 A kind of itself programme upgrade method of charging pile and device

Country Status (1)

Country Link
CN (1) CN107402794A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213647A (en) * 2018-08-29 2019-01-15 努比亚技术有限公司 A kind of brush machine testing method, mobile terminal and computer readable storage medium
CN109918105A (en) * 2019-02-21 2019-06-21 福建星云电子股份有限公司 A kind of charging pile software automatic on-line upgrade method and system
WO2020064443A1 (en) * 2018-09-25 2020-04-02 Innogy Se Firmware update by central control module of a charging station
CN111538515A (en) * 2020-04-17 2020-08-14 杭州海兴电力科技股份有限公司 Method, device and equipment for upgrading electric energy meter program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204886222U (en) * 2015-06-10 2015-12-16 陕西心网新能源科技有限公司 Realize stake of charging of long -range upgrading of software
CN105808296A (en) * 2016-03-08 2016-07-27 江苏万帮德和新能源科技有限公司 Client side software startup method used for charging pile to safely upgrade own program
WO2016180271A1 (en) * 2015-05-08 2016-11-17 山东大学 System and method of controlling electric car charging post on the basis of electric grid frequency regulation
CN206271103U (en) * 2016-11-30 2017-06-20 深圳充电网科技有限公司 Charging pile message accounting and charging pile
CN106878287A (en) * 2017-01-20 2017-06-20 上海蔚来汽车有限公司 Charging and conversion electric facility programme upgrade method and system and AKU circulation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016180271A1 (en) * 2015-05-08 2016-11-17 山东大学 System and method of controlling electric car charging post on the basis of electric grid frequency regulation
CN204886222U (en) * 2015-06-10 2015-12-16 陕西心网新能源科技有限公司 Realize stake of charging of long -range upgrading of software
CN105808296A (en) * 2016-03-08 2016-07-27 江苏万帮德和新能源科技有限公司 Client side software startup method used for charging pile to safely upgrade own program
CN206271103U (en) * 2016-11-30 2017-06-20 深圳充电网科技有限公司 Charging pile message accounting and charging pile
CN106878287A (en) * 2017-01-20 2017-06-20 上海蔚来汽车有限公司 Charging and conversion electric facility programme upgrade method and system and AKU circulation method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213647A (en) * 2018-08-29 2019-01-15 努比亚技术有限公司 A kind of brush machine testing method, mobile terminal and computer readable storage medium
CN109213647B (en) * 2018-08-29 2021-11-19 努比亚技术有限公司 Flash detection method, mobile terminal and computer readable storage medium
WO2020064443A1 (en) * 2018-09-25 2020-04-02 Innogy Se Firmware update by central control module of a charging station
CN109918105A (en) * 2019-02-21 2019-06-21 福建星云电子股份有限公司 A kind of charging pile software automatic on-line upgrade method and system
CN111538515A (en) * 2020-04-17 2020-08-14 杭州海兴电力科技股份有限公司 Method, device and equipment for upgrading electric energy meter program

Similar Documents

Publication Publication Date Title
CN107402794A (en) A kind of itself programme upgrade method of charging pile and device
CN110134415A (en) A kind of controller and its method for upgrading software and device
CN105573810A (en) Remote upgrade method and remote upgrade device for wireless sensor network node
CN105740034A (en) System and method for upgrading firmware of MCU on line
CN109842523A (en) A kind of firmware upgrade method, device, equipment and storage medium
CN109189445A (en) A kind of method of internet of things equipment program upgrading
CN109002310A (en) firmware upgrade method
CN111008033A (en) Universal DSP (digital signal processor) online upgrading system and upgrading method based on serial port
CN107357595B (en) Bus-based multi-driver firmware online updating system
CN104820609A (en) Embedded system and upgrade maintenance method thereof
CN112612490A (en) Vehicle upgrading method, vehicle and storage medium
CN102637134B (en) Software loading and storing method under embedded asymmetric multiprocessing architecture
CN107770299A (en) A kind of MAC Address writes with a brush dipped in Chinese ink method, system, device and storage medium
CN107562493A (en) Chip online upgrading method and computer-readable recording medium
CN103685578B (en) The data transmission method of master-slave equipment
CN107908417A (en) Firmware upgrade method and electronic equipment
CN110321170A (en) Starting-up method
CN109901866A (en) Online upgrading method and rotary steering system for multi-module system
CN111538515A (en) Method, device and equipment for upgrading electric energy meter program
CN110531994A (en) Method for burn-recording, replication tool and computer equipment
CN108572847A (en) A method of scm software version is upgraded by USB port
CN107656765A (en) A kind of method, system and the terminal device of equipment initialization
CN107015829A (en) Audio system upgrade method, device
CN106445592A (en) Long-distance multi-machine program upgrading method based on WIFI and CAN bus
CN110244970A (en) A kind of single-chip microcontroller and its upgrade-system, upgrade method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171128

RJ01 Rejection of invention patent application after publication