CN113590147A - Charging pile upgrading system and method - Google Patents

Charging pile upgrading system and method Download PDF

Info

Publication number
CN113590147A
CN113590147A CN202110681958.1A CN202110681958A CN113590147A CN 113590147 A CN113590147 A CN 113590147A CN 202110681958 A CN202110681958 A CN 202110681958A CN 113590147 A CN113590147 A CN 113590147A
Authority
CN
China
Prior art keywords
charging pile
task
upgrading
information
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.)
Pending
Application number
CN202110681958.1A
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 CN202110681958.1A priority Critical patent/CN113590147A/en
Publication of CN113590147A publication Critical patent/CN113590147A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a charging pile upgrading system, which comprises: a charging pile and an upgrade server; the charging pile calls an http interface to establish http connection with an upgrading server; the charging pile sends heartbeat information to an upgrade server; after receiving the heartbeat information, the upgrading server inquires a database to determine whether an upgrading task to be executed exists; the method comprises the steps that an upgrade server issues task information of an upgrade task to a charging pile under the condition that the upgrade task is inquired; and receiving the task information by the charging pile, and upgrading according to the content indicated by the task information. According to the scheme provided by the embodiment of the invention, the charging pile and the upgrading server are in http communication connection, the http communication mode is a stateless response request mode, the connection is established when the charging pile is used, and the charging pile is closed after the charging pile is used, so that the lower resource occupation is kept between the upgrading server and the charging pile under the condition that the upgrading operation is not carried out.

Description

Charging pile upgrading system and method
Technical Field
The invention relates to the technical field of charging piles, in particular to a charging pile upgrading system and method.
Background
In the existing charging pile upgrading system, each charging pile and an upgrading server complete upgrading through a communication mode of establishing TCP long connection. However, in practical applications, the upgrade operation is usually performed only once every several days or several tens of days, the upgrade operation is performed less frequently, and the communication mode of the TCP long connection also occupies resources of the upgrade server and the charging pile when the upgrade operation is not performed, which increases loads of the upgrade server and the charging pile and causes waste of resources.
Disclosure of Invention
The embodiment of the invention provides a charging pile upgrading system and a charging method, so as to achieve the technical effect of reducing the occupation of an upgrading server and charging pile resources.
In one aspect of the present disclosure, a charging pile upgrading system is provided, where the system includes: a charging pile and an upgrade server; wherein the content of the first and second substances,
the charging pile calls an http interface to establish http connection with an upgrading server;
the charging pile sends heartbeat information to an upgrade server;
after receiving the heartbeat information, the upgrading server inquires a database to determine whether an upgrading task to be executed exists;
the method comprises the steps that an upgrade server issues task information of an upgrade task to a charging pile under the condition that the upgrade task is inquired;
and receiving the task information by the charging pile, and upgrading according to the content indicated by the task information.
Compared with the prior art, the invention has the beneficial effects that: the charging pile and the upgrading server are in http communication connection, the http communication mode is a stateless response request mode, connection is established during use, and the connection is closed after use, so that low resource occupation is kept between the upgrading server and the charging pile under the condition that upgrading operation is not performed.
Optionally, the upgrade server sends response success information to the charging pile when the upgrade task is not queried.
Optionally, before the upgrade server queries whether an upgrade task to be executed exists in the database, the upgrade server queries the database to determine whether an incomplete task exists in the charging pile;
the method comprises the steps that under the condition that an upgrading server determines that tasks are not completed in a charging pile, task progress inquiry information is sent to the charging pile;
after receiving the task progress inquiry information, the charging pile sends task progress information of uncompleted tasks to an upgrade server;
and after receiving the task progress information, the upgrading server stores the task progress information to the upgrading server.
Optionally, when there is an uncompleted task, the charging pile sends heartbeat information to the upgrade server according to a predetermined first time interval, and when there is no uncompleted task, the charging pile sends heartbeat information to the upgrade server according to a predetermined second time interval.
In another aspect of the present invention, a charging pile upgrading method is further provided, which is applied to a charging pile in a charging pile upgrading system, where the charging pile upgrading system further includes: upgrading the server; the method comprises the following steps:
calling an http interface to establish http connection with an upgrade server;
sending heartbeat information to an upgrade server, so that the upgrade server queries a database to determine whether an upgrade task to be executed exists after receiving the heartbeat information, and sends task information of the upgrade task to a charging pile under the condition of querying the upgrade task;
and receiving the task information, and upgrading according to the content indicated by the task information.
Optionally, the process of sending heartbeat information to the upgrade server includes:
and sending heartbeat information to the upgrade server according to a preset first time interval under the condition that the charging pile has unfinished tasks, and sending heartbeat information to the upgrade server according to a preset second time interval under the condition that the unfinished tasks do not exist.
In another aspect of the present invention, a charging pile upgrading method is further provided, which is applied to an upgrading server in a charging pile upgrading system, where the charging pile upgrading system further includes: charging piles; the method comprises the following steps:
establishing http connection with a charging pile;
receiving heartbeat information sent by a charging pile, and inquiring a database to determine whether an upgrading task to be executed exists;
and under the condition that the upgrading task is inquired, task information of the upgrading task is issued to the charging pile, so that the charging pile can be upgraded according to the content indicated by the task information.
Optionally, before the step of querying the database to determine whether there is an upgrade task to be executed, the method further includes:
querying a database to determine whether an uncompleted task exists in the charging pile;
under the condition that the charging pile is determined to have unfinished tasks, task progress inquiry information is sent to the charging pile, so that the charging pile sends the task progress information for inquiring the finished tasks to an upgrading server after receiving the task progress inquiry information;
and receiving the task progress information, and storing the task progress information to an upgrading server.
In another aspect of the implementation of the present invention, a charging pile is further provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing processor-executable instructions;
and the processor is used for realizing the method steps applied to the charging pile when the instructions stored in the memory are executed.
In another aspect of the present invention, there is also provided an upgrade server, including a processor, a communication interface, a memory and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing processor-executable instructions;
and the processor is used for realizing the method applied to the upgrading server when executing the instructions stored in the memory.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
fig. 1 is a schematic structural diagram of a charging pile upgrading system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a charging pile upgrading method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another charging pile upgrading method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a charging pile according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an upgrade server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the following embodiments and accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Referring to fig. 1, a charging pile upgrading system provided in an embodiment of the present invention includes: a charging pile and an upgrade server; wherein the content of the first and second substances,
the charging pile calls an http interface to establish http connection with an upgrading server;
the charging pile sends heartbeat information to an upgrade server;
after receiving the heartbeat information, the upgrading server inquires a database to determine whether an upgrading task to be executed exists;
the method comprises the steps that an upgrade server issues task information of an upgrade task to a charging pile under the condition that the upgrade task is inquired;
and receiving the task information by the charging pile, and upgrading according to the content indicated by the task information.
In implementation, the upgrade server sends response success information to the charging pile under the condition that the upgrade task cannot be inquired.
In implementation, before an upgrade server queries whether an upgrade task to be executed exists in a database, the database is queried to determine whether an uncompleted task exists in a charging pile;
the method comprises the steps that under the condition that an upgrading server determines that tasks are not completed in a charging pile, task progress inquiry information is sent to the charging pile;
after receiving the task progress inquiry information, the charging pile sends task progress information of uncompleted tasks to an upgrade server;
and after receiving the task progress information, the upgrading server stores the task progress information to the upgrading server.
In implementation, when there is an uncompleted task in the charging pile, heartbeat information is sent to the upgrade server according to a predetermined first time interval, and when there is no uncompleted task, heartbeat information is sent to the upgrade server according to a predetermined second time interval, specifically, the second time interval may be longer than the interval duration of the first time interval.
Referring to fig. 2, the charging pile upgrading method provided in the embodiment of the present invention is applied to a charging pile in a charging pile upgrading system, and the charging pile upgrading system further includes: upgrading the server; the method comprises the following steps:
s200, calling an http interface to establish http connection with an upgrading server;
s201, sending heartbeat information to an upgrade server, so that the upgrade server queries a database to determine whether an upgrade task to be executed exists after receiving the heartbeat information, and sends task information of the upgrade task to a charging pile under the condition that the upgrade task is queried;
and S202, receiving the task information and upgrading according to the content indicated by the task information.
In an implementation, the process of sending heartbeat information to an upgrade server includes:
and sending heartbeat information to the upgrade server according to a preset first time interval under the condition that the charging pile has unfinished tasks, and sending heartbeat information to the upgrade server according to a preset second time interval under the condition that the unfinished tasks do not exist.
Referring to fig. 3, the charging pile upgrading method provided in the embodiment of the present invention is applied to an upgrading server in a charging pile upgrading system, and the charging pile upgrading system further includes: charging piles; the method comprises the following steps:
s300, establishing http connection with a charging pile;
s301, receiving heartbeat information sent by a charging pile, and inquiring a database to determine whether an upgrading task to be executed exists;
s302, under the condition that the upgrading task is inquired, task information of the upgrading task is issued to the charging pile, so that the charging pile can be upgraded according to the content indicated by the task information.
In implementation, before the step of querying the database to determine whether there is an upgrade task to be executed, the method further includes:
querying a database to determine whether an uncompleted task exists in the charging pile;
under the condition that the charging pile is determined to have unfinished tasks, task progress inquiry information is sent to the charging pile, so that the charging pile sends the task progress information for inquiring the finished tasks to an upgrading server after receiving the task progress inquiry information;
and receiving the task progress information, and storing the task progress information to an upgrading server.
The embodiment of the present invention further provides a charging pile, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403, and a communication bus 004, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401, configured to execute the program stored in the memory 403, is configured to implement the method applied to the charging pile, including:
calling an http interface to establish http connection with an upgrade server;
sending heartbeat information to an upgrade server, so that the upgrade server queries a database to determine whether an upgrade task to be executed exists after receiving the heartbeat information, and sends task information of the upgrade task to a charging pile under the condition of querying the upgrade task;
and receiving the task information, and upgrading according to the content indicated by the task information.
The embodiment of the present invention further provides a charging pile, as shown in fig. 5, including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501, configured to execute the program stored in the memory 503, implements the method applied to the upgrade server, including:
establishing http connection with a charging pile;
receiving heartbeat information sent by a charging pile, and inquiring a database to determine whether an upgrading task to be executed exists;
and under the condition that the upgrading task is inquired, task information of the upgrading task is issued to the charging pile, so that the charging pile can be upgraded according to the content indicated by the task information.
The aforementioned communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the charging pile and the upgrading server.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the method and apparatus embodiments, since they are substantially similar to the system embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A charging pile upgrade system, the system comprising: a charging pile and an upgrade server; wherein the content of the first and second substances,
the charging pile calls an http interface to establish http connection with an upgrading server;
the charging pile sends heartbeat information to an upgrade server;
after receiving the heartbeat information, the upgrading server inquires a database to determine whether an upgrading task to be executed exists;
the method comprises the steps that an upgrade server issues task information of an upgrade task to a charging pile under the condition that the upgrade task is inquired;
and receiving the task information by the charging pile, and upgrading according to the content indicated by the task information.
2. The charging pile upgrade system according to claim 1,
and sending response success information to the charging pile under the condition that the upgrading server cannot inquire the upgrading task.
3. The charging pile upgrade system according to claim 1,
before an upgrading server inquires whether an upgrading task to be executed exists in a database or not, the database is inquired to determine whether an uncompleted task exists in a charging pile or not;
the method comprises the steps that under the condition that an upgrading server determines that tasks are not completed in a charging pile, task progress inquiry information is sent to the charging pile;
after receiving the task progress inquiry information, the charging pile sends task progress information of uncompleted tasks to an upgrade server;
and after receiving the task progress information, the upgrading server stores the task progress information to the upgrading server.
4. The charging pile upgrade system according to claim 1,
and sending heartbeat information to the upgrade server according to a preset first time interval under the condition that the charging pile has unfinished tasks, and sending heartbeat information to the upgrade server according to a preset second time interval under the condition that the unfinished tasks do not exist.
5. The charging pile upgrading method is applied to a charging pile in a charging pile upgrading system, and the charging pile upgrading system further comprises the following steps: upgrading the server; the method comprises the following steps:
calling an http interface to establish http connection with an upgrade server;
sending heartbeat information to an upgrade server, so that the upgrade server queries a database to determine whether an upgrade task to be executed exists after receiving the heartbeat information, and sends task information of the upgrade task to a charging pile under the condition of querying the upgrade task;
and receiving the task information, and upgrading according to the content indicated by the task information.
6. The method of claim 5, wherein the process of sending heartbeat information to an upgrade server comprises:
and sending heartbeat information to the upgrade server according to a preset first time interval under the condition that the charging pile has unfinished tasks, and sending heartbeat information to the upgrade server according to a preset second time interval under the condition that the unfinished tasks do not exist.
7. The charging pile upgrading method is applied to an upgrading server in a charging pile upgrading system, and the charging pile upgrading system further comprises the following steps: charging piles; the method comprises the following steps:
establishing http connection with a charging pile;
receiving heartbeat information sent by a charging pile, and inquiring a database to determine whether an upgrading task to be executed exists;
and under the condition that the upgrading task is inquired, task information of the upgrading task is issued to the charging pile, so that the charging pile can be upgraded according to the content indicated by the task information.
8. The method of claim 7, wherein querying the database to determine if there is a process for an upgrade task to be performed further comprises:
querying a database to determine whether an uncompleted task exists in the charging pile;
under the condition that the charging pile is determined to have unfinished tasks, task progress inquiry information is sent to the charging pile, so that the charging pile sends the task progress information for inquiring the finished tasks to an upgrading server after receiving the task progress inquiry information;
and receiving the task progress information, and storing the task progress information to an upgrading server.
9. A charging pile is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication through the communication bus by the memory;
a memory for storing processor-executable instructions;
a processor adapted to perform the method steps of any of claims 5-6 when executing instructions stored in the memory.
10. The upgrading server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are communicated with each other through the communication bus by the memory;
a memory for storing processor-executable instructions;
a processor adapted to perform the method steps of any of claims 7-8 when executing instructions stored in the memory.
CN202110681958.1A 2021-06-19 2021-06-19 Charging pile upgrading system and method Pending CN113590147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110681958.1A CN113590147A (en) 2021-06-19 2021-06-19 Charging pile upgrading system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110681958.1A CN113590147A (en) 2021-06-19 2021-06-19 Charging pile upgrading system and method

