CN101127002B - Method and system for inquiring apparatus operation historical record - Google Patents
Method and system for inquiring apparatus operation historical record Download PDFInfo
- Publication number
- CN101127002B CN101127002B CN2006101114486A CN200610111448A CN101127002B CN 101127002 B CN101127002 B CN 101127002B CN 2006101114486 A CN2006101114486 A CN 2006101114486A CN 200610111448 A CN200610111448 A CN 200610111448A CN 101127002 B CN101127002 B CN 101127002B
- Authority
- CN
- China
- Prior art keywords
- equipment
- information
- reserved area
- detected
- function
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
- Devices For Checking Fares Or Tickets At Control Points (AREA)
Abstract
The invention provides a method and a system that can obtain the operation historical record of devices, which is characterized in that after the system is started, a reserve zone is arranged in a memory device belonging to a device to be detected, the reserve zone is not used by an operating system or other programs, or the reserve zone is arranged on the memory device belonging to a non-detection device; operational realizing functions of the device to be detected save the user concerned information in the reserve zone; after the operation of the device to be detected is finished, the saved operational implementation information is examined from the reserve zone, and the operation result of the device to be detected is obtained.
Description
Technical field
What the present invention relates to is a kind of method and system that obtains the various device operations historical record, especially is applicable to the method and system that obtains the various device operations historical record in real time embedded system.
Background technology
At present, the detection major part for various device in embedded system is carried out after system powers on immediately, if detect when powering on no problem, afterwards to being concerned about the return state of operation in the operation of equipment process hardly; Even the various operations for equipment have return states such as success or failure, but do not have concrete manifestation failure reason and with performance-relevant data, therefore the reparation after can't failing, and all there is very big difficulty the location of status poll afterwards or problem, the stability of bottom can not get embodying.Because the operation of embedded system is not subjected to user's control,, just need to preserve necessary information in order to inquiry if the user wants further to understand the operational circumstances of various device in the embedded system.So for embedded system, the historical record that obtains operation of equipment is vital.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method and system that obtains the operation of equipment historical record, and by inquiring about the historical operation situation of underlying device at any time, the problem of analytical equipment is understood the performance of equipment etc. effectively.
The present invention proposes to obtain in a kind of embedded system the method for operation of equipment historical record, and concrete steps are as follows:
Further, said method also can have following characteristics: in the described step 120, the information that the user preserves comprises the execution time of rreturn value, action type, bust error code and the function of function, and the rreturn value of the handling function of described equipment is used for the reason that labeling function calls whether success and failure.
Further, said method also can have following characteristics: in the described step 120, the information that described user need pay close attention to is determined by system designer or programming person, under preserving in the process of executive routine by cpu, in the information of preserving different cpu operations is distinguished.
Further, said method also can have following characteristics: in the described step 130, the user checks the operation execution information of preservation from the reserved area by query interface.
Obtain the system of operation of equipment historical record in a kind of embedded system, comprise a CPU, equipment to be detected and non-checkout equipment in the described system, system also needs to be provided with a reserved area,
Described equipment to be detected is a memory device, is connected on the CPU, and the information that equipment to be detected need be paid close attention to the user by its operation realization function is saved in the reserved area;
Described non-checkout equipment is a memory device, is connected on the same CPU with described equipment to be detected;
Described reserved area is used to preserve the result of operation of equipment, and the information that provides described user to pay close attention to is used as inquiry in the future, described reserved area is arranged on the memory device that belongs to equipment to be detected, described reserved area is not operated system or other program is used, and perhaps described reserved area is arranged on the memory device that belongs to non-checkout equipment.
Further, said system also can have following characteristics: the information of described reserved area comprises the execution time of the rreturn value of function, action type, bust error code and function; The rreturn value of described function is used for the reason that labeling function calls whether success and failure.
Further, said system also can have following characteristics: the information that described user need pay close attention to is determined by system designer or programming person, under preserving in the process of executive routine by cpu, in the information of preserving different cpu operations is distinguished.
Compared with prior art, the method of the invention is simple, practical, highly versatile, can remember the various operation historical records of various device by making system in this way, and can inquire about prestored message at any time, have very big effect for the location of plant issue and the understanding of operating performance etc. under the unusual situation of operation of equipment, be accompanied by the widespread use of various embedded systems in different field, it also will have abundant and huge application potential.
Description of drawings
Fig. 1 is the hardware structure diagram of embodiment.
Fig. 2 is the operational flowchart of embodiment.
Embodiment
The various operations of equipment all have corresponding function to realize that different functions also has various rreturn value, are used for the concrete reason etc. that labeling function calls whether success and failure.The present invention is the result with operation of equipment, and the concrete reason and the information such as more performance-relevant data of success or failure, failure are kept at a fixing position, operation such as can inquire about after preserving, and is used for positioning problems and operating performance understanding etc.Below in conjunction with accompanying drawing the inventive method is done detailed explanation.
Fig. 1 is the hardware structure diagram of the inventive method specific embodiment.Comprise a CPU, equipment to be detected and non-checkout equipment in the system of the inventive method, described equipment to be detected and non-checkout equipment can be internal memory or other memory device, are connected on the same CPU.System also need be provided for the zone of store operation information on memory device, claim that this zone is the reserved area.In the present embodiment, this reserved area is arranged on the memory device that belongs to non-checkout equipment.But in another embodiment, the reserved area also can be arranged on the memory device that belongs to equipment to be detected, but will guarantee that the reserved area can not be operated system or other program is used this moment.
In another embodiment, equipment to be detected can connect different CPU with non-detection of stored equipment.
The information that equipment to be detected need be paid close attention to the user by its operation realization function (as read function or write function) is saved in the reserved area; The reserved area is used to preserve the result of operation of equipment, information such as the concrete reason of success or failure, failure and more performance-relevant data, and provide described preservation information as operations such as inquiries in the future, be convenient to positioning problems and operating performance understanding etc.
Fig. 2 is the process flow diagram of the specific implementation process of the inventive method.
Determine the storage space of selected reserved area according to the storage space of non-detection of stored equipment, can preserve the information of multi-pass operations thus.
The information that the user preserves can comprise execution time etc. of rreturn value, action type, bust error code and the function of function; Wherein, the rreturn value of function is used for the concrete reason that labeling function calls whether success and failure.
The described information that needs to preserve is determined by system designer (or programming person), under preserving in the process of executive routine by cpu.But need distinguish different cpu in the information of preserving, be the information of which cpu to operation of equipment so that the user can know information inquiring.
A kind of system that obtains the operation of equipment historical record comprises a CPU, equipment to be detected and non-checkout equipment in the described system, system also need be provided for the zone of store operation information on memory device, claims that this zone is the reserved area,
Described equipment to be detected can be internal memory or other memory device, is connected on the CPU, and the information that equipment to be detected need be paid close attention to the user by its operation realization function (as read function or write function) is saved in the reserved area;
Described non-checkout equipment can be internal memory or other memory device, be connected on the same CPU with described equipment to be detected, the reserved area can be set thereon, determine the storage space of selected reserved area, can preserve the information of multi-pass operations thus according to the storage space of non-detection of stored equipment;
Described reserved area is arranged on the memory device that belongs to non-checkout equipment, be used to preserve the result of operation of equipment, information such as the concrete reason of success or failure, failure and more performance-relevant data, and provide described preservation information as operations such as inquiries in the future, be convenient to positioning problems and operating performance understanding etc.
The information of described reserved area can comprise execution time etc. of rreturn value, action type, bust error code and the function of function; Wherein, the rreturn value of function is used for the concrete reason that labeling function calls whether success and failure.
The described information that needs to preserve is determined by system designer (or programming person), under preserving in the process of executive routine by cpu.But need distinguish different cpu in the information of preserving, be the information of which cpu to operation of equipment so that the user can know information inquiring.
In another embodiment, the reserved area also can be arranged on the memory device that belongs to equipment to be detected, but will guarantee that the reserved area can not be operated system or other program is used this moment.
In another embodiment, equipment to be detected and non-detection of stored equipment can be connected in different CPU.
Claims (7)
1. obtain the method for operation of equipment historical record in the embedded system, said method comprising the steps of:
Step 110, after the system start-up, a reserved area is set, described reserved area is arranged on the memory device that belongs to equipment to be detected, described reserved area is not operated system or other program is used, and perhaps described reserved area is arranged on the memory device that belongs to non-checkout equipment;
Step 120, the operation of equipment to be detected realize that the information that function need be paid close attention to the user is saved in the reserved area, and this information comprises the concrete reason and the performance-relevant data of success or failure, failure, is used for positioning problems and operating performance and understands;
Step 130 after operation of equipment to be detected is finished, checks that from the reserved area information is carried out in the operation of preservation, obtains the operating result for the treatment of checkout equipment.
2. method according to claim 1 is characterized in that:
In the described step 120, the information that the user preserves comprises the execution time of rreturn value, action type, bust error code and the function of function, and the rreturn value of the handling function of described equipment is used for the reason that labeling function calls whether success and failure.
3. method according to claim 1 is characterized in that:
In the described step 120, the information that described user need pay close attention to is determined by system designer or programming person, under preserving in the process of executive routine by CPU, in the information of preserving different cpu operations is distinguished.
4. method according to claim 1 is characterized in that:
In the described step 130, the user checks the operation execution information of preservation from the reserved area by query interface.
5. obtain the system of operation of equipment historical record in the embedded system, comprise a CPU, equipment to be detected and non-checkout equipment in the described system, system also needs to be provided with a reserved area,
Described equipment to be detected is a memory device, be connected on the CPU, equipment to be detected realizes that by its operation the information that function need be paid close attention to the user is saved in the reserved area, and this information comprises the concrete reason and the performance-relevant data of success or failure, failure;
Described non-checkout equipment is a memory device, is connected on the same CPU with described equipment to be detected;
Described reserved area is used to preserve the result of operation of equipment, and the information that provides described user to pay close attention to is used as inquiry in the future, being used for positioning problems and operating performance understands, described reserved area is arranged on the memory device that belongs to equipment to be detected, described reserved area is not operated system or other program is used, and perhaps described reserved area is arranged on the memory device that belongs to non-checkout equipment.
6. as system as described in the claim 5, it is characterized in that:
The information of described reserved area comprises the execution time of rreturn value, action type, bust error code and the function of function; The rreturn value of described function is used for the reason that labeling function calls whether success and failure.
7. as system as described in the claim 5, it is characterized in that:
The information that described user need pay close attention to is determined by system designer or programming person, under preserving in the process of executive routine by CPU, in the information of preserving different CPU operations is distinguished.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006101114486A CN101127002B (en) | 2006-08-18 | 2006-08-18 | Method and system for inquiring apparatus operation historical record |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006101114486A CN101127002B (en) | 2006-08-18 | 2006-08-18 | Method and system for inquiring apparatus operation historical record |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101127002A CN101127002A (en) | 2008-02-20 |
CN101127002B true CN101127002B (en) | 2011-05-11 |
Family
ID=39095048
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2006101114486A Expired - Fee Related CN101127002B (en) | 2006-08-18 | 2006-08-18 | Method and system for inquiring apparatus operation historical record |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101127002B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1254128A (en) * | 1998-11-13 | 2000-05-24 | 英业达集团(西安)电子技术有限公司 | Error automatic detection device and method of personal digilal assistant device |
CN1523829A (en) * | 2003-02-17 | 2004-08-25 | Lg������ʽ���� | Home network system and method of providing operation history for same |
CN1744514A (en) * | 2004-08-30 | 2006-03-08 | 华为技术有限公司 | Method and device for obtaining information of operation and failure state for network equipment |
CN1779772A (en) * | 2004-11-25 | 2006-05-31 | Lg.菲利浦Lcd株式会社 | Apparatus and method for luminance control of liquid crystal display device |
-
2006
- 2006-08-18 CN CN2006101114486A patent/CN101127002B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1254128A (en) * | 1998-11-13 | 2000-05-24 | 英业达集团(西安)电子技术有限公司 | Error automatic detection device and method of personal digilal assistant device |
CN1523829A (en) * | 2003-02-17 | 2004-08-25 | Lg������ʽ���� | Home network system and method of providing operation history for same |
CN1744514A (en) * | 2004-08-30 | 2006-03-08 | 华为技术有限公司 | Method and device for obtaining information of operation and failure state for network equipment |
CN1779772A (en) * | 2004-11-25 | 2006-05-31 | Lg.菲利浦Lcd株式会社 | Apparatus and method for luminance control of liquid crystal display device |
Also Published As
Publication number | Publication date |
---|---|
CN101127002A (en) | 2008-02-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100485685C (en) | Apparatus, system, and method for the autonomic virtualization of a data storage server | |
US8707017B2 (en) | Method and system for managing core configuration information | |
US7624116B2 (en) | System and method for managing objects according to the common information model | |
CN108958729B (en) | Data processing method, device and storage medium | |
US20140068325A1 (en) | Test case result processing | |
CN113704117B (en) | Algorithm testing system, method and device | |
CN103268183A (en) | Processing method and device for information report | |
CN112104663B (en) | Method and equipment for managing login user and user equipment | |
CN103034577B (en) | A kind ofly locate shutdown slow method and device | |
CN101645802B (en) | Method and device for controlling contents | |
CN115455058A (en) | Cache data processing method and device, computer equipment and storage medium | |
CN103778024A (en) | Server system and message processing method thereof | |
US8631166B2 (en) | Storage devices with bi-directional communication techniques and method of forming bi-directional communication layer between them | |
CN101127002B (en) | Method and system for inquiring apparatus operation historical record | |
CN110992039B (en) | Transaction processing method, device and equipment | |
US7289027B2 (en) | Network management using suppressible RFID tags | |
CN116401171A (en) | Test case library generation method, system, equipment and medium | |
CN102467528A (en) | Data de-duplication operation system | |
CN114090433A (en) | Buried point data reporting control method and device, storage medium and electronic equipment | |
JP2002312210A5 (en) | ||
CN111026584A (en) | Device, method and equipment for solving key value database file damage | |
CN105488076A (en) | Data accumulation method and device | |
US20240046050A1 (en) | Wide area rfid target acquisition and location system for programming rfid devices | |
CN109522163A (en) | The method for obtaining operation note | |
CN113342605B (en) | PostgreSQL database monitoring and traceability analysis method and 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110511 Termination date: 20150818 |
|
EXPY | Termination of patent right or utility model |