CN117573181A - Power distribution terminal upgrading method and device, storage medium and electronic equipment - Google Patents

Power distribution terminal upgrading method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117573181A
CN117573181A CN202410067252.XA CN202410067252A CN117573181A CN 117573181 A CN117573181 A CN 117573181A CN 202410067252 A CN202410067252 A CN 202410067252A CN 117573181 A CN117573181 A CN 117573181A
Authority
CN
China
Prior art keywords
instruction
upgrade
power distribution
target
distribution terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410067252.XA
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.)
Beijing Smartchip Microelectronics Technology Co Ltd
Original Assignee
Beijing Smartchip Microelectronics 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 Beijing Smartchip Microelectronics Technology Co Ltd filed Critical Beijing Smartchip Microelectronics Technology Co Ltd
Priority to CN202410067252.XA priority Critical patent/CN117573181A/en
Publication of CN117573181A publication Critical patent/CN117573181A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Computer Security & Cryptography (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a power distribution terminal upgrading method, a device, a storage medium and electronic equipment. The method comprises the following steps: receiving an initial differential upgrade packet issued by a cloud master station; triggering an upgrade starting instruction, receiving an instruction verification result which is sent by a power distribution terminal and used for verifying whether the upgrade starting instruction is a preset instruction, and processing an initial differential upgrade package to obtain N target differential upgrade packages under the condition that the instruction verification result indicates that the upgrade starting instruction is the preset instruction; triggering an instruction to be upgraded, and sequentially issuing N target differential upgrade packages to a power distribution terminal; and receiving a data verification result which is sent by the power distribution terminal and used for verifying whether the data of the N target differential upgrade packages are complete, and triggering an upgrade instruction under the condition that the data verification result indicates that the data of the N target differential upgrade packages are complete, so that the power distribution terminal can execute upgrade operation according to the N target differential upgrade packages. The invention solves the problem of lower upgrading efficiency of the power distribution terminal in the related technology.

Description

Power distribution terminal upgrading method and device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of edge computing, in particular to a power distribution terminal upgrading method, a device, a storage medium and electronic equipment.
Background
In the related art, a local upgrading mode is generally adopted to upgrade the power distribution internet of things terminal, and the following main modes are adopted: 1. the program upgrading method based on JTAG, the method burns BOOT file into the memory chip locally through upgrading the software; 2. the PC is connected with the acquisition terminal through USB or Ethernet to upgrade the acquisition terminal software; 3. the whole package upgrading needs to pack the whole software package with new version, the equipment receives all the upgrade packages, and after verifying the validity and the integrity of the package by the verification algorithm, the equipment replaces the application code with old version.
The method needs to be manually updated to the point-to-point on the site, and has large workload and low efficiency; in addition, when the upgrade fails, the original program package is damaged, so that the node can be in fault, and a certain risk exists; the whole package upgrade is a complete upgrade of the whole firmware, the upgrade data volume is large, the network congestion can be caused by huge data flow for a long time, and the upgrade failure is caused, so that the upgrade efficiency of the power distribution terminal is lower.
Aiming at the problem of lower upgrading efficiency of the power distribution terminal in the related technology, no effective solution is proposed at present.
Disclosure of Invention
The invention mainly aims to provide a power distribution terminal upgrading method, a device, a storage medium and electronic equipment, so as to solve the problem of low upgrading efficiency of a power distribution terminal in the related technology.
In order to achieve the above object, according to a first aspect of the present invention, there is provided a power distribution terminal upgrading method. The method comprises the following steps: receiving an initial differential upgrade packet issued by a cloud master station; triggering an upgrade starting instruction, receiving an instruction verification result which is sent by a power distribution terminal and used for verifying whether the upgrade starting instruction is a preset instruction, and processing an initial differential upgrade package to obtain N target differential upgrade packages under the condition that the instruction verification result indicates that the upgrade starting instruction is the preset instruction, wherein the preset instruction is an instruction for starting and upgrading the initial differential upgrade package, and N is an integer larger than 1; triggering an instruction to be upgraded, and sequentially issuing N target differential upgrade packages to a power distribution terminal, wherein the triggering time of starting the upgrade instruction is earlier than that of the instruction to be upgraded; and receiving a data verification result which is sent by the power distribution terminal and used for verifying whether the data of the N target differential upgrade packages are complete, and triggering an upgrade instruction under the condition that the data verification result indicates that the data of the N target differential upgrade packages are complete, so that the power distribution terminal executes upgrade operation according to the N target differential upgrade packages, wherein the trigger time of the to-be-upgraded instruction is earlier than the trigger time of the upgrade instruction.
Further, the initial differential upgrade package is processed to obtain N target differential upgrade packages, including: splitting the initial differential upgrade package into N parts to obtain N differential upgrade packages; and carrying out software configuration on the N differential upgrade packages respectively to obtain N corresponding target differential upgrade packages.
Further, the N target differential upgrade packages respectively include: single package identification, single package program, check code, program upgrade identification.
Further, triggering an upgrade starting instruction, and receiving an instruction verification result sent by the power distribution terminal to verify whether the upgrade starting instruction is a preset instruction, wherein the instruction verification result comprises: triggering a starting upgrading instruction and acquiring an upgrading instruction packet of the starting upgrading instruction; issuing an upgrade instruction packet to the power distribution terminal so that the power distribution terminal verifies whether the upgrade instruction is a preset instruction according to the upgrade instruction packet; and receiving an instruction verification result of the starting upgrading instruction sent by the power distribution terminal.
Further, if there are multiple power distribution terminals of the same type, triggering an instruction to be upgraded, and sequentially issuing N target differential upgrade packages to the power distribution terminals, including: if the fact that the target power distribution terminals do not receive the preset target differential upgrade package is detected in the power distribution terminals, the number of the target power distribution terminals is obtained, wherein the preset target differential upgrade package is at least one of N target differential upgrade packages; if the number of the target power distribution terminals is greater than a preset threshold value, a preset target differential upgrade package is re-issued to the target power distribution terminals in a broadcasting mode; and if the number of the target power distribution terminals is smaller than or equal to the preset threshold value, the preset target differential upgrade package is re-issued to the target power distribution terminals through the handheld terminal.
Further, if the number of the target power distribution terminals is less than or equal to the preset threshold, the preset target differential upgrade package is re-issued to the target power distribution terminals through the handheld terminal, including: and sending a package supplementing request to the cloud master station, so that the cloud master station sends the package supplementing request to the handheld terminal in a wireless communication mode, and the handheld terminal can send the preset target differential upgrade package to the target power distribution terminal again, wherein the package supplementing request is a request for resending the preset target differential upgrade package.
According to a second aspect of the present invention, a power distribution terminal upgrade method is also provided. The method comprises the following steps: responding to a starting upgrading instruction triggered by the edge computing equipment, and verifying whether the starting upgrading instruction is a preset instruction, wherein the preset instruction is an instruction for starting and upgrading an initial differential upgrading packet; under the condition that the starting upgrade instruction is a preset instruction, responding to an instruction to be upgraded triggered by the edge computing equipment, receiving N target differential upgrade packages, and verifying whether data of the N target differential upgrade packages are complete, wherein the N target differential upgrade packages are obtained by processing initial differential upgrade packages, the triggering time of the starting upgrade instruction is earlier than that of the instruction to be upgraded, and N is an integer larger than 1; and under the condition that the data of the N target differential upgrade packages are complete, responding to an upgrade instruction triggered by the edge computing equipment, and executing upgrade operation according to the N target differential upgrade packages, wherein the trigger time of the instruction to be upgraded is earlier than that of the upgrade instruction.
Further, in response to the initiation upgrade instruction triggered by the edge computing device, verifying whether the initiation upgrade instruction is a preset instruction, including: receiving an upgrade instruction packet of a start upgrade instruction, and acquiring a start instruction check code carried in the upgrade instruction packet; calculating the data content of the upgrade instruction packet through a verification algorithm to obtain a target instruction verification code; if the starting instruction check code is detected to be the same as the target instruction check code, the starting upgrading instruction is verified to be a preset instruction.
Further, receiving the N target differential upgrade packages, and verifying whether the data of the N target differential upgrade packages are complete, including: carrying out iterative summation calculation on the data content of the N target differential upgrade packages to obtain target data check codes; receiving an instruction packet to be upgraded of an instruction to be upgraded, and acquiring an instruction verification code to be upgraded carried in the instruction packet to be upgraded; if the target data check code is detected to be the same as the instruction check code to be upgraded, determining that the data of the N target differential upgrade packages are complete.
In order to achieve the above object, according to a third aspect of the present invention, there is provided an upgrade apparatus for a power distribution terminal. The device comprises: the first receiving unit is used for receiving an initial differential upgrade packet issued by the cloud master station; the first triggering unit is used for triggering the starting upgrading instruction and receiving an instruction verification result for verifying whether the starting upgrading instruction is a preset instruction or not, which is sent by the power distribution terminal, if the instruction verification result indicates that the starting upgrading instruction is the preset instruction, the initial differential upgrading packet is processed to obtain N target differential upgrading packets, wherein the preset instruction is an instruction for starting and upgrading the initial differential upgrading packet, and N is an integer larger than 1; the second triggering unit is used for triggering the instruction to be upgraded and sequentially issuing N target differential upgrade packages to the power distribution terminal, wherein the triggering time for starting the upgrade instruction is earlier than that of the instruction to be upgraded; the second receiving unit is used for receiving a data verification result which is sent by the power distribution terminal and used for verifying whether the data of the N target differential upgrade packages are complete, and if the data verification result indicates that the data of the N target differential upgrade packages are complete, the upgrade instruction is triggered, so that the power distribution terminal executes upgrade operation according to the N target differential upgrade packages, wherein the trigger time of the instruction to be upgraded is earlier than the trigger time of the upgrade instruction.
Further, the first trigger unit includes: the splitting module is used for splitting the initial differential upgrade package into N parts to obtain N differential upgrade packages; the configuration module is used for carrying out software configuration on the N differential upgrade packages respectively to obtain N corresponding target differential upgrade packages.
Further, the N target differential upgrade packages respectively include: single package identification, single package program, check code, program upgrade identification.
Further, the first trigger unit includes: the triggering module is used for triggering the starting upgrading instruction and acquiring an upgrading instruction packet for starting the upgrading instruction; the first verification module is used for issuing an upgrade instruction packet to the power distribution terminal so that the power distribution terminal verifies whether the upgrade instruction is a preset instruction according to the upgrade instruction packet; the first receiving module is used for receiving an instruction verification result of the starting upgrading instruction sent by the power distribution terminal.
Further, if there are a plurality of power distribution terminals of the same type, the second triggering unit includes: the acquisition module is used for acquiring the number of the target power distribution terminals if the target power distribution terminals are detected to be in the power distribution terminals and do not receive the preset target differential upgrade package, wherein the preset target differential upgrade package is at least one of N target differential upgrade packages; the first sending module is used for sending the preset target differential upgrade packages to the target power distribution terminals again in a broadcasting mode if the number of the target power distribution terminals is larger than a preset threshold value; and the second sending module is used for re-sending the preset target differential upgrade packages to the target power distribution terminals through the handheld terminals if the number of the target power distribution terminals is smaller than or equal to a preset threshold value.
Further, the second transmitting module includes: and the sending sub-module is used for sending a package supplementing request to the cloud master station, so that the cloud master station sends the package supplementing request to the handheld terminal in a wireless communication mode, and the handheld terminal can send the preset target differential upgrade package to the target power distribution terminal again, wherein the package supplementing request is a request for resending the preset target differential upgrade package.
In order to achieve the above object, according to a fourth aspect of the present invention, there is provided a power distribution terminal upgrade apparatus. The device comprises: the first response unit is used for responding to a starting upgrading instruction triggered by the edge computing equipment and verifying whether the starting upgrading instruction is a preset instruction, wherein the preset instruction is an instruction for starting and upgrading an initial differential upgrading packet; the second response unit is used for responding to the to-be-upgraded instruction triggered by the edge computing equipment under the condition that the starting upgrading instruction is a preset instruction, receiving N target differential upgrading packets and verifying whether the data of the N target differential upgrading packets are complete or not, wherein the N target differential upgrading packets are obtained by processing the initial differential upgrading packets, the triggering time of the starting upgrading instruction is earlier than that of the to-be-upgraded instruction, and N is an integer larger than 1; and the third response unit is used for responding to the upgrade instructions triggered by the edge computing equipment under the condition that the data of the N target differential upgrade packages are complete, and executing upgrade operations according to the N target differential upgrade packages, wherein the trigger time of the instructions to be upgraded is earlier than the trigger time of the upgrade instructions.
Further, the first response unit includes: the second receiving module is used for receiving an upgrade instruction packet of the starting upgrade instruction and acquiring a starting instruction check code carried in the upgrade instruction packet; the calculation module is used for calculating the data content of the upgrade instruction packet through a verification algorithm to obtain a target instruction verification code; and the second verification module is used for verifying that the starting upgrading instruction is a preset instruction if the starting instruction check code is detected to be the same as the target instruction check code.
Further, the second response unit includes: the calculation module is used for carrying out iterative summation calculation on the data content of the N target differential upgrade packages to obtain target data check codes; the third receiving module is used for receiving an instruction packet of an instruction to be upgraded and acquiring an instruction verification code to be upgraded carried in the instruction packet to be upgraded; and the third verification module is used for determining that the data of the N target differential upgrade packages are complete if the target data check codes are detected to be the same as the to-be-upgraded instruction check codes.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic device, which may be a power distribution terminal or an edge computing device, comprising: a processor; and a memory having stored thereon computer readable instructions which when executed by the processor implement the power distribution terminal upgrade method of any one of the above.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a power distribution terminal upgrade method according to any one of the above.
According to the invention, the following steps are adopted: receiving an initial differential upgrade packet issued by a cloud master station; triggering an upgrade starting instruction, receiving an instruction verification result which is sent by a power distribution terminal and used for verifying whether the upgrade starting instruction is a preset instruction, and processing an initial differential upgrade package to obtain N target differential upgrade packages under the condition that the instruction verification result indicates that the upgrade starting instruction is the preset instruction, wherein the preset instruction is an instruction for starting and upgrading the initial differential upgrade package, and N is an integer larger than 1; triggering an instruction to be upgraded, and sequentially issuing N target differential upgrade packages to a power distribution terminal, wherein the triggering time of starting the upgrade instruction is earlier than that of the instruction to be upgraded; and receiving a data verification result which is sent by the power distribution terminal and used for verifying whether the data of the N target differential upgrade packages are complete, and triggering an upgrade instruction under the condition that the data verification result indicates that the data of the N target differential upgrade packages are complete, so that the power distribution terminal executes upgrade operation according to the N target differential upgrade packages, wherein the trigger time of the to-be-upgraded instruction is earlier than the trigger time of the upgrade instruction. The invention solves the problem of lower upgrading efficiency of the power distribution terminal in the related technology. The N target differential upgrade packages are sequentially issued to the power distribution terminal, and data integrity verification is carried out on the N target differential upgrade packages, so that the effect of improving the upgrade efficiency of the power distribution terminal is achieved.
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 specification, illustrate embodiments of the invention and together with the description serve to explain the invention. In the drawings:
fig. 1 is a flowchart of a power distribution terminal upgrade method provided according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a system architecture of a method for upgrading a power distribution terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a differential upgrade package of a power distribution terminal upgrade method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a handheld terminal of a power distribution terminal upgrade method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an upgrade interaction mechanism of a power distribution terminal upgrade method according to an embodiment of the present invention;
fig. 6 is a flowchart of another method for upgrading a power distribution terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a power distribution terminal upgrade apparatus provided according to an embodiment of the present invention;
fig. 8 is a schematic diagram of another power distribution terminal upgrade apparatus provided according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a network architecture of an electronic device according to an embodiment of the present invention.
Detailed Description
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other. The invention 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 invention, a technical solution in the embodiments of the present invention 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 invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention 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 invention 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.
For convenience of description, the following will describe some terms or terminology involved in the embodiments of the present invention:
bsdiff algorithm (binary differential patch ): the bsdiff difference algorithm is an algorithm for generating a binary difference patch by comparing binary data of two files to generate a piece of metadata describing a difference between a source file and a target file, and then merging the source file difference portion with the target file using the metadata to generate a new target file.
According to the embodiment of the invention, a power distribution terminal upgrading method is provided.
Fig. 1 is a flowchart of a power distribution terminal upgrade method according to an embodiment of the present invention. Applied to an edge computing device, as shown in fig. 1, the method comprises the steps of:
step S101, an initial differential upgrade package issued by a cloud master station is received.
For example, as shown in fig. 2, an edge computing node on an edge computing device receives an initial differential upgrade packet sent by a cloud master station by using a bsdiff differential algorithm, and stores the initial differential upgrade packet to a data center of the edge computing node. The bsdiff algorithm is a file difference algorithm based on an approximate matching theory, firstly, an old version firmware file is read, dictionary ordering is carried out on the file suffix, the suffix ordering algorithm is used for calculating and generating a suffix ordering array, then the suffix ordering array is used for traversing new firmware to find out sequences which are identical to the old firmware, and the identical sequences are expanded to two sides according to the matching degree between the new firmware and the old firmware. If there is a code in the new firmware that does not match any region in the old firmware, it is stored as difference data in the difference packet. After the differential file output by the differential algorithm is transmitted to the terminal of the power distribution Internet of things, the embedded system can restore the new firmware by utilizing the differential file and the old firmware in the system.
Step S102, triggering an upgrade starting instruction, receiving an instruction verification result for verifying whether the upgrade starting instruction is a preset instruction sent by the power distribution terminal, and processing the initial differential upgrade package to obtain N target differential upgrade packages under the condition that the instruction verification result indicates that the upgrade starting instruction is the preset instruction, wherein the preset instruction is an instruction for starting and upgrading the initial differential upgrade package, and N is an integer larger than 1.
The method comprises the steps of triggering a starting upgrading instruction through an edge computing node, issuing the starting upgrading instruction to a power distribution terminal, verifying whether the starting upgrading instruction is a preset instruction through the power distribution terminal, receiving an instruction verification result issued by the power distribution terminal, if the starting upgrading instruction is equal to the preset instruction, indicating that the starting upgrading instruction is a correct upgrading instruction, and executing subsequent sub-packaging operation on an initial differential upgrading packet.
Specifically, the instruction for triggering and starting the upgrade is received, and the instruction verification result for verifying whether the instruction for starting the upgrade is a preset instruction sent by the power distribution terminal can be obtained through the following steps: triggering a starting upgrading instruction and acquiring an upgrading instruction packet of the starting upgrading instruction; issuing an upgrade instruction packet to the power distribution terminal so that the power distribution terminal verifies whether the upgrade instruction is a preset instruction according to the upgrade instruction packet; and receiving an instruction verification result of the starting upgrading instruction sent by the power distribution terminal.
The power distribution terminal calculates whether the CRC check code in the start-up upgrade instruction packet is equal to the CRC check code of the terminal node or not, if the CRC check code and the CRC check code are not equal to each other, the start-up upgrade instruction is not a correct preset instruction, namely, the instruction is not an instruction for starting up upgrade to the initial differential upgrade packet, if the CRC check code and the CRC check code are equal to each other, the start-up upgrade instruction is a correct upgrade instruction, and subsequent processing operation to the initial differential upgrade packet is executed.
In order to reduce network congestion rate and improve upgrading success rate, the method processes the initial differential upgrading packet to obtain N target differential upgrading packets, and the method specifically comprises the following steps: splitting the initial differential upgrade package into N parts to obtain N differential upgrade packages; and carrying out software configuration on the N differential upgrade packages respectively to obtain N corresponding target differential upgrade packages.
For example, the initial differential upgrade packet may be divided into 8 or 16 separate differential upgrade packets according to a 1:8 or 1:16 manner, and each single packet is identified and numbered, and a program upgrade flag bit is set, where the identification number is used to record the serial number of the single packet, and the program upgrade flag bit is used to indicate whether the single packet has been received. Wherein, N target differential upgrade packages respectively include: single package identification, single package program, check code, program upgrade identification.
Specifically, as shown in fig. 3, the software configuration performed on the N differential upgrade packages may be a single Bao Bianhao configuration, a single package program configuration, a package CRC (cyclic redundancy check code), and a program upgrade flag bit, where:
(1) Single Bao Bianhao: the identification number used to represent the package is, for example, 1,2,3.
(2) Single package procedure: representing the specific contents of the package.
(3) Package CRC: the check code is a common check code in the communication field, the check on the communication reliability is needed, the check is carried out from the data itself, the check is carried out by means of a certain mathematical agreed form, the check result is reliable or unreliable, the data is processed if the check result is reliable, and the retransmission is discarded or the repair is carried out if the check result is unreliable.
(4) Program upgrade flag bit: the method is used for identifying the currently received program package, and is used for indicating that the package program is not received in time 0 and indicating that the package program is received in time 1. Whether the terminal node receives the single packet can be known by checking the program upgrading flag bit, and if the single packet is received, starting upgrading after receiving all the single packets; if the single packet is not received, selecting to resend the single packet from the edge computing node in a broadcasting mode according to the number of the terminal nodes which do not receive the single packet, or finishing accurate supplementary packet of the single packet through the handheld terminal.
The invention improves the upgrading efficiency of the terminal nodes by sub-packaging the initial differential upgrading packet, and ensures the consistency and accuracy of upgrading a large number of terminal nodes at the bottom.
Step S103, triggering an instruction to be upgraded, and sequentially issuing N target differential upgrade packages to the power distribution terminal, wherein the triggering time for starting the upgrade instruction is earlier than the triggering time of the instruction to be upgraded.
Under the condition that the verification starting upgrading instruction is a correct preset instruction, the to-be-upgraded instruction is triggered, and the integrity verification is carried out on a plurality of target differential upgrading packages sent to the power distribution terminal through a multiple verification mechanism, so that the follow-up upgrading accuracy and reliability of the power distribution terminal are improved.
Specifically, if there are multiple power distribution terminals of the same type, triggering an instruction to be upgraded, and sequentially issuing N target differential upgrade packages to the power distribution terminals, including: if the fact that the target power distribution terminals do not receive the preset target differential upgrade package is detected in the power distribution terminals, the number of the target power distribution terminals is obtained, wherein the preset target differential upgrade package is at least one of N target differential upgrade packages; if the number of the target power distribution terminals is greater than a preset threshold value, a preset target differential upgrade package is re-issued to the target power distribution terminals in a broadcasting mode; and if the number of the target power distribution terminals is smaller than or equal to the preset threshold value, the preset target differential upgrade package is re-issued to the target power distribution terminals through the handheld terminal.
The number of the edge computing nodes of the edge computing equipment is 20, N independent target differential upgrade packages are sequentially issued to the 20 power distribution terminals in a broadcast mode, the broadcast times can be set for 5 times, then terminal node program upgrade flag bits of the power distribution terminals are checked in real time, it can be known that the terminal nodes of the power distribution terminals do not receive the N-1 th and/or N-5 th preset target differential upgrade packages, for example, the number of the nodes of the 20 power distribution terminals which do not receive the two single packages is counted to be 10, the number is considered to be 5% of the number of the whole terminal nodes, the edge computing nodes send the single packages to the target power distribution terminals again in a broadcast mode, otherwise, the hand-held terminals carry out point-to-point supplementary packages to the target power distribution terminals which do not receive the single packages.
Specifically, if the number of the target power distribution terminals is smaller than or equal to the preset threshold, the preset target differential upgrade package is re-issued to the target power distribution terminals through the handheld terminal, and the method can be obtained through the following steps: and sending a package supplementing request to the cloud master station, so that the cloud master station sends the package supplementing request to the handheld terminal in a wireless communication mode, and the handheld terminal can send the preset target differential upgrade package to the target power distribution terminal again, wherein the package supplementing request is a request for resending the preset target differential upgrade package.
If the number of the terminal nodes of the target power distribution terminals in the plurality of power distribution terminals does not receive the N-1 preset target differential upgrade packet, counting the number of the nodes of the target power distribution terminals which do not receive the single packet in the 30 power distribution terminals as 1, and considering that the number is not more than 5% of the number of the whole terminal nodes, sending a package supplementing request to a cloud master station, enabling the cloud master station to send the package supplementing request to a handheld terminal in a wireless communication mode, and performing point-to-point package supplementing on the target power distribution terminals which do not receive the single packet through the handheld terminal.
Specifically, as shown in fig. 4, the handheld terminal mainly comprises a main control module, a bluetooth module, a 4G wireless communication module, a power management module and an input/output module, wherein:
(1) And the main control module: the main control module is a hardware core of the whole device and is responsible for signal control and management of the whole device, data communication is carried out between the main control module and the 4G wireless communication module through a serial port, communication is carried out between the main control module and the Bluetooth module through another serial port, and data of terminal node equipment are collected; the functions of liquid crystal display, fingerprint identification, camera management and the like are realized through the connection of the I/O and the input/output module.
(2) Bluetooth module: the method mainly realizes information acquisition and packet transmission of the bottom-layer terminal node equipment, and completes data exchange with the main control module through a serial port.
(3) 4G wireless communication module: the main function is to receive the data command sent by the main station system and upload the terminal node information to the main station system in a 4G mode.
(4) And a power management module: the handheld terminal power supply management system mainly realizes the supply and management of the handheld terminal power supply, comprises battery hardware and a power supply management circuit, and ensures that the handheld terminal can have enough energy under an outdoor long-time working mode by adopting a high-capacity aggregation physical ion battery.
(5) Input/output module: the input/output module is controlled by the I/O of the main control module, mainly realizes the functions of liquid crystal display, keyboard control, external interface, sound, control input and the like, and reserves a part of interfaces in addition so as to facilitate the subsequent expansion application.
According to the invention, the handheld terminal communicates with the cloud master station in a 4G wireless communication mode, and accurate packet supplement of the terminal nodes is realized through Bluetooth, so that the upgrading efficiency of the power distribution terminal is further improved.
Step S104, receiving a data verification result sent by the power distribution terminal for verifying whether the data of the N target differential upgrade packages are complete, and triggering an upgrade instruction under the condition that the data verification result indicates that the data of the N target differential upgrade packages are complete, so that the power distribution terminal executes upgrade operation according to the N target differential upgrade packages, wherein the trigger time of the to-be-upgraded instruction is earlier than the trigger time of the upgrade instruction.
Specifically, as shown in fig. 5, an edge computing node of the edge computing device issues a 1 st single packet in N target differential upgrade packets; then, writing the 1 st single packet into a program storage area of a terminal node of the power distribution terminal, and comparing CRC check codes of the 1 st single packet and the program storage area program packet of the terminal node by the power distribution terminal to ensure that the 1 st single packet is correctly written; and then sequentially completing writing of all single packets, calculating CRC of a complete differential packet through N iterations, comparing the CRC with the differential packet CRC of the edge computing node data center, and performing upgrade file integrity check, and triggering an upgrade instruction if the check is successful, so that the power distribution terminal performs upgrade operation according to N target differential upgrade packets.
According to the power distribution terminal upgrading method provided by the embodiment of the invention, the initial differential upgrading packet issued by the cloud master station is received; triggering an upgrade starting instruction, receiving an instruction verification result which is sent by a power distribution terminal and used for verifying whether the upgrade starting instruction is a preset instruction, and processing an initial differential upgrade package to obtain N target differential upgrade packages under the condition that the instruction verification result indicates that the upgrade starting instruction is the preset instruction, wherein the preset instruction is an instruction for starting and upgrading the initial differential upgrade package, and N is an integer larger than 1; triggering an instruction to be upgraded, and sequentially issuing N target differential upgrade packages to a power distribution terminal, wherein the triggering time of starting the upgrade instruction is earlier than that of the instruction to be upgraded; and receiving a data verification result which is sent by the power distribution terminal and used for verifying whether the data of the N target differential upgrade packages are complete, and triggering an upgrade instruction under the condition that the data verification result indicates that the data of the N target differential upgrade packages are complete, so that the power distribution terminal executes upgrade operation according to the N target differential upgrade packages, wherein the trigger time of the to-be-upgraded instruction is earlier than the trigger time of the upgrade instruction. The invention solves the problem of lower upgrading efficiency of the power distribution terminal in the related technology. The N target differential upgrade packages are sequentially issued to the power distribution terminal, and data integrity verification is carried out on the N target differential upgrade packages, so that the effect of improving the upgrade efficiency of the power distribution terminal is achieved.
The embodiment of the invention also provides a power distribution terminal upgrading method, and the power distribution terminal upgrading method provided by the embodiment of the invention is introduced below.
Fig. 6 is a flow chart of another method of upgrading a power distribution terminal according to an embodiment of the present invention. As shown in fig. 6, the method includes:
s601, responding to a starting upgrading instruction triggered by the edge computing equipment, and verifying whether the starting upgrading instruction is a preset instruction, wherein the preset instruction is an instruction for starting and upgrading an initial differential upgrading packet.
Specifically, in response to an upgrade starting instruction triggered by the edge computing device, verifying whether the upgrade starting instruction is a preset instruction includes: receiving an upgrade instruction packet of a start upgrade instruction, and acquiring a start instruction check code carried in the upgrade instruction packet; calculating the data content of the upgrade instruction packet through a verification algorithm to obtain a target instruction verification code; if the starting instruction check code is detected to be the same as the target instruction check code, the starting upgrading instruction is verified to be a preset instruction.
The power distribution terminal device receives a starting upgrade instruction issued by the edge computing node, and calculates whether a target CRC check code in the upgrade instruction packet is equal to a starting instruction check code carried by the instruction packet, if so, the starting upgrade instruction is a correct instruction for starting upgrade to the initial differential upgrade packet.
S602, under the condition that the starting upgrade instruction is a preset instruction, responding to an instruction to be upgraded triggered by the edge computing equipment, receiving N target differential upgrade packages, and verifying whether data of the N target differential upgrade packages are complete, wherein the N target differential upgrade packages are obtained by processing initial differential upgrade packages, the triggering time of the starting upgrade instruction is earlier than that of the instruction to be upgraded, and N is an integer larger than 1.
Specifically, receiving N target differential upgrade packages, and verifying whether the data of the N target differential upgrade packages are complete, which can be obtained by the following steps: carrying out iterative summation calculation on the data content of the N target differential upgrade packages to obtain target data check codes; receiving an instruction packet to be upgraded of an instruction to be upgraded, and acquiring an instruction verification code to be upgraded carried in the instruction packet to be upgraded; if the target data check code is detected to be the same as the instruction check code to be upgraded, determining that the data of the N target differential upgrade packages are complete.
Illustratively, an edge computing node of the receiving edge computing device issues a 1 st single packet of the N target differential upgrade packets; then, writing the 1 st single packet into a program storage area of a terminal node of the power distribution terminal, and comparing CRC check codes of the 1 st single packet and the program storage area program packet of the terminal node by the power distribution terminal to ensure that the 1 st single packet is correctly written; and then sequentially completing writing of all single packets, calculating CRC (target data check code) of the complete differential packet through N times of iteration, comparing with the differential packet CRC (to-be-updated instruction check code) of the edge computing node data center, and determining that the data of N target differential update packets are complete if the comparison results are the same.
S603, under the condition that the data of the N target differential upgrade packages are complete, responding to upgrade instructions triggered by the edge computing equipment, and executing upgrade operations according to the N target differential upgrade packages, wherein the trigger time of the instructions to be upgraded is earlier than that of the upgrade instructions.
As shown in the above example, if the verification succeeds to obtain that the data of the N target differential upgrade packages are complete, in response to the upgrade instruction, an upgrade operation is performed in the power distribution terminal device according to the N target differential upgrade packages.
It should be noted that, if the data of the N target differential upgrade packages are verified to be incomplete, that is, if there is a missing single preset target differential upgrade package, the single package is selected to be retransmitted from the edge computing node in a broadcast manner or the accurate package supplementing of the single package is completed through the handheld terminal according to the number of terminal nodes of the distribution terminal that does not receive the single package.
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 invention provides a power distribution terminal upgrading device, and the power distribution terminal upgrading device can be used for executing the power distribution terminal upgrading method. The following describes a power distribution terminal upgrading device provided by the embodiment of the invention.
Fig. 7 is a schematic diagram of a power distribution terminal upgrade apparatus according to an embodiment of the present invention. As shown in fig. 7, the apparatus includes: a first receiving unit 701, a first triggering unit 702, a second triggering unit 703, and a second receiving unit 704.
Specifically, the first receiving unit 701 is configured to receive an initial differential upgrade packet issued by the cloud master station;
the first triggering unit 702 is configured to trigger an upgrade starting instruction, and receive an instruction verification result for verifying whether the upgrade starting instruction is a preset instruction, where the instruction verification result indicates that the upgrade starting instruction is the preset instruction, and process an initial differential upgrade package to obtain N target differential upgrade packages, where the preset instruction is an instruction for starting and upgrading the initial differential upgrade package, and N is an integer greater than 1;
the second triggering unit 703 is configured to trigger an instruction to be upgraded, and sequentially issue N target differential upgrade packages to the power distribution terminal, where the triggering time of starting the upgrade instruction is earlier than the triggering time of the instruction to be upgraded;
And the second receiving unit 704 is configured to receive a data verification result sent by the power distribution terminal and used to verify whether the data of the N target differential upgrade packages are complete, and if the data verification result indicates that the data of the N target differential upgrade packages are complete, trigger an upgrade instruction, so that the power distribution terminal performs an upgrade operation according to the N target differential upgrade packages, where a trigger time of the to-be-upgraded instruction is earlier than a trigger time of the upgrade instruction.
Optionally, in the power distribution terminal upgrading device provided by the embodiment of the present invention, a first trigger unit includes: the splitting module is used for splitting the initial differential upgrade package into N parts to obtain N differential upgrade packages; the configuration module is used for carrying out software configuration on the N differential upgrade packages respectively to obtain N corresponding target differential upgrade packages.
Optionally, in the power distribution terminal upgrade apparatus provided by the embodiment of the present invention, N target differential upgrade packages respectively include: single package identification, single package program, check code, program upgrade identification.
Optionally, in the power distribution terminal upgrading device provided by the embodiment of the present invention, a first trigger unit includes: the triggering module is used for triggering the starting upgrading instruction and acquiring an upgrading instruction packet for starting the upgrading instruction; the first verification module is used for issuing an upgrade instruction packet to the power distribution terminal so that the power distribution terminal verifies whether the upgrade instruction is a preset instruction according to the upgrade instruction packet; the first receiving module is used for receiving an instruction verification result of the starting upgrading instruction sent by the power distribution terminal.
Optionally, in the power distribution terminal upgrading device provided in the embodiment of the present invention, if there are multiple power distribution terminals of the same type, the second triggering unit includes: the acquisition module is used for acquiring the number of the target power distribution terminals if the target power distribution terminals are detected to be in the power distribution terminals and do not receive the preset target differential upgrade package, wherein the preset target differential upgrade package is at least one of N target differential upgrade packages; the first sending module is used for sending the preset target differential upgrade packages to the target power distribution terminals again in a broadcasting mode if the number of the target power distribution terminals is larger than a preset threshold value; and the second sending module is used for re-sending the preset target differential upgrade packages to the target power distribution terminals through the handheld terminals if the number of the target power distribution terminals is smaller than or equal to a preset threshold value.
Optionally, in the power distribution terminal upgrading device provided by the embodiment of the present invention, the second sending module includes: and the sending sub-module is used for sending a package supplementing request to the cloud master station, so that the cloud master station sends the package supplementing request to the handheld terminal in a wireless communication mode, and the handheld terminal can send the preset target differential upgrade package to the target power distribution terminal again, wherein the package supplementing request is a request for resending the preset target differential upgrade package.
The embodiment of the invention also provides a power distribution terminal upgrading device, and the power distribution terminal upgrading device can be used for executing the power distribution terminal upgrading method. The following describes a power distribution terminal upgrading device provided by the embodiment of the invention.
Fig. 8 is a schematic diagram of another power distribution terminal upgrade apparatus according to an embodiment of the present invention. As shown in fig. 8, the apparatus includes: the device comprises: a first response unit 801, a second response unit 802, and a third response unit 803.
Specifically, the first response unit 801 is configured to verify whether the startup upgrade instruction is a preset instruction in response to a startup upgrade instruction triggered by the edge computing device, where the preset instruction is an instruction for startup upgrade of the initial differential upgrade package;
the second response unit 802 is configured to, when it is verified that the start-up upgrade instruction is a preset instruction, receive N target differential upgrade packages in response to a to-be-upgraded instruction triggered by the edge computing device, and verify whether data of the N target differential upgrade packages are complete, where the N target differential upgrade packages are obtained by processing an initial differential upgrade package, and a trigger time of the start-up upgrade instruction is earlier than a trigger time of the to-be-upgraded instruction, where N is an integer greater than 1;
And a third response unit 803, configured to respond to an upgrade instruction triggered by the edge computing device and perform an upgrade operation according to the N target differential upgrade packages, where a trigger time of the instruction to be upgraded is earlier than a trigger time of the upgrade instruction, when the data of the N target differential upgrade packages is verified to be complete.
Optionally, in the power distribution terminal upgrading device provided by the embodiment of the present invention, the first response unit includes: the second receiving module is used for receiving an upgrade instruction packet of the starting upgrade instruction and acquiring a starting instruction check code carried in the upgrade instruction packet; the calculation module is used for calculating the data content of the upgrade instruction packet through a verification algorithm to obtain a target instruction verification code; and the second verification module is used for verifying that the starting upgrading instruction is a preset instruction if the starting instruction check code is detected to be the same as the target instruction check code.
Optionally, in the power distribution terminal upgrading device provided by the embodiment of the present invention, the second response unit includes: the calculation module is used for carrying out iterative summation calculation on the data content of the N target differential upgrade packages to obtain target data check codes; the third receiving module is used for receiving an instruction packet of an instruction to be upgraded and acquiring an instruction verification code to be upgraded carried in the instruction packet to be upgraded; and the third verification module is used for determining that the data of the N target differential upgrade packages are complete if the target data check codes are detected to be the same as the to-be-upgraded instruction check codes.
The power distribution terminal upgrading device comprises a processor and a memory, wherein the first receiving unit 701, the first triggering unit 702, the second triggering unit 703, the second receiving unit 704 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, and the power distribution terminal is upgraded by adjusting the 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.
In an exemplary embodiment of the present disclosure, a computer storage medium capable of implementing the above method is also provided. On which a program product is stored which enables the implementation of the method described above in the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device, e.g. the following steps may be carried out: receiving an initial differential upgrade packet issued by a cloud master station; triggering an upgrade starting instruction, receiving an instruction verification result which is sent by a power distribution terminal and used for verifying whether the upgrade starting instruction is a preset instruction, and processing an initial differential upgrade package to obtain N target differential upgrade packages under the condition that the instruction verification result indicates that the upgrade starting instruction is the preset instruction, wherein the preset instruction is an instruction for starting and upgrading the initial differential upgrade package, and N is an integer larger than 1; triggering an instruction to be upgraded, and sequentially issuing N target differential upgrade packages to a power distribution terminal, wherein the triggering time of starting the upgrade instruction is earlier than that of the instruction to be upgraded; and receiving a data verification result which is sent by the power distribution terminal and used for verifying whether the data of the N target differential upgrade packages are complete, and triggering an upgrade instruction under the condition that the data verification result indicates that the data of the N target differential upgrade packages are complete, so that the power distribution terminal executes upgrade operation according to the N target differential upgrade packages, wherein the trigger time of the to-be-upgraded instruction is earlier than the trigger time of the upgrade instruction.
In an alternative embodiment: splitting the initial differential upgrade package into N parts to obtain N differential upgrade packages; and carrying out software configuration on the N differential upgrade packages respectively to obtain N corresponding target differential upgrade packages.
In an alternative embodiment: single package identification, single package program, check code, program upgrade identification.
In an alternative embodiment: triggering a starting upgrading instruction and acquiring an upgrading instruction packet of the starting upgrading instruction; issuing an upgrade instruction packet to the power distribution terminal so that the power distribution terminal verifies whether the upgrade instruction is a preset instruction according to the upgrade instruction packet; and receiving an instruction verification result of the starting upgrading instruction sent by the power distribution terminal.
In an alternative embodiment: if the fact that the target power distribution terminals do not receive the preset target differential upgrade package is detected in the power distribution terminals, the number of the target power distribution terminals is obtained, wherein the preset target differential upgrade package is at least one of N target differential upgrade packages; if the number of the target power distribution terminals is greater than a preset threshold value, a preset target differential upgrade package is re-issued to the target power distribution terminals in a broadcasting mode; and if the number of the target power distribution terminals is smaller than or equal to the preset threshold value, the preset target differential upgrade package is re-issued to the target power distribution terminals through the handheld terminal.
In an alternative embodiment: and sending a package supplementing request to the cloud master station, so that the cloud master station sends the package supplementing request to the handheld terminal in a wireless communication mode, and the handheld terminal can send the preset target differential upgrade package to the target power distribution terminal again, wherein the package supplementing request is a request for resending the preset target differential upgrade package.
In an alternative embodiment, embodiments of the present disclosure may also include a program product for implementing the above method, which may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 900 according to such an embodiment of the present disclosure is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. Components of electronic device 900 may include, but are not limited to: the at least one processing unit 910, the at least one storage unit 920, a bus 930 connecting the different system components (including the storage unit 920 and the processing unit 910), and a display unit 940.
Wherein the storage unit stores program code that is executable by the processing unit 910 such that the processing unit 910 performs steps according to various exemplary embodiments of the present disclosure described in the above-described "exemplary methods" section of the present specification. For example, the processing unit 910 may perform the steps as follows: receiving an initial differential upgrade packet issued by a cloud master station; triggering an upgrade starting instruction, receiving an instruction verification result which is sent by a power distribution terminal and used for verifying whether the upgrade starting instruction is a preset instruction, and processing an initial differential upgrade package to obtain N target differential upgrade packages under the condition that the instruction verification result indicates that the upgrade starting instruction is the preset instruction, wherein the preset instruction is an instruction for starting and upgrading the initial differential upgrade package, and N is an integer larger than 1; triggering an instruction to be upgraded, and sequentially issuing N target differential upgrade packages to a power distribution terminal, wherein the triggering time of starting the upgrade instruction is earlier than that of the instruction to be upgraded; and receiving a data verification result which is sent by the power distribution terminal and used for verifying whether the data of the N target differential upgrade packages are complete, and triggering an upgrade instruction under the condition that the data verification result indicates that the data of the N target differential upgrade packages are complete, so that the power distribution terminal executes upgrade operation according to the N target differential upgrade packages, wherein the trigger time of the to-be-upgraded instruction is earlier than the trigger time of the upgrade instruction.
In an alternative embodiment: splitting the initial differential upgrade package into N parts to obtain N differential upgrade packages; and carrying out software configuration on the N differential upgrade packages respectively to obtain N corresponding target differential upgrade packages.
In an alternative embodiment: single package identification, single package program, check code, program upgrade identification.
In an alternative embodiment: triggering a starting upgrading instruction and acquiring an upgrading instruction packet of the starting upgrading instruction; issuing an upgrade instruction packet to the power distribution terminal so that the power distribution terminal verifies whether the upgrade instruction is a preset instruction according to the upgrade instruction packet; and receiving an instruction verification result of the starting upgrading instruction sent by the power distribution terminal.
In an alternative embodiment: if the fact that the target power distribution terminals do not receive the preset target differential upgrade package is detected in the power distribution terminals, the number of the target power distribution terminals is obtained, wherein the preset target differential upgrade package is at least one of N target differential upgrade packages; if the number of the target power distribution terminals is greater than a preset threshold value, a preset target differential upgrade package is re-issued to the target power distribution terminals in a broadcasting mode; and if the number of the target power distribution terminals is smaller than or equal to the preset threshold value, the preset target differential upgrade package is re-issued to the target power distribution terminals through the handheld terminal.
In an alternative embodiment: and sending a package supplementing request to the cloud master station, so that the cloud master station sends the package supplementing request to the handheld terminal in a wireless communication mode, and the handheld terminal can send the preset target differential upgrade package to the target power distribution terminal again, wherein the package supplementing request is a request for resending the preset target differential upgrade package.
The storage unit 920 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 9201 and/or cache memory 9202, and may further include Read Only Memory (ROM) 9203.
The storage unit 920 may also include a program/utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The bus 930 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 1000 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 900, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 900 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 950. Also, electronic device 900 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 over the bus 930. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 900, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are only schematic illustrations of processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (21)

1. A method for upgrading a power distribution terminal, applied to an edge computing device, the method comprising:
receiving an initial differential upgrade packet issued by a cloud master station;
triggering an upgrade starting instruction, receiving an instruction verification result which is sent by a power distribution terminal and used for verifying whether the upgrade starting instruction is a preset instruction, and processing the initial differential upgrade package to obtain N target differential upgrade packages when the instruction verification result indicates that the upgrade starting instruction is the preset instruction, wherein the preset instruction is an instruction for starting and upgrading the initial differential upgrade package, and N is an integer larger than 1;
Triggering an instruction to be upgraded, and sequentially issuing the N target differential upgrade packages to the power distribution terminal, wherein the triggering time of starting the upgrade instruction is earlier than that of the instruction to be upgraded;
and receiving a data verification result which is sent by the power distribution terminal and used for verifying whether the data of the N target differential upgrade packages are complete, and triggering an upgrade instruction under the condition that the data verification result indicates that the data of the N target differential upgrade packages are complete, so that the power distribution terminal executes upgrade operation according to the N target differential upgrade packages, wherein the trigger time of the instruction to be upgraded is earlier than the trigger time of the upgrade instruction.
2. The method for upgrading a power distribution terminal according to claim 1, wherein processing the initial differential upgrade package to obtain N target differential upgrade packages comprises:
splitting the initial differential upgrade package into N parts to obtain N differential upgrade packages;
and carrying out software configuration on the N differential upgrade packages respectively to obtain the N corresponding target differential upgrade packages.
3. The power distribution terminal upgrade method according to claim 1, wherein the N target differential upgrade packages respectively include: single package identification, single package program, check code, program upgrade identification.
4. The power distribution terminal upgrade method according to claim 1, wherein triggering a start upgrade instruction and receiving an instruction verification result sent by a power distribution terminal to verify whether the start upgrade instruction is a preset instruction, includes:
triggering the starting upgrading instruction to acquire an upgrading instruction packet of the starting upgrading instruction;
the upgrade instruction packet is issued to the power distribution terminal, so that the power distribution terminal verifies whether the upgrade instruction is a preset instruction according to the upgrade instruction packet;
and receiving the instruction verification result of the starting upgrading instruction sent by the power distribution terminal.
5. The power distribution terminal upgrading method according to claim 1, wherein if there are a plurality of power distribution terminals of the same type, triggering an instruction to be upgraded, and sequentially issuing the N target differential upgrade packages to the power distribution terminals, including:
if the fact that the target power distribution terminals in the power distribution terminals do not receive a preset target differential upgrade package is detected, the number of the target power distribution terminals is obtained, wherein the preset target differential upgrade package is at least one of the N target differential upgrade packages;
if the number of the target power distribution terminals is larger than a preset threshold, the preset target differential upgrade packages are re-issued to the target power distribution terminals in a broadcasting mode;
And if the number of the target power distribution terminals is smaller than or equal to the preset threshold, the preset target differential upgrade package is re-issued to the target power distribution terminals through the handheld terminal.
6. The power distribution terminal upgrade method according to claim 5, wherein if the number of the target power distribution terminals is less than or equal to the preset threshold, the preset target differential upgrade package is re-issued to the target power distribution terminals through a handheld terminal, comprising:
and sending a supplementary package request to the Yun Zhuzhan, so that the cloud master station sends the supplementary package request to the handheld terminal in a wireless communication mode, so that the handheld terminal can send the preset target differential upgrade package to the target power distribution terminal again, wherein the supplementary package request is a request for sending the preset target differential upgrade package again.
7. The utility model provides a distribution terminal upgrading method which is characterized in that, be applied to the distribution terminal, include:
responding to a starting upgrading instruction triggered by the edge computing equipment, and verifying whether the starting upgrading instruction is a preset instruction, wherein the preset instruction is an instruction for starting and upgrading an initial differential upgrading packet;
Receiving N target differential upgrade packages in response to an instruction to be upgraded triggered by the edge computing equipment under the condition that the starting upgrade instruction is verified to be the preset instruction, and verifying whether the data of the N target differential upgrade packages are complete, wherein the N target differential upgrade packages are obtained by processing the initial differential upgrade packages, the triggering time of the starting upgrade instruction is earlier than that of the instruction to be upgraded, and N is an integer greater than 1;
and under the condition that the data of the N target differential upgrade packages are complete, responding to an upgrade instruction triggered by the edge computing equipment, and executing upgrade operation according to the N target differential upgrade packages, wherein the trigger time of the instruction to be upgraded is earlier than that of the upgrade instruction.
8. The power distribution terminal upgrade method according to claim 7, wherein verifying whether the start-up upgrade instruction is a preset instruction in response to a start-up upgrade instruction triggered by an edge computing device comprises:
receiving an upgrade instruction packet of the start upgrade instruction, and acquiring a start instruction check code carried in the upgrade instruction packet;
Calculating the data content of the upgrade instruction packet through a verification algorithm to obtain a target instruction verification code;
and if the starting instruction check code is detected to be the same as the target instruction check code, verifying that the starting upgrading instruction is a preset instruction.
9. The power distribution terminal upgrade method according to claim 7, wherein receiving N target differential upgrade packages and verifying whether data of the N target differential upgrade packages is complete comprises:
performing iterative summation calculation on the data content of the N target differential upgrade packages to obtain target data check codes;
receiving an instruction packet to be upgraded of the instruction to be upgraded, and acquiring an instruction verification code to be upgraded carried in the instruction packet to be upgraded;
and if the target data check code is detected to be the same as the to-be-upgraded instruction check code, determining that the data of the N target differential upgrade packages are complete.
10. An upgrade apparatus for a power distribution terminal, applied to an edge computing device, comprising:
the first receiving unit is used for receiving an initial differential upgrade packet issued by the cloud master station;
the first triggering unit is used for triggering a starting upgrading instruction and receiving an instruction verification result which is sent by the power distribution terminal and used for verifying whether the starting upgrading instruction is a preset instruction, if the instruction verification result indicates that the starting upgrading instruction is the preset instruction, the initial differential upgrading packet is processed to obtain N target differential upgrading packets, wherein the preset instruction is an instruction for starting and upgrading the initial differential upgrading packet, and N is an integer larger than 1;
The second triggering unit is used for triggering an instruction to be upgraded and sequentially issuing the N target differential upgrade packages to the power distribution terminal, wherein the triggering time of starting the upgrade instruction is earlier than that of the instruction to be upgraded;
and the second receiving unit is used for receiving a data verification result which is sent by the power distribution terminal and used for verifying whether the data of the N target differential upgrade packages are complete, and triggering an upgrade instruction if the data verification result indicates that the data of the N target differential upgrade packages are complete, so that the power distribution terminal can execute upgrade operation according to the N target differential upgrade packages, wherein the trigger time of the instruction to be upgraded is earlier than the trigger time of the upgrade instruction.
11. The power distribution terminal upgrade apparatus of claim 10, wherein the first trigger unit comprises:
the splitting module is used for splitting the initial differential upgrade package into N parts to obtain N differential upgrade packages;
and the configuration module is used for carrying out software configuration on the N differential upgrade packages respectively to obtain the N corresponding target differential upgrade packages.
12. The power distribution terminal upgrade apparatus of claim 10, wherein the N target differential upgrade packages respectively include: single package identification, single package program, check code, program upgrade identification.
13. The power distribution terminal upgrade apparatus of claim 10, wherein the first trigger unit comprises:
the triggering module is used for triggering the starting upgrading instruction and acquiring an upgrading instruction packet of the starting upgrading instruction;
the first verification module is used for issuing the upgrade instruction packet to the power distribution terminal so that the power distribution terminal verifies whether the upgrade instruction is a preset instruction according to the upgrade instruction packet;
the first receiving module is used for receiving the instruction verification result of the starting upgrading instruction sent by the power distribution terminal.
14. The power distribution terminal upgrade apparatus according to claim 10, wherein the second trigger unit, if there are a plurality of the same type of the power distribution terminals, comprises:
the acquisition module is used for acquiring the number of the target power distribution terminals if the target power distribution terminals in the power distribution terminals are detected to not receive a preset target differential upgrade package, wherein the preset target differential upgrade package is at least one of the N target differential upgrade packages;
the first sending module is used for sending the preset target differential upgrade packages to the target power distribution terminals again in a broadcasting mode if the number of the target power distribution terminals is larger than a preset threshold value;
And the second sending module is used for re-sending the preset target differential upgrade packages to the target power distribution terminals through the handheld terminals if the number of the target power distribution terminals is smaller than or equal to the preset threshold value.
15. The power distribution terminal upgrade apparatus of claim 14, wherein the second transmission module comprises:
and the sending sub-module is used for sending a supplementary package request to the Yun Zhuzhan, so that the cloud master station sends the supplementary package request to the handheld terminal in a wireless communication mode, and the handheld terminal can send the preset target differential upgrade package to the target power distribution terminal again, wherein the supplementary package request is a request for sending the preset target differential upgrade package again.
16. A power distribution terminal upgrade apparatus, characterized in that it is applied to a power distribution terminal, comprising:
the first response unit is used for responding to a starting upgrading instruction triggered by the edge computing equipment and verifying whether the starting upgrading instruction is a preset instruction, wherein the preset instruction is an instruction for starting and upgrading an initial differential upgrading packet;
the second response unit is used for responding to an instruction to be upgraded triggered by the edge computing equipment under the condition that the instruction to be upgraded is verified to be the preset instruction, receiving N target differential upgrade packages and verifying whether the data of the N target differential upgrade packages are complete or not, wherein the N target differential upgrade packages are obtained by processing the initial differential upgrade packages, the triggering time of the instruction to be upgraded is earlier than that of the instruction to be upgraded, and N is an integer larger than 1;
And the third response unit is used for responding to the upgrade instructions triggered by the edge computing equipment under the condition that the data of the N target differential upgrade packages are complete, and executing upgrade operations according to the N target differential upgrade packages, wherein the trigger time of the instructions to be upgraded is earlier than that of the upgrade instructions.
17. The power distribution terminal upgrade apparatus according to claim 16, wherein the first response unit comprises:
the second receiving module is used for receiving the upgrade instruction packet of the start upgrade instruction and acquiring a start instruction check code carried in the upgrade instruction packet;
the calculation module is used for calculating the data content of the upgrading instruction packet through a verification algorithm to obtain a target instruction verification code;
and the second verification module is used for verifying that the starting upgrading instruction is a preset instruction if the starting instruction check code is detected to be the same as the target instruction check code.
18. The power distribution terminal upgrade apparatus according to claim 16, wherein the second response unit comprises:
the calculation module is used for carrying out iterative summation calculation on the data content of the N target differential upgrade packages to obtain target data check codes;
The third receiving module is used for receiving the to-be-upgraded instruction packet of the to-be-upgraded instruction and acquiring a to-be-upgraded instruction check code carried in the to-be-upgraded instruction packet;
and the third verification module is used for determining that the data of the N target differential upgrade packages are complete if the target data check codes are detected to be the same as the to-be-upgraded instruction check codes.
19. A computer-readable storage medium, characterized in that the storage medium includes a stored program, wherein the program performs the power distribution terminal upgrade method of any one of claims 1 to 9.
20. An electronic device, the electronic device being an edge computing device, comprising: one or more processors, a memory, a display device, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the power distribution terminal upgrade method of any of claims 1-6.
21. An electronic device, characterized in that the electronic device is a power distribution terminal, comprising: one or more processors, a memory, a display device, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the power distribution terminal upgrade method of any of claims 7-9.
CN202410067252.XA 2024-01-17 2024-01-17 Power distribution terminal upgrading method and device, storage medium and electronic equipment Pending CN117573181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410067252.XA CN117573181A (en) 2024-01-17 2024-01-17 Power distribution terminal upgrading method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410067252.XA CN117573181A (en) 2024-01-17 2024-01-17 Power distribution terminal upgrading method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117573181A true CN117573181A (en) 2024-02-20

Family

ID=89895999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410067252.XA Pending CN117573181A (en) 2024-01-17 2024-01-17 Power distribution terminal upgrading method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117573181A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117873537A (en) * 2024-03-11 2024-04-12 广东知业科技有限公司 Edge computing OTA upgrading method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105993147A (en) * 2014-07-23 2016-10-05 华为技术有限公司 Terminal upgrade method and related device
CN110929262A (en) * 2019-11-20 2020-03-27 上海钧正网络科技有限公司 Online upgrading method and system
US20220350594A1 (en) * 2020-01-20 2022-11-03 Hangzhou Chipjet Technology Co., Ltd. Printer consumable chip upgrade system and method, and consumable container
CN115357274A (en) * 2022-06-29 2022-11-18 北京东土科技股份有限公司 Remote IO equipment firmware upgrading method and system
CN116149701A (en) * 2022-12-15 2023-05-23 中国航空工业集团公司西安航空计算技术研究所 Online software upgrading method and system for edge terminal
CN117336363A (en) * 2023-10-11 2024-01-02 浙江吉利控股集团有限公司 Online upgrade method, system, equipment and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105993147A (en) * 2014-07-23 2016-10-05 华为技术有限公司 Terminal upgrade method and related device
CN110929262A (en) * 2019-11-20 2020-03-27 上海钧正网络科技有限公司 Online upgrading method and system
US20220350594A1 (en) * 2020-01-20 2022-11-03 Hangzhou Chipjet Technology Co., Ltd. Printer consumable chip upgrade system and method, and consumable container
CN115357274A (en) * 2022-06-29 2022-11-18 北京东土科技股份有限公司 Remote IO equipment firmware upgrading method and system
CN116149701A (en) * 2022-12-15 2023-05-23 中国航空工业集团公司西安航空计算技术研究所 Online software upgrading method and system for edge terminal
CN117336363A (en) * 2023-10-11 2024-01-02 浙江吉利控股集团有限公司 Online upgrade method, system, equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117873537A (en) * 2024-03-11 2024-04-12 广东知业科技有限公司 Edge computing OTA upgrading method, device and system
CN117873537B (en) * 2024-03-11 2024-05-03 广东知业科技有限公司 Edge computing OTA upgrading method, device and system

Similar Documents

Publication Publication Date Title
CN109361740B (en) Block generation method, device, equipment and medium of block chain
CN106569847B (en) Method for vehicle-mounted system to realize IAP remote upgrade based on mobile network
CN117573181A (en) Power distribution terminal upgrading method and device, storage medium and electronic equipment
US8463746B2 (en) Method and system for replicating data
WO2021139238A1 (en) Method and apparatus for upgrading cloud service application
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
CN109508295B (en) Block chain consensus algorithm testing method and device, calculating device and storage medium
CN111984465A (en) Database remote backup method, device, medium and electronic equipment
TWI778811B (en) Method for upgrade, computer system and remote upgrade equipment
WO2017016282A1 (en) Software upgrading method and apparatus, and computer storage medium
US20200099745A1 (en) Storage segment server covered cache
CN107239358A (en) Startup method, mobile terminal and the device with store function of Android system
CN112286565B (en) Embedded system differential upgrading method based on storage container
CN112583743B (en) Distributed file exchange method and device
CN104067241A (en) Synchronizing local and remote storage devices
CN110134423B (en) Firmware updating method and device and computer readable storage medium
CN111124455B (en) Battery management system upgrading method, device, server and storage medium
CN107515757A (en) Software program upgrade method and system, terminal
CN113010114A (en) Data processing method and device, computer equipment and storage medium
KR20220077485A (en) Remote meter reading system and its firmware upgrade method
CN113434151A (en) Service deployment method, server and system
CN110309191B (en) Method, device and system for storing business data
CN106844088B (en) Data sending method and device of RAID storage system
US10705910B2 (en) Method and apparatus for operating a data storage system
CN111338642A (en) Method, device, terminal and storage medium for determining application downloading path

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