CN111145523A - Method for upgrading micropower wireless communication module in electricity consumption information acquisition system - Google Patents

Method for upgrading micropower wireless communication module in electricity consumption information acquisition system Download PDF

Info

Publication number
CN111145523A
CN111145523A CN202010005609.3A CN202010005609A CN111145523A CN 111145523 A CN111145523 A CN 111145523A CN 202010005609 A CN202010005609 A CN 202010005609A CN 111145523 A CN111145523 A CN 111145523A
Authority
CN
China
Prior art keywords
upgrade
upgrading
module
pco
sta
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
CN202010005609.3A
Other languages
Chinese (zh)
Other versions
CN111145523B (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.)
Chongqing University of Post and Telecommunications
Original Assignee
Chongqing University of Post and Telecommunications
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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN202010005609.3A priority Critical patent/CN111145523B/en
Publication of CN111145523A publication Critical patent/CN111145523A/en
Application granted granted Critical
Publication of CN111145523B publication Critical patent/CN111145523B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Abstract

The invention relates to an upgrading method of a micropower wireless communication module in an electricity consumption information acquisition system, belonging to the field of ubiquitous power Internet of things, and being divided into an upgrading file transmission process and a micropower wireless module execution upgrading process, wherein a plurality of modules of the same batch of the same manufacturer can be upgraded at one time, the function of breakpoint continuous transmission is realized, abnormal conditions can be better processed, in the transmission process of an upgrading package, CCO (central control unit) performs overall control on the transmission of the upgrading package, and the specific upgrading package is transmitted to STA (station) by PCO (primary control unit); the PCO uses single-hop broadcasting in any direction to transmit the upgrade blocks, so that the STA which does not receive the complete upgrade package before gradually supplements the missing upgrade blocks, and a large amount of upgrade block reissue is avoided; the function of breakpoint transmission is realized; the situation that the upgrading fails due to the fact that the module fails in the process of restarting and executing the upgrading is considered, the communication module can still be returned to the previous version from the backup area, and the situation that the communication module cannot be normally used due to the upgrading failure is avoided.

Description

Method for upgrading micropower wireless communication module in electricity consumption information acquisition system
Technical Field
The invention belongs to the field of ubiquitous power Internet of things, and relates to an upgrading method of a micropower wireless communication module in a power utilization information acquisition system.
Background
The power utilization information acquisition mainly comprises a main station, a communication channel, a local communication system and the like, and is an important basis of a power utilization link of the ubiquitous power internet of things and an important source of power utilization information of users. The main station mainly has the functions of collecting power consumption information of the terminal, analyzing a protocol, sending an operation command to the terminal, storing and processing the information and the like. The communication channel is a link between the master station and the acquisition device that provides both wired and wireless communication channels available. The local communication system mainly comprises a power line carrier and a micropower wireless communication mode, and is responsible for collecting information of user metering equipment, processing and freezing related data and realizing interaction with an upper-layer master station.
Fig. 1 is a schematic diagram of a connection mode of a local communication system, where the local communication system of a power consumption information acquisition system generally includes a concentrator, a plurality of electric energy meters and communication modules, where the communication modules are respectively disposed in the concentrator and each electric energy meter as nodes to form a micropower wireless communication network of the power consumption information acquisition system, and the micropower communication module connected to the concentrator is a master node (CCO) of the communication network, and is responsible for receiving an upgrade packet issued by the concentrator during an upgrade process of the power consumption information acquisition system and sending the upgrade packet to a micropower communication module (STA, for short) connected to the electric energy meters. The micropower communication module for relaying and forwarding in the communication between the CCO and a specific STA is a relay node (PCO for short) in the communication network, and the PCO is also a micropower communication module connected with the electric energy meter, and is different from the STA only in roles.
In the electricity consumption information acquisition system, new functions need to be added and some useless functions need to be deleted through module upgrading, error defects and the like in equipment are repaired in a remote upgrading mode, and equipment does not need to be recalled selectively. The upgrade of the communication module in the current power utilization information acquisition system has the following defects: in practical application, a master station is mostly adopted to upgrade a single electric meter, so that only the single electric meter can be upgraded at one time, or a manual field upgrading mode is adopted, and the efficiency is low; in the existing upgrading scheme, the consideration is not complete enough, the condition of upgrading modules of different manufacturers is not considered, the function of realizing breakpoint continuous transmission is not considered, and the consideration of abnormal conditions is not complete enough.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a complete upgrading method, which can upgrade a plurality of modules of the same batch of the same manufacturer at a time, can implement a breakpoint resume function, and can better handle an abnormal condition.
In order to achieve the purpose, the invention provides the following technical scheme:
an upgrade method for micropower wireless communication module in power consumption information acquisition system includes an upgrade file transmission process and a micropower wireless module execution upgrade process, in which
The transmission process of the upgrade file comprises the following steps:
s11: the master station sends the upgrade package to the concentrator in a wireless private network or wireless public network mode;
s12: the concentrator issues a software upgrading packet to a communication main module CCO through a serial port, wherein the software upgrading packet is sequentially transmitted in a blocking mode, and the CCO receives upgrading blocks and sequentially writes the upgrading blocks into an APP area in the FLASH;
s13: the CCO or the PCO uses a framing technology, divides an upgrade packet into a minimum of upgrade blocks according to the upper limit of the message length allowed by a protocol, and starts single-hop broadcasting to be sequentially transmitted to the STA directly connected with the next hop;
s14: after receiving each upgrading block, the STA checks the upgrading block, if the upgrading block passes the checking, the STA writes the upgrading block into an APP area in FLASH in sequence, and after receiving the last upgrading block, judges whether the upgrading block is completely received and checks an upgrading packet;
s15: the CCO maintains an upgrade package receiving state table of the micro-power module, and after receiving an upgrade package receiving confirmation frame sent by the STA, the state of the STA is set as receiving completion; the upgrade package receiving state table comprises TEI values of all STAs, the receiving state of the upgrade package and the forwarding condition of the upgrade package;
s16: the CCO sends an upgrade packet forwarding control frame to the PCOs which are at the low level and completely receive the upgrade packets and do not perform upgrade packet forwarding; on the premise of meeting the above conditions, the CCO sequentially transmits the TEI values according to the PCO in the order from small to large; after receiving the control frame, the PCO sequentially takes the upgrading blocks out of the FLASH and carries out single-hop broadcasting to each module, the transmission of the single-hop broadcasting frame is not in a direction, in the process, the modules which do not collect the upgrading blocks are used for gradually perfecting the reception of the upgrading blocks, and the process is S14;
s17: after the CCO controls the upgrade package forwarding of a module for one round, a beacon period is set at intervals, the beacon period is used for receiving an upgrade package receiving confirmation frame of the module, then S15 is entered, and the PCO which is not subjected to upgrade package forwarding is planned continuously; if all PCOs which have received the complete upgrade package are forwarded by the upgrade package, checking whether a module in an upgrade package receiving information table of the module does not receive the complete upgrade package, if so, entering S18, otherwise, ending the transmission process of the upgrade file;
s18: the CCO controls the STAs which do not receive the complete upgrade package in sequence according to the sequence of the STAs from low to high, the CCO sends a control frame to the STAs, the STAs send upgrade block request frames to the PCO, the PCO judges whether the upgrade blocks missing from the STAs are stored in the module or not after receiving the frames, if yes, the upgrade blocks missing from the STAs are sent to the STAs, and if not, the update block request frames are sent to the PCO of the upper stage continuously;
the micro-power wireless module executes an upgrade process, which comprises the following steps:
s21: the CCO sends an upgrade execution command frame, the sending type of the frame is full-network broadcasting, and the frame is provided with a manufacturer identification option;
s22: the STA judges whether the source manufacturer and the product batch of the upgrade package are consistent with the STA according to the manufacturer information field, if so, the upgrade package is restarted for upgrading under the conditions of complete reception and correct verification of the upgrade package;
s23: after the STA is restarted, the Bootloader inquires whether an upgrading mark in the boot parameter needs to be upgraded or not, if yes, and the upgrading packet is verified correctly, the content of the upgrading APP area is copied to an execution area for executing a program; otherwise, checking whether the code execution area is checked correctly, if so, directly executing the program of the code execution area, and if the check is wrong, indicating that the module has a fault or an abnormal condition in the previous loading process, copying the content in the backup area to the code execution area for execution;
s24: after the STA is upgraded successfully, the content in the current code execution area is copied to a backup area, so that recovery under an abnormal condition is facilitated.
Further, in step S11, adding the manufacturer source information of the current upgrade package into the first upgrade block file of the transmission upgrade package, and using the manufacturer information field to indicate the manufacturer source and the batch of the current upgrade package; the upgrading package files of modules of different batches of different manufacturers are different, but the basic communication function and interconnection meet the standard requirements, and the module before upgrading and the module after upgrading also meet the basic communication function and interconnection.
Further, in step S12, the FLASH parameter area is divided into a bootloader area, a Boot parameter area, another parameter area, a code execution area, an upgrade APP area, and a code backup area.
Further, in step S18, the STA adds a bit map into the upgrade block request frame, the bit map indicates the specific receiving condition of the upgrade package, the bit corresponding to the upgrade block is 1, which indicates that the upgrade block has been received, and 0, which indicates that the upgrade block has not been received;
if the STA checks that the upgrade package is received correctly, sending an upgrade package receiving confirmation frame to the CCO, otherwise, continuously sending an upgrade block request frame to the PCO, wherein the sending times of the request frame do not exceed three times at most.
Further, the micro-power wireless module also comprises the following steps in the process of executing upgrade: setting an upgrading state mark in the parameter area, wherein 0 represents that no upgrading process is not completed, other values represent that the upgrading process is not completed, and the specific meaning of the value represents the last upgrading block number received before; the micro-power wireless communication module is electrified or restarted and then checks the flag bit, if the flag bit is not 0, the PCO requests upgrade packet data, an upgrade packet block number is added to a message to indicate an upgrade block after the block number is lacked, and after the PCO receives the upgrade packet request, the PCO sends the upgrade block after the block number to the STA again to realize the function of breakpoint continuous transmission; if the PCO detects that the upgrading manufacturer of the STA is different from the PCO or belongs to different batches of the same manufacturer, the data frame of the upgrade request packet is forwarded to the PCO of the previous stage.
The invention has the beneficial effects that: the invention considers the method for upgrading the software of the modules of different manufacturers in different batches; in the transmission process of the upgrade package, the CCO performs overall control on the transmission of the upgrade package, and the specific transmission of the upgrade package is transmitted to the STA by the PCO, namely, only one-hop transmission is needed for each STA upgrade package, and the upgrade package is not required to be transmitted to the STA from the CCO every time; the PCO uses single-hop broadcasting in any direction to transmit the upgrade blocks, so that the STA which does not receive the complete upgrade package before gradually supplements the missing upgrade blocks, and a large amount of upgrade block reissue is avoided; the function of breakpoint transmission is realized, if a module fails in the upgrading process, the upgrading block does not need to be received from the beginning after power-on or restarting, and the upgrading block is continuously received after the upgrading block is received last time; the situation that the upgrading fails due to the fact that the module fails in the process of restarting and executing the upgrading is considered, the communication module can still be returned to the previous version from the backup area, and the situation that the communication module cannot be normally used due to the upgrading failure is avoided.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objectives and other advantages of the invention may be realized and attained by the means of the instrumentalities and combinations particularly pointed out hereinafter.
Drawings
For the purposes of promoting a better understanding of the objects, aspects and advantages of the invention, reference will now be made to the following detailed description taken in conjunction with the accompanying drawings in which:
FIG. 1 is a schematic structural diagram of a local communication system in a power consumption information acquisition system;
FIG. 2 is a block diagram of the structure of the FLASH of the present invention;
fig. 3 is a flowchart illustrating an upgrade file transfer process.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention in a schematic way, and the features in the following embodiments and examples may be combined with each other without conflict.
Wherein the showings are for the purpose of illustrating the invention only and not for the purpose of limiting the same, and in which there is shown by way of illustration only and not in the drawings in which there is no intention to limit the invention thereto; to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it should be understood that if there is an orientation or positional relationship indicated by terms such as "upper", "lower", "left", "right", "front", "rear", etc., based on the orientation or positional relationship shown in the drawings, it is only for convenience of description and simplification of description, but it is not an indication or suggestion that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and therefore, the terms describing the positional relationship in the drawings are only used for illustrative purposes, and are not to be construed as limiting the present invention, and the specific meaning of the terms may be understood by those skilled in the art according to specific situations.
The invention provides an upgrading method of a micropower wireless communication module in a power utilization information acquisition system. The transmission flow of the upgrade file is shown in fig. 3, and the transmission process of the upgrade file includes the following steps:
s11: and the master station sends the upgrade package to the concentrator in a wireless private network or wireless public network mode.
Adding the manufacturer source information of the current upgrade package into the first upgrade block file for transmitting the upgrade package, and using a 2-byte manufacturer information field to represent the manufacturer source and the batch of the current upgrade package, wherein 12 bits are used to represent the manufacturer source, and 4 bits are used to represent the batch of the manufacturer.
The upgrading packet files of modules of different batches of different manufacturers are different, but the basic communication function and interconnection meet the standard requirements, and the module before upgrading and the module after upgrading also meet the basic communication function and interconnection.
S12: the concentrator issues a software upgrading packet to a communication main module CCO through a serial port, wherein the software upgrading packet is sequentially transmitted in a blocking mode, the CCO receives upgrading blocks and sequentially writes the upgrading blocks into an APP area in FLASH, and FLASH parameter area division is shown in FIG. 2.
The concentrator is connected with the CCO through a serial port, an interface communication protocol is a concentrator local communication module interface protocol Q/GDW1376.2-2013, and the function code of the upgrade message corresponds to 15H-F1 (file transmission) in the protocol.
S13: and the CCO (PCO) uses a framing technology, divides the upgrade package into the minimum upgrade blocks according to the upper limit of the message length allowed by the protocol, and starts single-hop broadcasting to be sequentially transmitted to the STA directly connected with the next hop.
S14: and the STA checks after receiving each upgrading block, writes the upgrading blocks into the APP area in the FLASH in sequence if the checking is passed, and judges whether the upgrading block is completely received and checks the upgrading packet after receiving the last upgrading block.
And if the receiving is complete and the verification is correct, returning an upgrade package receiving confirmation frame to the CCO.
If the upgrade package is received completely and checked correctly, whether the factory source and the product batch of the current upgrade package are consistent with the upgrade package is judged according to the factory information field, if so, the upgrade flag in the boot parameter is changed to 1 (the current module needs to be upgraded), otherwise, the upgrade flag is set to 0 (the current module does not need to be upgraded).
S15: and the CCO maintains an upgrade packet receiving state table of the micropower module, and sets the state of the STA as receiving completion after receiving an upgrade packet receiving confirmation frame sent by the STA. The upgrade package receiving state table comprises TEI values of all STAs, upgrade package receiving states and upgrade package forwarding conditions, wherein the initial value of the upgrade package receiving state is 0, 1 represents that the upgrade package of the STA is received completely, and 0 represents that the upgrade package is not received completely; the initial value of the forwarding condition of the upgrade package is 0, 1 indicates that the module completes the forwarding of the upgrade package, and 0 indicates that the module does not forward.
S16: and the CCO sequentially sends an upgrade packet forwarding control frame to the PCO which is currently at a low level, completely receives the upgrade packet and does not perform upgrade packet forwarding.
On the premise that the above conditions are met, the CCOs can be sequentially sent in the order from small to large according to the TEI value of the PCO.
After receiving the control frame, the PCO sequentially takes the upgrading blocks out of the FLASH and carries out single-hop broadcasting to each module, the transmission of the single-hop broadcasting frame is not in a direction, and in the process, the modules which are not completely collected with the upgrading blocks can gradually perfect the receiving of the upgrading blocks, and the process enters S4.
S17: after the CCO finishes each round of module upgrade package forwarding, a beacon period is set at an interval, where the beacon period is used to receive an upgrade package reception acknowledgement frame of the module, and then S5 is entered to continue planning a PCO that has not been subjected to upgrade package forwarding. If all PCOs which have received the complete upgrade package are forwarded by the upgrade package, checking whether any module in the upgrade package receiving information table of the module does not receive the complete upgrade package, if so, entering S8, otherwise, ending the transmission process of the upgrade file.
S18: the CCO controls the STAs which do not receive the complete upgrade package in sequence from low to high according to the hierarchy of the STAs, the CCO sends a control frame to the STAs, the STAs send upgrade block request frames to the PCO, after the PCO receives the frames, the PCO judges whether the upgrade blocks missing from the STAs are stored in the module or not, if yes, the upgrade blocks missing from the STAs are sent to the STAs, and otherwise, the CCO continues to send upgrade block request frames to the upper PCO.
The STA adds a bit map into the upgrade block request frame, the bit map represents the specific receiving condition of the upgrade packet, the bit corresponding to the upgrade block is 1 to represent that the upgrade block is received, and 0 to represent that the upgrade block is not received.
If the STA checks that the upgrade package is received correctly, sending an upgrade package receiving confirmation frame to the CCO, otherwise, continuously sending an upgrade block request frame to the PCO, wherein the sending times of the request frame do not exceed three times at most.
The above is the transmission process of the upgrade file, and the upgrade execution process of the micropower wireless module comprises the following steps:
s21: and the CCO sends an upgrade execution command frame, wherein the sending type of the frame is full-network broadcasting, and the frame is provided with a manufacturer identification option.
S22: and the STA judges whether the source manufacturer and the product batch of the upgrade package are consistent with the STA according to the manufacturer information field, and if so, the upgrade package is restarted for upgrading under the conditions of complete reception and correct verification of the upgrade package.
S23: after the STA is restarted or powered on, the Bootloader inquires whether an upgrading mark in the boot parameter is 1, if so, the upgrading packet is verified correctly, and the content of the upgrading APP area is copied to an execution area for executing a program; otherwise, checking whether the code execution area is checked correctly, if so, directly executing the program of the code execution area, and if the check is wrong, indicating that the module has a fault or an abnormal condition in the previous loading process, copying the content in the backup area to the code execution area for execution.
S24: after the STA is upgraded successfully, the content in the current code execution area is copied to a backup area, so that recovery under an abnormal condition is facilitated.
Further, the process further comprises: and setting an upgrade status flag in the parameter area, wherein 0 represents that no upgrade process is not completed, other values represent that the upgrade process is not completed, and the specific meaning of the value represents the last upgrade block number received before. And after the PCO receives the upgrade packet request, the PCO sends the upgrade block after the block number to the STA in addition to the update block so as to realize the function of breakpoint continuous transmission. If the PCO detects that the upgrading manufacturer of the STA is different from the PCO or belongs to different batches of the same manufacturer, the data frame of the upgrade request packet is forwarded to the PCO of the previous stage.
The technical scheme of the invention considers the method for upgrading the software of modules of different manufacturers in different batches; in the transmission process of the upgrade package, the CCO performs overall control on the transmission of the upgrade package, and the transmission of the specific upgrade package is sent to the STA by the PCO, namely, only one-hop transmission is needed for each STA upgrade package, and the upgrade package is not required to be sent to the STA from the CCO every time; the PCO uses single-hop broadcasting in any direction to transmit the upgrade blocks, so that the STA which does not receive the complete upgrade packet before gradually supplements the missing upgrade blocks, and retransmission and reissue of a large number of upgrade blocks are avoided; the function of breakpoint transmission is realized, if a module fails in the upgrading process, the upgrading block does not need to be received from the beginning after power-on or restarting, and the upgrading block is continuously received after the upgrading block is received last time; the situation that the upgrading fails due to the fact that the module fails in the process of restarting and executing the upgrading is considered, the communication module can still be returned to the previous version from the backup area, and the situation that the communication module cannot be normally used due to the upgrading failure is avoided.
Finally, the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the present invention, and although the present invention has been described in detail with reference to the preferred embodiments, it will be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions, and all of them should be covered by the claims of the present invention.

