Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of onboard system method for upgrading software, onboard system and software server, the problem that during for solving that in prior art, onboard system software is downloaded by OTA, downloading flow used very large download time used is very long.
For achieving the above object and other relevant objects, the invention provides a kind of method for upgrading software of onboard system, the method for upgrading software of described onboard system comprises: software upgrading solicited message is sent to software server by onboard system, and described software upgrading solicited message comprises current software version information; The Current software bag that described software server is corresponding according to described current software version acquisition of information, generates a differentiation AKU according to described Current software bag and upgrade software bag, described differentiation AKU is sent to described onboard system; Described onboard system receives described differentiation AKU and verifies described differentiation AKU, after being proved to be successful, to upgrade described software according to described differentiation AKU.
Alternatively, the specific implementation of described differentiation AKU checking is comprised: the described differentiation AKU that described software server generates also comprises a signature adopting the signature algorithm of setting to generate, and described onboard system adopts the signature of signature verification algorithm to differentiation AKU of setting to verify.
Alternatively, the software of described onboard system comprises T-Box related software.
Alternatively, described onboard system and described software server are by OTA technical communication.
Alternatively, described OTA technology comprises 3G or the 4G network communications technology.
Alternatively, described software server manages the software of described onboard system by revisions manager.
The present invention also provides a kind of onboard system, described onboard system comprises Software upgrade module, described Software upgrade module comprises: software upgrading request unit, for onboard system, software upgrading solicited message is sent to software server, described software upgrading solicited message comprises current software version information; Software upgrade package acquiring unit, for obtaining the differentiation AKU that described software server generates; Software upgrade package processing unit, for described software of upgrading according to the described differentiation AKU obtained.
Alternatively, the specific implementation obtaining the differentiation AKU that described software server generates comprises: adopt setting signature verification algorithm to carry out signature verification to the differentiation AKU that the described software server received generates, obtain the differentiation AKU after being proved to be successful.
Alternatively, described software comprises T-Box related software.
The present invention also provides a kind of software server, and described software server comprises: upgrade request receiver module, and for receiving the software upgrading solicited message of onboard system, described software upgrading solicited message comprises current software version information; AKU generation module, for the Current software bag corresponding according to described current software version acquisition of information, and generates a differentiation AKU according to described Current software bag and upgrade software bag; AKU sending module, for sending to described onboard system by described differentiation AKU.
Alternatively, the described differentiation AKU that described AKU generation module generates also comprises a signature adopting the signature algorithm of setting to generate.
Alternatively, described software server manages the software of described onboard system by revisions manager.
As mentioned above, a kind of onboard system method for upgrading software of the present invention, onboard system and software server, there is following beneficial effect: the upgrade requirement that can meet all vehicle-mounted each different editions of software, simultaneously, automatically generate differentiation AKU for different editions, save downloading flow and accelerate download time.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
It should be noted that, the diagram provided in the present embodiment only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
The invention provides a kind of method for upgrading software of onboard system.The method for upgrading software of described onboard system when using OTA to download AKU, can be used for saving downloading flow and accelerating download time.OTA (Over-the-Air) refers to wireless download technology, and be the technology of by wireless network, related data and application being carried out to telemanagement, described OTA technology can comprise 3G/4G technology.The application of OTA technology, not only can provide voice-and-data service, and new business can also be provided to download.In one embodiment, as shown in Figure 1, the method for upgrading software of described onboard system comprises:
Step S1, software upgrading solicited message is sent to software server by onboard system, and described software upgrading solicited message comprises current software version information.In one embodiment, the software of described onboard system comprises T-Box related software.Described onboard system and described software server are by OTA technical communication.Described OTA technology comprises 3G or the 4G network communications technology.In one embodiment, described software upgrading solicited message can also comprise other information, such as, can comprise the version of specifying AKU.When described software upgrading solicited message comprises appointment AKU version, described upgrade software bag is the software package of specifying AKU version.
Step S2, the Current software bag that described software server is corresponding according to described current software version acquisition of information, generates a differentiation AKU according to described Current software bag and upgrade software bag, described differentiation AKU is sent to described onboard system.In one embodiment, described software server manages the software of described onboard system by revisions manager.Described revisions manager comprises GITLAB etc.In GITLAB, by all project source files (comprising various file type) in a characteristic way stored in database.The member of development group directly can not revise the file in this database, but carry out debugging and revising under by this revisions manager the source program of this project or the source program of sub-project being copied to the working directory of each member oneself, then amended item file is submitted to GITLAB as Checkin, comprehensively upgraded by it.GITLAB also supports the sharing rapidly and efficiently of file between multiple project.When certain member adds file in GITLAB, this file will be backed up in database, so that all members can share this file.And each member will be recorded in database the amendment that all item files are done, thus make the recovery of amendment and cancel at any time, any position all becomes possibility.The member of group may obtain the latest edition of this project, modifies to it, and preserves a new version.
Step S3, described onboard system receives described differentiation AKU and verifies described differentiation AKU, after being proved to be successful, to upgrade described software according to described differentiation AKU.In one embodiment, the specific implementation of described differentiation AKU checking is comprised: the described differentiation AKU that described software server generates also comprises a signature adopting the signature algorithm of setting to generate, and described onboard system adopts the signature of signature verification algorithm to differentiation AKU of setting to verify.
The present invention also provides a kind of onboard system.Described onboard system can apply the method for upgrading software of onboard system as above.In one embodiment, as shown in Figure 2, described onboard system 1 comprises Software upgrade module 11, and described Software upgrade module 11 comprises software upgrading request unit 111, software upgrade package acquiring unit 112 and software upgrade package processing unit 113.Wherein:
Software upgrading solicited message is sent to software server for onboard system 1 by software upgrading request unit 111, and described software upgrading solicited message comprises current software version information.Described software comprises T-Box related software.
Software upgrade package acquiring unit 112, for obtaining the differentiation AKU that described software server generates.The specific implementation obtaining the differentiation AKU that described software server generates comprises: adopt setting signature verification algorithm to carry out signature verification to the differentiation AKU that the described software server received generates, obtain the differentiation AKU after being proved to be successful.Described signature verification algorithm is corresponding with the signature algorithm in software server, is respectively used to carry out signing to differentiation AKU and verify.
Software upgrade package processing unit 113 is connected with software upgrade package acquiring unit 112, for described software of upgrading according to the described differentiation AKU obtained.
The present invention also provides a kind of software server.As shown in Figure 2, described software server 2 comprises upgrade request receiver module 21, AKU generation module 22 and AKU sending module 23.Wherein:
Upgrade request receiver module 21 is for receiving the software upgrading solicited message of onboard system, and described software upgrading solicited message comprises current software version information.Described software upgrading solicited message can also comprise other information, such as, can comprise the version of specifying AKU.When described software upgrading solicited message comprises appointment AKU version, described upgrade software bag is the software package of specifying AKU version.
AKU generation module 22 is connected with upgrade request receiver module 21, for the Current software bag corresponding according to described current software version acquisition of information, and generates a differentiation AKU according to described Current software bag and upgrade software bag.In one embodiment, the described differentiation AKU that described AKU generation module 22 generates also comprises a signature adopting the signature algorithm of setting to generate.
AKU sending module 23 is connected with AKU generation module 22, for described differentiation AKU is sent to described onboard system.Particularly, the described differentiation AKU that AKU generation module 22 generates by AKU sending module 23 sends to described onboard system.
In one embodiment, described software server 2 manages the software of described onboard system by revisions manager.Described revisions manager comprises GITLAB etc.In GITLAB, by all project source files (comprising various file type) in a characteristic way stored in database.The member of development group directly can not revise the file in this database, but carry out debugging and revising under by this revisions manager the source program of this project or the source program of sub-project being copied to the working directory of each member oneself, then amended item file is submitted to GITLAB as Checkin, comprehensively upgraded by it.GITLAB also supports the sharing rapidly and efficiently of file between multiple project.When certain member adds file in GITLAB, this file will be backed up in database, so that all members can share this file.And each member will be recorded in database the amendment that all item files are done, thus make the recovery of amendment and cancel at any time, any position all becomes possibility.The member of group may obtain the latest edition of this project, modifies to it, and preserves a new version.
In one embodiment, as shown in Figure 3, described software server and onboard system pass through OTA technical communication, described software server called after OTA server, described onboard system, for mobile unit T-Box, illustrates that T-Box completes the upgrading of T-Box related software.T-Box is very important parts in current interconnected automobile mounted system, and its major function is realize automobile and TSP interconnected.The escalation process of described T-Box related software comprises: software upgrading solicited message is sent to software server (OTA server) by 1, T-Box, and described software upgrading solicited message comprises T-Box current software version information.2, software server receives described software upgrading solicited message, obtains current software version information, determines upgraded version information (being defaulted as latest edition).3, generate differentiation AKU according to current software version information and upgraded version information and sign.4, push described differentiation AKU by 3G/4G network (belonging to OTA technology).5, T-Box verifies the differentiation AKU received, and completes upgrading after being proved to be successful.
In one embodiment, the generative process of described differentiation AKU comprises: after OTA server receives T-Box upgrade request, an interim branch is created from trunk based on version number's (current software version) that OTA server is uploaded according to current T-Box, and then up-to-date for trunk version (acquiescence upgraded version, the software upgrade package of corresponding acquiescence) Releasecheckout out and be submitted to this interim branch.OTA server complete submit to after data warehouse naturally just just create the difference bag of the version number that latest edition number is uploaded with T-Box in interim branch.OTA server just directly creates the differentiation AKU that this T-Box upgrading needs after interim branch extracts the difference bag of this data warehouse generation.Such as, current software version is 1.0, and acquiescence upgraded version is 2.0.Then 1.OTA server creates 1.0 interim branches from data warehouse trunk; 2.OTA server Checkout2.0 is to local directory; 3.OTA server submits to local directory file to 1.0 interim branches; 4.OTA server extracts data warehouse difference bag from 1.0 interim branches; Data warehouse difference bag production T-Box1.0 is upgraded to the differentiation AKU required for 2.0 by 5.OTA server, is pushed to T-Box and completes last upgrading;
In sum, a kind of onboard system method for upgrading software of the present invention, onboard system and software server can meet the upgrade requirement of all vehicle-mounted each different editions of software, meanwhile, automatically generate differentiation AKU for different editions, save downloading flow and accelerate download time.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.