CN104038821A - Method for uniformly gathering fault information of each functional module of Android television - Google Patents

Method for uniformly gathering fault information of each functional module of Android television Download PDF

Info

Publication number
CN104038821A
CN104038821A CN201410253687.XA CN201410253687A CN104038821A CN 104038821 A CN104038821 A CN 104038821A CN 201410253687 A CN201410253687 A CN 201410253687A CN 104038821 A CN104038821 A CN 104038821A
Authority
CN
China
Prior art keywords
android
functional module
information
log
fault message
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
CN201410253687.XA
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201410253687.XA priority Critical patent/CN104038821A/en
Publication of CN104038821A publication Critical patent/CN104038821A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for uniformly gathering fault information of each functional module of an Android television and relates to Android televisions. The method for uniformly gathering the fault information of each functional module of the Android television is aimed to solve the problem of the prior art that the output of an existing Log system of an Android system is messy, is great in number and is difficult to store. The method for uniformly gathering the fault information of each functional module of the Android television includes that firstly, defining protocols for the Android system and the functional modules of the Android television, wherein the protocols comprise that using a fixed TAG and a fixed content format to send fault information; secondly, improving the Log system of the Android system, and filtering the Log information according to the appointed TAG; thirdly, allowing the system to add the current local time of the system to the filtered information content, storing in a file which uses the process name of the current process under the appointed route as the name, and placing in the fixed position in a memory; fourthly, uploading the information stored in the fixed position of the memory to a server through the Android system. A user can specifically check the fault information through improving the Log system of the Android system. The method for uniformly gathering the fault information of each functional module of the Android television is suitable for gathering the fault information of each functional module of the Android television.

Description

Unified method of collecting the each functional module fault message of Android TV
Technical field
The present invention relates to Android TV, particularly the collection method of the each functional module fault message of Android TV.
Background technology
Intelligent television taking Android as operating system has become main flow, and intelligent television function various can bring different problems too, in program, add Log to print although the existing Log log system of Android itself is helped developer, by checking to print, problem is positioned and debugged.But the output of Log various and difficult preservation at random, and need just can check single terminal access relevant device, this has brought great inconvenience to the various software issues that solve in intelligent television, and user's experience has also been caused to certain negative effect.
Summary of the invention
Technical problem to be solved by this invention, just be to provide a kind of method of unifying to collect the each functional module fault message of Android TV, by the Log log system of transformation Android itself, make the place that each functional module may go wrong at it some to follow the relevant information that checks according to set protocol adding, send to system by Log mechanism, system will be preserved in these information Unified Sets, reaches developer and can check targetedly Log.
The present invention solve the technical problem, and the technical scheme of employing is that the each functional module fault of Android TV is collected in unification
The method of information, comprises following step:
Step 1, system in advance with the good agreement of Android TV functions module definition, described agreement comprises and transmits fault message with fixing TAG and convention form;
The Log log system of step 2, transformation Android system, filters Log information according to the TAG specifying;
Step 3, system are that the information content after filtering is added current system local zone time, are saved to a process name taking current process under specified path in the file of name, put into the fixed position of internal memory;
Step 4, system upload onto the server the information of preserving in the fixed position in internal memory.
Concrete, in described step 1, fixing TAG and convention form can artificially arrange.
Concrete, in described step 3, system local zone time is that the interface by utilizing system standard obtains.
Concrete, in described step 3, the process name of current process is the id that the getpid () interface by utilizing system standard obtains the process of calling Log interface, and according to this id to file system /obtain under proc/id/cmdline catalogue.
Concrete, in described step 3, the fixed position in internal memory can artificially be set.
Concrete, in described step 4, system can upload onto the server the information of preserving in the fixed position in internal memory by direct copying or by the special program of uploading.
The invention has the beneficial effects as follows, by the Log log system of transformation Android itself, make the place that each functional module may go wrong at it some to follow the relevant information that checks according to set protocol adding.First, the agreement defining with the each functional module of TV in advance, command system transmits fault message with fixing TAG and convention form.Utilize fixing TAG, the information of collecting is once filtered, filter out unconcerned information, then add a system time to information, send to system by Log mechanism, system will be kept at a fixed position in internal memory in these information Unified Sets.Developer just can check Log targetedly.Like this, each functional module sends information according to agreement, and user just can be positioned to fast problem source according to classification and analyze.Also facilitate us by information copy out or upload onto the server simultaneously.
Brief description of the drawings
Fig. 1 is the flow chart of the unified embodiment of the method for collecting the each functional module fault message of Android TV of the present invention.
Embodiment
Describe technical scheme of the present invention in detail below in conjunction with drawings and Examples:
The present invention is directed in prior art, the output various and difficult preservation at random of the existing Log log system of Android itself, and need just can check single terminal access relevant device, this has brought great inconvenience to the various software issues that solve in intelligent television, user's experience is also caused to the problem of certain negative effect, a kind of method of unifying to collect the each functional module fault message of Android TV is provided, first, system in advance with the good agreement of Android TV functions module definition, described agreement comprises and transmits fault message with fixing TAG and convention form, secondly, the Log log system of transformation Android system, filters Log information according to the TAG specifying, then, system is that the information content after filtering is added current system local zone time, is saved to a process name taking current process under specified path in the file of name, puts into the fixed position of internal memory, again then, system uploads onto the server the information of preserving in the fixed position in internal memory.By the Log log system of transformation Android itself, make the place that each functional module may go wrong at it some to follow the relevant information that checks according to set protocol adding.First, the agreement defining with the each functional module of TV in advance, command system transmits fault message with fixing TAG and convention form.Utilize fixing TAG, the information of collecting is once filtered, filter out unconcerned information, then add a system time to information, send to system by Log mechanism, system will be kept at a fixed position in internal memory in these information Unified Sets.Developer just can check Log targetedly.Like this, each functional module sends information according to agreement, and user just can be positioned to fast problem source according to classification and analyze.Also facilitate us by information copy out or upload onto the server simultaneously.
Embodiment
This example is for the intelligent television that uses Android system, by the Log log system of transformation Android itself, make the place that each functional module may go wrong at it some to follow the relevant information that checks according to set protocol adding, send to system by Log mechanism, system will be preserved in these information Unified Sets, and developer just can check Log targetedly.
The use procedure of the standard Log log system of Android system itself is as follows:
Developer can be in place corresponding to program by calling the corresponding interface of Log system, can help the information of routine analyzer to send to Log system, and this information is that the TAG (label) to be defined by developer identifies, like this, when giving Android terminal access commissioning device, after input Logcat order, can view the information that developer adds.
So, to transform the Log system of Android itself, just need in Log system, the information of collecting once be filtered, filter out unconcerned information, add a system time to information again, then information unification is kept to a fixed position in internal memory.To facilitate us by information copy out or upload onto the server etc.And the foundation of this filtration will lean on the TAG of identification information content to complete.We just need to specify a fixing TAG.
Filter out after redundant information, the information that developer checks is still a lot, and irregular, so we also will define agreement with the each functional module of TV in advance, except informing that they identify the unified TAG of fault message, collect the form of information in addition.Like this, each functional module sends information according to agreement, just can be positioned to fast problem source according to classification and analyze.
As shown in Figure 1, the unified method of collecting the each functional module fault message of Android TV of this example comprises following steps:
A, with each TV functions module definition good agreement of fault message about collection, agreement comprises the TAG of appointment, as the form of CH_ER_COLLECT and fault message;
When work, the each functional module in intelligent television, according to the agreement defining with us in advance, is called the standard interface of log system according to form, information transmission is come in.
The TAG of the information of log system is imported in B, inspection into, if TAG is the TAG specifying, represents it is the fault message that we need to collect, and carries out the operation that C~E is corresponding, otherwise does not process.
Concrete, at the function for receiving Log information of log system Plays, TAG is judged, if being the TAG specifying, TAG just carries out operation below.
C, utilize the interface of system standard to obtain current system time, and preserve.
Concrete, obtain system local zone time by the standard interface localtime of calling system, and be saved in character array currentTime.
D, utilize the getpid () interface of system standard to obtain the id of the process of calling Log interface, and according to this id to file system /obtain process name under proc/id/cmdline catalogue, and preserve.Concrete, this example is saved to obtained process name in character array g_proc_name, for convenience of description below, by the process G by name being kept in character array g_proc_name.
E, the time currentTime that the information content of importing into is preserved are saved in the file of fixed position in internal memory together, the process name G preserving in the file of described file g_proc_name by name.
Concrete, concentrate the information that is kept at fixed position in internal memory, can or be uploaded onto the server and facilitate developer to check by the special program of uploading for direct copying.
In sum, the present invention, by the Log log system of transformation Android itself, makes the place that each functional module may go wrong at it some to follow the relevant information that checks according to set protocol adding.First, the agreement defining with the each functional module of TV in advance, command system transmits fault message with fixing TAG and convention form.Utilize fixing TAG, the information of collecting is once filtered, filter out unconcerned information, then add a system time to information, send to system by Log mechanism, system will be kept at a fixed position in internal memory in these information Unified Sets.Developer just can check Log targetedly.Like this, each functional module sends information according to agreement, and user just can be positioned to fast problem source according to classification and analyze.Also facilitate us by information copy out or upload onto the server simultaneously.

