CN113377410A - Vehicle machine system, upgrading method, readable storage medium and computer program product - Google Patents
Vehicle machine system, upgrading method, readable storage medium and computer program product Download PDFInfo
- Publication number
- CN113377410A CN113377410A CN202110644971.XA CN202110644971A CN113377410A CN 113377410 A CN113377410 A CN 113377410A CN 202110644971 A CN202110644971 A CN 202110644971A CN 113377410 A CN113377410 A CN 113377410A
- Authority
- CN
- China
- Prior art keywords
- kernel
- upgrading
- central control
- control system
- air
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000004590 computer program Methods 0.000 title claims abstract description 17
- 238000011084 recovery Methods 0.000 claims abstract description 27
- 230000008569 process Effects 0.000 claims description 24
- 238000004891 communication Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a vehicle machine system, an upgrading method, a readable storage medium and a computer program product. The method comprises the following steps: acquiring an over-the-air download upgrade differential packet corresponding to a central control system of a vehicle machine system; judging whether the kernel of the vehicle machine system needs to be upgraded or not according to the over-the-air upgrading differential packet; when the kernel does not need to be upgraded, controlling the central control system to stop running, and burning the over-the-air download upgrade differential packet after the central control system stops running; when the kernel needs to be upgraded, restarting the kernel to enter a recovery mode, and burning the over-the-air upgrade differential packet after the kernel is recovered; and upgrading the central control system according to the burnt over-the-air upgrading differential packet. The method of the invention improves the upgrading flexibility of the central control system.
Description
Technical Field
The present invention relates to software upgrading technologies, and in particular, to a vehicle system, an upgrading method, a readable storage medium, and a computer program product.
Background
Upgrading of instrumentation systems within a vehicle in a conventional automobile requires a return to factory operation.
Compared with the upgrading of the instrument system, the central control system of the vehicle machine can already support an Over the air technology (OTA) upgrading scheme. In the OTA upgrading process of the central control system, the OTA upgrading differential packet is downloaded firstly, then the kernel is restarted to enter a recovery mode, then the OTA differential packet is burned, and after the burning is finished, the kernel is restarted again to enter a normal mode to finish the upgrading of the central control system. Therefore, the kernel is restarted twice directly in the OTA upgrading process of the central control system, and the upgrading mode of the central control system is not flexible.
Disclosure of Invention
The invention provides a vehicle machine system, an upgrading method, a readable storage medium and a computer program product, which are used for solving the problem that the upgrading mode of a central control system is not flexible.
In one aspect, the present invention provides a method for upgrading a car machine system, including:
acquiring an over-the-air download upgrade differential packet corresponding to a central control system of a vehicle machine system;
judging whether the kernel of the vehicle machine system needs to be upgraded or not according to the over-the-air upgrading differential packet;
when the kernel does not need to be upgraded, controlling the central control system to stop running, and burning the over-the-air download upgrade differential packet after the central control system stops running;
when the kernel needs to be upgraded, restarting the kernel to enter a recovery mode, and burning the over-the-air upgrade differential packet after the kernel is recovered;
and upgrading the central control system according to the burnt over-the-air upgrading differential packet.
In an embodiment, the upgrading the central control system according to the burned over-the-air upgrade difference packet includes:
judging whether the kernel needs to be restarted or not according to the over-the-air upgrading differential packet;
when the kernel does not need to be restarted, upgrading the central control system according to the burnt over-the-air download upgrading differential packet;
and when the kernel needs to be restarted, restarting the kernel, and upgrading the central control system according to the burnt over-the-air upgrading differential packet when the kernel enters a normal mode.
In an embodiment, the step of determining whether the kernel of the central control system needs to be restarted according to the over-the-air upgrade differential packet includes:
analyzing the over-the-air upgrade differential packet;
and judging whether the analyzed over-the-air download upgrading difference packet contains a first preset file, wherein when the analyzed over-the-air download upgrading difference packet contains the first preset file, judging that the kernel needs to be restarted.
In an embodiment, the step of restarting the kernel and upgrading the central control system according to the burned over-the-air upgrade differential packet when the kernel enters the normal mode includes:
restarting the inner core by hot restart;
after the kernel is restarted, controlling a bootstrap program corresponding to the central control system to copy the first preset file and controlling the kernel to load a root file system;
and after the kernel loads a root file system, the kernel enters a normal mode, and the central control system is upgraded according to the burnt over-the-air upgrade difference packet.
In an embodiment, the in-vehicle system further includes an instrument system, and after the step of restarting the kernel to enter a normal mode to upgrade the central control system according to the burned over-the-air upgrade differential packet, the method further includes:
and starting a first process corresponding to a container of the meter system so as to operate the meter system.
In an embodiment, the step of determining whether the kernel of the in-vehicle machine system needs to be upgraded according to the over-the-air upgrade differential packet includes:
analyzing the over-the-air upgrade differential packet;
and judging whether the analyzed over-the-air download upgrading difference packet contains a second preset file, wherein when the analyzed over-the-air download upgrading difference packet contains the second preset file, the kernel is judged to need to be upgraded.
In one embodiment, the step of restarting the kernel to enter the recovery mode includes:
restarting the inner core by hot restart;
after the kernel is restarted, controlling a bootstrap program corresponding to the central control system to copy the second preset file and controlling the kernel to load a root file system;
and after the kernel loads the root file system, the kernel enters a recovery mode, wherein when the kernel enters the recovery mode, the instrument system of the vehicle machine system cannot run.
In an embodiment, when the over-the-air upgrade differential packet is burned after the central control system stops operating, the step of upgrading the central control system according to the burned over-the-air upgrade differential packet includes:
and unloading a first kernel driving module in the central control system, and loading a second kernel driving module in the over-the-air upgrading differential packet to upgrade the central control system.
In one embodiment, the step of controlling the central control system to stop operating includes:
forbidding a second process corresponding to the container of the central control system to control the central control system to stop running;
after the step of upgrading the central control system according to the burned over-the-air upgrade differential packet, the method further comprises the following steps:
and starting the second process to enable the central control system to operate.
In an embodiment, the step of burning the over-the-air upgrade differential packet after the central control system stops operating includes:
and after the central control system stops running, burning the over-the-air upgrade difference packet in a target storage area of a memory of the vehicle machine system, wherein the target storage area is a storage area corresponding to the memory of the central control system.
On the other hand, the invention also provides a vehicle machine system, comprising:
the acquisition module is used for acquiring an over-the-air download upgrade differential packet corresponding to a central control system of the vehicle machine system;
the judging module is used for judging whether the kernel of the vehicle machine system needs to be upgraded or not according to the over-the-air upgrading differential packet;
the control module is used for controlling the central control system to stop running when the kernel does not need to be upgraded, and burning the over-the-air download upgrade differential packet after the central control system stops running;
the restarting module is used for restarting the kernel to enter a recovery mode when the kernel needs to be upgraded, and burning the over-the-air upgrading differential packet after the kernel is recovered;
and the upgrading module is used for upgrading the central control system according to the burnt over-the-air upgrading differential packet.
On the other hand, the invention also provides a vehicle machine system, which comprises: a memory and a processor;
the memory stores computer-executable instructions;
the processor executes the computer execution instruction stored in the memory, so that the processor executes the upgrading method of the car machine system.
In another aspect, the present invention further provides a readable storage medium, where a computer executing instruction is stored, and when the computer executing instruction is executed by a processor, the computer executing instruction is used to implement the method for upgrading the car machine system as described above.
In another aspect, the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for upgrading the car machine system is implemented.
The vehicle machine system, the upgrading method, the readable storage medium and the computer program product provided by the invention have the advantages that the OTA upgrade difference packet corresponding to the central control system of the vehicle machine system is obtained, when the kernel of the vehicle machine system is determined not to need upgrading, the central control system is controlled to stop running, the OTA upgrade difference packet is burnt, and finally the central control system is upgraded based on the burnt OTA upgrade difference packet; and when the kernel is determined to need to be upgraded, restarting the kernel to enter a recovery mode, burning the OTA upgrade difference packet, and finally upgrading the central control system based on the burnt OTA upgrade difference packet. The central control system of the vehicle-mounted machine system is based on whether the kernel needs to be restarted selectively or not in the upgrading process, the kernel is not restarted directly to upgrade the central control system, and the upgrading flexibility of the central control system is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a system architecture diagram of the in-vehicle system of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of an upgrading method of a car machine system according to the present invention;
fig. 3 is a detailed flowchart of step S50 in the second embodiment of the upgrade method for a car machine system according to the present invention;
FIG. 4 is a functional block diagram of the on-board unit system according to the present invention;
fig. 5 is a schematic diagram of a hardware structure of the car machine system according to the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The invention provides an upgrading method of a vehicle machine system, which can be applied to the vehicle machine system shown in figure 1, wherein figure 1 is a system architecture diagram of the vehicle machine system, and the vehicle machine system refers to a vehicle-mounted infotainment product installed in an automobile for short. As shown in fig. 1, the on-board machine system includes a central control system 201, a meter system 202, and a kernel 203, and the central control system 201, the meter system 202, and the kernel 203 are connected by a communication bus 204.
The central control system 201 is a device or software for centrally controlling various devices such as sound, light, and electricity. The kernel 203 is core software of an operating system of the in-vehicle machine system, and the kernel 203 determines the running of a program in the in-vehicle machine system.
Next, the terms related to the present invention are explained:
and (3) recovery mode: the recovery mode is also called recovery mode, and refers to a mode capable of modifying data or a system inside the car machine system, and a new android system can be refreshed in the recovery mode, or an existing car machine system can be backed up or upgraded, or factory settings can be recovered;
and OTA: the technology for realizing remote management of mobile terminal equipment and SIM card data through an air interface of mobile communication can remotely download data;
OTA upgrade difference package: refers to an upgrade package in which the software of the device is upgraded from a current version to a specified version, and the upgrade package is downloaded through an OTA technique.
In the prior art, when the central control system of the car machine system performs OTA upgrade, the kernel needs to be restarted twice, and the kernel can be restarted once, so that the experience of a user can be influenced. In addition, the restarting of the kernel can cause the instrument system of the vehicle-mounted machine system to restart along with the restarting of the kernel, and the instrument system cannot normally operate in the restarting stage of the kernel, which shows that the independent operability of the instrument system is low, and the length of time that the instrument system cannot normally operate in the upgrading process of the central control system is too long; in addition, the central control system directly restarts the kernel twice in the upgrading process, and the upgrading mode of the central control system is low in flexibility.
The invention provides an upgrading method of a vehicle machine system, and aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a first embodiment of an upgrading method of a vehicle-mounted device system according to the present invention, where the upgrading method of the vehicle-mounted device system includes the following steps:
and step S10, acquiring an over-the-air upgrade differential packet corresponding to a central control system of the vehicle machine system.
In this embodiment, the execution subject is a car machine system, and the car machine system is, for example, software and hardware in a car of the car-mounted multimedia infotainment system.
And when detecting the version update of the central control system in the vehicle-mounted machine system, the server sends prompt information of the version update to the vehicle-mounted machine system so as to inform the vehicle-mounted machine system whether the central control system needs to be upgraded or not. And if the central control system needs to be upgraded, the vehicle-mounted computer system feeds back the current version of the central control system to the server, and the server makes an OTA upgrade differential packet based on the current version and the latest version so as to download the OTA upgrade differential packet by the vehicle-mounted computer system.
The in-vehicle system can be upgraded when being idle, namely the in-vehicle system obtains the downloaded OTA upgrade difference package to start upgrading the central control system when being idle. Certainly, the vehicle-mounted computer system can upgrade the central control system at the set upgrading time.
And step S20, judging whether the kernel of the vehicle machine system needs to be upgraded according to the over-the-air upgrading differential packet.
And after the in-vehicle system obtains the OTA upgrading differential packet (over-the-air upgrading differential packet), judging whether the kernel of the in-vehicle system needs to be upgraded or not. Specifically, when the OTA upgrade differential upgrade package is manufactured by the server, the description of the upgrade part in the central control system can be added. For example, if the kernel of the car machine system needs to be upgraded at this time, the description that the kernel needs to be upgraded is added to the upgrade content of the OTA upgrade differential packet, that is, the car machine system can search whether the description content of the kernel upgrade is contained in the OTA upgrade differential packet, and if the description content of the kernel needs to be upgraded, the kernel needs to be upgraded; if not, the kernel does not need to be upgraded.
In addition, the kernel needs to use a specific file for upgrading, and the specific file is defined as a second preset file. The vehicle-mounted system analyzes the OTA upgrade difference packet, judges whether the analyzed OTA upgrade difference packet contains a second preset file, judges that the kernel needs to be upgraded if the analyzed OTA upgrade difference packet contains the second preset file, and judges that the kernel does not need to be upgraded if the analyzed OTA upgrade difference packet does not contain the second preset file. The second preset file may be a kernel image file, or may be another type of file, and the kernel image file may be a recovery. After the kernel is restarted, the vehicle machine system controls a boot program corresponding to the central control system to copy a second preset file, such as a recovery.
And step S30, when the kernel does not need to be upgraded, controlling the central control system to stop running, and burning the over-the-air upgrade differential packet after the central control system stops running.
And step S40, when the kernel needs to be upgraded, restarting the kernel to enter a recovery mode, and burning the over-the-air upgrade differential packet after the kernel is recovered.
And step S50, upgrading the central control system according to the burnt over-the-air upgrading difference packet.
And after the OTA upgrading differential packet is obtained by the vehicle-mounted system, the OTA upgrading differential packet is recorded. And when the kernel is determined not to be upgraded, the vehicle-mounted machine system controls the central control system to stop running, so that the OTA upgrade differential packet is burned under the condition. And after the central control system stops running, burning the air download upgrade difference packets in a target storage area of a memory of the vehicle machine system, wherein the target storage area is a storage area corresponding to the memory of the central control system. The memory can be an EMMC (embedded memory), the EMMC is one type of an embedded memory, namely, the OTA upgrade difference packet is burnt to a partition corresponding to the EMMC, and after the burning is finished, the OTA upgrade difference packet synchronously caches data to a disk for backup.
And restarting the kernel if the kernel needs to be upgraded, entering a recovery mode, wherein in the recovery mode, the instrument system of the vehicle-mounted machine system cannot run, and the vehicle-mounted machine system records the OTA upgrade differential packet in the recovery mode. The kernel is restarted in a hot restart mode, wherein the hot restart mode refers to that all programs needing to be shut down in the vehicle machine system are restarted after being shut down. After the OTA upgrade difference packet is burned, the OTA upgrade difference packet is synchronously cached to a disk of the vehicle system, and backup of the OTA upgrade difference packet is carried out.
After the vehicle-mounted system finishes burning the OTA upgrading differential packet, the central control system can be upgraded based on the OTA upgrading differential packet, so that the central control system is upgraded.
The vehicle machine system can directly control the central control system to run, and can also control the central control system to run by forbidding a second process corresponding to a container of the central control system, namely the vehicle machine system forbids the second process based on the upgrading program to stop running the central control system in an interprocess communication mode. It should be noted that the Container may be a Linux Container (LXC for short), and the kernel may be a Linux kernel, that is, this embodiment is applicable to a scenario where the LXC starts the in-vehicle system of the vehicle and performs OTA upgrade without restarting the Linux kernel.
And the vehicle-mounted machine system starts a second process after the central control system is upgraded based on the burned OTA upgrade difference packet because the central control system stops running, so that the central control system is recovered to run. The central control system of the vehicle-mounted machine system does not need to restart the kernel or start the kernel once in the upgrading process, the restarting frequency of the instrument system is reduced, the normal running time of the instrument system in the upgrading process of the central control system is prolonged, and the independent running performance of the instrument system is improved.
In the technical scheme provided by this embodiment, the in-vehicle system acquires an OTA upgrade differential packet corresponding to the central control system, controls the central control system to stop running when it is determined that the kernel of the in-vehicle system does not need to be upgraded, records the OTA upgrade differential packet, and finally upgrades the central control system based on the recorded OTA upgrade differential packet; and when the kernel is determined to need to be upgraded, restarting the kernel to enter a recovery mode, burning the OTA upgrade difference packet, and finally upgrading the central control system based on the burnt OTA upgrade difference packet. The central control system of the vehicle-mounted machine system is based on whether the kernel needs to be restarted selectively or not in the upgrading process, the kernel is not restarted directly to upgrade the central control system, and the flexibility of the upgrading mode of the central control system is improved.
Referring to fig. 3, fig. 3 is a second embodiment of the upgrading method for the car-mounted device system according to the present invention, and based on the first embodiment, step S50 includes:
and step S51, judging whether the kernel needs to be restarted according to the over-the-air upgrading differential packet.
And step S52, when the kernel does not need to be restarted, upgrading the central control system according to the burnt over-the-air upgrading differential packet.
And step S53, when the kernel needs to be restarted, restarting the kernel, and upgrading the central control system according to the burnt over-the-air upgrading differential packet when the kernel enters a normal mode.
After the OTA upgrade differential packet is burned, the vehicle-mounted system needs to upgrade the central control system according to the OTA upgrade differential packet. Before upgrading, the car machine system needs to determine whether the kernel needs to be restarted so as to facilitate upgrading of the central control system. Specifically, when the server makes an OTA upgrade difference packet, whether a kernel which is already operated in the upgrade process of the central control system influences the upgrade of the central control system or whether the central control system can be upgraded after the kernel is restarted is determined; if the server determines that the kernel which is operated in the upgrading process of the central control system influences the upgrading of the central control system or whether the central control system can be upgraded after the kernel is restarted, the server adds the description content of kernel restarting into the differential upgrading packet, wherein the description content can exist in a text form or a code form. After obtaining the OTA upgrade difference packet, the vehicle-mounted system analyzes the OTA upgrade difference packet, determines whether the description content of kernel restart is contained, and if yes, the kernel needs to be restarted; if not, the restart is not needed.
When the kernel is determined not to need to be restarted, directly upgrading the central control system according to the burned OTA upgrading differential packet; and when the kernel needs to be upgraded, the kernel is restarted again, so that the vehicle-mounted machine system enters a normal mode, and the central control system is upgraded based on the burned OTA upgrade differential packet.
In addition, the reason why the kernel needs to be restarted is that the central control system needs to be upgraded by using a specific file when the kernel is restarted, where the specific file is defined as a first preset file. The vehicle-mounted machine system analyzes the OTA upgrade difference packet, judges whether the analyzed OTA upgrade difference packet contains a first preset file or not, judges that the kernel needs to be restarted if the analyzed OTA upgrade difference packet contains the first preset file, and judges that the kernel does not need to be restarted if the analyzed OTA upgrade difference packet does not contain the first preset file. The first preset file may be a kernel image file, that is, another type of file, and the kernel image file may be a boot. After the kernel is restarted again, a bootstrap program corresponding to the in-vehicle system control central control system copies a first preset file, such as a boot image file, and after the kernel loads a file system, the kernel can enter a normal mode.
It should be noted that, after the kernel enters the normal mode to complete the upgrade of the central control system, the first process corresponding to the container of the instrument system is started, so that the instrument system resumes running.
In the technical scheme provided by this embodiment, after burning the OTA upgrade differential packet, the in-vehicle system determines whether the kernel needs to be restarted based on the OTA upgrade differential packet, and when the kernel needs to be restarted, the restart kernel enters a normal mode to upgrade the central control system; and if the kernel does not need to be restarted, directly upgrading the central control system through the OTA upgrading differential packet, and reasonably upgrading the central control system according to whether the kernel needs to be restarted or not.
In an embodiment, if the OTA upgrade differential packet is recorded when the central control system stops operating, the upgrading of the central control system according to the recorded OTA upgrade differential packet may be: and the upgrading of the central control system is completed by unloading and loading the changed kernel driving module. Specifically, the vehicle machine system unloads a first kernel driving module of the central control system, wherein the first kernel driving module is an old kernel driving module; the vehicle-mounted machine system acquires a second kernel driving module from the OTA upgrading differential packet, the second kernel driving module is a new kernel driving module, and the vehicle-mounted machine system loads the second kernel driving module, so that the central control system is upgraded quickly.
The present invention further provides a car machine system 400, referring to fig. 4, the car machine system includes:
an obtaining module 401, configured to obtain an over-the-air OTA upgrade differential packet corresponding to a central control system of the in-vehicle system;
the judging module 402 is configured to judge whether the kernel of the in-vehicle system needs to be upgraded according to the OTA upgrade differential packet;
the control module 403 is used for controlling the central control system to stop running when the kernel does not need to be upgraded, and burning the OTA upgrade difference packet after the central control system stops running;
the restarting module 404 is configured to restart the kernel to enter a recovery mode when the kernel needs to be upgraded, and burn the OTA upgrade differential packet after the kernel is recovered;
and the upgrading module 405 is configured to upgrade the central control system according to the burned OTA upgrade differential packet.
In one embodiment, the in-vehicle system 400 includes:
a judging module 402, configured to judge whether the kernel needs to be restarted according to the OTA upgrade differential packet;
the upgrading module 405 is configured to upgrade the central control system according to the burned OTA upgrade differential packet when the kernel does not need to be restarted;
and the restarting module is used for restarting the kernel when the kernel needs to be restarted, and upgrading the central control system according to the burned OTA upgrading differential packet when the kernel enters a normal mode.
In one embodiment, the in-vehicle system 400 includes:
the analysis module is used for analyzing the OTA upgrading difference packet;
the determining module 402 is configured to determine whether the parsed OTA upgrade difference packet contains a first preset file, where when the parsed OTA upgrade difference packet contains the first preset file, it is determined that the kernel needs to be restarted.
In one embodiment, the in-vehicle system 400 includes:
a reboot module 404 configured to warm a reboot kernel;
the control module is used for controlling a bootstrap program corresponding to the central control system to copy a first preset file and controlling the kernel to load a root file system after the kernel is restarted;
and the upgrading module 405 is configured to, after the kernel loads the root file system, enter a normal mode, and upgrade the central control system according to the burned over-the-air upgrade differential packet.
In one embodiment, the in-vehicle system 400 includes:
the starting module is used for starting a first process corresponding to a container of the instrument system so as to enable the instrument system to operate.
In one embodiment, the in-vehicle system 400 includes:
the analysis module is used for analyzing the OTA upgrading difference packet;
the determining module 402 is configured to determine whether the parsed OTA upgrade difference packet contains a second preset file, where when the parsed OTA upgrade difference packet contains the second preset file, it is determined that the kernel needs to be upgraded.
In one embodiment, the in-vehicle system 400 includes:
a reboot module 404 configured to warm a reboot kernel;
the control module is used for controlling a bootstrap program corresponding to the central control system to copy a second preset file and controlling the kernel to load a root file system after the kernel is restarted;
and the control module is used for enabling the kernel to enter a recovery mode after the kernel loads the root file system, wherein when the kernel enters the recovery mode, the instrument system of the vehicle-mounted machine system cannot run.
In one embodiment, the in-vehicle system 400 includes:
and the unloading module is used for unloading a first kernel driving module in the central control system and loading a second kernel driving module in the OTA upgrading differential package so as to upgrade the central control system.
In one embodiment, the in-vehicle system 400 includes:
the disabling module is used for disabling the second process corresponding to the container of the central control system so as to control the central control system to stop running;
after the step of upgrading the central control system according to the burned OTA upgrading differential packet, the method further comprises the following steps:
and the starting module is used for starting a second process so as to enable the central control system to operate.
In one embodiment, the in-vehicle system 400 includes:
and the burning module is used for burning the air-download upgrade difference packet in a target storage area of a memory of the vehicle machine system after the central control system stops running, wherein the target storage area is a storage area corresponding to the memory of the central control system.
Fig. 5 is a block diagram illustrating a vehicle machine system according to an exemplary embodiment.
Referring to fig. 5, the in-vehicle machine system 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls the overall operation of the in-vehicle system 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation of the in-vehicle machine system 800. Examples of such data include instructions for any application or method operating on the in-vehicle machine system 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 808 includes a screen that provides an output interface between the in-vehicle system 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. When the in-vehicle system 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive an external audio signal when the in-vehicle system 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state estimation for the in-vehicle machine system 800. For example, sensor assembly 814 may detect an open/closed state of vehicle machine system 800, a relative positioning of components, such as a display and a keypad of vehicle machine system 800, a change in position of vehicle machine system 800 or a component of vehicle machine system 800, a presence or absence of user contact with vehicle machine system 800, an orientation or acceleration/deceleration of vehicle machine system 800, and a change in temperature of vehicle machine system 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the in-vehicle machine system 800 and other devices in a wired or wireless manner. The in-vehicle system 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, communications component 816 further includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the in-vehicle system 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the in-vehicle machine system 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein when instructions in the storage medium are executed by a processor of a terminal device, the terminal device is enabled to execute the upgrade method of the in-vehicle system.
A computer program product includes a computer program, and the computer program product refers to a product loaded with the computer program, which, when executed by a processor of a terminal device, enables the terminal device to execute the upgrade method of the in-vehicle system. The product is any software or hardware product that can carry the computer program.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (14)
1. The upgrading method of the vehicle machine system is characterized by comprising the following steps:
acquiring an over-the-air download upgrade differential packet corresponding to a central control system of a vehicle machine system;
judging whether the kernel of the vehicle machine system needs to be upgraded or not according to the over-the-air upgrading differential packet;
when the kernel does not need to be upgraded, controlling the central control system to stop running, and burning the over-the-air download upgrade differential packet after the central control system stops running;
when the kernel needs to be upgraded, restarting the kernel to enter a recovery mode, and burning the over-the-air upgrade differential packet after the kernel is recovered;
and upgrading the central control system according to the burnt over-the-air upgrading differential packet.
2. The vehicle-mounted machine system upgrading method according to claim 1, wherein the upgrading the central control system according to the burned over-the-air upgrading differential packet comprises:
judging whether the kernel needs to be restarted or not according to the over-the-air upgrading differential packet;
when the kernel does not need to be restarted, upgrading the central control system according to the burnt over-the-air download upgrading differential packet;
and when the kernel needs to be restarted, restarting the kernel, and upgrading the central control system according to the burnt over-the-air upgrading differential packet when the kernel enters a normal mode.
3. The upgrading method for the in-vehicle machine system according to claim 2, wherein the step of judging whether the kernel of the central control system needs to be restarted according to the over-the-air upgrading differential packet comprises:
analyzing the over-the-air upgrade differential packet;
and judging whether the analyzed over-the-air download upgrading difference packet contains a first preset file, wherein when the analyzed over-the-air download upgrading difference packet contains the first preset file, judging that the kernel needs to be restarted.
4. The upgrading method for the vehicle-mounted machine system according to claim 3, wherein the step of restarting the kernel and upgrading the central control system according to the burned over-the-air upgrading differential packet when the kernel enters a normal mode includes:
restarting the inner core by hot restart;
after the kernel is restarted, controlling a bootstrap program corresponding to the central control system to copy the first preset file and controlling the kernel to load a root file system;
and after the kernel loads a root file system, the kernel enters a normal mode, and the central control system is upgraded according to the burnt over-the-air upgrade difference packet.
5. The upgrading method for the in-vehicle system according to claim 2, wherein the in-vehicle system further includes an instrument system, and after the step of restarting the kernel to enter a normal mode to upgrade the central control system according to the burned over-the-air upgrade differential packet, the method further includes:
and starting a first process corresponding to a container of the meter system so as to operate the meter system.
6. The vehicle-mounted device system upgrading method according to claim 1, wherein the step of judging whether the kernel of the vehicle-mounted device system needs to be upgraded according to the over-the-air upgrading differential packet comprises:
analyzing the over-the-air upgrade differential packet;
and judging whether the analyzed over-the-air download upgrading difference packet contains a second preset file, wherein when the analyzed over-the-air download upgrading difference packet contains the second preset file, the kernel is judged to need to be upgraded.
7. The upgrading method for the in-vehicle machine system according to claim 6, wherein the step of restarting the kernel to enter the recovery mode includes:
restarting the inner core by hot restart;
after the kernel is restarted, controlling a bootstrap program corresponding to the central control system to copy the second preset file and controlling the kernel to load a root file system;
and after the kernel loads the root file system, the kernel enters a recovery mode, wherein when the kernel enters the recovery mode, the instrument system of the vehicle machine system cannot run.
8. The upgrading method for the vehicle-mounted machine system according to claim 1, wherein when the air-download upgrade differential packet is burned after the central control system stops operating, the step of upgrading the central control system according to the burned air-download upgrade differential packet comprises:
and unloading a first kernel driving module in the central control system, and loading a second kernel driving module in the over-the-air upgrading differential packet to upgrade the central control system.
9. The upgrading method for the vehicle machine system according to any one of claims 1 to 8, wherein the step of controlling the central control system to stop running comprises the following steps:
forbidding a second process corresponding to the container of the central control system to control the central control system to stop running;
after the step of upgrading the central control system according to the burned over-the-air upgrade differential packet, the method further comprises the following steps:
and starting the second process to enable the central control system to operate.
10. The upgrading method for the vehicle-mounted machine system according to any one of claims 1 to 8, wherein the step of burning the over-the-air upgrading differential packet after the central control system stops running comprises:
and after the central control system stops running, burning the over-the-air upgrade difference packet in a target storage area of a memory of the vehicle machine system, wherein the target storage area is a storage area corresponding to the memory of the central control system.
11. The utility model provides a car machine system which characterized in that includes:
the acquisition module is used for acquiring an over-the-air download upgrade differential packet corresponding to a central control system of the vehicle machine system;
the judging module is used for judging whether the kernel of the vehicle machine system needs to be upgraded or not according to the over-the-air upgrading differential packet;
the control module is used for controlling the central control system to stop running when the kernel does not need to be upgraded, and burning the over-the-air download upgrade differential packet after the central control system stops running;
the restarting module is used for restarting the kernel to enter a recovery mode when the kernel needs to be upgraded, and burning the over-the-air upgrading differential packet after the kernel is recovered;
and the upgrading module is used for upgrading the central control system according to the burnt over-the-air upgrading differential packet.
12. The utility model provides a car machine system, its characterized in that, car machine system includes: a memory and a processor;
the memory stores computer-executable instructions;
the processor executes the computer execution instructions stored in the memory, so that the processor executes the upgrading method of the car machine system according to any one of claims 1 to 10.
13. A readable storage medium, wherein the readable storage medium stores computer-executable instructions, and the computer-executable instructions are used for implementing an upgrading method of a vehicle machine system according to any one of claims 1 to 10 when being executed by a processor.
14. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the method for upgrading the in-vehicle system of any of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110644971.XA CN113377410B (en) | 2021-06-09 | 2021-06-09 | Vehicle machine system, upgrading method and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110644971.XA CN113377410B (en) | 2021-06-09 | 2021-06-09 | Vehicle machine system, upgrading method and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113377410A true CN113377410A (en) | 2021-09-10 |
CN113377410B CN113377410B (en) | 2022-10-04 |
Family
ID=77573381
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110644971.XA Active CN113377410B (en) | 2021-06-09 | 2021-06-09 | Vehicle machine system, upgrading method and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113377410B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070074015A1 (en) * | 2005-09-29 | 2007-03-29 | Nec Corporation | Control apparatus, upgrade method and program product of the same |
US20130079950A1 (en) * | 2011-09-22 | 2013-03-28 | Kia Motors Corporation | Vehicle upgrade system and method thereof |
CN103984585A (en) * | 2014-06-06 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Method for upgrading Linux kernel in running process of kernel module capable of being plugged in thermal mode |
CN105373399A (en) * | 2015-10-13 | 2016-03-02 | 广东欧珀移动通信有限公司 | System upgrading method and device of mobile terminal |
CN109086058A (en) * | 2017-06-13 | 2018-12-25 | 荣成华泰汽车有限公司 | Onboard program upgrade-system |
CN110535941A (en) * | 2019-08-29 | 2019-12-03 | 湖北亿咖通科技有限公司 | Onboard system update method, electronic equipment and storage medium |
CN111917842A (en) * | 2020-07-16 | 2020-11-10 | 无锡华普微电子有限公司 | OTA (over the air) upgrading method and system for automobile instrument and automobile instrument system |
CN112861118A (en) * | 2021-04-26 | 2021-05-28 | 湖北亿咖通科技有限公司 | Dual-system inter-container security policy isolation method, electronic device and storage medium |
-
2021
- 2021-06-09 CN CN202110644971.XA patent/CN113377410B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070074015A1 (en) * | 2005-09-29 | 2007-03-29 | Nec Corporation | Control apparatus, upgrade method and program product of the same |
US20130079950A1 (en) * | 2011-09-22 | 2013-03-28 | Kia Motors Corporation | Vehicle upgrade system and method thereof |
CN103984585A (en) * | 2014-06-06 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Method for upgrading Linux kernel in running process of kernel module capable of being plugged in thermal mode |
CN105373399A (en) * | 2015-10-13 | 2016-03-02 | 广东欧珀移动通信有限公司 | System upgrading method and device of mobile terminal |
CN109086058A (en) * | 2017-06-13 | 2018-12-25 | 荣成华泰汽车有限公司 | Onboard program upgrade-system |
CN110535941A (en) * | 2019-08-29 | 2019-12-03 | 湖北亿咖通科技有限公司 | Onboard system update method, electronic equipment and storage medium |
CN111917842A (en) * | 2020-07-16 | 2020-11-10 | 无锡华普微电子有限公司 | OTA (over the air) upgrading method and system for automobile instrument and automobile instrument system |
CN112861118A (en) * | 2021-04-26 | 2021-05-28 | 湖北亿咖通科技有限公司 | Dual-system inter-container security policy isolation method, electronic device and storage medium |
Non-Patent Citations (1)
Title |
---|
禹福: "Demo分享 | Qt助力鸿蒙车机OS"一芯多屏"仪表方案", 《HTTPS://HARMONYOS.51CTO.COM/POSTS/4206》 * |
Also Published As
Publication number | Publication date |
---|---|
CN113377410B (en) | 2022-10-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107967141B (en) | Operating system upgrading method and device and terminal | |
EP3168745B1 (en) | Method, device and system for application updating | |
EP3096224B1 (en) | Method and apparatus for processing application installation package | |
CN105511907B (en) | Application program upgrading method, device and system | |
CN104536783B (en) | Headspace method to set up and device | |
CN107357613B (en) | Application updating method and device and computer readable storage medium | |
CN106775903B (en) | Security policy file updating method and device | |
CN110851057A (en) | Method and device for configuring configuration options of BIOS | |
CN111198706A (en) | Method for updating system function, apparatus for updating system function and storage medium | |
CN114201226A (en) | Application starting method and device, electronic equipment and storage medium | |
CN107632835B (en) | Application installation method and device | |
CN113377410B (en) | Vehicle machine system, upgrading method and readable storage medium | |
CN112214254A (en) | Method and device for accelerating starting of application program and electronic equipment | |
EP2998859B1 (en) | Display control device, display control method, and program | |
CN115827076A (en) | Method and equipment for booting operating system storage medium and program product | |
US11269699B2 (en) | Method and device for processing an application | |
CN112256274A (en) | Application program processing method and device and storage medium | |
CN112306883A (en) | Software testing method, device and medium | |
CN110990073B (en) | Method and device for verifying customization requirements of application program | |
CN111813426A (en) | Fingerprint data processing method and device | |
CN111767063A (en) | Resource updating method, device and equipment for application program | |
CN109710274B (en) | Debugging function starting method and device | |
CN110377312B (en) | Software upgrading method, device and medium | |
CN111338636B (en) | Kernel preprocessing method, kernel preprocessing device and electronic equipment | |
CN114115025B (en) | Method, device and equipment for storing fault information based on automatic driving 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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220329 Address after: 430051 No. b1336, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province Applicant after: Yikatong (Hubei) Technology Co.,Ltd. Address before: 430056 building B, building 7, Qidi Xiexin science and Innovation Park, South taizihu innovation Valley, Wuhan Economic and Technological Development Zone, Hubei Province Applicant before: HUBEI ECARX TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |