Black box apparatus of embedded system and realization method for black box apparatus

A technology of embedded system and implementation method, which is applied in the direction of instruments, electrical digital data processing, hardware monitoring, etc., can solve the problems of not being able to record the abnormal state of the embedded system, unfavorable analysis and investigation of the cause of the abnormality of the embedded system, etc., and achieve cost Low cost, small cost, fast positioning effect

Active Publication Date: 2018-09-18
FENGHUO COMM SCI & TECH CO LTD
View PDF6 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The technical problem to be solved by the present invention is that the embedded system cannot record the abnormal state of the embedded system, which is not conducive to the analysis and investigation of the cause of the abnormal occurrence of the embedded system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Black box apparatus of embedded system and realization method for black box apparatus
  • Black box apparatus of embedded system and realization method for black box apparatus
  • Black box apparatus of embedded system and realization method for black box apparatus

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment 1

[0034] see you again figure 1 In the present invention, the target board 10 of the embedded system is provided with CPU (microprocessor) 11, CPLD (Complex Programmable Logic Device, complex programmable logic device) 12 and power supply 13 three parts.

[0035] Wherein, the CPLD on the target board has realized the function of the abnormal interrupt generating module, and when the embedded system is powered off, reset or each sub-software is abnormally interrupted, an interrupt is generated to the black box 20, and then the black box 20 utilizes GPIO (General Purpose Input Output, general purpose input / output) interface and IRQ interrupt, obtain and save the abnormal information such as power-off, reset or abnormal interruption of each sub-software of the embedded system, and save such abnormal information in the non-volatile memory when the embedded system is powered-off or reset and restarted in memory. Since the abnormal information is stored in the non-volatile memory of...

specific Embodiment 2

[0049] Since the black box 20 itself does not have the ability to monitor the state of a single disk software module, the present invention develops a linux software module on the embedded system to realize this function.

[0050] The linux software module includes a sub-software running status monitoring module and a data reading module, such as figure 2 shown. The sub-software running status monitoring module detects the working status of the software on the single disk, and the data reading module reads the recorded abnormal information and sub-software module abnormal interruption information from PSoC, and then displays them directly through the interface or on the external device for fault diagnosis. Investigator query.

[0051] The following method is adopted for the monitoring of the running state of the sub-software. When each sub-software is running, a heartbeat packet is regularly generated and sent to the sub-software running state monitoring module. When the sub...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a black box apparatus of an embedded system and a realization method for the black box apparatus. The black box apparatus comprises a sub-software running state monitoring module, an exception interrupt generation module and a black box; the sub-software running state monitoring module monitors running states of sub-software; the exception interrupt generation module is used for generating interrupts during exceptional interruption or reset of the sub-software; a black box comprises a PSoC, an SRAM, a nonvolatile memory and a power supply module; the SRAM stores the running states and reset information of the sub-software in real time; the PSoC interacts with a CPLD and a CPU of the embedded system; and when the embedded system is reset or crashes, all the stored information is read from the SRAM and stored in the nonvolatile memory, and related information is output from the nonvolatile memory according to an instruction. The black box apparatus can achieve recording and monitoring functions of the black box, and is convenient for checking and analyzing exception generation reasons of the embedded system.

Description

technical field [0001] The invention relates to an embedded system, in particular to a black box device of the embedded system and a realization method thereof. Background technique [0002] At present, embedded systems are widely used in technical fields such as industrial control, intelligent home appliances, and intelligent management equipment. [0003] Existing embedded systems, whose functions are mainly focused on intelligent control, generally do not have black box functions. Therefore, after an abnormality occurs in the embedded system, it does not have the ability to store abnormalities. Therefore, after the system restarts due to abnormalities, it cannot accurately Understand the specific reason for the exception. like: [0004] After the system is restarted due to power failure or abnormal voltage, it is impossible to know exactly which power supply is abnormal; [0005] After the CPU is reset and restarted, it is impossible to know exactly what type of reset ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/30
CPCG06F11/3013G06F11/3058
Inventor 刘丽李传宝胡川郭建秀
Owner FENGHUO COMM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products