CN108376069A - A kind of data synthesis method and its device - Google Patents

A kind of data synthesis method and its device Download PDF

Info

Publication number
CN108376069A
CN108376069A CN201610946440.5A CN201610946440A CN108376069A CN 108376069 A CN108376069 A CN 108376069A CN 201610946440 A CN201610946440 A CN 201610946440A CN 108376069 A CN108376069 A CN 108376069A
Authority
CN
China
Prior art keywords
firmware
data
electro mechanical
mechanical parameter
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.)
Granted
Application number
CN201610946440.5A
Other languages
Chinese (zh)
Other versions
CN108376069B (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

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 kind of data synthesis methods, operate in accordance with the following steps:Audio data is cured in the first firmware, and recompilates first firmware;Electro mechanical parameter is debugged, and converts the data file for generating and including the electro mechanical parameter;Data file and the first firmware are synthesized, and generate the second firmware.The data file that the first firmware and crossover tool that data synthesis method and its device of the present invention are generated compilation tool by Data Synthesis tool generate synthesizes, and generates the second firmware;Data synthesis method and its device of the present invention can save human resources, reduce the trouble for recompilating firmware, improve working efficiency, improve accuracy.

Description

A kind of data synthesis method and its device
Technical field
The present invention relates to data processing fields, more particularly to a kind of data synthesis method and its device.
Background technology
Currently, audio industry generally controls speaker using MCU (Micro Control Unit microcontrollers) firmwares The functions such as power supply, button, display are adjusted using DSP (Digital Signal Processing digital signal processors) to be arranged The sound effect of whole speaker.
In audio industry, widespread practice is that audio data is compiled into MCU firmwares by software engineer, due to leading Enter the data that the audio data in MCU firmwares is not C language format, and cannot directly use, it is necessary to converting audio data Then the audio data for meeting MCU firmware formats is cured in the composing software of MCU firmwares and compiles and burn by format again Record.
Due to manually in the format of converting audio data or duplication audio data, being easier to malfunction, and if MCU After firmware compiles burning, when the electro mechanical parameters such as discovery cannot still meet the requirements after tested, it is necessary to reuse new electroacoustic ginseng Number is carried out to the compiling of MCU firmwares and burning;Whole process is complicated, is easy error, and transfer efficiency is low.
Invention content
It is an object of the invention to be directed to technical problem of the existing technology, a kind of data synthesis method and its dress are provided It sets, mainly solves the problems, such as that the audio data of reset condition imports and be easy error and inefficiency in MCU firmwares.
In order to solve posed problems above, the technical solution adopted by the present invention is:
A kind of data synthesis method provided by the present invention, steps are as follows:
Audio data is cured in the first firmware, and recompilates first firmware;
Electro mechanical parameter is debugged, and converts the data file for generating and including the electro mechanical parameter;
Data file and the first firmware are synthesized, and generate the second firmware.
As a further improvement on the present invention, described that audio data is cured in the first firmware, and described in recompility First firmware includes:
Change the engineering configuration file and C language file of first firmware;
Modified first firmware is recompilated, first firmware includes audio data.
As a further improvement on the present invention, the audio data is the data after digital signal processor processes, institute It states audio data and is free of electro mechanical parameter.
As a further improvement on the present invention, described debugged to electro mechanical parameter can be by debugging balanced device, and will adjust The electro mechanical parameter conversion tried generates the data file of C language format.
As a further improvement on the present invention, second firmware includes the electro mechanical parameter in the data file.
As a further improvement on the present invention, the device of the data synthesis method include compilation tool, crossover tool with And Data Synthesis tool;
The compilation tool recompilates first firmware for audio data to be cured in the first firmware;
The crossover tool is converted for being debugged to electro mechanical parameter and generates the data text comprising the electro mechanical parameter Part;
The Data Synthesis tool generates the second firmware for directly merging data file and the first firmware.
As a further improvement on the present invention, the compilation tool is specifically used for:
Change the engineering configuration file and C language file of first firmware;
Modified first firmware is recompilated, first firmware includes audio data.
As a further improvement on the present invention, the audio data is the data after digital signal processor processes, institute It states audio data and is free of electro mechanical parameter.
As a further improvement on the present invention, it is described to electro mechanical parameter debug can by debug balanced device, described turn It changes tool and the electro mechanical parameter debugged is converted to the data file for generating C language format.
As a further improvement on the present invention, the second firmware that the Data Synthesis tool generates contains the data file In electro mechanical parameter.
Compared with prior art, the beneficial effects of the present invention are:
Data synthesis method and its device of the present invention first are consolidated by Data Synthesis tool by compilation tool generates The data file synthesis that part and crossover tool generate, and generate the second firmware;Data synthesis method and its device of the present invention Human resources can be saved, the trouble for recompilating firmware is reduced, improve working efficiency, improve accuracy.
Description of the drawings
Fig. 1 is the step flow chart of data synthesis method described in the embodiment of the present invention;
Fig. 2 is the device applied to data synthesis method described in the embodiment of the present invention.
Specific implementation mode
To facilitate the understanding of the present invention, below with reference to relevant drawings to invention is more fully described.In attached drawing Give the better embodiment of the present invention.But the present invention can realize in many different forms, however it is not limited to herein Described embodiment.On the contrary, the purpose of providing these embodiments is that making understanding to the disclosure more Add thorough and comprehensive.
Unless otherwise defined, all of technologies and scientific terms used here by the article and belong to the technical field of the present invention The normally understood meaning of technical staff is identical.Used term is intended merely to description tool in the description of the invention herein The purpose of the embodiment of body, it is not intended that in the limitation present invention.
As shown in Figure 1, for the step flow chart of data synthesis method described in the embodiment of the present invention, include the following steps:
Step S100:Audio data is cured in the first firmware, and recompilates first firmware.
In step 100, by externally input audio data being cured to Flash (flash memory) position of the first firmware In, and recompilate first firmware.
Optionally, the audio data is the data after digital signal processor processes, and the audio data is without electricity Sound parameter.
Optionally, first firmware is MCU (microcontroller) firmware, and the MCU firmwares are by the master of microcomputer The one-chip microcomputer being partially integrated on chip, in an embodiment of the present invention, the MCU firmwares are for storing sound Frequency evidence.
Optionally, described that audio data is cured in the first firmware, and recompilate first firmware and include:
Change the engineering configuration file and C language file of first firmware;
Modified first firmware is recompilated, first firmware includes audio data.
Optionally, it modifies the engineering configuration file of the first firmware in the engineering configuration file of first firmware Middle addition code:
“place at address mem:0x9AFF{readonly section.TAS5709};”.
Optionally, it modifies to the C language file of the first firmware to be added in the C language file of first firmware Precompile instruction code:
" #pragma location=" .TAS5709 " ".
In embodiments of the present invention, described that audio data is cured in the first firmware, and it is solid to recompilate described first Part, can be by changing the engineering configuration file and C language file of first firmware, and recompilates and generate the first firmware.
Step S200:Electro mechanical parameter is debugged, and converts the data file for generating and including the electro mechanical parameter.
In step 200, electro mechanical parameter described in the embodiment of the present invention includes EQ (Equalizer is balanced) data etc., described After electro mechanical parameter is debugged, the convertible data file for generating C language format.
Optionally, described debugged to electro mechanical parameter can be joined by debugging balanced device, and by the electroacoustic debugged Number conversion generates the data file of C language format;The debugging balanced device can enhance the size of voice signal, keep sound more dynamic Listen, the voice signal can be inputted by network inputs or hardware, the network inputs can by inputs such as wireless WIFI, bluetooths, The hardware input can be inputted by the music file of SD card, USB flash disk etc..
The embodiment of the present invention debugs electro mechanical parameter, and converts and generate the data text comprising the electro mechanical parameter Part, can be by debugging the electro mechanical parameter of voice signal, and the electro mechanical parameter is converted to the data file of C language format.
Step S300:Data file and the first firmware are synthesized, and generate the second firmware.
In step 300, the data file is directly merged with first firmware, and generates the second firmware.
In an embodiment of the present invention, described directly to merge the data file and first firmware, generate second Firmware, it is described to generate in the second firmware containing the electro mechanical parameter in the data file.
The workflow that the second firmware is generated described in the embodiment of the present invention is as follows:
By selecting the data file and first firmware respectively, and the selection during display operation executes shape State;According to file conversion process algorithm by the data file be converted into document format data that first firmware can identify, And directly merge with first firmware, the second firmware is generated, second firmware includes the electroacoustic ginseng in the data file Number.
Data synthesis method described in the embodiment of the present invention it is easy to operate, it is not easy to malfunction, and high conversion efficiency.
With reference to Fig. 2, for the device applied to data synthesis method described in the embodiment of the present invention, including compilation tool 1, conversion Tool 2 and Data Synthesis tool 3;
The compilation tool 1 is used to audio data being fixed in the first firmware, and recompilates first firmware;Institute It is IAR_for_STM8 tools etc. to state compilation tool 1, and the IAR_for_STM8 tools are for compiling sound box system MCU firmwares Engineering configuration file and C language file tool, and generate the first firmware.
Optionally, the audio data is the data after digital signal processor processes, and the audio data is without electricity Sound parameter.
Optionally, first firmware is MCU (microcontroller) firmware, and the MCU firmwares are by microcomputer Major part is integrated in the one-chip microcomputer on chip, and in an embodiment of the present invention, the MCU firmwares are for storing Audio data.
Optionally, the compilation tool is specifically used for:
Change the engineering configuration file and C language file of first firmware;
Modified first firmware is recompilated, first firmware includes audio data.
Optionally, it modifies the engineering configuration file of the first firmware in the engineering configuration file of first firmware Middle addition code:
“place at address mem:0x9AFF{readonly section.TAS5709};”.
Optionally, it modifies to the C language file of the first firmware to be added in the C language file of first firmware Precompile instruction code:
" #pragma location=" .TAS5709 " ".
The crossover tool 2 converts the data for generating and including the electro mechanical parameter for being debugged to electro mechanical parameter File;The crossover tool 2 is TAS570X_GDE tools etc.;In an embodiment of the present invention, the crossover tool 2 is debugging The electro mechanical parameter of voice signal, and the voice signal is converted to the tool of the data file of C language format.
Optionally, described debugged to electro mechanical parameter can be by debugging balanced device, and the crossover tool 2 will simultaneously be debugged The electro mechanical parameter conversion generate C language format data file;The debugging balanced device can enhance the size of voice signal, The voice signal can be inputted by network inputs or hardware, and the network inputs can be described by inputs such as wireless WIFI, bluetooths Hardware input can be inputted by the music file of SD card, USB flash disk etc..
The Data Synthesis tool 3 generates the second firmware for directly merging data file and the first firmware;The number The second firmware generated according to synthetics 3 contains the electro mechanical parameter in the data file.
In an embodiment of the present invention, the Data Synthesis tool 3 includes file selection window module, executes state output Window module, file conversion process algoritic module and executive button module, the module described in the embodiment of the present invention are boundary Face button;The workflow of the Data Synthesis tool 3 is as follows:
The file selection window module needs to select the data file and first firmware respectively;The execution shape State output window module is used to prompt the operating process of the Data Synthesis tool 3;By starting the executive button module, institute It states Data Synthesis tool 3 and executes the file conversion process algoritic module, the file conversion process algoritic module is will be described Data file is converted into the document format data that first firmware can identify and directly merges with first firmware, generates Second firmware, second firmware include the electro mechanical parameter in the data file.
In embodiments of the present invention, engineering configuration file and C of the compilation tool 1 to modified first firmware Language file is compiled, and can be cured to audio data in the positions Flash of first firmware, and described in recompility First firmware;The crossover tool 2 debugs electro mechanical parameter, and the electro mechanical parameter debugged is converted to C language The data file of format;The data file and the compilation tool 1 that the Data Synthesis tool 3 generates the crossover tool 2 The first firmware generated directly synthesizes, and generates the second firmware for including electro mechanical parameter in the data file;Through the invention The device of the data synthesis method can save human resources, reduce the trouble for recompilating firmware, improve working efficiency.
Data synthesis method and its device described in the embodiment of the present invention avoid artificial converting audio data format or The problem of error and recompility and burning MCU firmwares are easy when replicating audio data;Data synthesis method of the present invention and Its device can save human resources, reduce the trouble for recompilating firmware, improve working efficiency, and easy to operate, accuracy High, high conversion efficiency.
But embodiments of the present invention are simultaneously not limited to the embodiments described above, other any essences without departing from the present invention Changes, modifications, substitutions, combinations, simplifications made by under refreshing essence and principle, should be equivalent substitute mode, are also included in Within protection scope of the present invention.

Claims (10)

1. a kind of data synthesis method, which is characterized in that steps are as follows:
Audio data is cured in the first firmware, and recompilates first firmware;
Electro mechanical parameter is debugged, and converts the data file for generating and including the electro mechanical parameter;
Data file and the first firmware are synthesized, and generate the second firmware.
2. data synthesis method according to claim 1, which is characterized in that described that audio data is cured to the first firmware In, and recompilate first firmware and include:
Change the engineering configuration file and C language file of first firmware;
Modified first firmware is recompilated, first firmware includes audio data.
3. data synthesis method according to claim 2, it is characterised in that:The audio data is through Digital Signal Processing Device treated data, the audio data are free of electro mechanical parameter.
4. data synthesis method according to claim 1, it is characterised in that:Described debugged to electro mechanical parameter can pass through Balanced device is debugged, and the electro mechanical parameter debugged is converted to the data file for generating C language format.
5. data synthesis method according to claim 1, it is characterised in that:Second firmware includes the data file In electro mechanical parameter.
6. a kind of device of data synthesis method, it is characterised in that:The device of the data synthesis method includes compilation tool, turns Change tool and Data Synthesis tool;
The compilation tool recompilates first firmware for audio data to be cured in the first firmware;
The crossover tool converts the data file for generating and including the electro mechanical parameter for being debugged to electro mechanical parameter;
The Data Synthesis tool generates the second firmware for directly merging data file and the first firmware.
7. the device of data synthesis method according to claim 6, which is characterized in that the compilation tool is specifically used for:
Change the engineering configuration file and C language file of first firmware;
Modified first firmware is recompilated, first firmware includes audio data.
8. the device of data synthesis method according to claim 7, it is characterised in that:The audio data is to believe through number Number processor treated data, the audio data are free of electro mechanical parameter.
9. the device of data synthesis method according to claim 6, it is characterised in that:It is described that electro mechanical parameter is debugged It can be by debugging balanced device, the electro mechanical parameter debugged is converted the data text for generating C language format by the crossover tool Part.
10. the device of data synthesis method according to claim 6, it is characterised in that:The Data Synthesis tool generates The second firmware contain the electro mechanical parameter 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 true CN108376069A (en) 2018-08-07
CN108376069B 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 (9)

* 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
US20060080636A1 (en) * 2004-10-13 2006-04-13 Chih-Tao Hsieh Method of building intelligent platform management interface firmware architecture
CN101913304A (en) * 2010-07-13 2010-12-15 南京工程学院 Method for debugging parameters of servo carving machine
CN101976577A (en) * 2010-11-03 2011-02-16 冠捷显示科技(武汉)有限公司 Method for arranging display equipment software and method for writing control parameters into FLASH
CN102411539A (en) * 2011-12-01 2012-04-11 康佳集团股份有限公司 Method and system for online debugging external device of mobile phone
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
CN103150189A (en) * 2013-03-19 2013-06-12 青岛乾程电子科技有限公司 Intelligent watt-hour meter parameter setting method
CN105516853A (en) * 2014-09-26 2016-04-20 惠州市德赛西威汽车电子股份有限公司 On-board entertainment system sound effect parameter debugging device and debugging method

Patent Citations (9)

* 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
US20060080636A1 (en) * 2004-10-13 2006-04-13 Chih-Tao Hsieh Method of building intelligent platform management interface firmware architecture
CN101913304A (en) * 2010-07-13 2010-12-15 南京工程学院 Method for debugging parameters of servo carving machine
CN101976577A (en) * 2010-11-03 2011-02-16 冠捷显示科技(武汉)有限公司 Method for arranging display equipment software and method for writing control parameters into FLASH
CN102411539A (en) * 2011-12-01 2012-04-11 康佳集团股份有限公司 Method and system for online debugging external device of mobile phone
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
CN103150189A (en) * 2013-03-19 2013-06-12 青岛乾程电子科技有限公司 Intelligent watt-hour meter parameter setting method
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
SLJ_WIN: "IAR STM32 函数和变量的绝对地址定位", 《HTTPS://BLOG.CSDN.NET/SLJ_WIN/ARTICLE/DETAILS/21516497》 *

Also Published As

Publication number Publication date
CN108376069B (en) 2022-02-08

Similar Documents

Publication Publication Date Title
CN107577483B (en) Method, storage medium, equipment and the system of component engineering calling main works code
CN101697125B (en) Method and device for development environment conversion
CN104317589B (en) A kind of code automatic generation method and device for being used to load dynamic link library
CN111984235B (en) Customizable front-end low-code development system and method
CN105260189A (en) Code generating method and system based on model driving
CN102446090B (en) Method and device for automatically generating test script
CN105242914A (en) Model driven code generation method and system
WO2012022065A1 (en) Method and system for realizing automatic tests of digital signal processor (dsp)
CN104133588B (en) A kind of protective relaying device graphical development method based on script
CN103116513B (en) A kind of heterogeneous multi-nucleus processor compiler
JP6479184B2 (en) Computer-executable model reverse engineering method and apparatus
JP2007304998A (en) Source code generation method, device, and program
CN103077038B (en) The method of dynamic generation and compiling .NET project
CN110333867B (en) Multiparty secure computing data processing method, device and system
CN106293687A (en) The control method of a kind of flow process of packing, and device
CN101944061A (en) Method and device for debugging codes
CN104657136B (en) The integrated system of Simulink components
CN108376069A (en) A kind of data synthesis method and its device
CN103150189B (en) A kind of method to set up of intelligent electric energy meter parameter
JP2013214278A (en) Upper hierarchy description generating apparatus, method for generating upper hierarchy description, and program
CN109101229A (en) A kind of code automatic generation method of object-oriented, device and equipment
CN102566481A (en) C language-based PLC (Programmable Logic Controller) control system and realization method thereof
CN111858218A (en) FPGA AMBA bus interface debugging method and device and FPGA
CN110471659A (en) Multilingual method and system, human-machine interface configuration software end and equipment end
JP2010049439A (en) System construction method using software model and modeling device

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