CN113535202B - Charging pile upgrading method, upgrading device and charging pile system - Google Patents

Charging pile upgrading method, upgrading device and charging pile system Download PDF

Info

Publication number
CN113535202B
CN113535202B CN202110731816.1A CN202110731816A CN113535202B CN 113535202 B CN113535202 B CN 113535202B CN 202110731816 A CN202110731816 A CN 202110731816A CN 113535202 B CN113535202 B CN 113535202B
Authority
CN
China
Prior art keywords
electronic control
control unit
upgrade
target electronic
server
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
CN202110731816.1A
Other languages
Chinese (zh)
Other versions
CN113535202A (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.)
Dupu Suzhou New Energy Technology Co ltd
Original Assignee
Dupu Suzhou New 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 Dupu Suzhou New Energy Technology Co ltd filed Critical Dupu Suzhou New Energy Technology Co ltd
Priority to CN202110731816.1A priority Critical patent/CN113535202B/en
Publication of CN113535202A publication Critical patent/CN113535202A/en
Application granted granted Critical
Publication of CN113535202B publication Critical patent/CN113535202B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides an upgrading method and device of a charging pile and a charging pile system, wherein the charging pile comprises at least one electronic control unit, and the method comprises the following steps: acquiring first software version information of all electronic control units and sending the first software version information to a server; receiving an upgrade instruction sent by a server, wherein the upgrade instruction is generated by the server under the condition that a target electronic control unit is determined to exist according to the version information of each first software, the upgrade instruction comprises an upgrade packet corresponding to the target electronic control unit, and the target electronic control unit is the electronic control unit to be upgraded; and controlling the target electronic control unit to upgrade according to the upgrade instruction. The method of the application realizes remote upgrading of the charging pile, ensures that the charging pile is more convenient to upgrade, avoids the tedious step of upgrading by personnel to the site, and saves time.

Description

Charging pile upgrading method, upgrading device and charging pile system
Technical Field
The application relates to the field of charging piles, in particular to an upgrading method and device of a charging pile, a computer readable storage medium, a processor and a charging pile system.
Background
In the prior art, a professional is generally required to carry upgrade tools such as USB (Universal Serial Bus ), OTP (One Time Password, one-time password) and a burning tool to the place where the charging pile is arranged, so that the charging pile is upgraded, and the upgrade of the charging pile is inconvenient.
Therefore, a method is needed to improve the problem of inconvenient upgrading of the charging pile in the prior art.
The above information disclosed in the background section is only for enhancement of understanding of the background art from the technology described herein and, therefore, may contain some information that does not form the prior art that is already known in the country to a person of ordinary skill in the art.
Disclosure of Invention
The application mainly aims to provide an upgrading method and device for a charging pile, a computer-readable storage medium, a processor and a charging pile system, so as to solve the problem of inconvenient upgrading of the charging pile in the prior art.
According to an aspect of the embodiment of the present invention, there is provided a method for upgrading a charging pile, the charging pile including at least one electronic control unit, the method including: acquiring all first software version information of the electronic control units and sending the information to a server; receiving an upgrade instruction sent by the server, wherein the upgrade instruction is generated by the server under the condition that a target electronic control unit exists according to the first software version information, the upgrade instruction comprises an upgrade packet corresponding to the target electronic control unit, and the target electronic control unit is the electronic control unit to be upgraded; and controlling the target electronic control unit to upgrade according to the upgrade instruction.
Optionally, receiving an upgrade instruction sent by the server includes: receiving a first instruction sent by the server, wherein the first instruction is an instruction for representing that the charging pile needs to be upgraded; and receiving the upgrade package sent by the server, wherein the first instruction and the upgrade package form the upgrade instruction.
Optionally, according to the upgrade instruction, controlling the target electronic control unit to upgrade includes: a stopping step, according to the first instruction, controlling all the electronic control units to stop the current work; a first determining step of determining whether the target electronic control unit is in an idle state; a first repeating step of repeating the first determining step at least once in the case where the target electronic control unit is not in the idle state until the target electronic control unit is in the idle state; and a first upgrading step, wherein the target electronic control unit is controlled to be upgraded according to the upgrading packet under the condition that the target electronic control unit is in the idle state.
Optionally, after the stopping step, before the first determining step, the method further comprises: storing all the data of the current work.
Optionally, after controlling the target electronic control unit to perform upgrading according to the upgrading instruction, the method further includes: a second determining step of determining whether the target electronic control unit is successfully upgraded; a second upgrading step of controlling the target electronic control unit to upgrade again under the condition that the upgrade of the target electronic control unit fails; and a second repeating step, wherein the second determining step and the second upgrading step are repeated at least once until the target electronic control unit is successfully upgraded.
Optionally, after the target electronic control unit is successfully upgraded, the method further comprises: acquiring the updated software data package of the target electronic control unit; and sending the software data packet to the server, wherein the software data packet comprises second software version information, upgrading success information and software change information.
Optionally, after controlling the target electronic control unit to perform upgrading according to the upgrading instruction, the method further includes: restarting the target electronic control unit after the upgrading; and controlling all the electronic control units to resume the current work.
Optionally, the electronic control unit includes a remote information processor and other electronic control units, where the remote information processor is electrically connected to the other electronic control units, and obtains first software version information of all the electronic control units and sends the first software version information to a server, and the method includes: acquiring third software version information of the remote information processor; the remote information processor is used for acquiring fourth software version information of the other electronic control units, the third software version information and the fourth software version information form the first software version information, and the target electronic control unit is controlled to be upgraded according to the upgrading instruction, and the method comprises the following steps: if the target electronic control unit is the remote information processor, the upgrade package is sent to the remote information processor, and the remote information processor is controlled to be upgraded; and under the condition that the target electronic control unit is other electronic control units, sending the upgrade package to the other electronic control units through the remote information processor, and controlling the other electronic control units to upgrade.
According to another aspect of the embodiment of the present invention, there is also provided an upgrade apparatus for a charging pile, including: the charging pile comprises at least one electronic control unit, and the device comprises: the first acquisition unit is used for acquiring the first software version information of all the electronic control units and sending the first software version information to the server; the receiving unit is used for receiving an upgrade instruction sent by the server, wherein the upgrade instruction is generated by the server under the condition that a target electronic control unit exists according to the first software version information, the upgrade instruction comprises an upgrade packet corresponding to the target electronic control unit, and the target electronic control unit is the electronic control unit to be upgraded; and the first control unit is used for controlling the target electronic control unit to carry out upgrading according to the upgrading instruction.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program performs any one of the methods.
According to another aspect of the embodiment of the present invention, there is further provided a processor, where the processor is configured to execute a program, and when the program is executed, perform any one of the methods.
According to another aspect of the embodiment of the present invention, there is also provided a charging pile system including: comprising the following steps: the charging pile comprises at least one electronic control unit; a server; and the upgrading device of the charging pile performs any one of the methods.
In the upgrade method of the charging pile in the embodiment of the application, first, the first software version information of all the electronic control units of the charging pile is obtained, and the first software version information is sent to a server; then, receiving an upgrade instruction fed back by the server, wherein the upgrade instruction comprises an upgrade package of a target electronic control unit to be upgraded; and finally, upgrading the target electronic control unit according to the upgrading instruction. According to the method, the version information of the electronic control unit is sent to the server, the server judges whether the target electronic control unit to be upgraded exists, and the upgrading instruction is received from the server to upgrade the target electronic control unit under the condition that the target electronic control unit exists, so that remote upgrading of the charging pile is realized, convenience in upgrading of the charging pile is ensured, complicated steps of upgrading by personnel to the site are avoided, and time is saved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
FIG. 1 illustrates a flow diagram generated by an upgrade method of a charging pile according to an embodiment of the present application;
fig. 2 shows a schematic diagram of an upgrade apparatus of a charging pile according to an embodiment of the present application.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Furthermore, in the description and in the claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
As described in the background art, in order to solve the above problems, in an exemplary embodiment of the present application, there is provided a charging pile upgrading method, an upgrading device, a computer readable storage medium, a processor, and a charging pile system.
According to the embodiment of the application, an upgrading method of a charging pile is provided.
Fig. 1 is a flowchart of a method of upgrading a charging pile according to an embodiment of the present application. The charging pile comprises at least one electronic control unit, as shown in fig. 1, and the method comprises the following steps:
step S101, obtaining the first software version information of all the electronic control units and sending the first software version information to a server;
Step S102, receiving an upgrade instruction sent by the server, wherein the upgrade instruction is generated by the server when determining that a target electronic control unit exists according to the first software version information, the upgrade instruction comprises an upgrade package corresponding to the target electronic control unit, and the target electronic control unit is the electronic control unit to be upgraded;
step S103, according to the upgrade instruction, the target electronic control unit is controlled to upgrade.
In the method for upgrading the charging pile, first software version information of all electronic control units of the charging pile is obtained, and the first software version information is sent to a server; then, receiving an upgrade instruction fed back by the server, wherein the upgrade instruction comprises an upgrade package of a target electronic control unit to be upgraded; and finally, upgrading the target electronic control unit according to the upgrading instruction. According to the method, the version information of the electronic control unit is sent to the server, the server judges whether the target electronic control unit to be upgraded exists or not, and the upgrading instruction is received from the server to upgrade the target electronic control unit under the condition that the target electronic control unit exists, so that remote upgrading of the charging pile is realized, convenience in upgrading of the charging pile is ensured, complicated steps of upgrading by personnel to the site are avoided, and time is saved.
In a specific embodiment, the charging pile is a mobile charging pile.
In a specific embodiment of the present application, before acquiring the first software version information of all the electronic control units and sending the first software version information to the server, the method further includes: establishing communication with the server; determining whether the communication is normal, acquiring the first software version information of all the electronic control units and sending the first software version information to a server, wherein the method comprises the following steps: and under the condition that the communication is normal, acquiring all the first software version information and sending the first software version information to the server. By establishing normal communication with the server, the stability, accuracy and safety of subsequent information transmission are facilitated.
In the actual application process, determining whether the communication is normal comprises at least one of the following steps: determining whether the current communication signal strength reaches a preset range (different networking modes, such as WI-FI, PHY (physical layer) connection or 4G signals, etc.), wherein the definition of corresponding RSSI (RECEIVED SIGNAL Indication, received signal strength Indication) is different, for example, the RSSI of the 4G signal is 0-30, the closer to 30, the better, the need is greater than 20, and the skilled person can flexibly determine the preset range according to the actual situation); it is determined whether the handshake signals are stable.
In the case where it is determined that the communication is abnormal, it is necessary to establish the communication with the server again and determine whether the established communication is normal or not until it is determined that the established communication is normal.
According to a specific embodiment of the present application, receiving an upgrade instruction sent by the server includes: receiving a first instruction sent by the server, wherein the first instruction is an instruction for representing that the charging pile needs to be upgraded; and receiving the upgrade package sent by the server, wherein the first instruction and the upgrade package form the upgrade instruction.
According to another specific embodiment of the present application, the server stores an upgrade package and a patch of the latest version of each electronic control unit of the charging pile, after receiving each piece of the first software version information, compares each piece of the first software version information with a software version of a corresponding upgrade package stored in the server, determines that the charging pile needs to be upgraded when determining that the software version of the first software version information is lower than the software version of the upgrade package stored in the server, generates the first instruction, determines that the electronic control unit corresponding to the first software version information is a target electronic control unit, and sends the upgrade package of the latest version corresponding to the target electronic control unit together with the first instruction.
According to another specific embodiment of the present application, according to the upgrade instruction, the controlling the target electronic control unit to upgrade includes: a stopping step of controlling all the electronic control units to stop the current work according to the first instruction, namely, in the upgrading process, the charging pile does not support charging of an external vehicle and does not support other works; a first determining step of determining whether the target electronic control unit is in an idle state; a first repeating step of repeating the first determining step at least once in the case where the target electronic control unit is not in the idle state until the target electronic control unit is in the idle state; and a first upgrading step, controlling the target electronic control unit to upgrade according to the upgrade package when the target electronic control unit is in the idle state. The method executes the first determining step after the stopping step, so that the problem that the current working data of the target electronic control unit is lost due to upgrading the target electronic control unit under the condition that the target electronic control unit is still in a working state is avoided; meanwhile, all the electronic control units are controlled to stop the current work before upgrading, so that the upgrading is further facilitated.
Specifically, the idle state mainly includes that the target electronic control unit is not in the charging process, that the target electronic control unit is not in the advertisement data update, and that the target electronic control unit is not in the parameter configuration, and of course, the idle state is not limited to the above state, and may include other states.
In an actual application process, after the stopping step, before the first determining step, the method further includes: all the data of the current operation are stored. Thus, the current work can be continued according to the stored data of the current work after the subsequent upgrading is finished. Specifically, the charging pile includes a remote information processor and other electronic control units, the remote information processor includes an EMMC (Embedded Multi MEDIA CARD, embedded memory), the remote information processor and the other electronic control units are electrically connected through a CAN (Controller Area Network ) bus, and the currently operating data of each electronic control unit is transmitted to the EMMC of the remote information processor through the CAN bus for storage.
In order to further ensure that the charging pile can successfully complete the upgrade, in another specific embodiment of the present application, after the target electronic control unit is controlled to perform the upgrade according to the upgrade instruction, the method further includes: a second determining step of determining whether the target electronic control unit is successfully upgraded; a second upgrade step of controlling the target electronic control unit to upgrade again in case that the upgrade of the target electronic control unit fails; and a second repeating step, wherein the second determining step and the second upgrading step are repeated at least once until the target electronic control unit is successfully upgraded.
In the practical application process, before the upper limit of the software refreshing times of the charging pile is not reached, the target electronic control unit which is not successfully upgraded can be upgraded until the target electronic control unit is successfully upgraded, because the upgrading process is sometimes influenced by unexpected adverse environments, and the upgrading can be continuously attempted as long as the running period of an upgrading program is not damaged.
In a specific embodiment, the remote information controller and other electronic control units send software version information to the EMMC and store the software version information, and the method may obtain the first software version information of each electronic control unit through the EMMC and send the first software version information to the server.
According to still another specific embodiment of the present application, after the target electronic control unit is successfully upgraded, the method further includes: acquiring the software data package of the updated target electronic control unit; and sending the software data packet to the server, wherein the software data packet comprises second software version information, upgrading success information and software change information. By sending the updated software data packet to the server, the server can conveniently know the state of each electronic control unit of the charging pile, and the version tracing, judging and managing in the next upgrading process can be facilitated.
According to another specific embodiment of the present application, after the server receives the software data packet, the server performs MD5 verification on the software data packet to determine that the upgrade is problematic, and if the verification fails, the server records failure information and the second software version information, performs background analysis according to the failure information, and at the same time, generates an upgrade instruction again to perform secondary upgrade on the electronic control unit that fails in upgrade, where the secondary upgrade still has a problem, and the server reports the first failure information to the terminal for related personnel to intervene in the process. In addition, if the server does not receive the updated software data packet of the target electronic control unit within a preset time period, the second fault information is reported to the terminal so as to facilitate manual intervention.
In another specific embodiment of the present application, after controlling the target electronic control unit to perform the upgrade according to the upgrade instruction, the method further includes: restarting the target electronic control unit after the control is upgraded; and controlling all the electronic control units to resume the current work. In a more specific embodiment of the present application, after the server receives the software data packet and verifies that there is no problem, an upgrade completion command is sent out, and the method controls all the electronic control units to resume the current operation when the upgrade completion command is received.
According to another specific embodiment of the present application, the electronic control unit includes a remote information processor and other electronic control units, the remote information processor is electrically connected with the other electronic control units, and obtains and sends first software version information of all the electronic control units to a server, including: acquiring third software version information of the remote information processor; the remote information processor is used for obtaining fourth software version information of the other electronic control units, the third software version information and the fourth software version information form the first software version information, and the target electronic control unit is controlled to be upgraded according to the upgrading instruction, and the remote information processor comprises: when the target electronic control unit is the remote information processor, the upgrade package is sent to the remote information processor, and the remote information processor is controlled to upgrade; and when the target electronic control unit is other electronic control units, the upgrade package is sent to the other electronic control units through the remote information processor, and the other electronic control units are controlled to be upgraded.
In an actual application process, when the target electronic control unit is the remote information processor, the upgrade package is sent to the remote information processor, and when the remote information processor is controlled to upgrade, the remote information processor can enter a BootLoader mode, and when the target electronic control unit is other electronic control units, the upgrade package is sent to the other electronic control units through the remote information processor, and when the other electronic control units are controlled to upgrade, the BootLoader mode is not required to be entered.
In the actual application process, under the condition that the target electronic control unit is the remote information processor, acquiring the updated software data packet of the target electronic control unit, namely acquiring the updated software data packet of the remote information processor; and when the target electronic control unit is the other electronic control unit, acquiring the updated software data packet of the target electronic control unit, namely acquiring the updated software data packet of the other electronic control unit through the remote information processor.
In practical applications, the other electronic control units include BMS (Battery MANAGEMENT SYSTEM ), EMS (ENERGY MANAGEMENT SYSTEM, energy management system), CCU (Current Control Unit ), and the like. The server is a FOTA (Firmware Over-The-Air) server. The server and the remote information controller of the charging pile realize communication through WI-FI, 4G network or Ethernet. The client logs in the server to perform simple page operation, packages the upgrade file according to own requirements, selects the ID of the charging pile, clicks to download and install, and can finish OTA (Over-the-Air Technology) cloud upgrade of the charging pile, thereby achieving remote system repair, optimization, function addition and the like of the charging pile, and further solving the complicated steps and time waste of the on-site online upgrade which are required by people in the prior art.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides an upgrading device for the charging pile, and the upgrading device for the charging pile can be used for executing the upgrading method for the charging pile. The following describes an upgrading device for a charging pile provided by the embodiment of the application.
Fig. 2 is a schematic diagram of an upgrade apparatus for a charging pile according to an embodiment of the present application. The charging pile includes at least one electronic control unit, as shown in fig. 2, the apparatus includes a first obtaining unit 10, a receiving unit 20, and a first control unit 30, where the first obtaining unit 10 is configured to obtain first software version information of all the electronic control units and send the first software version information to a server; the receiving unit 20 is configured to receive an upgrade instruction sent by the server, where the upgrade instruction is generated by the server when it is determined that a target electronic control unit exists according to the first software version information, the upgrade instruction includes an upgrade packet corresponding to the target electronic control unit, and the target electronic control unit is the electronic control unit to be upgraded; the first control unit 30 is configured to control the target electronic control unit to perform an upgrade according to the upgrade instruction.
In the upgrade device of the charging pile, the first obtaining unit obtains the first software version information of all the electronic control units of the charging pile, and sends the first software version information to the server; receiving an upgrade instruction fed back by the server through the receiving unit, wherein the upgrade instruction comprises an upgrade package of a target electronic control unit to be upgraded; and upgrading the target electronic control unit through the first control unit according to the upgrading instruction. According to the device, the version information of the electronic control unit is sent to the server, the server judges whether the target electronic control unit to be upgraded exists or not, and the upgrading instruction is received from the server to upgrade the target electronic control unit under the condition that the target electronic control unit exists, so that remote upgrading of the charging pile is realized, convenience in upgrading of the charging pile is ensured, complicated steps of upgrading by personnel to the site are avoided, and time is saved.
In a specific embodiment, the charging pile is a mobile charging pile.
In a specific embodiment of the present application, the device further includes a setting unit and a first determining unit, where the setting unit is configured to set up communication with the server before acquiring the first software version information of all the electronic control units and sending the first software version information to the server; the first determining unit is configured to determine whether the communication is normal, and the first acquiring unit includes a first acquiring module, where the first acquiring module is configured to acquire all the first software version information and send the first software version information to the server when the communication is normal. By establishing normal communication with the server, the stability, accuracy and safety of subsequent information transmission are facilitated.
In an actual application process, the first determining unit includes at least one of the following: a first determining module, configured to determine whether the current communication signal strength reaches a predetermined range (different networking modes, such as WI-FI, PHY (physical layer) connection, or 4G signal, etc.), where the corresponding RSSI (RECEIVED SIGNAL Indication, received signal strength Indication) definition is different, for example, the closer to 30, the better, the more 20 is required, and those skilled in the art can flexibly determine the predetermined range according to the actual situation); and the second determining module is used for determining whether the handshake signals are stable.
In the case where it is determined that the communication is abnormal, it is necessary to establish the communication with the server again and determine whether the established communication is normal or not until it is determined that the established communication is normal.
According to a specific embodiment of the present application, the receiving unit includes a first receiving module and a second receiving module, where the first receiving module is configured to receive a first instruction sent by the server, where the first instruction is an instruction indicating that the charging pile needs to be upgraded; the second receiving module is configured to receive the upgrade package sent by the server, where the first instruction and the upgrade package form the upgrade instruction.
According to another specific embodiment of the present application, the server stores an upgrade package and a patch of the latest version of each electronic control unit of the charging pile, after receiving each piece of the first software version information, compares each piece of the first software version information with a software version of a corresponding upgrade package stored in the server, determines that the charging pile needs to be upgraded when determining that the software version of the first software version information is lower than the software version of the upgrade package stored in the server, generates the first instruction, determines that the electronic control unit corresponding to the first software version information is a target electronic control unit, and sends the upgrade package of the latest version corresponding to the target electronic control unit together with the first instruction.
According to another specific embodiment of the present application, the first control unit includes a stopping module, a third determining module, a first repeating module, and a first upgrading module, where the stopping module is configured to stop the step, and control all the electronic control units to stop the current operation according to the first instruction, that is, in the upgrading process, the charging pile does not support charging the external vehicle, and does not support other operations; the third determining module is configured to determine whether the target electronic control unit is in an idle state in the first determining step; the first repeating module is configured to repeat the first determining step at least once when the target ecu is not in the idle state, until the target ecu is in the idle state; the first upgrade module is used for a first upgrade step, and controls the target electronic control unit to upgrade according to the upgrade package when the target electronic control unit is in the idle state. The device executes the first determining step after the stopping step, so that the problem that the current working data of the target electronic control unit is lost due to upgrading the target electronic control unit under the condition that the target electronic control unit is still in a working state is avoided; meanwhile, all the electronic control units are controlled to stop the current work before upgrading, so that the upgrading is further facilitated.
Specifically, the idle state mainly includes that the target electronic control unit is not in the charging process, that the target electronic control unit is not in the advertisement data update, and that the target electronic control unit is not in the parameter configuration, and of course, the idle state is not limited to the above state, and may include other states.
In an actual application process, the device further comprises a storage unit, wherein the storage unit is used for storing all the data of the current operation after the stopping step and before the first determining step. Thus, the current work can be continued according to the stored data of the current work after the subsequent upgrading is finished. Specifically, the charging pile includes a remote information processor and other electronic control units, the remote information processor includes an EMMC (Embedded Multi MEDIA CARD, embedded memory), the remote information processor and the other electronic control units are electrically connected through a CAN (Controller Area Network ) bus, and the currently operating data of each electronic control unit is transmitted to the EMMC of the remote information processor through the CAN bus for storage.
In order to further ensure that the charging pile can successfully complete the upgrade, in another specific embodiment of the present application, the apparatus further includes a second determining unit, an upgrade unit, and a repeating unit, where the second determining unit is configured to execute a second determining step after controlling the target electronic control unit to perform the upgrade according to the upgrade instruction, to determine whether the upgrade of the target electronic control unit is successful; the upgrade unit is used for a second upgrade step, and controls the target electronic control unit to upgrade again under the condition that the upgrade of the target electronic control unit fails; the repeating unit is configured to repeat the second determining step and the second upgrading step at least once until the target ecu is successfully upgraded.
In the practical application process, before the upper limit of the software refreshing times of the charging pile is not reached, the target electronic control unit which is not successfully upgraded can be upgraded until the target electronic control unit is successfully upgraded, because the upgrading process is sometimes influenced by unexpected adverse environments, and the upgrading can be continuously attempted as long as the running period of an upgrading program is not damaged.
In a specific embodiment, the remote information controller and the other electronic control units send software version information to the EMMC and store the software version information, and the device may obtain the first software version information of each electronic control unit through the EMMC and send the first software version information to the server.
According to still another specific embodiment of the present application, the apparatus further includes a second obtaining unit and a sending unit, where the second obtaining unit is configured to obtain, after the target electronic control unit is successfully upgraded, a software data packet of the upgraded target electronic control unit; the transmitting unit is configured to transmit the software data packet to the server, where the software data packet includes second software version information, upgrade success information, and software change information. By sending the updated software data packet to the server, the server can conveniently know the state of each electronic control unit of the charging pile, and the version tracing, judging and managing in the next upgrading process can be facilitated.
According to another specific embodiment of the present application, after the server receives the software data packet, the server performs MD5 verification on the software data packet to determine that the upgrade is problematic, and if the verification fails, the server records failure information and the second software version information, performs background analysis according to the failure information, and at the same time, generates an upgrade instruction again to perform secondary upgrade on the electronic control unit that fails in upgrade, where the secondary upgrade still has a problem, and the server reports the first failure information to the terminal for related personnel to intervene in the process. In addition, if the server does not receive the updated software data packet of the target electronic control unit within a preset time period, the second fault information is reported to the terminal so as to facilitate manual intervention.
In another specific embodiment of the present application, the apparatus further includes a second control unit and a third control unit, where the second control unit is configured to control, after the target electronic control unit is controlled to perform an upgrade according to the upgrade instruction, restart the upgraded target electronic control unit; the third control unit is used for controlling all the electronic control units to resume the current operation. In a more specific embodiment of the present application, after the server receives the software data packet and verifies that there is no problem, an upgrade completion command is sent out, and the device controls all the electronic control units to resume the current operation when receiving the upgrade completion command.
According to another specific embodiment of the present application, the electronic control unit includes a remote information processor and other electronic control units, the remote information processor is electrically connected with the other electronic control units, the first acquisition unit includes a second acquisition module and a third acquisition module, where the first acquisition module is configured to acquire third software version information of the remote information processor; the third obtaining module is configured to obtain fourth software version information of the other electronic control unit through the remote information processor, where the third software version information and the fourth software version information form the first software version information, and the first control unit includes a first sending module and a second sending module, where the first sending module is configured to send the upgrade package to the remote information processor and control the remote information processor to upgrade if the target electronic control unit is the remote information processor; the second sending module is configured to send the upgrade package to the other electronic control unit through the telematics unit and control the other electronic control unit to upgrade if the target electronic control unit is the other electronic control unit.
In an actual application process, when the target electronic control unit is the remote information processor, the upgrade package is sent to the remote information processor, and when the remote information processor is controlled to upgrade, the remote information processor can enter a BootLoader mode, and when the target electronic control unit is other electronic control units, the upgrade package is sent to the other electronic control units through the remote information processor, and when the other electronic control units are controlled to upgrade, the BootLoader mode is not required to be entered.
In the actual application process, under the condition that the target electronic control unit is the remote information processor, acquiring the updated software data packet of the target electronic control unit, namely acquiring the updated software data packet of the remote information processor; and when the target electronic control unit is the other electronic control unit, acquiring the updated software data packet of the target electronic control unit, namely acquiring the updated software data packet of the other electronic control unit through the remote information processor.
In practical applications, the other electronic control units include BMS (Battery MANAGEMENT SYSTEM ), EMS (ENERGY MANAGEMENT SYSTEM, energy management system), CCU (Current Control Unit ), and the like. The server is a FOTA (Firmware Over-The-Air) server. The server and the remote information controller of the charging pile realize communication through WI-FI, 4G network or Ethernet. The client logs in the server to perform simple page operation, packages the upgrade file according to own requirements, selects the ID of the charging pile, clicks to download and install, and can finish OTA (Over-the-Air Technology) cloud upgrade of the charging pile, thereby achieving remote system repair, optimization, function addition and the like of the charging pile, and further solving the complicated steps and time waste of the on-site online upgrade which are required by people in the prior art.
The upgrade device of the charging pile comprises a processor and a memory, wherein the first acquisition unit, the receiving unit, the first control unit and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problem of inconvenient upgrading of the charging pile in the prior art is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, wherein a program is stored on the computer readable storage medium, and the program is executed by a processor to realize the method for upgrading the charging pile.
The embodiment of the invention provides a processor, which is used for running a program, wherein the upgrading method of a charging pile is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
step S101, obtaining the first software version information of all the electronic control units and sending the first software version information to a server;
Step S102, receiving an upgrade instruction sent by the server, wherein the upgrade instruction is generated by the server when determining that a target electronic control unit exists according to the first software version information, the upgrade instruction comprises an upgrade package corresponding to the target electronic control unit, and the target electronic control unit is the electronic control unit to be upgraded;
step S103, according to the upgrade instruction, the target electronic control unit is controlled to upgrade.
The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with at least the following method steps:
step S101, obtaining the first software version information of all the electronic control units and sending the first software version information to a server;
Step S102, receiving an upgrade instruction sent by the server, wherein the upgrade instruction is generated by the server when determining that a target electronic control unit exists according to the first software version information, the upgrade instruction comprises an upgrade package corresponding to the target electronic control unit, and the target electronic control unit is the electronic control unit to be upgraded;
step S103, according to the upgrade instruction, the target electronic control unit is controlled to upgrade.
According to another exemplary embodiment of the present application, there is also provided a charging pile system, including a charging pile, a server, and an upgrade apparatus of the charging pile, where the charging pile includes at least one electronic control unit; the upgrade apparatus performs any of the methods described above.
The charging pile system comprises a charging pile, a server and an upgrading device of the charging pile, wherein any one of the methods is executed when the upgrading device runs, the server judges whether a target electronic control unit needing to be upgraded exists or not by sending version information of the electronic control unit to the server, and the server receives the upgrading instruction to upgrade the target electronic control unit under the condition that the target electronic control unit exists, so that remote upgrading of the charging pile is realized, upgrading of the charging pile is more convenient, tedious steps of upgrading by personnel to the site are avoided, and time is saved.
In a specific embodiment, the charging pile system further includes a terminal, and the terminal is connected with the server. The server is a FOTA server.
In another specific embodiment, the electronic control unit of the charging pile includes a remote information controller and other electronic control units such as BMS, EMS, CCU, etc., the charging pile establishes communication connection with the server through the remote information controller, and the remote information processor includes EMMC.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units may be a logic function division, and there may be another division manner when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) In the method for upgrading the charging pile, first, the first software version information of all the electronic control units of the charging pile is obtained, and the first software version information is sent to a server; then, receiving an upgrade instruction fed back by the server, wherein the upgrade instruction comprises an upgrade package of a target electronic control unit to be upgraded; and finally, upgrading the target electronic control unit according to the upgrading instruction. According to the method, the version information of the electronic control unit is sent to the server, the server judges whether the target electronic control unit to be upgraded exists or not, and the upgrading instruction is received from the server to upgrade the target electronic control unit under the condition that the target electronic control unit exists, so that remote upgrading of the charging pile is realized, convenience in upgrading of the charging pile is ensured, complicated steps of upgrading by personnel to the site are avoided, and time is saved.
2) In the upgrade device of the charging pile, the first software version information of all the electronic control units of the charging pile is acquired through the first acquisition unit, and the first software version information is sent to the server; receiving an upgrade instruction fed back by the server through the receiving unit, wherein the upgrade instruction comprises an upgrade package of a target electronic control unit to be upgraded; and upgrading the target electronic control unit through the first control unit according to the upgrading instruction. According to the device, the version information of the electronic control unit is sent to the server, the server judges whether the target electronic control unit to be upgraded exists or not, and the upgrading instruction is received from the server to upgrade the target electronic control unit under the condition that the target electronic control unit exists, so that remote upgrading of the charging pile is realized, convenience in upgrading of the charging pile is ensured, complicated steps of upgrading by personnel to the site are avoided, and time is saved.
3) The charging pile system comprises a charging pile, a server and an upgrading device of the charging pile, wherein any one of the methods is executed when the upgrading device runs, the server judges whether a target electronic control unit needing to be upgraded exists or not by sending version information of the electronic control unit to the server, and the server receives the upgrading instruction to upgrade the target electronic control unit under the condition that the target electronic control unit exists, so that remote upgrading of the charging pile is realized, the upgrading of the charging pile is more convenient, complicated steps of upgrading on site by personnel are avoided, and time is saved.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. A method of upgrading a charging pile, the charging pile comprising at least one electronic control unit, the method comprising:
acquiring all first software version information of the electronic control units and sending the information to a server;
Receiving an upgrade instruction sent by the server, wherein the upgrade instruction is generated by the server under the condition that a target electronic control unit exists according to the first software version information, the upgrade instruction comprises an upgrade packet corresponding to the target electronic control unit, and the target electronic control unit is the electronic control unit to be upgraded;
according to the upgrade instruction, the target electronic control unit is controlled to upgrade,
The electronic control unit comprises a remote information processor and other electronic control units, the remote information processor is electrically connected with the other electronic control units, and obtains first software version information of all the electronic control units and sends the first software version information to a server, and the electronic control unit comprises:
acquiring third software version information of the remote information processor;
Acquiring fourth software version information of the other electronic control units through the remote information processor, wherein the third software version information and the fourth software version information form the first software version information,
According to the upgrade instruction, the target electronic control unit is controlled to upgrade, and the method comprises the following steps:
If the target electronic control unit is the remote information processor, the upgrade package is sent to the remote information processor, and the remote information processor is controlled to be upgraded;
And under the condition that the target electronic control unit is other electronic control units, sending the upgrade package to the other electronic control units through the remote information processor, and controlling the other electronic control units to upgrade.
2. The method of claim 1, wherein receiving the upgrade instruction sent by the server comprises:
Receiving a first instruction sent by the server, wherein the first instruction is an instruction for representing that the charging pile needs to be upgraded;
And receiving the upgrade package sent by the server, wherein the first instruction and the upgrade package form the upgrade instruction.
3. The method of claim 2, wherein controlling the target electronic control unit to perform an upgrade according to the upgrade instruction comprises:
A stopping step, according to the first instruction, controlling all the electronic control units to stop the current work;
A first determining step of determining whether the target electronic control unit is in an idle state;
a first repeating step of repeating the first determining step at least once in the case where the target electronic control unit is not in the idle state until the target electronic control unit is in the idle state;
And a first upgrading step, wherein the target electronic control unit is controlled to be upgraded according to the upgrading packet under the condition that the target electronic control unit is in the idle state.
4. A method according to claim 3, wherein after the stopping step, before the first determining step, the method further comprises:
Storing all the data of the current work.
5. The method of claim 1, wherein after controlling the target electronic control unit to perform an upgrade according to the upgrade instruction, the method further comprises:
a second determining step of determining whether the target electronic control unit is successfully upgraded;
a second upgrading step of controlling the target electronic control unit to upgrade again under the condition that the upgrade of the target electronic control unit fails;
And a second repeating step, wherein the second determining step and the second upgrading step are repeated at least once until the target electronic control unit is successfully upgraded.
6. The method of claim 1, wherein after the target electronic control unit upgrade is successful, the method further comprises:
acquiring the updated software data package of the target electronic control unit;
And sending the software data packet to the server, wherein the software data packet comprises second software version information, upgrading success information and software change information.
7. A method according to claim 3, wherein after controlling the target electronic control unit to perform an upgrade according to the upgrade instruction, the method further comprises:
restarting the target electronic control unit after the upgrading;
and controlling all the electronic control units to resume the current work.
8. An upgrade apparatus for a charging pile, the charging pile comprising at least one electronic control unit, the apparatus comprising:
the first acquisition unit is used for acquiring the first software version information of all the electronic control units and sending the first software version information to the server;
The receiving unit is used for receiving an upgrade instruction sent by the server, wherein the upgrade instruction is generated by the server under the condition that a target electronic control unit exists according to the first software version information, the upgrade instruction comprises an upgrade packet corresponding to the target electronic control unit, and the target electronic control unit is the electronic control unit to be upgraded;
a first control unit for controlling the target electronic control unit to upgrade according to the upgrade instruction,
The electronic control unit comprises a remote information processor and other electronic control units, the remote information processor is electrically connected with the other electronic control units, the first acquisition unit comprises a second acquisition module and a third acquisition module, and the second acquisition module is used for acquiring third software version information of the remote information processor; the third obtaining module is configured to obtain fourth software version information of the other electronic control units through the remote information processor, where the third software version information and the fourth software version information form the first software version information, and the first control unit includes a first sending module and a second sending module, where the first sending module is configured to send the upgrade package to the remote information processor and control the remote information processor to upgrade if the target electronic control unit is the remote information processor; the second sending module is configured to send the upgrade package to the other electronic control units through the remote information processor and control the other electronic control units to upgrade if the target electronic control unit is the other electronic control units.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program performs the method of any one of claims 1 to 7.
10. A processor for running a program, wherein the program when run performs the method of any one of claims 1 to 7.
11. A charging pile system, comprising:
The charging pile comprises at least one electronic control unit;
a server;
an upgrade apparatus of the charging pile, the upgrade apparatus performing the method of any one of claims 1 to 7.
CN202110731816.1A 2021-06-29 2021-06-29 Charging pile upgrading method, upgrading device and charging pile system Active CN113535202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110731816.1A CN113535202B (en) 2021-06-29 2021-06-29 Charging pile upgrading method, upgrading device and charging pile system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110731816.1A CN113535202B (en) 2021-06-29 2021-06-29 Charging pile upgrading method, upgrading device and charging pile system

Publications (2)

Publication Number Publication Date
CN113535202A CN113535202A (en) 2021-10-22
CN113535202B true CN113535202B (en) 2024-04-23

Family

ID=78097278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110731816.1A Active CN113535202B (en) 2021-06-29 2021-06-29 Charging pile upgrading method, upgrading device and charging pile system

Country Status (1)

Country Link
CN (1) CN113535202B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061711A (en) * 2022-07-04 2022-09-16 海南大学 Upgrading method and device for intelligent charging pile
CN118012469B (en) * 2024-04-08 2024-07-02 科大智能(合肥)科技有限公司 New energy charging pile batch upgrading system based on big data and upgrading method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040590A (en) * 2017-03-28 2017-08-11 合肥亮天新能源科技有限公司 A kind of remote upgrade method of New-type charge stake
CN108196856A (en) * 2017-12-06 2018-06-22 珠海派诺科技股份有限公司 A kind of charging pile on-line software updating system and online upgrading method
WO2021008184A1 (en) * 2019-07-18 2021-01-21 南京依维柯汽车有限公司 Remote upgrading system and upgrading method for fota firmware on new energy automobile
CN112527355A (en) * 2020-12-09 2021-03-19 广东劲天科技有限公司 Charging pile remote upgrading method and system based on SAAS mode and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040590A (en) * 2017-03-28 2017-08-11 合肥亮天新能源科技有限公司 A kind of remote upgrade method of New-type charge stake
CN108196856A (en) * 2017-12-06 2018-06-22 珠海派诺科技股份有限公司 A kind of charging pile on-line software updating system and online upgrading method
WO2021008184A1 (en) * 2019-07-18 2021-01-21 南京依维柯汽车有限公司 Remote upgrading system and upgrading method for fota firmware on new energy automobile
CN112527355A (en) * 2020-12-09 2021-03-19 广东劲天科技有限公司 Charging pile remote upgrading method and system based on SAAS mode and storage medium

