CN103425547B - Based on the electric power data disposal route of vxworks operating system - Google Patents

Based on the electric power data disposal route of vxworks operating system Download PDF

Info

Publication number
CN103425547B
CN103425547B CN201310366887.1A CN201310366887A CN103425547B CN 103425547 B CN103425547 B CN 103425547B CN 201310366887 A CN201310366887 A CN 201310366887A CN 103425547 B CN103425547 B CN 103425547B
Authority
CN
China
Prior art keywords
electric power
power data
application program
data acquisition
acquisition application
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
CN201310366887.1A
Other languages
Chinese (zh)
Other versions
CN103425547A (en
Inventor
郑坚江
邹连明
徐海江
蔡军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Sanxing Medical and Electric Co Ltd
Original Assignee
Ningbo Sanxing Medical and Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Sanxing Medical and Electric Co Ltd filed Critical Ningbo Sanxing Medical and Electric Co Ltd
Priority to CN201310366887.1A priority Critical patent/CN103425547B/en
Publication of CN103425547A publication Critical patent/CN103425547A/en
Application granted granted Critical
Publication of CN103425547B publication Critical patent/CN103425547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a kind of simple to operate, cost is low, automaticity is high, the electric power data disposal route based on vxworks operating system high to the protection ratio of program illegal modifications; It is characterized in that: it produces certain redundant space after being compressed by the relative program in storage chip, compress backup is carried out to corresponding redundant space to the application program of electric power data process simultaneously, first the application program of the electric power data process in storage chip is tested during each start up system after completing backup, as discovery procedure mistake, then replace by the application program of backup.

Description

Based on the electric power data disposal route of vxworks operating system
Technical field
The present invention relates to the technical field of data processing of electric power data acquisition terminal, specifically refer to a kind of electric power data disposal route based on vxworks operating system.
Background technology
Vxworks operating system is a kind of embedded real-time operating system (RTOS) that WindRiver company of the U.S. designed and developed in nineteen eighty-three, is the key components of embedded-development environment.Because of the User Exploitation environment of its good sustainable development capacity, high performance kernel and close friend, occupy one seat in embedded real-time operating system field.It with good reliability and remarkable real-time be widely used program communicating, military affairs, in the high-quality precision and sophisticated technology such as Aeronautics and Astronautics and the high field of requirement of real-time, as satellite communication, military exercises, trajectory guidance, aircraft navigation etc.Electric power data acquisition terminal also generally uses vxworks operating system.
As follows based on its main step of the electric power data disposal route of vxworks operating system in prior art: by reference to the accompanying drawings 1, user is after initial start-up is used for the vxworks operating system of electric power data acquisition, and the electric power data acquisition application program write and the retrieval of corresponding application program first prestore in the flash storage chip of system hardware with checking routine by user.Described electric power data acquisition application program is the application programs of user from edlin, and its title, size and function are all programmed voluntarily by user and defined, and concrete kind is similar to an application programs on present household PC.Described application program retrieval and checking routine refer to for retrieving the one section of program whether application program that above-mentioned electric power data acquisition application program and inspection institute retrieve is the application program of writing voluntarily of user.Above-mentioned application program and corresponding application program are retrieved after in the flash storage chip of the system hardware that to prestore with checking routine and are namely completed the initialization of system, just can directly call to be pre-stored in intrasystem application program and to carry out electric power data acquisition and computing when user restarts system again.User again start up system time, system first can by BOOT drive and vxworks operating system be loaded in flash storage chip, this is similar to the startup of household PC of the prior art, before this loaded with hardware driving, then load operation system.After system loads completes, described application program search program can run automatically, electric power data acquisition application program in retrieval flash storage chip under preset path, after retrieving application program, checking routine is triggered, the application program retrieved is verified, in checking procedure, three key elements are synchronously carried out, judge that whether the filename of the application program retrieved is consistent with the filename in default check program respectively, by the check code preset, coding checkout (conventional coding has CRC check code and MD5 check code) is carried out to the application program retrieved, judge that whether consistent with the file size in default check program (length herein refers to the byte length shared by file for the file size of application program that retrieves, the i.e. size of file), if when above-mentioned three verification key elements in have one not identical with the preset value in checking routine time, system then sends warning to user, point out user do not find correct application program.Otherwise when above-mentioned three verification key elements are all identical with the preset value in checking routine, described electric power data acquisition application program then brings into operation being successfully loaded in vxworks operating system, after application program is run, user can carry out arranging according to the code of practice application programs of application program and revise, and application program self also can store the data that it collects in operational process simultaneously.Above-mentioned amendment belongs to the legal modifications that system is admitted, the program that user writes can adjust automatically to three requirements of legal amended application program, and the application program simultaneously after legal modifications automatically can be replaced the initial application program loaded and be used in order to next time.
Namely described above be its main step of the electric power data disposal route based on vxworks operating system of the prior art.This method has the following disadvantages when reality uses: this is a kind of very traditional data and file memory mechanism, it is simply carry out gathering and store to data, the data file gathered and the important parameter file of application programs directly call after verifying, corresponding automated back-up mechanism is not had after being used to complete, and the sizableness of the size of application file and storage chip, storage chip does not have space be used for Backup Data, if user will back up significant data, can only external storage equipment or increase the capacity of storage chip on hardware.External storage equipment, need could back up manually, and will customize memory device and interface, cost is high; If will increase equally the capacity of the storage chip in system hardware, the flash chip of one piece of 16M in such as prior art, increase capacity, needs the flash chip changing into 32M, or arranges two pieces of 16M chips arranged side by side.But the hardware of control system is just equipped with well when dispatching from the factory, the cost of user's self reliant rebuilding is large, and may occur the problem of hardware incompatibility.In sum, the electric power data disposal route based on vxworks operating system of the prior art, its backup needs external equipment or conversion hardware with recovery, and its complex operation, cost are high, automaticity is low.In reality; electric power data acquisition application program based on vxworks operating system often can be subject to the interference of clutter in system start-up and functionning; cause application program to be illegally modified, and said method often there will be backup problem not in time, not high to the protection ratio of program illegal modifications.
Summary of the invention
The technical problem to be solved in the present invention is, provide a kind of simple to operate, cost is low, automaticity is high, the electric power data disposal route based on vxworks operating system high to the protection ratio of program illegal modifications.
For solving the problems of the technologies described above, technical scheme provided by the invention is: a kind of electric power data disposal route based on vxworks operating system, it comprises the steps:
(1) by operator's start up system, the retrieval of the electric power data acquisition application program write and corresponding data collection application and checking routine are prestored in the flash storage chip of system hardware, at the search program by above-mentioned electric power data acquisition application program and corresponding electric power data acquisition application program, before checking routine and backup control program are prestored into flash storage chip, first to the search program of above-mentioned application program with corresponding data collection application, checking routine and backup control program carry out compression process, compression process is carried out to other compressible system program that flash storage chip prestores simultaneously, make above-mentioned program stored in after flash storage chip, the redundant space for backing up the data after a above-mentioned compression is also had in chip,
(2) system having completed data pre-storage is started, system is driven by BOOT successively and vxworks operating system is loaded in flash storage chip, then the packed data in step (1) is unziped in the random access memory of operating system, complete the search program of the electric power data acquisition application program after decompress(ion) in service data, search the electric power data acquisition application program in flash storage chip under preset path, if find application program, go to step (3) application programs and verify, if do not find application program, operator is then pointed out not find relevant application program,
(3) run three key elements that the checking routine preset verifies the application program found simultaneously, three described key elements are filename, file size and check code respectively; As long as above-mentioned three key elements have one inconsistent with the preset value in checking routine, just report to the police to operator, prompting operator application checks mistake, cannot load; When above-mentioned three key elements are all consistent with the preset value in checking routine, then load the application program found; Operator is by described application program collection and analyze electric power data;
(4) backup control program in the step that brings into operation (1), if the timing node residing for system is consistent with the timing node preset, then the search program of current up-to-date electric power data acquisition application program and corresponding electric power data acquisition application program, checking routine and backup control program copy by system automatically, are then stored in the redundant space described in step (1) after overcompression; If the timing node residing for system is inconsistent with the timing node preset, then judge whether current electric power data acquisition application program carries out legal modifications by operator by the frequency preset, if there is legal modifications, then automatic the search program of the up-to-date electric power data acquisition application program after legal modifications and corresponding electric power data acquisition application program, checking routine and backup control program to be copied, be then stored in the redundant space described in step (1) after overcompression; If there is no legal modifications, then jump to judgement place of timing node;
(5) backed up data in described redundant space after, operator is when start up system verifies the electric power data acquisition application program that will run again, system once verify out current lookup to electric power data acquisition application program in three verification key elements in have inconsistent with checking routine, the electric power data acquisition application program that system will back up in Automatically invoked redundant space, be loaded in system by after its decompress(ion), allow operator operate; If three verification key elements are all by verification, then continue the electric power data acquisition application program that loading current lookup arrives.
After adopting above structure, tool of the present invention has the following advantages: after taking this method for designing, take full advantage of the redundant space of storage chip, effectively back up image data, utilized multilayer redundancy detection algorithm, to compare after backup data before data and backup, as the system reboots, carry out data validity and correctness detects, when upgrade applications system or when arranging amendment Parameter File, significant data is effectively backed up.This algorithm logic clear thinking, algorithm has carried out effective storage to important parameter, fully ensure that data correctness and integrality, even if when data are destroyed, also can the correct system data of self-recoverage, system can normally be run.From economics point, the method does not increase any hardware cost, and the universal method in industry is newly-increased one piece of auxiliary storage chip, carry out extra Backup Data, as adopted the method that cost will be caused to increase substantially, the series of problems such as the hardware circuit design complexity simultaneously also brought and antijamming capability variation.
As improvement, compress process described in step (1) and refer to ZIP compression algorithm.
As improvement, described in step (3), check code is CRC check code.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet based on the electric power data disposal route of vxworks operating system in prior art.
Fig. 2 is the schematic flow sheet of the electric power data disposal route that the present invention is based on vxworks operating system when using for the first time.
Fig. 3 is the schematic flow sheet that the electric power data disposal route that the present invention is based on vxworks operating system completes after initialization under normal operating condition.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
By reference to the accompanying drawings 2 and accompanying drawing 3, a kind of electric power data disposal route based on vxworks operating system, it comprises the steps:
(1) by operator's start up system, the retrieval of the electric power data acquisition application program write and corresponding data collection application and checking routine are prestored in the flash storage chip of system hardware, at the search program by above-mentioned electric power data acquisition application program and corresponding electric power data acquisition application program, before checking routine and backup control program are prestored into flash storage chip, first to the search program of above-mentioned application program with corresponding data collection application, checking routine and backup control program carry out compression process, compression process is carried out to other compressible system program that flash storage chip prestores simultaneously, make above-mentioned program stored in after flash storage chip, the redundant space for backing up the data after a above-mentioned compression is also had in chip,
(2) system having completed data pre-storage is started, system is driven by BOOT successively and vxworks operating system is loaded in flash storage chip, then the packed data in step (1) is unziped to random access memory (i.e. our RAM of often saying of operating system, in the present patent application, flash chip can be understood as the hard disk in household PC, and RAM can be understood as the internal memory in household PC, the condensing routine be stored is that Directly solution is pressed onto in RAM in use, so burden can not be caused to the space in flash storage chip) in, complete the search program of the electric power data acquisition application program after decompress(ion) in service data, search the electric power data acquisition application program in flash storage chip under preset path, if find application program, go to step (3) application programs and verify, if do not find application program, operator is then pointed out not find relevant application program,
(3) run three key elements that the checking routine preset verifies the application program found simultaneously, three described key elements are filename, file size and check code respectively; As long as above-mentioned three key elements have one inconsistent with the preset value in checking routine, just report to the police to operator, prompting operator application checks mistake, cannot load; When above-mentioned three key elements are all consistent with the preset value in checking routine, then load the application program found; Operator is by described application program collection and analyze electric power data;
(4) backup control program in the step that brings into operation (1), if the timing node residing for system is consistent with the timing node preset, then the search program of current up-to-date electric power data acquisition application program and corresponding electric power data acquisition application program, checking routine and backup control program copy by system automatically, are then stored in the redundant space described in step (1) after overcompression; If the timing node residing for system is inconsistent with the timing node preset, then judge whether current electric power data acquisition application program carries out legal modifications by operator by the frequency preset, if there is legal modifications, then automatic the search program of the up-to-date electric power data acquisition application program after legal modifications and corresponding electric power data acquisition application program, checking routine and backup control program to be copied, be then stored in the redundant space described in step (1) after overcompression; If there is no legal modifications, then jump to judgement place of timing node;
(5) backed up data in described redundant space after, operator is when start up system verifies the electric power data acquisition application program that will run again, system once verify out current lookup to electric power data acquisition application program in three verification key elements in have inconsistent with checking routine, the electric power data acquisition application program that system will back up in Automatically invoked redundant space, be loaded in system by after its decompress(ion), allow operator operate; If three verification key elements are all by verification, then continue the electric power data acquisition application program that loading current lookup arrives.
Compress process described in step (1) and refer to ZIP compression algorithm.
Described in step (3), check code is CRC check code.
The present invention in the specific implementation, this Ultrahigh has not only drawn the advantage of conventional store mechanism, also Prometheanly propose based on safety and the application programs of integrality and the backup testing mechanism of parameter, this algorithm not only ensure that program can not cause catastrophic destruction because of File lose, improves the disaster tolerance performance of system; Meanwhile, this Ultrahigh carries out backing up in realtime and storage for the important parameter that user is arranged.Backup all utilizes the redundant space of flash storage chip with storing, and this redundant space is specifically divided into three parts, and one, liquid crystal parameters opens up the backup area of 0.125M; Two, application program system opens up the backup area of 1.5M; Three, parameter opens up the backup area (described opening up refer to obtain unnecessary space by compressing program) of 0.75M, total redundant space size is 2.345M, because the search program of electric power data acquisition application program and corresponding electric power data acquisition application program, checking routine and backup control program are stored in before, through overcompression, so above-mentioned redundant space can be used for depositing the compress backup of the search program of electric power data acquisition application program and corresponding electric power data acquisition application program, checking routine and backup control program completely.When system first time loading application programs system, respectively the CRC in each district is verified, first time generates initialized Parameter File and liquid crystal parameter file when upgrading application programs, simultaneously, detect the filename of corresponding application programs file, file size, CRC check code and file backup mark region, program carries out method comparison to above-mentioned zone automatically, as check results is all correct, then back up corresponding document, and by the application file of correspondence write backup area.In like manner, after liquid crystal parameter and systems parameters document arrange or change, also can trigger backups mechanism, by the file backup of correspondence to backing up region accordingly, Status of Backups can not only be detected in real time like this, achieve backing up in realtime of vital document, fully ensure that the security of system.
Be described the present invention and embodiment thereof above, this description does not have restricted, and shown in accompanying drawing is also one of embodiments of the present invention, and actual structure is not limited thereto.If generally speaking those of ordinary skill in the art enlightens by it, when not departing from the invention aim, designing the frame mode similar to this technical scheme and embodiment without creationary, all should protection scope of the present invention be belonged to.

Claims (3)

1., based on an electric power data disposal route for vxworks operating system, it is characterized in that: it comprises the steps:
(1) by operator's start up system, the search program of the electric power data acquisition application program write and corresponding electric power data acquisition application program, checking routine and backup control program are prestored in the flash storage chip of system hardware, at the search program by above-mentioned electric power data acquisition application program and corresponding electric power data acquisition application program, before checking routine and backup control program are prestored into flash storage chip, first to the search program of above-mentioned electric power data acquisition application program with corresponding electric power data acquisition application program, checking routine and backup control program carry out compression process, compression process is carried out to other compressible system program that flash storage chip prestores simultaneously, make the search program of above-mentioned electric power data acquisition application program, checking routine and backup control program and other compressible system program are stored in after flash storage chip, the redundant space for backing up the data after a above-mentioned compression is also had in chip,
(2) system having completed data pre-storage is started, system is driven by BOOT successively and vxworks operating system is loaded in flash storage chip, then the packed data in step (1) is unziped in the random access memory of operating system, complete the search program of the electric power data acquisition application program after decompress(ion) in service data, search the electric power data acquisition application program in flash storage chip under preset path, if find electric power data acquisition application program, go to step (3) and electric power data acquisition application program is verified, if do not find electric power data acquisition application program, operator is then pointed out not find relevant electric power data acquisition application program,
(3) run three key elements that the checking routine preset verifies the electric power data acquisition application program found simultaneously, three described key elements are filename, file size and check code respectively; As long as above-mentioned three key elements have one inconsistent with the preset value in checking routine, just report to the police to operator, prompting operator electric power data acquisition application checks mistake, cannot load; When above-mentioned three key elements are all consistent with the preset value in checking routine, then load the electric power data acquisition application program found; Operator gathers by described electric power data acquisition application program and analyzes electric power data;
(4) backup control program in the step that brings into operation (1), if the timing node residing for system is consistent with the timing node preset, then the search program of current up-to-date electric power data acquisition application program and corresponding electric power data acquisition application program, checking routine and backup control program copy by system automatically, are then stored in the redundant space described in step (1) after overcompression; If the timing node residing for system is inconsistent with the timing node preset, then judge whether current electric power data acquisition application program carries out legal modifications by operator by the frequency preset, if there is legal modifications, then automatic the search program of the up-to-date electric power data acquisition application program after legal modifications and corresponding electric power data acquisition application program, checking routine and backup control program to be copied, be then stored in the redundant space described in step (1) after overcompression; If there is no legal modifications, then jump to judgement place of timing node;
(5) backed up data in described redundant space after, operator is when start up system verifies the electric power data acquisition application program that will run again, system once verify out current lookup to electric power data acquisition application program in three verification key elements in have inconsistent with checking routine, the electric power data acquisition application program that system will back up in Automatically invoked redundant space, be loaded in system by after its decompress(ion), allow operator operate; If three verification key elements are all by verification, then continue the electric power data acquisition application program that loading current lookup arrives.
2. the electric power data disposal route based on vxworks operating system according to claim 1, is characterized in that: compress process described in step (1) and refer to ZIP compression algorithm.
3. the electric power data disposal route based on vxworks operating system according to claim 1, is characterized in that: described in step (3), check code is CRC check code.
CN201310366887.1A 2013-08-22 2013-08-22 Based on the electric power data disposal route of vxworks operating system Active CN103425547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310366887.1A CN103425547B (en) 2013-08-22 2013-08-22 Based on the electric power data disposal route of vxworks operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310366887.1A CN103425547B (en) 2013-08-22 2013-08-22 Based on the electric power data disposal route of vxworks operating system

Publications (2)

Publication Number Publication Date
CN103425547A CN103425547A (en) 2013-12-04
CN103425547B true CN103425547B (en) 2016-04-27

Family

ID=49650334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310366887.1A Active CN103425547B (en) 2013-08-22 2013-08-22 Based on the electric power data disposal route of vxworks operating system

Country Status (1)

Country Link
CN (1) CN103425547B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1336591A (en) * 2000-07-31 2002-02-20 岱升科技股份有限公司 Method of loading operation system and application program into memory
CN101426052A (en) * 2008-12-05 2009-05-06 上海闻泰电子科技有限公司 Backup and importing method for address book and short message of mobile terminal
CN101908976A (en) * 2010-07-28 2010-12-08 新太科技股份有限公司 Method for designing backup security policy for double-computer transaction file
JP2011086241A (en) * 2009-10-19 2011-04-28 Internatl Business Mach Corp <Ibm> Device and method for generating copy of database
CN102902606A (en) * 2012-10-11 2013-01-30 珠海金山办公软件有限公司 Data backup method and data backup device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1336591A (en) * 2000-07-31 2002-02-20 岱升科技股份有限公司 Method of loading operation system and application program into memory
CN101426052A (en) * 2008-12-05 2009-05-06 上海闻泰电子科技有限公司 Backup and importing method for address book and short message of mobile terminal
JP2011086241A (en) * 2009-10-19 2011-04-28 Internatl Business Mach Corp <Ibm> Device and method for generating copy of database
CN101908976A (en) * 2010-07-28 2010-12-08 新太科技股份有限公司 Method for designing backup security policy for double-computer transaction file
CN102902606A (en) * 2012-10-11 2013-01-30 珠海金山办公软件有限公司 Data backup method and data backup device

Also Published As

Publication number Publication date
CN103425547A (en) 2013-12-04

Similar Documents

Publication Publication Date Title
US8843785B2 (en) Collecting debug data in a secure chip implementation
US10146627B2 (en) Mobile flash storage boot partition and/or logical unit shadowing
US5835695A (en) Method for a primary BIOS ROM recovery in a dual BIOS ROM computer system
US9146839B2 (en) Method for pre-testing software compatibility and system thereof
US7669078B2 (en) Method and apparatus for debugging a program on a limited resource processor
US8601255B2 (en) Approaches for updating bios
CN101329631B (en) Method and apparatus for automatically detecting and recovering start-up of embedded system
CN106873990B (en) Multi-partition guiding method under embedded system RAM damage mode
CN106776122A (en) A kind of method of main-apparatus protection in start-up course based on Flash
US20200250313A1 (en) Bios recovery and update
US10909247B2 (en) Computing device having two trusted platform modules
CN101156137A (en) Selecting subroutine return mechanisms
CN108874582A (en) A kind of system recovery method, device and terminal
CN104461594A (en) Updating method and device of embedded operating system
CN106325903A (en) A start processing method and device
US20220308963A1 (en) Method and apparatus for providing recovery from a computing device boot up error
CN104598256A (en) Computer BIOS (Basic Input /Output System) recovery system and method
CN105549985A (en) Method and system for enhancing reliability of Linux application system
CN102043634A (en) Embedded system and embedded software upgrading method
CN103425547B (en) Based on the electric power data disposal route of vxworks operating system
CN109086162B (en) Memory diagnosis method and device
CN105279043A (en) Method and system for recovering single-chip microcomputer software error
CN109002317B (en) PCBA firmware upgrading method and system and PCBA
CN110515664A (en) The starting method and device of system
KR101461650B1 (en) Apparatus and method for managing file system of a computing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: NINGBO SANXING INTELLIGENT ELECTRIC CO., LTD.

Free format text: FORMER OWNER: NINGBO SANXING ELECTRIC CO., LTD.

Effective date: 20150520

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150520

Address after: 315034 Ningbo, Jiangbei District, Zhejiang City, the town of Maple Bay Road, No. 16

Applicant after: Ningbo Samsung intelligent electric company limited

Address before: 315191 Zhejiang city of Ningbo province Jiangshan town Yinzhou District Mingguang Road No. 1166

Applicant before: Ningbo Sanxing Electric Co., Ltd.

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160129

Address after: 315191 Yinzhou Industrial Park, Zhejiang, Ningbo, Yinzhou District, Ningbo

Applicant after: NINGBO SANXING MEDICAL ELECTRIC CO., LTD.

Address before: 315034 Ningbo, Jiangbei District, Zhejiang City, the town of Maple Bay Road, No. 16

Applicant before: Ningbo Samsung intelligent electric company limited

C14 Grant of patent or utility model
GR01 Patent grant