CN101419567A - Method for outputting data card debugging information - Google Patents

Method for outputting data card debugging information Download PDF

Info

Publication number
CN101419567A
CN101419567A CNA2007101240464A CN200710124046A CN101419567A CN 101419567 A CN101419567 A CN 101419567A CN A2007101240464 A CNA2007101240464 A CN A2007101240464A CN 200710124046 A CN200710124046 A CN 200710124046A CN 101419567 A CN101419567 A CN 101419567A
Authority
CN
China
Prior art keywords
data card
debugging message
debugging
node
message output
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
CNA2007101240464A
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.)
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 CNA2007101240464A priority Critical patent/CN101419567A/en
Publication of CN101419567A publication Critical patent/CN101419567A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a data card debugging information input method. A data card comprises a debugging information output port, and the method comprises the following steps: 1. a debugging information output thread of the data card scans a debugging information queue of the data card, and if the debugging information queue is empty, step 3 is performed; or step 2 is performed; 2. the debugging information output thread outputs various nodes of the debugging information queue to the debugging information output port; and 3. the output operation of the debugging information of the data card is completed. The technical proposal provided by the invention can help realize the output of the debugging information of the data card without any other physical device.

Description

A kind of method of outputting data card debugging information
Technical field
The present invention relates to a kind of method of exporting Debugging message, especially a kind of method of outputting data card debugging information.
Background technology
Debugging message is very important for the research staff, and the research staff often can obtain current running state of programs and unusual cause value from Debugging message, thus orientation problem promptly.Debugging message need carry out real-time output in real time in program operation process.
At present, in the software platform that the data card product development is used, the output of Debugging message realizes that by serial ports the realization of serial ports output need cooperate other physical equipment.There is not serial ports if be connected with the development computer of data card, as shown in Figure 1, at first development computer 1 is linked to each other with following support plate 3 by flat cable 2, to descend support plate 3 to couple together then by the serial ports of Serial Port Line 4 with debugging computer 5, and then debugging computer 5 is exported serial ports message by third party software in modes such as printings.If there is serial ports in the development computer that is connected with data card, as shown in Figure 2, be equipped with debugging acid on the development computer 1, with after following support plate 3 links to each other, following support plate couples together by the com port of Serial Port Line 4 and development computer 1 flat cable 2 again with development computer 1.
As can be seen, at present, when the data card Debugging message carried out serial ports output, the physical connection of equipment was too complicated from foregoing description; And, the Debugging message that need export more for a long time, the output of information will take CPU (Central Processing Unit for a long time, CPU (central processing unit)) resource, make regular traffic can not get system resource, thereby influence the work efficiency of data card, even cause the deadlock phenomenon of data card software.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method of outputting data card debugging information that other physical equipment can be realized the output of data card Debugging message that need not.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of method of outputting data card debugging information, described data card comprises the Debugging message output port, said method comprising the steps of:
1.1 the Debugging message of described data card output thread scans the Debugging message formation of described data card, if described Debugging message formation is empty, then directly enters step 1.3; Otherwise, enter step 1.2;
1.2 described Debugging message output thread is transferred to described Debugging message output port with each node of described Debugging message formation;
1.3 finish the output function of this data card Debugging message.
In the such scheme, described step 1.2 realizes by following steps:
2.1 described Debugging message output thread takes out a node of described Debugging message formation;
2.2 described Debugging message output thread is transferred to described Debugging message output port with described node;
2.3 discharging the back with described node from described Debugging message formation, described Debugging message output thread judges whether described Debugging message formation is empty, if empty, then enters step 1.3, otherwise, get back to step 2.1.
In the such scheme, in the described step 2.2, described Debugging message output thread is by the direct memory access passage described node to be transferred to described Debugging message output port.
In the such scheme, the priority of described Debugging message output thread is lower than the priority of described other professional thread of data card.
In the such scheme, each node of described Debugging message formation is the Debugging message of described data card, and described each node is provided with corresponding output level according to the significance level of its content.
In the such scheme, described each node is controlled the computing machine whether it outputs to described data card connection according to the output level of described each node respectively after being transferred to described Debugging message output port.
In the such scheme, described Debugging message output thread needs to wait for all the time before execution in step 1.1 and obtains semaphore, enters step 1.1 after successfully obtaining semaphore, and before entering step 1.3, discharge described semaphore.
In the such scheme, described Debugging message output port is that described data card is expanded the USB port that obtains according to the data card port extension mechanism.
Beneficial effect of the present invention mainly shows: technical scheme provided by the invention is by the establishment of expansion, Debugging message output queue and the output thread of data card output port, in the output that need not to have realized under the auxiliary situation of other physical equipment the data card Debugging message; And then the priority of setting Debugging message output thread is lower than other professional thread, can not influence the normal operation of other business when making Debugging message output; Moreover, satisfied user's individual demand by the importance information of setting Debugging message.
Description of drawings
Fig. 1 is an equipment connection diagram of being with the outputting data card debugging information of debugging computer at present;
Fig. 2 is not at present with the equipment connection diagram of the outputting data card debugging information of debugging computer;
Fig. 3 is the method flow diagram of outputting data card debugging information of the present invention.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
Fig. 1, Fig. 2 are described in background technology, repeat no more herein.
With reference to Fig. 3, a kind of method of outputting data card debugging information, this data card comprises the Debugging message output port, this Debugging message output port is to expand the USB port that obtains according to the data card port extension mechanism, is specifically designed to the output of Debugging message.Output intent may further comprise the steps:
Step 301: Debugging message output thread is waited for all the time and is obtained semaphore, enter step 302 after successfully obtaining semaphore; The priority of Debugging message output thread is lower than the priority of this other professional thread of data card, like this when Debugging message output thread successfully obtains semaphore and begins to carry out this Debugging message output thread, because its priority than other professional thread is low, just can not influence the normal operation of other business of data card;
Step 302: the Debugging message formation of the Debugging message output thread scan-data card of this data card if described Debugging message formation is empty, then directly enters step 306; Otherwise, enter step 303; Wherein, each node of Debugging message formation is deposited is the Debugging message of this data card;
Step 303: Debugging message output thread takes out a node of Debugging message formation;
Step 304: Debugging message output thread is transferred to the Debugging message output port by DMA (Direct Memory Access, direct memory access) passage with this node;
Step 305: Debugging message output thread discharges the back with this node and judges whether the Debugging message formation is empty, if empty, then enters step 306 from the Debugging message formation, otherwise, get back to step 303; Each node in the Debugging message formation is provided with corresponding output level according to the significance level of its content, therefore, after each node is transferred to the Debugging message output port, can control it according to the output level of each node respectively and whether output to the computing machine that this data card connects, can satisfy user's individual demand;
Step 306: Debugging message output thread release semaphore;
Step 307: finish the output function of this data card Debugging message.
So far, the output function of this data card Debugging message is finished, continue Debugging message is exported, and then comes back to step 301.