Claims (5)

1. A method for upgrading a micropower wireless communication module in a power utilization information acquisition system is characterized by comprising the following steps: comprises an upgrade file transmission process and a micro-power wireless module executing the upgrade process, wherein
The transmission process of the upgrade file comprises the following steps:
s11: the master station sends the upgrade package to the concentrator in a wireless private network or wireless public network mode;
s12: the concentrator issues a software upgrading packet to a communication main module CCO through a serial port, wherein the software upgrading packet is sequentially transmitted in a blocking mode, and the CCO receives upgrading blocks and sequentially writes the upgrading blocks into an APP area in the FLASH;
s13: the CCO or the PCO uses a framing technology, divides an upgrade packet into a minimum of upgrade blocks according to the upper limit of the message length allowed by a protocol, and starts single-hop broadcasting to be sequentially transmitted to the STA directly connected with the next hop;
s14: after receiving each upgrading block, the STA checks the upgrading block, if the upgrading block passes the checking, the STA writes the upgrading block into an APP area in FLASH in sequence, and after receiving the last upgrading block, judges whether the upgrading block is completely received and checks an upgrading packet;
s15: the CCO maintains an upgrade package receiving state table of the micro-power module, and after receiving an upgrade package receiving confirmation frame sent by the STA, the state of the STA is set as receiving completion; the upgrade package receiving state table comprises TEI values of all STAs, the receiving state of the upgrade package and the forwarding condition of the upgrade package;
s16: the CCO sends an upgrade packet forwarding control frame to the PCOs which are at the low level and completely receive the upgrade packets and do not perform upgrade packet forwarding; on the premise of meeting the above conditions, the CCO sequentially transmits the TEI values according to the PCO in the order from small to large; after receiving the control frame, the PCO sequentially takes the upgrading blocks out of the FLASH and carries out single-hop broadcasting to each module, the transmission of the single-hop broadcasting frame is not in a direction, in the process, the modules which do not collect the upgrading blocks are used for gradually perfecting the reception of the upgrading blocks, and the process is S14;
s17: after the CCO controls the upgrade package forwarding of a module for one round, a beacon period is set at intervals, the beacon period is used for receiving an upgrade package receiving confirmation frame of the module, then S15 is entered, and the PCO which is not subjected to upgrade package forwarding is planned continuously; if all PCOs which have received the complete upgrade package are forwarded by the upgrade package, checking whether a module in an upgrade package receiving information table of the module does not receive the complete upgrade package, if so, entering S18, otherwise, ending the transmission process of the upgrade file;
s18: the CCO controls the STAs which do not receive the complete upgrade package in sequence according to the sequence of the STAs from low to high, the CCO sends a control frame to the STAs, the STAs send upgrade block request frames to the PCO, the PCO judges whether the upgrade blocks missing from the STAs are stored in the module or not after receiving the frames, if yes, the upgrade blocks missing from the STAs are sent to the STAs, and if not, the update block request frames are sent to the PCO of the upper stage continuously;
the micro-power wireless module executes an upgrade process, which comprises the following steps:
s21: the CCO sends an upgrade execution command frame, the sending type of the frame is full-network broadcasting, and the frame is provided with a manufacturer identification option;
s22: the STA judges whether the source manufacturer and the product batch of the upgrade package are consistent with the STA according to the manufacturer information field, if so, the upgrade package is restarted for upgrading under the conditions of complete reception and correct verification of the upgrade package;
s23: after the STA is restarted, the Bootloader inquires whether an upgrading mark in the boot parameter needs to be upgraded or not, if yes, and the upgrading packet is verified correctly, the content of the upgrading APP area is copied to an execution area for executing a program; otherwise, checking whether the code execution area is checked correctly, if so, directly executing the program of the code execution area, and if the check is wrong, indicating that the module has a fault or an abnormal condition in the previous loading process, copying the content in the backup area to the code execution area for execution;
s24: after the STA is upgraded successfully, the content in the current code execution area is copied to a backup area, so that recovery under an abnormal condition is facilitated.
2. The method for upgrading the micropower wireless communication module in the electricity consumption information acquisition system according to claim 1, wherein the method comprises the following steps: in step S11, adding the manufacturer source information of the current upgrade package into the first upgrade block file of the transmission upgrade package, and using the manufacturer information field to indicate the manufacturer source and the batch of the current upgrade package; the upgrading package files of modules of different batches of different manufacturers are different, but the basic communication function and interconnection meet the standard requirements, and the module before upgrading and the module after upgrading also meet the basic communication function and interconnection.
3. The method for upgrading the micropower wireless communication module in the electricity consumption information acquisition system according to claim 1, wherein the method comprises the following steps: in step S12, the FLASH parameter area is divided into a bootloader area, Boot parameter area, other parameter areas, code execution area, upgrade APP area, and code backup area.
4. The method for upgrading the micropower wireless communication module in the electricity consumption information acquisition system according to claim 1, wherein the method comprises the following steps: in step S18, the STA adds a bitmap into the upgrade block request frame, the bitmap indicates the specific receiving condition of the upgrade package, the bit corresponding to the upgrade block is 1 to indicate that the upgrade block has been received, and 0 to indicate that the upgrade block has not been received;
if the STA checks that the upgrade package is received correctly, sending an upgrade package receiving confirmation frame to the CCO, otherwise, continuously sending an upgrade block request frame to the PCO, wherein the sending times of the request frame do not exceed three times at most.
5. The method for upgrading the micropower wireless communication module in the electricity consumption information acquisition system according to claim 1, wherein the method comprises the following steps: the micro-power wireless module also comprises the following steps in the process of executing upgrade: setting an upgrading state mark in the parameter area, wherein 0 represents that no upgrading process is not completed, other values represent that the upgrading process is not completed, and the specific meaning of the value represents the last upgrading block number received before; the micro-power wireless communication module is electrified or restarted and then checks the flag bit, if the flag bit is not 0, the PCO requests upgrade packet data, an upgrade packet block number is added to a message to indicate an upgrade block after the block number is lacked, and after the PCO receives the upgrade packet request, the PCO sends the upgrade block after the block number to the STA again to realize the function of breakpoint continuous transmission; if the PCO detects that the upgrading manufacturer of the STA is different from the PCO or belongs to different batches of the same manufacturer, the data frame of the upgrade request packet is forwarded to the PCO of the previous stage.
CN202010005609.3A 2020-01-03 2020-01-03 Method for upgrading micropower wireless communication module in electricity consumption information acquisition system Active CN111145523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010005609.3A CN111145523B (en) 2020-01-03 2020-01-03 Method for upgrading micropower wireless communication module in electricity consumption information acquisition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010005609.3A CN111145523B (en) 2020-01-03 2020-01-03 Method for upgrading micropower wireless communication module in electricity consumption information acquisition system

Publications (2)

Publication Number Publication Date
CN111145523A true CN111145523A (en) 2020-05-12
CN111145523B CN111145523B (en) 2021-05-04

Family

ID=70523489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010005609.3A Active CN111145523B (en) 2020-01-03 2020-01-03 Method for upgrading micropower wireless communication module in electricity consumption information acquisition system

Country Status (1)

Country Link
CN (1) CN111145523B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767068A (en) * 2020-06-01 2020-10-13 北京智芯微电子科技有限公司 Equipment for carrying out batch upgrading on communication modules and batch upgrading system
CN112579130A (en) * 2020-12-28 2021-03-30 河南城拜检测技术有限公司 Interactive IAP (Internet access protocol) upgrading method
CN112929236A (en) * 2021-02-23 2021-06-08 重庆邮电大学 Broadband micropower wireless protocol interoperability test system for electricity consumption information acquisition system
CN113596625A (en) * 2021-08-06 2021-11-02 清华四川能源互联网研究院 Electric energy meter data transmission method and device of message queue telemetry transmission protocol
CN113810223A (en) * 2021-08-20 2021-12-17 佳源科技股份有限公司 Method for realizing remote collection of HPLC maintenance logs
CN114095954A (en) * 2021-10-09 2022-02-25 福建新大陆通信科技股份有限公司 UART-based wireless communication module upgrading method
CN114338656A (en) * 2022-03-14 2022-04-12 杭州炬华科技股份有限公司 Method and system for rapidly upgrading firmware of electric energy meter and readable storage medium
CN115134354A (en) * 2022-07-14 2022-09-30 佳源科技股份有限公司 Method for rapidly upgrading by using TDMA time slot
CN116055920A (en) * 2023-03-31 2023-05-02 北京智芯微电子科技有限公司 Program upgrading method and system of communication module and electricity consumption information acquisition system

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1289324A1 (en) * 2001-08-20 2003-03-05 Lucent Technologies Inc. Software upgrade of telecommunications user terminal
US20050028001A1 (en) * 2003-07-29 2005-02-03 Jian Huang Secured software patching and upgrade method for densely deployed networks having spanning-tree topology
WO2008069439A1 (en) * 2006-12-05 2008-06-12 Electronics And Telecommunications Research Institute Method for grouping sensor nodes in heterogeneous wireless sensor networks
US20100316033A1 (en) * 2009-06-16 2010-12-16 Peter Atwal Enhancements for off-the-shelf 802.11 components
CN101945339A (en) * 2010-07-02 2011-01-12 哈尔滨工程大学 Cognitive radio self-organization network message multicast transmission method
CN103685487A (en) * 2013-12-02 2014-03-26 宁波三星电气股份有限公司 Child node updating method in wireless communication network
US20140089912A1 (en) * 2012-09-21 2014-03-27 Silver Spring Networks, Inc. System and method for efficiently updating firmware for nodes in a mesh network
CN104572221A (en) * 2015-01-30 2015-04-29 重庆邮电大学 Vehicle-mounted ECU (electronic control unit) online updating system and method
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node
CN107193588A (en) * 2017-04-26 2017-09-22 北京潘达互娱科技有限公司 A kind of application upgrade method and apparatus
CN109639507A (en) * 2019-01-14 2019-04-16 南京南瑞微电子技术有限公司 A kind of broadband power line carrier communication network updating method
EP3547113A1 (en) * 2018-03-30 2019-10-02 Laird Technologies, Inc. Systems and methods for over-the-air software deployment via broadcasting
CN110474756A (en) * 2019-08-08 2019-11-19 重庆邮电大学 A kind of smart grid electricity usage information collecting method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1289324A1 (en) * 2001-08-20 2003-03-05 Lucent Technologies Inc. Software upgrade of telecommunications user terminal
US20050028001A1 (en) * 2003-07-29 2005-02-03 Jian Huang Secured software patching and upgrade method for densely deployed networks having spanning-tree topology
WO2008069439A1 (en) * 2006-12-05 2008-06-12 Electronics And Telecommunications Research Institute Method for grouping sensor nodes in heterogeneous wireless sensor networks
US20100316033A1 (en) * 2009-06-16 2010-12-16 Peter Atwal Enhancements for off-the-shelf 802.11 components
CN101945339A (en) * 2010-07-02 2011-01-12 哈尔滨工程大学 Cognitive radio self-organization network message multicast transmission method
US20140089912A1 (en) * 2012-09-21 2014-03-27 Silver Spring Networks, Inc. System and method for efficiently updating firmware for nodes in a mesh network
CN103685487A (en) * 2013-12-02 2014-03-26 宁波三星电气股份有限公司 Child node updating method in wireless communication network
CN104572221A (en) * 2015-01-30 2015-04-29 重庆邮电大学 Vehicle-mounted ECU (electronic control unit) online updating system and method
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node
CN107193588A (en) * 2017-04-26 2017-09-22 北京潘达互娱科技有限公司 A kind of application upgrade method and apparatus
EP3547113A1 (en) * 2018-03-30 2019-10-02 Laird Technologies, Inc. Systems and methods for over-the-air software deployment via broadcasting
CN109639507A (en) * 2019-01-14 2019-04-16 南京南瑞微电子技术有限公司 A kind of broadband power line carrier communication network updating method
CN110474756A (en) * 2019-08-08 2019-11-19 重庆邮电大学 A kind of smart grid electricity usage information collecting method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HONG JIANG: "A hierarchical modulation for upgrading digital broadcast systems", 《IEEE TRANSACTIONS ON BROADCASTING》 *
VICTOR BLANCO: "upgrading nodes in tree-shaped hub location", 《COMPUTERS & OPERATIONS RESEARCH》 *
蒋炜: "微功率无线抄表系统的远程升级", 《单片机与嵌入式系统应用》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767068A (en) * 2020-06-01 2020-10-13 北京智芯微电子科技有限公司 Equipment for carrying out batch upgrading on communication modules and batch upgrading system
CN111767068B (en) * 2020-06-01 2022-01-14 北京智芯微电子科技有限公司 Equipment for carrying out batch upgrading on communication modules and batch upgrading system
CN112579130A (en) * 2020-12-28 2021-03-30 河南城拜检测技术有限公司 Interactive IAP (Internet access protocol) upgrading method
CN112929236A (en) * 2021-02-23 2021-06-08 重庆邮电大学 Broadband micropower wireless protocol interoperability test system for electricity consumption information acquisition system
CN113596625A (en) * 2021-08-06 2021-11-02 清华四川能源互联网研究院 Electric energy meter data transmission method and device of message queue telemetry transmission protocol
CN113810223A (en) * 2021-08-20 2021-12-17 佳源科技股份有限公司 Method for realizing remote collection of HPLC maintenance logs
CN114095954A (en) * 2021-10-09 2022-02-25 福建新大陆通信科技股份有限公司 UART-based wireless communication module upgrading method
CN114095954B (en) * 2021-10-09 2024-02-06 福建新大陆通信科技股份有限公司 UART-based wireless communication module upgrading method
CN114338656A (en) * 2022-03-14 2022-04-12 杭州炬华科技股份有限公司 Method and system for rapidly upgrading firmware of electric energy meter and readable storage medium
CN115134354A (en) * 2022-07-14 2022-09-30 佳源科技股份有限公司 Method for rapidly upgrading by using TDMA time slot
CN116055920A (en) * 2023-03-31 2023-05-02 北京智芯微电子科技有限公司 Program upgrading method and system of communication module and electricity consumption information acquisition system
CN116055920B (en) * 2023-03-31 2023-06-16 北京智芯微电子科技有限公司 Program upgrading method and system of communication module and electricity consumption information acquisition system