Claims (6)

1. unified method of collecting the each functional module fault message of Android TV, is characterized in that, comprises following step:
Step 1, system in advance with the good agreement of Android TV functions module definition, described agreement comprises and transmits fault message with fixing TAG and convention form;
The Log log system of step 2, transformation Android system, filters Log information according to the TAG specifying;
Step 3, system are that the information content after filtering is added current system local zone time, are saved to a process name taking current process under specified path in the file of name, put into the fixed position of internal memory;
Step 4, system upload onto the server the information of preserving in the fixed position in internal memory.
2. unified method of collecting the each functional module fault message of Android TV according to claim 1, is characterized in that, in described step 1, fixing TAG and convention form can artificially arrange.
3. unified method of collecting the each functional module fault message of Android TV according to claim 1, is characterized in that, in described step 3, system local zone time is that the interface by utilizing system standard obtains.
4. unified method of collecting the each functional module fault message of Android TV according to claim 1, it is characterized in that, in described step 3, the process name of current process is the id that the getpid () interface by utilizing system standard obtains the process of calling Log interface, and according to this id to file system /obtain under proc/id/cmdline catalogue.
5. unified method of collecting the each functional module fault message of Android TV according to claim 1, is characterized in that, in described step 3, the fixed position in internal memory can artificially be set.
6. unified method of collecting the each functional module fault message of Android TV according to claim 1, it is characterized in that, in described step 4, system can upload onto the server the information of preserving in the fixed position in internal memory by direct copying or by the special program of uploading.
CN201410253687.XA 2014-06-09 2014-06-09 Method for uniformly gathering fault information of each functional module of Android television Pending CN104038821A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410253687.XA CN104038821A (en) 2014-06-09 2014-06-09 Method for uniformly gathering fault information of each functional module of Android television

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410253687.XA CN104038821A (en) 2014-06-09 2014-06-09 Method for uniformly gathering fault information of each functional module of Android television

Publications (1)

Publication Number Publication Date
CN104038821A true CN104038821A (en) 2014-09-10

Family

ID=51469389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410253687.XA Pending CN104038821A (en) 2014-06-09 2014-06-09 Method for uniformly gathering fault information of each functional module of Android television

Country Status (1)

Country Link
CN (1) CN104038821A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506939A (en) * 2014-12-15 2015-04-08 四川长虹电器股份有限公司 Information reporting method and television terminal
CN105847978A (en) * 2016-03-31 2016-08-10 康佳集团股份有限公司 Intelligent television-based information collection method and system
CN106383759A (en) * 2016-08-31 2017-02-08 福建联迪商用设备有限公司 Method and apparatus convenient for tracking and locating fault of payment terminal
CN106506445A (en) * 2016-09-21 2017-03-15 深圳市新国都支付技术有限公司 A kind of APK right management methods, device and system
WO2017050106A1 (en) * 2015-09-21 2017-03-30 中兴通讯股份有限公司 Set-top box fault information processing method and apparatus, and set-top box
CN106792193A (en) * 2016-12-23 2017-05-31 Tcl集团股份有限公司 A kind of repair system and restorative procedure based on Android TVs
CN107547580A (en) * 2016-06-23 2018-01-05 中兴通讯股份有限公司 A kind of control method and device of distributed network television IPTV system interior joint
CN108108283A (en) * 2017-12-21 2018-06-01 五八有限公司 Label addition method, device, computer readable storage medium and equipment
CN112527617A (en) * 2020-12-17 2021-03-19 四川长虹电器股份有限公司 Android television fault log recording method
CN113672465A (en) * 2021-08-23 2021-11-19 一飞(海南)科技有限公司 Method, system, medium, terminal and unmanned aerial vehicle for generating process log system by process name

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033801A (en) * 2009-09-28 2011-04-27 佳能株式会社 Information processing apparatus that records logs and control method thereof
CN102164053A (en) * 2010-02-18 2011-08-24 冲电气工业株式会社 Network fault detection system
CN102479145A (en) * 2010-11-30 2012-05-30 鸿富锦精密工业(深圳)有限公司 System and method for collecting software use information
CN103051956A (en) * 2012-12-24 2013-04-17 乐视致新电子科技(天津)有限公司 Set-top box for realizing log report and fault diagnosis and method thereof
CN103744890A (en) * 2013-12-23 2014-04-23 清华大学 Log separation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033801A (en) * 2009-09-28 2011-04-27 佳能株式会社 Information processing apparatus that records logs and control method thereof
CN102164053A (en) * 2010-02-18 2011-08-24 冲电气工业株式会社 Network fault detection system
CN102479145A (en) * 2010-11-30 2012-05-30 鸿富锦精密工业(深圳)有限公司 System and method for collecting software use information
CN103051956A (en) * 2012-12-24 2013-04-17 乐视致新电子科技(天津)有限公司 Set-top box for realizing log report and fault diagnosis and method thereof
CN103744890A (en) * 2013-12-23 2014-04-23 清华大学 Log separation method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506939A (en) * 2014-12-15 2015-04-08 四川长虹电器股份有限公司 Information reporting method and television terminal
CN104506939B (en) * 2014-12-15 2018-09-25 四川长虹电器股份有限公司 A kind of information uploading method and television terminal
WO2017050106A1 (en) * 2015-09-21 2017-03-30 中兴通讯股份有限公司 Set-top box fault information processing method and apparatus, and set-top box
CN105847978A (en) * 2016-03-31 2016-08-10 康佳集团股份有限公司 Intelligent television-based information collection method and system
CN105847978B (en) * 2016-03-31 2018-11-30 康佳集团股份有限公司 A kind of formation gathering method and system based on smart television
CN107547580A (en) * 2016-06-23 2018-01-05 中兴通讯股份有限公司 A kind of control method and device of distributed network television IPTV system interior joint
WO2018040968A1 (en) * 2016-08-31 2018-03-08 福建联迪商用设备有限公司 Method and device for facilitating on-site failure tracing and identification of payment terminal
CN106383759A (en) * 2016-08-31 2017-02-08 福建联迪商用设备有限公司 Method and apparatus convenient for tracking and locating fault of payment terminal
CN106506445A (en) * 2016-09-21 2017-03-15 深圳市新国都支付技术有限公司 A kind of APK right management methods, device and system
CN106792193A (en) * 2016-12-23 2017-05-31 Tcl集团股份有限公司 A kind of repair system and restorative procedure based on Android TVs
CN106792193B (en) * 2016-12-23 2020-06-23 Tcl科技集团股份有限公司 Android television-based repair system and repair method
CN108108283A (en) * 2017-12-21 2018-06-01 五八有限公司 Label addition method, device, computer readable storage medium and equipment
CN112527617A (en) * 2020-12-17 2021-03-19 四川长虹电器股份有限公司 Android television fault log recording method
CN113672465A (en) * 2021-08-23 2021-11-19 一飞(海南)科技有限公司 Method, system, medium, terminal and unmanned aerial vehicle for generating process log system by process name

Similar Documents

Publication Publication Date Title
CN104038821A (en) Method for uniformly gathering fault information of each functional module of Android television
CN101441629A (en) Automatic acquiring method of non-structured web page information
CN107957940B (en) Test log processing method, system and terminal
CN104050281A (en) Webpage information extraction method and device based on http protocol
CN102799519A (en) Automatic test method for cluster file system
CN105323640A (en) Method, system and equipment for realizing after-sales service of smart television based on Internet
CN106776320A (en) Android intelligent terminal automatization test system and method
CN106330621B (en) A kind of test method and test macro of interchanger transmission signal performance
CN105335316A (en) Motor assembling line serial port server based on cloud computation
CN110990482A (en) Data synchronization method and device between asynchronous databases
CN105812368A (en) Universal programming method for multiple communication protocols
CN106649342A (en) Data processing method and apparatus in data acquisition platform
CN103996276A (en) Remote transmission system and method for data of power plant
CN104537496A (en) Intelligent terminal device use condition statistical analysis method and device
CN111177193A (en) Flink-based log streaming processing method and system
CN111666193B (en) Method and system for monitoring and testing terminal function based on real-time log analysis
CN106899452B (en) Message circulation processing Internet of things terminal debugging method based on XM2M protocol
CN105224420B (en) A kind of analysis method and system of automatic parsing terminal abnormal
CN103092465B (en) A kind of generation method of emotional culture account background
CN102148702B (en) Method for managing network by utilizing network configuration protocol
CN109698813A (en) A kind of intelligent meter data recording system and method
CN107783856B (en) Method and system for testing parameters of image processor
CN104915308A (en) Method and device for supporting serial port and interface communication protocol stacks of TCP and UDP at same time
CN104517082B (en) Electric power data acquisition apparatus and method
CN103812676A (en) Apparatus and method for realizing log data real-time association

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20140910