CN101149699A - Method for reliably acquiring abnormal and repositioning information - Google Patents

Method for reliably acquiring abnormal and repositioning information Download PDF

Info

Publication number
CN101149699A
CN101149699A CNA2006100627526A CN200610062752A CN101149699A CN 101149699 A CN101149699 A CN 101149699A CN A2006100627526 A CNA2006100627526 A CN A2006100627526A CN 200610062752 A CN200610062752 A CN 200610062752A CN 101149699 A CN101149699 A CN 101149699A
Authority
CN
China
Prior art keywords
internal memory
embedded system
piece internal
information
unusual
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
CNA2006100627526A
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.)
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 CNA2006100627526A priority Critical patent/CN101149699A/en
Publication of CN101149699A publication Critical patent/CN101149699A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The invention relates to a method of access to abnormal and reset information, which is used in embedded systems, and which includes pre-determining a memory that can't operated by embedded system and users in memory of embedded system; not loading to CPU internal cache when booting embedded system; depositing abnormal information into the memory when embedded system is detected abnormal; depositing reset information into the memory when embedded system resets; accessing to abnormal and reset information after embedded system resets and reboots. The invention ensures to reliably access to abnormal and reset information, and its cost is low.

Description

The method of a kind of reliably acquiring abnormal and repositioning information
Technical field
What the present invention relates to is at real time embedded system, relates in particular to the method for reliably acquiring abnormal and repositioning information in the embedded system.
Background technology
At present, can occur various unusually and reset in the embedded system unavoidably,, in embedded system, need to obtain the method for unusual and repositioning information in order to obtain these unusual and reset specifying informations.In the prior art or be when taking place unusual or resetting, information to be reported to the backstage at once; Be temporarily to be stored on the ROM (read-only memory) such as flash, in needs, obtain the foreground again from the backstage and be stored in data the flash.All there is certain defective in these methods: previous method because take place unusual and when resetting system be in a kind of non-steady state, unusual and reporting of repositioning information may be failed, and causes losing of information; The shortcoming of the method in back is cost height (needing ROM (read-only memory) devices such as flash), and the less stable of ROM (read-only memory) such as flash itself, is reading and is writing unusually and failing easily during repositioning information and causing some other system problem.Because the write operation life-span of ROM (read-only memory) such as flash is limited, long-time repeatable operation may cause device failure in addition.
Summary of the invention
It is a kind of by obtaining the method for unusual and repositioning information that the technical problem to be solved in the present invention is to provide, and guarantee reliably obtaining of unusual and repositioning information, and cost is low.
For realizing the technical problem to be solved in the present invention, the present invention is a kind of to be applied to embedded system by obtaining the method for unusual and repositioning information, and it comprises.
1) pre-determine an internal memory in embedded system memory, this piece internal memory is not embedded into the formula system and uses;
Dispose this piece memory attribute when 2) embedded system starts for can not cache (CPU internal cache);
3) when the detection embedded system is unusual, abnormal information is deposited in this piece internal memory; When embedded system resets, repositioning information is deposited in this piece internal memory;
4) embedded system reset restart after, from this piece internal memory, obtain unusual and repositioning information.
Above-mentioned method in the affiliated step 3, deposits described abnormal information in this piece internal memory in by abnormality processing function; By in the system reset function described repositioning information being deposited in this piece internal memory, described repositioning information comprises the concrete reason and the caller of system reset.
Above-mentioned method, step 3) also comprises: to being stored in this piece internal memory unusual and repositioning information carries out CRC calculating, and CRC result of calculation is deposited in this piece internal memory.
Above-mentioned method in the step 4), after embedded system resets and restarts, is obtained CRC result of calculation from this piece internal memory, carry out CRC check, if verification is by obtaining unusual and repositioning information from this piece internal memory.
The present invention has adopted the unusual and repositioning information of a pre-configured memory embedded system, compared with prior art, saved cost, guaranteed the reliability of unusual and repositioning information, be used for locating the reason that takes place unusually with the fault that resets thereby obtain effective anomaly and repositioning information.
Description of drawings
Fig. 1 is the embedded system hardware structural representation.
Fig. 2 is the inventive method schematic flow sheet.
Embodiment
Below in conjunction with accompanying drawing the present invention is done detailed explanation.
The present invention utilizes a characteristic of internal memory in the embedded system: the data that are retained in the internal memory before and after resetting can not lost, unusual and repositioning information before resetting, system are retained in earlier in " reserved memory " of system, " reserved memory " refers to pre-determine an internal memory (reserve area) in embedded system memory, this piece internal memory is not embedded into the formula system and uses, and be can not cache region of memory, can not be meant that the content in this piece internal memory can not be loaded onto in the CPU internal cache by cache.Embedded system restart stable after, will reset again and abnormal information is delivered to the backstage communication apparatus by transmission from the foreground communication apparatus, thereby specifying information unusual or when resetting to take place.Reserved memory can be by being that internal memory realizes that through the software special processing this piece internal memory has following characteristic: must be can not cache region of memory, must be the internal memory that embedded system can not be used.
Fig. 1 is a kind of embedded system hardware structural representation, and a common embedded system that Here it is comprises CPU, AM/BAM communication facilities and internal memory.
Fig. 2 is the inventive method schematic flow sheet.At first in Installed System Memory, keep one and can not be embedded into the internal memory (reserve area) that the formula system uses; Be set to can not cahce for the attribute of this piece internal memory then; The abnormality processing function catching exception is set; In abnormality processing function, obtain concrete abnormal information and be kept in this good piece internal memory of former configuration; In the reset processing function, information such as the concrete reason of system reset and caller are kept in this good piece internal memory of former configuration; Unusual and repositioning information in this piece internal memory is carried out CRC (CRC) calculating, and the CRC result calculated is deposited end at this piece internal memory of this piece.After system restart, if reserved memory is carried out CRC check by illustrating that this is that last time is unusual and preserve the information of getting off when resetting, the information that is kept in the reserved memory is reported to the backstage communication apparatus, or the normal back of system operation initiatively sends a command to the foreground communication apparatus by the backstage communication apparatus and goes to obtain information in the reserved memory.If CRC check is not by just not doing any operation.
This method is simple, practical, and highly versatile can obtain in the embedded system by this method reliably about information unusual and that reset, for positioning system takes place unusually to provide powerful help with more great fault such as reset.

