CN105404576A - Anomaly information acquisition method and apparatus - Google Patents

Anomaly information acquisition method and apparatus Download PDF

Info

Publication number
CN105404576A
CN105404576A CN201510870458.7A CN201510870458A CN105404576A CN 105404576 A CN105404576 A CN 105404576A CN 201510870458 A CN201510870458 A CN 201510870458A CN 105404576 A CN105404576 A CN 105404576A
Authority
CN
China
Prior art keywords
target
abnormal information
exception type
terminal device
server
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
CN201510870458.7A
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510870458.7A priority Critical patent/CN105404576A/en
Publication of CN105404576A publication Critical patent/CN105404576A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present disclosure disclose an anomaly information acquisition method and apparatus. The method comprises: firstly, a terminal device acquires a target anomaly type; and in the process of using the terminal device, if an anomaly generated on the bottom layer of software is detected and the generated anomaly belongs to the target anomaly type, acquiring target anomaly information corresponding to the target anomaly type and uploading the acquired target anomaly information into a server. Therefore, at the moment when the anomaly generated on the bottom layer of the software is detected in the using process of the terminal device, the target anomaly information required for debugging the anomaly problem can be uploaded to the server. By utilizing the anomaly information acquisition method, necessary information required for debugging the problem of the bottom layer of the software can be effectively acquired; and targeted acquisition of the anomaly information provides great assistance forsolving the anomaly problem of the bottom layer of the software of the terminal device.

Description

