CN110427200B - Online software updating method - Google Patents

Online software updating method Download PDF

Info

Publication number
CN110427200B
CN110427200B CN201910647268.7A CN201910647268A CN110427200B CN 110427200 B CN110427200 B CN 110427200B CN 201910647268 A CN201910647268 A CN 201910647268A CN 110427200 B CN110427200 B CN 110427200B
Authority
CN
China
Prior art keywords
program
data card
updating
product
software
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.)
Active
Application number
CN201910647268.7A
Other languages
Chinese (zh)
Other versions
CN110427200A (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.)
Shaanxi Qianshan Avionics Co Ltd
Original Assignee
Shaanxi Qianshan Avionics 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 Shaanxi Qianshan Avionics Co Ltd filed Critical Shaanxi Qianshan Avionics Co Ltd
Priority to CN201910647268.7A priority Critical patent/CN110427200B/en
Publication of CN110427200A publication Critical patent/CN110427200A/en
Application granted granted Critical
Publication of CN110427200B publication Critical patent/CN110427200B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention provides a software online updating method of an airborne flight parameter cache recorder, which comprises the following steps: s1: writing in a loader, and setting corresponding marks at corresponding positions of a data storage space; s2: judging whether the identifier of the storage space of the data card accords with the corresponding identifier, and determining whether to start updating of the loading program; s3: and checking after program updating. The updating method provided by the invention can directly update without disassembling the machine, only updates the application layer program, does not update the bottom layer program, ensures the data safety, and can repeatedly load and update.

Description