Claims (4)

1. one kind by obtaining the method for unusual and repositioning information, is applied to embedded system, and it comprises:
1) pre-determine an internal memory in embedded system memory, this piece internal memory is not embedded into the formula system and uses;
The content that disposes this piece internal memory when 2) embedded system starts can not be loaded onto in the CPU internal cache;
3) when the detection embedded system is unusual, abnormal information is deposited in this piece internal memory; When embedded system resets, repositioning information is deposited in this piece internal memory;
4) embedded system reset restart after, from this piece internal memory, obtain unusual and repositioning information.
2. method according to claim 1 is characterized in that, in the affiliated step 3, by abnormality processing function described abnormal information is deposited in this piece internal memory; By in the system reset function described repositioning information being deposited in this piece internal memory, described repositioning information comprises the concrete reason and the caller of system reset.
3. method according to claim 1 and 2 is characterized in that step 3) also comprises: to being stored in this piece internal memory unusual and repositioning information carries out CRC calculating, and CRC result of calculation is deposited in this piece internal memory.
4. method according to claim 3 is characterized in that, in the step 4), after embedded system resets and restarts, obtains CRC result of calculation from this piece internal memory, carries out CRC check, if verification is by obtaining unusual and repositioning information from this piece internal memory.
CNA2006100627526A 2006-09-21 2006-09-21 Method for reliably acquiring abnormal and repositioning information Pending CN101149699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006100627526A CN101149699A (en) 2006-09-21 2006-09-21 Method for reliably acquiring abnormal and repositioning information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006100627526A CN101149699A (en) 2006-09-21 2006-09-21 Method for reliably acquiring abnormal and repositioning information

Publications (1)

Publication Number Publication Date
CN101149699A true CN101149699A (en) 2008-03-26

Family

ID=39250242

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006100627526A Pending CN101149699A (en) 2006-09-21 2006-09-21 Method for reliably acquiring abnormal and repositioning information

Country Status (1)

Country Link
CN (1) CN101149699A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853196A (en) * 2010-04-21 2010-10-06 中兴通讯股份有限公司 Method and device recording exceptional data
CN102214130A (en) * 2010-04-08 2011-10-12 纬创资通股份有限公司 Test device and test method
CN102521111A (en) * 2010-11-03 2012-06-27 微软公司 Reporting of Intra-Device Failure Data
CN104063477A (en) * 2014-06-30 2014-09-24 广东威创视讯科技股份有限公司 Processing method and processing device for startup abnormalities of embedded system
CN104699556A (en) * 2015-03-23 2015-06-10 广东威创视讯科技股份有限公司 CRC (Cyclic Redundancy Check) checking method and system of operation system of computer
CN106354661A (en) * 2016-09-13 2017-01-25 郑州云海信息技术有限公司 Internal storage distribution method and device for storage software
CN107153453A (en) * 2016-03-04 2017-09-12 中兴通讯股份有限公司 A kind of linux system reset processing method and device
CN107368403A (en) * 2017-07-10 2017-11-21 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal and its log information output control method and storage medium
CN107801064A (en) * 2016-09-05 2018-03-13 中国移动通信集团公司 A kind of method and device of the selfreparing of Multi-screen interaction system
CN108536545A (en) * 2018-03-05 2018-09-14 广东美的厨房电器制造有限公司 The information processing method and device of terminal device
CN108762961A (en) * 2018-05-14 2018-11-06 深圳Tcl新技术有限公司 Failure retrogressive method, display terminal and the readable storage medium storing program for executing of display terminal

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214130A (en) * 2010-04-08 2011-10-12 纬创资通股份有限公司 Test device and test method
CN101853196A (en) * 2010-04-21 2010-10-06 中兴通讯股份有限公司 Method and device recording exceptional data
CN102521111A (en) * 2010-11-03 2012-06-27 微软公司 Reporting of Intra-Device Failure Data
CN102521111B (en) * 2010-11-03 2015-11-11 微软技术许可有限责任公司 The report of device internal fault data
CN104063477A (en) * 2014-06-30 2014-09-24 广东威创视讯科技股份有限公司 Processing method and processing device for startup abnormalities of embedded system
CN104063477B (en) * 2014-06-30 2017-08-29 广东威创视讯科技股份有限公司 Embedded system starts abnormal processing method and processing device
CN104699556A (en) * 2015-03-23 2015-06-10 广东威创视讯科技股份有限公司 CRC (Cyclic Redundancy Check) checking method and system of operation system of computer
CN104699556B (en) * 2015-03-23 2017-12-08 广东威创视讯科技股份有限公司 The operating system CRC check method and system of computer
CN107153453A (en) * 2016-03-04 2017-09-12 中兴通讯股份有限公司 A kind of linux system reset processing method and device
CN107801064A (en) * 2016-09-05 2018-03-13 中国移动通信集团公司 A kind of method and device of the selfreparing of Multi-screen interaction system
CN107801064B (en) * 2016-09-05 2020-08-18 中国移动通信集团公司 Self-repairing method and device for multi-screen interactive system
CN106354661A (en) * 2016-09-13 2017-01-25 郑州云海信息技术有限公司 Internal storage distribution method and device for storage software
CN107368403A (en) * 2017-07-10 2017-11-21 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal and its log information output control method and storage medium
CN108536545A (en) * 2018-03-05 2018-09-14 广东美的厨房电器制造有限公司 The information processing method and device of terminal device
CN108536545B (en) * 2018-03-05 2021-07-20 广东美的厨房电器制造有限公司 Information processing method and device for terminal equipment
CN108762961A (en) * 2018-05-14 2018-11-06 深圳Tcl新技术有限公司 Failure retrogressive method, display terminal and the readable storage medium storing program for executing of display terminal

Similar Documents

Publication Publication Date Title
CN101149699A (en) Method for reliably acquiring abnormal and repositioning information
CN107038085B (en) Method, device and system for repairing client application
CN107403089B (en) Resource tampering identification method and device based on application program
US20130124917A1 (en) Recovering from stack corruption faults in embedded software systems
CN108170495B (en) BIOS upgrading method, system, equipment and computer readable storage medium
CN110647333A (en) Firmware upgrading method and equipment configured to upgrade firmware therein
CN102662785A (en) Method and device for acquiring kernel error messages of Android system
US11714740B2 (en) Storage-based log file management
WO2019140739A1 (en) Method for determining return visits to client, and electronic apparatus and computer-readable storage medium
CN102799499A (en) Vehicular Android equipment system recovery method and vehicular Android equipment
US20120131318A1 (en) Server and method for performing data recovery of the server
CN111581021B (en) Application program starting abnormality repairing method, device, equipment and storage medium
CN108509322B (en) Method for avoiding excessive return visit, electronic device and computer readable storage medium
CN104220981A (en) Firmware package to modify active firmware
CN111158945A (en) Kernel fault processing method and device, network security equipment and readable storage medium
JP2017078998A (en) Information processor, log management method, and computer program
CN109783261B (en) Crash processing method and device for terminal application, electronic equipment and storage medium
CN111522598A (en) Method and device for recording restart information of embedded equipment
CN103309769A (en) Operation system starting protection method and device
CN111930707B (en) Method and system for correcting drive letter of windows cloud migration
CN104008338B (en) Android malicious program processing method, device and equipment
CN110427280B (en) Cache management method, system, computer equipment and storage medium
CN110825396B (en) Exception handling method and related equipment
CN110442467B (en) Data sharing method, terminal and computer readable storage medium
CN114647483A (en) Virtual machine control method, cloud management device and storage medium

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

Open date: 20080326