Also Published As

Publication number Publication date
CN113535202A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN111694579B (en) Remote upgrading method of energy storage system, energy management system and battery management system
CN112148326A (en) Remote updating method, device and system for Internet of things equipment firmware
CN110083374B (en) Upgrade rollback method, system and terminal equipment
US9557981B2 (en) Method and apparatus for automatic module upgrade
CN102364891B (en) Method for upgrading software of embedded Ethernet equipment and embedded Ethernet equipment
CN113535202B (en) Charging pile upgrading method, upgrading device and charging pile system
US10394572B2 (en) Power adapter and method for upgrading the power adapter
CN108427570A (en) Intelligent household appliance master control program upgrading system and upgrading method
CN111522264A (en) Device control method and device, storage medium, and electronic device
CN110045991B (en) RAID configuration method and device of server, computer equipment and storage medium
CN109524049B (en) SSD abnormal power failure test method and device, computer equipment and storage medium
CN112650520B (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
CN111341090B (en) Bluetooth remote controller pressure measurement method, control device and computer readable storage medium
WO2018010011A1 (en) Updating firmware at enterprise devices
EP4092524A1 (en) Ota differential upgrade method and system of master-slave architecture
CN102063321A (en) Installation method, device and system of terminal software
CN102300239B (en) Base station and self-starting method thereof
CN112527346A (en) Software upgrading method and device, storage medium and electronic device
CN113360175A (en) Application updating method of vehicle controller and vehicle controller
CN112667272A (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
CN116483416A (en) Firmware online upgrading method, server and storage medium
CN115934130A (en) ECU (electronic control Unit) upgrading method, device, equipment and medium
CN116126379A (en) BIOS firmware upgrading method, device, equipment and storage medium
US20190014026A1 (en) Method and apparatus for ignition state monitoring
CN114546842A (en) Interface test method and device, storage medium and electronic equipment

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