Abnormal information acquisition methods and device
Technical field
The disclosure relates to field of computer technology, particularly relates to a kind of abnormal information acquisition methods and device.
Background technology
Universal along with terminal device (such as, smart mobile phone, panel computer, Intelligent worn device etc.), the stability of terminal device becomes the index that user is concerned about most.A lot of problems that terminal device occurs are often to reappear, or slip-stick artist is difficult to solve, and wherein, the most scabrous problem is: the bottom most software run in terminal device goes wrong.
Terminal device because of bottom most software problem occur collapse time, need a large amount of Debugging message.But the limited storage space of terminal device, along with passage of time, new Debugging message can cover old Debugging message, causes Debugging message to be lost, and then causes collecting effective Debugging message and solve the problem of bottom most software and the collapse that occurs.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of abnormal information acquisition methods and device.
In order to solve the problems of the technologies described above, disclosure embodiment discloses following technical scheme:
According to the first aspect of disclosure embodiment, a kind of abnormal information acquisition methods is provided, is applied in terminal device, comprises:
Obtain target Exception Type, described target Exception Type comprises at least one Exception Type;
The bottom most software of sense terminals equipment occurs abnormal;
When the exception that the bottom most software of described terminal device occurs belongs to described target Exception Type, obtain the target abnormal information corresponding to described target Exception Type;
During described target abnormal information is uploaded onto the server.
The abnormal information acquisition methods that first aspect provides, in the use procedure of terminal device, if it is abnormal to detect that bottom most software occurs, and the exception occurred belongs to target Exception Type, then obtain the target abnormal information corresponding to target Exception Type, and during the target abnormal information of acquisition is uploaded onto the server.Thus can detect in terminal device use procedure that abnormal moment occurs bottom most software, obtain the necessary information needed for debugging software bottom problem targetedly, for the bottom most software abnormal problem solving terminal device provides great help.
Alternatively, described acquisition target Exception Type, comprising:
According to the fixed time, obtain target Exception Type to server request, each described target Exception Type includes to characterize and abnormal process title and storehouse key word occurs;
According to the target Exception Type received, upgrade the target Exception Type stored in described terminal device.
Alternatively, described target Exception Type also comprises presetting uploads quantity, and after the target abnormal information that the exception obtaining described target Exception Type is corresponding, described method also comprises:
Obtain described target abnormal information upload onto the server in upload number of times;
When described upload number of times do not reach described preset upload quantity time, perform the step in described target abnormal information being uploaded onto the server.
The abnormal information acquisition methods that the present embodiment provides, after obtaining target abnormal information corresponding to target Exception Type, what obtain target abnormal information uploads number of times, if target abnormal information upload number of times do not reach preset upload quantity, in then target abnormal information being uploaded onto the server, thus reduce server to the storage pressure of target abnormal information, meanwhile, reduce the Internet resources that target abnormal information uploaded by terminal device.
Alternatively, described described target abnormal information to be uploaded onto the server, comprising:
Described target abnormal information is compressed, obtains the target abnormal information after compressing;
Target abnormal information after compression is sent to described server.
The abnormal information acquisition methods that the present embodiment provides, after acquisition target abnormal information, compresses, the target abnormal information after compression is uploaded to server, thus greatly reduces the data volume of information upload, alleviate Internet Transmission burden.Meanwhile, the storage pressure of server is also reduced.
Alternatively, described described target abnormal information to be uploaded onto the server, comprising:
By Wireless Fidelity Wi-Fi network, described target abnormal information is sent to server.
The abnormal information acquisition methods that the present embodiment provides, at terminal device by under WiFi networking state, in target abnormal information being uploaded onto the server, avoids the network traffic data wasting user.
According to the second aspect of disclosure embodiment, a kind of abnormal information acquisition methods is provided, is applied in server, comprises:
Obtain the target Exception Type pre-set;
When receiving the request message of the request acquisition target Exception Type that terminal device sends, return described target Exception Type to described terminal device;
Receive the target abnormal information that described terminal device obtains, described target abnormal information is the abnormal information corresponding to described target Exception Type.
According to the third aspect of disclosure embodiment, a kind of abnormal information acquisition device is provided, is applied in terminal device, comprises:
First acquisition module, for obtaining target Exception Type, described target Exception Type comprises at least one Exception Type;
Detection module, the bottom most software for sense terminals equipment occurs abnormal;
Second acquisition module, for when the exception that described detection module detects belongs to described target Exception Type, obtains the target abnormal information corresponding to described target Exception Type;
Upper transmission module, in uploading onto the server described target abnormal information.
Alternatively, described first acquisition module comprises:
First obtains submodule, for according to the fixed time, obtains target Exception Type to server request, and each described target Exception Type includes to characterize and abnormal process title and storehouse key word occur;
Upgrade submodule, for obtaining the target Exception Type of submodule acquisition according to described first, upgrade the target Exception Type stored in described terminal device.
Alternatively, described target Exception Type also comprises presetting uploads quantity, and described device also comprises:
3rd acquisition module, for obtain described target abnormal information upload onto the server in upload number of times, when described upload number of times do not reach described preset upload quantity time, during described target abnormal information is uploaded onto the server by described upper transmission module.
Alternatively, described upper transmission module comprises:
Compression submodule, for described target abnormal information being compressed, obtains the target abnormal information after compressing;
Send submodule, send to described server for the target abnormal information after the compression that obtained by described compression submodule.
Alternatively, described upper transmission module is used for: by Wireless Fidelity Wi-Fi network, described target abnormal information is sent to server.
According to the fourth aspect of disclosure embodiment, a kind of abnormal information acquisition device is provided, is applied in server, comprises:
First acquisition module, for obtaining the target Exception Type pre-set;
Returning module, for when receiving the request message of the request acquisition target Exception Type that terminal device sends, returning described target Exception Type to described terminal device;
Receiver module, for receiving the target abnormal information that described terminal device obtains, described target abnormal information is the abnormal information corresponding to described target Exception Type.
According to the 5th aspect of disclosure embodiment, a kind of terminal device is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain target Exception Type, described target Exception Type comprises at least one Exception Type;
The bottom most software of sense terminals equipment occurs abnormal;
When the exception that the bottom most software of described terminal device occurs belongs to described target Exception Type, obtain the target abnormal information corresponding to described target Exception Type;
During described target abnormal information is uploaded onto the server.
According to the 6th aspect of disclosure embodiment, a kind of server is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the target Exception Type pre-set;
When receiving the request message of the request acquisition target Exception Type that terminal device sends, return described target Exception Type to described terminal device;
Receive the target abnormal information that described terminal device obtains, described target abnormal information is the abnormal information corresponding to described target Exception Type.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: terminal device first obtains target Exception Type.In the use procedure of terminal device, if it is abnormal to detect that bottom most software occurs, and the exception occurred belongs to target Exception Type, then obtain the target abnormal information corresponding to target Exception Type, and during the target abnormal information of acquisition is uploaded onto the server.Thus can detect in terminal device use procedure that abnormal moment occurs bottom most software, obtain the necessary information needed for debugging software bottom problem targetedly, for the bottom most software abnormal problem solving terminal device provides great help.
Should be understood that, it is only exemplary that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of a kind of abnormal information acquisition methods according to an exemplary embodiment;
Fig. 2 is the process flow diagram of the another kind of abnormal information acquisition methods according to an exemplary embodiment;
Fig. 3 is the process flow diagram of another the abnormal information acquisition methods according to an exemplary embodiment;
Fig. 4 is the process flow diagram of another the abnormal information acquisition methods according to an exemplary embodiment;
Fig. 5 is a kind of abnormal information acquisition device block diagram according to an exemplary embodiment;
Fig. 6 is the one first acquisition module block diagram according to an exemplary embodiment;
Fig. 7 is the block diagram of the another kind of abnormal information acquisition device according to an exemplary embodiment;
Fig. 8 is the block diagram of the upper transmission module according to an exemplary embodiment;
Fig. 9 is the block diagram that another abnormal information acquisition device is shown according to an exemplary embodiment;
Figure 10 is the block diagram of a kind of device for obtaining abnormal information according to an exemplary embodiment;
Figure 11 is the block diagram of a kind of device for obtaining abnormal information according to an exemplary embodiment.
By above-mentioned accompanying drawing, illustrate the embodiment that the disclosure is clear and definite more detailed description will be had hereinafter.These accompanying drawings be not in order to limited by any mode the disclosure design scope, but by reference to specific embodiment for those skilled in the art illustrate concept of the present disclosure.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the process flow diagram of a kind of abnormal information acquisition methods according to an exemplary embodiment, and the method is applied in terminal device, such as, and the intelligent terminals such as smart mobile phone, panel computer, Intelligent worn device.As shown in Figure 1, this abnormal information acquisition methods comprises the following steps:
In S110, terminal device obtains target Exception Type; Target Exception Type comprises at least one Exception Type.
Target Exception Type can pre-set, but can be the abnormal problem being difficult to reappear in esse bottom most software in terminal device.
Slip-stick artist can Offered target Exception Type in the server, and target Exception Type can store with the form of white list, can specify at least one Exception Type in white list, and each Exception Type includes process title and storehouse key word; Process title is the full name of process program, is the distinctive mark of process program; Storehouse key word can characterize the type of the abnormal problem that process occurs.
In the disclosure one exemplary embodiment, terminal device, according to the fixed time, obtains white list to server request; Such as, terminal device can initiatively send a request message to server, and request obtains white list; Or terminal device can the white list that sends of passive reception server.
Fixed time can be time cycle of system default, or, the time of the white list of slip-stick artist's update server side, or, the time cycle that slip-stick artist specifies.
If terminal device this locality does not have white list, or, the white list of acquisition and the white list of terminal device local cache inconsistent time, according to the white list of white list updating terminal equipment side obtained, ensure that the white list of terminal equipment side is up-to-date white list.
In S120, the bottom most software that terminal device detects self occurs abnormal.
In the present embodiment, in the normal use procedure of terminal device, detect whether abnormal problem occurs.
If in the normal use procedure of terminal device, bottom most software generation abnormal problem, then terminal device enters exception handling.After detecting that terminal enters exception handling (such as, the process transfer abnormality processing function in terminal device being detected), determine that the bottom most software of terminal device there occurs exception.
In S130, when the exception that the bottom most software of terminal device occurs belongs to target Exception Type, obtain the target abnormal information corresponding to target Exception Type.
When abnormal process title and storehouse key word occur terminal device, the while of respectively with the process title in target Exception Type and storehouse key word homogeneous phase, determine that the exception that terminal device occurs and target Exception Type match.
If the abnormal problem occurred in terminal device belongs to target Exception Type, then obtain the abnormal information corresponding to target Exception Type.
Abnormal information comprises the content in storehouse corresponding to storehouse key word, and the necessary information of this abnormal problem of other analysis, such as, and memory information, log information etc.
In S140, during target abnormal information is uploaded onto the server by terminal device.
During the target abnormal information of crawl is uploaded onto the server by terminal device, so that the abnormal problem that slip-stick artist occurs according to the target abnormal information analysing terminal equipment in server.
If in the process uploading target abnormal information, there is network interruption, by the time after network recovery, need again to upload whole target abnormal information, reduce uploading rate.In an exemplary embodiment of the present disclosure, the method for breakpoint transmission can be adopted to upload target abnormal information.
Wherein, breakpoint transmission refers to is uploading or in downloading process, and by download or upload task (or file) and be divided into several part, every part adopts a thread to carry out uploading or downloading.If network interruption, can continue to upload or download the part do not completed from the part uploaded or download, not need from the beginning to retransmit, improve transmission speed.
The abnormal information acquisition methods that the present embodiment provides, terminal device first obtains target Exception Type.In the use procedure of terminal device, if it is abnormal to detect that bottom most software occurs, and the exception occurred belongs to target Exception Type, then obtain the target abnormal information corresponding to target Exception Type, and during the target abnormal information of acquisition is uploaded onto the server.Thus can detect in terminal device use procedure that abnormal moment occurs bottom most software, obtain the necessary information needed for debugging software bottom problem targetedly, for the bottom most software abnormal problem solving terminal device provides very big help.
Fig. 2 is the process flow diagram of the another kind of abnormal information acquisition methods according to an exemplary embodiment, and in the present embodiment, slip-stick artist can upload the quantity of target abnormal information by setting terminal equipment.As shown in Figure 2, the method comprises the following steps:
In S210, terminal device obtains target Exception Type; Target Exception Type comprises at least one Exception Type.Each Exception Type includes process title, storehouse key word and presets uploads quantity.
In S220, the bottom most software that terminal device detects self occurs abnormal.
In S230, when the exception that the bottom most software of terminal device occurs belongs to target Exception Type, terminal device obtains the target abnormal information corresponding to target Exception Type.
In S240, terminal device obtain target abnormal information upload onto the server in upload number of times.
In S250, when upload number of times do not reach preset upload quantity time, during target abnormal information is uploaded onto the server by terminal device.
Corresponding default of each Exception Type can be set in white list by slip-stick artist and upload quantity.This is preset and uploads the quantity that quantity is the necessary information of abnormal problem occurred in slip-stick artist's analysing terminal equipment.
If the number of times of uploading of target abnormal information reaches to preset and uploads quantity, then no longer target abnormal information is uploaded to server, upgrades until default in server uploads quantity.
The abnormal information acquisition methods that the present embodiment provides, after obtaining target abnormal information corresponding to target Exception Type, what obtain target abnormal information uploads number of times, if target abnormal information upload number of times do not reach preset upload quantity, in then target abnormal information being uploaded onto the server, thus reduce server to the storage pressure of target abnormal information, meanwhile, reduce the Internet resources that target abnormal information uploaded by terminal device.
Fig. 3 is the process flow diagram of another the abnormal information acquisition methods according to an exemplary embodiment, in the present embodiment, after the target abnormal information obtained first is compressed by terminal device, then in uploading onto the server.
As shown in Figure 3, the process in target abnormal information being uploaded onto the server comprises the following steps:
In S141, target abnormal information is compressed by terminal device, obtains the target abnormal information after compressing.
When the bottom most software of terminal device occurs abnormal, need the data volume of the abnormal information of collecting larger, such as, the data of 1G nearly.If directly the abnormal information of acquisition is uploaded to server, not only increase Internet Transmission burden, and, waste the storage space of server.
In the present embodiment, existing compression algorithm can be utilized to compress the target abnormal information obtained, such as, zip compression algorithm.After utilizing compress technique, close to the data volume become after the data volume compression of 1G less than 10M, greatly reduce data volume.
In S142, the target abnormal information after compression is sent to server by terminal device.
It should be noted that, the process uploading target abnormal information in embodiment illustrated in fig. 2 also can use the method for the present embodiment, repeats no more herein.
In embodiment of the present disclosure, in order to avoid uploading the network traffic data of target abnormal information waste user, only under WiFi networking state, upload target abnormal information.
The abnormal information acquisition methods that the present embodiment provides, after acquisition target abnormal information, compresses, the target abnormal information after compression is uploaded to server, thus greatly reduces the data volume of information upload, alleviate Internet Transmission burden.Meanwhile, the storage pressure of server is also reduced.
Fig. 4 is the process flow diagram of another the abnormal information acquisition methods according to an exemplary embodiment, and the method is applied in the system comprising terminal device and server, and as shown in Figure 4, the method can comprise the following steps:
In S410, server obtains the target Exception Type pre-set.
Slip-stick artist can pre-set target Exception Type in the server.
In S420, terminal device obtains target abnormal information to server request.
In S430, server returns target Exception Type to terminal device.
In S440, the bottom most software that terminal device detects self occurs abnormal.
In S450, when the exception that the bottom most software of terminal device occurs belongs to target Exception Type, obtain the target abnormal information corresponding to target Exception Type.
In S460, target abnormal information is uploaded to server by terminal device.
The abnormal information acquisition methods that the present embodiment provides, server obtains the target Exception Type pre-set.Terminal device obtains target Exception Type from server.When terminal device detects exception, and, when determining that this exception belongs to target Exception Type, obtain the target abnormal information corresponding to target Exception Type, and during the target abnormal information of acquisition is uploaded onto the server.Thus can detect in terminal device use procedure that abnormal moment occurs bottom most software, obtain the necessary information needed for debugging software bottom problem targetedly, for the bottom most software abnormal problem solving terminal device provides very big help.
Corresponding to above-mentioned abnormal information acquisition methods embodiment, the disclosure additionally provides abnormal information acquisition device embodiment.
Fig. 5 is a kind of abnormal information acquisition device block diagram according to an exemplary embodiment, this application of installation in terminal device, such as, the intelligent terminals such as smart mobile phone, panel computer, Intelligent worn device.As shown in Figure 5, this device comprises the first acquisition module 510, detection module 520, second acquisition module 530 and upper transmission module 540.
First acquisition module 510, for obtaining target Exception Type; Target Exception Type comprises at least one Exception Type.
Target Exception Type can pre-set, but can be the abnormal problem being difficult to reappear in esse bottom most software in terminal device.Target Exception Type can store with the form of white list, can specify at least one Exception Type in white list, and each Exception Type includes process title and storehouse key word; Process title is the full name of process program, is the distinctive mark of process program; Storehouse key word can characterize the type of the abnormal problem that process occurs.
Fig. 6 is the one first acquisition module block diagram according to an exemplary embodiment, and as shown in Figure 6, this first acquisition module 510 comprises the first acquisition submodule 511 and upgrades submodule 512.
First obtains submodule 511 is configured to, and according to the fixed time, obtains target Exception Type to server request; Each target Exception Type includes to characterize and abnormal process title and storehouse key word occurs.Upgrade submodule 512 to be configured to, obtain the target Exception Type of submodule acquisition according to first, upgrade the target Exception Type stored in terminal device.
Detection module 520, the bottom most software for sense terminals equipment occurs abnormal.
If in the normal use procedure of terminal device, bottom most software generation abnormal problem, then terminal device enters exception handling.After detecting that terminal enters exception handling (such as, the process transfer abnormality processing function in terminal device being detected), determine that the bottom most software of terminal device there occurs exception.
Second acquisition module 530, when the exception for detecting when detection module belongs to target Exception Type, obtains the target abnormal information corresponding to target Exception Type.
When abnormal process title and storehouse key word occur terminal device, the while of respectively with the process title in target Exception Type and storehouse key word homogeneous phase, determine that the exception that terminal device occurs and target Exception Type match.
If the abnormal problem occurred in terminal device belongs to target Exception Type, then obtain the abnormal information corresponding to target Exception Type.
Upper transmission module 540, in uploading onto the server target abnormal information.
In embodiment of the present disclosure, in order to avoid uploading the network traffic data of target abnormal information waste user, upper transmission module only uploads target abnormal information under WiFi networking state.
If in the process uploading target abnormal information, there is network interruption, by the time after network recovery, need again to upload whole target abnormal information, reduce uploading rate.In an exemplary embodiment of the present disclosure, the method for breakpoint transmission can be adopted to upload target abnormal information.
The abnormal information acquisition device that the present embodiment provides, terminal device first obtains target Exception Type.In the use procedure of terminal device, if it is abnormal to detect that bottom most software occurs, and the exception occurred belongs to target Exception Type, then obtain the target abnormal information corresponding to target Exception Type, and during the target abnormal information of acquisition is uploaded onto the server.Thus can detect in terminal device use procedure that abnormal moment occurs bottom most software, obtain the necessary information needed for debugging software bottom problem targetedly, for the bottom most software abnormal problem solving terminal device provides very big help.
Fig. 7 is the block diagram of the another kind of abnormal information acquisition device according to an exemplary embodiment, and this device also comprises the 3rd acquisition module 710 on basis embodiment illustrated in fig. 5.
Target Exception Type also comprises presetting uploads quantity, and device also comprises:
3rd acquisition module 710 is configured to, obtain target abnormal information upload onto the server in upload number of times.
Target Exception Type comprises: process title, storehouse key word and preset upload quantity.
Corresponding default of each Exception Type can be set in white list by slip-stick artist and upload quantity.This is preset and uploads the quantity that quantity is the necessary information of abnormal problem occurred in slip-stick artist's analysing terminal equipment.
When the 3rd acquisition module obtain upload number of times do not reach preset upload quantity time, during in control, target abnormal information is uploaded onto the server by transmission module 540.
If the number of times of uploading of target abnormal information reaches to preset and uploads quantity, then no longer target abnormal information is uploaded to server, upgrades until default in server uploads quantity.
The abnormal information acquisition device that the present embodiment provides, after obtaining target abnormal information corresponding to target Exception Type, what obtain target abnormal information uploads number of times, if target abnormal information upload number of times do not reach preset upload quantity, in then target abnormal information being uploaded onto the server, thus reduce server to the storage pressure of target abnormal information, meanwhile, reduce the Internet resources that target abnormal information uploaded by terminal device.
Fig. 8 is the block diagram of the upper transmission module according to an exemplary embodiment, and on this, transmission module comprises compression submodule 541 and sends submodule 542.
Compression submodule 541 is configured to, and target abnormal information is compressed, and obtains the target abnormal information after compressing.
In the present embodiment, existing compression algorithm can be utilized to compress the target abnormal information obtained, such as, zip compression algorithm.After utilizing compress technique, close to the data volume become after the data volume compression of 1G less than 10M, greatly reduce data volume.
Send submodule 542 to be configured to, the target abnormal information after the compression obtain compression submodule 541 sends to server.
The upper transmission module that the present embodiment provides, compresses acquisition target abnormal information, the target abnormal information after compression is uploaded to server, thus greatly reduces the data volume of information upload, alleviates Internet Transmission burden.Meanwhile, the storage pressure of server is also reduced.
Fig. 9 is the block diagram that another abnormal information acquisition device is shown according to an exemplary embodiment, and this application of installation is in server, and as shown in Figure 9, this device comprises the first acquisition module 910, returns module 920 and receiver module 930.
First acquisition module 910 is configured to, and obtains the target Exception Type pre-set.
First acquisition module obtains the target Exception Type that slip-stick artist presets.
Returning module 920 to be configured to, when receiving the request message of the request acquisition target Exception Type that terminal device sends, returning target Exception Type to terminal device.
Target Exception Type is returned to terminal device.
Receiver module 930 is configured to, the target abnormal information that receiving terminal apparatus obtains, and target abnormal information is the abnormal information corresponding to target Exception Type.
After terminal device receives target Exception Type, obtain the target abnormal information that target Exception Type is corresponding, and during target abnormal information is uploaded onto the server.
The abnormal information acquisition device that the present embodiment provides, server obtains the target Exception Type pre-set.Terminal device obtains target Exception Type from server.When terminal device detects exception, and, when determining that this exception belongs to target Exception Type, obtain the target abnormal information corresponding to target Exception Type, and during the target abnormal information of acquisition is uploaded onto the server.Thus can detect in terminal device use procedure that abnormal moment occurs bottom most software, obtain the necessary information needed for debugging software bottom problem targetedly, for the bottom most software abnormal problem solving terminal device provides very big help.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 10 is the block diagram of a kind of device 1000 for obtaining abnormal information according to an exemplary embodiment.Such as, device 1000 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
As shown in Figure 10, device 1000 can comprise following one or more assembly: processing components 1002, storer 1004, power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of I/O (I/O), sensor module 1014, and communications component 1016.
The integrated operation of the usual control device 1000 of processing components 1002, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 1002 can comprise one or more processor 1020 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1002 can comprise one or more module, and what be convenient between processing components 1002 and other assemblies is mutual.Such as, processing components 1002 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1008 and processing components 1002.
Storer 1004 is configured to store various types of data to be supported in the operation of device 1000.The example of these data comprises for any application program of operation on device 1000 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 1004 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 1006 is device 1000 provide electric power.Power supply module 1006 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1000 and be associated.
Multimedia groupware 1008 is included in the screen providing an output interface between device 1000 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 1008 comprises a front-facing camera and/or post-positioned pick-up head.When device 1000 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1010 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1010 comprises a microphone (MIC), and when device 1000 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 1004 further or be sent via communications component 1016.In certain embodiments, audio-frequency assembly 1010 also comprises a loudspeaker, for output audio signal.
I/O interface 1012 is for providing interface between processing components 1002 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 1014 comprises one or more sensor, for providing the state estimation of various aspects for device 1000.Such as, sensor module 1014 can detect the opening/closing state of device 1000, the relative positioning of assembly, such as assembly is display and the keypad of device 1000, the position of all right pick-up unit 1000 of sensor module 1014 or device 1000 assemblies changes, the presence or absence that user contacts with device 1000, the temperature variation of device 1000 orientation or acceleration/deceleration and device 1000.Sensor module 1014 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 1014 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 1014 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 1016 is configured to the communication being convenient to wired or wireless mode between device 1000 and other equipment.Device 1000 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1016 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, communications component 1016 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1000 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 1004 of instruction, above-mentioned instruction can perform said method by the processor 1020 of device 1000.Such as, non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is performed by the processor of mobile terminal, make terminal device can perform a kind of abnormal information acquisition methods, method comprises:
Obtain target Exception Type, target Exception Type comprises at least one Exception Type;
The bottom most software of sense terminals equipment occurs abnormal;
When the exception that the bottom most software of terminal device occurs belongs to target Exception Type, obtain the target abnormal information corresponding to target Exception Type;
During target abnormal information is uploaded onto the server.
Figure 11 is the block diagram of a kind of device 1100 for obtaining abnormal information according to an exemplary embodiment.Such as, device 1100 may be provided in a server.As shown in figure 11, device 1100 comprises processing components 1122, and it comprises one or more processor further, and the memory resource representated by storer 1132, can such as, by the instruction of the execution of processing components 1122, application program for storing.The application program stored in storer 1132 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1122 is configured to perform instruction, to perform the method shown in above-mentioned Fig. 4.
Device 1100 can also comprise the power management that a power supply module 1126 is configured to actuating unit 1100, and a wired or wireless network interface 1150 is configured to device 1100 to be connected to network, and input and output (I/O) interface 1158.Device 1100 can operate the operating system based on being stored in storer 1132, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (14)

1. an abnormal information acquisition methods, is applied in terminal device, it is characterized in that, comprising:
Obtain target Exception Type, described target Exception Type comprises at least one Exception Type;
The bottom most software of sense terminals equipment occurs abnormal;
When the exception that the bottom most software of described terminal device occurs belongs to described target Exception Type, obtain the target abnormal information corresponding to described target Exception Type;
During described target abnormal information is uploaded onto the server.
2. method according to claim 1, is characterized in that, described acquisition target Exception Type, comprising:
According to the fixed time, obtain target Exception Type to server request, each described target Exception Type includes to characterize and abnormal process title and storehouse key word occurs;
According to the target Exception Type received, upgrade the target Exception Type stored in described terminal device.
3. method according to claim 1 and 2, is characterized in that, described target Exception Type also comprises presetting uploads quantity, and after the target abnormal information that the exception obtaining described target Exception Type is corresponding, described method also comprises:
Obtain described target abnormal information upload onto the server in upload number of times;
When described upload number of times do not reach described preset upload quantity time, perform the step in described target abnormal information being uploaded onto the server.
4. method according to claim 1, is characterized in that, describedly described target abnormal information to be uploaded onto the server, and comprising:
Described target abnormal information is compressed, obtains the target abnormal information after compressing;
Target abnormal information after compression is sent to described server.
5. the method according to any one of Claims 1-4, is characterized in that, describedly described target abnormal information to be uploaded onto the server, and comprising:
By Wireless Fidelity Wi-Fi network, described target abnormal information is sent to server.
6. an abnormal information acquisition methods, is applied in server, it is characterized in that, comprising:
Obtain the target Exception Type pre-set;
When receiving the request message of the request acquisition target Exception Type that terminal device sends, return described target Exception Type to described terminal device;
Receive the target abnormal information that described terminal device obtains, described target abnormal information is the abnormal information corresponding to described target Exception Type.
7. an abnormal information acquisition device, is applied in terminal device, it is characterized in that, comprising:
First acquisition module, for obtaining target Exception Type, described target Exception Type comprises at least one Exception Type;
Detection module, the bottom most software for sense terminals equipment occurs abnormal;
Second acquisition module, for when the exception that described detection module detects belongs to described target Exception Type, obtains the target abnormal information corresponding to described target Exception Type;
Upper transmission module, in uploading onto the server described target abnormal information.
8. device according to claim 7, is characterized in that, described first acquisition module comprises:
First obtains submodule, for according to the fixed time, obtains target Exception Type to server request, and each described target Exception Type includes to characterize and abnormal process title and storehouse key word occur;
Upgrade submodule, for obtaining the target Exception Type of submodule acquisition according to described first, upgrade the target Exception Type stored in described terminal device.
9. the device according to claim 7 or 8, is characterized in that, described target Exception Type also comprises presetting uploads quantity, and described device also comprises:
3rd acquisition module, for obtain described target abnormal information upload onto the server in upload number of times, when described upload number of times do not reach described preset upload quantity time, during described target abnormal information is uploaded onto the server by described upper transmission module.
10. device according to claim 7, is characterized in that, described upper transmission module comprises:
Compression submodule, for described target abnormal information being compressed, obtains the target abnormal information after compressing;
Send submodule, send to described server for the target abnormal information after the compression that obtained by described compression submodule.
11. devices according to any one of claim 7 to 10, it is characterized in that, described upper transmission module is used for: by Wireless Fidelity Wi-Fi network, described target abnormal information is sent to server.
12. 1 kinds of abnormal information acquisition device, are applied in server, it is characterized in that, comprising:
First acquisition module, for obtaining the target Exception Type pre-set;
Returning module, for when receiving the request message of the request acquisition target Exception Type that terminal device sends, returning described target Exception Type to described terminal device;
Receiver module, for receiving the target abnormal information that described terminal device obtains, described target abnormal information is the abnormal information corresponding to described target Exception Type.
13. 1 kinds of terminal devices, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain target Exception Type, described target Exception Type comprises at least one Exception Type;
The bottom most software of sense terminals equipment occurs abnormal;
When the exception that the bottom most software of described terminal device occurs belongs to described target Exception Type, obtain the target abnormal information corresponding to described target Exception Type;
During described target abnormal information is uploaded onto the server.
14. 1 kinds of servers, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the target Exception Type pre-set;
When receiving the request message of the request acquisition target Exception Type that terminal device sends, return described target Exception Type to described terminal device;
Receive the target abnormal information that described terminal device obtains, described target abnormal information is the abnormal information corresponding to described target Exception Type.
CN201510870458.7A 2015-12-02 2015-12-02 Anomaly information acquisition method and apparatus Pending CN105404576A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510870458.7A CN105404576A (en) 2015-12-02 2015-12-02 Anomaly information acquisition method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510870458.7A CN105404576A (en) 2015-12-02 2015-12-02 Anomaly information acquisition method and apparatus

Publications (1)

Publication Number Publication Date
CN105404576A true CN105404576A (en) 2016-03-16

Family

ID=55470074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510870458.7A Pending CN105404576A (en) 2015-12-02 2015-12-02 Anomaly information acquisition method and apparatus

Country Status (1)

Country Link
CN (1) CN105404576A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027760A (en) * 2016-04-29 2016-10-12 北京小米移动软件有限公司 Information feedback method and device
CN106953766A (en) * 2017-03-31 2017-07-14 北京奇艺世纪科技有限公司 A kind of alarm method and device
CN107918565A (en) * 2017-11-17 2018-04-17 广东小天才科技有限公司 Reporting method of abnormal information of application program and mobile terminal
CN108063693A (en) * 2016-11-09 2018-05-22 腾讯科技(深圳)有限公司 A kind of information method for uploading and terminal device
CN108170586A (en) * 2017-12-26 2018-06-15 广东欧珀移动通信有限公司 log processing method, device, storage medium and terminal device
CN108197013A (en) * 2017-12-26 2018-06-22 广东欧珀移动通信有限公司 log processing method, device, terminal device and storage medium
CN110035056A (en) * 2019-02-22 2019-07-19 阿里巴巴集团控股有限公司 A kind of playback equipment detection method and device
CN110109819A (en) * 2019-03-16 2019-08-09 平安城市建设科技(深圳)有限公司 Using processing method, device, equipment and the readable storage medium storing program for executing debugged extremely
CN110442468A (en) * 2019-07-18 2019-11-12 北京奇艺世纪科技有限公司 Collapse diagnostic message collection method, system and electronic equipment
CN113485864A (en) * 2021-07-26 2021-10-08 北京达佳互联信息技术有限公司 Abnormality detection method, abnormality analysis method, abnormality detection apparatus, abnormality analysis apparatus, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102820983A (en) * 2011-11-18 2012-12-12 金蝶软件(中国)有限公司 Method for collecting system abnormality information, and manager
JP2014063424A (en) * 2012-09-24 2014-04-10 Mitsubishi Space Software Co Ltd Unauthorized communication detection device, cyber attack detection system, computer program and unauthorized communication detection method
CN104683154A (en) * 2015-03-09 2015-06-03 联想(北京)有限公司 Exception handling method, terminal equipment and server
CN104809030A (en) * 2015-05-19 2015-07-29 上海斐讯数据通信技术有限公司 Android-based exception handling system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102820983A (en) * 2011-11-18 2012-12-12 金蝶软件(中国)有限公司 Method for collecting system abnormality information, and manager
JP2014063424A (en) * 2012-09-24 2014-04-10 Mitsubishi Space Software Co Ltd Unauthorized communication detection device, cyber attack detection system, computer program and unauthorized communication detection method
CN104683154A (en) * 2015-03-09 2015-06-03 联想(北京)有限公司 Exception handling method, terminal equipment and server
CN104809030A (en) * 2015-05-19 2015-07-29 上海斐讯数据通信技术有限公司 Android-based exception handling system and method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027760A (en) * 2016-04-29 2016-10-12 北京小米移动软件有限公司 Information feedback method and device
CN108063693A (en) * 2016-11-09 2018-05-22 腾讯科技(深圳)有限公司 A kind of information method for uploading and terminal device
CN106953766A (en) * 2017-03-31 2017-07-14 北京奇艺世纪科技有限公司 A kind of alarm method and device
CN107918565A (en) * 2017-11-17 2018-04-17 广东小天才科技有限公司 Reporting method of abnormal information of application program and mobile terminal
CN108197013B (en) * 2017-12-26 2022-03-08 Oppo广东移动通信有限公司 Log processing method and device, terminal equipment and storage medium
CN108170586A (en) * 2017-12-26 2018-06-15 广东欧珀移动通信有限公司 log processing method, device, storage medium and terminal device
CN108197013A (en) * 2017-12-26 2018-06-22 广东欧珀移动通信有限公司 log processing method, device, terminal device and storage medium
CN110035056A (en) * 2019-02-22 2019-07-19 阿里巴巴集团控股有限公司 A kind of playback equipment detection method and device
CN110035056B (en) * 2019-02-22 2021-04-13 创新先进技术有限公司 Detection method and device for playing equipment
CN110109819A (en) * 2019-03-16 2019-08-09 平安城市建设科技(深圳)有限公司 Using processing method, device, equipment and the readable storage medium storing program for executing debugged extremely
CN110442468A (en) * 2019-07-18 2019-11-12 北京奇艺世纪科技有限公司 Collapse diagnostic message collection method, system and electronic equipment
CN113485864A (en) * 2021-07-26 2021-10-08 北京达佳互联信息技术有限公司 Abnormality detection method, abnormality analysis method, abnormality detection apparatus, abnormality analysis apparatus, electronic device, and storage medium
CN113485864B (en) * 2021-07-26 2024-05-14 北京达佳互联信息技术有限公司 Abnormality detection, abnormality analysis method, abnormality detection device, abnormality analysis device, electronic apparatus, and storage medium

Similar Documents

Publication Publication Date Title
CN105404576A (en) Anomaly information acquisition method and apparatus
CN104159275B (en) Method for connecting network and device
CN105099840A (en) Setting method and device of intelligent household scene
CN104239094A (en) Method and device for controlling background application programs and terminal equipment
CN105549849A (en) Method and device for processing misoperation instruction
CN105225096A (en) The disposal route of reminder announced message, device and terminal
CN105338399A (en) Image acquisition method and device
CN105182784A (en) Method and device of controlling intelligent devices and terminal
CN104933170A (en) Information exhibition method and device
CN104123341A (en) Method and device for downloading file and route device
CN105511907A (en) Application program upgrade method, device and system
CN105550357A (en) Web page refreshing method and device
CN104580637A (en) Telephone number marking method, terminal and cloud server
CN104158722A (en) Message push method and device used for light applications, as well as terminal and server
CN105703932A (en) Log recording and uploading method, log recording and reception method, terminal, and server
CN104837178A (en) Network accessing method and device
CN105512275A (en) Song collection method and device
CN103916468A (en) System upgrading method, terminal, server and upgrading system
CN105578401A (en) Locating information collection method, locating information collection device and mobile terminal
CN103914337A (en) Service calling method, device and terminal
CN104809158A (en) Network content filter method and device
CN105357735A (en) Method and device for accessing cell
CN104010231A (en) Data synchronizing method and device
CN104536787A (en) Resource preloading method and device
CN105094900A (en) Method and apparatus for downloading control program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160316

RJ01 Rejection of invention patent application after publication