Claims (8)

1, a kind of method of outputting data card debugging information is characterized in that, described data card comprises the Debugging message output port, said method comprising the steps of:
1.1 the Debugging message of described data card output thread scans the Debugging message formation of described data card, if described Debugging message formation is empty, then directly enters step 1.3; Otherwise, enter step 1.2;
1.2 described Debugging message output thread is transferred to described Debugging message output port with each node of described Debugging message formation;
1.3 finish the output function of this data card Debugging message.
2, the method for outputting data card debugging information as claimed in claim 1 is characterized in that, described step 1.2 realizes by following steps:
2.1 described Debugging message output thread takes out a node of described Debugging message formation;
2.2 described Debugging message output thread is transferred to described Debugging message output port with described node;
2.3 discharging the back with described node from described Debugging message formation, described Debugging message output thread judges whether described Debugging message formation is empty, if empty, then enters step 1.3, otherwise, get back to step 2.1.
3, the method for outputting data card debugging information as claimed in claim 2 is characterized in that: in the described step 2.2, described Debugging message output thread is by the direct memory access passage described node to be transferred to described Debugging message output port.
4, as the method for one of them described outputting data card debugging information of claim 1 to 3, it is characterized in that: the priority of described Debugging message output thread is lower than the priority of described other professional thread of data card.
5, the method for outputting data card debugging information as claimed in claim 4 is characterized in that: each node of described Debugging message formation is the Debugging message of described data card, and described each node is provided with corresponding output level according to the significance level of its content.
6, the method for outputting data card debugging information as claimed in claim 5 is characterized in that: described each node is controlled the computing machine whether it outputs to described data card connection according to the output level of described each node respectively after being transferred to described Debugging message output port.
7, the method for outputting data card debugging information as claimed in claim 6, it is characterized in that: described Debugging message output thread needs to wait for all the time before execution in step 1.1 and obtains semaphore, after successfully obtaining semaphore, enter step 1.1, and before entering step 1.3, discharge described semaphore.
8, as the method for claim 1 or 2 or 3 or 5 or 6 or 7 described outputting data card debugging informations, it is characterized in that: described Debugging message output port is that described data card is expanded the USB port that obtains according to the data card port extension mechanism.
CNA2007101240464A 2007-10-22 2007-10-22 Method for outputting data card debugging information Pending CN101419567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101240464A CN101419567A (en) 2007-10-22 2007-10-22 Method for outputting data card debugging information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101240464A CN101419567A (en) 2007-10-22 2007-10-22 Method for outputting data card debugging information

Publications (1)

Publication Number Publication Date
CN101419567A true CN101419567A (en) 2009-04-29

Family

ID=40630362

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101240464A Pending CN101419567A (en) 2007-10-22 2007-10-22 Method for outputting data card debugging information

Country Status (1)

Country Link
CN (1) CN101419567A (en)

Similar Documents

Publication Publication Date Title
CN100517219C (en) Resource managing apparatus and method in a multicore architecture, and multicore processor
CN100353285C (en) Peripheral device interconnection high-speed link power supply state switching system and its method
CN103559045B (en) Hardware real-time operation system
CN107278299A (en) The functional methods, devices and systems of secondary bus are realized via reconfigurable virtual switch
CN1522402A (en) Multiprocessor system and method for operating a multiprocessor system
CN103729329A (en) ICN device and method
CN102163072A (en) Software-based thread remapping for power savings
TW201015289A (en) Coordinated link power management
CN101132336A (en) High-speed asynchronous interlinkage communication network of heterogeneous multi-nucleus processor
CN104050118B (en) The devices, systems, and methods of access to functions of the equipments are provided
US20080282007A1 (en) METHOD AND SYSTEM FOR CONTROLLING TRANSMISSION and EXECUTION OF COMMANDS IN AN INTEGRATED CIRCUIT DEVICE
CN104714907B (en) A kind of pci bus is converted to ISA and APB bus design methods
WO2024183093A1 (en) Testing system
CN103034614A (en) Single-task and multi-core scheduling method based on critical path and task duplication
CN106951381A (en) A kind of UART extended chips and implementation method
CN102811152B (en) Method for realizing real-time transaction and data exchange of multiple main bus network communication
DE102020114142A1 (en) TECHNOLOGIES FOR INTERRUPT DISASSOCIATED QUEENING FOR MULTI-QUEUE I / O DEVICES
CN104881105A (en) Electronic device
CN114564435A (en) Inter-core communication method, device and medium for heterogeneous multi-core chip
EP1733309B1 (en) Integrated circuit and method for transaction retraction
CN103324599A (en) Inter-processor communication method and system on chip
CN201583943U (en) IP structure of high-performance low-power consumption DMA of audio SOC chip
EP1187028B1 (en) Immediate grant bus arbiter for bus system
CN104866460A (en) Fault-tolerant self-adaptive reconfigurable system and method based on SoC
CN105718396B (en) A kind of I of big data master transmissions2C bus units and its means of communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090429