Publications (1)

Publication Number Publication Date
CN113590147A true CN113590147A (en) 2021-11-02

Family

ID=78244183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110681958.1A Pending CN113590147A (en) 2021-06-19 2021-06-19 Charging pile upgrading system and method

Country Status (1)

Country Link
CN (1) CN113590147A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546207A (en) * 2010-12-23 2012-07-04 中兴通讯股份有限公司 Distributed centralized scheduling upgrading method and system for network element software version
CN108399303A (en) * 2018-03-08 2018-08-14 万帮充电设备有限公司 A kind of analogy method and device of charging pile
CN110949166A (en) * 2019-12-27 2020-04-03 重庆国翰能源发展有限公司 Centralized upgrading method based on four charging piles in one machine and charging piles
CN112000358A (en) * 2020-08-18 2020-11-27 宁波均胜群英汽车系统股份有限公司 Charging pile upgrading method and intelligent charging pile
CN112937354A (en) * 2019-04-26 2021-06-11 上海电享信息科技有限公司 Charging pile software updating implementation method based on charging pile communication protocol

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546207A (en) * 2010-12-23 2012-07-04 中兴通讯股份有限公司 Distributed centralized scheduling upgrading method and system for network element software version
CN108399303A (en) * 2018-03-08 2018-08-14 万帮充电设备有限公司 A kind of analogy method and device of charging pile
CN112937354A (en) * 2019-04-26 2021-06-11 上海电享信息科技有限公司 Charging pile software updating implementation method based on charging pile communication protocol
CN110949166A (en) * 2019-12-27 2020-04-03 重庆国翰能源发展有限公司 Centralized upgrading method based on four charging piles in one machine and charging piles
CN112000358A (en) * 2020-08-18 2020-11-27 宁波均胜群英汽车系统股份有限公司 Charging pile upgrading method and intelligent charging pile

Similar Documents

Publication Publication Date Title
CN107360261B (en) HTTP request processing method and device and electronic equipment
CN108961004B (en) Cloud service order processing method, device and system, electronic equipment and medium
CN108255620B (en) Service logic processing method, device, service server and system
CN109213604B (en) Data source management method and device
CN108156252B (en) Data access method and device, server and client
CN112104731B (en) Request processing method and device, electronic equipment and storage medium
CN108512930B (en) Shared file management method, device, server and storage medium
CN110311975B (en) Data request processing method and device
CN111027871A (en) Project resource allocation method and device and readable storage medium
CN109995863B (en) Dynamic resource downloading method and device, electronic equipment and storage medium
CN111125240A (en) Distributed transaction implementation method and device, electronic equipment and storage medium
CN113590147A (en) Charging pile upgrading system and method
WO2023231357A1 (en) Remote calling method, system and apparatus, and electronic device and storage medium
WO2023134247A1 (en) Container management method and container management system
CN109246077B (en) Distributed concurrent transaction verification method, device and computer storage medium
US20200210165A1 (en) Method and system for downloading information
CN110852603A (en) High-throughput wind control data processing method, device, equipment and storage medium
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
US20200279236A1 (en) Subscription processing method, device, electronic device and readable storage medium
CN114090146A (en) Data loading completion determining method, device and equipment
CN109254855B (en) Registration method and device of parameter transmission protocol and electronic equipment
CN110990694A (en) Recommendation method, device and system
CN112711455B (en) Page interaction method and device, electronic equipment and storage medium
CN114553855A (en) Plug-in gray level release method and device, electronic equipment and storage medium
CN112506896A (en) Data deleting method and device 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