CN101770384B - Car audio system software upgrading method - Google Patents

Car audio system software upgrading method Download PDF

Info

Publication number
CN101770384B
CN101770384B CN 201010044451 CN201010044451A CN101770384B CN 101770384 B CN101770384 B CN 101770384B CN 201010044451 CN201010044451 CN 201010044451 CN 201010044451 A CN201010044451 A CN 201010044451A CN 101770384 B CN101770384 B CN 101770384B
Authority
CN
China
Prior art keywords
software
audio system
car audio
upgrading
memory block
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.)
Expired - Fee Related
Application number
CN 201010044451
Other languages
Chinese (zh)
Other versions
CN101770384A (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 Hangsheng Electronic Co Ltd
Original Assignee
Shenzhen Hangsheng Electronic 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 Hangsheng Electronic Co Ltd filed Critical Shenzhen Hangsheng Electronic Co Ltd
Priority to CN 201010044451 priority Critical patent/CN101770384B/en
Publication of CN101770384A publication Critical patent/CN101770384A/en
Application granted granted Critical
Publication of CN101770384B publication Critical patent/CN101770384B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention provides a car audio system and a software upgrading method thereof. The memory space of an MCU of the car audio system is divided into a normal application program space, a software update control program space and an updated mark space, the software upgrading control can be directly performed in the RAM and storage space in the MCU, thus simplifying hardware circuits; a public boot program is designed so that the system can enter a software upgrading mode when the updating of application program fails, thus the software upgrading system is stable; and the car audio system of the invention has the advantages of simple upgrading process and low cost.

Description

A kind of method for upgrading software of car audio system
Technical field
The present invention relates to the vehicle audio field, relate in particular to the software upgrading scheme in the car audio system.
Background technology
Along with the development of vehicle mounted multimedia technology, the function of on-vehicle acoustic apparatus is abundant day by day, and the software design of sound system also becomes increasingly complex.Because the characteristic of current vehicle audio; After the vehicle audio entrucking, if, just must dismantle vehicle audio from car because software upgrading or software maintenance need be upgraded sound system software; Use professional replication tool to accomplish software upgrading then; Process is complicated, consuming time long and cost is very high, and in addition, the main control MCU (microcontroller) of existing car audio system adopts single-chip microcomputer and internal RAM (random access memory) less mostly; Realize that software upgrading generally need expand external RAM or use high-grade MCU, increased the cost of car audio system.
Summary of the invention
The method for upgrading software that the purpose of this invention is to provide a kind of car audio system, the difficulty that is intended to solve software upgrading inconvenience after the existing car audio system entrucking.
Car audio system provided by the invention comprises MCU, and the storage space of said MCU comprises normal application memory block, software upgrading control program memory block and updating mark memory block.
More specifically, said system also comprises power module, servo module, radio reception module, audio-frequency module, bluetooth module, display module and the key-press module that is connected with MCU.
More specifically; Application storing, application boot and application program interrupt vector in the said normal application memory block; Storage update sign setting program, updating mark setting program program of file copy, renewal control program, renewal control program program of file copy and public boot in the said software upgrading control program memory block, storing software updating mark in the said updating mark memory block.
More specifically, further storing servo control program, the erasable program in normal application space and the erasable program of updating mark in the said software upgrading control program memory block.
The method for upgrading software of car audio system provided by the invention may further comprise the steps:
Step a is divided into normal application memory block, software upgrading control program memory block and updating mark memory block with the MCU memory block of car audio system;
Step b when CD inserts in the startup car audio system, judges whether to be the software upgrade data CD, if the software upgrade data CD then gets into the software upgrading state;
Step c carries out erasable to realize software upgrading to the normal application memory block of MCU.
More specifically, further comprise a steps d after the said step c: after the software upgrading success, upgrade control program and restart car audio system, make car audio system work in usual application state.
More specifically, said step b specifically may further comprise the steps:
Step b1 judges that whether the updating mark memory block exists updating mark, then gets into the software upgrading state if any updating mark;
Step b2, as do not have updating mark to judge whether that then CD inserts in the car audio system, when CD inserts in the car audio system, judges whether to be the software upgrade data CD, if the software upgrade data CD then gets into the software upgrading state.
More specifically, said step b1 specifically may further comprise the steps: if there is updating mark in the updating mark memory block, then will upgrade among the RAM that control program copies MCU to, controlled step is upgraded in operation in RAM, and wipes the software upgrading sign after finishing upgrading.
More specifically; Said step b2 specifically may further comprise the steps: if there is the software upgrade data CD to be inserted in the car audio system; Then the updating mark setting program is copied among the RAM of MCU; The operation updating mark is provided with the erasable action that realizes the memory block in RAM, will upgrade among the RAM that control program copies MCU to operation renewal controlled step in RAM then.
More specifically, said step c specifically may further comprise the steps:
Step c1 reads the data of upgrading on the CD;
Step c2 is according to the erasable normal application of the servo data that read memory block;
Step c3 judges whether renewal process finishes, and then continues execution in step c1 as not finishing, and finishes like renewal and then wipes software upgrading sign and the warm reset MCU in the updating mark memory block.
Than prior art; The method for upgrading software of car audio system provided by the invention directly carries out software upgrading control on the inner RAM of single-chip microcomputer (MCU) and storage space (for example FLASH), simplified hardware circuit, and through designing public boot; Guaranteed under the application program update failure scenarios; Can get into the software upgrading pattern again, guarantee that software update system is stable, have escalation process advantage simple, with low cost.
Description of drawings
Fig. 1 is the hardware structure diagram of car audio system of the present invention;
Fig. 2 is the area dividing synoptic diagram of the storage space of MCU of the present invention;
Fig. 3 is the software upgrading process flow diagram of car audio system of the present invention;
Fig. 4 is a renewal control program process flow diagram involved in the present invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Referring to shown in Figure 1, the car audio system that preferred embodiment of the present invention provides comprises MCU10 (for example MB90880 series monolithic) and the power module 11 that is connected with MCU10 respectively, servo module 12, radio reception module 13, Audio (audio frequency) module 14, bluetooth module 15, display module 16 and key-press module 17.Wherein, MCU10 realizes the control to power module 11, servo module 12, display module 16 and key-press module 17 through GPIO (General-Purpose IO ports, general input and output) mode.MCU10 carries out information interaction through I2C (Inter-Integrated Circuit, inner integrated circuit) with radio reception module 13.MCU10 is through serial ports and bluetooth module 15 data interactions.
In conjunction with referring to shown in Fig. 2, the storage space of MCU10 is divided into following zone: normal application memory block 20, software upgrading control program memory block 21 and updating mark memory block 22.Wherein in the normal application memory block 20 except application storing 203; Application boot 201 and application program interrupt vector 202 have also been stored; Using boot 201 realizes being provided with to the RAM initialization of application program and storehouse etc.; Application program interrupt vector 202 is preserved the interrupt routine entry address that application program 203 needs, 203 processing of accomplishing normal use of application program.
Storage update sign setting program 211, updating mark setting program program of file copy 212, renewal control program 213, renewal control program program of file copy 214 and public boot 215 in the software upgrading control program memory block 21.Upgrade in the control program 213 and further comprise servocontrol program, the erasable program in normal application space and the erasable program of updating mark.
Storing software updating mark in the updating mark memory block 22.
In conjunction with the storage space partitioned mode of the MCU of above-mentioned car audio system, the preferred embodiment of the method for upgrading software of car audio system provided by the invention may further comprise the steps:
Step a divides the memory block of vehicle audio and compiling according to storage area;
Step b; Start car audio system, car audio system works in usual application state, when CD inserts; Judgement is common CD music CD or software upgrade data CD; If common CD music CD is then by the normal use work disposal, if the software upgrading CD then gets into the software upgrading state;
Step c; Operation servocontrol program, the erasable step of normal application space FLASH (is example with the FLASH storer) realize software upgrading in the RAM of MCU; And judge to upgrade and whether finish, in case finish just to carry out the erasable step of updating mark, wipe the updating mark of setting.
Steps d, the software upgrading success is restarted car audio system through upgrading controlled step, and car audio system works in usual application state.
In conjunction with referring to shown in Fig. 3, above-mentioned steps b specifically may further comprise the steps:
At first in step 30, through RST (resetting) the instruction MCU that resets; Execution in step 31 then, through the setting of public boot 215 completion to MCU crystal oscillator and PC pointer; Execution in step 32 then, and public boot 215 judges whether there is the software upgrading sign in the updating mark memory block 22, if exist, then execution in step 38, and renewal control program program of file copy 214 will be upgraded control program 213 and copy RAM to; If there is not the software upgrading sign in the updating mark memory block 22, then execution in step 33, RAM initialization and storehouse setting that application program guiding 201 realizes to application program; Execution in step 34 then, run application 203, and continuous execution in step 35; Judged whether that the software upgrading CD inserts, inserted that then execution in step 36 as finding the software upgrading CD; Updating mark setting program program of file copy 212 copies updating mark setting program 211 to RAM, and execution in step 37 then, and operation updating mark setting program 211 is realized the erasable action of FLASH in RAM; Execution in step 38 then; Renewal control program program of file copy 214 will be upgraded control program 213 and copy RAM to, and execution in step 39 then, and control program 213 is upgraded in operation in RAM.
Shown in Fig. 4; Above-mentioned steps 39 described renewal control programs specifically may further comprise the steps: initialization MCU10 (MCU port and initialization of variable) in step 41 at first, in step 42, accomplish servo initialization then, and in step 43, read the data of upgrading on the CD; In step 44 according to 20 corresponding FLASH positions, the erasable normal application of the servo data that read memory block; Judge in step 45 whether renewal process finishes, as not continuing step 43, finishing like renewal gets into step 46; In step 46, wipe the software upgrading sign in the updating mark memory block 22, warm reset MCU in step 47.
The above is merely preferred embodiment of the present invention; In order to restriction the present invention, for example, servo module 12 can not be that CD is servo; Also can be that DVD is servo etc.; Servo initialization also can change the bluetooth initialization in the step 42, is provided by bluetooth module to Update Information, and realizes the software upgrading of car audio system; Moreover, can also comprise a step that the car audio system update software is converted to Bin (virtual drive) file and coils quarter before the step b; Or the like.All any modifications of within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. the method for upgrading software of a car audio system is characterized in that may further comprise the steps:
Step a is divided into normal application memory block, software upgrading control program memory block and updating mark memory block with the MCU memory block of car audio system;
Step b when CD inserts in the startup car audio system, judges whether to be the software upgrade data CD, if the software upgrade data CD then gets into the software upgrading state;
Step c carries out erasable to realize software upgrading to the normal application memory block of MCU.
2. the method for upgrading software of car audio system according to claim 1; It is characterized in that; Further comprise a steps d after the said step c: after the software upgrading success, upgrade control program and restart car audio system, make car audio system work in usual application state.
3. the method for upgrading software of car audio system according to claim 1 is characterized in that, said step b specifically may further comprise the steps:
Step b1 judges that whether the updating mark memory block exists updating mark, then gets into the software upgrading state if any updating mark;
Step b2, as do not have updating mark to judge whether that then CD inserts in the car audio system, when CD inserts in the car audio system, judges whether to be the software upgrade data CD, if the software upgrade data CD then gets into the software upgrading state.
4. the method for upgrading software of car audio system according to claim 3; It is characterized in that; Said step b1 specifically may further comprise the steps: if there is updating mark in the updating mark memory block; Then will upgrade among the RAM that control program copies MCU to, controlled step is upgraded in operation in RAM, and wipes the software upgrading sign after finishing upgrading.
5. the method for upgrading software of car audio system according to claim 3; It is characterized in that; Said step b2 specifically may further comprise the steps: if there is the software upgrade data CD to be inserted in the car audio system, then the updating mark setting program is copied among the RAM of MCU, the operation updating mark is provided with the erasable action that realizes the memory block in RAM; To upgrade then among the RAM that control program copies MCU to, controlled step is upgraded in operation in RAM.
6. the method for upgrading software of car audio system according to claim 1 is characterized in that, said step c specifically may further comprise the steps:
Step c1 reads the data of upgrading on the CD;
Step c2 is according to the erasable normal application of the servo data that read memory block;
Step c3 judges whether renewal process finishes, and then continues execution in step c1 as not finishing, and finishes like renewal and then wipes software upgrading sign and the warm reset MCU in the updating mark memory block.
CN 201010044451 2010-01-18 2010-01-18 Car audio system software upgrading method Expired - Fee Related CN101770384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010044451 CN101770384B (en) 2010-01-18 2010-01-18 Car audio system software upgrading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010044451 CN101770384B (en) 2010-01-18 2010-01-18 Car audio system software upgrading method

Publications (2)

Publication Number Publication Date
CN101770384A CN101770384A (en) 2010-07-07
CN101770384B true CN101770384B (en) 2012-12-05

Family

ID=42503263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010044451 Expired - Fee Related CN101770384B (en) 2010-01-18 2010-01-18 Car audio system software upgrading method

Country Status (1)

Country Link
CN (1) CN101770384B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103511A (en) * 2011-02-25 2011-06-22 北京经纬恒润科技有限公司 Method and system for refreshing application program
CN102681857B (en) * 2011-03-07 2016-08-31 北京博创理想科技有限公司 A kind of realize vehicle-mounted software system reparation or the method for upgrading, device
CN102135922B (en) * 2011-03-18 2015-08-19 北京经纬恒润科技有限公司 The method for refreshing of application program and system
CN103106083B (en) * 2011-11-09 2016-03-23 北京市三希电子科技开发公司 A kind of loading method of firmware and device
CN103761112A (en) * 2011-12-30 2014-04-30 深圳市大富科技股份有限公司 Vehicle-mounted multimedia device and control method thereof
CN103186396B (en) * 2011-12-30 2018-01-12 上海博泰悦臻电子设备制造有限公司 System, adaptive device and startup method are realized in vehicle-mounted end, vehicle-mounted end upgrading
CN102650939A (en) * 2012-03-31 2012-08-29 北京经纬恒润科技有限公司 Method and device for preventing interference on application program caused by reprogramming program
CN103677871A (en) * 2012-09-10 2014-03-26 上海达实联欣科技发展有限公司 Online upgrading system and method
CN102945173B (en) * 2012-10-31 2016-06-29 青岛海信宽带多媒体技术有限公司 User program online upgrade system and upgrade method
CN103246536B (en) * 2013-04-28 2016-01-06 常州南京大学高新技术研究院 The wireless firmware upgrade method of thing connection positioning system
CN103312786A (en) * 2013-05-17 2013-09-18 广州市雄兵汽车电器有限公司 Vehicle-mounted terminal remote upgrading method and car networking system
CN103353754B (en) * 2013-06-28 2016-05-25 惠州市德赛西威汽车电子股份有限公司 A kind of production method of automobile instrument
CN103761117A (en) * 2013-12-24 2014-04-30 广东鼎燊科技有限公司 Induction cooker upgrading method
CN103744712A (en) * 2014-01-28 2014-04-23 北京经纬恒润科技有限公司 Method and device for updating application program
CN103870305A (en) * 2014-02-19 2014-06-18 江苏天宝汽车电子有限公司 Software upgrading method of vehicle-mounted sound box with USB (Universal Serial Bus) interface/memory card interface
CN104156237B (en) * 2014-07-23 2018-03-09 武汉精测电子集团股份有限公司 The online upgrading method of single-chip microcomputer
CN104375855A (en) * 2014-09-24 2015-02-25 深圳市航盛电子股份有限公司 Device and method for upgrading firmware through storage devices on basis of multiple vehicle-mounted MCUs
CN104507009A (en) * 2014-12-26 2015-04-08 深圳市健宁科技有限公司 Bluetooth loudspeaker box control circuit
KR101736990B1 (en) * 2015-10-26 2017-05-17 현대자동차주식회사 Apparatus and method for controlling mobile device engaging with vehicle
CN106020861B (en) * 2016-05-05 2019-09-24 惠州Tcl移动通信有限公司 A kind of the FOTA upgrade method and system of smartwatch
CN106970816B (en) * 2017-03-31 2021-01-26 Oppo广东移动通信有限公司 Software upgrading processing method and device and audio playing equipment
CN107193603A (en) * 2017-05-25 2017-09-22 绵阳美菱软件技术有限公司 The upgrade method and device of a kind of intelligent appliance
CN107577175A (en) * 2017-08-09 2018-01-12 深圳市爱培科技术股份有限公司 MCU method for upgrading software, system and the storage device of vehicle-mounted multimedia equipment
CN108304210B (en) * 2018-02-07 2021-08-06 深圳市布谷鸟科技有限公司 Upgrading method of automobile instrument panel

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858702A (en) * 2005-07-22 2006-11-08 上海华为技术有限公司 Upgrading method for one-chip computer
KR20070015704A (en) * 2005-08-01 2007-02-06 양재우 Method for upgrading software mcu
CN201349258Y (en) * 2008-12-30 2009-11-18 深圳市同洲电子股份有限公司 Storage device and set-top box adopting same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858702A (en) * 2005-07-22 2006-11-08 上海华为技术有限公司 Upgrading method for one-chip computer
KR20070015704A (en) * 2005-08-01 2007-02-06 양재우 Method for upgrading software mcu
CN201349258Y (en) * 2008-12-30 2009-11-18 深圳市同洲电子股份有限公司 Storage device and set-top box adopting same

Also Published As

Publication number Publication date
CN101770384A (en) 2010-07-07

Similar Documents

Publication Publication Date Title
CN101770384B (en) Car audio system software upgrading method
US6401198B1 (en) Storing system-level mass storage configuration data in non-volatile memory on each mass storage device to allow for reboot/power-on reconfiguration of all installed mass storage devices to the same configuration as last use
CN1318979C (en) Method for updating firmware of optical disk system
US9032139B2 (en) Memory allocation for fast platform hibernation and resumption of computing systems
CN101650660B (en) Booting a computer system from central storage
US20120191961A1 (en) Computer System and Operating System Switching Method Thereof
JP4843013B2 (en) System and method for preventing user OS in VMM system from turning off device used by service OS
US20070061818A1 (en) Detection of devices during operating system setup
US20150186161A1 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
US10877770B2 (en) Computing device
CN111033466A (en) Partitioning flash memory and implementing flexible boot with image upgrade capability
CN103870305A (en) Software upgrading method of vehicle-mounted sound box with USB (Universal Serial Bus) interface/memory card interface
US11550592B2 (en) Methods and apparatus to utilize non-volatile memory for computer system boot
US20080114923A1 (en) Apparatus and method for controlling operation processing in nonvolatile memory
US9411605B2 (en) Device-less and system agnostic unified extensible firmware interface (UEFI) driver
CN101169729A (en) Embedded type system and method for renewing application program
WO2022057954A1 (en) Power management circuit, chip and upgrade method therefor, and server
CN102609290B (en) The method for upgrading software of electronic product
CN116737244A (en) Method and device for starting multiple hardware domains of chip
CN102184248B (en) Method and device for regulating disk partitions in Windows
US8572362B2 (en) Preinstalled operating system instances stored on removable storage devices
US20070198822A1 (en) Method for changing booting sources of a computer system and a related backup/restore method thereof
US20140095859A1 (en) Apparatus and method for managing register information in a processing system
CN201869296U (en) Television
CN102855162B (en) A kind of data-updating method, data update system and memorizer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20100707

Assignee: Liuzhou Hangsheng Technology Co., Ltd.

Assignor: Hangsheng Electronic Co., Ltd., Shenzhen City

Contract record no.: 2013450000063

Denomination of invention: Car audio system software upgrading method

Granted publication date: 20121205

License type: Exclusive License

Record date: 20130731

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121205

Termination date: 20160118

EXPY Termination of patent right or utility model