[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108228205A - A kind of SCM Based sensor node remote upgrade method - Google Patents

A kind of SCM Based sensor node remote upgrade method Download PDF

Info

Publication number
CN108228205A
CN108228205A CN201611169779.5A CN201611169779A CN108228205A CN 108228205 A CN108228205 A CN 108228205A CN 201611169779 A CN201611169779 A CN 201611169779A CN 108228205 A CN108228205 A CN 108228205A
Authority
CN
China
Prior art keywords
sensor node
server
packet
new
scm based
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611169779.5A
Other languages
Chinese (zh)
Inventor
高飞
王金宁
孙芳
董建勋
刘尊严
王珂
孙景雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aerospace Science and Industry Inertia Technology Co Ltd
Original Assignee
Aerospace Science and Industry Inertia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aerospace Science and Industry Inertia Technology Co Ltd filed Critical Aerospace Science and Industry Inertia Technology Co Ltd
Priority to CN201611169779.5A priority Critical patent/CN108228205A/en
Publication of CN108228205A publication Critical patent/CN108228205A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of SCM Based sensor node remote upgrade method, including:Establish the communication connection of server and sensor node;Sensor node detects whether to receive the version number of the more new application of server transmission and total packet number;If it is, the version number of more new application and total packet number described in sensor node return;After server receives version number and the total packet number of the more new application, more new procedures are packet-by-packet issued;Sensor node indicates to be 1 to update after having received more new procedures;Sensor node detects the update mark when being 1, deletes former application program, and read the more new procedures and upgraded, juxtaposition, which updates, is identified as 0.

Description

A kind of SCM Based sensor node remote upgrade method
Technical field
The present invention relates to a kind of SCM Based sensor node remote upgrade methods.
Background technology
In Geological Hazards Monitoring field, Sensor monitoring node is generally all mounted on disaster Yi Fa areas, it is desirable that and it is low in energy consumption, it can It works long hours, maintenance difficulties are big, of high cost.
Invention content
The brief overview about the present invention is given below, in order to provide the basic reason about certain aspects of the invention Solution.It should be appreciated that this general introduction is not the exhaustive general introduction about the present invention.It is not intended to determine the key of the present invention Or pith, nor is it intended to limit the scope of the present invention.Its purpose only provides certain concepts in simplified form, with This is as the preamble in greater detail discussed later.
To solve the above problems, the present invention proposes a kind of SCM Based sensor node remote upgrade method.
A kind of SCM Based sensor node remote upgrade method, including:
Establish the communication connection of server and sensor node;
Sensor node detects whether to receive the version number of the more new application of server transmission and total packet number;
If it is, the version number of more new application and total packet number described in sensor node return;
After server receives version number and the total packet number of the more new application, more new procedures are packet-by-packet issued;
Sensor node indicates to be 1 to update after having received more new procedures;
Sensor node detects the update mark when being 1, deletes former application program, and more new procedures described in reading into Row upgrading, juxtaposition update are identified as 0.
SCM Based sensor node remote upgrade method provided by the invention, can effectively to distance sensor into Row is safeguarded.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is SCM Based a kind of flow of embodiment of sensor node remote upgrade method provided by the invention Figure.
Fig. 2 is the hardware architecture diagram of SCM Based sensor node remote upgrade method provided by the invention.
Specific embodiment
Illustrate the embodiment of the present invention with reference to the accompanying drawings.It is retouched in the attached drawing of the present invention or a kind of embodiment The elements and features stated can be combined with elements and features illustrated in one or more other drawings or embodiments. It should be noted that it in order to understand purpose, is omitted known to unrelated to the invention, those of ordinary skill in the art in attached drawing and explanation Component and processing expression and description.
With reference to figure 1 and Fig. 2, the present embodiment provides a kind of SCM Based sensor node remote upgrade method, including:
Step S101 establishes the communication connection of server and sensor node;
Step S102, sensor node detect whether to receive the version number of the more new application of server transmission and total Packet number;
Step S103, if it is, the version number of more new application and total packet number described in sensor node return;
Step S104 after server receives version number and the total packet number of the more new application, packet-by-packet issues update Program;
Step S105, sensor node indicate to be 1 to update after having received more new procedures;
Step S106, sensor node detects the update mark when being 1, deletes former application program, and described in reading More new procedures are upgraded, and juxtaposition update is identified as 0.
Specifically, sensor node software is divided into bootstrap and application program two parts.Sensor node is started to work When Bootloader, bootstrap is for judging whether there is program update, will be new if update original program erasing Program is written, and starts new application program, does not update and directly initiate original application program;Application program is current for being responsible for The whole flow process control of sensor node, the data storage of acquisition, processing, transmission and remote upgrade including data and mark Will updates.
Sending instructions under server end makes sensor node Connection Service device, and server end detects the company of sensor node It connects, issues the version number of more new application and total packet number, sensor detects version number and the Zong Bao of the more new application It is several, it is returned, server packet-by-packet issues more new procedures, and sensor node is received after each packet more new procedures to described Server carries out response, and the data packet of more new procedures is stored in specified region, when sensor node has received more new procedures After disconnect, and to mark is updated for 1, restart sensor node software, into bootstrap, bootstrap detects more Whether new logo is 1, if it is, former application program is deleted, new application program from memory block is read, puts update mark It is 0.
If the sensor node response is incorrect or without response, server takes repeating transmission measure, more than default time After number retransmits failure, this upgrading failure is judged.
If upgrading failure, the communication connection with sensor is established again, and sensor node is received updated journey with last time When sequence version is consistent, paid-in packet number and current version are back to server, server is unwrapped the beginning and issued from next.
SCM Based sensor node remote upgrade method provided by the invention, can effectively to distance sensor into Row is safeguarded.
Although the present invention and its advantage is described in detail it should be appreciated that without departing from by appended claim Various changes, replacement and transformation can be carried out in the case of the spirit and scope of the present invention limited.Moreover, the model of the application Enclose the specific embodiment for being not limited only to the described process of specification, equipment, means, method and steps.In the art is common Technical staff performs and corresponding reality described herein from the disclosure it will be readily understood that can be used according to the present invention Apply the essentially identical function of example or obtain process essentially identical with it result, existing and that future is to be developed, equipment, Means, method or step.Therefore, appended claim purport includes such process, equipment, hand in the range of them Section, method or step.

Claims (4)

1. a kind of SCM Based sensor node remote upgrade method, which is characterized in that including:
Establish the communication connection of server and sensor node;
Sensor node detects whether to receive the version number of the more new application of server transmission and total packet number;
If it is, the version number of more new application and total packet number described in sensor node return;
After server receives version number and the total packet number of the more new application, more new procedures are packet-by-packet issued;
Sensor node indicates to be 1 to update after having received more new procedures;
Sensor node detects the update mark when being 1, deletes former application program, and more new procedures described in reading are risen Grade, juxtaposition update are identified as 0.
2. SCM Based sensor node remote upgrade method according to claim 1, which is characterized in that the biography Sensor node carries out response after receiving each packet more new procedures to the server.
3. SCM Based sensor node remote upgrade method according to claim 2, which is characterized in that if institute It is incorrect or without response to state sensor node response, server takes repeating transmission measure, after retransmitting failure more than preset times, sentences This fixed upgrading failure.
4. SCM Based sensor node remote upgrade method according to claim 3, which is characterized in that if risen The communication connection with sensor is then established in grade failure again, will when sensor node receives consistent with last time update program version Paid-in packet number and current version are back to server, and server is unwrapped the beginning and issued from next.
CN201611169779.5A 2016-12-16 2016-12-16 A kind of SCM Based sensor node remote upgrade method Pending CN108228205A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611169779.5A CN108228205A (en) 2016-12-16 2016-12-16 A kind of SCM Based sensor node remote upgrade method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611169779.5A CN108228205A (en) 2016-12-16 2016-12-16 A kind of SCM Based sensor node remote upgrade method

Publications (1)

Publication Number Publication Date
CN108228205A true CN108228205A (en) 2018-06-29

Family

ID=62650778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611169779.5A Pending CN108228205A (en) 2016-12-16 2016-12-16 A kind of SCM Based sensor node remote upgrade method

Country Status (1)

Country Link
CN (1) CN108228205A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877723A (en) * 2010-06-18 2010-11-03 中兴通讯股份有限公司 Wireless sensor network node remote update system, method and equipment
CN104122815A (en) * 2014-06-26 2014-10-29 南京易周能源科技有限公司 Hydrological measurement and control terminal based on ARM and remote upgrading method thereof
CN105183519A (en) * 2015-09-18 2015-12-23 烽火通信科技股份有限公司 Device and method for fragmented upgrade of ONU software version
CN105354070A (en) * 2015-12-11 2016-02-24 成都广达新网科技股份有限公司 Method for upgrading equipment firmware through I2C
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node
US20160216961A1 (en) * 2013-05-31 2016-07-28 Itron, Inc. Surfacing cross platform applications

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877723A (en) * 2010-06-18 2010-11-03 中兴通讯股份有限公司 Wireless sensor network node remote update system, method and equipment
US20160216961A1 (en) * 2013-05-31 2016-07-28 Itron, Inc. Surfacing cross platform applications
CN104122815A (en) * 2014-06-26 2014-10-29 南京易周能源科技有限公司 Hydrological measurement and control terminal based on ARM and remote upgrading method thereof
CN105183519A (en) * 2015-09-18 2015-12-23 烽火通信科技股份有限公司 Device and method for fragmented upgrade of ONU software version
CN105354070A (en) * 2015-12-11 2016-02-24 成都广达新网科技股份有限公司 Method for upgrading equipment firmware through I2C
CN105573810A (en) * 2016-03-23 2016-05-11 重庆邮电大学 Remote upgrade method and remote upgrade device for wireless sensor network node

Similar Documents

Publication Publication Date Title
CN107291516B (en) Firmware upgrading method and system
CN105930236A (en) Application program version returning method based on BMS Bootloaderupgrade
CN105354140A (en) Automation testing method and system
CN105099772B (en) A kind of upgrade method and system of efficiency service cloud terminal
CN102073517A (en) Upgrading and backup method and device for embedded system
CN104778057A (en) Terminal system upgrading method and device, and server
CN103902399B (en) Software system repair processing method and software system repair processing device
CN104699511B (en) Plug-in unit upgrade method and device
CN108121554A (en) A kind of upgrade method and upgrade-system of open air embedded device system
US10469620B2 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN102195798B (en) A kind of method and system of optical network unit of upgrading
CN103036706A (en) Local processing method of application upgrading abnormity
CN103677869A (en) Wireless sensor network node remote code updating system and method
CN110262820A (en) Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
CN102662789A (en) Method for adding CRC (cyclic redundancy check) to ELF (executable linkable format) file
CN107301077A (en) A kind of embedded device firmware upgrade system
CN103916283A (en) Server pressure test system and method
CN103440142A (en) GPRS (General Packet Radio Service)-based remote upgrade and dynamic loading method
CN1953376A (en) A system and method for updating remote software of wireless terminal equipment
CN104993589A (en) Model sharing method between power distribution main station and terminal
CN112100081B (en) Upgrade test method and device based on double-core intelligent electric meter and computer equipment
CN109992280A (en) Method for upgrading embedded software, terminal device and storage device
CN108228205A (en) A kind of SCM Based sensor node remote upgrade method
CN106020786A (en) Method and device for dynamically restoring application program, and related system
CN108459867A (en) A kind of cloud terminal staging method

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180629