CN110633094A - Remote upgrading method for power terminal, master station and power system - Google Patents

Remote upgrading method for power terminal, master station and power system Download PDF

Info

Publication number
CN110633094A
CN110633094A CN201911007906.5A CN201911007906A CN110633094A CN 110633094 A CN110633094 A CN 110633094A CN 201911007906 A CN201911007906 A CN 201911007906A CN 110633094 A CN110633094 A CN 110633094A
Authority
CN
China
Prior art keywords
upgrading
power terminal
upgrade
master station
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.)
Granted
Application number
CN201911007906.5A
Other languages
Chinese (zh)
Other versions
CN110633094B (en
Inventor
李文玉
苟孟生
黄旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Sanxing Medical and Electric Co Ltd
Original Assignee
Ningbo Sanxing Medical and Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Sanxing Medical and Electric Co Ltd filed Critical Ningbo Sanxing Medical and Electric Co Ltd
Priority to CN201911007906.5A priority Critical patent/CN110633094B/en
Publication of CN110633094A publication Critical patent/CN110633094A/en
Application granted granted Critical
Publication of CN110633094B publication Critical patent/CN110633094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a remote upgrading method of a power terminal, a master station and a power system, and relates to the technical field of upgrading of power terminals. Firstly, a master station sends an upgrading request to an upgrading middleware; the upgrading method comprises the steps that an upgrading request comprises one or more terminal addresses, then whether an electric terminal corresponding to the terminal address is in an upgradable state or not is determined through an upgrading middleware according to the upgrading request, and when the electric terminal in the upgradable state exists in the electric terminals corresponding to the terminal addresses, an upgrading permission instruction is fed back to a main station through the upgrading middleware, and an upgrading channel port is opened; and finally, the master station sends an upgrade packet to the electric power terminal in the upgradable state through the upgrade channel port so as to realize remote upgrade. The remote upgrading method for the power terminal, the master station and the power system provided by the invention have the advantages that the pressure of an upgrading port is reduced, and the upgrading success rate is improved.

Description

Remote upgrading method for power terminal, master station and power system
Technical Field
The invention relates to the technical field of power terminal upgrading, in particular to a power terminal remote upgrading method, a master station and a power system.
Background
According to statistics, the number of the power terminals in the network reaches more than 100 thousands at present, and terminal manufacturers need to remotely upgrade the power terminals according to new operation requirements of national networks every year.
The current common remote upgrading mode is to use a file transmission protocol of the power system to send an upgrading file to the power terminal, and the power terminal starts upgrading after receiving the file.
However, in practical applications, since the upgrade port is unique and the master station is generally connected to a plurality of power terminals, when batch upgrade is required, the master station sends an upgrade packet to all the power terminals through the upgrade port, so that the load bearing pressure of the upgrade port is large, and meanwhile, since some of the power terminals are in an un-upgradable state at this time, the upgrade success rate is low.
In summary, the existing remote upgrading method for the power terminal has the problems of large pressure of an upgrading port and low upgrading success rate.
Disclosure of Invention
The invention aims to provide a remote upgrading method of an electric power terminal, a master station and an electric power system, and aims to solve the problems of high pressure of an upgrading port and low upgrading success rate in the remote upgrading of the electric power terminal in the prior art.
To solve the above problem, the implementation scheme of the present application is as follows:
in a first aspect, the present application provides a method for remotely upgrading an electric power terminal, which is applied to a master station, where the master station includes an upgrade middleware, and the method includes:
the master station sends an upgrading request to the upgrading middleware; wherein, the upgrading request comprises one or more terminal addresses;
the upgrading middleware determines whether the power terminal corresponding to the terminal address is in an upgradable state or not according to the upgrading request;
when the power terminal in an upgradable state exists in the power terminals corresponding to the terminal address, the upgrading middleware feeds back an upgrade permission instruction to the master station and opens an upgrading channel port; wherein, the upgrade permitting instruction comprises a terminal address of the power terminal in an upgradable state;
and the master station sends an upgrade packet to the power terminal in an upgradable state through the upgrade channel port so as to realize remote upgrade.
Further, after the step of sending an upgrade package to the power terminal in an upgradable state through the upgrade channel port by the master station to implement remote upgrade, the method further includes:
and when the upgrading request of the master station is not received after the preset first time, the upgrading middleware closes the upgrading channel port and/or disconnects the connection with the master station.
Further, the master station further comprises a communication management middleware, and the communication management middleware is used for providing an upgrade query port with the power terminal; the step that the upgrading middleware determines whether the power terminal corresponding to the terminal address is in an upgradable state according to the upgrading request comprises the following steps:
the upgrading middleware sends upgrading information to the power terminal corresponding to the terminal address through an upgrading inquiry port provided by the communication management middleware;
when target feedback information sent by the power terminal corresponding to the terminal address is received, the middleware determines that the power terminal corresponding to the terminal address is in an upgradable state.
Further, before the step of determining, by the middleware, that the power terminal corresponding to the terminal address is in a scalable state when the target feedback information sent by the power terminal corresponding to the terminal address is received, the method further includes:
receiving feedback information sent by the power terminal corresponding to the terminal address, wherein the feedback information at least comprises an upgrading mark;
when the target feedback information sent by the power terminal corresponding to the terminal address is received, the step of determining that the power terminal corresponding to the terminal address is in the upgradable state includes:
and when the upgrading mark is a target mark, determining that the feedback information sent by the electric power terminal corresponding to the terminal address is the target feedback information so as to determine that the electric power terminal corresponding to the terminal address is in an upgradable state.
Further, the communication management middleware is also used for providing a communication port with the power terminal; before the step of the master station sending an upgrade request to the upgrade middleware, the method further comprises:
and the master station sends a data request to a target power terminal through the communication port and receives feedback data sent by the target power terminal through the communication port.
Further, after the step of sending an upgrade packet to the power terminal in an upgradable state by the master station through the upgrade channel port to implement remote upgrade, the method for remotely upgrading the power terminal further includes:
the master station sends a version request instruction to the electric power terminals in the upgradable state after a preset second time so as to acquire the current version information of each electric power terminal;
when the current version information of the electric power terminal is updated version information, determining that the electric power terminal is successfully upgraded;
and when the current version information of the electric power terminal is not the updated version information, determining that the electric power terminal fails to be upgraded.
Further, after the step of determining that the upgrade of the power terminal fails when the current version information of the power terminal is not the updated version information, the method further includes:
and the master station sends an upgrade request to the upgrade middleware again after a preset third time, wherein the upgrade request comprises the address of the power terminal which fails to be upgraded.
Further, after the step of sending an upgrade package to the power terminal in an upgradable state through the upgrade channel port by the master station to implement remote upgrade, the method further includes:
and the upgrading middleware counts the quantity of upgrading requests and upgrading packets sent by the master station and sends the counted numerical value to the master station.
In a second aspect, the present application further provides a master station, where the master station includes an upgrade middleware;
the master station is used for sending an upgrading request to the upgrading middleware; wherein, the upgrading request comprises one or more terminal addresses;
the upgrading middleware is used for determining whether the power terminal corresponding to the terminal address is in an upgradable state according to the upgrading request;
when the power terminal in an upgradable state exists in the power terminals corresponding to the terminal address, the upgrading middleware is further configured to feed back an upgrade permission instruction to the master station and open an upgrading channel port; wherein, the upgrade permitting instruction comprises a terminal address of the power terminal in an upgradable state;
the master station is further used for sending an upgrade package to the power terminal in the upgradable state through the upgrade channel port so as to achieve remote upgrade.
In a third aspect, the present application further provides a power system, where the power system includes one or more power terminals and the above-mentioned master station, and the master station is communicatively connected to the one or more power terminals.
Compared with the prior art, the method has the following beneficial effects:
the application provides a remote upgrading method for an electric power terminal, a master station and an electric power system. Firstly, a master station sends an upgrading request to an upgrading middleware; the upgrading method comprises the steps that an upgrading request comprises one or more terminal addresses, then whether an electric terminal corresponding to the terminal address is in an upgradable state or not is determined through an upgrading middleware according to the upgrading request, and when the electric terminal in the upgradable state exists in the electric terminals corresponding to the terminal addresses, an upgrading permission instruction is fed back to a main station through the upgrading middleware, and an upgrading channel port is opened; and finally, the master station sends an upgrade packet to the electric power terminal in the upgradable state through the upgrade channel port so as to realize remote upgrade. The master station comprises the upgrading middleware, and before upgrading, whether the power terminal is in the upgradable state needs to be determined through the middleware, and in the upgrading process, the master station only sends the upgrading packet to the power terminal in the upgradable state, so that the pressure of the upgrading port can be effectively reduced. Meanwhile, the master station only upgrades the power terminal in the upgradable state, so the success rate of upgrading can be greatly improved.
Drawings
Fig. 1 is a first schematic flowchart of a method for remotely upgrading an electric power terminal according to an embodiment of the present application.
Fig. 2 is a second schematic flowchart of a method for remotely upgrading an electric power terminal according to an embodiment of the present application.
Fig. 3 is a schematic flowchart of the sub-step of S104 in fig. 1 provided in an embodiment of the present application.
Fig. 4 is a third schematic flowchart of a method for remotely upgrading an electric power terminal according to an embodiment of the present application.
Fig. 5 is a fourth schematic flowchart of a method for remotely upgrading an electric power terminal according to an embodiment of the present application.
Fig. 6 is a fifth schematic flowchart of a method for remotely upgrading an electric power terminal according to an embodiment of the present application.
Fig. 7 is an interaction diagram of a power system according to an embodiment of the present application.
Description of reference numerals:
200-a power system; 210-a master station; 211-upgrade middleware; 212-communication management middleware; 220-power terminals.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
First embodiment
As described in the background art, a master station in the prior art is generally connected to a plurality of power terminals, and when the power terminals need to be upgraded in batches, the master station may simultaneously send an upgrade packet to the power terminals that need to be upgraded, so that, on one hand, the pressure of an upgrade port is relatively high, and on the other hand, since some power terminals are in a disconnected or busy state, the upgrade of the power terminals cannot be realized, so that the success rate of the upgrade is relatively low.
In view of this, in the present application, by setting the upgrade middleware in the master station, before the master station sends the upgrade package to the power terminal, it may be determined whether the power terminal is in the upgradable state through the upgrade middleware, and the master station only needs to send the upgrade package to the power terminal in the upgradable state, so that the pressure of the upgrade port is small, and the upgrade success rate is improved.
In the following, a master station is taken as an execution subject, and an exemplary description is given to a method for remotely upgrading an electric power terminal provided by the present application, with reference to fig. 1, where the method includes:
s102, the master station sends an upgrading request to an upgrading middleware; wherein, the upgrading request comprises one or more terminal addresses.
And S104, the upgrading middleware determines whether the power terminal corresponding to the terminal address is in an upgradable state according to the upgrading request.
S106, when the electric terminal in the upgradable state exists in the electric terminals corresponding to the terminal addresses, the upgrading middleware feeds back an upgrading permission instruction to the master station and opens an upgrading channel port; wherein, the terminal address of the power terminal in the upgradable state is included in the upgrade permission instruction.
And S108, the master station sends an upgrade packet to the electric power terminal in the upgradable state through the upgrade channel port so as to realize remote upgrade.
In order to realize that each terminal manufacturer remotely updates the software version of the specified terminal from the master station through the background, the application specifies the implementation flow, the function task splitting, the interface mode and other contents of the function, so that the master station and the terminal manufacturer can complete the function respectively, and the terminal can be remotely updated on line.
The upgrading middleware is a software upgrading tool and can open or close an upgrading channel port, so that a terminal manufacturer can upgrade respective terminals through the upgrading channel port. Of course, in other embodiments, the upgrade middleware may also use hardware, and this application is not limited in this respect.
When the version of the electric power terminal needs to be upgraded, the main station is connected with the upgrading middleware firstly, the upgrading middleware sends an upgrading request, the upgrading request comprises one or more terminal addresses, and the upgrading request informs the main station of the electric power terminal, needing to be upgraded, of the upgrading middleware. The power terminals to be upgraded can be all the power terminals connected with the master station or part of the power terminals connected with the master station, and each power terminal is provided with a terminal address.
For example, 100 power terminals are connected to a certain master station, and when the master station upgrades the version of the power terminal, the 100 power terminals can be directly upgraded, and at this time, the upgrade request sent by the master station to the upgrade middleware includes the terminal addresses of the 100 power terminals. Or the master station upgrades the 100 power terminals twice, that is, 50 power terminals are upgraded once, and at this time, the upgrade request sent by the master station to the upgrade middleware includes the terminal addresses of the 50 power terminals.
After the upgrade middleware acquires the upgrade request sent by the master station, whether the power terminal corresponding to the terminal address is in an upgradable state or not can be determined according to the upgrade request. For example, the upgrade request of the master station includes the power terminal with the terminal address of 001, after the upgrade middleware acquires the terminal address of the power terminal, the upgrade middleware determines whether the power terminal with the terminal address of 001 can be in an upgradable state, and if the power terminal is upgradable, the master station is allowed to perform upgrade operation on the power terminal; if the upgrade cannot be carried out, the master station is not allowed to carry out upgrade operation on the upgrade. The upgradable state refers to a state of the power terminal when the power terminal is on-line and idle.
In addition, in the present application, if there is an electric power terminal in an upgradable state, the upgrade middleware feeds back an upgrade permission instruction to the master station, and opens the upgrade channel port to open the upgrade channel to the master station. Wherein, the terminal address of the power terminal in the upgradable state is included in the upgrade permission instruction.
For example, when an upgrade request sent by the master station includes terminal addresses of 50 power terminals, and the upgrade middleware determines that 30 power terminals are in an upgradable state at this time, the upgrade middleware generates an upgrade permission instruction, and the upgrade permission instruction includes the terminal addresses of the 30 power terminals, which indicates that the master station can upgrade the 30 power terminals, and for the remaining 20 power terminals, since the remaining 20 power terminals are not in the upgradable state at this time, the master station cannot upgrade the 20 power terminals at this time.
After the master station receives the upgrade permission instruction, the upgrade middleware opens the upgrade channel port, so that the master station can determine to send an upgrade package to the electric power terminal in an upgradable state through the upgrade channel port, and then send the upgrade package to the corresponding electric power terminal through the upgrade channel, thereby completing the upgrade operation.
Through the upgrading middleware provided by the application, the electric terminals can be screened before the master station sends the upgrading packet, so that the electric terminals which cannot be upgraded at the moment are eliminated.
This application is through the mode that sets up the upgrading middleware in main website, realizes before main website sends the upgrade package to electric power terminal, can confirm electric power terminal whether be in can upgrade the state through the upgrade middleware earlier, and main website only need send the upgrade package to the electric power terminal that is in can upgrade the state for the pressure of upgrading port is less, has promoted the success rate of upgrading simultaneously.
As a possible implementation manner of the present application, the master station further includes a communication management middleware, and the communication management middleware is configured to provide an upgrade query port with the power terminal. The communication management middleware can also be a software program which is installed on the main station. And the communication management middleware is also used for providing a communication port with the power terminal, that is, when the master station needs to communicate with the power terminal, the master station may send a message to the power terminal through the communication port, and receive a feedback message of the power terminal, that is, the communication between the master station and the power terminal is realized through the communication port. And when the master station needs to upgrade the power terminal, an upgrade package needs to be sent to the power terminal through the upgrade channel port. It can be understood that a channel can be formed between the upgrade channel port and the power terminal, and a channel can also be formed between the communication port and the power terminal, and in this application, the channel formed between the upgrade channel port and the power terminal, and the channel formed between the communication port and the power terminal are the same channel.
On this basis, as a possible implementation manner of the present application, before S102, please refer to fig. 2, the method further includes:
s101, the master station sends a data request to the target power terminal through the communication port and receives feedback data sent by the target power terminal through the communication port.
It can be understood that the master station and the power terminal can perform normal communication through the communication port. When the master station needs to acquire the voltage information of the power terminal at the moment, the master station sends a voltage data request to the power terminal through the communication port, and then the voltage data is fed back by the power terminal.
Because the number of the power terminals connected with the master station is large, when the master station communicates with the power terminals, the messages of the master station carry the terminal addresses of the power terminals needing to communicate. That is, if the terminal address of a certain power terminal is 001, when the master station needs to acquire the voltage data of the power terminal, the master station will use the voltage data as a target power terminal and send a corresponding message through the communication port, where the message includes a request data type and a terminal address.
In addition, the master station can also transmit communication maintaining information to the power terminal through the communication port, for example, the transmission 111, and when receiving the power terminal feedback signal, this indicates that the communication between the master station and the power terminal is maintained.
As an alternative implementation manner, please refer to fig. 3, wherein S104 actually includes:
and S104-1, the upgrading middleware sends upgrading information to the power terminal corresponding to the terminal address through an upgrading inquiry port provided by the communication management middleware.
And S104-2, the middleware judges whether target feedback information sent by the power terminal corresponding to the terminal address is received, and if so, executes S104-3.
And S104-3, the middleware determines that the power terminal corresponding to the terminal address is in a scalable state.
It can be understood that the upgrade query port and the communication port have substantially the same function, and are both used for communicating with the power terminal, and the upgrade query port and the communication port may be integrated into one port or may be separated into two ports, which is not limited in the present application. The upgrade middleware also actually realizes communication with the power terminal through a port provided by the communication management middleware.
The middle part is simple, after the feedback information of the power terminal is acquired, whether the power terminal is in the upgradable state can be judged according to whether the feedback information is the target feedback information.
As an implementation manner, the determination process of S104-2 is actually:
firstly, receiving feedback information sent by a power terminal corresponding to a terminal address, wherein the feedback information at least comprises an upgrading mark.
And when the upgrading mark is the target mark, determining that the feedback information sent by the electric power terminal corresponding to the terminal address is the target feedback information so as to determine that the electric power terminal corresponding to the terminal address is in an upgradable state.
That is, the upgrade middleware may determine whether the power terminal is in an upgradable state in a message form, where the message sent to the power terminal by the upgrade middleware may be a function code + a terminal address + an upgrade flag, so that the power terminal feeds back information according to the message form. Wherein, the function code represents a code that needs to perform different operations on the terminal, for example, 00 represents communication, and 01 represents upgrade. An upgrade flag indicates whether the power terminal can be upgraded, for example, 0001 indicates that the power terminal is in an upgradable state; 0002 represents an offline state of the power terminal; 0003 represents a power terminal channel busy condition; 0004 represents the power terminal upgrade unlicensed state.
For example, the message fed back by the power terminal with the terminal address of 001 is 01+001+0001, that is, the power terminal can be upgraded at this time. If the message fed back by the power terminal with the terminal address of 002 is 01+002+0003, it indicates that the power terminal is busy at this time and cannot be upgraded, for example, the power terminal is communicating with the master station at this time and sends voltage information to the master station.
It can be understood that, in the present application, the target flag is 0001, and the upgrade middleware can determine whether the upgrade flag is 0001, and determine whether the feedback information sent by the power terminal is the target feedback information, so as to determine whether the power terminal is in an upgradable state.
Moreover, for the upgrade middleware in S106 to feed back an upgrade permission instruction to the master station and open the upgrade channel port, the upgrade middleware may feed back only the terminal address of the electric power terminal that can be upgraded to the master station, and may also feed back whether the electric power terminals corresponding to all the terminal addresses in the upgrade request can be upgraded, for example, directly send a message fed back by the electric power terminal to the master station.
It should be noted that, in S108, the master station sends the upgrade package to the power terminals in the upgradable state through the upgrade channel port, where the upgrade package may be sent to the power terminals in the upgradable state at the same time, or the upgrade package may be sent to the corresponding power terminals one by one in a queue form, which is not limited in this application.
As an implementation manner of the present application, after the upgrade is completed, in order to prevent the power upgrade channel port through which the channel master station passes from sending data related to the upgrade to the power terminal, after S108, please refer to fig. 4, where the method further includes:
and S110, when the upgrading request of the main station is not received after the preset first time, the upgrading middleware closes the upgrading channel port and/or disconnects the connection with the main station.
That is, when the upgrade middleware does not receive the upgrade request after a certain time, it indicates that the upgrade is completed. At this time, the upgrade middleware closes the upgrade channel port, or disconnects the connection with the master station, or closes the upgrade channel port while disconnecting the connection with the master station. The situation that the master station repeatedly upgrades the power terminal due to the fact that the port of the upgrade channel is continuously opened is prevented.
Meanwhile, referring to fig. 5, since a failure problem such as a package drop may occur during the upgrade process, which results in a failed upgrade, after S108, the method further includes:
and S112, the master station sends a version request instruction to the electric power terminals in the upgradable state after a preset second time so as to acquire the current version information of each electric power terminal.
And S114, the master station judges whether the current version information of the power terminal is updated version information, if yes, S115 is executed, and if not, S116 is executed.
And S115, determining that the power terminal is successfully upgraded.
And S116, determining that the power terminal fails to be upgraded.
For example, the version information before the power terminal is upgraded is 4.1 version, the version information sent by the master station to the power terminal is 4.2 version, after a second time, for example, after 5min, the master station defaults to that the power terminal is upgraded, and at this time, the master station acquires the version number of the power terminal, and if the version number fed back by the power terminal is 4.2, it indicates that the power terminal is upgraded successfully; and if the feedback version number is 4.1, the upgrading failure of the power terminal is indicated. Meanwhile, the master station displays an upgrade record, such as the electric terminals which are successfully upgraded and the electric terminals which are failed to upgrade in a list form.
And after the upgrading of the power terminal fails, the method further comprises the following steps:
and S117, the master station sends an upgrade request to the upgrade middleware again after a preset third time, wherein the upgrade request comprises the address of the power terminal which fails to be upgraded.
In the application, after the first round of upgrading is completed, the master station can upgrade the power terminal which is not successfully upgraded. For example, for the lapse of one minute, an upgrade request is sent to the upgrade middleware again, and the operation of upgrading is repeated to upgrade the power terminal of which the upgrade has failed again.
After the power terminal is repeatedly upgraded for many times, for example, after the power terminal is repeatedly upgraded for three times, if the power terminal is not successfully upgraded, it indicates that the power terminal has a problem, and the master station generates corresponding warning information to inform a worker of maintenance.
In addition, when performing the upgrade again, the upgrade request of the master station may further include a power terminal that is determined not to be in an upgradable state, which is not limited in this application.
Referring to fig. 6, after S108, the method further includes:
and S118, the upgrading middleware counts the upgrading requests and the quantity of the upgrading packets sent by the main station and sends the counted numerical values to the main station.
The upgrading middleware can record the communication flow of the master station and send the value of the communication flow to the master station for displaying, and the master station can count data conveniently.
Through the upgrading middleware provided by the application, the effects of reducing the pressure of the upgrading port and improving the upgrading success rate can be achieved.
Second embodiment
Referring to fig. 7, the present embodiment provides a master station 210, where the master station 210 includes an upgrade middleware 211, and the master station 210 is capable of performing the remote upgrade method for the power terminal 220 according to the first embodiment.
The master station 210 is configured to send an upgrade request to the upgrade middleware 211; the upgrade request includes one or more terminal addresses, the upgrade middleware 211 is configured to determine whether the power terminal 220 corresponding to the terminal address is in an upgradable state according to the upgrade request, and when the power terminal 220 in the upgradable state exists in the power terminals 220 corresponding to the terminal addresses, the upgrade middleware 211 is further configured to feed back an upgrade permission instruction to the master station 210 and open an upgrade channel port; the upgrade permission instruction includes a terminal address of the power terminal 220 in the upgradable state, and the master station 210 is further configured to send an upgrade packet to the power terminal 220 in the upgradable state through the upgrade channel port, so as to implement remote upgrade.
The master station 210 further includes a communication management middleware 212, where the communication management middleware 212 is configured to provide an upgrade query port with the power terminal 220;
since the first embodiment has already described the remote upgrade method of the power terminal 220 in detail, the description of this embodiment is omitted.
Third embodiment
Referring to fig. 7, an embodiment of the present application provides an electric power system 200, where the electric power system 200 includes one or more electric power terminals 220 and a master station 210 according to the second embodiment, the master station 210 is communicatively connected to the one or more electric power terminals 220, and the master station 210 is capable of performing the method for remotely upgrading the electric power terminals 220 according to the first embodiment.
In summary, the application provides a remote upgrade method for an electric power terminal, a master station and an electric power system. Firstly, a master station sends an upgrading request to an upgrading middleware; the upgrading method comprises the steps that an upgrading request comprises one or more terminal addresses, then whether an electric terminal corresponding to the terminal address is in an upgradable state or not is determined through an upgrading middleware according to the upgrading request, and when the electric terminal in the upgradable state exists in the electric terminals corresponding to the terminal addresses, an upgrading permission instruction is fed back to a main station through the upgrading middleware, and an upgrading channel port is opened; and finally, the master station sends an upgrade packet to the electric power terminal in the upgradable state through the upgrade channel port so as to realize remote upgrade. The master station comprises the upgrading middleware, and before upgrading, whether the power terminal is in the upgradable state needs to be determined through the middleware, and in the upgrading process, the master station only sends the upgrading packet to the power terminal in the upgradable state, so that the pressure of the upgrading port can be effectively reduced. Meanwhile, the master station only upgrades the power terminal in the upgradable state, so the success rate of upgrading can be greatly improved.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A remote upgrading method of an electric power terminal is applied to a main station, and is characterized in that the main station comprises an upgrading middleware, and the method comprises the following steps:
the master station sends an upgrading request to the upgrading middleware; wherein, the upgrading request comprises one or more terminal addresses;
the upgrading middleware determines whether the power terminal corresponding to the terminal address is in an upgradable state or not according to the upgrading request;
when the power terminal in an upgradable state exists in the power terminals corresponding to the terminal address, the upgrading middleware feeds back an upgrade permission instruction to the master station and opens an upgrading channel port; wherein, the upgrade permitting instruction comprises a terminal address of the power terminal in an upgradable state;
and the master station sends an upgrade packet to the power terminal in an upgradable state through the upgrade channel port so as to realize remote upgrade.
2. The method for remotely upgrading the power terminal according to claim 1, wherein after the step of the master station transmitting an upgrade package to the power terminal in an upgradable state through the upgrade channel port to realize remote upgrade, the method further comprises:
and when the upgrading request of the master station is not received after the preset first time, the upgrading middleware closes the upgrading channel port and/or disconnects the connection with the master station.
3. The remote upgrading method for the power terminal according to claim 1, wherein the master station further comprises a communication management middleware, and the communication management middleware is used for providing an upgrading query port with the power terminal; the step that the upgrading middleware determines whether the power terminal corresponding to the terminal address is in an upgradable state according to the upgrading request comprises the following steps:
the upgrading middleware sends upgrading information to the power terminal corresponding to the terminal address through an upgrading inquiry port provided by the communication management middleware;
when target feedback information sent by the power terminal corresponding to the terminal address is received, the middleware determines that the power terminal corresponding to the terminal address is in an upgradable state.
4. The remote upgrading method for the power terminal according to claim 3, wherein before the step of determining, by the middleware, that the power terminal corresponding to the terminal address is in a scalable state when receiving the target feedback information sent by the power terminal corresponding to the terminal address, the method further comprises:
receiving feedback information sent by the power terminal corresponding to the terminal address, wherein the feedback information at least comprises an upgrading mark;
when the target feedback information sent by the power terminal corresponding to the terminal address is received, the step of determining that the power terminal corresponding to the terminal address is in the upgradable state includes:
and when the upgrading mark is a target mark, determining that the feedback information sent by the electric power terminal corresponding to the terminal address is the target feedback information so as to determine that the electric power terminal corresponding to the terminal address is in an upgradable state.
5. The remote upgrading method for the power terminal according to claim 3, wherein the communication management middleware is further configured to provide a communication port with the power terminal; before the step of the master station sending an upgrade request to the upgrade middleware, the method further comprises:
and the master station sends a data request to a target power terminal through the communication port and receives feedback data sent by the target power terminal through the communication port.
6. The remote upgrading method for the power terminal according to claim 1, wherein after the step of the master station sending an upgrade packet to the power terminal in an upgradable state through the upgrade channel port to implement remote upgrading, the remote upgrading method for the power terminal further comprises:
the master station sends a version request instruction to the electric power terminals in the upgradable state after a preset second time so as to acquire the current version information of each electric power terminal;
when the current version information of the electric power terminal is updated version information, determining that the electric power terminal is successfully upgraded;
and when the current version information of the electric power terminal is not the updated version information, determining that the electric power terminal fails to be upgraded.
7. The method for remotely upgrading an electric power terminal according to claim 6, wherein after the step of determining that the electric power terminal fails to be upgraded when the current version information of the electric power terminal is not the updated version information, the method further comprises:
and the master station sends an upgrade request to the upgrade middleware again after a preset third time, wherein the upgrade request comprises the address of the power terminal which fails to be upgraded.
8. The method for remotely upgrading the power terminal according to claim 1, wherein after the step of the master station transmitting an upgrade package to the power terminal in an upgradable state through the upgrade channel port to realize remote upgrade, the method further comprises:
and the upgrading middleware counts the quantity of upgrading requests and upgrading packets sent by the master station and sends the counted numerical value to the master station.
9. A primary station, characterized in that the primary station comprises upgrade middleware;
the master station is used for sending an upgrading request to the upgrading middleware; wherein, the upgrading request comprises one or more terminal addresses;
the upgrading middleware is used for determining whether the power terminal corresponding to the terminal address is in an upgradable state according to the upgrading request;
when the power terminal in an upgradable state exists in the power terminals corresponding to the terminal address, the upgrading middleware is further configured to feed back an upgrade permission instruction to the master station and open an upgrading channel port; wherein, the upgrade permitting instruction comprises a terminal address of the power terminal in an upgradable state;
the master station is further used for sending an upgrade package to the power terminal in the upgradable state through the upgrade channel port so as to achieve remote upgrade.
10. A power system comprising one or more power terminals and a master station as claimed in any one of claims 1 to 9, the master station being communicatively connected to the one or more power terminals.
CN201911007906.5A 2019-10-22 2019-10-22 Remote upgrading method for power terminal, main station and power system Active CN110633094B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911007906.5A CN110633094B (en) 2019-10-22 2019-10-22 Remote upgrading method for power terminal, main station and power system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911007906.5A CN110633094B (en) 2019-10-22 2019-10-22 Remote upgrading method for power terminal, main station and power system

Publications (2)

Publication Number Publication Date
CN110633094A true CN110633094A (en) 2019-12-31
CN110633094B CN110633094B (en) 2023-06-27

Family

ID=68977121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911007906.5A Active CN110633094B (en) 2019-10-22 2019-10-22 Remote upgrading method for power terminal, main station and power system

Country Status (1)

Country Link
CN (1) CN110633094B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111623476A (en) * 2020-04-27 2020-09-04 海信(山东)空调有限公司 Data updating method and device in outdoor EEPROM of air conditioner and storage medium
CN111740798A (en) * 2020-06-01 2020-10-02 南京熊猫电子股份有限公司 Intelligent upgrading method for bandwidth-adaptive emergency broadcast terminal, emergency broadcast platform and system
CN113225679A (en) * 2020-09-09 2021-08-06 深圳市芯中芯科技有限公司 Bluetooth equipment firmware upgrading data transmission method based on software APP technology
CN113341794A (en) * 2021-05-20 2021-09-03 江苏昂内斯电力科技股份有限公司 Electricity safety data acquisition module and remote upgrading method thereof

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030208569A1 (en) * 2000-04-14 2003-11-06 O'brien Michael D System and method for upgrading networked devices
CN1580992A (en) * 2004-04-19 2005-02-16 谭启仁 Power-driven site service and management system having long-range wireless communication platform
WO2006066612A1 (en) * 2004-12-24 2006-06-29 Telecom Italia S.P.A. Method and system for upgrading the software of a telecommunication terminal, in particular of a video telephone, and relatted computer program product
US20070038801A1 (en) * 2005-08-09 2007-02-15 Rohm Co., Ltd. Control circuit, electronic device using the same, and firmware update method
US20080186201A1 (en) * 2007-02-01 2008-08-07 Shanghai Jiulong Electric Power (Group) Co., Ltd. Intelligent System for Collecting Readings From Electric Meters
WO2011020267A1 (en) * 2009-08-20 2011-02-24 中兴通讯股份有限公司 Upgrading method and system for computer telecommunication integrated device
CN102055814A (en) * 2010-11-25 2011-05-11 深圳市科陆电子科技股份有限公司 Method for realizing cross-network segment real-time collection
CN102158814A (en) * 2010-02-11 2011-08-17 希姆通信息技术(上海)有限公司 Server processing method realizing remote update and management of module side
CN104149717A (en) * 2014-07-31 2014-11-19 北京中瑞蓝科电动汽车技术有限公司 Remote non-interference updating system and remote non-interference updating method for vehicle control
CN104320483A (en) * 2014-10-31 2015-01-28 任子行网络技术股份有限公司 System and method for assisting application program to be upgraded
CN104579752A (en) * 2014-12-15 2015-04-29 南昌市科陆智能电网科技有限公司 Remote automatic upgrading system and remote automatic upgrading method
WO2015158120A1 (en) * 2014-04-18 2015-10-22 中兴通讯股份有限公司 Method and apparatus for upgrading software version
CN105516317A (en) * 2015-12-14 2016-04-20 北京科东电力控制系统有限责任公司 Multi-level load equalization efficient collection method for power utilization information
CN106412064A (en) * 2016-09-29 2017-02-15 国家电网公司 Remote upgrade method of power utilization information acquisition terminal
CN107995044A (en) * 2017-12-18 2018-05-04 宁波三星医疗电气股份有限公司 A kind of upgrade method for power collection systems terminal
CN207588889U (en) * 2017-12-12 2018-07-06 宁波三星医疗电气股份有限公司 A kind of intelligent terminal interactive system based on Ethernet
CN109302476A (en) * 2018-09-30 2019-02-01 珠海汇众能源科技有限公司 A kind of PLC program upgrade method and system based on mobile terminal
US20190050296A1 (en) * 2017-08-08 2019-02-14 Rubrik, Inc. Auto-upgrade of remote data management connectors
CN109753297A (en) * 2018-12-28 2019-05-14 深圳创维-Rgb电子有限公司 Method for upgrading software, device and readable storage medium storing program for executing when terminal standby
CN109814892A (en) * 2017-11-22 2019-05-28 华为技术有限公司 Device updating method, apparatus and system, storage medium
CN110032382A (en) * 2019-03-25 2019-07-19 深圳猛犸电动科技有限公司 A kind of vehicle electronic control unit upgrade method, system and terminal device
CN110187903A (en) * 2019-04-19 2019-08-30 视联动力信息技术股份有限公司 A kind of upgrade method and device

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030208569A1 (en) * 2000-04-14 2003-11-06 O'brien Michael D System and method for upgrading networked devices
CN1580992A (en) * 2004-04-19 2005-02-16 谭启仁 Power-driven site service and management system having long-range wireless communication platform
WO2006066612A1 (en) * 2004-12-24 2006-06-29 Telecom Italia S.P.A. Method and system for upgrading the software of a telecommunication terminal, in particular of a video telephone, and relatted computer program product
US20070038801A1 (en) * 2005-08-09 2007-02-15 Rohm Co., Ltd. Control circuit, electronic device using the same, and firmware update method
US20080186201A1 (en) * 2007-02-01 2008-08-07 Shanghai Jiulong Electric Power (Group) Co., Ltd. Intelligent System for Collecting Readings From Electric Meters
WO2011020267A1 (en) * 2009-08-20 2011-02-24 中兴通讯股份有限公司 Upgrading method and system for computer telecommunication integrated device
CN102158814A (en) * 2010-02-11 2011-08-17 希姆通信息技术(上海)有限公司 Server processing method realizing remote update and management of module side
CN102055814A (en) * 2010-11-25 2011-05-11 深圳市科陆电子科技股份有限公司 Method for realizing cross-network segment real-time collection
WO2015158120A1 (en) * 2014-04-18 2015-10-22 中兴通讯股份有限公司 Method and apparatus for upgrading software version
CN104149717A (en) * 2014-07-31 2014-11-19 北京中瑞蓝科电动汽车技术有限公司 Remote non-interference updating system and remote non-interference updating method for vehicle control
CN104320483A (en) * 2014-10-31 2015-01-28 任子行网络技术股份有限公司 System and method for assisting application program to be upgraded
CN104579752A (en) * 2014-12-15 2015-04-29 南昌市科陆智能电网科技有限公司 Remote automatic upgrading system and remote automatic upgrading method
CN105516317A (en) * 2015-12-14 2016-04-20 北京科东电力控制系统有限责任公司 Multi-level load equalization efficient collection method for power utilization information
CN106412064A (en) * 2016-09-29 2017-02-15 国家电网公司 Remote upgrade method of power utilization information acquisition terminal
US20190050296A1 (en) * 2017-08-08 2019-02-14 Rubrik, Inc. Auto-upgrade of remote data management connectors
CN109814892A (en) * 2017-11-22 2019-05-28 华为技术有限公司 Device updating method, apparatus and system, storage medium
CN207588889U (en) * 2017-12-12 2018-07-06 宁波三星医疗电气股份有限公司 A kind of intelligent terminal interactive system based on Ethernet
CN107995044A (en) * 2017-12-18 2018-05-04 宁波三星医疗电气股份有限公司 A kind of upgrade method for power collection systems terminal
CN109302476A (en) * 2018-09-30 2019-02-01 珠海汇众能源科技有限公司 A kind of PLC program upgrade method and system based on mobile terminal
CN109753297A (en) * 2018-12-28 2019-05-14 深圳创维-Rgb电子有限公司 Method for upgrading software, device and readable storage medium storing program for executing when terminal standby
CN110032382A (en) * 2019-03-25 2019-07-19 深圳猛犸电动科技有限公司 A kind of vehicle electronic control unit upgrade method, system and terminal device
CN110187903A (en) * 2019-04-19 2019-08-30 视联动力信息技术股份有限公司 A kind of upgrade method and device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
李刚等: "智能电力设备在线远程软件升级新方法", 《自动化与仪表》 *
李刚等: "智能电力设备在线远程软件升级新方法", 《自动化与仪表》, no. 02, 15 February 2010 (2010-02-15), pages 1 - 5 *
熊飞等: "智能电网中电力设备接入中间件的设计", 《软件》 *
熊飞等: "智能电网中电力设备接入中间件的设计", 《软件》, no. 12, 15 December 2016 (2016-12-15) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111623476A (en) * 2020-04-27 2020-09-04 海信(山东)空调有限公司 Data updating method and device in outdoor EEPROM of air conditioner and storage medium
CN111623476B (en) * 2020-04-27 2022-05-17 海信(山东)空调有限公司 Data updating method and device in outdoor EEPROM of air conditioner and storage medium
CN111740798A (en) * 2020-06-01 2020-10-02 南京熊猫电子股份有限公司 Intelligent upgrading method for bandwidth-adaptive emergency broadcast terminal, emergency broadcast platform and system
CN113225679A (en) * 2020-09-09 2021-08-06 深圳市芯中芯科技有限公司 Bluetooth equipment firmware upgrading data transmission method based on software APP technology
CN113341794A (en) * 2021-05-20 2021-09-03 江苏昂内斯电力科技股份有限公司 Electricity safety data acquisition module and remote upgrading method thereof

Also Published As

Publication number Publication date
CN110633094B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN110633094A (en) Remote upgrading method for power terminal, master station and power system
EP1265417A2 (en) Device management system and method
CN110808948B (en) Remote procedure calling method, device and system
CN103955381A (en) Method and system for management server to perform batch software update on terminal equipment
US10158739B2 (en) System and method for interchanging data with laser or machine tool apparatuses
CN108196856A (en) A kind of charging pile on-line software updating system and online upgrading method
CN106982133B (en) Method, equipment and system for changing configuration information of virtual network card
CN107508916B (en) Server link management method for intelligent robot
CN112630557A (en) Equipment state detection method, device, equipment and medium
CN112015441A (en) Updating method and system of vehicle-mounted terminal
US8037160B2 (en) Method and device arrangement for managing a user application/device management server/client device environment
CN108667640B (en) Communication method and device, and network access system
CN104506604A (en) Vehicle-mounted terminal automatic remote upgrading method
US10931529B2 (en) Terminal device management method, server, and terminal device for managing terminal devices in local area network
CN110557331A (en) User offline control method, controller, forwarding equipment and user access system
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium
CN107171915B (en) Communication protocol changing method and device
CN111092952A (en) Data interaction method and related product
CN105333574A (en) Identification method for connection mode of base station air-conditioning system and base station air-conditioning system
CN103563305A (en) System and method for providing push service to reduce network load
CN109379443B (en) Method for realizing distributed message queue facing to Internet of things
EP3713261A1 (en) Aggression management for a mobile device
CN108173910B (en) Method and system for managing application
US20210352765A1 (en) Communication method, apparatus, and system, storage medium, and terminal
CN115150031B (en) Distributed system message response method and device based on distributed message

Legal Events

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