Also Published As

Publication number Publication date
CN111145523B (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN111145523B (en) Method for upgrading micropower wireless communication module in electricity consumption information acquisition system
US8102277B2 (en) Method and system for remote updates of meters for metering the consumption of electricity, water or gas
CN109101261A (en) A kind of the remote online upgrade method and system of data acquisition transmission instrument terminal
CN110474756B (en) Intelligent power grid electricity utilization information acquisition method
CN112261087B (en) Distribution Internet of things ad hoc network method and system
CN112910679B (en) Multi-level remote upgrading method for power Internet of things
CN102376153A (en) Method for remotely updating carrier sheet and acquirer in concentrated meter reading system
CN113724485B (en) Rapid intensive information acquisition method
CN109951842B (en) Method for reserving BLE name and MAC address in Bluetooth firmware upgrade
CN112583646A (en) Remote upgrading method for intelligent electric meter
CN107357621A (en) A kind of method that long distance wireless software upgrading is carried out to satellite time transfer equipment
CN109769237A (en) A kind of method and system upgraded based on bluetooth and Lora double mode
CN103095408A (en) Downlink subframe scheduling method, base station, terminal and system
CN114915671A (en) NB-IoT-based remote upgrading method for street lamp controller
CN109639507B (en) Broadband power line carrier communication network upgrading method
CN111399878A (en) Data transmission method and device and method and device for upgrading multi-connected cluster system unit
CN113315797A (en) Method, system and node for remote upgrading of local area network in batches
CN104701982B (en) A kind of method for carrying out automatic upgrading to distribution line monitoring terminal
CN104869543B (en) Base station and user terminal information transmission method and device
CN111682965A (en) FOTA controller
CN111459517A (en) Master-slave equipment online program upgrading method under optical fiber ring network architecture
CN115268965A (en) Adaptive software remote upgrading method and system for low-voltage intelligent circuit breaker
CN112235085A (en) Breakpoint continuous transmission method for image transmission of DLMS electric energy meter
CN116055920B (en) Program upgrading method and system of communication module and electricity consumption information acquisition system
JP2005184480A (en) Radio data communication system

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