CN113448762B - Crash processing method and system, intelligent device and storage medium - Google Patents
Crash processing method and system, intelligent device and storage medium Download PDFInfo
- Publication number
- CN113448762B CN113448762B CN202110728160.8A CN202110728160A CN113448762B CN 113448762 B CN113448762 B CN 113448762B CN 202110728160 A CN202110728160 A CN 202110728160A CN 113448762 B CN113448762 B CN 113448762B
- Authority
- CN
- China
- Prior art keywords
- abnormal
- information
- field information
- crash
- data
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 30
- 230000002159 abnormal effect Effects 0.000 claims abstract description 194
- 238000000034 method Methods 0.000 claims abstract description 62
- 238000012545 processing Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 10
- 230000005856 abnormality Effects 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 6
- 230000008439 repair process Effects 0.000 abstract description 17
- 238000003745 diagnosis Methods 0.000 abstract description 8
- 238000004891 communication Methods 0.000 description 20
- 230000008569 process Effects 0.000 description 18
- 238000004458 analytical method Methods 0.000 description 8
- 238000012423 maintenance Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 238000012827 research and development Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0787—Storage of error reports, e.g. persistent data storage, storage using memory protection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1438—Restarting or rejuvenating
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a crash processing method, a system, intelligent equipment and a storage medium, wherein the method comprises the following steps: presetting an abnormal information storage area in a system; when the system crashes, the abnormal field information is stored in the abnormal information storage area; when the system is started, detecting whether the abnormal field information exists in the abnormal information storage area; and when the abnormal field information is detected to be stored, uploading the abnormal field information to a server. According to the crash processing method provided by the invention, the abnormal information storage area is preset in the system and used for storing the abnormal field information during the crash, and the abnormal field information is sent to the server for background personnel to analyze the cause of the crash, so that the background personnel can conveniently carry out remote problem diagnosis and remote OTA upgrade repair, and the repair efficiency during the crash of the system is improved.
Description
Technical Field
The invention relates to the technical field of system debugging, in particular to a crash processing method, a crash processing system, intelligent equipment and a storage medium.
Background
In the functional intelligent device based on the RTOS, due to the limitation of a system debugging means, a restarting strategy is generally adopted by default after the functional intelligent device on the user side is in a crash abnormity, and the single debugging means is inconvenient for analyzing some after-sale crash problems. At present, a user machine is required to be sent back to analyze the crash of the user intelligent equipment, and after background personnel analyze problems of the sent back functional intelligent equipment, the problems of the functional intelligent equipment can not be reproduced, but the time cost required for sending back is too high, and the after-sale maintenance of the functional intelligent equipment is extremely inconvenient. At present, functional intelligent devices of other systems, such as IOS and Android, can enable a user to perform remote problem diagnosis by acquiring crash debugging information without sending back a machine, and then repair the system through remote OTA upgrading.
In the prior art, for functional intelligent equipment of an Android system, abnormal data in crash can be packaged and stored in a Logger log system, and the abnormal data is compressed and then uploaded to background personnel for analysis. However, hierarchical classification does not exist in the RTOS system, and abnormal information cannot be stored in the log system according to the Android system to realize data storage and package uploading, and since the abnormal data, the APP data, the user information data, and the system data of the RTOS system share a common storage space, a method corresponding to the storage of the crash information in the prior art cannot be applied, and further, research and development personnel cannot perform remote problem diagnosis by acquiring the crash debugging information.
In order to solve the problem that abnormal data cannot be packed, compressed and uploaded according to the data processing method in the prior art when the RTOS system crashes, a data processing method based on the RTOS system is needed at present, and the abnormal data is processed when the RTOS system crashes.
Disclosure of Invention
In order to solve the problem that abnormal data cannot be packed and compressed and uploaded according to a data processing method in the prior art when an RTOS system crashes, the invention provides a crash processing method, a crash processing system, intelligent equipment and a storage medium, and the specific technical scheme is as follows:
the invention provides a crash processing method, which comprises the following steps:
presetting an abnormal information storage area in a system;
when the system crashes, the abnormal field information is stored in the abnormal information storage area;
when the system is started, detecting whether the abnormal field information exists in the abnormal information storage area;
and when the abnormal field information is detected to be stored, uploading the abnormal field information to a server.
The crash processing method provided by the invention can be used for presetting an abnormal information storage area in the system for storing the abnormal site information during the crash and sending the abnormal site information to the server for background personnel to analyze the cause of the crash, so that the background personnel can conveniently carry out remote problem diagnosis and remote OTA upgrade repair, and the repair efficiency of the system during the crash is improved.
Further, the present invention also provides a crash processing method, wherein after the system crashes and before the system is started, the method further includes:
and storing a data header of the abnormal field information and the abnormal field information into the abnormal information storage area, wherein the data header comprises data abnormal time, data abnormal type and data length of the abnormal field information.
The crash processing method provided by the invention can store the abnormal field information data head when the abnormal field information is stored, so that background personnel can preliminarily judge the cause of the crash according to the data head information, and the repair speed of the system during the crash is improved.
Further, the present invention provides a crash handling method, where after detecting whether the abnormal field information exists in the abnormal information storage area, the method further includes:
and if the abnormal field information is damaged, uploading the data head to a server.
The crash processing method provided by the invention can upload the abnormal information head to the server for analysis by background personnel when the abnormal field information is damaged in the storage process, so that the problem that the crash problem cannot be solved due to the damage of the abnormal field information is avoided, and the maintenance stability of the intelligent equipment is improved.
Further, the present invention also provides a crash processing method, before the system crashes, the method further includes:
and when the system is detected to have data abnormality, extracting the abnormal field information.
The crash processing method provided by the invention can extract the abnormal field information when the system has data abnormality every time, prevent the situation that the abnormal field information is not stored in time in the crash process to cause data loss, increase the integrity of the abnormal field information data and improve the repair quality when the system crashes.
Optionally, the present invention further provides a crash handling method, where after the abnormal site information is uploaded to a server, the crash handling method includes:
and initializing the data in the abnormal information storage area.
Further, the present invention also provides a crash handling method, wherein the uploading the abnormal site information to a server further includes:
extracting the abnormal field information to a magnetic disk;
compressing the abnormal field information;
and uploading the data to a server for background personnel to analyze.
Specifically, the invention provides a crash handling method, wherein:
the abnormal field information comprises PC pointer information, thread information and stack information.
Additionally, the present invention also provides a crash processing system, comprising:
the setting module is used for presetting an abnormal information storage area in the system;
the storage module is used for storing the abnormal field information to the abnormal information storage area when the system crashes;
the detection module is used for detecting whether the abnormal field information exists in the abnormal information storage area or not when the system is started;
and the crash processing module is connected with the detection module and used for uploading the abnormal field information to a server when the abnormal field information is detected to exist.
The crash processing system provided by the invention can preset an abnormal information storage area in the system for storing abnormal field information during crash and sending the abnormal field information to the server for background personnel to analyze the cause of the crash, so that the background personnel can conveniently carry out remote problem diagnosis and remote OTA (over the air) upgrading and repairing, and the repairing efficiency during the crash of the system is improved.
Additionally, the present invention also provides an intelligent device, which includes a processor, a storage, and a computer program stored in the storage and executable on the processor, where the processor is configured to execute the computer program stored in the storage, and implement the operations performed by the foregoing crash handling method.
Additionally, the present invention also provides a storage medium, in which at least one instruction is stored, where the instruction is used to implement the operation performed by the crash handling method described above.
The invention provides a crash processing method, a system and intelligent equipment, which at least have the following gain effects:
1) An abnormal information storage area is preset in the system and used for storing abnormal field information during crash and sending the abnormal field information to the server for background personnel to analyze the reason of the crash, so that the background personnel can conveniently perform remote problem diagnosis and remote OTA upgrade repair, and the repair efficiency during the crash of the system is improved;
2) Extracting abnormal field information when the system has data abnormality every time, preventing the situation that the abnormal field information is not stored in time in the crash process to cause data loss, increasing the integrity of the abnormal field information data and improving the repair quality of the system in the crash process;
3) The abnormal field information data head is stored when the abnormal field information is stored, so that background personnel can preliminarily judge the reason of the crash according to the data head information, the maintenance difficulty caused by the damage of the abnormal field information can be avoided, and the repair speed and efficiency of the system during the crash are improved.
Drawings
The above features, technical features, advantages and implementations of a crash handling method, system, smart device and storage medium will be further described in the following detailed description of preferred embodiments in a clearly understandable manner, in conjunction with the accompanying drawings.
FIG. 1 is a flow chart of a crash handling method of the present invention;
FIG. 2 is another flow chart of a crash handling method of the present invention;
FIG. 3 is yet another flow chart of a crash handling method of the present invention;
FIG. 4 is a flow chart of the crash handling method of the present invention when the abnormal field information is damaged;
FIG. 5 is a flowchart of a crash handling method including initialization of exception information in accordance with the present invention;
FIG. 6 is a flow chart of a crash handling method including a compression pre-processing procedure according to the present invention;
FIG. 7 is a schematic diagram of a crash handling system according to the present invention;
fig. 8 is a block diagram of an intelligent device of the present invention.
Reference numbers in the figures: 10-setting module, 20-saving module, 30-detecting module, 40-dead halt processing module, 100-intelligent device, 110-processor, 120-memory and 121-computer program.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, intelligent devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "a" means not only "only one of this but also a case of" more than one ".
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
Example 1
One embodiment of the present invention, as shown in fig. 1, is a crash handling method, including the steps of:
s100, an abnormal information storage area is preset in the system.
Specifically, the RTOS system includes a Threadx RTOS system, each process of the system shares one memory space, and different memory spaces are allocated to each process during operation, for a thread, the system does not allocate a memory to the thread except for a CPU, resources used by the thread come from resources of the process to which the thread belongs, and only resources can be shared among thread groups. In the Threadx RTOS, there is only one program, and the runtime can be regarded as only one process, and the process includes a plurality of threads.
Due to the fact that hierarchical classification does not exist in the Threadx RTOS system, functional intelligent equipment based on the system cannot pack and store abnormal data in a Logger log system when the system crashes, and the abnormal data are uploaded to background personnel for analysis after being compressed.
S200, when the system crashes, the abnormal field information is stored in the abnormal information storage area.
Specifically, the abnormal field information includes dead-time PC pointer information, dead-time thread information, dead-time stack information, and the like.
In particular, due to the limitation of a system debugging means, an intelligent device based on an RTOS system usually defaults to a restart policy after an exception occurs in a user version.
S300, when the system is started, whether the abnormal field information exists in the abnormal information storage area is detected.
S400, when detecting that the abnormal site information exists, uploading the abnormal site information to a server.
In this embodiment, when the functional intelligent device running the RTOS system crashes, the data content of the field registers, such as the PC pointer information, the thread information when the system crashes, the stack information when the system crashes, and other debugging information, are stored in the specified memory, and the memory data is not empty, the data in the memory is exported when the functional intelligent device is restarted next time, and is uploaded to the server for further analysis by the research and development staff.
The embodiment provides a crash processing method, which can preset an abnormal information storage area in a system for storing abnormal site information during crash, and send the abnormal site information to a server for background personnel to analyze the cause of the crash, so that the background personnel can conveniently perform remote problem diagnosis and remote OTA upgrade repair, and the repair efficiency during the crash of the system is improved.
Example 2
Based on the crash processing method in embodiment 1, as shown in fig. 2, before saving the abnormal field information to the abnormal information storage area when the system crashes in step S200, the method further includes:
s500, when the system is detected to have data abnormality, abnormal field information is extracted.
Specifically, the data exception includes stack overflow problems, crash of an application program in an interrupt function and the like, some of the problems may cause the functional intelligent device to enter a dead halt state, and some of the problems may automatically adjust and restore normal use based on software or hardware of the functional intelligent device of the RTOS system.
When the functional intelligent device runs, multiple data abnormal conditions may occur, and abnormal field information is extracted every time the data abnormal conditions occur.
And after the data are abnormal, judging whether the system enters a halt state, and if the system enters the halt state, storing the extracted abnormal field information into a preset abnormal information storage area.
The crash debugging method provided by the embodiment comprises the steps of extracting abnormal field information when the system has data abnormality every time, preventing the situation that the abnormal field information is not stored in time to cause data loss in the crash process, increasing the integrity of the abnormal field information data, and improving the repair quality of the system during the crash.
Example 3
Based on the crash processing method in any one of the foregoing embodiments 1 to 2, as shown in fig. 3, after the system crashes, before S300 detects whether the abnormal field information exists in the abnormal information storage area when the system is started, the method further includes:
s600, storing the data header of the abnormal field information and the abnormal field information into an abnormal information storage area.
Specifically, the data header of the abnormal field information includes data abnormal time, data abnormal type, and data length of the abnormal field information.
Wherein the data exception types include underlying data exceptions, application data exceptions, other data exception issues, and the like.
Preferably, after the data header of the abnormal field information and the abnormal field information are stored in a preset abnormal information storage area and transmitted to the server, a background person can preliminarily judge the cause of the crash according to the abnormal field information data header, and if the cause of the crash belongs to common causes of the functional intelligent device, or similar causes of the crash occur before the functional intelligent device, the type of the crash can be directly judged according to the abnormal field information data header.
The crash processing method provided by the embodiment stores the abnormal field information data head when the abnormal field information is stored, so that a background person can conveniently preliminarily judge the reason of the crash according to the data head information, and the repair speed of the system during the crash is improved.
Example 4
Based on the crash processing method in the foregoing embodiment 3, as shown in fig. 4, after detecting whether there is abnormal field information in the abnormal information storage area at the time of system startup in step S300, the method further includes:
s700, if the abnormal field information is damaged, uploading the data head to a server.
The crash processing method provided by the invention can upload the abnormal information data head to the server for analysis by background personnel when the abnormal field information is damaged in the storage process, so that the problem that the crash problem cannot be solved due to the damage of the abnormal field information is avoided, and the maintenance stability of the intelligent equipment is improved.
Example 5
Based on the crash processing method in any one of the foregoing embodiments 1 to 3, as shown in fig. 5, after the uploading the abnormal field information to the server in step S400, the method further includes:
s800, initializing the data in the preset abnormal information storage area.
Specifically, after the abnormal field information is uploaded to the server every time, the data in the preset abnormal information storage area is initialized, so that the situation that interference information exists when the dead abnormal field information is uploaded to the server next time and the analysis efficiency of background personnel is affected can be prevented.
Alternatively, if the initialization of the data in the preset abnormal information storage area is not included in step S800 after the abnormal site information is uploaded to the server in step S400, the historical abnormal information is uploaded at the same time when the abnormal site information is uploaded to the server next time. And if the data memory of the preset abnormal information storage area is insufficient, covering the abnormal field information with the previous time by the abnormal field information with the next time. The method can facilitate background personnel to analyze the cause of the crash according to the historical records and solve the crash problem.
In this embodiment, another crash handling method is provided, which includes initializing data in a preset abnormal information storage area after uploading the abnormal field information to the server each time. The invention can prevent interference information from influencing the analysis efficiency of background personnel when the information of the dead aircraft abnormal field is uploaded to the server next time.
Example 6
Based on the crash processing method in the foregoing embodiment 5, as shown in fig. 6, the step S400 uploads the abnormal field information to the server, and further includes:
s410, extracting the abnormal field information to a magnetic disk.
S420 compresses the abnormal field information.
S430, the compressed abnormal field information is uploaded to a server for background personnel to analyze.
In the embodiment, the compression preprocessing is performed on the abnormal field information in the process of uploading the abnormal field information to the server, so that the information transmission speed can be increased, and the network pressure in the process of transmitting the crash information can be reduced.
Example 7
One embodiment of the present invention, as shown in fig. 7, is a crash handling system, comprising:
the setting module 10 is used for presetting an abnormal information storage area in the system.
Specifically, the RTOS system includes a Threadx RTOS system, each process of the system shares one memory space, and different memory spaces are allocated to each process during operation, for a thread, the system does not allocate a memory to the thread except for a CPU, resources used by the thread come from resources of the process to which the thread belongs, and only resources can be shared among thread groups. In the Threadx RTOS, there is only one program, and the runtime can be regarded as only one process, and this process includes multiple threads.
Due to the fact that hierarchical classification does not exist in the Threadx RTOS system, functional intelligent equipment based on the system cannot pack and store abnormal data in a Logger log system during crash, and the abnormal data are uploaded to background personnel for analysis after being compressed.
And the storage module 20 is used for storing the abnormal field information to the abnormal information storage area when the system crashes.
Specifically, the abnormal field information includes dead halt PC pointer information, dead halt thread information, dead halt stack information, and the like.
Specifically, due to the limitation of a system debugging means, the intelligent device based on the RTOS system usually adopts a restart policy by default after the user version is abnormal.
And the detection module 30 is used for detecting whether the abnormal field information exists in the abnormal information storage area when the system is started.
And the crash processing module 40 is connected with the detection module 30 and is used for uploading the abnormal field information to the server when detecting that the abnormal field information exists.
The embodiment provides a crash processing system, which can preset an abnormal information storage area in the system for storing abnormal field information during crash, and send the abnormal field information to a server for background personnel to analyze the reason of the crash, so that the background personnel can perform remote problem diagnosis and remote OTA upgrade repair conveniently, and the repair efficiency during the crash of the system is improved.
Example 8
As shown in fig. 8, a smart device 100 comprises a processor 110, a memory 120, wherein the memory 120 is used for storing a computer program 121; the processor 110 is configured to execute the computer program 121 stored in the memory 120, so as to implement the crash processing method in the corresponding method embodiment.
The intelligent device 100 may be a desktop computer, a notebook computer, a palm computer, a tablet computer, a mobile phone, a human-computer interaction screen, or other intelligent devices. The smart device 100 may include, but is not limited to, a processor 110, a memory 120. Those skilled in the art will appreciate that fig. 8 is merely an example of the smart device 100 and does not constitute a limitation of the smart device 100 and may include more or fewer components than illustrated, or some components in combination, or different components, such as: the smart device 100 may also include input/output interfaces, display smart devices, network access smart devices, communication buses, communication interfaces, and the like. A communication interface and a communication bus, and may further include an input/output interface, wherein the processor 110, the memory 120, the input/output interface and the communication interface complete communication with each other through the communication bus. The memory 120 stores a computer program 121, and the processor 110 is configured to execute the computer program 121 stored in the memory 120 to implement the crash processing method in the corresponding method embodiment.
The Processor 110 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 120 may be an internal storage unit of the smart device 100, such as: hard disk or memory of the intelligent device. The memory may also be an external storage smart device to the smart device, such as: the intelligent device is provided with a plug-in hard disk, an intelligent memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like. Further, the memory 120 may also include both an internal storage unit of the smart device 100 and an external storage smart device. The memory 120 is used for storing the computer program 121 and other programs and data required by the smart device 100. The memory may also be used to temporarily store data that has been output or is to be output.
A communication bus is a circuit that connects the described elements and enables transmission between the elements. For example, the processor 110 receives commands from other elements through the communication bus, decrypts the received commands, and performs calculations or data processing according to the decrypted commands. The memory 120 may include program modules such as a kernel (kernel), middleware (middleware), an Application Programming Interface (API), and applications. The program modules may be comprised of software, firmware or hardware, or at least two of the same. The input/output interface forwards commands or data input by a user via the input/output interface (e.g. sensor, keyboard, touch screen). The communication interface connects the smart device 100 with other network smart devices, user smart devices, networks. For example, the communication interface may be connected to the network by wired or wireless connection to connect to external other network smart devices or user smart devices. The wireless communication may include at least one of: wireless fidelity (WiFi), bluetooth (BT), near Field Communication (NFC), global Positioning Satellite (GPS) and cellular communications, among others. The wired communication may include at least one of: universal Serial Bus (USB), high-definition multimedia interface (HDMI), asynchronous transfer standard interface (RS-232), and the like. The network may be a telecommunications network and a communications network. The communication network may be a computer network, the internet of things, a telephone network. The smart device 100 may be connected to a network via a communication interface, and protocols used by the smart device 100 to communicate with other network smart devices may be supported by at least one of an application, an Application Programming Interface (API), middleware, a kernel, and a communication interface.
Example 9
In an embodiment of the present invention, a storage medium stores at least one instruction, and the instruction is loaded and executed by a processor to implement the operations performed by the embodiments corresponding to the foregoing crash processing method. For example, the storage medium may be a read-only memory (ROM), a Random Access Memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage smart device, and the like.
They may be implemented in program code that is executable by a computing device such that it is executed by the computing device, or separately, or as individual integrated circuit modules, or as a plurality or steps of individual integrated circuit modules. Thus, the present invention is not limited to any specific combination of hardware and software.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or recited in detail in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the crash handling method, system, smart device, and storage medium disclosed may be implemented in other ways. For example, the embodiments of the crash processing method, system, intelligent device and storage medium described above are merely illustrative, for example, the division of the modules or units is only one logical function division, and there may be other division ways in actual implementation, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, an indirect coupling or communication connection of intelligent devices or units or an integrated circuit, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and amendments can be made without departing from the principle of the present invention, and these modifications and amendments should also be considered as the protection scope of the present invention.
Claims (10)
1. A crash processing method is applied to an RTOS system and comprises the following steps:
presetting an abnormal information storage area in a system;
when the system crashes, the abnormal field information is stored in the abnormal information storage area; when the functional intelligent equipment runs, multiple data abnormal conditions may occur, and abnormal field information is extracted every time the data abnormal conditions occur; after data abnormality occurs, judging whether the system enters a dead halt state or not, and if the system enters the dead halt state, storing the extracted abnormal site information in a preset abnormal information storage area;
when the system is started, detecting whether the abnormal field information exists in the abnormal information storage area;
and when the abnormal field information is detected to be stored, uploading the abnormal field information to a server.
2. The crash handling method according to claim 1, wherein after the system crashes and before the system is started, the method further comprises:
and storing a data header of the abnormal field information and the abnormal field information into the abnormal information storage area, wherein the data header comprises data abnormal time, data abnormal type and data length of the abnormal field information.
3. The crash handling method according to claim 2, wherein after detecting whether the abnormal field information exists in the abnormal information storage area, the method further comprises:
and if the abnormal field information is damaged, uploading the data head to a server.
4. The crash handling method according to claim 1, further comprising, before the system crashes, the steps of:
and when the data abnormality of the system is detected, extracting the abnormal field information.
5. The crash handling method according to claim 1, wherein after uploading the abnormal site information to the server, the method comprises:
and initializing the data in the abnormal information storage area.
6. The crash handling method according to claim 1, wherein the uploading the abnormal site information to a server further comprises:
extracting the abnormal field information to a magnetic disk;
compressing the abnormal field information;
and uploading the compressed abnormal field information to a server for background personnel to analyze.
7. The crash handling method according to any one of claims 1 to 6, wherein:
the abnormal field information comprises PC pointer information, thread information and stack information.
8. A crash handling system, applied to an RTOS system, comprising:
the setting module is used for presetting an abnormal information storage area in the system;
the storage module is used for storing the abnormal field information to the abnormal information storage area when the system crashes; when the functional intelligent equipment runs, multiple data abnormal conditions may occur, and abnormal field information is extracted every time the data abnormal conditions occur; after data abnormality occurs, judging whether the system enters a dead halt state or not, and if the system enters the dead halt state, storing the extracted abnormal site information in a preset abnormal information storage area;
the detection module is used for detecting whether the abnormal field information exists in the abnormal information storage area or not when the system is started;
and the crash processing module is connected with the detection module and used for uploading the abnormal field information to a server when the abnormal field information is detected to exist.
9. An intelligent device, comprising a processor, a memory and a computer program stored in the memory and operable on the processor, wherein the processor is configured to execute the computer program stored in the memory to implement the operations performed by the crash handling method according to any one of claims 1 to 7.
10. A storage medium having stored therein at least one instruction for implementing an operation performed by the crash handling method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110728160.8A CN113448762B (en) | 2021-06-29 | 2021-06-29 | Crash processing method and system, intelligent device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110728160.8A CN113448762B (en) | 2021-06-29 | 2021-06-29 | Crash processing method and system, intelligent device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113448762A CN113448762A (en) | 2021-09-28 |
CN113448762B true CN113448762B (en) | 2022-12-27 |
Family
ID=77814022
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110728160.8A Active CN113448762B (en) | 2021-06-29 | 2021-06-29 | Crash processing method and system, intelligent device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113448762B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116594700B (en) * | 2023-07-17 | 2023-12-12 | 合肥康芯威存储技术有限公司 | Method and device for cloning eMMC chip, electronic equipment and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130346985A1 (en) * | 2012-06-20 | 2013-12-26 | Microsoft Corporation | Managing use of a field programmable gate array by multiple processes in an operating system |
US9436560B2 (en) * | 2014-04-02 | 2016-09-06 | International Business Machines Corporation | Increasing disaster resiliency by having a pod backed up to other peer pods in a site or beyond |
CN104794016A (en) * | 2015-04-23 | 2015-07-22 | 惠州Tcl移动通信有限公司 | Mobile terminal crash testing and processing method and system |
CN105871587A (en) * | 2015-12-10 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Log uploading method and device |
CN113010336A (en) * | 2019-12-20 | 2021-06-22 | 珠海全志科技股份有限公司 | Application processor crash field debugging method and application processor |
CN112860516A (en) * | 2021-02-04 | 2021-05-28 | 展讯通信(上海)有限公司 | Log saving method, communication device, chip and module equipment |
-
2021
- 2021-06-29 CN CN202110728160.8A patent/CN113448762B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113448762A (en) | 2021-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11640247B2 (en) | Providing service address space for diagnostics collection | |
CN108650287B (en) | Upgrading method and device for terminal device in Internet of things and computer readable medium | |
US8139085B2 (en) | Display data extraction methods, devices and computer systems utilizing the same | |
CN101390057A (en) | Two-level interrupt service routine | |
WO2014200511A1 (en) | Unified extensible firmware interface (uefi) driver and protocol | |
CN113448762B (en) | Crash processing method and system, intelligent device and storage medium | |
CN115543746A (en) | Graphics processor monitoring method, system and device and electronic equipment | |
CN110881224B (en) | Network long connection method, device, equipment and storage medium | |
CN111831346B (en) | Method and device for starting memory operating system for data acquisition | |
CN114691481A (en) | Abnormity positioning method and device and readable storage medium | |
CN109254856B (en) | Method for providing interface to client by intelligent POS server | |
CN110889880A (en) | Map processing method, device, equipment and storage medium | |
CN109936528B (en) | Monitoring method, device, equipment and system | |
CN115062340A (en) | Device access method, interface processing method and device | |
CN113055250A (en) | Networking communication method, device, terminal equipment and storage medium | |
CN107844382B (en) | Card screen detection method, mobile terminal and computer readable storage medium | |
CN107274589B (en) | Access method and system of financial self-service terminal hardware equipment and terminal equipment | |
CN114371978B (en) | Method, device, apparatus and system for android to acquire data | |
CN112181676B (en) | Method, device, terminal equipment and readable storage medium for sharing recording data | |
US20230359775A1 (en) | Peripheral device connections responsive to identification data matching | |
US11467934B2 (en) | Diagnostic scan | |
WO2023201648A1 (en) | File operation apparatus, computer device and operation device | |
CN111625385A (en) | Method, system, terminal device and storage medium for processing dead halt by adjusting RPM | |
CN118069285A (en) | Connection recovery method, device, unloading card and system | |
CN116719671A (en) | Debugging method of kernel unloading service and related equipment thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |