CN107992407A - System and method using USB flash disk to android terminal equipment debugging - Google Patents
System and method using USB flash disk to android terminal equipment debugging Download PDFInfo
- Publication number
- CN107992407A CN107992407A CN201711129952.3A CN201711129952A CN107992407A CN 107992407 A CN107992407 A CN 107992407A CN 201711129952 A CN201711129952 A CN 201711129952A CN 107992407 A CN107992407 A CN 107992407A
- Authority
- CN
- China
- Prior art keywords
- flash disk
- terminal equipment
- usb flash
- android terminal
- usb
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3648—Software debugging using additional hardware
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4081—Live connection to bus, e.g. hot-plugging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/04—Diagnosis, testing or measuring for television systems or their details for receivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/426—Internal components of the client ; Characteristics thereof
- H04N21/42661—Internal components of the client ; Characteristics thereof for reading from or writing on a magnetic storage medium, e.g. hard disk drive
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44231—Monitoring of peripheral device or external card, e.g. to detect processing problems in a handheld device or the failure of an external recording device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4425—Monitoring of client processing errors or hardware failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Automation & Control Theory (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of system and method using USB flash disk to android terminal equipment debugging, it is related to home intelligent terminal equipment.This method comprises the following steps:Debugging file is established in U disk file system;Monitor the state change of the USB interface of android terminal equipment in real time, create device node file;When USB interface state changes, asynchronous notifications message is sent to upper layer application;Kernel buffer circle is controlled and read using monitoring module, and timing captures kernel log and stores;Asynchronous notifications message is received using monitoring module, dynamic reads the debug command in USB flash disk and operation;When android terminal equipment breaks down, USB flash disk is inserted into, judges to copy to the kernel log of current record in USB flash disk, and perform debug command prefabricated in USB flash disk there are during debugging file in USB flash disk.The present invention can quick obtaining daily record or message, reduce artificial origin caused by invalid daily record, while solve the problems, such as start daily record crawl it is incomplete.
Description
Technical field
The present invention relates to home intelligent terminal equipment, be specifically related to it is a kind of using USB flash disk to android terminal equipment debugging
System and method.
Background technology
Android system is a kind of operating system of the open source code based on Linux, with Android operation system
The operating system of this opening is used in the fast development of technology and continuous innovation, more and more electronic products, particularly
Some home terminal electronic products, such as Intelligent set top box, tablet/laptop etc..These carry Android operation system
Home terminal electronic product commercially occupied most of share.Share is bigger, and the probability to go wrong is also bigger.Work as end
When end equipment breaks down in end user or operator's hand, repair and debugging positions these problems and just becomes a very spine
The thing of hand, conventional debugging method are likely to be unable to Rapid Implementation because physical condition limits, it may appear that such as equipment is without string
Mouthful, no Android adb (Android Debug Bridge) debugging acid, or adb can not connect equipment and cannot use
Situation, causes that effective Debugging message or message cannot be captured.
By taking Intelligent set top box as an example, when the set-top box device failure of user's family, if engineering staff or technical service personnel
Debugging efforts cannot be fast and effectively performed at the first time, capture live daily record, and repair problem, it will influence client of operator
Grading to Intelligent set top box manufacturer, reduces CSAT, and then influences bid test.It presently, there are and obtain daily record or message
When important information, it is necessary to carry out cumbersome operation, invalid daily record caused by artificial origin is more, and start daily record crawl is not congruent
Defect.Therefore, home intelligent terminal equipment increases exclusive debugging method there is an urgent need for optimization software.
The content of the invention
The purpose of the invention is to overcome the shortcomings of above-mentioned background technology, there is provided one kind sets android terminal using USB flash disk
The system and method for standby debugging, the important information such as daily record or message obtains more rapid and convenient, without carrying out cumbersome operation again,
Invalid daily record caused by reducing artificial origin, while solve the problems, such as that start daily record crawl is not complete.
The present invention provides a kind of system using USB flash disk to android terminal equipment debugging, which is located at android terminal equipment
Interior, which establishes module, virtual linux kernel USB drive modules, using monitoring module including debugging file, wherein:
Debugging file is established module and is used for:A debugging text for being used to preserve debug command is established in U disk file system
Part;
Virtual linux kernel USB drive modules are used for:Monitor the state change of the USB interface of android terminal equipment in real time,
Create device node file;When the USB interface state of android terminal equipment changes, virtual linux kernel USB drives mould
Block sends asynchronous notifications message to upper layer application;
It is used for using monitoring module:Starting up monitors in real time, and the kernel annular for controlling and reading android terminal equipment is slow
Area is rushed, timing captures kernel log and stores;The different of virtual linux kernel USB drive modules transmission is received using monitoring module
Notification message is walked, dynamic reads the debug command in USB flash disk and operation;When android terminal equipment breaks down, USB flash disk is inserted into, should
Judge to copy to the kernel log of current record in USB flash disk, and perform in USB flash disk there are during debugging file in USB flash disk with monitoring module
Prefabricated debug command.
Based on the above technical solutions, the debug command includes delete operation, replacement operation, carry operation, liter
Level operation and daily record preserve operation.
Based on the above technical solutions, the virtual linux kernel USB drive modules are notified by standard asynchronous
Fasync mechanism, send asynchronous notifications message SIGIO signals to upper layer application, and SIGIO signal definitions input and output events, are
One of standard signal that linux system defines.
Based on the above technical solutions, it is described using monitoring module by calling the standard kernel daily record control of Linux
Klogctl function interfaces processed, to control and read the kernel buffer circle of android terminal equipment.
Based on the above technical solutions, the application monitoring module utilizes signal signal or signal processing
Sigaction function interfaces, receive the SIGIO signals that virtual linux kernel USB drive modules are sent, signal or
Sigaction function interfaces are the standard signal processing functions that Linux is provided.
The present invention also provides a kind of method using USB flash disk to android terminal equipment debugging based on said system, including with
Lower step:
S1, establish a debugging file for being used to preserve debug command in U disk file system;
S2, virtual linux kernel USB drive modules monitor the state change of the USB interface of android terminal equipment, wound in real time
Build slave node file;When the USB interface state of android terminal equipment changes, virtual linux kernel USB drive modules
Asynchronous notifications message is sent to upper layer application;
S3, monitor using monitoring module starting up in real time, controls and read the kernel loop buffer of android terminal equipment
Area, timing capture kernel log and store;The asynchronous of virtual linux kernel USB drive modules transmission is received using monitoring module
Notification message, dynamic read the debug command in USB flash disk and operation;
S4, when android terminal equipment breaks down, be inserted into USB flash disk, using monitoring module judge USB flash disk in there are debugging file
When, the kernel log of current record is copied in USB flash disk, and perform debug command prefabricated in USB flash disk.
Based on the above technical solutions, in step S1, the debug command includes delete operation, replacement operation, extension
Carry operation, updating operation and daily record and preserve operation.
Based on the above technical solutions, in step S2, the virtual linux kernel USB drive modules pass through asynchronous
Notify Fasync mechanism, send asynchronous notifications message SIGIO signals to upper layer application, SIGIO signal definitions input and output things
Part, is one of standard signal that linux system defines.
Based on the above technical solutions, in step S3, it is described using monitoring module by calling the standard of Linux
Klogctl function interfaces, to control and read the kernel buffer circle of android terminal equipment.
Based on the above technical solutions, in step S3, the application monitoring module using signal or
Sigaction function interfaces, receive the asynchronous notifications message SIGIO signals that virtual linux kernel USB drive modules are sent,
Signal or sigaction function interfaces are the standard signal processing functions that Linux is provided.
Compared with prior art, advantages of the present invention is as follows:
(1) system of android terminal equipment debugging is located in android terminal equipment using USB flash disk in the present invention, the system bag
Include debugging file and establish module, virtual linux kernel USB drive modules, using monitoring module, debugging file establishes module use
In:A debugging file for being used to preserve debug command is established in U disk file system;Virtual linux kernel USB drive modules
For:Monitor the state change of the USB interface of android terminal equipment in real time, create device node file;When android terminal equipment
USB interface state when changing, virtual linux kernel USB drive modules send asynchronous notifications message to upper layer application;Should
It is used for monitoring module:Starting up monitors in real time, controls and reads the kernel buffer circle of android terminal equipment, periodically grab
Take kernel log and store;The asynchronous notifications message of virtual linux kernel USB drive modules transmission is received using monitoring module,
Dynamic reads the debug command in USB flash disk and operation;When android terminal equipment breaks down, USB flash disk is inserted into, is sentenced using monitoring module
Determine to copy to the kernel log of current record in USB flash disk there are during debugging file in USB flash disk, and perform debugging life prefabricated in USB flash disk
Order.The present invention is acted by the hot plug of USB flash disk, allows Android operation system to carry out data interaction with USB flash disk, and execution is preset at USB flash disk
In debug command or debugging acid so that into Mobile state crawl log or message, replacement equipment file, edition upgrading etc. debug
Operation.The present invention can be inserted into USB flash disk at any time and be debugged, and the important information such as daily record or message obtains more rapid and convenient, does not have to
Cumbersome operation is carried out again, reduces invalid daily record caused by artificial origin, while solves the problems, such as that start daily record crawl is not complete.
(2) the virtual linux kernel USB drive modules in the present invention, can avoid modification from influencing core standard USB and drive
Dynamic, implementation is simple, and almost has no the influence of performance etc. to system.
(3) monitoring module is applied as what service started in the present invention, realizes the USB flash disk hot plug that asynchronous response kernel is sent
Event, can solve the problems, such as that lack of competence performs USB flash disk debugging script or debugging acid.
(4) present invention in addition to crawl log or message, can also be realized easy to extension by changing the file in USB flash disk
The functions such as system file is replaced, APK is installed or is upgraded, can effectively improve efficiency of research and development.
(5) present invention debugs Android smart machines using common U disk, dynamic access system related information, real
When, it is succinct, effectively, conveniently, it is powerful.
Brief description of the drawings
Fig. 1 is the structure diagram using USB flash disk to the system of android terminal equipment debugging in the embodiment of the present invention.
Fig. 2 is the flow chart using USB flash disk to the method for android terminal equipment debugging in the embodiment of the present invention.
Fig. 3 is the work flow diagram that monitoring module is applied in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawings and specific embodiment the present invention is described in further detail.
Shown in Figure 1, the embodiment of the present invention provides a kind of system using USB flash disk to android terminal equipment debugging, this is
For system in android terminal equipment, which establishes module, virtual linux kernel USB drive modules, application including debugging file
Monitoring module, wherein:
Debugging file is established module and is used for:A debugging text for being used to preserve debug command is established in U disk file system
Part;Debug command includes delete operation, replacement operation, carry operation, updating operation and daily record and preserves operation;
Virtual linux kernel USB drive modules are used for:Monitor the state change of the USB interface of android terminal equipment in real time,
Create device node file;When the USB interface state of android terminal equipment changes, virtual linux kernel USB drives mould
Block sends asynchronous notifications message SIGIO signals to upper layer application, SIGIO signal definitions by asynchronous notifications Fasync mechanism
Input and output event, is one of standard signal that linux system defines;
It is used for using monitoring module:Starting up monitors in real time, by the standard klogct (kernel logs for calling Linux
Control) function interface, to control and read the kernel buffer circle of android terminal equipment, timing captures kernel log and deposits
Storage;Signal (signal) or sigaction (signal processing) function interface are utilized using monitoring module, receives virtual Linux
The asynchronous notifications message SIGIO signals that kernel USB drive modules are sent, signal or sigaction function interfaces are Linux
The standard signal processing function of offer;Dynamic reads the debug command in USB flash disk and operation;When android terminal equipment breaks down
When, USB flash disk is inserted into, judges the kernel log of current record is copied to USB flash disk there are during debugging file in USB flash disk using monitoring module
In, and perform debug command prefabricated in USB flash disk.
Shown in Figure 2, the embodiment of the present invention also provides a kind of use USB flash disk based on said system to android terminal equipment
The method of debugging, comprises the following steps:
S1, establish a debugging file for being used to preserve debug command in U disk file system;The debug command includes
Delete operation, replacement operation, carry operation, updating operation and daily record preserve operation;
S2, virtual linux kernel USB drive modules monitor the state change of the USB interface of android terminal equipment, wound in real time
Build slave node file;When the USB interface state of android terminal equipment changes, virtual linux kernel USB drive modules
By Fasync (standard asynchronous notice) mechanism, send asynchronous notifications message SIGIO signals and determine to upper layer application, SIGIO signals
Justice input and output events, are one of standard signals that linux system defines;
S3, monitor using monitoring module starting up in real time, by calling the standard klogctl function interfaces of Linux, comes
Control and the kernel buffer circle for reading android terminal equipment, timing capture kernel log and store;Using monitoring module profit
With signal or sigaction function interfaces, the asynchronous notifications message that virtual linux kernel USB drive modules are sent is received
SIGIO signals, signal or sigaction function interfaces are the standard signal processing functions that Linux is provided;Dynamic reads U
Debug command and operation in disk;
S4, when android terminal equipment breaks down, be inserted into USB flash disk, using monitoring module judge USB flash disk in there are debugging file
When, the kernel log of current record is copied in USB flash disk, and perform debug command prefabricated in USB flash disk.
The principle of the embodiment of the present invention is illustrated in detail below.
The embodiment of the present invention needs to realize the monitoring of USB flash disk hot plug events, increases asynchronous notifications mechanism, USB flash disk is inserted into thing
Part allows Android upper procedure energy correct understandings and responding, to realize that function above needs to solve by correctly mapping and change
Following problem:
Firstth, USB flash disk hot plug events are correctly monitored, and USB flash disk or the normal use of other USB devices cannot be influenced;
Secondth, the asynchronous communication of driver and application program is solved the problems, such as;
3rd, android system realizes response, and has permission and perform the order preset in USB flash disk or debugging acid;
4th, live daily record or the preservation of message, the acquisition of start driving debugging log.
In order to solve the above-mentioned technical problem, the embodiment of the present invention needs to realize following three points:
(1) a kind of virtual linux kernel USB drive modules are realized, start shooting dynamic registration into kernel device Driver Model,
The virtual linux kernel USB drive modules are responsible for two pieces thing:1st, the hot plug event on USB interface is monitored in real time;2nd, using different
Step notice Fasync mechanism, Fasync is the mechanism of a kind of driver and interapplication communications that Linux is provided, is passed through
Fasync mechanism sends asynchronous notifications message SIGIO signals to upper layer application;SIGIO signal definitions input and output events, are
One of standard signal that linux system defines.
(2) realize that one is applied monitoring module, installs SIGIO signals, and receive virtual linux kernel USB drive modules
The asynchronous notifications of transmission, read the debugging script in USB flash disk or perform debugging acid.Made using monitoring module with root user rights
For an android system service, starting up monitors in real time, and root authority, which makes to obtain using monitoring module, to be read outside USB flash disk etc.
If the ability of information;In addition, the Linux bottoms in timing crawl Android device operational process of starting shooting using monitoring module drive
Dynamic and kernel tailoring information, and be stored in the storage equipment partition of Android device itself.
(3) file of specific names, and built-in debug command are placed in USB flash disk, easy to the identification of above application monitoring module simultaneously
It is read, is subsequently also convenient for carrying out the extension of other functions;And the Linux bottom layer drivings and kernel for storing application monitoring module
Debugging message is copied in USB flash disk
It is described in detail below by a specific embodiment.
Prepare a common U disk, capacity and file system are unrestricted, and a special name is newly established in U disk file system
The debugging file of title, title are fixed, this file is used to preserve debug command;Specifically, debug command includes delete operation, replaces
Operation, carry operation, updating operation and daily record preserve operation etc., but it is several to be not limited to the above;
Increase a virtual linux kernel USB drive module in android system, this module is driven as standard Linux
To android system kernel, start loads dynamic program start-up logging, using linux kernel USB core driver framework interface,
Itself call back function is registered to USB core, monitors the state change of USB interface in real time, and create device node file;When
The USB interface state of Android device changes, then by Fasync mechanism send asynchronous notifications message SIGIO signals to
Upper layer application;
Increase by one in android system and apply monitoring module, Android file system is placed into after the compiling of this module
The catalogue such as system under, as system background is operated in after system service starting up, specifically, change android system
The init.rc scripts of acquiescence, will apply monitoring module to be run with Root user rights;Init.rc files are an Android marks
Accurate configurable initialization files, increase the work(such as new starting up's system service by configuring init.rc files and can realize
Energy.
It is shown in Figure 3, it is as follows using the control logic of monitoring module:
Using monitoring module by calling the standard klogctl function interfaces of Linux, control and kernel loop buffer is read
Area, obtains kernel log, and timing captures, and the specific location stored to Android device own memory device;Utilize signal
Or sigaction functions receive the SIGIO signals that virtual linux kernel USB drive modules are sent, and processing function is set,
Dynamic reads the debug command in USB flash disk and operation.
Klogctl function interfaces are used for the content for reading the LOG loop buffers of kernel state;
Signal or sigaction function interfaces are the standard signal processing functions that Linux is provided;
When equipment fault occurs, USB flash disk is inserted into, judges to whether there is above-mentioned special name in USB flash disk using monitoring device
Debugging file, if in the presence of copying to the kernel log of current record in USB flash disk, and perform debug command prefabricated in USB flash disk.
Those skilled in the art can carry out various modifications and variations to the embodiment of the present invention, if these modifications and change
Type is within the scope of the claims in the present invention and its equivalent technologies, then these modifications and variations are also in protection scope of the present invention
Within.
The prior art that the content not being described in detail in specification is known to the skilled person.
Claims (10)
1. a kind of system using USB flash disk to android terminal equipment debugging, it is characterised in that the system is located at android terminal equipment
Interior, which establishes module, virtual linux kernel USB drive modules, using monitoring module including debugging file, wherein:
Debugging file is established module and is used for:A debugging file for being used to preserve debug command is established in U disk file system;
Virtual linux kernel USB drive modules are used for:Monitor the state change of the USB interface of android terminal equipment in real time, create
Device node file;When the USB interface state of android terminal equipment changes, virtual linux kernel USB drive modules hair
Asynchronous notifications message is sent to upper layer application;
It is used for using monitoring module:Starting up monitors in real time, controls and read the kernel buffer circle of android terminal equipment,
Timing crawl kernel log simultaneously stores;The asynchronous notifications of virtual linux kernel USB drive modules transmission are received using monitoring module
Message, dynamic read the debug command in USB flash disk and operation;When android terminal equipment breaks down, USB flash disk is inserted into, using monitoring
Module judges to copy to the kernel log of current record in USB flash disk, and perform prefabricated in USB flash disk there are during debugging file in USB flash disk
Debug command.
2. the system using USB flash disk to android terminal equipment debugging as claimed in claim 1, it is characterised in that:The debugging life
Order preserves operation comprising delete operation, replacement operation, carry operation, updating operation and daily record.
3. the system using USB flash disk to android terminal equipment debugging as claimed in claim 1, it is characterised in that:It is described virtual
Linux kernel USB drive modules notify Fasync mechanism by standard asynchronous, send asynchronous notifications message SIGIO signals to upper
Layer application, SIGIO signal definitions input and output events, are one of standard signals that linux system defines.
4. the system using USB flash disk to android terminal equipment debugging as claimed in claim 1, it is characterised in that:The application prison
Control module is by calling the standard kernel daily record of Linux to control klogctl function interfaces, to control and read android terminal equipment
Kernel buffer circle.
5. the system using USB flash disk to android terminal equipment debugging as claimed in claim 1, it is characterised in that:The application prison
Control module utilizes signal signal or signal processing sigaction function interfaces, receives virtual linux kernel USB drivings mould
The SIGIO signals that block is sent, signal or sigaction function interfaces are the standard signal processing functions that Linux is provided.
A kind of 6. method using USB flash disk to android terminal equipment debugging based on system described in claim 1, it is characterised in that
Comprise the following steps:
S1, establish a debugging file for being used to preserve debug command in U disk file system;
S2, virtual linux kernel USB drive modules monitor the state change of the USB interface of android terminal equipment in real time, and establishment is set
Slave node file;When the USB interface state of android terminal equipment changes, virtual linux kernel USB drive modules are sent
Asynchronous notifications message is to upper layer application;
S3, monitor using monitoring module starting up in real time, controls and read the kernel buffer circle of android terminal equipment, fixed
When capture and kernel log and store;The asynchronous notifications that virtual linux kernel USB drive modules transmission is received using monitoring module disappear
Breath, dynamic read the debug command in USB flash disk and operation;
S4, when android terminal equipment breaks down, be inserted into USB flash disk, judge using monitoring module in USB flash disk there are during debugging file,
The kernel log of current record is copied in USB flash disk, and performs debug command prefabricated in USB flash disk.
7. the method using USB flash disk to android terminal equipment debugging as claimed in claim 6, it is characterised in that:In step S1, institute
State debug command and include delete operation, replacement operation, carry operation, updating operation and daily record preservation operation.
8. the method using USB flash disk to android terminal equipment debugging as claimed in claim 6, it is characterised in that:In step S2, institute
Virtual linux kernel USB drive modules are stated by asynchronous notifications Fasync mechanism, send asynchronous notifications message SIGIO signals to
Upper layer application, SIGIO signal definitions input and output events, are one of standard signals that linux system defines.
9. the method using USB flash disk to android terminal equipment debugging as claimed in claim 6, it is characterised in that:In step S3, institute
The standard klogctl function interfaces for applying monitoring module by calling Linux are stated, to control and read the interior of android terminal equipment
Core buffer circle.
10. the method using USB flash disk to android terminal equipment debugging as claimed in claim 6, it is characterised in that:In step S3,
The application monitoring module utilizes signal or sigaction function interfaces, receives virtual linux kernel USB drive modules
The asynchronous notifications message SIGIO signals of transmission, signal or sigaction function interfaces are the standard signals that Linux is provided
Handle function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711129952.3A CN107992407A (en) | 2017-11-15 | 2017-11-15 | System and method using USB flash disk to android terminal equipment debugging |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711129952.3A CN107992407A (en) | 2017-11-15 | 2017-11-15 | System and method using USB flash disk to android terminal equipment debugging |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107992407A true CN107992407A (en) | 2018-05-04 |
Family
ID=62030358
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711129952.3A Pending CN107992407A (en) | 2017-11-15 | 2017-11-15 | System and method using USB flash disk to android terminal equipment debugging |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107992407A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109491878A (en) * | 2018-09-26 | 2019-03-19 | 深圳市吉祥腾达科技有限公司 | A method of equipment of serial Log is acquired by USB flash disk |
CN109902068A (en) * | 2019-02-15 | 2019-06-18 | 广州视源电子科技股份有限公司 | Method and device for capturing household appliance logs and computer readable storage medium |
CN110308937A (en) * | 2019-04-28 | 2019-10-08 | 宁波三星医疗电气股份有限公司 | A method of hyper terminal serial ports in electric power acquisition terminal is opened based on USB flash disk |
CN110830850A (en) * | 2019-10-31 | 2020-02-21 | 四川九州电子科技股份有限公司 | Debugging information acquisition method of android set top box |
CN112000374A (en) * | 2020-07-13 | 2020-11-27 | 深圳市智微智能软件开发有限公司 | USB touch screen replacing method, device, equipment and medium applied to android system |
CN112286858A (en) * | 2020-10-30 | 2021-01-29 | 山东众海智能科技有限公司 | Linux system I2C driver method based on signal |
CN113472589A (en) * | 2021-07-14 | 2021-10-01 | 斑马网络技术有限公司 | T-box troubleshooting method and device |
CN113505055A (en) * | 2021-04-22 | 2021-10-15 | 惠州市德赛西威智能交通技术研究院有限公司 | Method and system for conveniently and rapidly capturing log based on Android system |
CN114124684A (en) * | 2021-10-22 | 2022-03-01 | 杭州依赛通信有限公司 | Method for realizing zero-contact full-automatic network element deployment by using USB flash disk |
CN115190009A (en) * | 2021-03-22 | 2022-10-14 | 广州汽车集团股份有限公司 | Vehicle-mounted multimedia part log export method and system and storage medium |
US11520681B2 (en) * | 2018-01-23 | 2022-12-06 | Amlogic (Shanghai) Co., Ltd. | System log collection method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101364202A (en) * | 2008-09-17 | 2009-02-11 | 青岛海信移动通信技术股份有限公司 | Method and device for debugging proceeding based on Linux platform |
CN103246586A (en) * | 2013-04-19 | 2013-08-14 | 福州瑞芯微电子有限公司 | Method for utilizing USB (universal serial bus) storage equipment for ADB (android debug bridge) debugging on android platform |
CN103577308A (en) * | 2013-11-15 | 2014-02-12 | 惠州Tcl移动通信有限公司 | Method for obtaining log files of mobile device |
CN103577313A (en) * | 2012-07-27 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Mobile terminal application program testing method and device |
CN103729283A (en) * | 2013-12-20 | 2014-04-16 | 小米科技有限责任公司 | System log output method and device and terminal device |
US9588872B2 (en) * | 2015-02-20 | 2017-03-07 | Vmware, Inc. | Discovery of code paths |
-
2017
- 2017-11-15 CN CN201711129952.3A patent/CN107992407A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101364202A (en) * | 2008-09-17 | 2009-02-11 | 青岛海信移动通信技术股份有限公司 | Method and device for debugging proceeding based on Linux platform |
CN103577313A (en) * | 2012-07-27 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Mobile terminal application program testing method and device |
CN103246586A (en) * | 2013-04-19 | 2013-08-14 | 福州瑞芯微电子有限公司 | Method for utilizing USB (universal serial bus) storage equipment for ADB (android debug bridge) debugging on android platform |
CN103577308A (en) * | 2013-11-15 | 2014-02-12 | 惠州Tcl移动通信有限公司 | Method for obtaining log files of mobile device |
CN103729283A (en) * | 2013-12-20 | 2014-04-16 | 小米科技有限责任公司 | System log output method and device and terminal device |
US9588872B2 (en) * | 2015-02-20 | 2017-03-07 | Vmware, Inc. | Discovery of code paths |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11520681B2 (en) * | 2018-01-23 | 2022-12-06 | Amlogic (Shanghai) Co., Ltd. | System log collection method |
CN109491878A (en) * | 2018-09-26 | 2019-03-19 | 深圳市吉祥腾达科技有限公司 | A method of equipment of serial Log is acquired by USB flash disk |
CN109902068A (en) * | 2019-02-15 | 2019-06-18 | 广州视源电子科技股份有限公司 | Method and device for capturing household appliance logs and computer readable storage medium |
CN110308937B (en) * | 2019-04-28 | 2022-06-03 | 宁波三星医疗电气股份有限公司 | Method for opening super terminal serial port in power acquisition terminal based on USB flash disk |
CN110308937A (en) * | 2019-04-28 | 2019-10-08 | 宁波三星医疗电气股份有限公司 | A method of hyper terminal serial ports in electric power acquisition terminal is opened based on USB flash disk |
CN110830850A (en) * | 2019-10-31 | 2020-02-21 | 四川九州电子科技股份有限公司 | Debugging information acquisition method of android set top box |
CN112000374A (en) * | 2020-07-13 | 2020-11-27 | 深圳市智微智能软件开发有限公司 | USB touch screen replacing method, device, equipment and medium applied to android system |
CN112000374B (en) * | 2020-07-13 | 2024-01-02 | 深圳市智微智能软件开发有限公司 | USB touch screen replacement method, device, equipment and medium applied to android system |
CN112286858A (en) * | 2020-10-30 | 2021-01-29 | 山东众海智能科技有限公司 | Linux system I2C driver method based on signal |
CN115190009A (en) * | 2021-03-22 | 2022-10-14 | 广州汽车集团股份有限公司 | Vehicle-mounted multimedia part log export method and system and storage medium |
CN115190009B (en) * | 2021-03-22 | 2024-03-19 | 广州汽车集团股份有限公司 | Vehicle-mounted multimedia part log export method and system and storage medium |
CN113505055A (en) * | 2021-04-22 | 2021-10-15 | 惠州市德赛西威智能交通技术研究院有限公司 | Method and system for conveniently and rapidly capturing log based on Android system |
CN113472589A (en) * | 2021-07-14 | 2021-10-01 | 斑马网络技术有限公司 | T-box troubleshooting method and device |
CN114124684A (en) * | 2021-10-22 | 2022-03-01 | 杭州依赛通信有限公司 | Method for realizing zero-contact full-automatic network element deployment by using USB flash disk |
CN114124684B (en) * | 2021-10-22 | 2024-04-19 | 杭州依赛通信有限公司 | Method for realizing zero-contact full-automatic deployment of network elements by using USB flash disk |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107992407A (en) | System and method using USB flash disk to android terminal equipment debugging | |
US11169867B2 (en) | System and method for identifying operational disruptions in mobile computing devices via a monitoring application that repetitively records multiple separate consecutive files listing launched or installed applications | |
US11652918B2 (en) | Using automatically collected device problem information to route and guide users' requests | |
CN101799751B (en) | Method for building monitoring agent software of host machine | |
CN105164644B (en) | Hook frame | |
JP6171386B2 (en) | Controller, information processing apparatus and program | |
CN106201672B (en) | Timed task setting system and timed task running method thereof | |
CN101317381A (en) | Ability management object maintenance, ability management method, system and terminal | |
CN104185836A (en) | Method and system for verifying proper operation of computing device after system change | |
CN102571498A (en) | Fault injection control method and device | |
JP2014157506A (en) | Controller, information processing device, and program | |
CN103544095A (en) | Server program monitoring method and system of server program | |
CN111324599B (en) | Block chain experiment system and management method | |
CN108763056A (en) | A kind of automatic test bullet frame processing method and terminal | |
US20120144080A1 (en) | Method and Device for Monitoring Running State of Card | |
CN106980493A (en) | Firmware management method and apparatus | |
CN111966465A (en) | Method, system, equipment and medium for modifying configuration parameters of host machine in real time | |
CN108762886B (en) | Fault detection recovery method and system for virtual machine | |
CN102314382A (en) | Method and module for emergently probing system information | |
US20130318508A1 (en) | Remote card content management using synchronous server-side scripting | |
CN112241373A (en) | Automatic test method, test device, processor and test system | |
WO2014056350A1 (en) | Base station and maintenance method therefor | |
CN106681911B (en) | A kind of implementation method of certainty playback that supporting direct fault location | |
US20130165099A1 (en) | Enhanced System and Method for Custom Programming of Large Groups of Phones Without Requiring Additional Equipment | |
CN101782886B (en) | Transmission control system and method |
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: 20180504 |
|
RJ01 | Rejection of invention patent application after publication |