CN105630677A - Device debugging method - Google Patents

Device debugging method Download PDF

Info

Publication number
CN105630677A
CN105630677A CN201510974560.1A CN201510974560A CN105630677A CN 105630677 A CN105630677 A CN 105630677A CN 201510974560 A CN201510974560 A CN 201510974560A CN 105630677 A CN105630677 A CN 105630677A
Authority
CN
China
Prior art keywords
value
input
debugging method
false
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.)
Granted
Application number
CN201510974560.1A
Other languages
Chinese (zh)
Other versions
CN105630677B (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.)
SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co Ltd filed Critical SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co Ltd
Priority to CN201510974560.1A priority Critical patent/CN105630677B/en
Publication of CN105630677A publication Critical patent/CN105630677A/en
Application granted granted Critical
Publication of CN105630677B publication Critical patent/CN105630677B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime

Abstract

The invention provides a device debugging method. The method comprises the following steps of S1, performing simulated audio input: in a VC program, reading a WAV audio file in a path according to a time interval of a 48K sampling rate of a device and finally outputting the file through a PC loudspeaker. Through the method, the whole process of inputting and outputting an audio signal of the device can be simulated; a channel 0 is used for input and output by default in VC; and input and output ports can be changed by changing simInPort and simOutPort. The method has the beneficial effects that through the scheme, a series of operations of compiling, packaging, programming, device restarting and the like can be removed and the time cost is reduced.

Description

A kind of apparatus debugging method
Technical field
The present invention relates to equipment debugging, particularly relate to a kind of apparatus debugging method.
Background technology
Develop a new project, debug a new module or algorithm, formulate a new topo structure. It is required for substantial amounts of manpower and materials to carry out debugging and testing. When suffering a problem that on stream, being generally all, after writing code compilation, be burnt in dsp chip with emulator by code, observe phenomenon and then again debug amendment code, repeatable operation to the last solves problem. It addition, segment chip supports in-circuit emulation, it is possible to increase some debugging methods, but emulator is expensive, increase material resources cost.
Due to the compiler that the debugging method of VC to provide far more than chip manufacturer. Therefore by the grand code distinguished under VC and CCS translation and compiling environment, use the VC compiler can the code of artificial debugging major part CCS. So major part problem just can be transferred under VC environment, and debugging method is various, it is possible to be quickly found out problem place. It addition, add some debugging interfaces inside program, it is also possible to obtain some information from equipment, solve problem Optimized code.
The disappearance of debugging method, directly affects development progress. In debugging process, the instrument taken is many, and elapsed time is long, and the code efficiency write is low, and ultimately increases project development cost. And because the project development time, cause project delay, many chances can be lost.
Summary of the invention
In order to solve the problems of the prior art, the invention provides a kind of apparatus debugging method.
The invention provides a kind of apparatus debugging method, comprise the following steps:
S1, analogue audio input, in VC program, remove to read under a certain path the audio file of a WAV form according to the interval of the 48K sample rate of equipment, export finally by PC speaker, the audio signal of emulator the overall process of last audio signal output can be input to by the method, VC gives tacit consent to 0 passage input, 0 passage output, can change input/output port by changing simInPort and simOutPort;
S2, outloop and inloop;
S3, to any channel levels detection and record between;
S4, check algorithm statistical information.
As a further improvement on the present invention, step S2 is: acquiescence outloop and inloop are false, carry out audio data frame statistics at each audioIf interface.
As a further improvement on the present invention, step S3 is: obtained the level value of the specified a certain passage of processor by parametric controller, the data recorded then are saved under working directory with PCM format.
As a further improvement on the present invention, step S4 is: before entering, records current CPU time, after processor has processed, record current CPU time, then carry out maximum, minima, the calculating of meansigma methods, and reflect the arg parameter to system, consult at any time.
As a further improvement on the present invention, step S3 includes following son:
S301, input;
S302, debugging enable, if value is false, then export, if value is true, then enter next step;
S303, just can carry out recording, if value is false, then export, if value is true, then send data to network interface; Detection enables, if value is false, then exports, if value is true, then calculates level value;
S304, output.
As a further improvement on the present invention, step S4 includes following son:
S401, input;
S402, statistics enable, if value is false, then calls processor algorithm and export, if value is true, then enter next step;
S403, record time;
S404, call processor algorithm;
S405, calculating time;
S406, output.
The invention has the beneficial effects as follows: by such scheme, adopt VC auxiliary emulation, by arranging breakpoint, allocating stack, checking memory headroom can the problem place of quick finder editor; During debugging processor algorithm, it is possible to the process of comparatively real artificial actual voice data stream, in VC compiler, anywhere check data, add code, data obtained in algorithm are write fixed disk file, convenient debugging; Simultaneously in the most of the time, it is possible to save the sequence of operations such as compiling, packing, burning, restarting equipment, saved greatly time cost.
Accompanying drawing explanation
Fig. 1 is recording and the overhaul flow chart of a kind of apparatus debugging method of the present invention.
Fig. 2 is the Time Calculation flow chart of the processor of a kind of apparatus debugging method of the present invention.
Fig. 3 is the audio signal flow graph in system of a kind of apparatus debugging method of the present invention.
Detailed description of the invention
Illustrate below in conjunction with accompanying drawing and detailed description of the invention the present invention is further described.
As shown in Figure 1 to Figure 3, a kind of apparatus debugging method, comprise the following steps:
1. analogue audio input
In VC program, remove to read under a certain path the audio file of a WAV form according to the interval of the 48K sample rate of equipment, export finally by PC speaker. The audio signal of emulator the overall process of last audio signal output can be input to by the method. VC gives tacit consent to 0 passage input, 0 passage output. Input/output port can be changed by changing simInPort and simOutPort. So can emulate the effect of internal processor algorithm more really, in debugging process, eliminate CCS compiling, packing, restart, all multi-steps such as operation.
2. outloop and inloop
In current double-core processes, containing anologIf, uppIf, multiple audioIf interface such as netAudioIf, if whole system cannot normal operation, how quickly location is host CPU or from the problem of CPU, or analogue audio frequency drives, DAB drives, the problem of UPP, is always up means of comparatively difficulty. In this programme, it is proposed to the concept of outloop and inloop, this problem is made to become masterly. Fig. 2 is the flow graph of system audio signal and outloop and inloop mark position, system default outloop and inloop is false. Meanwhile, audio data frame is also had to add up at each audioIf interface, by each interface, it is possible to more quickly problem analysis place.
3. pair detection of any channel levels and recording
Formulating after a new Topo structure, tending not to disposable just have voice output. According to topo structure, a certain passage of each APU is carried out level monitoring, can quickly position the topo problem place formulated. Same, in debugging algorithm process, what kind of change is audio signal, after algorithm, occur most important. Traditional method of testing is analyzed mainly by the output signal of analog output mouth, is all analogue signal due to what gather, it does not have digitized, and, also other algorithm after topo after algorithm output, analyze inconvenience. Voice data is processed and with the addition of the debugging methods such as the recording to this passage and detection by each passage of each processor of this programme, by a total enable, it is possible to improve the utilization rate of CPU, concrete flow chart such as Fig. 3. The level value of a certain passage of specified processor can be obtained by Win-TosClient.Exe parametric controller, the data recorded then are saved under Win-TosClient.Exe working directory with PCM format, it is possible to use the professional softwares such as coolEdit or audio are analyzed.
4. check algorithm statistical information
Native system comprises comprehensive and accurate statistical information, including include single algorithm, overall algorithm, Frame interval, main thread, from thread, the maximum time of data thread, minimum time, average time. With the maximum time of computation processor algorithm, minimum time, average time is example, before entering, record current CPU time, after processor has processed, record current CPU time, then carry out maximum, minima, the calculating of meansigma methods, and reflect the arg parameter to system, consult at any time.
A kind of apparatus debugging method provided by the invention, ARM, DSP program code shares same set of code, distinguishes compiling by grand, so conveniently manages debugging. And support VC artificial debugging, because using the emulation of VC compiler, it is possible to be configured breakpoint, check variate-value, check many debugging methods such as category information, allocating stack. Can the BUG of maximum settlement procedure. Under normal circumstances, VC can compile by and properly functioning, ARM, DSP program under CCS also without make too many amendment just can compile by and properly functioning. In system, many Debugging message are also reserved. Debugging method can be opened by Win-TosClient.exe control station and obtain code issue place according to these debugging methods. These Debugging message VC and the equal adjustable of equipment.
A kind of apparatus debugging method provided by the invention has the advantage that
1. adopting VC auxiliary emulation, by arranging breakpoint, allocating stack, checking memory headroom can the problem place of quick finder editor. During debugging processor algorithm, it is possible to the process of comparatively real artificial actual voice data stream, in VC compiler, anywhere check data, add code, data obtained in algorithm are write fixed disk file, convenient debugging. Simultaneously in the most of the time, it is possible to save the sequence of operations such as compiling, packing, burning, restarting equipment, saved greatly time cost.
2. when there is BUG in program and topo, cause there is no voice output or export abnormal, the inloop of the interfaces such as anologIf, uppIf, netAudioAnd if the debugging method of outloop can be set, quickly problem is contracted to less scope, then passes through other debugging method to solve problem.
3., in the passage of each processor exports, all contain the functions such as detection, recording. Due to when under VC environment, operation result and physical device operation result disagree, it is possible to analyze internal actual audio data by the debugging method recorded. Meanwhile, the internal testing mechanism increasing similar probe, it is possible to the error count when passage one by one of processor algorithm carries out level value acquisition and device interior voice data communication one by one.
4. by checking the time parameters such as internal algorithm, processor, thread, it is possible to make program run and reach optimum.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, it is impossible to assert that specific embodiment of the invention is confined to these explanations. For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, it is also possible to make some simple deduction or replace, protection scope of the present invention all should be considered as belonging to.

