CN111935622B - Debugging method, device, equipment and storage medium for electronic equipment with digital power amplifier - Google Patents
Debugging method, device, equipment and storage medium for electronic equipment with digital power amplifier Download PDFInfo
- Publication number
- CN111935622B CN111935622B CN202010780476.7A CN202010780476A CN111935622B CN 111935622 B CN111935622 B CN 111935622B CN 202010780476 A CN202010780476 A CN 202010780476A CN 111935622 B CN111935622 B CN 111935622B
- Authority
- CN
- China
- Prior art keywords
- debugging
- debugged
- power amplifier
- parameters
- file
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
Landscapes
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Amplifiers (AREA)
Abstract
The embodiment of the invention discloses a debugging method, a device, equipment and a storage medium for electronic equipment with a digital power amplifier, wherein the method comprises the following steps: acquiring a debugging file, wherein the debugging file comprises a binary document of parameters to be debugged; analyzing the debugging file to obtain parameters to be debugged; and initializing and adjusting the digital power amplifier of the electronic equipment according to the parameter to be debugged. According to the debugging method of the electronic equipment with the digital power amplifier, provided by the embodiment of the invention, the initialization parameter of the digital power amplifier is converted into the binary file according to the preset format, the binary file at the designated position is automatically read and converted into the initialization parameter array when the equipment system is started, and finally the parameter array is written into the digital power amplifier, so that the problem that a software engineer needs to compile codes on site to realize parameter modification when the digital power amplifier of the electronic equipment is adjusted in the prior art is solved, the digital power amplifier parameter is rapidly modified and debugged, and the labor and time cost are saved.
Description
Technical Field
The embodiment of the invention relates to a digital power amplifier technology, in particular to a debugging method, a debugging device, debugging equipment and a storage medium for electronic equipment with a digital power amplifier.
Background
Most intelligent devices use digital power amplifiers, and loudspeakers, structures and sizes of products are various, so that the sound parameters of the digital power amplifiers need to be repeatedly debugged in order to show the optimal sound effect for users. The method for using power amplifier parameters generally initializes the digital power amplifier in the process of starting up, and the power amplifier parameters are either directly compiled into software through codes or appoint different register data of the digital power amplifier through configuration files. However, the two methods are used for writing parameters into codes and directly compiling the codes, which leads to frequent modification of compiled codes in the debugging process, and if a debugging parameter person is not a software designer, a software designer is required to be beside the debugging parameter person to debug the parameters. Moreover, the operation of the configuration file is cumbersome, and if the registers and their parameters are added or deleted in the configuration file, the code is modified and compiled before use. If the register addition and deletion are involved, the debugging work can be completed only by the cooperation of a software designer.
Disclosure of Invention
The invention provides a debugging method of electronic equipment with a digital power amplifier, which is used for quickly modifying and debugging the parameters of the digital power amplifier and saving the labor and time cost.
In a first aspect, an embodiment of the present invention provides a method for debugging an electronic device with a digital power amplifier, including: acquiring a debugging file, wherein the debugging file comprises a binary document of parameters to be debugged;
analyzing the debugging file to obtain parameters to be debugged;
and initializing and adjusting the digital power amplifier of the electronic equipment according to the parameter to be debugged.
Optionally, the obtaining of the debug file, where the debug file includes a binary document of parameters to be debugged, includes:
arranging the parameters to be debugged according to the register address, the parameter number and the sequence of the parameters;
and converting the arranged parameters to be debugged into debugging files.
Optionally, the obtaining of the debug file, where the debug file includes a binary document of parameters to be debugged, includes:
arranging the parameters to be debugged according to the number of the parameters, the address of the register and the sequence of the parameters;
and converting the arranged parameters to be debugged into debugging files.
Optionally, the analyzing the debugging file to obtain the parameter to be debugged includes: and analyzing the debugging file and judging whether the debugging file is complete, if so, acquiring parameters to be debugged according to the debugging file.
Optionally, the obtaining the debug file, after the debug file includes the binary document of the parameter to be debugged, further includes: and saving the debugging file to a system designated position.
Optionally, before analyzing the debug file to obtain the parameter to be debugged, the method further includes: and judging whether the specified position contains the debugging file, if not, initializing and adjusting the digital power amplifier by using default parameters to be debugged.
Optionally, the method further includes: and when a plurality of parameters to be debugged exist, arranging the plurality of parameters to be debugged according to the head-to-tail connection sequence.
In a second aspect, an embodiment of the present invention further provides a debugging apparatus with a digital power amplifier, where the debugging apparatus includes:
the system comprises an acquisition module, a debugging module and a parameter setting module, wherein the acquisition module is used for acquiring a debugging file, and the debugging file comprises a binary document of parameters to be debugged;
the analysis module is used for analyzing the debugging file to obtain parameters to be debugged;
and the adjusting module is used for carrying out initialization adjustment on the digital power amplifier of the electronic equipment according to the parameter to be debugged.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
a digital power amplifier;
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the debugging method of the electronic device with the digital power amplifier.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program includes program instructions, and the program instructions, when executed by a processor, implement the method for debugging an electronic device with a digital power amplifier according to any one of the above descriptions.
The embodiment of the invention discloses a debugging method, a device, equipment and a storage medium for electronic equipment with a digital power amplifier, wherein the method comprises the following steps: acquiring a debugging file, wherein the debugging file comprises a binary document of parameters to be debugged; analyzing the debugging file to obtain parameters to be debugged; and initializing and adjusting the digital power amplifier of the electronic equipment according to the parameter to be debugged. According to the debugging method of the electronic equipment with the digital power amplifier, provided by the embodiment of the invention, the initialization parameter of the digital power amplifier is converted into the binary file according to the preset format, the binary file at the designated position is automatically read and converted into the initialization parameter array when the equipment system is started, and finally the parameter array is written into the digital power amplifier, so that the problem that a software engineer needs to compile codes on site to realize parameter modification when the digital power amplifier of the electronic equipment is adjusted in the prior art is solved, the digital power amplifier parameter is rapidly modified and debugged, and the labor and time cost are saved.
Drawings
Fig. 1 is a flowchart of a debugging method for an electronic device with a digital power amplifier according to an embodiment of the present invention;
fig. 2 is a flowchart of a debugging method for an electronic device with a digital power amplifier according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a debugging apparatus with a digital power amplifier electronic device in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a debugging device with a digital power amplifier electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, the first data may be referred to as the second data, and similarly, the second data may be referred to as the first data, without departing from the scope of the application. The first data and the second data are both data, but they are not the same data. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a flowchart of a debugging method for an electronic device with a digital power amplifier according to an embodiment of the present invention, where a debugging method for an electronic device with a digital power amplifier according to this embodiment is suitable for a case of debugging a digital power amplifier of an electronic device, and the method can be executed by an electronic device, and specifically includes the following steps:
In this embodiment, the digital power amplifier is an amplifier having characteristics of small distortion, low noise, large dynamic range, and the like, and is mainly used for adjusting sound of a sound in an electronic device. The debugging file is a parameter to be debugged of the digital power amplifier, and the parameter to be debugged includes but is not limited to: input sensitivity, harmonic distortion, signal-to-noise ratio, frequency response, damping coefficient, slew rate. The sound emitted by the sound box can be more suitable for the requirements of the user by modifying the parameters to be debugged. In this embodiment, since the debugging parameters belong to programming codes, and a common operator cannot directly modify the debugging parameters, the parameters to be debugged are converted into binary files, which is convenient for the electronic device to directly read in the starting process. Generally, the parameters to be debugged include register addresses, parameter numbers and parameters, and the register addresses, the parameter numbers and the parameters are converted into binary files according to a certain sequence and then stored in the electronic equipment, so that the electronic equipment can be automatically read after being restarted. By comparing the initialized data format and the rule of the digital power amplifier, the initialized parameters of the current digital power amplifier are found to be written into the register address firstly and then are followed by parameter values with different quantities.
In an alternative embodiment, step 100 further comprises: step 111 and step 112.
And 111, arranging the parameters to be debugged according to the register address, the parameter number and the sequence of the parameters.
In an alternative embodiment, the register address, the parameter number, and the parameter in the parameter to be debugged are arranged according to the order of the priority register address, the parameter number, and the parameter at last, and exemplary parameters to be debugged include: register address a parameter number a parameter.
And 112, converting the arranged parameters to be debugged into debugging files.
In an alternative embodiment, all the parameters to be debugged arranged in the order of the register address, the parameter number and the parameter are converted into a binary format file, for example, the a register address, the parameter number, the a parameter number, the parameter in step 111 is converted into an a register address (binary format), the parameter number (binary format), the a parameter (binary format).
In another alternative embodiment, step 100 further comprises: step 113 and step 114.
And 113, arranging the parameters to be debugged according to the number of the parameters, the address of the register and the sequence of the parameters.
In an alternative embodiment, the positions of the register address and the number of parameters in the parameter to be debugged may be exchanged, and the parameter to be debugged includes, for example: number of a parameter a register address a parameter.
Step 114, converting the arranged parameters to be debugged into a debugging file.
In an alternative embodiment, all the parameters to be debugged arranged in the order of the parameter number, the register address and the parameter are converted into a binary format file, for example, the a parameter number, the register address, the a parameter in step 111 is converted into an a parameter number (binary format), an a register address (binary format) and an a parameter (binary format).
And step 110, analyzing the debugging file to obtain the parameters to be debugged.
In the embodiment, the debugging file is input into the designated position of the electronic equipment, the electronic equipment reads the debugging file in the restarting process, the debugging file in the binary format is converted into the initialized parameter array through presetting the set format sequence, the initialized parameter array is in the code form of the parameter to be debugged and can be directly written into the digital power amplifier, a compiler is not required to perform compiling and rewriting operations on site, and complicated operations of rewriting the configuration file are avoided.
And 120, initializing and adjusting the digital power amplifier of the electronic equipment according to the parameter to be debugged.
In this embodiment, the initialization parameter array obtained in step 110 is directly written into a configuration file corresponding to the digital power amplifier, the digital power amplifier is initialized and adjusted by the parameter to be debugged, the debugging parameter of the digital power amplifier is updated, and at this time, the electronic device can meet the user's requirement according to the change of the digital power amplifier when playing sound.
The embodiment discloses a debugging method of electronic equipment with a digital power amplifier, which comprises the following steps: acquiring a debugging file, wherein the debugging file comprises a binary document of parameters to be debugged; analyzing the debugging file to obtain parameters to be debugged; and initializing and adjusting the digital power amplifier of the electronic equipment according to the parameter to be debugged. According to the debugging method of the electronic equipment with the digital power amplifier, provided by the embodiment of the invention, the initialization parameter of the digital power amplifier is converted into the binary file according to the preset format, the binary file at the designated position is automatically read and converted into the initialization parameter array when the equipment system is started, and finally the parameter array is written into the digital power amplifier, so that the problem that a software engineer needs to compile codes on site to realize parameter modification when the digital power amplifier of the electronic equipment is adjusted in the prior art is solved, the digital power amplifier parameter is rapidly modified and debugged, and the labor and time cost are saved.
Example two
Fig. 2 is a flowchart of a debugging method for an electronic device with a digital power amplifier according to a second embodiment of the present invention, where a debugging method for an electronic device with a digital power amplifier according to this embodiment is suitable for a case of debugging a digital power amplifier of an electronic device, and the method can be executed by an electronic device, and specifically includes the following steps:
In this embodiment, when there are multiple debug parameters, for example, debug parameter a, debug parameter B, and debug parameter C, the three debug parameters are arranged in a tail-end connection, where the debug parameter a exemplarily includes: register address a (binary format) parameter number a parameter (binary format) parameter a (binary format), debug parameter B includes: register address B (binary format) number of B parameters (binary format), debug parameters C include: c register address (binary format) C parameter number (binary format) C parameter (binary format), when debug parameter a, debug parameter B and debug parameter C are connected end to end, it is a register address (binary format) a parameter number (binary format) a parameter (binary format) B register address (binary format) B parameter number (binary format) B parameter (binary format) C register address (binary format) C parameter number (binary format) C parameter (binary format).
And step 220, saving the debugging file to a system specified position.
In this embodiment, the designated location of the system is a storage location of the configuration file of the digital power amplifier, the binarized debugging file is directly stored in the configuration file, and when the electronic device is restarted, the system automatically reads the configuration file to obtain the debugging file.
And step 230, judging whether the specified position contains the debugging file, and if not, initializing and adjusting the digital power amplifier by using default parameters to be debugged.
In this embodiment, the default parameter to be debugged is a preset parameter when the electronic device leaves a factory, and the sound can be played through the parameter, but the sound cannot meet the requirement of the user, and the parameter needs to be debugged. After the electronic equipment is restarted, whether the configuration file contains the updated debugging file or not can be read, if not, the electronic equipment can carry out initialization adjustment on the digital power amplifier according to the default parameter to be debugged, and the sound can be ensured to sound normally.
And 240, analyzing the debugging file and judging whether the debugging file is complete, and if so, acquiring parameters to be debugged according to the debugging file.
In this embodiment, when the electronic device obtains that a debug file exists in the configuration file, integrity check is performed on the debug file, whether the debug file is complete is determined, the digital power amplifier cannot be adjusted when the debug file is incomplete, the digital power amplifier is initialized according to default parameters to be debugged, and when the debug file is complete, the electronic device reads the debug file and initializes according to the debug file, so as to achieve the purpose of debugging the audio.
And step 250, initializing and adjusting the digital power amplifier of the electronic equipment according to the parameter to be debugged.
The embodiment discloses a debugging method of electronic equipment with a digital power amplifier, which comprises the following steps: acquiring a debugging file, wherein the debugging file comprises a binary document of parameters to be debugged; when a plurality of parameters to be debugged exist, arranging the plurality of parameters to be debugged according to a head-to-tail connection sequence; saving the debugging file to a system designated position; judging whether the specified position contains the debugging file, if not, initializing and adjusting the digital power amplifier by using default parameters to be debugged; analyzing the debugging file and judging whether the debugging file is complete or not, if so, acquiring parameters to be debugged according to the debugging file; and initializing and adjusting the digital power amplifier of the electronic equipment according to the parameter to be debugged. According to the debugging method of the electronic equipment with the digital power amplifier, provided by the embodiment of the invention, the initialization parameter of the digital power amplifier is converted into the binary file according to the preset format, the binary file at the designated position is automatically read and converted into the initialization parameter array when the equipment system is started, and finally the parameter array is written into the digital power amplifier, so that the problem that a software engineer needs to compile codes on site to realize parameter modification when the digital power amplifier of the electronic equipment is adjusted in the prior art is solved, the digital power amplifier parameter is rapidly modified and debugged, and the labor and time cost are saved.
EXAMPLE III
The debugging device with the digital power amplifier electronic equipment provided by the embodiment of the invention can implement the debugging method with the digital power amplifier electronic equipment provided by any embodiment of the invention, and has the corresponding functional module and the beneficial effect of the execution method. Fig. 3 is a schematic structural diagram of a debugging apparatus 300 with a digital power amplifier electronic device in an embodiment of the present invention. Referring to fig. 3, the debugging apparatus 300 with a digital power amplifier electronic device provided in the embodiment of the present invention may specifically include:
an obtaining module 310, configured to obtain a debug file, where the debug file includes a binary document of parameters to be debugged;
the analysis module 320 is used for analyzing the debugging file to obtain the parameters to be debugged;
and the adjusting module 330 is configured to perform initialization adjustment on the digital power amplifier of the electronic device according to the parameter to be debugged.
Further, the obtaining of the debug file, where the debug file includes the binary document of the parameter to be debugged, includes:
arranging the parameters to be debugged according to the register address, the parameter number and the sequence of the parameters;
and converting the arranged parameters to be debugged into debugging files.
Further, the obtaining of the debug file, where the debug file includes the binary document of the parameter to be debugged, includes:
arranging the parameters to be debugged according to the number of the parameters, the address of the register and the sequence of the parameters;
and converting the arranged parameters to be debugged into debugging files.
Further, the analyzing the debugging file to obtain the parameter to be debugged includes: and analyzing the debugging file and judging whether the debugging file is complete, if so, acquiring parameters to be debugged according to the debugging file.
Further, the obtaining of the debug file, after the debug file includes the binary document of the parameter to be debugged, further includes: and saving the debugging file to a system designated position.
Further, before analyzing the debug file to obtain the parameter to be debugged, the method further includes: and judging whether the specified position contains the debugging file, if not, initializing and adjusting the digital power amplifier by using default parameters to be debugged.
Further, the method also comprises the following steps: and when a plurality of parameters to be debugged exist, arranging the plurality of parameters to be debugged according to the head-to-tail connection sequence.
The embodiment discloses a take debugging of digital power amplifier electronic equipment, the device includes: the system comprises an acquisition module, a debugging module and a parameter setting module, wherein the acquisition module is used for acquiring a debugging file, and the debugging file comprises a binary document of parameters to be debugged; the analysis module is used for analyzing the debugging file to obtain parameters to be debugged; and the adjusting module is used for carrying out initialization adjustment on the digital power amplifier of the electronic equipment according to the parameter to be debugged. According to the debugging method of the electronic equipment with the digital power amplifier, provided by the embodiment of the invention, the initialization parameter of the digital power amplifier is converted into the binary file according to the preset format, the binary file at the designated position is automatically read and converted into the initialization parameter array when the equipment system is started, and finally the parameter array is written into the digital power amplifier, so that the problem that a software engineer needs to compile codes on site to realize parameter modification when the digital power amplifier of the electronic equipment is adjusted in the prior art is solved, the digital power amplifier parameter is rapidly modified and debugged, and the labor and time cost are saved.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes a memory 410 and a processor 420, where the number of the processors 420 in the apparatus may be one or more, and one processor 420 is taken as an example in fig. 4; the memory 410 and the processor 420 in the device may be connected by a bus or other means, and fig. 4 illustrates the connection by a bus as an example.
The memory 410 is used as a computer-readable storage medium, and can be used for storing a software program, a computer-executable program, and a module, such as a program instruction/module (for example, the obtaining module 310, the parsing module 320, and the adjusting module 330 in the debugging apparatus 300 with a digital power amplifier electronic device) corresponding to the debugging method for an electronic device with a digital power amplifier in the embodiment of the present invention, the processor 420 executes various functional applications and data processing of the device/terminal/device by running the software program, the instruction, and the module stored in the memory 410, that is, the debugging method for an electronic device with a digital power amplifier is implemented.
Wherein the processor 420 is configured to run the computer program stored in the memory 410, and implement the following steps:
acquiring a debugging file, wherein the debugging file comprises a binary document of parameters to be debugged;
analyzing the debugging file to obtain parameters to be debugged;
and initializing and adjusting the digital power amplifier of the electronic equipment according to the parameter to be debugged.
In one embodiment, a computer program of the computer device provided in the embodiment of the present invention is not limited to the above method operations, and may also perform related operations in the debugging method for the electronic device with a digital power amplifier provided in any embodiment of the present invention.
The memory 410 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 410 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 410 may further include memory located remotely from the processor 420, which may be connected to devices/terminals/devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiment discloses a debugging device with a digital power amplifier electronic device, which is used for executing the following method: acquiring a debugging file, wherein the debugging file comprises a binary document of parameters to be debugged; analyzing the debugging file to obtain parameters to be debugged; and initializing and adjusting the digital power amplifier of the electronic equipment according to the parameter to be debugged. According to the debugging device with the digital power amplifier electronic equipment, provided by the embodiment of the invention, the initialization parameter of the digital power amplifier is converted into the binary file according to the preset format, the binary file at the designated position is automatically read and converted into the initialization parameter array when the equipment system is started, and finally the parameter array is written into the digital power amplifier, so that the problem that a software engineer needs to compile codes on site to realize parameter modification when the digital power amplifier of the electronic equipment is adjusted in the prior art is solved, the digital power amplifier parameter is rapidly modified and debugged, and the labor and time cost are saved.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing a computer executable instruction, where the computer executable instruction is used to execute a debugging method for an electronic device with a digital power amplifier when executed by a computer processor, and the method includes:
acquiring a debugging file, wherein the debugging file comprises a binary document of parameters to be debugged;
analyzing the debugging file to obtain parameters to be debugged;
and initializing and adjusting the digital power amplifier of the electronic equipment according to the parameter to be debugged.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present invention is not limited to the above-described method operations, and may also perform related operations in a debugging method for an electronic device with a digital power amplifier provided in any embodiment of the present invention.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The embodiment discloses a debugging storage medium with a digital power amplifier electronic device, which is used for executing the following method: acquiring a debugging file, wherein the debugging file comprises a binary document of parameters to be debugged; analyzing the debugging file to obtain parameters to be debugged; and initializing and adjusting the digital power amplifier of the electronic equipment according to the parameter to be debugged. According to the debugging storage medium with the digital power amplifier electronic equipment, provided by the embodiment of the invention, the initialization parameter of the digital power amplifier is converted into the binary file according to the preset format, the binary file at the designated position is automatically read and converted into the initialization parameter array when the equipment system is started, and finally the parameter array is written into the digital power amplifier, so that the problem that a software engineer needs to compile codes on site to realize parameter modification when the digital power amplifier of the electronic equipment is adjusted in the prior art is solved, the digital power amplifier parameter is rapidly modified and debugged, and the labor and time cost are saved.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (8)
1. A debugging method of electronic equipment with a digital power amplifier is characterized by comprising the following steps:
acquiring a debugging file, wherein the debugging file comprises a binary document of parameters to be debugged;
analyzing the debugging file to obtain parameters to be debugged;
initializing and adjusting a digital power amplifier of the electronic equipment according to the parameter to be debugged;
the obtaining of the debug file, the debug file including the binary document of the parameter to be debugged includes:
arranging the parameters to be debugged according to the register address, the parameter number and the sequence of the parameters, or arranging the parameters to be debugged according to the parameter number, the register address and the sequence of the parameters;
converting the arranged parameters to be debugged into debugging files;
the analyzing the debugging file to obtain the parameter to be debugged includes: converting the debugging file into an initialization parameter array;
the initialization adjustment of the digital power amplifier of the electronic equipment according to the parameters to be debugged comprises the step of directly writing an initialization parameter array into a configuration file corresponding to the digital power amplifier of the electronic equipment.
2. The method for debugging an electronic device with a digital power amplifier according to claim 1, wherein said parsing the debug file to obtain the parameters to be debugged comprises: and analyzing the debugging file and judging whether the debugging file is complete, if so, acquiring parameters to be debugged according to the debugging file.
3. The method for debugging an electronic device with a digital power amplifier according to claim 1, wherein said obtaining a debugging file, said debugging file including a binary file of parameters to be debugged further comprises: and saving the debugging file to a system designated position.
4. The method for debugging an electronic device with a digital power amplifier according to claim 3, wherein before parsing the debug file to obtain the parameters to be debugged, the method further comprises: and judging whether the specified position contains the debugging file, if not, initializing and adjusting the digital power amplifier by using default parameters to be debugged.
5. The method for debugging an electronic device with a digital power amplifier according to claim 1, further comprising: and when a plurality of parameters to be debugged exist, arranging the plurality of parameters to be debugged according to the head-to-tail connection sequence.
6. The utility model provides a take digital power amplifier electronic equipment's debugging device which characterized in that includes:
the system comprises an acquisition module, a debugging module and a parameter setting module, wherein the acquisition module is used for acquiring a debugging file, and the debugging file comprises a binary document of parameters to be debugged;
the analysis module is used for analyzing the debugging file to obtain parameters to be debugged;
the adjusting module is used for carrying out initialization adjustment on the digital power amplifier of the electronic equipment according to the parameter to be debugged;
the obtaining of the debug file, the debug file including the binary document of the parameter to be debugged includes:
arranging the parameters to be debugged according to the register address, the parameter number and the sequence of the parameters, or arranging the parameters to be debugged according to the parameter number, the register address and the sequence of the parameters;
converting the arranged parameters to be debugged into debugging files;
the analyzing the debugging file to obtain the parameter to be debugged includes: converting the debugging file into an initialization parameter array;
the initialization adjustment of the digital power amplifier of the electronic equipment according to the parameters to be debugged comprises the step of directly writing an initialization parameter array into a configuration file corresponding to the digital power amplifier of the electronic equipment.
7. An electronic device, characterized in that the device comprises:
a digital power amplifier;
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the debugging method of the electronic device with the digital power amplifier according to any one of claims 1 to 5.
8. A computer-readable storage medium, on which a computer program is stored, the computer program comprising program instructions, wherein the program instructions, when executed by a processor, implement the method for debugging an electronic device with a digital power amplifier according to any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010780476.7A CN111935622B (en) | 2020-08-03 | 2020-08-03 | Debugging method, device, equipment and storage medium for electronic equipment with digital power amplifier |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010780476.7A CN111935622B (en) | 2020-08-03 | 2020-08-03 | Debugging method, device, equipment and storage medium for electronic equipment with digital power amplifier |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111935622A CN111935622A (en) | 2020-11-13 |
CN111935622B true CN111935622B (en) | 2022-02-11 |
Family
ID=73306800
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010780476.7A Active CN111935622B (en) | 2020-08-03 | 2020-08-03 | Debugging method, device, equipment and storage medium for electronic equipment with digital power amplifier |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111935622B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018101966A (en) | 2016-12-22 | 2018-06-28 | ソニーセミコンダクタソリューションズ株式会社 | Solid-state imaging device, electronic device, and control method of the solid-state imaging device |
CN113076144A (en) * | 2021-04-23 | 2021-07-06 | 深圳创维-Rgb电子有限公司 | Power amplifier adaptation method, terminal device, storage medium and computer program product |
CN113542979A (en) * | 2021-07-29 | 2021-10-22 | 广州朗国电子科技股份有限公司 | Method and device for adjusting digital power amplifier |
CN113923448B (en) * | 2021-11-23 | 2023-08-22 | 四川长虹电器股份有限公司 | Method for quickly importing production debugging mode |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102279789A (en) * | 2010-06-13 | 2011-12-14 | 三星电子(中国)研发中心 | Debugging system and debugging method for embedded system of production phase |
CN103049265A (en) * | 2012-12-14 | 2013-04-17 | 武汉大学 | Method for processing zone bits in reverse decompilation system |
CN104156221A (en) * | 2014-08-29 | 2014-11-19 | 上海艾为电子技术有限公司 | Chip and method and device for modifying chip configuration |
CN104994459A (en) * | 2015-06-17 | 2015-10-21 | Tcl海外电子(惠州)有限公司 | Terminal digital power amplifier configuration method and device |
CN106681914A (en) * | 2016-12-14 | 2017-05-17 | 广州视源电子科技股份有限公司 | Television picture quality debugging method and device |
CN109344051A (en) * | 2018-08-28 | 2019-02-15 | 北京达佳互联信息技术有限公司 | Method, apparatus, electronic equipment and the storage medium of data processing |
CN110088736A (en) * | 2016-12-05 | 2019-08-02 | 耐瑞唯信有限公司 | Self-debugging |
CN110795393A (en) * | 2019-10-31 | 2020-02-14 | 中孚安全技术有限公司 | Method, system, equipment and readable storage medium for analyzing binary format of document |
CN111314835A (en) * | 2018-12-11 | 2020-06-19 | 无锡华润矽科微电子有限公司 | Debugging system and method based on digital power amplifier chip |
CN111459523A (en) * | 2020-04-02 | 2020-07-28 | 深圳创维-Rgb电子有限公司 | Image quality chip software upgrading method and device, electronic equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI262392B (en) * | 2004-11-11 | 2006-09-21 | Benq Corp | An electronic device with a debugging function and the method thereof |
CN110502283A (en) * | 2019-08-19 | 2019-11-26 | 深圳大趋智能科技有限公司 | A kind of product peripheral hardware compatibility method and system |
-
2020
- 2020-08-03 CN CN202010780476.7A patent/CN111935622B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102279789A (en) * | 2010-06-13 | 2011-12-14 | 三星电子(中国)研发中心 | Debugging system and debugging method for embedded system of production phase |
CN103049265A (en) * | 2012-12-14 | 2013-04-17 | 武汉大学 | Method for processing zone bits in reverse decompilation system |
CN104156221A (en) * | 2014-08-29 | 2014-11-19 | 上海艾为电子技术有限公司 | Chip and method and device for modifying chip configuration |
CN104994459A (en) * | 2015-06-17 | 2015-10-21 | Tcl海外电子(惠州)有限公司 | Terminal digital power amplifier configuration method and device |
CN110088736A (en) * | 2016-12-05 | 2019-08-02 | 耐瑞唯信有限公司 | Self-debugging |
CN106681914A (en) * | 2016-12-14 | 2017-05-17 | 广州视源电子科技股份有限公司 | Television picture quality debugging method and device |
CN109344051A (en) * | 2018-08-28 | 2019-02-15 | 北京达佳互联信息技术有限公司 | Method, apparatus, electronic equipment and the storage medium of data processing |
CN111314835A (en) * | 2018-12-11 | 2020-06-19 | 无锡华润矽科微电子有限公司 | Debugging system and method based on digital power amplifier chip |
CN110795393A (en) * | 2019-10-31 | 2020-02-14 | 中孚安全技术有限公司 | Method, system, equipment and readable storage medium for analyzing binary format of document |
CN111459523A (en) * | 2020-04-02 | 2020-07-28 | 深圳创维-Rgb电子有限公司 | Image quality chip software upgrading method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111935622A (en) | 2020-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111935622B (en) | Debugging method, device, equipment and storage medium for electronic equipment with digital power amplifier | |
CN107273176B (en) | Compiling method and device adaptive to hardware architecture | |
CN107015841B (en) | Preprocessing method for program compiling and program compiling device | |
CN109873735B (en) | Performance test method and device for H5 page and computer equipment | |
CN111143403B (en) | SQL conversion method and device and storage medium | |
CN108345458B (en) | Calling method and system for static compiling language and scripting language | |
CN106776266B (en) | Configuration method of test tool and terminal equipment | |
TW201502985A (en) | Method and device for processing file | |
CN110188308B (en) | Client automatic dotting reporting method, storage medium, equipment and system | |
JP2021002326A (en) | Refinement of repair patterns for static analysis violations in software programs | |
CN113127000B (en) | Compiling method, compiling device, compiling equipment and compiling storage medium for application program component | |
CN113127413B (en) | Operator data processing method, device, server and storage medium | |
CN109446078B (en) | Code testing method and device, storage medium and electronic equipment | |
CN110659210A (en) | Information acquisition method and device, electronic equipment and storage medium | |
CN109032617B (en) | Control method and control device for automatically deleting installation package | |
KR20220047928A (en) | source modification engine | |
CN111151008B (en) | Verification method and device for game operation data, configuration background and medium | |
CN112711602B (en) | Method and device for running stored procedure, database system and storage medium | |
CN113360373A (en) | Test method for full traversal of Activity page of mobile application | |
KR101476536B1 (en) | The method and system for inspecting program | |
CN112612474A (en) | Product transplanting method and device, storage medium and electronic equipment | |
CN109783133B (en) | Code packaging method and device, computer equipment and storage medium | |
CN110597517A (en) | Method and device for dynamically analyzing mat file | |
CN109558375B (en) | Optimized file storage method, storage medium, equipment and system | |
CN112689199A (en) | Method and device for loading plug-in of television homepage, television and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |