CN101593144A - A kind of method of capturing single board system output information and device - Google Patents

A kind of method of capturing single board system output information and device Download PDF

Info

Publication number
CN101593144A
CN101593144A CNA2009101081113A CN200910108111A CN101593144A CN 101593144 A CN101593144 A CN 101593144A CN A2009101081113 A CNA2009101081113 A CN A2009101081113A CN 200910108111 A CN200910108111 A CN 200910108111A CN 101593144 A CN101593144 A CN 101593144A
Authority
CN
China
Prior art keywords
output information
virtual
single board
output
information
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.)
Granted
Application number
CNA2009101081113A
Other languages
Chinese (zh)
Other versions
CN101593144B (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2009101081113A priority Critical patent/CN101593144B/en
Publication of CN101593144A publication Critical patent/CN101593144A/en
Application granted granted Critical
Publication of CN101593144B publication Critical patent/CN101593144B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to field of communication equipment system development, particularly a kind of catching method of single board output information and device.The present invention creates a virtual input-output device, high-end memory module, system output information and checks module in single board system.The single board system information that virtual I/O device is caught outputs to high-end memory module, checks that by system output information module checks then.Use this invention need not external serial ports or network interface, do not need system information is write the backstage and calls corresponding function interface yet, the correlative code that does not also need homologous ray output in the program development personnel additional modifications board software, capturing single board system output information is convenient to system development and maintenance easily.

Description

A kind of method of capturing single board system output information and device
Technical field
The present invention relates to field of communication equipment system development, particularly a kind of catching method of single board output information and device.
Background technology
In the prior art, each Physical board of communication apparatus (to call veneer in the following text) all can be exported some information by external serial ports or network interface in system's operational process, such as error message, warning information, Debugging message, information such as system start-up record are for the operation conditions of development and maintenance personnel tracking affirmation system, as shown in Figure 1.Usually, this method needs the external serial ports of veneer, network interface to come the relevant information of saved system output; If occur unusually in the veneer operational process, and this moment, veneer did not have external serial ports, network interface, then because can't obtain system's transmission information, thereby was unfavorable for confirming the ruuning situation of system.
Publication number is that the Chinese invention patent application of CN1571371 discloses a kind of many veneers console message output intent.This information output method adopts each veneer general control desk output information separately to send to the consing veneer with the form of message bag; The consing veneer receives the control desk output information of this plate or other veneer, and corresponding each veneer groove number is preserved; By in the corresponding order of consing veneer input, show each veneer control desk output information of corresponding groove number.This method can make the user whole process understand the situation of each veneer, and can store relevant information, is convenient to failure location and analysis.But this method all must be called related function when the access single board information, needs to revise the code of homologous ray output.After revising simultaneously, again can't be on actual physical equipment output information, can not guarantee the switching between the output device.
Want capturing single board information in the prior art, need to adopt external network port or serial ports, perhaps canned data is write the backstage and call the related function interface and realize.If but adopt external network port or serial ports, and increased cost, if occur unusually in the veneer operational process simultaneously, and this moment, veneer did not have external serial ports, network interface, then because can't obtain system's transmission information, thereby was unfavorable for confirming the ruuning situation of system.If employing writes the backstage with canned data and calls the related function interface and realize, need to revise the homologous ray output code, workload is big, and can't be implemented in output information on the actual physical device, can not guarantee the switching of output information equipment room.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method of single board system information output, need not external serial ports or network interface, do not need system information is write the backstage and calls corresponding function interface yet, the correlative code that does not also need homologous ray output in the program development personnel additional modifications board software can be realized system's global information output.
For solving the problems of the technologies described above, the invention provides a kind of method of capturing single board system output information, the steps include:
A. on single board system, create virtual I/O device;
B. the output information of this single board system is pointed to this virtual I/O device;
C. the output channel of this virtual I/O device is pointed to the upper memory area territory of this single board system, thereby the system output information of the output channel by this virtual I/O device all is written into described upper memory area territory;
D. extract system output information by the output channel of this virtual I/O device.
Further, step D is specially: call the function of checking in the described single board system, check system output information.
Further, step D is specially: the data in described upper memory area territory are write the backstage file, directly check system output information by the described backstage of text reading tool to open file.
Further, described virtual I/O device switches with the actual physical output device, thereby system output information can be by virtual I/O device or the output of actual physics output device.
Further, described virtual I/O device can coexist with the actual physics output device, and system output information is stored in virtual I/O device, and exports by actual physical device.
The invention provides a kind of device of capturing single board system output information, this device comprises with lower module:
Virtual input/output module, this equipment is used for capturing single board system output information, and this information is write the veneer storage area; And
The high-end memory module of veneer is used for the system output information that storing virtual input-output device writes; And
System output information is checked module, is used to the system information of checking that described virtual I/O device is caught.
Adopt the method for the invention, in the veneer operational process, do not need the output device of external reality, just the inputoutput data of single board system can be saved in the specified memory territory.If veneer if unusual, can pass through these data locking faults of extraction and analysis in operational process like this.The standard output function of board software use simultaneously carries out data output by system's overall situation output device, therefore uses this method also not need program development personnel additional modifications code.This invention can also be switched between virtual I/O device and actual physics output device easily.
Description of drawings
Fig. 1 is the conventional device block diagram;
Fig. 2 is a device block diagram of the present invention;
Fig. 3 is an implementing procedure figure of the present invention;
Fig. 4 is another implementing procedure figure of the present invention.
Embodiment:
The present invention proposes in veneer and to create a virtual input-output device and come capture systems output information.Below in conjunction with Fig. 2 application example of the present invention is described.
Apparatus of the present invention comprise with lower module:
Virtual input/output module, this equipment is used for capturing single board system output information, and this information is write the veneer storage area; And
The high-end memory module of veneer is used for the system output information that storing virtual input-output device writes; And
System output information is checked module, is used to the system information of checking that described virtual I/O device is caught.
Realize that method of the present invention mainly may further comprise the steps:
1. create a virtual input-output device in the single board system the inside.
2. the system output information with this single board system points to this virtual I/O device.
3. the output channel of this virtual I/O device is pointed to the upper memory area territory of this single board system, thereby the output information of the output channel by this virtual I/O device all is written into described upper memory area territory.
4. extract output information by the output channel of this virtual I/O device.
The system output information of single board system is pointed to this virtual input-output device, and the output information of system will be exported by this equipment like this.It is original in the relevant code of output to realize that this sensing does not need in the update routine.
The system output information that this virtual I/O device is caught can be checked by check function and the mode that writes the backstage file of calling this virtual I/O device.
Virtual unit of the present invention can switch with the actual physical output device.Because the overall input equipment of system is not appointed as above-mentioned virtual unit, if therefore want to switch, can be with the external actual physical output device of veneer, such as network interface, serial ports, the user imports corresponding order then, and system can switch to output device the actual physical output device after receiving this order.Virtual unit also can coexist with the actual physics output device.In the time of coexistence, virtual O device is preserved system output information earlier, and then data are exported by the actual physics output device, and such two kinds of equipment just can coexist.
Below in conjunction with Fig. 3 and Fig. 4,, application example of the present invention is described by the method being applied to certain mobile communication base station veneer exploitation debugging.
The veneer of mobile communication base station generally includes central processing unit, storer, and the distinctive device of veneer etc.These veneers are normally realized corresponding function according to the framework of total system, as Base-Band Processing, and exchange etc.
Be capture systems output information, adopt following method:
1. by in veneer, writing code, create the driving of virtual I/O device.
2. by in veneer, writing code, in the driving of creating, create the necessary interface of virtual I/O device.These interfaces comprise the input-output device initialization interface, start interface, output interface, input interface, control interface, stop interface such as interface.
3. single board system is articulated to described virtual Input/Output Device on the single board system by calling the virtual I/O device initialization interface.Single board system can be operated described virtual Input/Output Device by opening, close and reading and writing like this.
4. virtual input-output device is pointed in the output of the overall situation.It is original in the relevant code of output to realize that this sensing does not need in the update routine.
5. in the driving output interface of virtual unit the inside, realize that the information that system will be exported is recorded in system piece specified memory territory, this storage area is the high memory of the size system that can set.Close the high-speed buffer of this piece internal memory simultaneously, guarantee that data can in time write this region of memory.
6. veneer external actual physics output device simultaneously, as network interface or serial ports, by the output of the actual physics output device output system overall situation, then in actual output device, import command adapted thereto if desired, can be implemented in output system global information on the actual physics output device by the user.
7. when the virtual I/O device output system information, the system output information of veneer is pointed to this virtual I/O device.The data of system's output all will be write toward the specified memory territory by this virtual unit like this.Because the specified memory territory is limited, if the data that write have surpassed the size of storage area, new data can be covered original data, also can keep legacy data, abandon new data.Perhaps can with old data recording in the file on backstage, so just can new data have been stored again.Adopt which kind of method to determine by the development and maintenance personnel.
8. the function of watching that provides in the virtual I/O device driving is provided, system output information is extracted analytic system output information.By calling this function, system output information is pressed the time, and classification shows.Also the data of storage area can be write toward the backstage file, directly so directly open this file by the text reading instrument and just can watch system output information.
9. virtual I/O device also can coexist with the actual physics output device.In the time of coexistence, virtual I/O device is stored to designated storage area with system output information earlier, and then data are exported by the actual physics output device.

Claims (6)

1. the method for a capturing single board system output information is characterized in that may further comprise the steps:
A. on single board system, create virtual I/O device;
B. the output information of this single board system is pointed to this virtual I/O device;
C. the output channel of this virtual I/O device is pointed to the upper memory area territory of this single board system, thereby the system output information of the output channel by this virtual I/O device all is written into described upper memory area territory;
D. extract system output information by the output channel of this virtual I/O device.
2. the method for capturing single board system output information according to claim 1 is characterized in that, step D is specially: call the function of checking in the described single board system, check system output information.
3. the method for capturing single board system output information according to claim 1, it is characterized in that, step D is specially: the data in described upper memory area territory are write the backstage file, directly check system output information by the described backstage of text reading tool to open file.
4. the method for capturing single board system output information according to claim 1, it is characterized in that: described virtual I/O device switches with the actual physical output device, thereby system output information can be by virtual I/O device or the output of actual physics output device.
5. the method for capturing single board system output information according to claim 1, it is characterized in that: described virtual I/O device can coexist with the actual physics output device, system output information is stored in virtual I/O device, and exports by actual physical device.
6. the device of a capturing single board system output information is characterized in that, this device comprises with lower module:
Virtual input/output module, this equipment is used for capturing single board system output information, and this information is write the veneer storage area; And
The high-end memory module of veneer is used for the system output information that storing virtual input-output device writes; And
System output information is checked module, is used to the system information of checking that described virtual I/O device is caught.
CN2009101081113A 2009-06-23 2009-06-23 Method and device for capturing single board system output information Expired - Fee Related CN101593144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101081113A CN101593144B (en) 2009-06-23 2009-06-23 Method and device for capturing single board system output information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101081113A CN101593144B (en) 2009-06-23 2009-06-23 Method and device for capturing single board system output information

Publications (2)

Publication Number Publication Date
CN101593144A true CN101593144A (en) 2009-12-02
CN101593144B CN101593144B (en) 2011-12-28

Family

ID=41407811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101081113A Expired - Fee Related CN101593144B (en) 2009-06-23 2009-06-23 Method and device for capturing single board system output information

Country Status (1)

Country Link
CN (1) CN101593144B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102388357A (en) * 2011-09-23 2012-03-21 华为技术有限公司 Method and system for accessing memory device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1265583C (en) * 2002-12-19 2006-07-19 华为技术有限公司 Business resource distribution method
CN100342324C (en) * 2003-07-19 2007-10-10 华为技术有限公司 A multi-singleboard console information output method
CN100369492C (en) * 2003-12-01 2008-02-13 中兴通讯股份有限公司 One board testing device of digital user wire equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102388357A (en) * 2011-09-23 2012-03-21 华为技术有限公司 Method and system for accessing memory device
US8566416B2 (en) 2011-09-23 2013-10-22 Huawei Technologies Co., Ltd. Method and system for accessing storage device

Also Published As

Publication number Publication date
CN101593144B (en) 2011-12-28

Similar Documents

Publication Publication Date Title
CN105474125B (en) For tracking the technology for waking up locking and using
CN101344931A (en) RFID integration machine
CN106294222A (en) A kind of method and device determining PCIE device and slot corresponding relation
EP2466943B1 (en) Method and device for monitoring running state of card
CN103246586A (en) Method for utilizing USB (universal serial bus) storage equipment for ADB (android debug bridge) debugging on android platform
CN101079734B (en) A hot plug configuration recovery method of rack device
CN102157037B (en) Automatic test method and system for software and module
CN104866416A (en) Method and device for performance analysis of application program
CN102223452A (en) Method and system for testing text telephone (TTY) of mobile terminals
CN101593144B (en) Method and device for capturing single board system output information
CN102393829A (en) Disk I/O (Input/Output) test system oriented to embedded system
CN1975701B (en) Master machine driving external equipment method and system
CN100452706C (en) Method and apparatus for identifying terminal command line
CN107122138A (en) A kind of device and method for configuring disk array
CN101206613A (en) High speed basic input/output system debug card
CN101547216A (en) Safe storage method and system in process of real-time data acquisition
CN102455969B (en) Method for recording Linux serial communication log
CN104331945A (en) Data acquisition workstation with pre-input function and control method thereof
CN108984238A (en) Gesture processing method, device and the electronic equipment of application program
CN101369238A (en) Exception monitoring and reset processing method for USB equipment
CN101296119A (en) Information tracking system and method
CN109144844A (en) Method for tracing, device, equipment and machine readable media
CN103559074B (en) A kind of analogue communication plug-in unit and method of work thereof
CN101551802B (en) File access method used for management system
CN104933161A (en) Method and device for obtaining input data from input equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111228

Termination date: 20190623