Online software updating method
Technical Field
The invention belongs to the technical field of avionics, and particularly relates to a software online updating method of an airborne flight parameter cache recorder.
Background
The flight parameter quick-access recorder is used for recording flight data, and can quickly and conveniently acquire the flight data by quickly replacing a storage medium in a product, so that the maintenance time of an airplane is shortened, and the quick-access recorder is widely used in daily maintenance of the airplane. The flight parameter cache recorder belongs to electronic equipment, the equipment comprises software, and when the software is changed, the software is updated rapidly and conveniently, so that the maintenance time of a product is shortened, and the problem which needs to be solved urgently is solved.
Disclosure of Invention
The invention aims to: the invention aims to provide a software upgrading method, which can conveniently and rapidly upgrade software without disassembling a case and shorten the maintenance time of the product.
The technical scheme is as follows:
the invention provides the following technical scheme for solving the technical problems:
a method for online updating of software, the method comprising the steps of:
s1: writing in a loader, and setting corresponding marks at corresponding positions of a data storage space;
s2: judging whether the identifier of the storage space of the data card accords with the corresponding identifier, and determining whether to start updating of the loading program;
s3: and checking after program updating.
Further, the step S1 includes:
s1.1: writing the software to be updated to the last 4MB of memory space in the cache recorder data card, the initial octet of the loader being "0x7F 0xFE 0x550xAA 0x390x48";
s1.2: setting a status mark 0xEB 0x900x7F 0xFE 0x25 0xEB at the initial position of the 1 st 1MB space of the data card storage space, and identifying that the data card stores software to be updated;
s1.3: loading the data CARD written with the loading program into a special data CARD switching box, and shorting the CARD in-place pin and the +3.3V pin in the data CARD switching box;
s1.4: the data card adapter box which completes the steps is inserted into the cache recorder.
Further, the step S2 includes:
s2.1: powering up the cache recorder;
s2.2: the original software of the cache recorder firstly judges whether the CARD in-place signal is at a high level, namely the level on the pin is 3.3V;
if the pin signal level is low, the power-on product is in a normal working state, and program updating work is not needed;
if the pin signal level is high, the program updating work is needed when the power is on, and the product fault lamp is set to flash;
s2.3: when the cache recorder judges that the CARD bit signal is high level, the cache recorder software starts the software loading updating function, the cache recorder operates the resident program in the 8MB space in front of the program memory, the program firstly reads the initial position state mark of the 1 st 1MB space of the data CARD memory space,
s2.3.1 when the flag is not "0xEB 0x900x7F 0xFE 0x25 0xEB", the cache recorder software sets the fault word "the cache recorder fails to enter the maintenance state", and sets the product fault lamp state to be changed from the flashing state to the normally-on state;
s2.3.2: when the label is "0xEB 0x900x7F 0xFE 0x25 0xEB", the loader of the last 4MB of storage space in the data card is read, and the initial octet of the loader is determined:
s2.3.2.1: when the initial eight bytes of the loader are not '0xEB 0x900x7F 0xFE 0x25 0xEB', setting a fault word 'the cache recorder fails to enter a maintenance state', namely changing the state of a product fault lamp from a flashing state to a normally-on state;
s2.3.2.2: when the initial eight bytes of the loading program are 0x7F 0xFE 0x550xAA 0x390x48, reading the program stored in the database into the memory of the product, and then successively updating the program in a mode that 2KB is the minimum updating program unit until all program updating is completed;
s2.4: after the program is updated, the product fault lamp is turned off, and the content on the data card is completely erased.
Further, the step S3 includes:
s3.1: powering off the product and taking out the data card;
s3.2: taking the data card out of the data card adapter box, inserting the data card into the cache recorder, and powering up the product;
s3.3: if the updated product runs normally, the product fault lamp is extinguished; if the fault lamp is normally on, the steps S1-S3 are repeated again, which represents that the updating of the product program fails.
The beneficial effects are that:
1. the invention can effectively solve the problem of software updating of the aviation airborne flight parameter cache recorder, and can complete program updating of the product under the condition that the product is not detached from the aircraft and the cover plate is not detached;
2. the invention improves the safety of the product, can quickly recover when the program fails to update on line, solves the defect that the program memory must be removed after the program updating of the original cache recorder fails, and then the program memory is re-burned by the programmer.
Drawings
FIG. 1 is a schematic diagram showing the storage mode of the loading program in the present invention.
Fig. 2 is a schematic diagram of the connection of the data card adapter according to the present invention.
Fig. 3 is a program storage structure in the program memory of the present invention.
Detailed Description
The invention is described in further detail below with reference to the accompanying drawings,
writing of loader, as shown in FIG. 1:
firstly, writing the software to be updated into the position of the last 4MB of the storage space in the data card of the cache recorder, wherein the initial eight bytes of the loading program are 0x7F 0xFE 0x550xAA 0x39 0x48;
setting a status mark 0xEB 0x900x7F 0xFE 0x25 0xEB at the initial position of the 1 st 1MB space of the data card storage space, and identifying that the data card stores software to be updated;
loading the data CARD written with the loading program into a special data CARD switching box, and shorting the CARD in-place pin and the +3.3V pin in the data CARD switching box, as shown in fig. 2;
the data card adapter box which completes the steps is inserted into the cache recorder.
Updating the loading program:
2.1 Powering up the cache;
2.2 The original software of the cache recorder first determines whether the "CARD in place" signal is high, i.e., the level on the pin is 3.3V. If the pin signal level is low, the power-on product is in a normal working state, and program updating work is not needed; if the signal level of the pin is high, indicating that program updating work is needed when the power is on, and setting a product fault lamp to be in a flashing state;
2.3 When the cache recorder determines that the CARD in-place signal is high, the cache recorder software starts the software loading update function, the cache recorder runs the resident program burned in the 8MB space in front of the program memory, as shown in fig. 3, the program first reads the start position status flag of the 1 st 1MB space of the data CARD memory space,
2.3.1 When the mark is not '0xEB 0x900x7F 0xFE 0x25 0xEB', the cache recorder software sets a fault word 'the cache recorder fails to enter a maintenance state', and the state of the product fault lamp is changed from a flashing state to a normally-on state;
2.3.2 When the starting position state of the 1 st 1MB space of the data card memory space is marked as "0xEB 0x900x7F 0xFE 0x25 0xEB", the loader of the last 4MB of the memory space in the data card is read, whether the starting eight bytes of the loader are "0x7F 0xFE 0x550xAA 0x390x48" is judged,
2.3.2.1 If the fault word is not set, the cache recorder fails to enter the maintenance state, and the product fault lamp state is changed from a flashing state to a normally-on state;
2.3.2.2 The initial eight bytes of the loading program are 0x7F 0xFE 0x550xAA 0x390x48, the program stored in the database is read into the memory of the product, and then the program is updated successively in a mode that 2KB is the minimum updating program unit until all program updates are completed;
2.4 After the program is updated, the product fault lamp is turned off, and the content on the data card is completely erased.
Checking after program update:
3.1 Powering off the product and taking out the data card;
3.2 Taking the data card out of the data card adapter box, inserting the data card into the cache recorder, and powering up the product;
3.3 If the updated product runs normally, the product fault lamp can be turned off, if the fault lamp is normally on, the program update of the product is failed, and the process of steps 1) to 2) needs to be repeated again to complete the program update.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (2)

1. A method for online updating of software, the method comprising the steps of:
s1: writing in a loader, and setting corresponding marks at corresponding positions of a data storage space;
s2: judging whether the identifier of the storage space of the data card accords with the corresponding identifier, and determining whether to start updating of the loading program;
s3: checking after program updating;
the step S1 includes:
s1.1: writing the software to be updated to the last 4MB of memory space in the cache recorder data card, the initial octet of the loader being "0x7F 0xFE 0x550xAA 0x390x48";
s1.2: setting a status mark 0xEB 0x900x7F 0xFE 0x25 0xEB at the initial position of the 1 st 1MB space of the data card storage space, and identifying that the data card stores software to be updated;
s1.3: loading the data CARD written with the loading program into a special data CARD switching box, and shorting the CARD in-place pin and the +3.3V pin in the data CARD switching box;
s1.4: inserting the data card adapter box with the steps into the cache recorder;
the step S2 includes:
s2.1: powering up the cache recorder;
s2.2: the original software of the cache recorder firstly judges whether the CARD in-place signal is at a high level, namely the level on the pin is 3.3V;
if the pin signal level is low, the power-on product is in a normal working state, and program updating work is not needed;
if the pin signal level is high, the program updating work is needed when the power is on, and the product fault lamp is set to flash;
s2.3: when the cache recorder judges that the CARD bit signal is high level, the cache recorder software starts the software loading updating function, the cache recorder operates the resident program in the 8MB space in front of the program memory, the program firstly reads the initial position state mark of the 1 st 1MB space of the data CARD memory space,
s2.3.1 when the flag is not "0xEB 0x900x7F 0xFE 0x25 0xEB", the cache recorder software sets the fault word "the cache recorder fails to enter the maintenance state", and sets the product fault lamp state to be changed from the flashing state to the normally-on state;
s2.3.2: when the label is "0xEB 0x900x7F 0xFE 0x25 0xEB", the loader of the last 4MB of storage space in the data card is read, and the initial octet of the loader is determined:
s2.3.2.1: when the initial eight bytes of the loader are not '0xEB 0x900x7F 0xFE 0x25 0xEB', setting a fault word 'the cache recorder fails to enter a maintenance state', and changing the product fault lamp state from a flashing state to a normally-on state;
s2.3.2.2: when the initial eight bytes of the loading program are 0x7F 0xFE 0x550xAA 0x390x48, reading the program stored in the data card into the memory of the product, and then successively updating the program in a mode of taking 2KB as the minimum updating program unit until all program updating is completed;
s2.4: after the program is updated, the product fault lamp is turned off, and the content on the data card is completely erased.
2. The online software updating method according to claim 1, wherein the step S3 comprises:
s3.1: powering off the product and taking out the data card;
s3.2: taking the data card out of the data card adapter box, inserting the data card into the cache recorder, and powering up the product;
s3.3: if the updated product runs normally, the product fault lamp is extinguished; if the fault lamp is normally on, the steps S1-S3 are repeated again, which represents that the updating of the product program fails.
CN201910647268.7A 2019-07-17 2019-07-17 Online software updating method Active CN110427200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910647268.7A CN110427200B (en) 2019-07-17 2019-07-17 Online software updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910647268.7A CN110427200B (en) 2019-07-17 2019-07-17 Online software updating method

