CN110471826A - A kind of method and device for recording ADSP log based on high-pass platform - Google Patents

A kind of method and device for recording ADSP log based on high-pass platform Download PDF

Info

Publication number
CN110471826A
CN110471826A CN201910732268.7A CN201910732268A CN110471826A CN 110471826 A CN110471826 A CN 110471826A CN 201910732268 A CN201910732268 A CN 201910732268A CN 110471826 A CN110471826 A CN 110471826A
Authority
CN
China
Prior art keywords
log
adsp
diag
mdlog
tool
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
CN201910732268.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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201910732268.7A priority Critical patent/CN110471826A/en
Publication of CN110471826A publication Critical patent/CN110471826A/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/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Abstract

The embodiment of the present application discloses a kind of method and device that ADSP log is recorded based on high-pass platform.Technical solution provided by the embodiments of the present application is communicated by the diag_mdlog tool of high pass with ADSP, it interacts and saves log information, it is convenient that log information is analyzed, and user can trigger the operation for recording log by button event, convenient reading is stored in the log information of default memory space and is analyzed, in addition, the operation for recording log can be also triggered by remote command, and read the log information preserved, the problem of facilitating staff's remote analysis equipment, simplify the operating process of log information crawl, and improve the efficiency of log information crawl.

Description

A kind of method and device for recording ADSP log based on high-pass platform
Technical field
The invention relates to field of computer technology more particularly to a kind of ADSP log is recorded based on high-pass platform Method and device.
Background technique
When initially chip producer to the processing of the peripheral hardwares such as audio, sensor with to treat as other peripheral hardwares be all direct It hangs on mobile terminal application processor (AP), the driving of sensor also as the driving of other android, generates corresponding Device node provides data to upper layer.Sensor wishes that oneself can be constantly under working condition, such as pedometer applied field Scape, but sensor, which is hung over always, certainly will will affect stand-by power consumption on main AP.High pass is later by the processing of the peripheral hardwares such as sensor It has been put into audio digital signal processor (ADSP), primary processor suspend mode reduces power consumption when standby in this way, is existed by this ADSP Handle audio data gap incidentally can be the data processing of sensor.
An ADSP is typically provided on mobile terminal based on high-pass platform, the peripheral hardwares such as sensor are generally mounted in ADSP On, which can manage all the sensors on mobile terminal concentratedly, can save many resources of AP.Due to ADSP and AP It is two independent processors, general crawl log (log) is grabbed in real time by usb connection, and the transmitting of log information is deposited Storage mechanism is very complicated, and there are rooms for improvement.
Summary of the invention
The embodiment of the present application provides a kind of method and device that ADSP log is recorded based on high-pass platform, passes through the work of high pass Have diag_mdlog to communicate with ADSP, interaction simultaneously saves log information, convenient to analyze log information.
In a first aspect, the embodiment of the present application provides a kind of method for recording ADSP log based on high-pass platform, comprising:
Response log recording request starts diag_mdlog tool, and the diag_mdlog tool is communicated with ADSP, And grab the log information of ADSP;
The log information of diag_mdlog tool crawl is obtained, and log information is saved to default memory space;
Response, which is recorded, stops request, closes diag_mdlog tool.
Further, the diag_mdlog tool is communicated by QMI mode with ADSP.
Further, the response log recording request, start diag_mdlog tool before, further includes:
The entry condition and stop condition of diag_mdlog tool are set in the initialization process of system, wherein trip bar Part and stop condition respectively responsive to log recording request and stop request triggering.
Further, the log recording request and recording stop requesting to issue by button event and/or by remote Journey order issues.
Further, the response log recording request, start diag_mdlog tool, the diag_mdlog tool with ADSP is communicated, and grabs the log information of ADSP, comprising:
Receive the object log recording request be directed toward and record object;
Response object log recording request, starts diag_mdlog tool, and the diag_mdlog tool and ADSP are carried out Communication, and the recording object according to pointed by object log recording request grab log corresponding with object is recorded in ADSP and believe Breath.
Further, the response log recording request, starts diag_mdlog tool, and the diag_mdlog tool is used It is communicated in ADSP, and grabs the log information of ADSP, comprising:
It receives comprising the default time log recording request for recording duration;
Response time log recording request starts diag_mdlog tool, and carries out timing to recording time, described Diag_mdlog tool grabs the log information of ADSP for being communicated with ADSP;
The response, which is recorded, stops request, closes diag_mdlog tool and includes:
When reaching default recording duration between when recording, generates and record stopping request;
Response, which is recorded, stops request, closes diag_mdlog tool.
Further, the response log recording request, start diag_mdlog tool, the diag_mdlog tool with ADSP is communicated, and grabs the log information of ADSP, comprising:
Receive the event log recording request of direction event;
Response events log recording request, starts diag_mdlog tool, and the diag_mdlog tool and ADSP are carried out Communication, and grab log information corresponding with event pointed by event log recording request in ADSP.
In second aspect, the embodiment of the present application provides a kind of device that ADSP log is recorded based on high-pass platform, including Start management module, record management module and close management module, in which:
Start management module, be used for response log recording request, starts diag_mdlog tool, the diag_mdlog work Tool is communicated with ADSP, and grabs the log information of ADSP;
Record management module, for obtain diag_mdlog tool crawl log information, and by log information save to Default memory space;
Management module is closed, stops request for responding to record, closes diag_mdlog tool.
In the third aspect, the embodiment of the present application provides a kind of computer equipment, comprising: memory and one or more Processor;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the method for recording ADSP log based on high-pass platform as described in relation to the first aspect.
In fourth aspect, the embodiment of the present application provides a kind of storage medium comprising computer executable instructions, described Computer executable instructions when being executed by computer processor for execute as described in relation to the first aspect based on high-pass platform record The method of ADSP log processed.
The embodiment of the present application is communicated by the diag_mdlog tool of high pass with ADSP, and interaction simultaneously saves log information, side Just log information is analyzed, and user can trigger the operation for recording log by button event, convenient reading saves It is presetting the log information of memory space and is being analyzed, in addition, the operation for recording log can be also triggered by remote command, and The problem of reading the log information preserved, facilitating staff's remote analysis equipment simplifies the operation of log information crawl Process, and improve the efficiency of log information crawl.
Detailed description of the invention
Fig. 1 is the flow chart of the method provided by the embodiments of the present application that ADSP log is recorded based on high-pass platform;
Fig. 2 is the flow chart of another method that ADSP log is recorded based on high-pass platform provided by the embodiments of the present application;
Fig. 3 is the flow chart of another method that ADSP log is recorded based on high-pass platform provided by the embodiments of the present application;
Fig. 4 is the flow chart of another method that ADSP log is recorded based on high-pass platform provided by the embodiments of the present application;
Fig. 5 is the flow chart of another method that ADSP log is recorded based on high-pass platform provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of the device provided by the embodiments of the present application that ADSP log is recorded based on high-pass platform;
Fig. 7 is a kind of structural schematic diagram of computer equipment provided by the embodiments of the present application.
Specific embodiment
It is specifically real to the application with reference to the accompanying drawing in order to keep the purposes, technical schemes and advantages of the application clearer Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the application, Rather than the restriction to the application.It also should be noted that illustrating only for ease of description, in attached drawing related to the application Part rather than full content.It should be mentioned that some exemplary realities before exemplary embodiment is discussed in greater detail It applies example and is described as the processing or method described as flow chart.Although operations (or step) are described as sequence by flow chart Processing, but many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations It can be rearranged.The processing can be terminated when its operations are completed, be not included in attached drawing it is also possible to have Additional step.The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Fig. 1 gives the flow chart of the method provided by the embodiments of the present application that ADSP log is recorded based on high-pass platform, this The method for recording ADSP log based on high-pass platform for applying for that embodiment provides can be by recording ADSP log based on high-pass platform Device execute, wherein recording the device of ADSP log based on high-pass platform can be mobile phone, plate, intelligent wearable device etc. Mobile terminal, the device that should record ADSP log based on high-pass platform can be realized by way of hardware and/or software, and be integrated in In computer equipment.
Following devices to record ADSP log based on high-pass platform execute the side that ADSP log is recorded based on high-pass platform It is described for method.With reference to Fig. 1, the method that should record ADSP log based on high-pass platform is specifically included:
S101: response log recording request starts diag_mdlog tool, and the diag_mdlog tool and ADSP are carried out Communication, and grab the log information of ADSP.
Specifically, log recording request can be issued by button event and/or be issued by remote command.Wherein Button event is initiated by the device (following weighing device) for recording ADSP log based on high-pass platform.Illustratively, In Button is recorded in addition log on the interactive interface (such as interactive interface of system setting) of device, and user's click logs enroll button When, it is considered as and initiates button event, and generates log recording request.Wherein remote command is issued by server to device, and And server can obtain the log information saved in a device according to the sequence number or account information of device.In general, server It is established and is wirelessly communicated by internet with device, server can be sent by network to the device of specific sequence number or account information Log recording request.
Further, after generating or receiving log recording request, start diag_mdlog tool.Wherein diag_ Mdlog tool is the platform tools that high pass provides.Diag_mdlog tool after actuation, is carried out by QMI mode and ADSP Communication, and the log information in ADSP is grabbed, wherein QMI mode is the communicating between multi-kernel that high pass is developed based on shared drive mechanism Technology has corresponding library in the application processor side (AP) and the side ADSP, and has been completed bottom layer realization.
S102: the log information of diag_mdlog tool crawl is obtained, and log information is saved to default memory space.
Specifically, diag_mdlog tool grabs the log information in ADSP by QMI mode, and it is sent to using processing In device, application processor saves the log information grabbed into default memory space.Illustratively, default memory space can To be arranged under the root of device, in addition file can also be set as needed saved, log information is conveniently found. Such as increase log information storing path on the interactive interface that device is used to trigger button event, Default saving path can be The root of device is pre-set for saving the file of sensor log information, it is to be understood that log information Storing path can be customized as needed.
Illustratively, diag_mdlog tool is grabbed by log information to application processor, and application processor can incite somebody to action The log information synchronized upload of acquisition accelerates the efficiency that log information uploads into server.
S103: response, which is recorded, stops request, closes diag_mdlog tool.
Illustratively, similar with the initiation of log recording request, record stop request can by button event issue and/ Or it is issued by remote command.Wherein button event is initiated by device.Illustratively, on the interactive interface of device Stop button is recorded in addition, it is to be understood that before log admission button is clicked and generates log recording request, recording stops Only button is shown with gray scale or mask is shown, is just activated after log admission button is clicked and is normally shown.In addition, recording Button is recorded in stop button and log can be the same button, the form of expression area before and after diag_mdlog instrument start-up It does not indicate, and it is respectively that log recording request and recording stop request that it is clicked generated under different representations.
Further, when user clicks admission stop button, it is considered as and initiates button event, and generates recording and stop asking It asks.Wherein remote command is issued by server to device, in general, server and device establish channel radio by internet Letter, server can send to record by network to the device of specific sequence number or account information stops request.
After generating or receiving recording and stop request, application processor closes diag_mdlog tool, completes sensor The recording of log information.Optionally, after the recording for completing log information, log information can be packaged and is compressed, and to set in advance Fixed name format is named.Optionally, after the completion of log information is packaged and compresses, compressed package is uploaded in server, Wherein the save location of compressed package in the server can be the position that administrative staff specify, and be also possible to and device account information In corresponding network cloud disk.
Illustratively, the peripheral hardwares such as the sensor of device when something goes wrong, user can by click system interaction interface in Log admission button start diag_mdlog tool, and the log information in ADSP is read out, in diag_mdlog work After tool starting, user can carry out the operation of corresponding triggerable related sensor to device, so that diag_mdlog tool is to phase The log information of inductive sensing device is grabbed and is saved, and then can carry out accident analysis according to log information.
For example, user or service personnel for sensor die pairing device when overhauling (as discovery mobile phone is beating electricity Words discovery screen will not extinguish), user or service personnel click logs can record button in system interaction interface to start Diag_mdlog tool, and reproduction calls the operation of respective sensor mould group (such as to be beaten after diag_mdlog instrument start-up Phone and the operation answered close to ear), it is grabbed by diag_mdlog tool by log information of the QMI mode to ADSP And save to default memory space, then the log information of the related sensor mould group (such as range sensor) of crawl is divided Analysis.
For example, user's discovery fingerprint module or appearance of other sensors mould group when using plate is abnormal, and user oneself Can not Correct Analysis abnormal conditions, and it is inconvenient when giving plate to maintenance personnel, can by being linked up with maintenance personnel, and Under the guidance of maintenance personnel, click logs record button in system interaction interface, and reappear using fingerprint module or call phase The operation of inductive sensing device mould group.The log information that fingerprint module or respective sensor mould group are generated is uploaded to ADSP, and by Diag_mdlog tool is communicated with ADSP by QMI mode and grabs the log information of respective sensor mould group and transmission in ADSP To program processor, and save to default memory space.After clicking recording stop button, the acquisition pair from default memory space The log information answered and being sent at maintenance personnel is analyzed.In addition maintenance personnel can also pass through the sequence number or account of plate Information grabs the log information from network and is analyzed.
In addition maintenance personnel can issue log recording request to device by server, obtain correlation log information and carry out event Barrier analysis, solution can not catch log because of region and analyzed, and can not problem analysis to optimize the problem of product, and And this method is fast and simple, and specific aim is very strong, flexibly and easily.
It is above-mentioned, it is communicated by the diag_mdlog tool of high pass with ADSP, interaction simultaneously saves log information, convenient to log Information is analyzed, and user can trigger the operation for recording log by button event, and convenient reading is stored in default deposit It stores up the log information in space and is analyzed, in addition, can also trigger the operation for recording log by remote command, and read preservation The log information to get off the problem of facilitating staff's remote analysis equipment, simplifies the operating process of log information crawl, and mentions The efficiency of high log information crawl.
On the basis of the above embodiments, Fig. 2 gives provided by the embodiments of the present application another based on high-pass platform record The flow chart of the method for ADSP log processed.This is to above-mentioned based on high-pass platform based on the method that high-pass platform records ADSP log Record the materialization of the method for ADSP log.With reference to Fig. 2, the method that should record ADSP log based on high-pass platform includes:
S201: being arranged the entry condition and stop condition of diag_mdlog tool in the initialization process of system, wherein Entry condition and stop condition respectively responsive to log recording request and stop request triggering.
Specifically, needing to service diag_mdlog tool as one, could be used in this way by system.Therefore, it needs It is inner in init process (the initialization process of system), as a system service-log services.And in the initial of system The entry condition and stop condition of diag_mdlog tool are set in change process, and in response to log recording request and stop requesting And it is triggered and start and stop diag_mdlog tool.
Illustratively, diag_mdlog.rc first is established in system (system):
service diag_mdlog/vendor/bin/diag_mdlog-f/system/etc/DIAG_ sensor.cfg-o/sdcard/sensorlog/
class core
disabled
Oneshot
Then trigger condition is added in the init.rc of system:
Onproperty:sys.diag_mdlog=1
Start diag_mdlog//starting service
Onproperty:sys.diag_mdlog=0
Stop diag_mdlog//stopping service
When i.e. the characteristic value of sys.diag_mdlog is respectively set to 1 and 0, diag_mdlog is respectively started and closed Tool.
S202: response log recording request starts diag_mdlog tool, and the diag_mdlog tool and ADSP are carried out Communication, and grab the log information of ADSP.
Illustratively, when generating or receiving log recording request, diag_mdlog tool is arranged in application processor Entry condition sets 1 for the characteristic value of diag_mdlog tool, starting diag_mdlog tool by QMI mode with ADSP is communicated and is carried out the crawl of ADSP log information.The mode that the characteristic value of diag_mdlog tool is 1 is set are as follows:
SystemProperties.set("sys.diag_mdlog","1")
After the characteristic value of diag_mdlog tool is set as 1, the entry condition of diag_mdlog tool is satisfied, application Processor starts diag_mdlog tool.
S203: the log information of diag_mdlog tool crawl is obtained, and log information is saved to default memory space.
S204: response, which is recorded, stops request, closes diag_mdlog tool.
Illustratively, when generating or receiving recording stopping request, diag_mdlog tool is arranged in application processor Stop condition sets 0 for the characteristic value of diag_mdlog tool, so that application processor closes diag_mdlog tool. The mode that the characteristic value of diag_mdlog tool is 0 is set are as follows:
SystemProperties.set("sys.diag_mdlog","0")
After the characteristic value of diag_mdlog tool is set as 0, the stop condition of diag_mdlog tool is satisfied, application Processor closes diag_mdlog tool, completes the recording of log information.
For example, when user needs to analyze the sensor module of plate day can be clicked in system interaction interface Will records button triggering button event to issue log recording request, and application processor will in response to log recording request The characteristic value of diag_mdlog tool is set as 1, meets the entry condition of diag_mdlog tool, application processor starting Diag_mdlog tool is to carry out the crawl of ADSP log information, and when needing the recording of end log information, user can be It is clicked in system interactive interface and records stop button to issue to record and stop request, application processor is by the spy of diag_mdlog tool Value indicative is set as 0, meets the stop condition of diag_mdlog tool, and application processor closes diag_mdlog tool, completes flat The admission of plate sensor module log information.
It is above-mentioned, by the way that the start and stop condition of diag_mdlog tool is arranged in, so that diag_mdlog tool can be opened correctly Dynamic or closing.
On the basis of the above embodiments, Fig. 3 gives provided by the embodiments of the present application another based on high-pass platform record The flow chart of the method for ADSP log processed.This is to above-mentioned based on high-pass platform based on the method that high-pass platform records ADSP log Record the materialization of the method for ADSP log.With reference to Fig. 3, the method that should record ADSP log based on high-pass platform includes:
S301: the object log recording request be directed toward and record object is received.
Specifically, object log recording request can be issued by button event and/or be issued by remote command.Wherein Button event is initiated by the device (following weighing device) for recording ADSP log based on high-pass platform.Illustratively, In Log is added on the interactive interface of device and records button, when user's click logs enroll button, is considered as button event of initiating, and Generate object log recording request.Wherein remote command is issued by server to device, and server can be according to device Sequence number or account information obtain the log information saved in a device.In general, server and device are established by internet Wireless communication, server can be by networks to specific sequence number or the device sending object log recording request of account information.
Further, wherein recording object is interpreted as the sensor for needing to carry out log recording or other peripheral hardwares.Aobvious Show that log records to add in the interactive interface of the interactive interface or server of button for generating object log recording request to be used for The object selection list of object is recorded in selection, and alternative admission object can be pair of system default in object selection list As can also be the object that application processor scans for the sensor being mounted on ADSP or other peripheral hardwares and generates.It can With understanding, the selection for enrolling object can be multiselect or single selection mode.After choosing admission object, device or server are rung It should operate to generate in recording request and be directed toward the object log recording request for recording object.
S302: response object log recording request starts diag_mdlog tool, the diag_mdlog tool and ADSP It is communicated, and the recording object according to pointed by object log recording request, grabs day corresponding with object is recorded in ADSP Will information.
Specifically, starting diag_mdlog tool after generating or receiving object log recording request.diag_mdlog Tool is communicated with ADSP after actuation, by QMI mode, and the recording pair according to pointed by object log recording request As grabbing log information corresponding with object is recorded in ADSP.
S303: the log information of diag_mdlog tool crawl is obtained, and log information is saved to default memory space.
S304: response, which is recorded, stops request, closes diag_mdlog tool.
For example, user or service personnel (such as need the light to plate when overhauling for sensor die pairing device Line sensor is overhauled), user or service personnel can select corresponding object in the object selection list at system interaction interface (such as the object for selecting to be named as light sensor), and click logs record button to start diag_mdlog tool, and (environment such as adjustment plate local environment is bright for the operation of reproduction calling respective sensor mould group after diag_mdlog instrument start-up Degree), it is communicated by QMI mode with ADSP by diag_mdlog tool, and the identification according to corresponding to selected object is believed The corresponding log information of (sequence number of such as sensor module) identification respective sensor mould group is ceased, log corresponding in ADSP is believed Breath is grabbed and is saved to default memory space, then to the log of the related sensor mould group (such as light sensor) of crawl Information is analyzed.
It is above-mentioned, object is recorded by setting, the object for the log information that diag_mdlog tool grabs is selected, made The crawl for obtaining log information has more specific aim.
On the basis of the above embodiments, Fig. 4 gives provided by the embodiments of the present application another based on high-pass platform record The flow chart of the method for ADSP log processed.This is to above-mentioned based on high-pass platform based on the method that high-pass platform records ADSP log Record the materialization of the method for ADSP log.With reference to Fig. 4, the method that should record ADSP log based on high-pass platform includes:
S401: it receives comprising the default time log recording request for recording duration.
Illustratively, time log recording request can be issued by button event and/or be issued by remote command.Its Middle button event is initiated by the device (following weighing device) for recording ADSP log based on high-pass platform.Illustratively, Log is added on the interactive interface of device and records button, when user's click logs enroll button, is considered as and is initiated button event, And generate time log recording request.Wherein remote command is issued by server to device, and server can be according to device Sequence number or account information obtain and save log information in a device.In general, server and device are built by internet Vertical wireless communication, server can be by networks to specific sequence number or the device sending time log recording request of account information.
Further, wherein recording duration is interpreted as the time span for needing to carry out log recording.It is recorded in show log The interactive interface or server of button processed are used to generate in the interactive interface of time log recording request and add for selecting to preset Recording duration duration selective listing, alternative duration of recording can be the duration of system default in duration selective listing Range can also be the duration range of the customized setting of user.After choosing recording duration, device or server are in response to recording Request operation generates the time log recording request be directed toward and record object.
S402: response time log recording request starts diag_mdlog tool, and carries out timing, institute to recording time Diag_mdlog tool is stated for being communicated with ADSP, and grabs the log information of ADSP.
Specifically, starting diag_mdlog tool after generating or receiving time log recording request.diag_mdlog Tool is communicated with ADSP after actuation, by QMI mode, and is grabbed log corresponding with object is recorded in ADSP and believed Breath.Application processor carries out timing to recording time while diag_mdlog instrument start-up simultaneously.
S403: the log information of diag_mdlog tool crawl is obtained, and log information is saved to default memory space.
S404: it when reaching default recording duration between when recording, generates and records stopping request.
Specifically, application processor, which when timing duration has reached preset recording duration, generates to record, stops request.
S405: response, which is recorded, stops request, closes diag_mdlog tool.
For example, user or service personnel can when user or service personnel need to overhaul device in certain time length Corresponding recording duration is selected in the duration selective listing at system interaction interface, and click logs record button to start Diag_mdlog tool, and communicated by QMI mode with ADSP by diag_mdlog tool, to log corresponding in ADSP Information is grabbed and is saved to default memory space, and application processor starts to record after diag_mdlog instrument start-up Time processed carries out timing, and the behaviour of respective sensor mould group is called in reproduction in the time range that user or service personnel grow when recording Make, and when recording between reach default when recording duration, application processor, which generates to record, to stop requesting simultaneously closing diag_mdlog Tool, then user or service personnel can carry out the log information of the related sensor mould group grabbed in long range when recording Analysis, being not required to user or service personnel, actively stopping request being recorded in triggering, and optimization log information records mode and process.
It is above-mentioned, duration is recorded by setting, the duration for the log information that diag_mdlog tool grabs is selected, made The crawl for obtaining log information is more flexible.
Above-mentioned, on the basis of the above embodiments, Fig. 5 gives provided by the embodiments of the present application another flat based on high pass Platform records the flow chart of the method for ADSP log.This is to above-mentioned based on high pass based on the method that high-pass platform records ADSP log Platform records the materialization of the method for ADSP log.With reference to Fig. 5, the method that should record ADSP log based on high-pass platform includes:
S501: the event log recording request of direction event is received.
Specifically, event log recording request can be issued by button event and/or be issued by remote command.Wherein Button event is initiated by the device (following weighing device) for recording ADSP log based on high-pass platform.Illustratively, In Log is added on the interactive interface of device and records button, when user's click logs enroll button, is considered as button event of initiating, and Generate event log recording request.Wherein remote command is issued by server to device, and server can be according to device Sequence number or account information obtain the log information saved in a device.In general, server and device are established by internet Wireless communication, server can send event log recording request to the device of specific sequence number or account information by network.
Further, wherein event is interpreted as the process that equipment executes certain program or order, and diag_mdlog work What tool was enrolled in recording process is the log information of sensor related with the event.The interaction of button is recorded in show log Interface or server, which are used to generate in the interactive interface of event log recording request, to be added for selecting the EventSelect of event to arrange Table, alternative event binding has sensor related with corresponding event in EventSelect list.It is understood that event Selection can be multiselect or single selection mode.After choosing event, device or server generate in response to recording request operation and refer to To the event log recording request for recording object.
S502: response events log recording request starts diag_mdlog tool, the diag_mdlog tool and ADSP It is communicated, and grabs log information corresponding with event pointed by event log recording request in ADSP.
Specifically, starting diag_mdlog tool after generating or receiving event log recording request.diag_mdlog Tool is communicated with ADSP after actuation, by QMI mode, and the event according to pointed by event log recording request, Grab the log information of the sensor in ADSP with the event in relation to (binding).
S503: the log information of diag_mdlog tool crawl is obtained, and log information is saved to default memory space.
S504: response, which is recorded, stops request, closes diag_mdlog tool.
For example, user or the service personnel (thing of such as making a phone call when the sensor module called for certain event is overhauled The microphone and range sensor that part is called), user or service personnel can be in the EventSelect lists at system interaction interface Corresponding event (as selection is named as the event made a phone call) is selected, and click logs record button to start diag_mdlog Tool, and the operation (such as making a phone call) of respective sensor mould group is called in reproduction after diag_mdlog instrument start-up, by diag_ Mdlog tool is communicated by QMI mode with ADSP, and the knowledge according to corresponding to the sensor module that selected event is related to Other information (sequence number of such as sensor module) identifies corresponding log information, grabs to log information corresponding in ADSP And save to default memory space, then the log of the related sensor mould group (such as microphone and range sensor) of crawl is believed Breath is analyzed.
It is above-mentioned, the log information for the sensor that diag_mdlog tool grabs is selected by the event that setting is recorded It selects, so that the crawl of log information has more specific aim.
On the basis of the above embodiments, Fig. 6 is provided by the embodiments of the present application based on high-pass platform recording ADSP log Device structural schematic diagram.With reference to Fig. 6, the device provided in this embodiment for recording ADSP log based on high-pass platform includes opening Dynamic management module 61 records management module 62 and closes management module 63.
Wherein, start management module 61, be used for response log recording request, start diag_mdlog tool, the diag_ Mdlog tool is communicated with ADSP, and grabs the log information of ADSP;Management module 62 is recorded, for obtaining diag_ The log information of mdlog tool crawl, and log information is saved to default memory space;Management module 63 is closed, for ringing Stopping request should being recorded, diag_mdlog tool is closed.
It is above-mentioned, it is communicated by the diag_mdlog tool of high pass with ADSP, interaction simultaneously saves log information, convenient to log Information is analyzed, and user can trigger the operation for recording log by button event, and convenient reading is stored in default deposit It stores up the log information in space and is analyzed, in addition, can also trigger the operation for recording log by remote command, and read preservation The log information to get off the problem of facilitating staff's remote analysis equipment, simplifies the operating process of log information crawl, and mentions The efficiency of high log information crawl.
The embodiment of the present application also provides a kind of computer equipments, and the computer equipment can integrate the embodiment of the present application and mention What is supplied records the device of ADSP log based on high-pass platform.Fig. 7 is a kind of knot of computer equipment provided by the embodiments of the present application Structure schematic diagram.With reference to Fig. 7, which includes: input unit 73, output device 74, memory 72 and one or more A processor 71;The memory 72, for storing one or more programs;When one or more of programs are one Or multiple processors 71 execute, and are put down as provided by the above embodiment based on high pass so that one or more of processors 71 are realized The method of platform recording ADSP log.Wherein input unit 73, output device 74, memory 72 and processor 71 can pass through bus Or other modes connect, in Fig. 7 for being connected by bus.
Memory 72 is used as a kind of calculating device-readable storage medium, and it is executable to can be used for storing software program, computer Program and module, the corresponding program of method that ADSP log is recorded based on high-pass platform as described in the application any embodiment Instruction/module is (for example, recording the starting management module 61 in the device of ADSP log based on high-pass platform, recording management module 62 and close management module 63).Memory 72 can mainly include storing program area and storage data area, wherein storing program area It can application program needed for storage program area, at least one function;Storage data area can be stored is created according to using for equipment The data etc. built.In addition, memory 72 may include high-speed random access memory, it can also include nonvolatile memory, A for example, at least disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, it deposits Reservoir 72 can further comprise the memory remotely located relative to processor 71, these remote memories can be connected by network It is connected to equipment.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and its group It closes.
Input unit 73 can be used for receiving the number or character information of input, and generate with the user setting of equipment and The related key signals input of function control.Output device 74 may include that display screen etc. shows equipment.
Software program, instruction and the module that processor 71 is stored in memory 72 by operation, thereby executing equipment Various function application and data processing, that is, realize it is above-mentioned based on high-pass platform record ADSP log method.
Above-mentioned offer based on high-pass platform record ADSP log device and computer equipment can be used for executing above-mentioned reality The method for recording ADSP log based on high-pass platform for applying example offer, has corresponding function and beneficial effect.
The embodiment of the present application also provides a kind of storage medium comprising computer executable instructions, and the computer is executable Instruction records ADSP log based on high-pass platform as provided by the above embodiment for executing when being executed by computer processor Method, should based on high-pass platform record ADSP log method include: response log recording request, start diag_mdlog work Tool, the diag_mdlog tool is communicated with ADSP, and grabs the log information of ADSP;Obtain diag_mdlog Tool grasper The log information taken, and log information is saved to default memory space;Response, which is recorded, stops request, closes diag_mdlog work Tool.
Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to wrap It includes: install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Lan Basi (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include other Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term Matter " may include may reside in different location (such as by network connection different computer systems in) two or More storage mediums.Storage medium can store the program instruction that can be performed by one or more processors and (such as implement For computer program).
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application The method for recording ADSP log based on high-pass platform that executable instruction is not limited to the described above, it is any to can also be performed the application The relevant operation in the method for ADSP log is recorded provided by embodiment based on high-pass platform.
What is provided in above-described embodiment records the device and the executable sheet of computer equipment of ADSP log based on high-pass platform The method for applying recording ADSP log based on high-pass platform provided by any embodiment, not detailed description in the above-described embodiments Technical detail, reference can be made to the application any embodiment provided by based on high-pass platform record ADSP log method.
The technical principle that above are only the preferred embodiment of the application and used.The application is not limited to spy described here Determine embodiment, various significant changes, readjustment and the substitution being able to carry out for a person skilled in the art are not departing from The protection scope of the application.Therefore, although being described in further detail by above embodiments to the application, this Shen Above embodiments please be not limited only to, can also include other more equivalence enforcements in the case where not departing from the application design Example, and scope of the present application is determined by the scope of the claims.

Claims (10)

1. a kind of method for recording ADSP log based on high-pass platform characterized by comprising
Response log recording request starts diag_mdlog tool, and the diag_mdlog tool is communicated with ADSP, and is grabbed Take the log information of ADSP;
The log information of diag_mdlog tool crawl is obtained, and log information is saved to default memory space;
Response, which is recorded, stops request, closes diag_mdlog tool.
2. the method according to claim 1 for recording ADSP log based on high-pass platform, which is characterized in that the diag_ Mdlog tool is communicated by QMI mode with ADSP.
3. the method according to claim 1 for recording ADSP log based on high-pass platform, which is characterized in that the response day Will recording request, start diag_mdlog tool before, further includes:
In the initialization process of system be arranged diag_mdlog tool entry condition and stop condition, wherein entry condition and Stop condition is respectively responsive to log recording request and stops request triggering.
4. the method according to claim 1 for recording ADSP log based on high-pass platform, which is characterized in that the log record System request and recording stop request and are issued by button event and/or issued by remote command.
5. the method according to claim 1 for recording ADSP log based on high-pass platform, which is characterized in that the response day Will recording request starts diag_mdlog tool, and the diag_mdlog tool is communicated with ADSP, and grabs the day of ADSP Will information, comprising:
Receive the object log recording request be directed toward and record object;
Response object log recording request starts diag_mdlog tool, and the diag_mdlog tool is communicated with ADSP, And the recording object according to pointed by object log recording request, grab log information corresponding with object is recorded in ADSP.
6. the method according to claim 1 for recording ADSP log based on high-pass platform, which is characterized in that the response day Will recording request, starts diag_mdlog tool, and the diag_mdlog tool grabs ADSP for being communicated with ADSP Log information, comprising:
It receives comprising the default time log recording request for recording duration;
Response time log recording request starts diag_mdlog tool, and carries out timing, the diag_ to recording time Mdlog tool grabs the log information of ADSP for being communicated with ADSP;
The response, which is recorded, stops request, closes diag_mdlog tool and includes:
When reaching default recording duration between when recording, generates and record stopping request;
Response, which is recorded, stops request, closes diag_mdlog tool.
7. the method according to claim 1 for recording ADSP log based on high-pass platform, which is characterized in that the response day Will recording request starts diag_mdlog tool, and the diag_mdlog tool is communicated with ADSP, and grabs the day of ADSP Will information, comprising:
Receive the event log recording request of direction event;
Response events log recording request starts diag_mdlog tool, and the diag_mdlog tool is communicated with ADSP, And grab log information corresponding with event pointed by event log recording request in ADSP.
8. recording the device of ADSP log based on high-pass platform, which is characterized in that including starting management module, record management module With closing management module, in which:
Start management module, be used for response log recording request, start diag_mdlog tool, the diag_mdlog tool with ADSP is communicated, and grabs the log information of ADSP;
Management module is recorded, is saved for obtaining the log information of diag_mdlog tool crawl, and by log information to default Memory space;
Management module is closed, stops request for responding to record, closes diag_mdlog tool.
9. a kind of computer equipment characterized by comprising memory and one or more processors;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The existing method as claimed in claim 1 that ADSP log is recorded based on high-pass platform.
10. a kind of storage medium comprising computer executable instructions, which is characterized in that the computer executable instructions by For executing the side as claimed in claim 1 for recording ADSP log based on high-pass platform when computer processor executes Method.
CN201910732268.7A 2019-08-09 2019-08-09 A kind of method and device for recording ADSP log based on high-pass platform Pending CN110471826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910732268.7A CN110471826A (en) 2019-08-09 2019-08-09 A kind of method and device for recording ADSP log based on high-pass platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910732268.7A CN110471826A (en) 2019-08-09 2019-08-09 A kind of method and device for recording ADSP log based on high-pass platform

Publications (1)

Publication Number Publication Date
CN110471826A true CN110471826A (en) 2019-11-19

Family

ID=68511313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910732268.7A Pending CN110471826A (en) 2019-08-09 2019-08-09 A kind of method and device for recording ADSP log based on high-pass platform

Country Status (1)

Country Link
CN (1) CN110471826A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115871745A (en) * 2022-12-28 2023-03-31 江苏安防科技有限公司 Intelligent maintenance method and device applied to rail transit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130311597A1 (en) * 2012-05-16 2013-11-21 Apple Inc. Locally backed cloud-based storage
CN107545067A (en) * 2017-09-13 2018-01-05 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal
CN107609114A (en) * 2017-09-13 2018-01-19 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal
CN109614042A (en) * 2018-11-30 2019-04-12 维沃移动通信有限公司 A kind of method and terminal device storing log information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130311597A1 (en) * 2012-05-16 2013-11-21 Apple Inc. Locally backed cloud-based storage
CN107545067A (en) * 2017-09-13 2018-01-05 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal
CN107609114A (en) * 2017-09-13 2018-01-19 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal
CN109614042A (en) * 2018-11-30 2019-04-12 维沃移动通信有限公司 A kind of method and terminal device storing log information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
__SHADOW: "Android调试获取Log", 《HTTPS://WWW.CNBLOGS.COM/BASTARD/ARCHIVE/2013/05/03/3056985.HTML》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115871745A (en) * 2022-12-28 2023-03-31 江苏安防科技有限公司 Intelligent maintenance method and device applied to rail transit

Similar Documents

Publication Publication Date Title
JP2022031324A5 (en) Image communication system, image communication terminal, image communication method, program, and recording medium
US20080282160A1 (en) Designated screen capturing and automatic image exporting
CN1938757A (en) Method for driving multiple applications by common dialog management system
US8249243B2 (en) Method of remotely operating contact center systems
EP3197139B1 (en) Information processing system, information processing device, and information processing method
CN109032746A (en) A kind of display interface customizing method, system and the electronic equipment of wearable device
CN108986821A (en) A kind of method and apparatus that room and device relationships are set
JP2004072706A (en) Multiplex line recording system and recording method using network
JP2014529367A (en) Hierarchical display server system and method
US5835571A (en) Automated telephone service interface
US11328730B2 (en) Automated audio-to-text transcription in multi-device teleconferences
CN110471826A (en) A kind of method and device for recording ADSP log based on high-pass platform
JP5494208B2 (en) Image forming apparatus and control program therefor
KR100954515B1 (en) Recording and Replay Device for voice and screen
JP6621593B2 (en) Dialog apparatus, dialog system, and control method of dialog apparatus
JP4122046B1 (en) Face-to-face voice recording system and face-to-face voice collection device
US20160133243A1 (en) Musical performance system, musical performance method and musical performance program
CN112988482A (en) Server operation management method, device, terminal, server and storage medium
JPWO2009060880A1 (en) Communication system, method, and program
JP2008191981A (en) Network management system and program for it
KR100982911B1 (en) Recording and Replay Device for voice and screen
JP2020017897A (en) Terminal, conference system, control method and program of terminal
US20070071185A1 (en) Exchange apparatus and method of selecting voice storing area
JP7082182B1 (en) Information processing system, telephone, information processing method, and program
JP2003108504A (en) Image data display method, image data display server, image data display program and recording medium

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

Application publication date: 20191119

RJ01 Rejection of invention patent application after publication