CN109491878A - A method of equipment of serial Log is acquired by USB flash disk - Google Patents
A method of equipment of serial Log is acquired by USB flash disk Download PDFInfo
- Publication number
- CN109491878A CN109491878A CN201811125139.3A CN201811125139A CN109491878A CN 109491878 A CN109491878 A CN 109491878A CN 201811125139 A CN201811125139 A CN 201811125139A CN 109491878 A CN109491878 A CN 109491878A
- Authority
- CN
- China
- Prior art keywords
- flash disk
- usb flash
- log
- equipment
- 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/30—Monitoring
- G06F11/34—Recording 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/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of methods for acquiring equipment of serial Log by USB flash disk, first create logo file in USB flash disk, then plug USB flash disk twice: insertion equipment, start recording Log extract USB flash disk for the first time, stop recording Log USB flash disk for the first time;USB flash disk is inserted into equipment for the second time, and the serial ports Log of preservation in a device is copied in USB flash disk.The beneficial effects of the present invention are: can be in the case where no serial ports needle, not opening equipment outer cage, equipment of serial Log can be acquired by plugging USB flash disk, the debug information of serial ports can be output to Quick Acquisition equipment, positioning, analysis, the time solved the problems, such as have been saved, the efficiency for solving the problems, such as existing net is improved.
Description
Technical field
The present invention relates to acquisition equipment of serial Log(journal files) method, more particularly to one kind by USB flash disk acquires equipment
The method of serial ports Log.
Background technique
The Debugging message of embedded device based on Linux is output to serial port terminal, and developer believes according to AccessPort
Breath carries out functional development and debug work, to save the development time, improve development efficiency.
Equipment after volume production shipment generally all eliminates the serial ports needle in equipment, and is equipped with casing, what user used
After equipment is out of order, it is difficult quickly and easily to acquire AccessPort information by serial ports needle, reduce positioning problems and asks
The efficiency that the key to exercises is determined.
Summary of the invention
In order to solve the problems in the prior art, equipment of serial Log(log is acquired by USB flash disk the present invention provides a kind of
File) method.
The present invention provides a kind of methods for acquiring equipment of serial Log by USB flash disk, logo file are first created in USB flash disk, so
Plug USB flash disk twice afterwards: insertion equipment, start recording Log extract USB flash disk for the first time, stop recording Log USB flash disk for the first time;USB flash disk second
Secondary insertion equipment copies the serial ports Log of preservation in a device in USB flash disk to.
As a further improvement of the present invention, USB flash disk for the first time insertion equipment the following steps are included:
S11, insertion creation for the first time have the USB flash disk of logo file;
S12, USB driving report USB flash disk ONLINE event to memory management module;
S13, memory management module send USB flash disk ONLINE event and acquire Log managing process to USB flash disk;
S14, USB flash disk acquisition Log managing process detect USB flash disk ONLINE event;
S15, judge that the logo file in USB flash disk whether there is, if it is present opening the corresponding debugging switch of logo file, such as
Fruit is not present, then terminates;
S16, pull-up one acquisition Log process;
The master of S17, serial ports output redirection to a pair of of pseudo-terminal;
S18, the slaver for reading pseudo-terminal, Log is saved in a device, and a copy Log mark is automatically generated in USB flash disk
File is for copying Log;
S19, USB flash disk is extracted for the first time;
S110, USB driving report USB flash disk OFFLINE event;
S111, memory management module send OFFLINE event and acquire Log managing process to USB flash disk;
S112, turn off debugging switch, close the process of acquisition Log, close serial ports to the redirection of pseudo-terminal, be automatically deleted USB flash disk
The logo file of middle creation.
As a further improvement of the present invention, USB flash disk second be inserted into equipment the following steps are included:
S21, second of USB flash disk of the insertion with copy Log logo file;
S22, USB driving report USB flash disk ONLINE event to memory management module;
S23, memory management module send USB flash disk ONLINE event and acquire Log managing process to USB flash disk;
S24, USB flash disk acquisition Log managing process detect USB flash disk ONLINE event;
S25, judge that the copy Log logo file in USB flash disk whether there is, if it is present the serial ports Log by preservation in a device
It copies in USB flash disk, if it does not exist, then terminating;
S26, USB flash disk is extracted second;
S27, end.
The beneficial effects of the present invention are: through the above scheme, can in no serial ports needle, do not open the case where equipment outer cage
Under, equipment of serial Log can be acquired by plugging USB flash disk, the debug information of serial ports can be output to Quick Acquisition equipment, is saved
About positioning, analysis, the time solved the problems, such as, improve the efficiency for solving the problems, such as to show net.
Detailed description of the invention
Fig. 1 is the process that a kind of USB flash disk for the method that equipment of serial Log is acquired by USB flash disk of the present invention is inserted into equipment for the first time
Figure.
Fig. 2 is a kind of process of second of the insertion equipment of USB flash disk of method that equipment of serial Log is acquired by USB flash disk of the present invention
Figure.
Specific embodiment
The invention will be further described for explanation and specific embodiment with reference to the accompanying drawing.
A method of equipment of serial Log(journal file is acquired by USB flash disk), logo file is first created in USB flash disk, then
Plug USB flash disk twice: insertion equipment, start recording Log extract USB flash disk for the first time, stop recording Log USB flash disk for the first time;Second of USB flash disk
It is inserted into equipment, serial ports Log(journal file in a device will be saved) it copies in USB flash disk.
As shown in Figure 1, USB flash disk for the first time insertion equipment the following steps are included:
S11, insertion creation for the first time have the USB flash disk of logo file;
S12, USB driving report USB flash disk ONLINE event to memory management module;
S13, memory management module send USB flash disk ONLINE event and acquire Log managing process to USB flash disk;
S14, USB flash disk acquisition Log managing process detect USB flash disk ONLINE event;
S15, judge that the logo file in USB flash disk whether there is, if it is present opening the corresponding debugging switch of logo file, such as
Fruit is not present, then terminates;
S16, pull-up one acquisition Log process;
The master(master terminal of S17, serial ports output redirection to a pair of of pseudo-terminal);
S18, the slaver(of pseudo-terminal is read from terminal), Log is saved in a device, and automatically generate one in USB flash disk and copy
Shellfish Log logo file is for copying Log;
S19, USB flash disk is extracted for the first time;
S110, USB driving report USB flash disk OFFLINE event;
S111, memory management module send OFFLINE event and acquire Log managing process to USB flash disk;
S112, turn off debugging switch, close the process of acquisition Log, close serial ports to the redirection of pseudo-terminal, be automatically deleted USB flash disk
The logo file of middle creation.
As shown in Fig. 2, USB flash disk second be inserted into equipment the following steps are included:
S21, second of USB flash disk of the insertion with copy Log logo file;
S22, USB driving report USB flash disk ONLINE event to memory management module;
S23, memory management module send USB flash disk ONLINE event and acquire Log managing process to USB flash disk;
S24, USB flash disk acquisition Log managing process detect USB flash disk ONLINE event;
S25, judge that the copy Log logo file in USB flash disk whether there is, if it is present the serial ports Log by preservation in a device
(journal file) copies in USB flash disk, if it does not exist, then terminating;
S26, USB flash disk is extracted second;
S27, end.
A kind of method that equipment of serial Log is acquired by USB flash disk provided by the invention, can in no serial ports needle, do not open and set
In the case where standby outer cage, by plug USB flash disk can Quick Acquisition equipment be output to the debug information of serial ports, it is fixed to have saved
Position, analysis, the time solved the problems, such as, improve the efficiency for solving the problems, such as existing net.Log is grabbed with USB flash disk, needs first to create in USB flash disk
Build logo file, then plug USB flash disk twice: insertion equipment, start recording LOG extract USB flash disk to USB flash disk for the first time for the first time, stop note
Record LOG;Second of insertion USB flash disk can copy the journal file of preservation in a device in USB flash disk to.
A kind of method acquiring equipment of serial Log by USB flash disk provided by the invention, acquires serial ports log(log by USB flash disk
File), it is only necessary to logo file is first created in USB flash disk, then plugs USB flash disk twice, so that it may conveniently be acquired existing net and be set
Standby serial ports log(journal file).
A kind of method acquiring equipment of serial Log by USB flash disk provided by the invention, can be used for the home network with USB interface
It closes, suitable for the research and development and technical support of network equipment company, after there is existing net problem, for acquiring existing net equipment of serial Log
(journal file).
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that
Specific implementation of the invention is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs, exist
Under the premise of not departing from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to of the invention
Protection scope.
Claims (3)
1. a kind of method for acquiring equipment of serial Log by USB flash disk, it is characterised in that: first create logo file in USB flash disk, then
Plug USB flash disk twice: insertion equipment, start recording Log extract USB flash disk for the first time, stop recording Log USB flash disk for the first time;Second of USB flash disk
It is inserted into equipment, the serial ports Log of preservation in a device is copied in USB flash disk.
2. the method according to claim 1 for acquiring equipment of serial Log by USB flash disk, it is characterised in that: USB flash disk is inserted for the first time
Enter equipment the following steps are included:
S11, insertion creation for the first time have the USB flash disk of logo file;
S12, USB driving report USB flash disk ONLINE event to memory management module;
S13, memory management module send USB flash disk ONLINE event and acquire Log managing process to USB flash disk;
S14, USB flash disk acquisition Log managing process detect USB flash disk ONLINE event;
S15, judge that the logo file in USB flash disk whether there is, if it is present opening the corresponding debugging switch of logo file, such as
Fruit is not present, then terminates;
S16, pull-up one acquisition Log process;
The master of S17, serial ports output redirection to a pair of of pseudo-terminal;
S18, the slaver for reading pseudo-terminal, Log is saved in a device, and a copy Log mark is automatically generated in USB flash disk
File is for copying Log;
S19, USB flash disk is extracted for the first time;
S110, USB driving report USB flash disk OFFLINE event;
S111, memory management module send OFFLINE event and acquire Log managing process to USB flash disk;
S112, turn off debugging switch, close the process of acquisition Log, close serial ports to the redirection of pseudo-terminal, be automatically deleted USB flash disk
The logo file of middle creation.
3. the method according to claim 1 for acquiring equipment of serial Log by USB flash disk, it is characterised in that: second of USB flash disk slotting
Enter equipment the following steps are included:
S21, second of USB flash disk of the insertion with copy Log logo file;
S22, USB driving report USB flash disk ONLINE event to memory management module;
S23, memory management module send USB flash disk ONLINE event and acquire Log managing process to USB flash disk;
S24, USB flash disk acquisition Log managing process detect USB flash disk ONLINE event;
S25, judge that the copy Log logo file in USB flash disk whether there is, if it is present the serial ports Log by preservation in a device
It copies in USB flash disk, if it does not exist, then terminating;
S26, USB flash disk is extracted second;
S27, end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811125139.3A CN109491878A (en) | 2018-09-26 | 2018-09-26 | A method of equipment of serial Log is acquired by USB flash disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811125139.3A CN109491878A (en) | 2018-09-26 | 2018-09-26 | A method of equipment of serial Log is acquired by USB flash disk |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109491878A true CN109491878A (en) | 2019-03-19 |
Family
ID=65689964
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811125139.3A Pending CN109491878A (en) | 2018-09-26 | 2018-09-26 | A method of equipment of serial Log is acquired by USB flash disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109491878A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012108712A (en) * | 2010-11-17 | 2012-06-07 | Funai Electric Co Ltd | Electronic device |
CN106203187A (en) * | 2016-06-26 | 2016-12-07 | 厦门天锐科技股份有限公司 | The USB storage device method for limiting of a kind of filter Driver on FSD and system |
CN106708762A (en) * | 2015-11-18 | 2017-05-24 | 厦门雅迅网络股份有限公司 | Unified management system and method for serial devices in LINUX |
CN107992407A (en) * | 2017-11-15 | 2018-05-04 | 烽火通信科技股份有限公司 | System and method using USB flash disk to android terminal equipment debugging |
CN108509317A (en) * | 2018-03-29 | 2018-09-07 | 广州视源电子科技股份有限公司 | Log file saving method and device, electronic device and storage medium |
-
2018
- 2018-09-26 CN CN201811125139.3A patent/CN109491878A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012108712A (en) * | 2010-11-17 | 2012-06-07 | Funai Electric Co Ltd | Electronic device |
CN106708762A (en) * | 2015-11-18 | 2017-05-24 | 厦门雅迅网络股份有限公司 | Unified management system and method for serial devices in LINUX |
CN106203187A (en) * | 2016-06-26 | 2016-12-07 | 厦门天锐科技股份有限公司 | The USB storage device method for limiting of a kind of filter Driver on FSD and system |
CN107992407A (en) * | 2017-11-15 | 2018-05-04 | 烽火通信科技股份有限公司 | System and method using USB flash disk to android terminal equipment debugging |
CN108509317A (en) * | 2018-03-29 | 2018-09-07 | 广州视源电子科技股份有限公司 | Log file saving method and device, electronic device and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN110308937B (en) * | 2019-04-28 | 2022-06-03 | 宁波三星医疗电气股份有限公司 | Method for opening super terminal serial port in power acquisition terminal based on USB flash disk |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101615152B (en) | Method and device for detecting hot plug fault of storage card | |
CN109542788A (en) | A kind of internal storage data evidence collecting method based on Android platform automated test tool | |
CN104572422A (en) | Memory monitoring achievement method based on startup and shutdown of Linux system | |
CN105095330A (en) | Method and system for identifying file format based on compressed package content | |
CN104123197B (en) | Method for offline evidence-collecting without holding iOS device | |
CN104636242A (en) | Method for automatically deleting repeated content in system logs on basis of Linux operating system | |
CN109491878A (en) | A method of equipment of serial Log is acquired by USB flash disk | |
CN102880718B (en) | A kind of storage of flexible daily record and acquisition methods | |
CN105718353A (en) | Testing method, apparatus and system for graphic interface application | |
CN207115412U (en) | A kind of duplicator safety check system | |
CN106326041A (en) | Second-level recovery method for database | |
CN103678041A (en) | Incremental backup method and system | |
CN105022677B (en) | A kind of USB device usage record restores inspection method | |
CN104615948A (en) | Method for automatically recognizing file completeness and restoring | |
CN203149581U (en) | USB isolation device | |
CN103886028B (en) | Method and apparatus for copying files from storage device to advertisement machine | |
CN107491530B (en) | Social relationship mining analysis method based on file automatic marking information | |
CN105912431A (en) | Reboot testing method of server, server, control device and system | |
CN103812676A (en) | Apparatus and method for realizing log data real-time association | |
CN105430678A (en) | PTN equipment interface test method and apparatus | |
CN106648990B (en) | A kind of method of data in rapidly extracting BlueSky File System Watcher equipment | |
CN102737174A (en) | Method and system for verifying data validity in data security prevention and control | |
CN106126375B (en) | A kind of each version restoration methods of YAFFS2 file based on Hash | |
CN104036199B (en) | Disk private data residual leak detection method for android system | |
CN106933578A (en) | A kind of USB drive load methods of QNX systems |
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: 20190319 |
|
RJ01 | Rejection of invention patent application after publication |