CN101976198A - Method and device for controlling startup of application program in embedded system - Google Patents

Method and device for controlling startup of application program in embedded system Download PDF

Info

Publication number
CN101976198A
CN101976198A CN2010105230482A CN201010523048A CN101976198A CN 101976198 A CN101976198 A CN 101976198A CN 2010105230482 A CN2010105230482 A CN 2010105230482A CN 201010523048 A CN201010523048 A CN 201010523048A CN 101976198 A CN101976198 A CN 101976198A
Authority
CN
China
Prior art keywords
data
application program
verification
module
routine
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
Application number
CN2010105230482A
Other languages
Chinese (zh)
Other versions
CN101976198B (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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010523048.2A priority Critical patent/CN101976198B/en
Publication of CN101976198A publication Critical patent/CN101976198A/en
Priority to PCT/CN2011/077870 priority patent/WO2012055275A1/en
Application granted granted Critical
Publication of CN101976198B publication Critical patent/CN101976198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

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

Abstract

The invention discloses a method and a device for controlling startup of an application program in an embedded system. The method comprises the following steps of: generating preset configuration data in the process of starting equipment; verifying the preset data and generating a verification result; judging whether the verification result is consistent with a verification value preset in a secondary startup program or not; and if the verification result is consistent with the verification value preset in the secondary startup program, performing the secondary startup program. By the technical program of the invention, the application program needing to be started can be controlled when the system is started, so that the difficult problem of controlling the startup of the application program is solved. The method and the device of the invention have high universality, are suitable for all terminal equipment needing to control the startup of a plurality of functional modules, and are simple and practicable.

Description

The method and apparatus that controlling application program starts in a kind of embedded system
Technical field
The present invention relates to the communications field, relate in particular to the method and apparatus that controlling application program starts in a kind of embedded system.
Background technology
Along with popularizing fast of embedded system device, the application of embedded system has obtained development fast.The scope of using is also from military affairs, industry, and to civilian fast development, and civilian speed of development has surmounted the former again.To much having obtained the enterprises of certain technological accumulation at industrial circle, need a kind of can be fast to the method for civil goods transition.The purpose of transition is exactly similar products, can be applicable to a plurality of application scenarioss.Carry out the transition to civilian positioning system etc. such as military positioning system.Therefore, for technique for embedded systems, research and development achievement once, if there is method in common can be applicable to the application of a plurality of scenes fast, for improving launch speed, it is very significant dominating the market rapidly.
Summary of the invention
For achieving the above object, the method that controlling application program starts in a kind of embedded system, it is characterized in that: in the device start process, generation pre-sets configuration data, the described data that pre-set are carried out verification and produced check results, judge that described check results is whether consistent with the proof test value that presets in the secondary start-up routine, if consistent, then carries out secondary start-up routine.
Further, described verification is included in solidifies a start-up routine among the ROM of embedded system, increase the verification to pre-configured data.
Further, described verification comprises the integrality and the legitimacy of pre-configured data.
Further, driver of described curing comprises in the middle of the ROM of boot loader program Solidification in system, after system power-up, boot loader brings into operation, default check digit S0 in internal memory, leave among the boot loader, as the check results that pre-sets data, the first address P1 from the data segment of preset value data begins to carry out the CRC16 verification then.
Further, described secondary start-up routine reads pre-configured data piecemeal according to predefined space address, and it is set in the global variable of application program, as the parameter of application program launching.
Further, described application program is finished the initialization of each application program module and is carried out, in initialized process, at first obtain the initialize data that secondary start-up routine is provided with, begin then to start each application program module as parameter according to initialize data, after all initialization was finished, equipment began normal operation.
The present invention also proposes the device that controlling application program in a kind of embedded system starts, and it is characterized in that: described device comprises and pre-sets configuration data module, verification module and secondary startup module;
The described configuration data module that pre-sets produces and pre-sets configuration data in the device start process;
Described verification module is carried out verification and is produced check results the described data that pre-set,
Described judge module judges that described check results is whether consistent with the proof test value that presets in the secondary start-up routine;
Described secondary startup module is then carried out secondary start-up routine when above-mentioned judgement is consistent.
Further, described verification is included in solidifies a start-up routine among the ROM of embedded system, increase the verification to pre-configured data.
Further, driver of described curing comprises in the middle of the ROM of boot loader program Solidification in system, after system power-up, boot loader brings into operation, default check digit S0 in internal memory, leave among the boot loader, as the check results that pre-sets data, the first address P1 from the data segment of preset value data begins to carry out the CRC16 verification then.
Further, described secondary start-up routine reads pre-configured data piecemeal according to predefined space address, and it is set in the global variable of application program, as the parameter of application program launching.
In a word, technical scheme of the present invention in system start-up, can want application program started to control to all, has solved the difficult point that the startup of application programs is controlled.
Description of drawings
Fig. 1 is that start-up routine loads and verification configuration data flow process synoptic diagram in the embodiment of the invention;
Fig. 2 is the schematic flow sheet that configuration data was carried out, was provided with to secondary start-up routine among the present invention;
Fig. 3 is application program launching in the present embodiment, load the schematic flow sheet of configuration data;
Fig. 4 is the device embodiment synoptic diagram that controlling application program starts in the embedded system of the present invention.
Embodiment
In view of embedded system for the needs that different application scene controlling application program starts, the present invention proposes a kind of method by pre-configured module controls application program launching, solved the difficult point that the startup of application programs is controlled.
The main thought of the present invention comprises:
In the ROM of embedded system, solidify a start-up routine, increase verification inside pre-configured data.This verification comprises the integrality and the legitimacy of pre-configured data.
Increase a pre-configured parsing module in application program, start-up routine (program also is restarting in the present invention) is finished after the verification to pre-configured data, begins to carry out secondary start-up routine.The default fixed address of secondary start-up routine from RAM begins to be provided with initialize data.
After secondary startup is finished, begin to carry out primary application program.Primary application program is provided with opening or closing of application program launching by reading the data at default fixed address place.
Below in conjunction with the drawings and specific embodiments the present invention is elaborated.
The invention discloses a kind of method that on embedded system, starts, satisfied the needs that different application field controlling application program starts by the mode controlling application program that pre-sets configuration data.
This method that starts by the mode controlling application program that pre-sets configuration data on embedded system provided by the invention is by in the device start process, increases by one and pre-sets the startup that the configuration data module is come controlling application program.It is that after system power-up, boot loader brings into operation in the middle of the ROM in the system of being solidificated in that individual boot loader is at first arranged, and default check digit S0 leaves among the bootloader, as the check results that pre-sets data in internal memory.First address P1 from the data segment of preset value data begins to carry out the CRC16 verification then.The proof test value that presets in check results and the secondary startup module is compared,, think that then the value of secondary startup module is complete effectively, and begin to carry out secondary startup module if consistent.Otherwise think that start-up routine damages, program exception withdraws from.
Please refer to shown in Figure 1ly, is that start-up routine loads and verification configuration data flow process synoptic diagram in the embodiment of the invention, and it may further comprise the steps:
S101: system power-up, bootloader begins to carry out;
S102: default check digit S0;
S103: the data segment that pre-sets data is carried out the CRC16 verification;
S104: whether comparison result is consistent, if consistent, enters step S106, if inconsistent, enters step S105;
S105: secondary startup module damage, program exception withdraws from;
S106: secondary startup module data is complete effectively, begins to carry out secondary startup.
In the present embodiment, secondary startup module is at first carried out verification to host application module after beginning to carry out.The process of verification is consistent to the checking algorithm of secondary startup module with the boot loader of start-up routine module.Verification compares check results and the built-in check results of host application module after calculating and finishing, if inconsistent, program exception withdraws from.If consistent, secondary startup module begins to read the data segment of configuration data.This data segment is to be used for the key that controlling application program starts.Secondary start-up routine reads pre-configured data piecemeal according to predefined space address, and it is set in the global variable of application program, as the parameter of application program launching.
With reference to figure 2 is the schematic flow sheet that configuration data was carried out, was provided with to secondary start-up routine among the present invention, and it may further comprise the steps:
S201: secondary startup module begins to carry out;
S202: the check host application module, if the built-in check results of check results and host application module is inconsistent, program exception withdraws from, if consistent, then changes step S203 over to;
S203: the data segment that reads configuration data;
S204: configuration data is set in the global variable of application program;
S205: flow process finishes.
The main task of application program is exactly to finish the initialization and the execution of each application program module.In initialized process, at first obtain the initialize data that secondary startup module is provided with, begin then to start each application program module as parameter according to initialize data.After all initialization was finished, equipment began normal operation.
Please refer to Fig. 3, is to be application program launching in the present embodiment, loads the schematic flow sheet of configuration data, and it may further comprise the steps:
S301: application program module begins to start;
S302: load configuration data as global variable;
S303: with these global variables is that parameter starts application program;
S304: finish initialization, equipment begins normal use.
Please refer to shown in Figure 4, it is the device embodiment synoptic diagram that controlling application program starts in the embedded system of the present invention, as shown in Figure 4, described device comprises and pre-sets configuration data module, verification module, pre-configured parsing module, judge module, secondary startup module, host application module.
Describedly pre-set the data segment that the configuration data module is used to produce the preset value data.
Described verification module is solidified in the ROM of embedded system, and pre-configured data are carried out verification.This verification comprises the integrality and the legitimacy of pre-configured data.
A described pre-configured parsing module is used for the verification module and finishes after the verification to pre-configured data, and pre-configured data are resolved.
Described judge module judges that described check results is whether consistent with the proof test value that presets in the secondary start-up routine.
Described secondary startup module is used to begin to carry out secondary start-up routine.The default fixed address of secondary start-up routine from RAM begins to be provided with initialize data.
After host application module is used for secondary startup and is finished, begin to carry out primary application program.Primary application program is provided with opening or closing of application program launching by reading the data at default fixed address place.
Described above only is preferred embodiments of the present invention; certainly can not limit interest field of the present invention with this; therefore; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (10)

1. the method that controlling application program starts in the embedded system, it is characterized in that: in the device start process, generation pre-sets configuration data, the described data that pre-set are carried out verification and produced check results, judge that described check results is whether consistent with the proof test value that presets in the secondary start-up routine, if consistent, then carry out secondary start-up routine.
2. the method for claim 1 is characterized in that: described verification is included among the ROM of embedded system solidifies a start-up routine, increases the verification to pre-configured data.
3. method as claimed in claim 2 is characterized in that: described verification comprises the integrality and the legitimacy of pre-configured data.
4. method as claimed in claim 2, it is characterized in that: driver of described curing comprises in the middle of the ROM of boot loader program Solidification in system, after system power-up, boot loader brings into operation, default check digit S0 in internal memory, leave among the boot loader, as the check results that pre-sets data, the first address P1 from the data segment of preset value data begins to carry out the CRC16 verification then.
5. the method for claim 1, it is characterized in that: described secondary start-up routine reads pre-configured data piecemeal according to predefined space address, and it is set in the global variable of application program, as the parameter of application program launching.
6. method as claimed in claim 5, it is characterized in that: described application program is finished the initialization of each application program module and is carried out, in initialized process, at first obtain the initialize data that secondary start-up routine is provided with, begin then to start each application program module as parameter according to initialize data, after all initialization was finished, equipment began normal operation.
7. the device that controlling application program starts in the embedded system is characterized in that: described device comprises and pre-sets configuration data module, verification module and secondary startup module;
The described configuration data module that pre-sets produces and pre-sets configuration data in the device start process;
Described verification module is carried out verification and is produced check results the described data that pre-set,
Described judge module judges that described check results is whether consistent with the proof test value that presets in the secondary start-up routine;
Described secondary startup module is then carried out secondary start-up routine when above-mentioned judgement is consistent.
8. device as claimed in claim 7 is characterized in that: described verification is included in solidifies a start-up routine among the ROM of embedded system, increase the verification to pre-configured data.
9. device as claimed in claim 7, it is characterized in that: driver of described curing comprises in the middle of the ROM of boot loader program Solidification in system, after system power-up, boot loader brings into operation, default check digit S0 in internal memory, leave among the boot loader, as the check results that pre-sets data, the first address P1 from the data segment of preset value data begins to carry out the CRC16 verification then.
10. as each described device in the claim 7 to 9, it is characterized in that: described secondary start-up routine is according to predefined space address, read pre-configured data piecemeal, and it is set in the global variable of application program, as the parameter of application program launching.
CN201010523048.2A 2010-10-27 2010-10-27 Method and device for controlling startup of application program in embedded system Active CN101976198B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010523048.2A CN101976198B (en) 2010-10-27 2010-10-27 Method and device for controlling startup of application program in embedded system
PCT/CN2011/077870 WO2012055275A1 (en) 2010-10-27 2011-08-01 Method and device for controlling application startup in embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010523048.2A CN101976198B (en) 2010-10-27 2010-10-27 Method and device for controlling startup of application program in embedded system

Publications (2)

Publication Number Publication Date
CN101976198A true CN101976198A (en) 2011-02-16
CN101976198B CN101976198B (en) 2014-11-05

Family

ID=43576086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010523048.2A Active CN101976198B (en) 2010-10-27 2010-10-27 Method and device for controlling startup of application program in embedded system

Country Status (2)

Country Link
CN (1) CN101976198B (en)
WO (1) WO2012055275A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314364A (en) * 2011-08-08 2012-01-11 北京登合科技有限公司 Method for automatically adapting to mobile terminal
WO2012055275A1 (en) * 2010-10-27 2012-05-03 中兴通讯股份有限公司 Method and device for controlling application startup in embedded system
CN102662749A (en) * 2012-03-23 2012-09-12 中兴通讯股份有限公司 Method and device for realizing switching between dual Boots
CN103455394A (en) * 2012-05-30 2013-12-18 佳能株式会社 Information processing apparatus, control method of information processing apparatus
CN105068800A (en) * 2015-07-31 2015-11-18 深圳市华星光电技术有限公司 Method and system for downloading configuration code and timer/counter control register
CN108351775A (en) * 2015-10-30 2018-07-31 德州仪器公司 Embedded multicomputer system starts time-optimized method and system
CN111381846A (en) * 2018-12-29 2020-07-07 联合汽车电子有限公司 Data verification method for electronic controller safe refreshing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060225058A1 (en) * 2005-04-04 2006-10-05 Ottamalika Iqlas M Method and system for accessing and launching a java based applet as a locally installed application
CN101042652A (en) * 2006-03-20 2007-09-26 中兴通讯股份有限公司 Method for protecting software startup parameter zone
CN101630267A (en) * 2009-08-24 2010-01-20 中兴通讯股份有限公司 Embedded system and control method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976198B (en) * 2010-10-27 2014-11-05 中兴通讯股份有限公司 Method and device for controlling startup of application program in embedded system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060225058A1 (en) * 2005-04-04 2006-10-05 Ottamalika Iqlas M Method and system for accessing and launching a java based applet as a locally installed application
CN101042652A (en) * 2006-03-20 2007-09-26 中兴通讯股份有限公司 Method for protecting software startup parameter zone
CN101630267A (en) * 2009-08-24 2010-01-20 中兴通讯股份有限公司 Embedded system and control method thereof

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012055275A1 (en) * 2010-10-27 2012-05-03 中兴通讯股份有限公司 Method and device for controlling application startup in embedded system
CN102314364B (en) * 2011-08-08 2014-08-20 北京登合科技有限公司 Method for automatically adapting to mobile terminal
CN102314364A (en) * 2011-08-08 2012-01-11 北京登合科技有限公司 Method for automatically adapting to mobile terminal
CN102662749A (en) * 2012-03-23 2012-09-12 中兴通讯股份有限公司 Method and device for realizing switching between dual Boots
CN103455394B (en) * 2012-05-30 2016-05-18 佳能株式会社 The control method of information processor and information processor
CN103455394A (en) * 2012-05-30 2013-12-18 佳能株式会社 Information processing apparatus, control method of information processing apparatus
US10205841B2 (en) 2012-05-30 2019-02-12 Canon Kabushiki Kaisha Information processing apparatus, control method of information processing apparatus, and storage medium
CN105068800A (en) * 2015-07-31 2015-11-18 深圳市华星光电技术有限公司 Method and system for downloading configuration code and timer/counter control register
WO2017020411A1 (en) * 2015-07-31 2017-02-09 深圳市华星光电技术有限公司 Method of downloading configuration code, and system and timer/counter control register utilizing same
CN105068800B (en) * 2015-07-31 2018-09-14 深圳市华星光电技术有限公司 A kind of method of download configuration code, system and timer/counter control register
CN108351775A (en) * 2015-10-30 2018-07-31 德州仪器公司 Embedded multicomputer system starts time-optimized method and system
CN108351775B (en) * 2015-10-30 2022-12-23 德州仪器公司 Method and system for optimizing starting time of embedded multiprocessor system
US11681534B2 (en) 2015-10-30 2023-06-20 Texas Instruments Incorporated Method and system for boot time optimization of embedded multiprocessor systems
CN111381846A (en) * 2018-12-29 2020-07-07 联合汽车电子有限公司 Data verification method for electronic controller safe refreshing
CN111381846B (en) * 2018-12-29 2024-02-23 联合汽车电子有限公司 Data verification method for safety refreshing of electronic controller

Also Published As

Publication number Publication date
WO2012055275A1 (en) 2012-05-03
CN101976198B (en) 2014-11-05

Similar Documents

Publication Publication Date Title
CN101976198B (en) Method and device for controlling startup of application program in embedded system
US9971895B2 (en) Method and apparatus for supporting dynamic change of authentication means secure booting
CN102722394B (en) Start upgrading method of embedded equipment
CN106775610B (en) Electronic equipment starting method and electronic equipment
CN106775869B (en) Loading method and terminal equipment
CN109086079B (en) Mounting management method and device for storage equipment
CN104750492B (en) The start-up control method and device of mobile device based on embedded OS
CN103593281A (en) Test system and test method
CN105224875A (en) A kind of secure startup system of terminal and method
CN109298877A (en) Game renewal method and system, terminal and computer readable storage medium
CN109273039B (en) Erasing verification equipment and method for flash memory
CN101630267B (en) Embedded system and control method thereof
WO2017198155A1 (en) Method for starting adb debugging, and terminal
EP3314416B1 (en) Firmware block dispatch based on fuses
CN103455750A (en) High-security verification method and high-security verification system for embedded devices
CN102880479A (en) Method and device for remotely modifying basic input output system (BIOS) attribute parameters
CN102799496A (en) Method and device for checking operating system kernel and file system in Nand-flash memory
CN106778281A (en) A kind of method for repairing security breaches, device and electronic equipment
CN112747946B (en) Equipment structure damage detection method and device
CN106293620A (en) Method for detecting parameters in Flash Rom by intel platform
CN114282205A (en) Firmware starting method and device and computer readable storage medium
CN111078234B (en) Method, system, device and storage medium for dynamically limiting installation and uninstallation of Android system of cloud mobile phone
KR101572854B1 (en) A PLC device with enhanced cyber security
CN112148597A (en) Method for eliminating iOS device authorization dialog box, test method and storage medium
CN105590065B (en) Method and device for protecting preset file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant