Summary of the invention
The embodiment of the present invention provides a kind of remotely updating program method and server, is intended to solve the terminal equipment of existing car networking and cannot supports the dynamic load of application software and system to control firmware upgrade, recalls the problem that upgrade cost is high.
On the one hand, provide a kind of remotely updating program method, described method comprises:
Server pushes to each car-mounted terminal by the upgrade information of application or system in real time;
The upgrade information of application or system on described car-mounted terminal automatic acquisition server;
Described car-mounted terminal judges that version that the upgrade information of described application or system carries is whether higher than the current version of described application or system;
If the version that described upgrade information carries is higher than current version, described car-mounted terminal obtains the AKU of described application or system by air interface, and by the integrality of AKU described in MD5 verification, then the application of described car-mounted terminal or system are upgraded, described AKU comprises OTA bag, FOTA bag.
On the other hand, provide a kind of remotely updating program server, described server comprises:
Version push unit, for pushing to each car-mounted terminal by the upgrade information of application or system in real time;
Upgrading unit, if the version carrying for described upgrade information is higher than current version, AKU by air interface with described application or system, and by the integrality of AKU described in MD5 verification, then the application of described car-mounted terminal or system are upgraded, described AKU comprises OTA bag, FOTA bag.
In the embodiment of the present invention, server pushes to each car-mounted terminal by the upgrade information of application or system in real time; The upgrade information of application or system on described car-mounted terminal automatic acquisition server; Described car-mounted terminal judges that version that the upgrade information of described application or system carries is whether higher than the current version of described application or system; If the version that described upgrade information carries is higher than current version, described car-mounted terminal obtains the AKU of described application or system by air interface, and by the integrality of AKU described in MD5 verification, then the application of described car-mounted terminal or system are upgraded, described AKU comprises OTA bag, FOTA bag, the present invention, pass through air interface, realized the system of car-mounted terminal or the auto-update of application, without recalling, upgrade cost is low.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, server pushes to each car-mounted terminal by the upgrade information of application or system in real time; The upgrade information of application or system on described car-mounted terminal automatic acquisition server; Described car-mounted terminal judges that version that the upgrade information of described application or system carries is whether higher than the current version of described application or system; If the version that described upgrade information carries is higher than current version, described car-mounted terminal obtains the AKU of described application or system by air interface, and by the integrality of AKU described in MD5 verification, then the application of described car-mounted terminal or system are upgraded, described AKU comprises OTA bag, FOTA bag.
Below in conjunction with specific embodiment, realization of the present invention is described in detail:
Embodiment mono-
Fig. 1 shows the realization flow of the remotely updating program method that the embodiment of the present invention one provides, and details are as follows:
It should be noted that, this method is applicable to the terminal staging under server wireless network mode, is particularly useful for the upgrading of car-mounted terminal.Described car-mounted terminal is the headend equipment of vehicle monitoring management system, generally be arranged on reconditely in various vehicles, vehicle-mounted terminal equipment is mainly comprised of various external equipments such as Vehicular video server, LCD touch-screen, external video camera, talking handle, car alarms.
In step S101, server pushes to each car-mounted terminal by the upgrade information of application or system in real time.
In the present embodiment, the upgrade information of described application or system refers to the version of the up-to-date AKU of car-mounted terminal of preserving on server.Described propelling movement is a kind of information publishing technology, server is used and pushes Push mode, when server end has upgraded AKU, the upgrade information of more recent application or system is pushed on car-mounted terminal, like this, car-mounted terminal just can receive the upgrade information of application or system automatically.
As a preferred version, this method also comprises:
When described server receives described AKU, according to the version of described AKU, generate the upgrade information of described application or system, described upgrade information carries the version of described AKU.
In the present embodiment, server is according to receiving up-to-date AKU, the upgrade information of application or system described in real-time update.
In step S102, the upgrade information of application or system on described car-mounted terminal automatic acquisition server.
In the present embodiment, described car-mounted terminal obtains the application of server push or the upgrade information of system.
In step S103, described car-mounted terminal judges that version that the upgrade information of described application or system carries is whether higher than the current version of described application or system.
In the present embodiment, described car-mounted terminal judges that version that the upgrade information of described application or system carries, whether higher than the current version of described application or system, if so, performs step S104, if not, waits for pushed information next time.
In step S104, if the version that described upgrade information carries is higher than current version, described car-mounted terminal obtains the AKU of described application or system by air interface, and by the integrality of AKU described in MD5 verification, then the application of described car-mounted terminal or system are upgraded, described AKU comprises OTA bag, FOTA bag.
In the present embodiment, described AKU comprises OTA bag, FOTA bag.If the version that described upgrade information carries is higher than current version, described car-mounted terminal obtains the AKU of described application or system by air interface, and by the integrality of AKU described in MD5 verification, then the application of described car-mounted terminal or system are upgraded.
The present embodiment, can by air interface, realize the system of car-mounted terminal or the auto-update of application by OTA and FOTA technology, and for production link, factory only need download basic version, reduces many versions and causes production complexity; For distributors, can reduce the labor workload of after-sale service; For terminal client, can automatic realizing system and software upgrading.
Embodiment bis-
Fig. 2 shows the concrete structure block diagram of the server that the embodiment of the present invention two provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.In the present embodiment, this server 1 comprises: version updating unit 11, version push unit 12 and upgrading unit 13.
Wherein, version push unit 12, for pushing to each car-mounted terminal by the upgrade information of application or system in real time;
Upgrading unit 13, if the version carrying for described upgrade information is higher than current version, AKU by air interface with described application or system, and by the integrality of AKU described in MD5 verification, then the application of described car-mounted terminal or system are upgraded, described AKU comprises OTA bag, FOTA bag.
Wherein, upgrading unit also has dynamic equalization framework, avoids terminal to concentrate on network peak period upgrading, causes update time very long and affect user's experience.
Further, described server 1 also comprises:
Version updating unit 11, when receiving described AKU, according to the version of described AKU, generates the upgrade information of described application or system, and described upgrade information carries the version of described AKU.
The server that the embodiment of the present invention provides can be applied in the embodiment of the method one of aforementioned correspondence, and details, referring to the description of above-described embodiment one, do not repeat them here.
It should be noted that in said system embodiment, included unit is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also, just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realizing in the various embodiments described above method is to come the hardware that instruction is relevant to complete by program, corresponding program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk or CD etc.The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.