Publications (2)

Publication Number Publication Date
CN110427200A CN110427200A (en) 2019-11-08
CN110427200B true CN110427200B (en) 2023-06-30

Family

ID=68410906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910647268.7A Active CN110427200B (en) 2019-07-17 2019-07-17 Online software updating method

Country Status (1)

Country Link
CN (1) CN110427200B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466047A (en) * 2002-06-28 2004-01-07 联想(北京)有限公司 Semiopen automatic upgrading method for embedded type operation system
CN101847271A (en) * 2009-03-24 2010-09-29 上海天络科技有限公司 Quick-access recorder based on wireless transmission
CN107423824A (en) * 2017-04-21 2017-12-01 中车大连电力牵引研发中心有限公司 Train radio attending device, system and server
CN107885132A (en) * 2017-12-20 2018-04-06 北京强度环境研究所 A kind of long endurance data logger of low-power consumption

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10140117B2 (en) * 2016-06-30 2018-11-27 Microsoft Technology Licensing, Llc Fault-tolerant variable region repaving during firmware over the air update

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466047A (en) * 2002-06-28 2004-01-07 联想(北京)有限公司 Semiopen automatic upgrading method for embedded type operation system
CN101847271A (en) * 2009-03-24 2010-09-29 上海天络科技有限公司 Quick-access recorder based on wireless transmission
CN107423824A (en) * 2017-04-21 2017-12-01 中车大连电力牵引研发中心有限公司 Train radio attending device, system and server
CN107885132A (en) * 2017-12-20 2018-04-06 北京强度环境研究所 A kind of long endurance data logger of low-power consumption

Also Published As

Publication number Publication date
CN110427200A (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN100472442C (en) Device and method for on-line updating fastener programm
CN103299276B (en) The software upgrading process of embedded equipment
CN110096300B (en) FPGA program file backup management system, operation method and upgrading method
CN104360877A (en) ECU (electronic control unit) firmware updating method based on Bootloader self update
CN106227680B (en) A kind of data processing and power fail preventing data guard method
CN101739266A (en) Firmware updating method
CN107690630A (en) Bridge configuration in computing device
CN103377155B (en) Memorizer memory devices and Memory Controller thereof and power control method
CN109358865A (en) A kind of industrial vehicle car networking instrument and upgrade method with remote upgrade function
CN112379895A (en) Method for upgrading ZYNQ FPGA program through 1553B
CN110427200B (en) Online software updating method
CN107844312A (en) A kind of software upgrading monitoring method and system
CN103995717A (en) Method for upgrading software in embedded device
CN101178660A (en) Memory data automatic update method
CN102479124A (en) Test method
CN109445991A (en) A kind of date storage method, system, intelligent wearable device and storage medium
CN101739270B (en) Electronic device and system update method thereof
CN113207225A (en) Chip-replaceable storage device and chip replacement, verification and manufacturing method thereof
CN112445670B (en) eMMC test method and device
CN107423075A (en) The register method and user terminal of driving
KR20180023575A (en) Firmware auto updating method and computer readable recording medium writing firmware auto updating method
CN115904316A (en) Initialization design method for automatically identifying hardware PCB and configurable production software
CN104678292A (en) Test method and device for CPLD (Complex Programmable Logic Device)
CN111447514B (en) EEPROM system of passive optical network SFP ONT and data updating control method thereof
CN1331048C (en) Method of replacing partial basic input and output 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