The upgrade method and device of a kind of standalone module
Technical field
The present invention relates to communication technique field, in particular, is related to the upgrade method and device of a kind of standalone module.
Background technology
Current existing intelligent television can be divided into two big types, and one kind is intelligent television all-in-one, by intelligent television
Hardware is expanded, and the equipment such as increase CPU, internal memory, wireless network card, it is supported operating system and networking, and then will
The operating systems such as Android are built in intelligent television, complete intelligent televisionization lifting;Another kind is on original TV, is led to
External one intelligent television box for carrying android system or ios systems of HDMI or other external interfaces is crossed, it is possessed support
The function of the intelligent television such as operating system and networking.And on this basis, have also been proposed a kind of DTMB(Digital
Television Terrestrial Multimedia Broadcasting, digital television ground broadcast transmission system frame knot
Structure, Channel Coding and Modulation)The intelligent television of pattern, abbreviation ground digital intelligent television, by receiving terrestrial digital signal reality
The data output of existing intelligent television.
In ground digital intelligent television, DTMB modules are a modules of televising completed by third party.With net
The continuous development of network mechanics of communication, DTMB modules are also required to adjoint network development speed and realize synchronous upgrading.In the prior art, when
When DTMB modules are in escalation process, after user triggers the control instruction for starting the work of DTMB modules, now intelligent television
Export blank screen.And now user plane takes for intelligent television system program crashing to TV blank screen, and then restart intelligent television, from
And DTMB module upgrades are caused to interrupt.
The content of the invention
In view of the above-mentioned problems, the present invention provides a kind of upgrade method and device of standalone module, to solve in the prior art
User plane takes for intelligent television system program crashing to TV blank screen, and then restarts intelligent television, so as to cause DTMB modules
The problem of upgrading is interrupted.Technical scheme is as follows:
Based on an aspect of of the present present invention, the present invention provides a kind of upgrade method of standalone module, including:
Obtain the control instruction that the control DTMB modules of user's input are opened;
Whether the upgrade flag for judging the DTMB modules is the first preset mark;
If judge the upgrade flag of the DTMB modules for the first preset mark, determine that the DTMB modules are not at rising
Level state;
Open the DTMB modules.
Preferably, in addition to:
If the upgrade flag for judging the DTMB modules is not the first preset mark, the DTMB modules are determined whether
Upgrade flag whether be the second preset mark;
If judge the upgrade flag of the DTMB modules for the second preset mark, determine that the DTMB modules are in
In upgrade status;
Eject prompting message;The prompting message is used to prompt the presently described DTMB modules of user to be in just in upgrade status
In.
Preferably, before whether the upgrade flag for judging the DTMB modules is the first preset mark, methods described
Also include:
The upgrade flag for setting the DTMB modules is the second preset mark;
Detect the current version number of the DTMB modules;
Detect the version number of AKU corresponding to the DTMB modules of record;
Judge whether the version number of AKU corresponding to the DTMB modules of the record is more than the DTMB modules and works as
Preceding version number;
If judging, the version number of AKU corresponding to the DTMB modules of the record is current more than the DTMB modules
Version number, download the AKU, upgrade the DTMB modules;
After completing to upgrade the DTMB modules, the upgrade flag for setting the DTMB modules is the first preset mark.
Preferably, in addition to:
If judging, the version number of AKU corresponding to the DTMB modules of the record works as no more than the DTMB modules
Preceding version number, the upgrade flag for setting the DTMB modules are the first preset mark.
Preferably, the upgrade flag for setting the DTMB modules includes for the second preset mark:
When detecting the intelligent television starting up, the upgrade flag for setting the DTMB modules is the second pre- bidding
Note.
Based on another aspect of the present invention, the present invention provides a kind of update device of standalone module, including:
Acquisition module, the control instruction that the control DTMB modules for obtaining user's input are opened;
First judge module, for judging whether the upgrade flag of the DTMB modules is the first preset mark;
First determining module, for judging that the upgrade flag of the DTMB modules is pre- for first in first judge module
Bidding clocks, and determines that the DTMB modules are not at upgrade status;
Opening module, for opening the DTMB modules.
Preferably, in addition to:
Second judge module, the upgrade flag for judging the DTMB modules in first judge module are not first
During preset mark, whether the upgrade flag for judging the DTMB modules is the second preset mark;
Second determining module, for judging that the upgrade flag of the DTMB modules is pre- for second in second judge module
Bidding clocks, and determines that the DTMB modules are in just in upgrade status;
Reminding module, for ejecting prompting message;The prompting message is used to prompt at the presently described DTMB modules of user
In just in upgrade status.
Preferably, in addition to:
First setup module, the upgrade flag for setting the DTMB modules are the second preset mark;
First detection module, the version number current for detecting the DTMB modules;
Second detection module, for detecting the version number of AKU corresponding to the DTMB modules of record;
3rd judge module, for judging whether the version number of AKU corresponding to the DTMB modules of the record is big
In the current version number of the DTMB modules;
Download module, for judging AKU corresponding to the DTMB modules of the record in the 3rd judge module
Version number be more than the current version number of the DTMB modules, download the AKU;
Upgraded module, for upgrading the DTMB modules according to the AKU;
Second setup module, for after the upgraded module completes to upgrade the DTMB modules, setting the DTMB moulds
The upgrade flag of block is the first preset mark.
Preferably, second setup module is additionally operable to, and is judged in the 3rd judge module described in the record
The version number current no more than the DTMB modules of the version number of AKU corresponding to DTMB modules, sets the DTMB modules
Upgrade flag is the first preset mark.
Preferably, in addition to:
3rd detection module, for detecting the starting up of the intelligent television;
First setup module is specifically used for, when the 3rd detection module detects the intelligent television starting up
When, the upgrade flag for setting the DTMB modules is the second preset mark.
Using above-mentioned technical proposal, after the control instruction of the invention opened in the control DTMB modules for obtaining user's input,
Whether the upgrade flag for first determining whether DTMB modules is the first preset mark.When the upgrade flag for judging DTMB modules is pre- for first
Bidding clocks, and determines that DTMB modules are not at upgrade status, is now opening DTMB modules.Therefore, present invention, avoiding
User opens blank screen caused by DTMB modules when during DTMB module upgrades, and further results in user and restart intelligent television,
The problem of interrupting DTMB module upgrades, reduce the misoperation probability of user.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of a kind of flow chart of the upgrade method of standalone module provided by the invention;
Fig. 2 is a kind of another flow chart of the upgrade method of standalone module provided by the invention;
Fig. 3 is a kind of a kind of structural representation of the update device of standalone module provided by the invention;
Fig. 4 is a kind of another structural representation of the update device of standalone module provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Embodiment one
Fig. 1 is referred to, it illustrates a kind of a kind of flow chart of the upgrade method of standalone module provided by the invention, bag
Include:
Step 101, the control instruction that the control DTMB modules of user's input are opened is obtained.
In the present embodiment, user can send the control instruction for opening DTMB modules to intelligent electricity by remote control
Depending on control can also be set to open the control button of DTMB modules, after user clicks on the control button, intelligence on intelligent television
Energy TV gets the control instruction that control DTMB modules are opened.
Step 102, whether the upgrade flag for judging DTMB modules is the first preset mark.If it is, step 103 is performed,
If not, perform step 105.
In the present embodiment, the upgrade flag of DTMB modules can include the first preset mark and the second preset mark.Its
In, the first preset mark can be false, and the second preset mark can be true.First preset mark and the second preset mark
For representing whether current DTMB modules are in upgrade status.When the upgrade flag of DTMB modules is the first preset mark false
When, show that current DTMB modules are not at upgrade status;When the upgrade flag of DTMB modules is the second preset mark true, table
Bright current DTMB modules are in just in upgrade status.
Whether the present invention is the first preset mark to judge current DTMB modules by the upgrade flag for judging DTMB modules
Whether upgrade status is in, when it is determined that current DTMB modules are not on upgrade status, DTMB modules are opened in control.
Step 103, determine that DTMB modules are not at upgrade status.
Step 104, DTMB modules are opened.
In the present embodiment, when the upgrade flag for judging DTMB modules is the first preset mark, it may be determined that DTMB moulds
Block is not at upgrade status.Now DTMB modules are opened in control.
Step 105, whether the upgrade flag for judging DTMB modules is the second preset mark.If it is, step 106 is performed,
If not, perform step 108.
Step 106, determine that DTMB modules are in just in upgrade status.
Step 107, prompting message is ejected.Wherein, prompting message rises for prompting the current DTMB modules of user to be in
In level state.
In the present embodiment, when the upgrade flag for judging DTMB modules is not or not first preset mark, determine whether
Whether the upgrade flag of DTMB modules is the second preset mark.When the upgrade flag of DTMB modules is the second preset mark, table
The current DTMB modules in face are in just in upgrade status.Now, because user triggers the function of control unlatching DTMB modules, intelligence
In order to prevent the maloperation of user's triggering, ejection prompting message is upgraded energy TV with prompting the current DTMB modules of user to be in
In state.Wherein, prompting message can be specially a prompting frame, can include in the prompting frame:It please just be wait, also during upgrading
There are 10min upgradings to terminate, the prompt messages such as power supply please not closed.
Step 108, prompt system is abnormal.
In the present embodiment, when the upgrade flag for judging DTMB modules neither the first preset mark, nor second is pre-
Bidding clocks, and shows current DTMB modules operation irregularity, and now intelligent television can also eject a prompting message, for prompting to work as
Preceding system exception, in order to be sufficiently accurate it may be desired to which user restarts.
Using the above-mentioned technical proposal of the present invention, control of the present invention in the control DTMB modules unlatching for obtaining user's input
After instruction, whether the upgrade flag for first determining whether DTMB modules is the first preset mark.When the upgrade flag for judging DTMB modules
For the first preset mark when, determine that DTMB modules are not at upgrade status, now open DTMB modules.When judging DTMB modules
Upgrade flag when not being the first preset mark, whether the upgrade flag for determining whether DTMB modules is the second preset mark,
When the upgrade flag for judging DTMB modules is the second preset mark, determine that DTMB modules are in just in upgrade status, ejection
Prompting message is to prompt user.When the upgrade flag for judging DTMB modules nor during the second preset mark, the current intelligence in surface
The system exception of TV, user is prompted to reopen DTMB modules.Therefore, present invention, avoiding during DTMB module upgrades
When user open blank screen caused by DTMB modules, and further result in user and restart intelligent television, interrupt DTMB module upgrades
Problem, reduce the misoperation probability of user.
Embodiment two
Referring to Fig. 2, it illustrates a kind of another flow chart of the upgrade method of standalone module provided by the invention, bag
Include:
Step 201, the upgrade flag for setting DTMB modules is the second preset mark.
In the present embodiment, it can set when user opens intelligent television and started, that is, detect that intelligent television start is opened
After dynamic, the upgrade flag for setting DTMB modules at once is the second preset mark, shows that current DTMB modules are in upgrade status.
Step 202, the current version number of DTMB modules is detected.
In the present embodiment, a dtmb_server modules can be set in intelligent television, and the dtmb_server modules are used
In specially control DTMB modules, it is DTMB module marks upgrade flags that it, which is specifically used for,.In addition, intelligent television can also be by building
Vertical dtmb_server modules and the communication connection of DTMB intermodules, it is current that inquiry DTMB modules are sent by dtmb_server modules
The control instruction of version number then receives the message for the DTMB module current versions number that DTMB modules return to DTMB modules, with
Know the version number of current DTMB modules.
Step 203, the version number of AKU corresponding to the DTMB modules of record is detected.
Wherein, the version number of AKU corresponding to the DTMB modules of record is the AKU pair of the DTMB modules of redaction
The version number answered.In the present embodiment, version number corresponding to the AKU of the DTMB modules of redaction can be recorded in dtmb_
In the source code of server modules.Corresponding to DTMB modules of the intelligent television in detection record during the version number of AKU, just certainly
The version number of AKU corresponding to the DTMB modules recorded in the source code of dynamic detection dtmb_server modules.
Step 204, judging the version number of AKU corresponding to the DTMB modules of record, whether to be more than DTMB modules current
Version number.If it does, step 205 is performed, if it is not greater, performing step 206.
In the present embodiment, when the version number of AKU corresponding to DTMB modules is more than the current version number of DTMB modules
When, show that the version levels of current DTMB modules are relatively low, it is necessary to be upgraded.When the version number of AKU corresponding to DTMB modules
The version number current no more than DTMB modules, the version for showing current DTMB modules has been newest, without upgrading.
Step 205, AKU is downloaded, upgrades DTMB modules.
In the present embodiment, DTMB modules actively can send upgrade request to obtain record to dtmb_server modules
DTMB modules corresponding to AKU be downloaded, upgrade DTMB modules.Intelligent television can also need detecting DTMB modules
When upgrading, active control dtmb_server modules issue the AKU of record to DTMB modules, to cause DTMB modules to download
AKU, upgrade DTMB modules.
Step 206, the upgrade flag for setting DTMB modules is the first preset mark.
In the present embodiment, when intelligent television judges that the version number of AKU corresponding to the DTMB modules of record is not more than
During the current version number of DTMB modules, show current DTMB modules without upgrading, now reset the upgrading mark of DTMB modules
The first preset mark is designated as, to show that current DTMB modules are not at upgrade status, DTMB modules can be opened by user's control.
Using the above-mentioned technical proposal of the present invention, the present invention sets DTMB automatically first after intelligent television system start
The upgrade flag of module is the second preset mark, to control current DTMB modules to be in upgrade status, prevents user misoperation from opening
Open DTMB modules.And then detect respectively corresponding to the DTMB modules of the latest edition of the current version number of DTMB modules and record
The version number of AKU, whether the version number of AKU it is current be more than DTMB modules corresponding to the DTMB modules of multilevel iudge record
Version number, if it does, show that current DTMB modules need to upgrade, now download AKU, upgrade DTMB modules, and complete
Into after upgrading, the upgrade flag for setting DTMB modules is the first preset mark;If it is not greater, show the version of current DTMB modules
This has been latest edition, and without upgrading, the upgrade flag for directly setting DTMB modules is the first preset mark.Therefore, it is of the invention
It not only can judge whether DTMB modules need to upgrade in the very first time, realize the promptness of DTMB module upgrades, protect simultaneously
Demonstrate,prove during DTMB module upgrades, prevented user misoperation from opening DTMB modules, ensure that Consumer's Experience.
Embodiment three
Based on a kind of description of the upgrade method of standalone module provided by the invention above, the present invention also provides a kind of independent
The update device of module, referring to Fig. 3, it illustrates a kind of a kind of structure of the update device of standalone module provided by the invention
Schematic diagram, including:Acquisition module 301, the first judge module 302, the first determining module 303, opening module 304, second judge
Module 305, the second determining module 306 and reminding module 307.Wherein,
Acquisition module 301, the control instruction that the control DTMB modules for obtaining user's input are opened.
First judge module 302, for judging whether the upgrade flag of DTMB modules is the first preset mark.
First determining module 303, it is default for first for judging the upgrade flag of DTMB modules in the first judge module 302
During mark, determine that DTMB modules are not at upgrade status.
Opening module 304, for opening DTMB modules.
Second judge module 305, the upgrade flag for judging DTMB modules in the first judge module 302 are not first pre-
Bidding clocks, and whether the upgrade flag for judging DTMB modules is the second preset mark.
Second determining module 306, it is default for second for judging the upgrade flag of DTMB modules in the second judge module 305
During mark, determine that DTMB modules are in just in upgrade status.
Reminding module 307, for ejecting prompting message.Wherein, prompting message is used to prompt at the current DTMB modules of user
In just in upgrade status.
In the present embodiment, the upgrade flag of DTMB modules can include the first preset mark and the second preset mark.Its
In, the first preset mark can be false, and the second preset mark can be true.First preset mark and the second preset mark
For representing whether current DTMB modules are in upgrade status.When the upgrade flag of DTMB modules is the first preset mark false
When, show that current DTMB modules are not at upgrade status;When the upgrade flag of DTMB modules is the second preset mark true, table
Bright current DTMB modules are in just in upgrade status.
Specifically, in the present embodiment, whether the upgrade flag that DTMB modules are judged by the first judge module 302 is
One preset mark judges whether current DTMB modules are in upgrade status, in the first determining module 303 determines current DTMB moulds
When block is not on upgrade status, DTMB modules are opened in the control of opening module 304.When the first judge module 302 judges DTMB moulds
When the upgrade flag of block is not the first preset mark, the upgrade flag of DTMB modules is further judged by the second judge module 305
Whether it is the second preset mark.When it is the second preset mark that the second determining module 306, which determines the upgrade flag of DTMB modules, table
The current DTMB modules in face are in just in upgrade status.Now, because user triggers the function of control unlatching DTMB modules, intelligence
For energy TV in order to prevent the maloperation of user's triggering, reminding module 307 ejects prompting message to prompt the current DTMB modules of user
In just in upgrade status.Wherein, prompting message can be specially a prompting frame, can include in the prompting frame:Rise
It please be wait in level, also have 10min upgradings to terminate, the prompt messages such as power supply please not closed.
Using the above-mentioned technical proposal of the present invention, the present invention obtains the control DTMB moulds of user's input in acquisition module 301
After the control instruction that block is opened, judge whether the upgrade flag of DTMB modules is first to preset by the first judge module 302 first
Mark.When the first judge module 302 judges the upgrade flag of DTMB modules for the first preset mark, the first determining module 303
Determine that DTMB modules are not at upgrade status, now opening module 304 opens DTMB modules.When the first judge module 302 judges
When the upgrade flag of DTMB modules is not the first preset mark, the liter of DTMB modules is further judged by the second judge module 305
Level marks whether as the second preset mark, when the second judge module 305 judges that the upgrade flag of DTMB modules is marked with advance for second
Clock, the second determining module 306 determines that DTMB modules are in just in upgrade status, reminding module 307 eject prompting message with
Prompt user.When the second judge module 305 judges the upgrade flag of DTMB modules nor during the second preset mark, surface is current
The system exception of intelligent television, user is prompted to reopen DTMB modules.Therefore, present invention, avoiding in DTMB module upgrade mistakes
User opens blank screen caused by DTMB modules when in journey, and further results in user and restart intelligent television, interrupts DTMB module liters
The problem of level, reduce the misoperation probability of user.
Example IV
On the basis of above-described embodiment, referring to Fig. 4, it illustrates a kind of upgrading of standalone module provided by the invention
Another structural representation of device, including:First setup module 401, first detection module 402, the second detection module 403,
3rd judge module 404, download module 405, the setup module 407 of upgraded module 406 and second.Wherein,
First setup module 401, the upgrade flag for setting DTMB modules are the second preset mark.
First detection module 402, the version number current for detecting DTMB modules.
Second detection module 403, for detecting the version number of AKU corresponding to the DTMB modules of record.
3rd judge module 404, for judging whether the version number of AKU corresponding to the DTMB modules of record is more than
The current version number of DTMB modules.
Download module 405, for judging the version of AKU corresponding to the DTMB modules of record in the 3rd judge module 404
Number it is more than the current version number of DTMB modules, downloads AKU.
Upgraded module 406, for according to AKU upgrading DTMB modules.
Second setup module 407, for after upgraded module 406 completes upgrading DTMB modules, setting the liter of DTMB modules
Level is labeled as the first preset mark.
In addition, the second setup module 407 is additionally operable to, judge in the 3rd judge module 404 corresponding to the DTMB modules of record
The version number current no more than DTMB modules of the version number of AKU, the upgrade flag for setting DTMB modules are the first pre- bidding
Note.
Meanwhile on the basis of above-described embodiment, the 3rd detection module 408 can also be included, for detecting intelligence in real time
The starting up of TV.When the 3rd detection module 408 detects intelligent television starting up, the first setup module 401 is direct
The upgrade flag for setting DTMB modules is the second preset mark.
In the present embodiment, when the 3rd detection module 408 detects intelligent television starting up, mould is set by first first
It is the second preset mark that block 401, which sets the upgrade flag of DTMB modules, to control current DTMB modules to be in upgrade status, is prevented
User misoperation opens DTMB modules.And then DTMB is detected by the detection module 403 of first detection module 402 and second respectively
The version number of AKU, judges mould using the 3rd corresponding to the DTMB modules of the latest edition of the current version number of module and record
Whether the version number of AKU is more than the current version number of DTMB modules corresponding to the DTMB modules of the multilevel iudge of block 404 record,
If it does, showing that current DTMB modules need to upgrade, now download module 405 downloads AKU, and upgraded module 406 is according to liter
Level bag upgrading DTMB modules, and after completing to upgrade, the second setup module 407 sets the upgrade flag of DTMB modules pre- for first
Bidding note;If it is not greater, the version for showing current DTMB modules has been latest edition, without upgrading, directly set by second
It is the first preset mark that module 407, which sets the upgrade flag of DTMB modules,.Therefore, the present invention can not only judge in the very first time
Whether DTMB modules, which need, upgrades, and realizes the promptness of DTMB module upgrades, while ensure that in DTMB module upgrade processes
In, prevent user misoperation from opening DTMB modules, ensure that Consumer's Experience.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined
See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that
A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged
Except other identical element in the process including the key element, method, article or equipment being also present.
The upgrade method and device of a kind of standalone module provided by the present invention are described in detail above, herein
Apply specific case to be set forth the principle and embodiment of the present invention, the explanation of above example is only intended to help
Understand the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention,
There will be changes in specific embodiments and applications, in summary, this specification content should not be construed as to this
The limitation of invention.