Claims (6)

1. an apparatus debugging method, it is characterised in that comprise the following steps:
S1, analogue audio input, in VC program, remove to read under a certain path the audio file of a WAV form according to the interval of the 48K sample rate of equipment, export finally by PC speaker, the audio signal of emulator the overall process of last audio signal output can be input to by the method, VC gives tacit consent to 0 passage input, 0 passage output, can change input/output port by changing simInPort and simOutPort;
S2, outloop and inloop;
S3, to any channel levels detection and record between;
S4, check algorithm statistical information.
2. apparatus debugging method according to claim 1, it is characterised in that step S2 is: acquiescence outloop and inloop are false, carry out audio data frame statistics at each audioIf interface.
3. apparatus debugging method according to claim 1, it is characterised in that step S3 is: obtained the level value of the specified a certain passage of processor by parametric controller, the data recorded then are saved under working directory with PCM format.
4. apparatus debugging method according to claim 1, it is characterized in that, step S4 is: before entering, records current CPU time, after processor has processed, record current CPU time, then maximum, minima, the calculating of meansigma methods are carried out, and reflect the arg parameter to system, consult at any time.
5. apparatus debugging method according to claim 1, it is characterised in that step S3 includes following son:
S301, input;
S302, debugging enable, if value is false, then export, if value is true, then enter next step;
S303, just can carry out recording, if value is false, then export, if value is true, then send data to network interface; Detection enables, if value is false, then exports, if value is true, then calculates level value;
S304, output.
6. apparatus debugging method according to claim 1, it is characterised in that step S4 includes following son:
S401, input;
S402, statistics enable, if value is false, then calls processor algorithm and export, if value is true, then enter next step;
S403, record time;
S404, call processor algorithm;
S405, calculating time;
S406, output.
CN201510974560.1A 2015-12-22 2015-12-22 A kind of apparatus debugging method Active CN105630677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510974560.1A CN105630677B (en) 2015-12-22 2015-12-22 A kind of apparatus debugging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510974560.1A CN105630677B (en) 2015-12-22 2015-12-22 A kind of apparatus debugging method

Publications (2)

Publication Number Publication Date
CN105630677A true CN105630677A (en) 2016-06-01
CN105630677B CN105630677B (en) 2018-06-26

Family

ID=56045647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510974560.1A Active CN105630677B (en) 2015-12-22 2015-12-22 A kind of apparatus debugging method

Country Status (1)

Country Link
CN (1) CN105630677B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329889A (en) * 2017-06-05 2017-11-07 芯海科技(深圳)股份有限公司 A kind of method of C compilers automatic test

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665409B1 (en) * 1999-04-12 2003-12-16 Cirrus Logic, Inc. Methods for surround sound simulation and circuits and systems using the same
US20110206136A1 (en) * 2010-02-22 2011-08-25 Echostar Global B.V. Monitoring and controlling the operation of devices in a distributed network of broadcast devices
CN103995186A (en) * 2014-05-15 2014-08-20 苏州蓝萃电子科技有限公司 Voice frequency range scanner lower computer system
CN104484268A (en) * 2014-11-21 2015-04-01 厦门美图移动科技有限公司 Debugging method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665409B1 (en) * 1999-04-12 2003-12-16 Cirrus Logic, Inc. Methods for surround sound simulation and circuits and systems using the same
US20110206136A1 (en) * 2010-02-22 2011-08-25 Echostar Global B.V. Monitoring and controlling the operation of devices in a distributed network of broadcast devices
CN103995186A (en) * 2014-05-15 2014-08-20 苏州蓝萃电子科技有限公司 Voice frequency range scanner lower computer system
CN104484268A (en) * 2014-11-21 2015-04-01 厦门美图移动科技有限公司 Debugging method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋小艳: "基于FPGA的多路音频采集与接口系统设计与实现", 《科学技术与工程》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329889A (en) * 2017-06-05 2017-11-07 芯海科技(深圳)股份有限公司 A kind of method of C compilers automatic test
CN107329889B (en) * 2017-06-05 2021-01-19 芯海科技(深圳)股份有限公司 Method for automatically testing C compiler

Also Published As

Publication number Publication date
CN105630677B (en) 2018-06-26

Similar Documents

Publication Publication Date Title
CN103578568B (en) The performance test methods of solid state hard disc and device
CN102662828B (en) A kind of method and device realizing software automatic test
CN108255729B (en) Mobile phone game automatic testing method and system based on Unity platform
CN103529377B (en) The Auto-Test System of intelligent transformer substation digital protection device and method
CN102521118B (en) Automatic testing method of Android program
CN104346265B (en) The acquisition methods and device of terminal device and its log information
CN109871326A (en) A kind of method and apparatus that script is recorded
US8996928B2 (en) Devices for indicating a physical layer error
CN102222041A (en) Test analysis system and method based on embedded software
CN101808343B (en) Automated test circuit structure and method of SIM (Subscriber Identity Module)/USIM(Universal Subscriber Identity Module) controller in ARM digital baseband chip
CN104156311B (en) A kind of embedded type C language target code level unit test method based on CPU emulator
CN111610393A (en) Automatic test system and method for multi-channel broadband microwave integrated component
CN110196801B (en) Code coverage rate based test method and device
CN109857637A (en) A kind of Java language method coverage rate and method input and output statistical method and device based on note
CN101984640B (en) Energy consumption measuring method of Android mobile phone platform based on Intel Atom
CN105630677A (en) Device debugging method
CN110633199A (en) Testing apparatus, method, and medium for block chain supporting intelligent contract
CN207302034U (en) Processor chips emulator
CN110795350A (en) Controllable trace debugging method and system for RISC-V processor
CN104300684A (en) Driving system and method of relay protection device
CN106066822B (en) A kind of emulator and method for supporting coverage rate statistical function
CN113934619A (en) Sound source testing method, system and storage medium based on Robot Framework testing Framework
CN111464378B (en) Server network card double-network-speed testing method and system
CN114138628A (en) Method and device for selecting regression test case based on layered test model
CN106681899A (en) Android-UI automatic testing method and system based on Jmeter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 2, 202-B building, C building, Hua Han Innovation Park, No. 16, Lang Shan Road, Guangdong, Shenzhen, Nanshan District 518000, China

Applicant after: Shenzhen East micro smart Polytron Technologies Inc

Address before: 2, 202-B building, C building, Hua Han Innovation Park, No. 16, Lang Shan Road, Guangdong, Shenzhen, Nanshan District 518000, China

Applicant before: Shenzhen Tendzone Intelligent Technology Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 401, Block D, Huahan Innovation Park, 16 Longshan Road, North District, Xili Street, Nanshan District, Shenzhen City, Guangdong Province, 518000

Patentee after: Shenzhen East micro smart Polytron Technologies Inc

Address before: 518000 202-B, 2 floor, block C, office building, Hua Han Innovation Park, 16 Langshan Road, Nanshan District, Shenzhen, Guangdong.

Patentee before: Shenzhen East micro smart Polytron Technologies Inc

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 518000 R & D building 1601, block a, building 7, Wanke Yuncheng phase I, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province (16 / F, block a, building 1, international innovation Valley)

Patentee after: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: Room 401, Block D, Huahan Innovation Park, 16 Longshan Road, North District, Xili Street, Nanshan District, Shenzhen City, Guangdong Province, 518000

Patentee before: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd.