CN102063317A - Method and system for renewedly burning application program by embedded equipment - Google Patents

Method and system for renewedly burning application program by embedded equipment Download PDF

Info

Publication number
CN102063317A
CN102063317A CN2010106015750A CN201010601575A CN102063317A CN 102063317 A CN102063317 A CN 102063317A CN 2010106015750 A CN2010106015750 A CN 2010106015750A CN 201010601575 A CN201010601575 A CN 201010601575A CN 102063317 A CN102063317 A CN 102063317A
Authority
CN
China
Prior art keywords
programming
file
program
application program
external memory
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
CN2010106015750A
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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN2010106015750A priority Critical patent/CN102063317A/en
Publication of CN102063317A publication Critical patent/CN102063317A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention belongs to the technical field of embedded software and in particular relates to a method and system for renewedly burning an application program by embedded equipment. The method for renewedly burning an application program by the embedded equipment comprises the following steps of: (a) dividing an upgrade program into a burning environment monitoring program and a burning program, storing the burning environment monitoring program into a file system, and storing the burning program into external storage equipment; (b) acquiring input events, judging whether an event required to be burnt by starting a subarea of the application program exists in the input events, if so, entering a step (c), and if not, renewedly acquiring the input events; (c) judging whether a file to be burnt exists in the external storage equipment, if so, entering a step (d), and if not, returning to the step (b); and (d) transferring the burning program into the external storage equipment and beginning to burn the file to be burnt into the FLASH of the embedded equipment. The invention has the advantages that the application program can normally run under the condition that the subarea of the application program is damaged so as to meet the requirement for upgrading and restoring the subarea of the application program, and the burning program can be changed at any time, thus the application is freer and more flexible.

Description

The method and system of a kind of embedded device programming application program again
Technical field
The invention belongs to embedded software technology field, relate in particular to the method and system of a kind of embedded device programming application program again.
Background technology
Become in the embedded plank operation GNU/Linux of special use system and to have become more and more popular.An embedded Linux system is seen from the angle of software and can be divided into four levels usually, comprising:
Boot: comprise the boot code and the Boot Loader two large divisions that are solidificated in the firmware (firmware), wherein, the boot code is optional.
Linux kernel: be directed to the customization kernel of embedded plank and the start-up parameter of kernel.
File system: comprise root file system and build on file system on the Flash memory device, use ram disk usually as root file system.
User application: specific to application program of user.
Sometimes, between user application and inner nuclear layer, may also can comprise an embedded graphic user interface.
Wherein boot, linux kernel, three parts of file system generally all are read-only, can not carry out write operation, and having only user application is to write.
In the research and development of products stage, the programming of embedded device application partition all need be by PC, in computer by serial ports or network interface and embedded device obtain communicate by letter after, key in the programming instruction, the BIN file that indicates programming again carries out the burning of application partition.
Research and development of products is finished, after paying user's use, if in user's use, carry out software upgrading if desired, just new application program to the programming of embedded device application partition, then the ROMPaq in the invokes application subregion arrives application partition with the BIN file programming that is stored in the external memory device.But, if in case application partition goes wrong, for example loss of data, subregion damage etc., the ROMPaq that is stored in the application partition just can not normally be moved, thereby cause the user to upgrade application partition, so just must take the shell of embedded device apart, insert serial ports or netting twine by the mode of software upgrading, and in operations such as PC end key entry programming instructions, this brings great inconvenience for use of user.
Summary of the invention
The invention provides the method and system of a kind of embedded device programming application program again, be intended to solve in the prior art and go wrong owing to application partition, the user can not upgrade application partition by the mode of software upgrading, need to key in the programming instruction by PC again, bring the problem of very big inconvenience to the user.
The present invention is achieved in that the method for a kind of embedded device programming application program again, comprising:
Step a: ROMPaq is divided into programming environmental monitoring program and programming program, and programming environmental monitoring procedure stores is in file system, and the programming procedure stores is in external memory device;
Step b: obtaining incoming event, whether in incoming event have the incident that start application partition programming, if the incident that starts the application partition programming is arranged, then enter step c if judging, otherwise, obtain incoming event again;
Step c: judge whether external memory device exists and treat the programming file,, enter steps d if exist, otherwise, return step b;
Steps d: call the programming program in the external memory device, the beginning programming treats that the programming file is in the FALSH of embedded device.
Technical scheme of the present invention also comprises: also comprise between described step b and c: judge whether there is external memory device in the current system, if there is external memory device, the external memory device of carry then, obtain the listed files in the external memory device, and enter step c, otherwise, return step b.
Technical scheme of the present invention also comprises: also comprise between described step c and d: judge to treat whether the programming file is complete, if treat that the programming file is complete, then enter steps d, otherwise the prompting user treats that the programming file is imperfect, the programming failure.
Technical scheme of the present invention also comprises: described step c specifically comprises: judge whether external memory device exists and treat programming file and verification file,, enter steps d if exist, otherwise, return step b; Between described step c and d, also comprise: judge to treat whether the programming file is complete according to verification file,, then enter steps d, otherwise the prompting user treats that the programming file is imperfect, the programming failure if treat that the programming file is complete.
Technical scheme of the present invention also comprises: described verification file is that record remains the text of size information of programming file, described judgement is treated that the programming file is whether complete and is specifically comprised: read out the size for the treatment of the programming file from the information of verification file record, call by system function again and get access to the size for the treatment of the programming file, relatively whether two file sizes are identical, if two file sizes are identical, then are stored in and treat that the programming file is complete in the external equipment.
Another technical scheme that the present invention takes is: the system of a kind of embedded device programming application program again, comprise: programming environment monitoring module and programming module, described programming environment monitoring module is used to monitor incoming event, and judge whether the incident that starts the application partition programming is arranged in the incoming event, and the programming program that when having the incident that starts the application partition programming, starts the programming module, described programming module is used for calling the programming instruction behind the programming program start, programming treats that the programming file is in the FALSH of embedded device.
Technical scheme of the present invention also comprises: described programming environment monitoring module is arranged in file system, and described programming module is arranged in external memory device.
Technical scheme of the present invention also comprises: described programming module also is used for after the programming program start judging before the programming instruction and treating whether the programming file is complete with calling, and when treating that the programming file is complete, just call the programming instruction, programming treats that the programming file is in the FALSH of embedded device.
Technical scheme of the present invention also comprises: described programming environment monitoring module is used for also judging whether current system exists external memory device and external memory device whether to have the programming program, treats that programming file and record remain the text of size information of programming file, if there is no external memory device, programming program, treat that programming file or record remain the text of size information of programming file, then obtain incoming event again.
Technical scheme of the present invention also comprises: described programming module judges that treating that the programming file is whether complete specifically comprises: read out the size for the treatment of the programming file from record remains the text of size information of programming file, call by system function again and get access to the size for the treatment of the programming file, relatively whether two file sizes are identical, if two file sizes are identical, then are stored in and treat in the external equipment that the programming file is complete.
Technical scheme of the present invention has following advantage or beneficial effect: the method and system of embedded device of the present invention programming application program again are divided into programming environmental monitoring program and programming program and storage respectively with ROMPaq, the storage space that programming environmental monitoring program takies is less, and be not easy to damage and guarantee the stable of programming environmental monitoring program, the programming procedure stores is in movable storage device, avoid the embedded device memory space inadequate, under the situation that application partition damages, also can normally move, satisfy the needs of upgrading and repairing applications subregion, and can change the programming program at any time, use freedom and flexibility more.
Description of drawings
Accompanying drawing 1 is the process flow diagram of the method for embedded device of the present invention programming application program again;
Accompanying drawing 2 is structural representations of the system of embedded device of the present invention programming application program again;
Accompanying drawing 3 is fundamental diagrams of programming environment monitoring module of the system of embedded device of the present invention programming application program again;
Accompanying drawing 4 is fundamental diagrams of programming module of the system of embedded device of the present invention programming application program again.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Seeing also Fig. 1, is the process flow diagram of the method for embedded device of the present invention programming application program again.The method of embedded device of the present invention programming application program again specifically may further comprise the steps:
Step 101: ROMPaq is divided into programming environmental monitoring program CheckKey and programming program FlashReset, and wherein, programming environmental monitoring program CheckKey is stored in the file system, and programming program FlashReset is stored in the external memory device;
In step 101, programming environmental monitoring program CheckKey is present in the file system, therefore the change of application partition can not have any influence to this program, and all can be when starting shooting at the running background of system at every turn, its major function is all kinds of incoming events of monitoring, judges whether the incident that starts the application partition programming is arranged in the incoming event.
Wherein, also store the text of application partition BIN file and storage BIN document size information in the external memory device.This application partition BIN file is treated the programming file exactly, is generally application data file or refresh routine data file, is used for programming to application partition; Text file is a verification file, and it records the size information of application partition BIN file, and whether in advance according to treating that the application partition BIN file edit of programming obtains, it is complete to be used for verifying application programs subregion BIN file by the related personnel.
Step 102: obtain incoming event, whether in incoming event have the incident that start application partition programming, if the incident that starts the application partition programming is arranged, then enter step 103 if judging, if be not activated the incident of application partition programming, then obtain incoming event again;
Wherein, this incoming event can be imported by the user, for example: by the UI interface menu select application program programming task, by the specific keys triggering on the telepilot equal controller etc.Certainly, incoming event also can carry out periodic monitor by programming environmental monitoring program CheckKey, damages, in the time of can't using, triggers the programming task automatically when programming environmental monitoring program CheckKey monitors application partition.
Step 103: judge whether there is external memory device in the current system, if there is external memory device, then enter step 104, if there is no external memory device then returns step 102;
Step 104: external memory devices such as carry USB flash disk, obtain the listed files in the external memory device;
Step 105: judge whether external memory device exists programming program FlashReset, if there is programming program FlashReset, then enters step 106, otherwise, return step 102;
Step 106: judge whether external memory device exists the text of application partition BIN file and application storing subregion BIN document size information,, enter step 107 if exist, otherwise, return step 102;
Step 107: call the programming program FlashReset in the external memory device, the prompting user is about to begin the programming of application partition, is sure not outage in the programming process;
Step 108: judge whether application partition BIN file is complete,, then enter step 109 if application partition BIN file is complete, otherwise, enter step 110;
In step 108, judge whether complete being specially of application partition BIN file: the size that from the text of application storing subregion BIN document size information, reads out application partition BIN file, call by system function again, calculate and get access to the size of application partition BIN file, more above-mentioned two data that obtain, if two file sizes are identical, then to be stored in the external equipment application partition BIN file complete in explanation.
Step 109: call the programming instruction, beginning programming application partition BIN file is in the FALSH of embedded device;
Step 110: prompting user application subregion BIN file is imperfect, the programming failure.
Seeing also Fig. 2, is the structural representation of the system of embedded device of the present invention programming application program again.The system of embedded device of the present invention programming application program again comprises programming environment monitoring module and programming module, wherein, the programming environment monitoring module is arranged in file system, the change of application partition can not have any influence to this program, and all can be at the running background of system when starting shooting at every turn.The programming environment monitoring module is used to monitor all kinds of incoming events, judges whether the incident that starts the application partition programming is arranged in the incoming event.The programming module is arranged in external memory device, wherein, also stores the text of application partition BIN file and application storing subregion BIN document size information in the external memory device.
Seeing also Fig. 3, is the fundamental diagram of programming environment monitoring module of the system of embedded device of the present invention programming application program again.The principle of work of programming environment monitoring module is: monitor all kinds of incoming events, judge whether the incident that starts the application partition programming is arranged in the incoming event, if the incident that starts the application partition programming is arranged, programming program, the application partition BIN file of programming and the text of application storing subregion BIN document size information whether have been comprised in whether then judged in current system carry memory device such as USB flash disk and this memory device.
Seeing also Fig. 4, is the fundamental diagram of programming module of the system of embedded device of the present invention programming application program again.The principle of work of programming module is: the prompting user is about to begin the programming of application partition behind the programming program start, in the programming process, be sure not outage, from the text of application storing subregion BIN document size information, read out the size of application partition BIN file then, call the size that gets access to application partition BIN file by system function again, if two sizes are identical, illustrate that then the application partition BIN file that is stored in the external device is complete, otherwise prompting user application subregion BIN file is imperfect, the programming failure.If application partition BIN file is complete, then call programming instruction, with the programming of this application partition BIN file in the FLASH space of embedded device.
The method and system of embedded device of the present invention programming application program again are divided into programming environmental monitoring program and programming program and storage respectively with ROMPaq, the storage space that programming environmental monitoring program CheckKey takies is less, be stored in the file system, because file system generally all is read-only, can not carry out write operation, therefore therefore file system easy damage unlike application partition can guarantee that programming environmental monitoring program CheckKey's is stable.
The storage space that programming program FlashReset takies is bigger, and the storage space of file system is less, therefore this programming program FlashReset combines with aforesaid programming environmental monitoring program CheckKey usually and is stored in application partition as ROMPaq, but also just caused the aforementioned problem of mentioning like this, the present invention is divided into two original ROMPaq, and FlashReset is stored in the movable storage device with the programming program, and CheckKey is stored in the more stable file system with programming environmental monitoring program.The benefit of doing like this is to avoid the problem of embedded device limited storage space, under the situation that application partition damages, also can normally move, satisfy the needs of upgrading and repairing applications subregion, and can change the programming program at any time, use freedom and flexibility more.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method for embedded device programming application program again comprises:
Step a: ROMPaq is divided into programming environmental monitoring program and programming program, and programming environmental monitoring procedure stores is in file system, and the programming procedure stores is in external memory device;
Step b: obtaining incoming event, whether in incoming event have the incident that start application partition programming, if the incident that starts the application partition programming is arranged, then enter step c if judging, otherwise, obtain incoming event again;
Step c: judge whether external memory device exists and treat the programming file,, enter steps d if exist, otherwise, return step b;
Steps d: call the programming program in the external memory device, the beginning programming treats that the programming file is in the FALSH of embedded device.
2. the method for embedded device according to claim 1 programming application program again, it is characterized in that, between described step b and c, also comprise: judge whether there is external memory device in the current system, if there is external memory device, then the external memory device of carry obtains the listed files in the external memory device, and enters step c, otherwise, return step b.
3. the method for embedded device according to claim 1 and 2 programming application program again, it is characterized in that, between described step c and d, also comprise: judge and treat whether the programming file is complete, if treat that the programming file is complete, then enter steps d, otherwise the prompting user treats that the programming file is imperfect, the programming failure.
4. the method for embedded device according to claim 1 and 2 programming application program again is characterized in that, described step c specifically comprises: judge whether external memory device exists and treat programming file and verification file, if exist, enter steps d, otherwise, step b returned; Between described step c and d, also comprise: judge to treat whether the programming file is complete according to verification file,, then enter steps d, otherwise the prompting user treats that the programming file is imperfect, the programming failure if treat that the programming file is complete.
5. the method for embedded device according to claim 4 programming application program again, it is characterized in that, described verification file is that record remains the text of size information of programming file, described judgement is treated that the programming file is whether complete and is specifically comprised: read out the size for the treatment of the programming file from the information of verification file record, call by system function again and get access to the size for the treatment of the programming file, relatively whether two file sizes are identical, if two file sizes are identical, then are stored in and treat that the programming file is complete in the external equipment.
6. the system of embedded device programming application program again, it is characterized in that, comprise: programming environment monitoring module and programming module, described programming environment monitoring module is used to monitor incoming event, and judge whether the incident that starts the application partition programming is arranged in the incoming event, and the programming program that when having the incident that starts the application partition programming, starts the programming module, described programming module is used for calling the programming instruction behind the programming program start, programming treats that the programming file is in the FALSH of embedded device.
7. the system of embedded device according to claim 6 programming application program again is characterized in that, described programming environment monitoring module is arranged in file system, and described programming module is arranged in external memory device.
8. according to the system of claim 6 or 7 described embedded devices programming application program again, it is characterized in that, described programming module also is used for after the programming program start judging before the programming instruction and treating whether the programming file is complete with calling, and when treating that the programming file is complete, just call the programming instruction, programming treats that the programming file is in the FALSH of embedded device.
9. the system of embedded device according to claim 8 programming application program again, it is characterized in that, described programming environment monitoring module is used for also judging whether current system exists external memory device and external memory device whether to have the programming program, treats that programming file and record remain the text of size information of programming file, if there is no external memory device, programming program, treat that programming file or record remain the text of size information of programming file, then obtain incoming event again.
10. the system of embedded device according to claim 8 programming application program again, it is characterized in that, described programming module judges that treating that the programming file is whether complete specifically comprises: read out the size for the treatment of the programming file from record remains the text of size information of programming file, call by system function again and get access to the size for the treatment of the programming file, relatively whether two file sizes are identical, if two file sizes are identical, then are stored in and treat in the external equipment that the programming file is complete.
CN2010106015750A 2010-12-22 2010-12-22 Method and system for renewedly burning application program by embedded equipment Pending CN102063317A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010106015750A CN102063317A (en) 2010-12-22 2010-12-22 Method and system for renewedly burning application program by embedded equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106015750A CN102063317A (en) 2010-12-22 2010-12-22 Method and system for renewedly burning application program by embedded equipment

Publications (1)

Publication Number Publication Date
CN102063317A true CN102063317A (en) 2011-05-18

Family

ID=43998604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106015750A Pending CN102063317A (en) 2010-12-22 2010-12-22 Method and system for renewedly burning application program by embedded equipment

Country Status (1)

Country Link
CN (1) CN102063317A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520981A (en) * 2011-11-24 2012-06-27 深圳市路畅科技有限公司 Production method of INAND/NAND-based multi-partition storage device
CN102819442A (en) * 2012-07-31 2012-12-12 深圳市赛格导航科技股份有限公司 Method and system for programming programs into embedded equipment program
CN102833686A (en) * 2012-07-13 2012-12-19 中广传播集团有限公司 Over-the-air upgrading and loading method for terminal software
CN104461665A (en) * 2014-12-31 2015-03-25 四川金网通电子科技有限公司 Method for triggering android system upgrading in external control mode based on storage device
CN104915235A (en) * 2015-06-15 2015-09-16 深圳市九洲电器有限公司 Terminal device application program upgrading method and terminal device application program upgrading system
CN110502249A (en) * 2019-07-09 2019-11-26 中国北方车辆研究所 A kind of method and system by USB flash disk programming embedded software executable program
CN111273918A (en) * 2020-01-15 2020-06-12 深圳英飞拓科技股份有限公司 Remote upgrading method for embedded camera
CN113110131A (en) * 2021-03-22 2021-07-13 北京航天飞腾装备技术有限责任公司 Multi-section program loading system of flight controller

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501252A (en) * 2002-11-19 2004-06-02 英业达股份有限公司 Automatic restoring method and system for basic input and output system
CN101063939A (en) * 2006-04-28 2007-10-31 佛山市顺德区顺达电脑厂有限公司 Embedded devices capable of renovating operating system program and methods therefor
CN101169729A (en) * 2007-12-06 2008-04-30 三一重工股份有限公司 Embedded type system and method for renewing application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501252A (en) * 2002-11-19 2004-06-02 英业达股份有限公司 Automatic restoring method and system for basic input and output system
CN101063939A (en) * 2006-04-28 2007-10-31 佛山市顺德区顺达电脑厂有限公司 Embedded devices capable of renovating operating system program and methods therefor
CN101169729A (en) * 2007-12-06 2008-04-30 三一重工股份有限公司 Embedded type system and method for renewing application program

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520981A (en) * 2011-11-24 2012-06-27 深圳市路畅科技有限公司 Production method of INAND/NAND-based multi-partition storage device
CN102833686A (en) * 2012-07-13 2012-12-19 中广传播集团有限公司 Over-the-air upgrading and loading method for terminal software
CN102819442A (en) * 2012-07-31 2012-12-12 深圳市赛格导航科技股份有限公司 Method and system for programming programs into embedded equipment program
CN102819442B (en) * 2012-07-31 2018-06-26 深圳市赛格导航科技股份有限公司 A kind of method and system of embedded device program burn writing
CN104461665A (en) * 2014-12-31 2015-03-25 四川金网通电子科技有限公司 Method for triggering android system upgrading in external control mode based on storage device
CN104915235A (en) * 2015-06-15 2015-09-16 深圳市九洲电器有限公司 Terminal device application program upgrading method and terminal device application program upgrading system
CN110502249A (en) * 2019-07-09 2019-11-26 中国北方车辆研究所 A kind of method and system by USB flash disk programming embedded software executable program
CN111273918A (en) * 2020-01-15 2020-06-12 深圳英飞拓科技股份有限公司 Remote upgrading method for embedded camera
CN111273918B (en) * 2020-01-15 2023-09-15 深圳英飞拓仁用信息有限公司 Remote upgrading method of embedded video camera
CN113110131A (en) * 2021-03-22 2021-07-13 北京航天飞腾装备技术有限责任公司 Multi-section program loading system of flight controller

Similar Documents

Publication Publication Date Title
CN102063317A (en) Method and system for renewedly burning application program by embedded equipment
CN109828772A (en) Hot update method, operating system, terminal device and storage medium
KR20110098567A (en) Method and apparatus for generating minimal boot image
CN106648724B (en) Application program hot repair method and terminal
CN103677862A (en) Upgrading method and device of EPLD program
CN101923473B (en) Embedded electronic device and method for updating firmware thereof
CN103902399B (en) Software system repair processing method and software system repair processing device
CN101571807A (en) System with firmware and starting method thereof
CN102360298A (en) Software upgrading method of terminal equipment
CN101188516A (en) A highly reliable and self-adapted remote update method for network device software system
CN102722394A (en) Start upgrading method of embedded equipment
CN107870769A (en) The installation method and device of operating system
CN100456244C (en) Device and method for guiding, updating and maintenance based on USB Host
CN103577212A (en) System starting preloading method and device
CN104572387A (en) Method and device for debugging terminal in engineering mode
CN105739961A (en) Starting method and device of embedded system
CN108255524A (en) A kind of booting Logo display methods, device and embedded device
CN103077043A (en) Method for fast starting and operating Linux
CN104134036A (en) Method and device for obtaining Root permission
CN102841802A (en) Software upgrading method for mobile terminal
CN102043662A (en) Data modification method for multiple operation systems
CN106648792A (en) Method and device for installing virtualized operating system on server
CN103995717A (en) Method for upgrading software in embedded device
CN104407852A (en) Code isolation-based construction method for embedded software and calling method for embedded software
CN102122258A (en) Method for repairing damaged embedded equipment file system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110518