CN105630677B - A kind of apparatus debugging method - Google Patents

A kind of apparatus debugging method Download PDF

Info

Publication number
CN105630677B
CN105630677B CN201510974560.1A CN201510974560A CN105630677B CN 105630677 B CN105630677 B CN 105630677B CN 201510974560 A CN201510974560 A CN 201510974560A CN 105630677 B CN105630677 B CN 105630677B
Authority
CN
China
Prior art keywords
interfaces
input
upp
output
value
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.)
Active
Application number
CN201510974560.1A
Other languages
Chinese (zh)
Other versions
CN105630677A (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 East Micro Smart Polytron Technologies Inc
Original Assignee
Shenzhen East Micro Smart Polytron Technologies Inc
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 East Micro Smart Polytron Technologies Inc filed Critical Shenzhen East Micro Smart Polytron Technologies Inc
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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of apparatus debugging methods, include the following steps:S1, analogue audio input, in VC programs, time interval according to the 48K sample rates of equipment goes under a certain path to read the audio file of a WAV form, it is exported finally by PC loud speakers, the overall process that audio signal exports to the end can be inputted with the audio signal of emulator by the method, VC gives tacit consent to the input of 0 channel, and the output of 0 channel can change input/output port by changing simInPort and simOutPort.The beneficial effects of the invention are as follows:Through the above scheme, the sequence of operations such as compiling, packing, burning, restarting equipment can be saved, have saved time cost greatly.

Description

A kind of apparatus debugging method
Technical field
The present invention relates to equipment debugging more particularly to a kind of apparatus debugging methods.
Background technology
A new project is developed, debugs new a module or algorithm, formulates a new topo structure.It is required for A large amount of manpower and materials are debugged and are tested.Usually all it is to write code volume when suffering a problem that in the process of development After translating, code is burnt in dsp chip with emulator, observation phenomenon then again debugging modification code, operate repeatedly until It brings the issue to a final solution.In addition, segment chip supports in-circuit emulation, some debugging methods can be increased, however emulator is expensive, increases Add material resources cost.
The compiler that provided due to the debugging method of VC far more than chip manufacturer.Therefore by it is macro come distinguish VC and Code under CCS translation and compiling environments, can be with the code of artificial debugging major part CCS using VC compilers.Problem most of in this way is just It can be transferred under VC environment, debugging method is various, can be quickly found out where problem.In addition, it is added inside program Debugging interface, can also slave device obtain some information, to solve the problems, such as and Optimized code.
The missing of debugging method, directly affects development progress.In debugging process, the tool of occupancy is more, and elapsed time is long, The code efficiency write is low, and ultimately increases project development cost.And because of the project development time, lead to project delay, Many chances can be lost.
Invention content
In order to solve the problems in the prior art, the present invention provides a kind of apparatus debugging methods.
The present invention provides a kind of apparatus debugging methods, include the following steps:
S1, analogue audio input, in VC programs, go according to the time interval of the 48K sample rates of equipment under a certain path The audio file of a WAV form is read, exports finally by PC loud speakers, can be believed by the method with the audio of emulator Number input to the end audio signal output overall process, VC give tacit consent to 0 channel input, 0 channel output, by changing simInPort Input/output port can be changed with simOutPort;
S2, outloop and inloop;
S3, arbitrary channel levels are detected and are recorded;
S4, algorithm statistical information is checked.
As a further improvement on the present invention, step S2 is:It is false to give tacit consent to outloop and inloop, each AudioIf interfaces carry out audio data frame statistics.
As a further improvement on the present invention, step S3 is:By control platform obtain specified by a certain channel of processor Level value, and record data be then stored under working directory with PCM format.
As a further improvement on the present invention, step S4 is:Before entering, current CPU time, processor processing are recorded After complete, the current CPU time is recorded, then carries out maximum value, minimum value, the calculating of average value, and reflects that the arg to system joins Number, is consulted at any time.
As a further improvement on the present invention, step S3 includes following son:
S301, input;
S302, debugging are enabled, if value is false, export, if value is true, enter in next step;
S303, it just can be recorded, if value is false, exported, if value is true, send data to network interface; Detection is enabled, if value is false, exports, if value is true, calculates level value;
S304, output.
As a further improvement on the present invention, step S4 includes following son:
S401, input;
S402, statistics are enabled, if value is false, calls processor algorithm and export, if value is true, into Enter in next step;
S403, record time;
S404, processor algorithm is called;
S405, the time is calculated;
S406, output.
The beneficial effects of the invention are as follows:Through the above scheme, using VC assist emulate, by set breakpoint, allocating stack, Check memory headroom can quickly finder editor the problem of where;It, can be more true when debugging processor algorithm Emulate actual audio data stream process, in VC compilers, anywhere check data, addition code, by algorithm gained The data write-in fixed disk file arrived, facilitates debugging;Simultaneously in the most of the time, compiling can be saved, packing, burning, restarted The sequence of operations such as equipment, have saved greatly time cost.
Description of the drawings
Fig. 1 is recording and the overhaul flow chart of a kind of apparatus debugging method of the present invention.
Fig. 2 is a kind of time calculation flow chart of the processor of apparatus debugging method of the present invention.
Fig. 3 is a kind of flow graph of the audio signal of apparatus debugging method of the present invention in system.
Specific embodiment
The present invention is further described for explanation and specific embodiment below in conjunction with the accompanying drawings.
As shown in Figure 1 to Figure 3, a kind of apparatus debugging method, includes the following steps:
1. analogue audio inputs
In VC programs, one WAV form of reading under a certain path is removed according to the time interval of the 48K sample rates of equipment Audio file is exported finally by PC loud speakers.Audio to the end can be inputted with the audio signal of emulator by the method The overall process of signal output.VC gives tacit consent to the input of 0 channel, the output of 0 channel.It can be with by changing simInPort and simOutPort Change input/output port.It in debugging process, can be saved than more actually emulating the effect of internal processor algorithm in this way CCS compilings are packaged, restart, all multi-step such as operation.
2. outloop and inloop
In current double-core processing, containing multiple audioIf interfaces such as anologIf, uppIf, netAudioIf, such as Fruit whole system can not work normally, how quickly to position host CPU or from CPU the problem of or analogue audio frequency driving, number The problem of word audio driven, UPP is always a more difficult means.In the present solution, proposing outloop and inloop Concept makes this problem become masterly.Fig. 3 is the flow graph of system audio signal and outloop and inloop mark Position, system default outloop and inloop are false.Meanwhile also have audio data frame statistics in each audioIf interfaces, It, can more quick problem analysis place by each interface.
3. pair arbitrary channel levels detection and recording
As soon as after a new Topo structures are formulated, tend not to disposably have sound output.According to topo structures to every The a certain channel of one algorithm processor is monitored into line level, you can where the problem of quick positioning topo is formulated.Likewise, During debugging algorithm, audio signal is passed through after algorithm, and it is most important that kind of variation occurs.Traditional test method is main It is to be analyzed by the output signal to simulation output port, what it is due to acquisition is all analog signal, is not digitized, and And other algorithms after algorithm output also after topo, analyze inconvenience.Each processor of this programme it is every One channel is added to the debugging methods such as recording and detection to the channel to audio data processing, total enabled by one, The utilization rate of CPU, specific flow chart such as Fig. 3 can be improved.It can be obtained by Win- TosClient. Exe control platforms The level value of the specified a certain channel of processor, and the data recorded then are stored in Win- TosClient. Exe with PCM format Under working directory, the coolEdit either professional softwares such as audio can be used to be analyzed.
4. check algorithm statistical information
This system includes comprehensive and accurate statistical information, including including single algorithm, overall algorithm, data frame period, main line Journey, from thread, the maximum time of data thread, minimum time, average time.With the maximum time of computation processor algorithm, most The small time for average time, before entering, records the current CPU time, after processor has been handled, when recording current CPU Between, maximum value, minimum value, the calculating of average value, and the arg parameters reflected to system are then carried out, is consulted at any time.
A kind of apparatus debugging method provided by the invention, ARM, DSP program code share same set of code, pass through Hong Lai areas Lacing is translated so that it is convenient to manage debugging.And support VC artificial debuggings, because being emulated using VC compilers, can be configured disconnected Point, checks variate-value, checks many debugging methods such as category information, allocating stack.Can settlement procedure to the greatest extent BUG. Under normal conditions, VC can compile by and normal operation, the ARM under CCS, DSP programs are also without making too many modification just It can compile through simultaneously normal operation.In system, many Debugging message have also been reserved.It is controlled by Win-TosClient.exe Where platform can open debugging method and obtain code issue according to these debugging methods.These Debugging message VC and equipment Debugging.
A kind of apparatus debugging method provided by the invention has the following advantages:
1. using VC auxiliary emulation, by setting breakpoint, allocating stack, checking that memory headroom can quick finder Where the problem of editor.When debugging processor algorithm, the process of actual audio data stream more can be really emulated, is compiled in VC It translates in device, anywhere checks data, addition code, fixed disk file is written into data obtained in algorithm, facilitate debugging.Together When in the most of the time, the sequence of operations such as compiling, packing, burning, restarting equipment can be saved, saved greatly the time into This.
2. BUG occur in program and topo, no sound output is caused either to export abnormal, can set The inloop of the interfaces such as anologIf, uppIf, netAudioAnd if the debugging method of outloop, quickly by problem be contracted to compared with Then small range is solved the problems, such as by other debugging methods.
3. in the channel output of each processor, all containing functions such as detection, recording.Due to running knot under VC environment When fruit disagrees with physical device operation result, internal actual audio data can be analyzed by the debugging method of recording. Meanwhile the internal testing mechanism for increasing similar probe, can processor algorithm one by one channel one by one carry out level value obtain with And the error count during communication of equipment internal audio frequency data.
It 4. by checking the time parameters such as internal algorithm, processor, thread, can be optimal program operation.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, it is impossible to assert The specific implementation of the present invention is confined to these explanations.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, several simple deduction or replace can also be made, should all be considered as belonging to the present invention's Protection domain.

Claims (6)

1. a kind of apparatus debugging method, which is characterized in that include the following steps:
S1, analogue audio input, in VC programs, go under a certain path to read according to the time interval of the 48K sample rates of equipment The audio file of one WAV form is exported finally by PC loud speakers, can be defeated with the audio signal of emulator by the method Enter the overall process of the output of audio signal to the end, VC gives tacit consent to the input of 0 channel, the output of 0 channel, by change simInPort and SimOutPort can change input/output port;
S2, outloop and inloop, wherein,
The outloop of the anolog interfaces of main dsp processor is:The output of the output termination anolog interfaces of main dsp processor End, the input terminal of the output termination anolog interfaces of anolog interfaces, the input of anolog interfaces terminate the defeated of main dsp processor Enter end;
The inloop of the upp interfaces of main dsp processor is:The output terminal of the output termination upp interfaces of main dsp processor, upp connect The input terminal of the output termination upp interfaces of mouth, the input of upp interfaces terminate the input terminal of main dsp processor;
The outloop of the upp interfaces of main dsp processor is:The output terminal of the input termination upp interfaces of upp interfaces;
Inloop from the upp interfaces of dsp processor is:From the output terminal of the output termination upp interfaces of dsp processor, upp connects The input terminal of the output termination upp interfaces of mouth, the input of upp interfaces terminate the input terminal from dsp processor;
Outloop from the upp interfaces of dsp processor is:The output terminal of the input termination upp interfaces of upp interfaces;
Inloop from the netAudio interfaces of dsp processor is:The defeated of netAudio interfaces is terminated from the output of dsp processor Outlet, the input terminal of the output termination netAudio interfaces of netAudio interfaces, the input of netAudio interfaces are terminated at DSP Manage the input terminal of device;
Outloop from the netAudio interfaces of dsp processor is:The input termination netAudio of netAudio interfaces connects The output terminal of mouth interface;
S3, arbitrary channel levels are detected and are recorded;
S4, algorithm statistical information is checked.
2. apparatus debugging method according to claim 1, which is characterized in that step S2 is:Give tacit consent to outloop and inloop For false, audio data frame statistics is carried out in each audioIf interfaces.
3. apparatus debugging method according to claim 1, which is characterized in that step S3 is:Institute is obtained by control platform The level value of a certain channel of given processor, and the data recorded then are stored in PCM format under working directory.
4. apparatus debugging method according to claim 1, which is characterized in that step S4 is:Before entering, it records current CPU time after processor has been handled, records the current CPU time, then carries out maximum value, minimum value, the calculating of average value, And the arg parameters reflected to system, it consults at any time.
5. apparatus debugging method according to claim 1, which is characterized in that step S3 includes following son:
S301, input;
S302, debugging are enabled, if value is false, export, if value is true, enter in next step;
S303, it just can be recorded, if value is false, exported, if value is true, send data to network interface;Detection It is enabled, if value is false, export, if value is true, calculate level value;
S304, output.
6. apparatus debugging method according to claim 1, which is characterized in that step S4 includes following son:
S401, input;
S402, statistics are enabled, if value is false, calls processor algorithm and export, if value is true, under entering One step;
S403, record time;
S404, processor algorithm is called;
S405, the time is calculated;
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 CN105630677A (en) 2016-06-01
CN105630677B true 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)

Families Citing this family (1)

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

Citations (3)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2362316A1 (en) * 2010-02-22 2011-08-31 EchoStar Global B.V. Monitoring and controlling the operation of devices in a distributed network of broadcast devices

Patent Citations (3)

* 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
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的多路音频采集与接口系统设计与实现;蒋小艳;《科学技术与工程》;20120928;第12卷(第27期);7089-7093 *

Also Published As

Publication number Publication date
CN105630677A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
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
WO2021057057A1 (en) Target-code coverage testing method, system, and medium of operating system-level program
CN111651366B (en) SDK test method, device, equipment and storage medium
CN104346265B (en) The acquisition methods and device of terminal device and its log information
US9940220B2 (en) Integrating a protocol analysis device with features of a software development program
CN104156311B (en) A kind of embedded type C language target code level unit test method based on CPU emulator
TW201312340A (en) Handheld electronic device testing system and method
CN105025141A (en) Method and device for testing electricity consumption of terminal
CN110688313B (en) Fault injection method for software testing under VxWorks operating system
CN104375938A (en) Dynamic behavior monitoring method and system for Android application program
CN103399814A (en) Automated testing method and automated testing device
WO2024098753A1 (en) Abnormality detection method, apparatus and system, and host device and storage medium
CN113497809A (en) MIPS framework vulnerability mining method based on control flow and data flow analysis
CN109857637A (en) A kind of Java language method coverage rate and method input and output statistical method and device based on note
CN105630677B (en) A kind of apparatus debugging method
US6560722B1 (en) Developing and deploying real-time high-performance applications with DSPs
CN103699485B (en) Application program adjustment method and device
JP4187470B2 (en) Semiconductor device development support cooperation device and development support method
US20150286557A1 (en) Embedded instruction sets for use in testing and error simulation of computing programs
CN108021495B (en) Code debugging method based on playback
WO2023217118A1 (en) Code test method and apparatus, and test case generation method and apparatus
CN116244133A (en) Hard disk test management method, system, terminal and storage medium
KR102042996B1 (en) Method and apparatus for measuring code coverage not by using probes and computer readable recording medium having program the same
CN103064789B (en) A kind of automated testing method of software control

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

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.

CP02 Change in the address of a patent holder