CN108376069B - Data synthesis method and device - Google Patents

Data synthesis method and device Download PDF

Info

Publication number
CN108376069B
CN108376069B CN201610946440.5A CN201610946440A CN108376069B CN 108376069 B CN108376069 B CN 108376069B CN 201610946440 A CN201610946440 A CN 201610946440A CN 108376069 B CN108376069 B CN 108376069B
Authority
CN
China
Prior art keywords
firmware
data
file
tool
electroacoustic parameters
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
CN201610946440.5A
Other languages
Chinese (zh)
Other versions
CN108376069A (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 3nod Acousticlink Co ltd
Shenzhen 3Nod Digital Technology Co Ltd
Guangxi 3Nod Digital Technology Co Ltd
Original Assignee
Shenzhen 3nod Acousticlink Co ltd
Shenzhen 3Nod Digital Technology Co Ltd
Guangxi 3Nod Digital 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 3nod Acousticlink Co ltd, Shenzhen 3Nod Digital Technology Co Ltd, Guangxi 3Nod Digital Technology Co Ltd filed Critical Shenzhen 3nod Acousticlink Co ltd
Priority to CN201610946440.5A priority Critical patent/CN108376069B/en
Publication of CN108376069A publication Critical patent/CN108376069A/en
Application granted granted Critical
Publication of CN108376069B publication Critical patent/CN108376069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a data synthesis method, which is operated according to the following steps: solidifying audio data into a first firmware and recompiling the first firmware; debugging the electroacoustic parameters, and converting to generate a data file containing the electroacoustic parameters; the data file and the first firmware are synthesized, and second firmware is generated. The data synthesis method and the device thereof synthesize the first firmware generated by the compiling tool and the data file generated by the conversion tool through the data synthesis tool and generate the second firmware; the data synthesis method and the device thereof can save human resources, reduce the trouble of recompiling the firmware, improve the working efficiency and improve the accuracy.

Description

Data synthesis method and device
Technical Field
The present invention relates to the field of data processing, and in particular, to a data synthesis method and apparatus.
Background
Currently, in the audio industry, a MCU (Micro Control Unit) firmware is generally used to Control functions of a sound box, such as power supply, keys, display, etc., and a DSP (Digital Signal Processing) is used to set and adjust a sound effect of the sound box.
In the audio industry, a software engineer compiles audio data into MCU firmware, and since the audio data introduced into the MCU firmware is not in the C language format and cannot be used directly, the format of the audio data needs to be converted, and then the audio data conforming to the MCU firmware format is solidified into the compiling software of the MCU firmware for compiling and burning.
Because the manual work is easy to make mistakes when the format of the audio data is converted or the audio data is copied, and if the testing shows that the isoelectric acoustic parameters can not meet the requirements after the MCU firmware is compiled and burned, the MCU firmware needs to be compiled and burned again by using new electroacoustic parameters; the whole process is complex, error is easy to occur, and the conversion efficiency is low.
Disclosure of Invention
The invention aims to provide a data synthesis method and a device thereof aiming at the technical problems in the prior art, and mainly solves the problems that errors are easy to occur and the efficiency is low when audio data in an original state is imported into MCU firmware.
In order to solve the problems proposed above, the technical scheme adopted by the invention is as follows:
the invention provides a data synthesis method, which comprises the following steps:
solidifying audio data into a first firmware and recompiling the first firmware;
debugging the electroacoustic parameters, and converting to generate a data file containing the electroacoustic parameters;
the data file and the first firmware are synthesized, and second firmware is generated.
As a further improvement of the present invention, said solidifying audio data into a first firmware and recompiling said first firmware comprises:
modifying the project configuration file and the C language file of the first firmware;
recompiling the modified first firmware, the first firmware including audio data.
As a further improvement of the present invention, the audio data is processed by a digital signal processor, and the audio data does not contain electroacoustic parameters.
As a further improvement of the invention, the debugging of the electroacoustic parameters can be realized by debugging an equalizer and converting the debugged electroacoustic parameters into a data file in a C language format.
As a further refinement of the invention, the second firmware comprises electroacoustic parameters in the data file.
As a further improvement of the invention, the device of the data synthesis method comprises a compiling tool, a conversion tool and a data synthesis tool;
the compiling tool is used for solidifying audio data into first firmware and recompiling the first firmware;
the conversion tool is used for debugging the electroacoustic parameters and converting the electroacoustic parameters into a data file containing the electroacoustic parameters;
the data synthesis tool is used for directly combining the data file and the first firmware to generate second firmware.
As a further improvement of the present invention, the compiling tool is specifically configured to:
modifying the project configuration file and the C language file of the first firmware;
recompiling the modified first firmware, the first firmware including audio data.
As a further improvement of the present invention, the audio data is processed by a digital signal processor, and the audio data does not contain electroacoustic parameters.
As a further improvement of the present invention, the tuning of the electroacoustic parameters may be performed by tuning an equalizer, and the conversion tool converts the tuned electroacoustic parameters into a data file in a C language format.
As a further development of the invention, the second firmware generated by the data synthesis tool contains the electroacoustic parameters in the data file.
Compared with the prior art, the invention has the beneficial effects that:
the data synthesis method and the device thereof synthesize the first firmware generated by the compiling tool and the data file generated by the conversion tool through the data synthesis tool and generate the second firmware; the data synthesis method and the device thereof can save human resources, reduce the trouble of recompiling the firmware, improve the working efficiency and improve the accuracy.
Drawings
FIG. 1 is a flow chart illustrating the steps of a data synthesis method according to an embodiment of the present invention;
fig. 2 is a device applied to the data synthesis method according to the embodiment of the present invention.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
As shown in fig. 1, which is a flow chart of steps of a data synthesis method according to an embodiment of the present invention, the method includes the following steps:
step S100: the audio data is solidified into the first firmware and the first firmware is recompiled.
In step 100, the first firmware is recompiled by fixing the externally input audio data into a Flash (Flash) location of the first firmware.
Optionally, the audio data is processed by a digital signal processor, and the audio data does not contain electroacoustic parameters.
Optionally, the first firmware is MCU (microcontroller) firmware, and the MCU firmware is a single-chip microcomputer integrating a main portion of the microcomputer on a chip.
Optionally, the solidifying the audio data into the first firmware and recompiling the first firmware includes:
modifying the project configuration file and the C language file of the first firmware;
recompiling the modified first firmware, the first firmware including audio data.
Optionally, the modification of the project configuration file of the first firmware is to add a code in the project configuration file of the first firmware:
“place at address mem:0x9AFF{readonly section.TAS5709};”。
optionally, the C language file of the first firmware is modified to add a pre-compiled instruction code in the C language file of the first firmware:
“#pragma location=“.TAS5709””。
in the embodiment of the invention, the audio data is solidified into the first firmware and the first firmware is recompiled, and the first firmware can be generated by modifying the engineering configuration file and the C language file of the first firmware and recompiling.
Step S200: and debugging the electroacoustic parameters, and converting to generate a data file containing the electroacoustic parameters.
In step 200, the electroacoustic parameters according to the embodiment of the present invention include EQ (equal equalization) data, and the like, and after the electroacoustic parameters are adjusted, the data file in the C language format may be generated by conversion.
Optionally, the debugging of the electroacoustic parameters may be performed by debugging an equalizer, and converting the debugged electroacoustic parameters to generate a data file in a C language format; the debugging equalizer can enhance the size of sound signals and enables sounds to be more enjoyable, the sound signals can be input through a network or hardware, the network can be input through wireless WIFI, Bluetooth and the like, and the hardware can be input through music files such as an SD card and a USB flash disk.
The embodiment of the invention debugs the electroacoustic parameters and converts the electroacoustic parameters into the data file containing the electroacoustic parameters, and the electroacoustic parameters can be debugged by debugging the electroacoustic parameters of the sound signals and converted into the data file in the C language format.
Step S300: the data file and the first firmware are synthesized, and second firmware is generated.
In step 300, the data file is merged directly with the first firmware and a second firmware is generated.
In an embodiment of the present invention, the data file and the first firmware are directly merged to generate a second firmware, and the second firmware is generated to contain the electroacoustic parameters in the data file.
The working flow of generating the second firmware according to the embodiment of the present invention is as follows:
respectively selecting the data file and the first firmware, and displaying a selection execution state in the operation process; and converting the data file into a data file format which can be identified by the first firmware according to a file conversion processing algorithm, and directly combining the data file with the first firmware to generate second firmware, wherein the second firmware comprises the electroacoustic parameters in the data file.
The data synthesis method provided by the embodiment of the invention is simple to operate, is not easy to make mistakes, and has high conversion efficiency.
Referring to fig. 2, the apparatus for the data synthesis method according to the embodiment of the present invention includes a compiling tool 1, a transformation tool 2, and a data synthesis tool 3;
the compiling tool 1 is used for fixing audio data into first firmware and recompiling the first firmware; the compiling tool 1 is an IAR _ for _ STM8 tool and the like, and the IAR _ for _ STM8 tool is a tool for compiling an engineering configuration file and a C language file of the sound box system MCU firmware and generating first firmware.
Optionally, the audio data is processed by a digital signal processor, and the audio data does not contain electroacoustic parameters.
Optionally, the first firmware is MCU (microcontroller) firmware, the MCU firmware is a single-chip microcomputer integrating a main portion of the microcomputer on a chip, and in an embodiment of the present invention, the MCU firmware is configured to store audio data.
Optionally, the compiling tool is specifically configured to:
modifying the project configuration file and the C language file of the first firmware;
recompiling the modified first firmware, the first firmware including audio data.
Optionally, the modification of the project configuration file of the first firmware is to add a code in the project configuration file of the first firmware:
“place at address mem:0x9AFF{readonly section.TAS5709};”。
optionally, the C language file of the first firmware is modified to add a pre-compiled instruction code in the C language file of the first firmware:
“#pragma location=“.TAS5709””。
the conversion tool 2 is used for debugging the electroacoustic parameters and converting the electroacoustic parameters to generate a data file containing the electroacoustic parameters; the conversion tool 2 is a TAS570X _ GDE tool or the like; in an embodiment of the present invention, the conversion tool 2 is a tool for debugging electroacoustic parameters of a sound signal and converting the sound signal into a data file in a C language format.
Optionally, the debugging of the electroacoustic parameters may be performed by debugging an equalizer, and the conversion tool 2 converts the debugged electroacoustic parameters into a data file in a C language format; the debugging equalizer can enhance the size of a sound signal, the sound signal can be input by a network or hardware, the network input can be input through wireless WIFI, Bluetooth and the like, and the hardware input can be input through a music file of an SD card, a U disk and the like.
The data synthesis tool 3 is used for directly merging the data file and the first firmware to generate a second firmware; the second firmware generated by the data synthesis tool 3 contains the electroacoustic parameters in the data file.
In the embodiment of the present invention, the data synthesis tool 3 includes a file selection window module, an execution state output window module, a file conversion processing algorithm module, and an execution button module, and all the modules in the embodiment of the present invention are interface buttons; the workflow of the data synthesis tool 3 is as follows:
the file selection window module needs to select the data file and the first firmware respectively; the execution state output window module is used for prompting the operation flow of the data synthesis tool 3; by starting the execution button module, the data synthesis tool 3 executes the file conversion processing algorithm module, the file conversion processing algorithm module converts the data file into a data file format which can be identified by the first firmware and directly merges with the first firmware to generate a second firmware, and the second firmware comprises the electroacoustic parameters in the data file.
In the embodiment of the present invention, the compiling tool 1 compiles the engineering configuration file and the C language file of the modified first firmware, may solidify audio data into a Flash location of the first firmware, and recompile the first firmware; the conversion tool 2 debugs the electroacoustic parameters and converts the debugged electroacoustic parameters into data files in a C language format; the data synthesis tool 3 directly synthesizes the data file generated by the conversion tool 2 and the first firmware generated by the compiling tool 1 and generates second firmware containing the electroacoustic parameters in the data file; the device of the data synthesis method can save human resources, reduce the trouble of recompiling the firmware and improve the working efficiency.
The data synthesis method and the device thereof avoid the problems that errors are easy to occur when the format of the audio data is manually converted or the audio data is copied, and MCU firmware is recompiled and burned; the data synthesis method and the device thereof can save human resources, reduce the trouble of recompiling the firmware, improve the working efficiency, and have simple operation, high accuracy and high conversion efficiency.
The present invention is not limited to the above embodiments, and any other changes, modifications, substitutions, combinations, and simplifications which do not depart from the spirit and principle of the present invention should be construed as equivalents and are included in the scope of the present invention.

Claims (8)

1. A data synthesis method is characterized by comprising the following steps:
the method comprises the steps of solidifying audio data into first firmware, and recompiling the first firmware, wherein the first firmware is MCU firmware and comprises an engineering configuration file and a C language file;
debugging the electroacoustic parameters, and converting to generate a data file containing the electroacoustic parameters, wherein the format of the data file containing the electroacoustic parameters is a C language format;
synthesizing the data file and the first firmware and generating second firmware;
the solidifying audio data into a first firmware and recompiling the first firmware comprises:
modifying the project configuration file and the C language file of the first firmware;
recompiling the modified first firmware, the first firmware containing audio data;
the synthesizing the data file and the first firmware and generating the second firmware comprises:
converting the data file into a data file format which can be identified by the first firmware according to a file conversion processing algorithm;
and directly combining the data file with the converted format with the first firmware to generate second firmware.
2. The data synthesis method according to claim 1, wherein: the audio data is processed by a digital signal processor, and the audio data does not contain electroacoustic parameters.
3. The data synthesis method according to claim 1, wherein: the debugging of the electroacoustic parameters can be realized by debugging an equalizer, and the debugged electroacoustic parameters are converted into a data file in a C language format.
4. The data synthesis method according to claim 1, wherein: the second firmware includes the electroacoustic parameters in the data file.
5. An apparatus for a data synthesis method, characterized by: the device of the data synthesis method comprises a compiling tool, a conversion tool and a data synthesis tool;
the compiling tool is used for solidifying audio data into first firmware and recompiling the first firmware, wherein the first firmware is MCU firmware and comprises an engineering configuration file and a C language file;
the conversion tool is used for debugging the electroacoustic parameters and converting the electroacoustic parameters into a data file containing the electroacoustic parameters, wherein the format of the data file containing the electroacoustic parameters is a C language format;
the data synthesis tool is used for directly combining the data file and the first firmware to generate second firmware;
the compilation tool is specifically configured to:
modifying the project configuration file and the C language file of the first firmware;
recompiling the modified first firmware, the first firmware containing audio data;
the data synthesis tool is specifically configured to:
converting the data file into a data file format which can be identified by the first firmware according to a file conversion processing algorithm;
and directly combining the data file with the converted format with the first firmware to generate second firmware.
6. The apparatus of the data synthesis method according to claim 5, wherein: the audio data is processed by a digital signal processor, and the audio data does not contain electroacoustic parameters.
7. The apparatus of the data synthesis method according to claim 5, wherein: the debugging of the electroacoustic parameters can be realized by debugging an equalizer, and the conversion tool converts the debugged electroacoustic parameters into a data file in a C language format.
8. The apparatus of the data synthesis method according to claim 5, wherein: the second firmware generated by the data synthesis tool contains the electroacoustic parameters in the data file.
CN201610946440.5A 2016-11-02 2016-11-02 Data synthesis method and device Active CN108376069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610946440.5A CN108376069B (en) 2016-11-02 2016-11-02 Data synthesis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610946440.5A CN108376069B (en) 2016-11-02 2016-11-02 Data synthesis method and device

Publications (2)

Publication Number Publication Date
CN108376069A CN108376069A (en) 2018-08-07
CN108376069B true CN108376069B (en) 2022-02-08

Family

ID=63015284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610946440.5A Active CN108376069B (en) 2016-11-02 2016-11-02 Data synthesis method and device

Country Status (1)

Country Link
CN (1) CN108376069B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976577A (en) * 2010-11-03 2011-02-16 冠捷显示科技(武汉)有限公司 Method for arranging display equipment software and method for writing control parameters into FLASH
CN102780958A (en) * 2012-08-09 2012-11-14 广州励丰文化科技股份有限公司 Active speaker with digital signal processor (DSP) arranged inside and speaker system correction method
CN103108243A (en) * 2012-12-28 2013-05-15 四川长虹电器股份有限公司 Method and system for independence and upgrade of parameters of television display screen
CN105516853A (en) * 2014-09-26 2016-04-20 惠州市德赛西威汽车电子股份有限公司 On-board entertainment system sound effect parameter debugging device and debugging method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6430533B1 (en) * 1996-05-03 2002-08-06 Lsi Logic Corporation Audio decoder core MPEG-1/MPEG-2/AC-3 functional algorithm partitioning and implementation
TWI269227B (en) * 2004-10-13 2006-12-21 Aten Int Co Ltd Method for forming a firmware framework of intelligent platform management interface
CN101913304B (en) * 2010-07-13 2013-07-03 南京工程学院 Method for debugging parameters of servo carving machine
CN102411539B (en) * 2011-12-01 2017-12-22 康佳集团股份有限公司 A kind of outer handset equipment on-line adjustment method and system
CN103150189B (en) * 2013-03-19 2016-03-30 青岛乾程科技股份有限公司 A kind of method to set up of intelligent electric energy meter parameter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976577A (en) * 2010-11-03 2011-02-16 冠捷显示科技(武汉)有限公司 Method for arranging display equipment software and method for writing control parameters into FLASH
CN102780958A (en) * 2012-08-09 2012-11-14 广州励丰文化科技股份有限公司 Active speaker with digital signal processor (DSP) arranged inside and speaker system correction method
CN103108243A (en) * 2012-12-28 2013-05-15 四川长虹电器股份有限公司 Method and system for independence and upgrade of parameters of television display screen
CN105516853A (en) * 2014-09-26 2016-04-20 惠州市德赛西威汽车电子股份有限公司 On-board entertainment system sound effect parameter debugging device and debugging method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IAR STM32 函数和变量的绝对地址定位;slj_win;《https://blog.csdn.net/slj_win/article/details/21516497》;20140319;第1页 *

Also Published As

Publication number Publication date
CN108376069A (en) 2018-08-07

Similar Documents

Publication Publication Date Title
WO2011054250A1 (en) Method and device for development environment converting
Chassaing Digital Signal Processing and Applications with the C6713 and C6416 DSK
US8930923B2 (en) Generating debugging extension source code utilizing debugging information
WO2012022065A1 (en) Method and system for realizing automatic tests of digital signal processor (dsp)
Hong et al. The application guide of mixed programming between MATLAB and other programming languages
WO2013029399A1 (en) Code generating method and system
WO2011035663A1 (en) Method and device for constructing compiling system
JP2007304840A (en) Compilation method, debugging method, compilation program, and debugging program
US20240069852A1 (en) Advanced audio processing system
TW202403541A (en) System, method and device for introducing applet into third-party APP and medium
CN109257552B (en) Method for designing sound effect parameters of flat-panel television
CN108376069B (en) Data synthesis method and device
JP2008204341A (en) Interface composite device
Madritsch Rapid Prototyping using Model-Based Design methodology: A Digital Signal Processing lecture case study
Pees et al. On core and more: A design perspective for systems-on-a-chip
JP3041919B2 (en) Program combination processor
JPH0272407A (en) Ladder program converter
KR20160081200A (en) Script-based microcontroller firmware development platform
JP2004151884A (en) Program for extracting test item
CN116227169A (en) Hearing aid algorithm simulation method
TWI557645B (en) Method for project processing and electronic device using the same
Fitzgerals Sound Synthesis Using Programmable System-On-Chip Devices
KR100772869B1 (en) Apparatus and method for automatically converting to component from library files of legacy module
Ip et al. Digital signal processing system design methodology
Bhalani et al. Implementation of Karaoke Machine on the DSK6713 Processor

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