CN103336738B - A kind of embedded OS abnormality capturing and the method for distribution - Google Patents

A kind of embedded OS abnormality capturing and the method for distribution Download PDF

Info

Publication number
CN103336738B
CN103336738B CN201310153175.1A CN201310153175A CN103336738B CN 103336738 B CN103336738 B CN 103336738B CN 201310153175 A CN201310153175 A CN 201310153175A CN 103336738 B CN103336738 B CN 103336738B
Authority
CN
China
Prior art keywords
application program
distribution
operation exception
information
abnormal
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.)
Active
Application number
CN201310153175.1A
Other languages
Chinese (zh)
Other versions
CN103336738A (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.)
Huizhou Desay SV Automotive Co Ltd
Original Assignee
Huizhou Desay SV Automotive Co Ltd
Filing date
Publication date
Application filed by Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN201310153175.1A priority Critical patent/CN103336738B/en
Publication of CN103336738A publication Critical patent/CN103336738A/en
Application granted granted Critical
Publication of CN103336738B publication Critical patent/CN103336738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of embedded OS abnormality capturing and the method for distribution, comprise the following steps: (1) sets up data acquisition filtering module, is acquired serial data;(2) information collected is filtered by data acquisition filtering module, it is thus achieved that application program operation exception information;(3) application program operation exception information is sent to corresponding application program.The present invention can be by intercepting the data of serial ports; filter the abnormal information that embedded OS is dished out; and be distributed to multiple application program and process, beneficially application program is analyzed abnormal information and is made and be monitored, protect, the corresponding process such as restart, and makes system more stable.

Description

A kind of embedded OS abnormality capturing and the method for distribution
Technical field
The present invention relates to a kind of embedded OS abnormality capturing and the method for distribution.
Background technology
Embedded OS is during running, and intrasystem application program inevitably occurs some abnormal, and some being extremely often as application program do not know what bright defect caused.When application program occurs abnormal, embedded OS generally exports the abnormal information collected by the way of serial ports, and for occurring abnormal application program itself cannot get the abnormal information that system is dished out, cause application program that abnormal information cannot be utilized to take corresponding mistake proofing mechanism with the stability improved.
Summary of the invention
The defect of abnormal information cannot be obtained to solve existing application, the invention provides a kind of embedded OS abnormality capturing and the solution of distribution.
A kind of embedded OS abnormality capturing and the method for distribution, comprise the following steps: (1) sets up data acquisition filtering module, is acquired serial data;(2) information collected is filtered by data acquisition filtering module, it is thus achieved that application program operation exception information;(3) application program operation exception information is sent to corresponding application program.
Data acquisition filtering module drives module that application program operation exception information is sent to corresponding application program by abnormal distribution.
Described data acquisition filtering module drives module to communicate by Inter-Process Communication mode with abnormal distribution.
The step that realizes that application program operation exception information is sent to corresponding application program is:
(31) application program obtaining operation exception is needed to drive module to register to abnormal distribution;(32) abnormal distribution drives module that all application programs being registered with are carried out record one by one;(33) abnormal distribution drives module to be distributed to registered application program after receiving application program operation exception information.
In sum; the present invention can filter the abnormal information dished out of embedded OS by intercepting the data of serial ports, and be distributed to multiple application program and process; be conducive to application program to analyze abnormal information to make and be monitored, protect, the corresponding process such as restart, make system more stable.
Accompanying drawing explanation
In order to allow those skilled in the art can be best understood from technical scheme, below the invention will be further elaborated.
Detailed description of the invention
Present invention is disclosed a kind of embedded OS abnormality capturing and the method for distribution.Generally, when the program run in embedded system (calling system in the following text) occurs abnormal, system is arrested extremely and according to corresponding protocol generation application program operation exception information (calling abnormal information in the following text), and application program is to directly obtain this abnormal information, serial data, by setting up data acquisition filtering module, is acquired by the present invention;Data acquisition filtering module can be a function in serial ports driver, it is possible to intercepts the data of serial ports, filters the information collected, it is thus achieved that abnormal information.
In order to the abnormal information collected data are sent to application program, when application program launching, if it needs to obtain operation exception, then module is driven to register to abnormal distribution;Abnormal distribution drives module that all application programs being registered with are carried out record one by one;After acquisition filter module collects abnormal information, module communication is driven with abnormal distribution by Inter-Process Communication mode, application program operation exception information is sent to abnormal driving module of distributing, and abnormal distribution drives module to be distributed to registered application program after receiving application program operation exception information.Content according to abnormal information can be processed after receiving abnormal information by application program accordingly.
The present embodiment is the more excellent embodiment of the present invention, and the part not being described in detail all uses known mature technology.It should be noted that; in the case of without departing substantially from present invention spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and deformation according to the present invention, but these change and deform the protection domain that all should belong to appended claims of the invention.

