CN107608693A - version upgrading method and terminal device - Google Patents

version upgrading method and terminal device Download PDF

Info

Publication number
CN107608693A
CN107608693A CN201710786052.XA CN201710786052A CN107608693A CN 107608693 A CN107608693 A CN 107608693A CN 201710786052 A CN201710786052 A CN 201710786052A CN 107608693 A CN107608693 A CN 107608693A
Authority
CN
China
Prior art keywords
version
target
version information
controller
sub
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
CN201710786052.XA
Other languages
Chinese (zh)
Other versions
CN107608693B (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 Infinova Ltd
Original Assignee
Shenzhen Infinova 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 Infinova Ltd filed Critical Shenzhen Infinova Ltd
Priority to CN201710786052.XA priority Critical patent/CN107608693B/en
Publication of CN107608693A publication Critical patent/CN107608693A/en
Application granted granted Critical
Publication of CN107608693B publication Critical patent/CN107608693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention is applied to communication technical field, there is provided a kind of version upgrading method and terminal device, methods described include:After activation system, Loading Control driving, the target version information of reading target sub-controller;Judge whether target version information is legal;If it is determined that target version information is legal, then by target version information compared with the version information of the sub-controller to prestore;Edition upgrading is carried out to target sub-controller according to the comparative result of target version information and the version information, edition upgrading can be carried out to multiple sub-controllers by the upgrade file for the sub-controller being pre-stored in main SOC programs.When version needs upgrading, main SOC program need to only be upgraded, the more program version information of new file system neutron controller, no longer need individually to upgrade the program of multiple sub-controllers, improve the edition upgrading efficiency of sub-controller, the edition upgrading error rate of sub-controller is reduced, one master and multiple slaves control is realized, meets practical application needs.

Description

Version upgrading method and terminal device
Technical field
The invention belongs to communication technical field, more particularly to a kind of version upgrading method and terminal device.
Background technology
Present embedded product is quickly grown, and function is more and more comprehensive, except main SOC above control panel (System on Chip, system level chip) can use one or more sub-controllers as auxiliary outside, toward contact.Along with control The increase of device, the program version maintenance difficulties of controller also increase.By taking security protection industry as an example, a common small and medium-sized project may be just Using there is hundreds of video cameras, a video camera is except master control SOC, also two or three piece of assistant SCM.Each system version liter Level needs individually to carry out edition upgrading to multiple sub-controllers, and workload is big, and easily error, can not meet existing controller version Upgrading needs.
The content of the invention
In view of this, the embodiments of the invention provide a kind of version upgrading method and terminal device, to solve prior art In every time system version upgrading need individually to multiple sub-controllers carry out edition upgrading, workload is big, the problem of easily error.
The first aspect of the embodiment of the present invention provides a kind of version upgrading method, including:
After activation system, Loading Control driving, the target version information of reading target sub-controller;
Judge whether the target version information is legal;
If it is determined that the target version information is legal, then by the target version information and the version of the sub-controller to prestore Information is compared;
Version is carried out to the target sub-controller according to the comparative result of the target version information and the version information This upgrading.
The second aspect of the embodiment of the present invention provides a kind of edition upgrading device, including:
Version reading unit, for after activation system, Loading Control driving, read the target version of target sub-controller Information;
Version judging unit, for judging whether the target version information is legal;
Edition comparison unit, for if it is determined that the target version information is legal, then by the target version information and in advance The version information for the sub-controller deposited is compared;
First version upgrade unit, for according to the comparative result of the target version information and the version information to institute State target sub-controller and carry out edition upgrading.
The third aspect of the embodiment of the present invention provide a kind of edition upgrading terminal device, including memory, processor with And it is stored in the computer program that can be run in the memory and on the processor, it is characterised in that the processor The version upgrading method of above-mentioned first aspect is realized when performing the computer program.
The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage Media storage has computer program, and the computer program realizes the edition upgrading side of above-mentioned first aspect when being executed by processor Method.
Existing beneficial effect is the embodiment of the present invention compared with prior art:The embodiment of the present invention after activation system, Driven by Loading Control, read the target version information of target sub-controller;Judge whether the target version information is legal;If Judge that the target version information is legal, then by the target version information compared with the version information of the sub-controller to prestore; Edition upgrading is carried out to target sub-controller according to the comparative result of target version information and above-mentioned version information, can be by pre- The upgrade file that the sub-controller in main SOC programs be present carries out edition upgrading to multiple sub-controllers.When version needs upgrading, The program version information of main SOC program, more new file system neutron controller need to only be upgraded, it is no longer necessary to individually upgrading The program of multiple sub-controllers, the edition upgrading efficiency of sub-controller is improved, reduce the edition upgrading error rate of sub-controller, it is real Existing one master and multiple slaves control, meets practical application needs.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of version upgrading method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram for version upgrading method that another embodiment of the present invention provides;
Fig. 3 is a kind of schematic flow diagram for version upgrading method that yet another embodiment of the invention provides;
Fig. 4 is a kind of schematic flow diagram for version upgrading method that further embodiment of this invention provides;
Fig. 5 is a kind of schematic flow diagram for version upgrading method that further embodiment of this invention provides;
Fig. 6 is a kind of schematic block diagram of edition upgrading device provided in an embodiment of the present invention;
Fig. 7 is a kind of edition upgrading device schematic block diagram that another embodiment of the present invention provides;
Fig. 8 is the schematic diagram of edition upgrading terminal device provided in an embodiment of the present 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 part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but with tactile Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use at least one public of such as touch sensitive surface Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram of version upgrading method provided in an embodiment of the present invention.The present embodiment The executive agent of middle version upgrading method is terminal, can be specifically the main SOC in terminal.Terminal can be mobile phone, The mobile terminals such as tablet personal computer, but this is not limited to, can also be other-end.Version upgrading method as shown in Figure 1 can be with Comprise the following steps:
S101:After activation system, Loading Control driving, the target version information of reading target sub-controller.
Here, the sub-controller that target sub-controller needs to carry out edition upgrading for any one, if there is more height to control Device is needed to carry out edition upgrading, and the version information of multiple sub-controllers can be successively read according to preset order, according to certain suitable The multiple sub-controllers of ordered pair carry out edition upgrading respectively.
After Loading Control driving, it can also include:One, which is sent, to target sub-controller whether carries out software upgrading Prompting, if receive target sub-controller return confirmation carry out software upgrading information, perform read target sub-controller Target version information the step of.
Specifically, so that the main SOC in terminal carries out edition upgrading to sub-controller as an example, main SOC is controlled with son It (can be I2C agreements, SPI (Serial Peripheral Interface, Serial Peripheral Interface (SPI)) is assisted that X protocol is used between device processed View, USART (Universal Synchronous/Asynchronous Receiver/Transmitter, universal synchronous/different Walk serial received/transmitter) agreement etc.), specifically which kind of agreement is hardware connection design is depended on using.Controlled for more height Device, master-slave mode can be used, using main SOC as master (master), sub-controller is slave (from disk), realizes that a master is more From control, main SOC peripheral resources are saved.
S102:Judge whether the target version information is legal.
Here, or so that main SOC carries out edition upgrading to sub-controller as an example, the version that it is legal that main SOC prestores This information, after the target version information of target sub-controller is read, according to prestoring, legal version information judges above-mentioned target Whether version information is legal.Wherein, legal version information can be set according to actual conditions, while can also be according to actual feelings Condition is constantly updated.
S103:If it is determined that the target version information is legal, then by the target version information and the sub-controller to prestore Version information be compared.
Specifically, the version information of sub-controller is prestored, the version information is judging mesh according to setting is actually needed After mark version information is legal, by the target version information of the target sub-controller of reading and the version information of the sub-controller to prestore It is compared, after judging that target version information is illegal, illegal target that is prompted to of a version information can be sent and controlled Device, and edition upgrading is carried out to target sub-controller illegally with edition upgrading rule according to default version information.
Here, can be by the edition upgrading information of sub-controller if main SOC carries out edition upgrading to sub-controller Be put into main SOC constructing environment, so main SOC upgrade files system when, the new edition upgrading information of sub-controller is also more It is new to arrive in the file system of equipment, carry out edition comparison and necessary upgrading for application program.
S104:The target sub-controller is entered according to the target version information and the comparative result of the version information Row edition upgrading.
Specifically, if can be that the target version information is higher than the version information, target sub-controller not be carried out Edition upgrading, otherwise, edition upgrading is carried out to the target sub-controller according to the version information.
Here, according to the comparative result of the target version information and the version information to the target sub-controller Before carrying out edition upgrading, it can also include:One, which is sent, to target sub-controller carries out edition upgrading by preset time Prompting, and after preset time, edition upgrading is carried out to target sub-controller.
In activation system, after having loaded control driving, the mesh of the target sub-controller read by script, can be analyzed Version information is marked, analyses whether to need the program version for upgrading sub-controller, such as needs to upgrade, then application program corresponding to calling is held Row upgrading.Application program needs the upgrading flow supported according to sub-controller to write.
It is evidenced from the above discussion that the version upgrading method of the embodiment of the present invention, can be by being pre-stored in main SOC programs The upgrade file of sub-controller carries out edition upgrading to multiple sub-controllers.When version needs upgrading, it need to only upgrade main SOC journey The program version information of sequence, more new file system neutron controller, it is no longer necessary to individually upgrade the journey of multiple sub-controllers Sequence, the edition upgrading efficiency of sub-controller is improved, reduces the edition upgrading error rate of sub-controller, realize one master and multiple slaves control, Meet practical application needs.
Referring to Fig. 2, Fig. 2 is a kind of schematic flow diagram for version upgrading method that another embodiment of the present invention provides.This The difference of embodiment above-described embodiment is S203~S205, wherein S201~S202 and S101~S102 in a upper embodiment It is identical, referring specifically to the associated description of S101~S102 in above-described embodiment, do not repeat herein.Target described in the present embodiment Version information includes target hardware version and target software release, and the version information includes hardware version and software version, version This upgrade method can also include:
S203:If it is determined that the target version information is legal, the target hardware version is with the hardware version No matching.
Here, hardware version can include arithmetic unit, memory, controller, input arrangement, the output equipment of sub-controller Deng version.Main frame can be the main body of computer, have in mainframe box:Mainboard, CPU (Central Processing Unit, Central processing unit), internal memory, power supply, video card, sound card, network interface card, hard disk, floppy drive, the hardware such as CD-ROM drive.Different model, the hardware built Form different hardware versions.
Specifically, target hardware version and the hardware version in the version information of the sub-controller to prestore are compared one by one It is right, determine whether target hardware version matches with above-mentioned hardware version according to comparison result.
S204:Matched if comparing to obtain the target hardware version with the hardware version, judge the target software Whether the rank of version is less than the rank of the software version.
Here, software version can be the version of the system of sub-controller, compare to obtain the target hardware version with After the hardware version matching, the information of a hardware version matching, then, the rank of comparison object software version can be generated Whether the rank of software version in the version information of the sub-controller that prestores is less than.
S205:If it is determined that the rank of the target software release is less than the rank of the software version, then according to described soft Part version calls application program to carry out edition upgrading to the target sub-controller.
Specifically, it is determined that target software release rank less than above-mentioned software version rank after, according to software version With the corresponding relation of application program, application program corresponding to above-mentioned software version is called to carry out version liter to target sub-controller Level.
It is above-mentioned to target version information compared with the version information of the sub-controller to prestore, comparison object hardware version Whether matched with hardware version in the version information of the sub-controller to prestore, judge the rank of target software release whether less than pre- The rank of software version in the version information for the sub-controller deposited, in examination & verification by just carrying out version liter to target sub-controller Level, ensure that later release upgrading is normally carried out.
Referring to Fig. 3, Fig. 3 is a kind of schematic flow diagram for version upgrading method that yet another embodiment of the invention provides.This The difference of embodiment above-described embodiment is S305, and wherein S301~S304 is identical with S101~S104 in a upper embodiment, Referring specifically to the associated description of S101~S104 in above-described embodiment, do not repeat herein.Edition upgrading side in the present embodiment Method can also include:
S305:If it is determined that the target version information is illegal, then according to the version information to the target sub-controller Carry out edition upgrading.
Here, the target version information includes hardware version and software version, judges whether target version information is legal Including:Judge whether the hardware version legal and judge whether the software version legal, if the hardware version it is legal and The software version is legal, judges that the target version information is legal, otherwise, it is determined that the target version information is illegal.
After judging that target version information is illegal, judge non-programming program in target sub-controller, can call what is prestored Application program corresponding to the version information of sub-controller performs mandatory upgrade.
Referring to Fig. 4, Fig. 4 is a kind of schematic flow diagram for version upgrading method that further embodiment of this invention provides.This The difference of embodiment above-described embodiment is S405~S406, wherein S401~S404 and S101~S104 in a upper embodiment It is identical, referring specifically to the associated description of S101~S104 in above-described embodiment, do not repeat herein.Version liter in the present embodiment Level method can also include:
S405:The instruction of sub-controller version updating is received, the version information is updated according to the instruction.
S406:Version information after renewal is stored in predeterminated position.
Here, so that main SOC carries out edition upgrading to sub-controller as an example, main SOC prestores the version of sub-controller This information, peripheral module of the sub-controller as main SOC.If desired software upgrading is carried out to sub-controller, can passed through The version information of the sub-controller to be prestored in main SOC is updated, i.e., by upgrading main SOC program, to synchronously complete antithetical phrase The Version Control of controller, it is no longer necessary to individually upgrading sub-controller program.
Referring to Fig. 5, Fig. 5 is a kind of schematic flow diagram for version upgrading method that further embodiment of this invention provides.This The difference of embodiment above-described embodiment is S503~S504, wherein S501~S502 and S101~S102 in a upper embodiment It is identical, referring specifically to the associated description of S101~S102 in above-described embodiment, do not repeat herein.Target described in the present embodiment Version information includes target hardware version and target software release, and the version information includes hardware version and software version, version This upgrade method can also include:
S503:If it is determined that the target version information is legal, then the target hardware version and the hardware version Whether match.
S504:If comparing to obtain the target hardware version and hardware version mismatch, stop to the target Sub-controller carries out edition upgrading, generation upgrading failure information.
Here, if hardware version mismatches in the version information of target hardware version and the sub-controller to prestore, not to mesh To mark sub-controller and carry out edition upgrading, generation upgrading failure information, the failure information can carry upgrading failure cause, such as firmly Part version mismatches, and facilitates user to check updating result, is adapted to application.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present invention forms any limit with its function and internal logic It is fixed.
Corresponding to the alarm clock setting method described in foregoing embodiments, Fig. 6 shows a kind of version provided in an embodiment of the present invention The schematic block diagram of this update device.The each unit that the edition upgrading device 600 of the present embodiment includes is used to perform corresponding to Fig. 1 Each step in embodiment, referring specifically to the associated description in embodiment corresponding to Fig. 1 and Fig. 1, is not repeated herein.This implementation The edition upgrading device 600 of example includes version reading unit 601, version judging unit 602, edition comparison unit 603 and first Edition upgrading unit 604.
Version reading unit 601, for after activation system, Loading Control driving, read the target of target sub-controller Version information.
Version judging unit 602, for judging whether the target version information is legal.
Edition comparison unit 603, for if it is determined that the target version information is legal, then by the target version information with The version information of the sub-controller to prestore is compared.
First version upgrade unit 604, for the comparative result according to the target version information and the version information Edition upgrading is carried out to the target sub-controller.
, can be by the son that is pre-stored in main SOC programs it is evidenced from the above discussion that edition upgrading device of the embodiment of the present invention The upgrade file of controller carries out edition upgrading to multiple sub-controllers.When version needs upgrading, it need to only upgrade main SOC journey The program version information of sequence, more new file system neutron controller, it is no longer necessary to individually upgrade the journey of multiple sub-controllers Sequence, the edition upgrading efficiency of sub-controller is improved, reduces the edition upgrading error rate of sub-controller, realize one master and multiple slaves control, Meet practical application needs.
Referring to Fig. 7, Fig. 7 is a kind of schematic block diagram for edition upgrading device that another embodiment of the present invention provides.This reality Applying the edition upgrading device 700 of example includes version reading unit 701, version judging unit 702, edition comparison unit 703, first Edition upgrading unit 704, second edition upgrade unit 705, version updating unit 706, version memory cell 707 and stopping upgrading Unit 708.
Wherein, edition comparison unit 703 includes hardware version comparing unit 7031 and software version comparing unit 7032.
Version reading unit 701, version judging unit 702, edition comparison unit 703 and first version upgrade unit 704 Referring specifically to version reading unit 601, version judging unit 602, edition comparison unit in embodiment corresponding to Fig. 6 and Fig. 6 603 and the associated description of first version upgrade unit 604, do not repeat herein.
Further, the target version information includes target hardware version and target software release, the version information Including hardware version and software version.
Hardware version comparing unit 7031 in the edition comparison unit 703, for the target hardware version Whether matched with the hardware version.
Software version comparing unit 7032, if for comparing to obtain the target hardware version and the hardware version Match somebody with somebody, then judge whether the rank of the target software release is less than the rank of the software version.
The first version upgrade unit 704 is additionally operable to if it is determined that the rank of the target software release is less than the software The rank of version, then application program is called to carry out edition upgrading to the target sub-controller according to the software version.
Further, second edition upgrade unit 705, for if it is determined that the target version information is illegal, then according to institute State version information and edition upgrading is carried out to the target sub-controller.
Further, version updating unit 706, for receiving the instruction of sub-controller version updating, according to the instruction more The new version information.
Version memory cell 707, for the version information after renewal to be stored in into predeterminated position.
Further, upgrade unit 708 is stopped, if for comparing to obtain the target hardware version and the hardware version Mismatch, then stop carrying out the target sub-controller edition upgrading, generation upgrading failure information.
It is evidenced from the above discussion that the present embodiment after activation system, is driven by Loading Control, target sub-controller is read Target version information;Judge whether the target version information is legal;If it is determined that the target version information is legal, then by the target Version information is compared with the version information of the sub-controller to prestore;According to target version information and the ratio of above-mentioned version information Relatively result carries out edition upgrading to target sub-controller, can pass through the upgrading text for the sub-controller being pre-stored in main SOC programs Part carries out edition upgrading to multiple sub-controllers.When version needs upgrading, it need to only upgrade main SOC program, more new file system The program version information of middle sub-controller, it is no longer necessary to individually upgrade the program of multiple sub-controllers, improve sub-controller Edition upgrading efficiency, reduce the edition upgrading error rate of sub-controller, realize one master and multiple slaves control, meet practical application need Will.
Referring to Fig. 8, Fig. 8 is the schematic block diagram of edition upgrading terminal device provided in an embodiment of the present invention.As shown in Figure 8 Edition upgrading terminal device 800 in the present embodiment can include:One or more processors 801, one or more inputs are set Standby 802, one or more then output equipment 803 and one or more memories 804.Above-mentioned processor 801, input equipment 802, Then output equipment 803 and memory 804 complete mutual communication by communication bus 805.Memory 804, which is used to store, to be calculated Machine program, the computer program include programmed instruction.Processor 801 is used for the programmed instruction for performing the storage of memory 804.Its In, processor 801 is arranged to call described program instruction to perform following operate:
Processor 801 is used for after activation system, Loading Control driving, reads the target version letter of target sub-controller Breath.
Processor 801 is additionally operable to judge whether the target version information is legal.
Processor 801 is additionally operable to if it is determined that the target version information is legal, then by the target version information with prestoring The version information of sub-controller be compared.
Processor 801 is additionally operable to according to the comparative result of the target version information and the version information to the target Sub-controller carries out edition upgrading.
The target version information includes target hardware version and target software release, and the version information includes hardware version This and software version, processor 801 are specifically used for:The version information of sub-controller of the target version information with prestoring is entered Row relatively includes:
Compare whether the target hardware version matches with the hardware version;
Matched if comparing to obtain the target hardware version with the hardware version, judge the target software release Whether rank is less than the rank of the software version.
Processor 801 is specifically used for:According to the comparative result of the target version information and the version information to described Target sub-controller, which carries out edition upgrading, to be included:
If it is determined that the rank of the target software release is less than the rank of the software version, then according to the software version Application program is called to carry out edition upgrading to the target sub-controller.
Processor 801 is additionally operable to:If it is determined that the target version information is illegal, then according to the version information to the mesh Mark sub-controller and carry out edition upgrading.
Processor 801 is additionally operable to:The instruction of sub-controller version updating is received, updating the version according to the instruction believes Breath;Version information after renewal is stored in predeterminated position.
Processor 801 is additionally operable to:If comparing to obtain the target hardware version and hardware version mismatch, stop Edition upgrading, generation upgrading failure information are carried out to the target sub-controller.
Such scheme, edition upgrading terminal device are driven after activation system by Loading Control, read target son control The target version information of device;Judge whether the target version information is legal;If it is determined that the target version information is legal, then by the mesh Version information is marked compared with the version information of the sub-controller to prestore;According to target version information and above-mentioned version information Comparative result carries out edition upgrading to target sub-controller, can pass through the upgrading for the sub-controller being pre-stored in main SOC programs File carries out edition upgrading to multiple sub-controllers.When version needs upgrading, it need to only upgrade main SOC program, more new file system The program version information of sub-controller in system, it is no longer necessary to individually upgrade the program of multiple sub-controllers, improve son control The edition upgrading efficiency of device, the edition upgrading error rate of sub-controller is reduced, realizes one master and multiple slaves control, meets practical application need Will.
It should be appreciated that in embodiments of the present invention, alleged processor 801 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 802 can include Trackpad, fingerprint adopt sensor (finger print information that is used to gathering user and fingerprint Directional information), microphone etc., output equipment 803 can include display (LCD etc.), loudspeaker etc..
The memory 804 can include read-only storage and random access memory, and to processor 801 provide instruction and Data.The a part of of memory 804 can also include nonvolatile RAM.For example, memory 804 can also be deposited Store up the information of device type.
In the specific implementation, processor 801, input equipment 802, the output equipment 803 described in the embodiment of the present invention can The implementation described in above-described embodiment of alarm clock setting method provided in an embodiment of the present invention is performed, also can perform this hair The implementation of terminal described by bright embodiment, will not be repeated here.
A kind of computer-readable recording medium, the computer-readable storage medium are provided in another embodiment of the invention Matter is stored with computer program, and the computer program includes programmed instruction, and described program instruction is realized when being executed by processor:
After activation system, Loading Control driving, the target version information of reading target sub-controller;
Judge whether the target version information is legal;
If it is determined that the target version information is legal, then by the target version information and the version of the sub-controller to prestore Information is compared;
Version is carried out to the target sub-controller according to the comparative result of the target version information and the version information This upgrading.
Further, the target version information includes target hardware version and target software release, the version information Including hardware version and software version;
By the target version information compared with the version information of the sub-controller to prestore including:
Compare whether the target hardware version matches with the hardware version;
Matched if comparing to obtain the target hardware version with the hardware version, judge the target software release Whether rank is less than the rank of the software version;
Version is carried out to the target sub-controller according to the comparative result of the target version information and the version information This upgrading includes:
If it is determined that the rank of the target software release is less than the rank of the software version, then according to the software version Application program is called to carry out edition upgrading to the target sub-controller.
Further, also realized when described program instruction is executed by processor:
If it is determined that the target version information is illegal, then version is carried out to the target sub-controller according to the version information This upgrading.
Further, also realized when described program instruction is executed by processor:
The instruction of sub-controller version updating is received, the version information is updated according to the instruction;
Version information after renewal is stored in predeterminated position.
Further, also realized when described program instruction is executed by processor:
If comparing to obtain the target hardware version and hardware version mismatch, stop controlling target Device carries out edition upgrading, generation upgrading failure information.
The computer-readable recording medium can be the internal storage unit of the terminal described in foregoing any embodiment, example Such as the hard disk or internal memory of terminal.The computer-readable recording medium can also be the External memory equipment of the terminal, such as The plug-in type hard disk being equipped with the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also be wrapped both Including the internal storage unit of the terminal also includes External memory equipment.The computer-readable recording medium is described for storing Other programs and data needed for computer program and the terminal.The computer-readable recording medium can be also used for temporarily The data that ground storage has been exported or will exported.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially Industry technical staff can realize described function using distinct methods to each specific application, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, it can be passed through Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

  1. A kind of 1. version upgrading method, it is characterised in that including:
    After activation system, Loading Control driving, the target version information of reading target sub-controller;
    Judge whether the target version information is legal;
    If it is determined that the target version information is legal, then by the target version information and the version information of the sub-controller to prestore It is compared;
    Version liter is carried out to the target sub-controller according to the comparative result of the target version information and the version information Level.
  2. 2. version upgrading method as claimed in claim 1, it is characterised in that the target version information includes target hardware version This and target software release, the version information include hardware version and software version;
    By the target version information compared with the version information of the sub-controller to prestore including:
    Compare whether the target hardware version matches with the hardware version;
    Matched if comparing to obtain the target hardware version with the hardware version, judge the rank of the target software release Whether the rank of the software version is less than;
    Version liter is carried out to the target sub-controller according to the comparative result of the target version information and the version information Level includes:
    If it is determined that the rank of the target software release is less than the rank of the software version, then called according to the software version Application program carries out edition upgrading to the target sub-controller.
  3. 3. version upgrading method as claimed in claim 1, it is characterised in that also include:
    If it is determined that the target version information is illegal, then version liter is carried out to the target sub-controller according to the version information Level.
  4. 4. version upgrading method as claimed in claim 1, it is characterised in that also include:
    The instruction of sub-controller version updating is received, the version information is updated according to the instruction;
    Version information after renewal is stored in predeterminated position.
  5. 5. version upgrading method as claimed in claim 2, it is characterised in that also include:
    If comparing to obtain the target hardware version and hardware version mismatch, stopping is entered to the target sub-controller Row edition upgrading, generation upgrading failure information.
  6. A kind of 6. edition upgrading device, it is characterised in that including:
    Version reading unit, for after activation system, Loading Control driving, the target version for reading target sub-controller to be believed Breath;
    Version judging unit, for judging whether the target version information is legal;
    Edition comparison unit, for if it is determined that the target version information is legal, then by the target version information and prestore The version information of sub-controller is compared;
    First version upgrade unit, for according to the comparative result of the target version information and the version information to the mesh Mark sub-controller and carry out edition upgrading.
  7. 7. edition upgrading device as claimed in claim 6, it is characterised in that the target version information includes target hardware version This and target software release, the version information include hardware version and software version;
    The edition comparison unit includes:
    Hardware version comparing unit, whether matched with the hardware version for the target hardware version;
    Software version comparing unit, if being matched for comparing to obtain the target hardware version with the hardware version, judge Whether the rank of the target software release is less than the rank of the software version;
    The first version upgrade unit is additionally operable to if it is determined that the rank of the target software release is less than the software version Rank, then application program is called to carry out edition upgrading to the target sub-controller according to the software version.
  8. 8. edition upgrading device as claimed in claim 6, it is characterised in that also include:
    Second edition upgrade unit, for if it is determined that the target version information is illegal, then according to the version information to described Target sub-controller carries out edition upgrading.
  9. 9. a kind of edition upgrading terminal device, including memory, processor and it is stored in the memory and can be described The computer program run on processor, it is characterised in that realize such as right described in the computing device during computer program It is required that the step of any one of 1 to 5 version upgrading method.
  10. 10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In the step of realization version upgrading method as described in any one of claim 1 to 5 when the computer program is executed by processor Suddenly.
CN201710786052.XA 2017-09-04 2017-09-04 Version upgrading method and terminal equipment Active CN107608693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710786052.XA CN107608693B (en) 2017-09-04 2017-09-04 Version upgrading method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710786052.XA CN107608693B (en) 2017-09-04 2017-09-04 Version upgrading method and terminal equipment

Publications (2)

Publication Number Publication Date
CN107608693A true CN107608693A (en) 2018-01-19
CN107608693B CN107608693B (en) 2020-09-04

Family

ID=61055727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710786052.XA Active CN107608693B (en) 2017-09-04 2017-09-04 Version upgrading method and terminal equipment

Country Status (1)

Country Link
CN (1) CN107608693B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415863A (en) * 2018-02-01 2018-08-17 广东欧珀移动通信有限公司 The hardware compatibility implementation method and Related product of electronic device
CN109343877A (en) * 2018-08-31 2019-02-15 中国电力科学研究院有限公司 A kind of method and system for the upgrading of acquisition terminal remote software upgrade package
CN109343886A (en) * 2018-12-12 2019-02-15 广东浪潮大数据研究有限公司 A kind of method, apparatus and equipment of upgrading BIOS
CN109491681A (en) * 2018-10-19 2019-03-19 北京经纬恒润科技有限公司 The upgrade method and device of MCU in a kind of automobile
CN109885337A (en) * 2019-03-06 2019-06-14 苏州浪潮智能科技有限公司 A kind of system version upgrade method, device, equipment and readable storage medium storing program for executing
CN109885332A (en) * 2019-02-27 2019-06-14 深圳创维-Rgb电子有限公司 Image quality chip software upgrade method, device, display equipment and storage medium
CN110647334A (en) * 2018-06-27 2020-01-03 视联动力信息技术股份有限公司 Method and device for upgrading conference control software
CN111078258A (en) * 2019-12-20 2020-04-28 深圳前海微众银行股份有限公司 Version upgrading method and device
CN111381810A (en) * 2018-12-28 2020-07-07 北京微播视界科技有限公司 Processing method of processing class Handler of terminal equipment and electronic equipment
CN113641423A (en) * 2021-08-31 2021-11-12 青岛海信传媒网络技术有限公司 Display device and system starting method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929647A (en) * 2011-08-12 2013-02-13 杭州海康威视数字技术股份有限公司 Method and device for integrally upgrading mainboard and front panel in digital video recorder
CN106293824A (en) * 2016-08-04 2017-01-04 青岛海信电器股份有限公司 A kind of from the method and device processing chip upgrade
CN107071570A (en) * 2017-02-13 2017-08-18 青岛海信宽带多媒体技术有限公司 A kind of set top box upgrading method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929647A (en) * 2011-08-12 2013-02-13 杭州海康威视数字技术股份有限公司 Method and device for integrally upgrading mainboard and front panel in digital video recorder
CN106293824A (en) * 2016-08-04 2017-01-04 青岛海信电器股份有限公司 A kind of from the method and device processing chip upgrade
CN107071570A (en) * 2017-02-13 2017-08-18 青岛海信宽带多媒体技术有限公司 A kind of set top box upgrading method and device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415863A (en) * 2018-02-01 2018-08-17 广东欧珀移动通信有限公司 The hardware compatibility implementation method and Related product of electronic device
CN110647334B (en) * 2018-06-27 2024-03-08 视联动力信息技术股份有限公司 Conference control software upgrading method and device
CN110647334A (en) * 2018-06-27 2020-01-03 视联动力信息技术股份有限公司 Method and device for upgrading conference control software
CN109343877A (en) * 2018-08-31 2019-02-15 中国电力科学研究院有限公司 A kind of method and system for the upgrading of acquisition terminal remote software upgrade package
CN109491681A (en) * 2018-10-19 2019-03-19 北京经纬恒润科技有限公司 The upgrade method and device of MCU in a kind of automobile
CN109491681B (en) * 2018-10-19 2022-03-01 北京经纬恒润科技股份有限公司 Method and device for upgrading MCU in automobile
CN109343886A (en) * 2018-12-12 2019-02-15 广东浪潮大数据研究有限公司 A kind of method, apparatus and equipment of upgrading BIOS
CN109343886B (en) * 2018-12-12 2022-04-29 广东浪潮大数据研究有限公司 Method, device and equipment for upgrading BIOS
CN111381810A (en) * 2018-12-28 2020-07-07 北京微播视界科技有限公司 Processing method of processing class Handler of terminal equipment and electronic equipment
CN111381810B (en) * 2018-12-28 2021-06-18 北京微播视界科技有限公司 Processing method of processing class Handler of terminal equipment and electronic equipment
CN109885332A (en) * 2019-02-27 2019-06-14 深圳创维-Rgb电子有限公司 Image quality chip software upgrade method, device, display equipment and storage medium
CN109885337A (en) * 2019-03-06 2019-06-14 苏州浪潮智能科技有限公司 A kind of system version upgrade method, device, equipment and readable storage medium storing program for executing
CN111078258A (en) * 2019-12-20 2020-04-28 深圳前海微众银行股份有限公司 Version upgrading method and device
CN111078258B (en) * 2019-12-20 2023-05-12 深圳前海微众银行股份有限公司 Version upgrading method and device
CN113641423A (en) * 2021-08-31 2021-11-12 青岛海信传媒网络技术有限公司 Display device and system starting method
CN113641423B (en) * 2021-08-31 2023-07-07 青岛海信传媒网络技术有限公司 Display device and system starting method

Also Published As

Publication number Publication date
CN107608693B (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN107608693A (en) version upgrading method and terminal device
CN104461858B (en) software compatibility pre-testing method and system
CN107357718A (en) One kind structure method of testing and device
CN107844189A (en) A kind of method, system, terminal and computer-readable recording medium for reducing blank screen power consumption
EP4002121A1 (en) Middleware interface and middleware interface generator
CN103136018A (en) Setting method and setting system of basic input/ output system (BIOS)
CN105930208A (en) Thread scheduling method and thread scheduling apparatus
CN107390969B (en) A kind of method and terminal controlling suspended window
CN108038112A (en) Document handling method, mobile terminal and computer-readable recording medium
CN108363566A (en) File configuration method, intelligent terminal and storage medium in a kind of project development process
CN107656750A (en) Update of plug-in method and device
US9626251B2 (en) Undo configuration transactional compensation
CN109240733A (en) A kind of method and terminal updating advertisement SDK based on Android system
CN110209465A (en) Virtual machine cross-platform migration method, device and electronic equipment
CN106648287A (en) Method and terminal for replacing application icon
CN107506200A (en) A kind of screen content switching method, terminal and computer-readable recording medium
CN107506494A (en) Document handling method, mobile terminal and computer-readable recording medium
CN114153477A (en) Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card
WO2019139740A1 (en) Extensible input stack for processing input device data
CN109213662A (en) A kind of user's touch-control behavioral data collection method and terminal
CN108156310A (en) A kind of method and system of finger prints processing, terminal device and computer-readable medium
CN106201639A (en) A kind of replacing application drawing calibration method and terminal
WO2019139738A1 (en) Extensible input stack for processing input device data
CN107292142A (en) Business operation processing method, business operation processing unit and service terminal
CN114035786A (en) Dependency-based micro-front-end compatible migration method and system

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