A kind of television terminal carries out the method and device of firmware upgrade
Technical field
The present invention relates to the method and devices that firmware upgrade field more particularly to a kind of television terminal carry out firmware upgrade.
Background technique
With the enhancing of smart television function, on smart television mainboard, as frame frequency control chip, screen driving plate, backlight
The various modules such as driving are more and more, and the update upgrading of the firmware of module is also very important demand.The common module of industry
Firmware upgrade packet is usually placed in USB flash disk by firmware upgrade method, whether there is in smart television start-up phase detection USB flash disk
Each firmware upgrade packet, user is not available TV in escalation process.If the demand for having module firmware to update, can only be by people after sale
Member visits updates, and human cost height, real-time are poor.
The over the air OTA upgrade function of smart television is based on Android recovery mode, in the mode
Can only the eMMC flash partition data used in system level chip be updated down with modification, and the flash memory Flash of module firmware with
EMMC is separation, therefore recovery mode can not update the module firmware Flash in addition to SOC main program, therefore urgently a kind of
Mode solves the problems, such as this.
Summary of the invention
The present invention provides a kind of method and device of television terminal progress firmware upgrade, and external storage can only be passed through by solving
The problem of device is upgraded new version firmware file write-in firmware module.
In order to solve the above technical problems, the present invention provides methods and dress that a kind of television terminal carries out firmware upgrade
It sets, specifically includes:
According to first aspect present invention, a kind of method that television terminal carries out firmware upgrade is provided, this method comprises:
By with server communication, when detecting new version firmware file, from the server downloading new version firmware text
Part is simultaneously saved in default memory block;
When starting module firmware upgrade, the new version firmware file is read from the default memory block;
Module firmware upgrading is carried out using the new version firmware file of reading.
According to second aspect of the present invention, the present invention provides a kind of television terminal for carrying out firmware upgrade, which includes depositing
Reservoir and processor, the processor are used for:
By with server communication, when detecting new version firmware file, it is solid to download the new version from the server
Part file is simultaneously saved in default memory block;
When starting module firmware upgrade, the new version firmware file is read from the default memory block;
Module firmware upgrading is carried out using the new version firmware file of reading.
According to third aspect present invention, a kind of computer storage medium is provided, the computer storage medium is stored with meter
Calculation machine program, which, which is performed, realizes above-mentioned method.
A kind of television terminal of the embodiment of the present invention carries out the method and device of firmware upgrade, it is specific following the utility model has the advantages that
Due to being upgraded after TV is switched on completely, system level chip and module firmware can all carry out multithreading fortune
Row can complete firmware update on backstage in TV normal use process, not influence user and normally watch TV.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will make below to required in the embodiment of the present invention
Attached drawing is briefly described, it should be apparent that, attached drawing described below is only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts.It can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the schematic diagram for the method that a kind of television terminal of the embodiment of the present invention one carries out firmware upgrade;
Fig. 2 is the flow chart for the method that a kind of television terminal of the embodiment of the present invention one carries out firmware upgrade;
Fig. 3 is the common module distribution figure of smart television mainboard;
Fig. 4 is the device figure that a kind of television terminal of the embodiment of the present invention two carries out firmware upgrade.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
Embodiment one
The present embodiment provides a kind of methods that television terminal carries out firmware upgrade, are applied to Intelligent television terminal, the intelligence
Can television terminal specifically include that system level chip as described in Figure 3, embedded eMMC memory, Double Data Rate synchronous dynamic with
Machine DDR memory, communication module, functional module, interface module, frame frequency control chip, FLASH chip, center control panel, backlight
Driving plate.
It is carried out under the tangible television startup state of the firmware upgrade of this method, as described in Figure 1, comprising:
Step 101, by with server communication, when detecting new version firmware file, from the server downloading described in
New version firmware file is simultaneously saved in default memory block;
Firmware is the program that can be upgraded by user by specific refurbishing procedure, refers to the equipment saved inside equipment
Driver is generally stored in electricallyerasable ROM (EEROM) EEPROM or the FLASH chip in equipment.In the present embodiment
Firmware refers in particular to the module firmware in addition to system level chip main program.
System level chip is by CPU, Analog IP core, digital signal processor DSP module and embedded memory (or piece external storage
Control interface) it integrates on a single chip, it is the integrated circuit for having application-specific target, wherein comprising holonomic system and having insertion
The full content of software.
Television terminal includes that wireless network communication module can carry out information exchange with server.
When carrying out firmware upgrade after television startup, firmware upgrade thread is created, firmware upgrade can be under individual thread
It carries out, does not influence the execution of other threads.
Whether firmware upgrade thread has new version firmware file by wireless network communication module query service device;
If after having inquired new version firmware file, judging whether to need to carry out firmware upgrade, such as existing module firmware
Version then uses over the air OTA lower than new version firmware file, simultaneously from server downloading new version firmware file
It is saved in default memory block.
Optionally, default memory block can be, but not limited to as mainboard flash memory area;
System level chip by the firmware file of new version be saved in behind motherboard flash area to above-mentioned new version firmware file into
Row cyclic redundancy CRC check.
There is the firmware upgrade procedure of new version in above-mentioned new version firmware file.
Over the air downloads upgrading data packet by mobile communications network, and more new system is that Android system provides
Standard software upgrades mode.
Cyclic redundancy check is a kind of data transmission error-detecting function, carries out polynomial computation, and the knot that will be obtained to data
Fruit is attached to behind frame, and receiving device also executes similar algorithm, to guarantee the correctness and integrality of data transmission.
Step 102, when starting module firmware upgrade, the new version firmware file is read from the default memory block;
When starting module firmware upgrade, the new version firmware text passed through will be verified by system level chip in motherboard flash area
Part is sent to the module firmware;
After verification passes through, system level chip passes through IC bus to the corresponding module firmware of new version firmware file
I2C bus sends above-mentioned new version firmware file while sending upgrade command.
Whether judgment module firmware has been applied in random access memory ram after sending upgrade command to module firmware
One buffer area, if so, by new version firmware file be sent to that module firmware applies in random access memory ram it is slow
It deposits in area.
Step 103, module firmware upgrading is carried out using the new version firmware file of reading.
After module firmware receives upgrade command, apply for a buffer area, module firmware in random access memory ram
Received new version firmware file is stored in random access memory ram;
Cyclic redundancy CRC is carried out to the new version firmware file in random access memory ram by the module firmware
Verification;
Module firmware upgrading is carried out by the new version firmware file read in random access memory ram.
Module firmware reads the new version firmware file in random access memory ram, and passes through serial peripheral equipment interface SPI
It is stored in the corresponding flash memory area of the module firmware.
SPI is a kind of synchronous serial Peripheral Interface, it can make micro-control unit and various peripheral equipments in a serial fashion
It is communicated to exchange information.
The corresponding main flash area of module firmware and a backup flash memory area, the main flash area are that the module firmware is worked as
It is preceding to run the flash memory area used, the new version firmware file in random access memory ram is read, and it is solid to be stored in the module
The corresponding flash memory area of part, comprising:
The new version firmware file in random access memory ram is read, and it is corresponding standby to be stored in the module firmware
Part flash memory area.For example, this module firmware starts from main flash area, new version firmware file is written when having upgrade requirement and is backed up
Active flag position is changed in flash memory area after upgrading successfully, when next time is switched on, module firmware starts from backup flash memory area.
New version firmware file, which is read, from corresponding flash memory area by the module firmware carries out firmware upgrade.
System level chip and module firmware can all carry out multithreading operation, and the present embodiment uses RAM unloading new version firmware
The mode of file can complete firmware update on backstage in TV normal use process, not influence user and normally watch TV.
The over the air upgrade function of smart television is to be based on Android backup Android recovery mode,
Recovery mode refer to it is a kind of can be to the data or the mode modified of system inside Android system, in this mode
Modification can only be updated to the partition data of the eMMC used in system level chip, and the FLASH of module firmware and eMMC are point
From, therefore recovery mode can not update the module firmware FLASH in addition to system level chip main program.Under realizing in the air
Technology upgrading firmware is carried, it can only be using the above scheme.
By taking frame frequency controls chip FRC as an example, as shown in Fig. 2, including that system level chip effluent journey and frame frequency control chip stream
Journey.
System level chip effluent journey includes:
2101, after determining system starting, whether there is new version firmware by wireless network communication module query service device
File, if executing 2102;
2102, using over the air OTA, new version firmware file is downloaded from the server, is saved in mainboard
eMMC;
2103, cyclic redundancy CRC check is carried out to the new version firmware file in eMMC;Upgrade mistake if verifying failure
It loses, if examining successful execution 2104;
2104, upgrade command notice FRC is sent to FRC and prepares upgrading, so that the Shen in random access memory ram FRC
It please a caching;
2105, whether the state for obtaining FRC is ready to upgrade, if otherwise upgrading failure, if so then execute 2106;
2106, send what FRC applied in random access memory ram by I2C bus for new version firmware file
In one buffer area.
Frame frequency controls chip side process
2201, FRC start from flash partition bank0;
2202, I2C initialization send new version firmware file by I2C bus for system level chip;
2203, FRC receive the application one in random access memory ram after the upgrade command of system level chip transmission
Buffer area is used for the new version firmware file that storage system grade chip is sent;
2204, whether detection FRC is ready to upgrade, if otherwise upgrading failure, if so then execute 2205;
2205, the new version firmware file that system level chip is sent is stored in and is applied in random access memory ram
Buffer area in;
2206, cyclic redundancy CRC check is carried out to the new version firmware file in random access memory ram, if verification
It is unsuccessful, upgrade failure, executes 2207 if examining successfully;
2207, the successful new version firmware file of inspection in random access memory ram is read, and pass through serial peripheral
Interface SPI is stored in flash partition bank1, is upgraded successfully if storing successfully, if storage unsuccessfully upgrades failure.
Active flag position is changed after upgrading successfully, when next time is switched on, module firmware starts from flash partition bank1.
Embodiment two
The present embodiment is the equipment that a kind of television terminal carries out firmware upgrade, the principle and above-mentioned side which solves the problems, such as
Method is similar, therefore the implementation of the equipment may refer to the implementation of method, and overlaps will not be repeated.
The present embodiment also provides a kind of device of television terminal progress firmware upgrade, including memory and processor, above-mentioned
Processor is used for:
By with server communication, when detecting new version firmware file, it is solid to download the new version from the server
Part file is simultaneously saved in default memory block;
When starting module firmware upgrade, the new version firmware file is read from the default memory block;
Module firmware upgrading is carried out using the new version firmware file of reading.
Above-mentioned processor is specifically used for:
When starting module firmware upgrade, institute is sent for the new version firmware file in motherboard flash area by system level chip
State module firmware;
Module firmware upgrading is carried out using the new version firmware file of reading, comprising:
Received new version firmware file is stored in reading random access memory ram;
Module firmware upgrading is carried out by the new version firmware file read in random access memory ram.
The new version firmware file in random access memory ram is read, and is stored in the corresponding sudden strain of a muscle of the module firmware
Deposit area;
New version firmware file, which is read, from corresponding flash memory area carries out module firmware upgrading.
Above-mentioned processor is also used to:
Cyclic redundancy CRC check is carried out to the new version firmware file in main flash area.
Above-mentioned processor is also used to:
Cyclic redundancy CRC is carried out to the new version firmware file in random access memory ram by the module firmware
Verification.
Above-mentioned processor is used for:
Using over the air OTA, the new version firmware file is downloaded from the server and is saved in default deposit
Storage area.
Embodiment three
The present embodiment provides the devices that a kind of television terminal carries out firmware upgrade, as shown in figure 4, above-mentioned apparatus includes:
Firmware file acquiring unit 401, for by with server communication, when detecting new version firmware file, from institute
Server is stated to download the new version firmware file and be saved in default memory block;
Firmware upgrade start unit 402 when being used for starting module firmware upgrade, is read described new from the default memory block
Version firmware file;
Firmware upgrade unit 403, for using the new version firmware file of reading to carry out module firmware upgrading.
The default memory block is the motherboard flash area for saving system upgrade file.
Firmware upgrade start unit 402 is specifically used for:
When starting module firmware upgrade, institute is sent for the new version firmware file in motherboard flash area by system level chip
State module firmware;
Module firmware upgrading is carried out using the new version firmware file of reading, comprising:
Received new version firmware file is stored in reading random access memory ram;
Module firmware upgrading is carried out by the new version firmware file read in random access memory ram.
For reading the new version firmware file in random access memory ram, and it is corresponding to be stored in the firmware module
Flash memory area;
Firmware upgrade is carried out for reading new version firmware file from corresponding flash memory area.
Firmware upgrade start unit 402 is specifically also used to:
Cyclic redundancy CRC check is carried out to the new version firmware file in main flash area.
Firmware upgrade start unit 402 is specifically also used to:
Cyclic redundancy CRC check is carried out to the new version firmware file in random access memory ram.
Firmware file acquiring unit 401 is specifically used for using over the air OTA, downloads new version from the server
Firmware file is simultaneously saved in default memory block.
Example IV
The present embodiment is a kind of computer storage medium, and above-mentioned computer storage medium is stored with computer program, the meter
Calculation machine program is performed the content for realizing any one of above-described embodiment one to three.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.