Claims (1)

1. an embedded OS abnormality capturing and the method for distribution, it is characterised in that comprise the following steps:
(1) set up data acquisition filtering module, serial data is acquired;
(2) information collected is filtered by data acquisition filtering module, it is thus achieved that application program operation exception information;
(3) data acquisition filtering module drives module that application program operation exception information is sent to corresponding application program by abnormal distribution;
Wherein, described data acquisition filtering module drives module to communicate by Inter-Process Communication mode with abnormal distribution;The step that realizes that application program operation exception information is sent to corresponding application program is:
(31) application program obtaining operation exception is needed to drive module to register to abnormal distribution;
(32) abnormal distribution drives module that all application programs being registered with are carried out record one by one;
(33) abnormal distribution drives module to be distributed to registered application program after receiving application program operation exception information.
CN201310153175.1A 2013-04-28 A kind of embedded OS abnormality capturing and the method for distribution Active CN103336738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310153175.1A CN103336738B (en) 2013-04-28 A kind of embedded OS abnormality capturing and the method for distribution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310153175.1A CN103336738B (en) 2013-04-28 A kind of embedded OS abnormality capturing and the method for distribution

Publications (2)

Publication Number Publication Date
CN103336738A CN103336738A (en) 2013-10-02
CN103336738B true CN103336738B (en) 2016-11-30

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136044A (en) * 2006-08-29 2008-03-05 联想(北京)有限公司 Software watchdog system and method
CN102141947A (en) * 2011-03-30 2011-08-03 东方通信股份有限公司 Method and system for processing abnormal task in computer application system adopting embedded operating system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136044A (en) * 2006-08-29 2008-03-05 联想(北京)有限公司 Software watchdog system and method
CN102141947A (en) * 2011-03-30 2011-08-03 东方通信股份有限公司 Method and system for processing abnormal task in computer application system adopting embedded operating system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
获取Andorid应用程序出错信息并将信息发送到指定邮件;a1405;《http://whatandroid.blog.51cto.com_2172732_873803》;20120523;第1-4页 *

Similar Documents

Publication Publication Date Title
CN103809990B (en) Servomechanism
CN106506203A (en) A kind of monitoring nodes system for being applied to block chain
CN104182288A (en) Method for automatically testing power consumption of server cluster system
WO2011126573A3 (en) Method and apparatus for improving business process management systems
CN111371640B (en) SDN controller-based traffic collection analysis method and system
GB0914831D0 (en) Method and apparatus for setting a secure communication path between virtual machines
CN103605581B (en) A kind of Distributed Computer System troubleshooting process
US20160352573A1 (en) Method and System for Detecting Network Upgrades
CN106776320A (en) Android intelligent terminal automatization test system and method
CN105322660B (en) The long-range control method and device of distribution communication apparatus
WO2009083979A3 (en) System, apparatus, and method for bios level contextual configuration of resources
CN102945197B (en) Communication means between a kind of control module and display module and industry control display unit
CN105511937A (en) Batch virtual machine blue screen monitoring method suitable for cloud platform
CN103336738B (en) A kind of embedded OS abnormality capturing and the method for distribution
WO2015192664A1 (en) Device monitoring method and apparatus
CN105300447A (en) System and method for monitoring operation state of equipment
CN102427411A (en) Total network signalling tracking method and system for
CN106790557A (en) The long-distance monitorng device and monitoring method of a kind of filter press
CN103634135B (en) A kind of collecting method based on metadata
CN113419935A (en) Mobile terminal performance monitoring method, device, equipment and storage medium
CN105653938A (en) Sandbox protection system and method for virtual machine
CN103336738A (en) Abnormality capturing and distributing method of embedded operating system
CN103942503B (en) Safe state switching system and switching method
CN109614429B (en) Method for realizing association of application access and database access behaviors based on kernel driver
CN104581794A (en) Method and system for middleware business troubleshooting

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 516006 Guangdong province Huizhou City Zhongkai high tech Zone and five West Road No. 103

Applicant after: HUIZHOU DESAY SV AUTOMOTIVE CO., LTD.

Address before: 516006 Guangdong province Huizhou City Zhongkai high tech Zone and five West Road No. 103

Applicant before: Huizhou Desay SV Auto. Electronics Co., Ltd.

GR01 Patent grant