CN110427200A - A kind of software on-line updating method - Google Patents
A kind of software on-line updating method Download PDFInfo
- Publication number
- CN110427200A CN110427200A CN201910647268.7A CN201910647268A CN110427200A CN 110427200 A CN110427200 A CN 110427200A CN 201910647268 A CN201910647268 A CN 201910647268A CN 110427200 A CN110427200 A CN 110427200A
- Authority
- CN
- China
- Prior art keywords
- software
- program
- data card
- product
- update
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1433—Saving, restoring, recovering or retrying at system level during software upgrading
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy 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 present invention provides a kind of software on-line updating methods of onboard flight parameter cache logger, and this method comprises the following steps: S1: the write-in of loading procedure, and respective markers are arranged in the corresponding position of data space;S2: judge data card memory space identifies whether to meet above-mentioned respective identification, decides whether the update of boot loader;S3: the updated inspection of program.Update method provided by the invention is not needed to tear machine update open, can be directly updated, and the update method only updates application layer program, and for underlying programs without updating, data safety is more secure, can reverse cyclic loadings update.
Description
Technical field
The invention belongs to avionics fields, and in particular to a kind of software of onboard flight parameter cache logger exists
Line update method.
Background technique
Flight parameter cache logger is used for record flight data, can be situated between by the storage in quick-replaceable product
Matter shortens the aircraft maintenance time, is made extensively in the daily maintenance of aircraft so as to fast and easily obtain flying quality
With.Flight parameter cache logger belongs to electronic equipment, includes software in the equipment, when software changes how it is quick just
Prompt update software shortens the product maintenance time, is urgent problem.
Summary of the invention
Goal of the invention: the object of the present invention is to provide a kind of method for upgrading software, and product is enable not dismantle cabinet
In the case of, software is easily efficiently risen, the product maintenance time is shortened.
Technical solution:
In order to solve the above technical problems, The present invention provides following technical solutions:
A kind of software on-line updating method, described method includes following steps:
S1: the write-in of loading procedure, and respective markers are set in the corresponding position of data space;
S2: judge data card memory space identifies whether to meet above-mentioned respective identification, decides whether boot loader
Update;
S3: the updated inspection of program.
Further, the step S1 includes:
S1.1: the position of the last 4MB of memory space in the software write caching recorder data card that will be updated adds
Eight bytes of starting for carrying program are " 0x7F 0xFE 0x55 0xAA 0x39 0x48 ";
S1.2: status indication " 0xEB 0x90 is set in the initial position in the 1st space 1MB of data card memory space
0x7F 0xFE 0x25 0xEB " stores the software of update in need in mark data card;
S1.3: will snap fits into dedicated data card interconnecting device with the data of loading procedure, will be in data card interconnecting device
" CARD is in place " pin and "+3.3V " pin are shorted;
S1.4: the data card interconnecting device for completing above-mentioned steps is inserted into cache logger.
Further, the step S2 includes:
S2.1: cache logger is powered on;
S2.2: the original software of cache logger first determines whether " CARD is in place " signal is high level, i.e., on the pin
Level be 3.3V;
If the leg signal level is low level, show that this time powering on product is normal operating conditions, does not need to carry out
Program updates work;
If the leg signal level is high level, needs to carry out program when showing this time to power on and update work, setting produces
The flashing of product trouble light;
S2.3: after it is high level that cache logger, which determines " CARD is in place " signal, the starting of cache logger software is soft
Part loads more new function, and cache logger runs the resident program in burning space 8MB before program storage, and program is read first
The initial position status indication in the 1st space 1MB of data card memory space,
S2.3.1 is not " 0xEB 0x90 0x7F 0xFE 0x25 0xEB ", the setting event of cache logger software when label
Barrier word " cache logger enters the failure of maintenance state ", setting product failure lamp state is become being always on state from flashing state;
S2.3.2: when being labeled as " 0xEB 0x90 0x7F 0xFE 0x25 0xEB ", memory space in data card is read
The loading procedure of the position of last 4MB, judges eight bytes of starting of loading procedure:
S2.3.2.1: when eight bytes of starting of loading procedure are not " 0xEB 0x90 0x7F 0xFE 0x25 0xEB ",
Faulty word " cache logger enters the failure of maintenance state " is then set, says that product failure lamp state is become being always on shape from flashing state
State;
S2.3.2.2:, will when eight bytes of starting of loading procedure are " 0x7F 0xFE 0x55 0xAA 0x39 0x48 "
The program stored in database reads in product memory, then gradually updates journey in such a way that 2KB is minimum update program unit
Sequence is updated until completing whole programs;
S2.4: after program updates, extinguish product failure lamp, and the content on data card is all wiped.
Further, the step S3 includes:
S3.1: product is powered off, and takes out data card;
S3.2: data card is taken out from data card interconnecting device, is powered on after being inserted into cache logger to product;
S3.3: if updated product normal operation, product failure lamp extinguishes;If trouble light is always on, representative products program
Failure is updated, step S1~S3 need to be repeated.
The utility model has the advantages that
1, the present invention can effectively solve the software upgrading problem of airborne flight parameter cache logger, can be in product
In the case where not dismantled on slave and not dismantling cover board, completes product program and update;
2, the present invention improves Product Safety, when program online updating failure when can fast quick-recovery, solve
After program storage must being removed after original cache recorder program update failure re-start burning program using programmable device
Disadvantage only need to re-start load after the load failure of the method program, not have to remove program storage.
Detailed description of the invention
Fig. 1 is loading procedure location mode structural schematic diagram in the present invention.
Fig. 2 is data card interconnecting device wiring schematic diagram in the present invention.
Fig. 3 is the program storage organization in present procedure memory.
Specific embodiment
The invention will be described in further detail with reference to the accompanying drawing,
The write-in of loading procedure, as shown in Figure 1:
The position of the last 4MB of memory space in the software write caching recorder data card that will be updated first, load
Eight bytes of starting of program are " 0x7F 0xFE 0x55 0xAA 0x39 0x48 ";
In the initial position in the 1st space 1MB of data card memory space, status indication " 0xEB 0x90 0x7F is set
0xFE 0x25 0xEB " stores the software of update in need in mark data card;
Dedicated data card interconnecting device will be snapped fits into the data of loading procedure, by " the CARD in data card interconnecting device
Pin and "+3.3V " pin are shorted in place ", as shown in Figure 2;
The data card interconnecting device for completing above-mentioned steps is inserted into cache logger.
The update step of loading procedure:
2.1) cache logger is powered on;
2.2) the original software of cache logger first determines whether " CARD is in place " signal is high level, i.e., on the pin
Level is 3.3V.If the leg signal level is low level, show that this time powering on product is normal operating conditions, is not needed
It carries out program and updates work;If the leg signal level is high level, needs to carry out program when showing this time to power on and update work
Make, setting product failure lamp is flashing state;
2.3) after it is high level that cache logger, which determines " CARD is in place " signal, cache logger software starts software
More new function is loaded, cache logger runs the resident program in burning space 8MB before program storage, as shown in figure 3, program
The initial position status indication in the 1st space 1MB of data card memory space is read first,
2.3.1) when label is not " 0xEB 0x90 0x7F 0xFE 0x25 0xEB ", the setting event of cache logger software
Barrier word " cache logger enters the failure of maintenance state ", product failure lamp state is become being always on state from flashing state;
2.3.2) when the initial position status indication in the 1st space 1MB of data card memory space is " 0xEB 0x90 0x7F
0xFE 0x25 0xEB " reads the loading procedure of the position of the last 4MB of memory space in data card, interpretation loading procedure
Originate whether eight bytes are " 0x7F 0xFE 0x55 0xAA 0x39 0x48 ",
2.3.2.1) if not setting faulty word " cache logger enters the failure of maintenance state ", by product failure lamp shape
State is become being always on state from flashing state;
2.3.2.2) eight bytes of the starting of loading procedure are " 0x7F 0xFE 0x55 0xAA 0x39 0x48 ", will be counted
Read in product memory according to the program that stores in library, then by 2KB be minimum update program unit in the way of gradually more new procedures, directly
It is updated to whole programs are completed;
2.4) after program updates, extinguish product failure lamp, and the content on data card is all wiped.
The updated inspection of program:
3.1) product is powered off, takes out data card;
3.2) data card is taken out from data card interconnecting device, is powered on after being inserted into cache logger to product;
If 3.3) updated product normal operation, product failure lamp should be able to extinguish, if trouble light is always on, generation
Table product program update failure, need to be repeated step 1)~2) process complete program update.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (4)
1. a kind of software on-line updating method, which is characterized in that described method includes following steps:
S1: the write-in of loading procedure, and respective markers are set in the corresponding position of data space;
S2: judge data card memory space identifies whether to meet above-mentioned respective identification, decides whether boot loader more
Newly;
S3: the updated inspection of program.
2. software on-line updating method according to claim 1, which is characterized in that the step S1 includes:
S1.1: the position of the last 4MB of memory space, loading procedure in the software write caching recorder data card that will be updated
Eight bytes of starting be " 0x7F0xFE0x55 0xAA0x390x48 ";
S1.2: status indication " 0xEB0x90 is set in the initial position in the 1st space 1MB of data card memory space
0x7F0xFE0x25 0xEB " stores the software of update in need in mark data card;
S1.3: dedicated data card interconnecting device will be snapped fits into the data of loading procedure, by " the CARD in data card interconnecting device
Pin and "+3.3V " pin are shorted in place ";
S1.4: the data card interconnecting device for completing above-mentioned steps is inserted into cache logger.
3. software on-line updating method according to claim 1, which is characterized in that the step S2 includes:
S2.1: cache logger is powered on;
S2.2: the original software of cache logger first determines whether " CARD is in place " signal is high level, i.e. electricity on the pin
It puts down as 3.3V;
If the leg signal level is low level, show that this time powering on product is normal operating conditions, does not need to carry out program
Update work;
If the leg signal level is high level, needs to carry out program when showing this time to power on and update work, setting product event
Hinder lamp flashing;
S2.3: after it is high level that cache logger, which determines " CARD is in place " signal, cache logger software starting software adds
More new function is carried, cache logger runs the resident program in burning space 8MB before program storage, and program reads data first
The initial position status indication in the 1st space 1MB of card memory space,
S2.3.1 is not " 0xEB0x90 0x7F0xFE0x25 0xEB " when label, and it is " fast that faulty word is arranged in cache logger software
Logger is taken to enter the failure of maintenance state ", setting product failure lamp state is become being always on state from flashing state;
S2.3.2: when being labeled as " 0xEB0x90 0x7F0xFE0x25 0xEB ", the last 4MB of memory space in data card is read
Position loading procedure, judge eight bytes of starting of loading procedure:
S2.3.2.1: when eight bytes of starting of loading procedure are not " 0xEB0x900x7F0xFE0x25 0xEB ", then be arranged therefore
Barrier word " cache logger enters the failure of maintenance state ", says that product failure lamp state is become being always on state from flashing state;
S2.3.2.2:, will be in database when eight bytes of starting of loading procedure are " 0x7F0xFE0x550xAA0x39 0x48 "
The program of storage reads in product memory, then by 2KB be it is minimum update program unit in the way of gradually more new procedures, until completion
Whole programs update;
S2.4: after program updates, extinguish product failure lamp, and the content on data card is all wiped.
4. software on-line updating method according to claim 1, which is characterized in that the step S3 includes:
S3.1: product is powered off, and takes out data card;
S3.2: data card is taken out from data card interconnecting device, is powered on after being inserted into cache logger to product;
S3.3: if updated product normal operation, product failure lamp extinguishes;If trouble light is always on, representative products program updates
Failure, need to be repeated step S1~S3.
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 true CN110427200A (en) | 2019-11-08 |
CN110427200B 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 (5)
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 |
US20180004505A1 (en) * | 2016-06-30 | 2018-01-04 | Microsoft Technology Licensing, Llc | Fault-tolerant variable region repaving during firmware over the air update |
CN107885132A (en) * | 2017-12-20 | 2018-04-06 | 北京强度环境研究所 | A kind of long endurance data logger of low-power consumption |
-
2019
- 2019-07-17 CN CN201910647268.7A patent/CN110427200B/en active Active
Patent Citations (5)
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 |
US20180004505A1 (en) * | 2016-06-30 | 2018-01-04 | Microsoft Technology Licensing, Llc | Fault-tolerant variable region repaving during firmware over the air update |
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 |
---|---|
CN110427200B (en) | 2023-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102353865B (en) | Automatic testing device and method universally used for multiple bus processor modules | |
CN105279127B (en) | A kind of FPGA program downloading systems and method based on PCI or PCIe buses | |
CN104216746B (en) | Monitor in real time and method of calibration of a kind of on-board equipment DSP programs ground in line writing | |
CN106708586B (en) | A kind of handheld instrument and method for the update of embedded system program automatic on-line | |
US10452389B2 (en) | Computer-implemented method for editing data object variants | |
CN112765020A (en) | Automatic testing method of computer interlocking system | |
CN110196726B (en) | Method for realizing remote upgrading and loading of FPGA program based on CPU+CPLD | |
CN109358865A (en) | A kind of industrial vehicle car networking instrument and upgrade method with remote upgrade function | |
CA2708999A1 (en) | Method and system for generating electronic documentation for maintenance | |
CN111831345A (en) | Management method and device for server hard disk backboard, storage medium and equipment | |
CN111831495A (en) | Production automation test method and system | |
CN104679567A (en) | Designing method for continuously storing FRU (Field Replaceable Unit) information | |
CN1288161A (en) | Single board festing method and device | |
CN110427200A (en) | A kind of software on-line updating method | |
CN102063367B (en) | Off-line analysis method and device aiming at computer crash program | |
CN202230152U (en) | General automatic test device for multibus processor modules | |
CN103105787A (en) | Method for automatically transferring a configuration of an automation device during replacement of an automation device | |
CN113315675A (en) | White box switch U-Boot automatic testing method, system and storage medium | |
CN106874049A (en) | Online method for updating program based on STM32 IAP | |
CN111552598B (en) | On-orbit reconfigurable measurement and control module | |
US8355806B2 (en) | Information control system and information control method | |
CN102520676B (en) | Operation order generation method and related device | |
CN112463499A (en) | Method, device, equipment and storage medium for adapting external equipment | |
CN114690716A (en) | Design method of DCS system circuit board card service life automatic diagnosis alarm system | |
CN112947957A (en) | Method, system and medium for upgrading hard disk firmware and collecting information |
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 |