Onboard system update method, electronic equipment and storage medium
Technical field
The present invention relates to Internet communication technology field more particularly to a kind of onboard system update method, electronic equipment and
Storage medium.
Background technique
Multiple subsystem cooperative works are generally comprised in vehicle, each subsystem there can be a set of independent operating system
The operation of hardware is instructed, but must be associated with again between each operating system.Such as IHU (Infotainment Head Unit, letter
Cease amusement unit), MCU (Motor Control Unit, motor control unit), vehicle-mounted DVR (Digital Video
Recorder, automobile data recorder), HUD (Head Up Display, head-up display), each electronic instrument control subsystem, with
And AVM (Around View Monitor, full-view image unit) etc..Above-mentioned each subsystem all can be with the vehicle of responsible software service
Mounted terminal, which interacts, to be realized their data transmission, and can be received user and be operated the number issued by above-mentioned car-mounted terminal
According to.Car-mounted terminal can realize a set of software service for each onboard subsystem, be used to realize the communication with these subsystems
The transmission and reception of data are realized with subsystems.The car-mounted terminal, which can be, to be separately provided, and is also possible to be integrated in certain
In onboard subsystem, such as be integrated in IHU system, MCU part be responsible for control vehicle device power supply, from vehicle obtain information (air-conditioning,
The states such as vehicle window, car door, car light) shown etc. by bus transfer to IHU, IHU part be responsible for display user interface and with
User interacts, and the vehicle parameter (such as air-conditioner temperature) of user setting can also be transmitted to MCU by bus by IHU, with
Change the original parameter of vehicle device.
But above-mentioned each subsystem may have different operating system, such as what IHU usually ran is to be based on
A set of software systems of Android, MCU have run a set of software systems based on Linux.Meanwhile between subsystems again
Must be interrelated, after the operating system update upgrading of subsystem, may result in it is incompatible with other subsystems, or
Situations such as communication mismatches, accordingly, it may be desirable to upgrading is also updated to other associated systems, to meet communication need
It asks.
To sum up, it is desirable to provide one kind can manage the onboard system update method of multiple subsystem, be asked with solving above-mentioned technology
Topic, it is ensured that the communication of each subsystem of vehicle cooperates, and improves onboard system operation stability, improves user experience.
Summary of the invention
The present invention provides a kind of onboard system update method, device, equipment, vehicle and storage mediums, can rationally manage
The system upgrade of each subsystem of vehicle is controlled, the stability of onboard system operation is improved, improves user experience.
On the one hand, the present invention provides a kind of onboard system update method, be applied to vehicle-mounted control device, it is described it is vehicle-mounted in
It controls device and runs vehicle-mounted central control system, which comprises
Obtain onboard system more new task, itself updating comprising the vehicle-mounted central control system in the system update task
The sub more new task of task and onboard subsystem, wherein the vehicle-mounted central control system and the onboard subsystem cooperate, respectively
It cooperates between the onboard subsystem;
It is updated based on itself more new task and system update is carried out to the vehicle-mounted central control system, and be based on the son
It updates each onboard subsystem described in task control and carries out system update;
Monitor the more new state of each onboard subsystem;
If monitoring, the more new state of at least one onboard subsystem meets preset termination update condition, described in termination
Onboard system more new task;
Each onboard subsystem for having carried out system update is restored into the system mode to update;
Wherein, the preset termination update condition includes: that the update frequency of failure of the onboard subsystem reaches default time
Number.
On the other hand, the present invention provides a kind of onboard system updating device, described device includes:
More new task acquiring unit: including described in the system update task for obtaining onboard system more new task
Itself more new task of vehicle-mounted central control system and the sub more new task of onboard subsystem, wherein the vehicle-mounted central control system and institute
Onboard subsystem collaborative work is stated, is cooperated between each onboard subsystem;
It updates execution unit: system being carried out more to the vehicle-mounted central control system for updating based on itself more new task
Newly, and based on each onboard subsystem described in the sub- update task control system update is carried out;
Update monitoring unit: for monitoring the more new state of each onboard subsystem;
Update task termination unit: if for monitoring that it is default that the more new state of at least one onboard subsystem meets
Update condition is terminated, the onboard system more new task is terminated;
System recovery unit: for each onboard subsystem for having carried out system update to be restored the system to update
State;
Wherein, the preset termination update condition includes: that the update frequency of failure of the onboard subsystem reaches default time
Number.
On the other hand, the present invention provides a kind of electronic equipment, the equipment includes processor and memory;The processing
Device is adapted for carrying out one or one or more instruction;The memory, be stored with one or one or more instruction, described one or
One or more is suitable for the processor and loads and execute to realize onboard system update method as described above.
On the other hand, the present invention provides a kind of vehicles, including electronic equipment described above.
On the other hand, the present invention provides a kind of computer readable storage medium, the computer readable storage medium is deposited
Contain at least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Cheng
Sequence, the code set or instruction set make the computer execute onboard system update method described above.
Onboard system update method, device, equipment, vehicle and storage medium provided by the invention have following technology effect
Fruit:
The present invention can manage the update of multiple onboard subsystems, realize between each onboard subsystem and each vehicle-mounted son
It is mutually matched between system and vehicle-mounted central control system and compatible, improves system upgrade efficiency, improve user experience.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology and advantage, below will be to implementation
Example or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, the accompanying drawings in the following description is only
It is only some embodiments of the present invention, for those of ordinary skill in the art, without creative efforts,
It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of schematic diagram of system provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of onboard system update method provided in an embodiment of the present invention;
Fig. 3 is the onboard system block diagram provided in an embodiment of the present invention comprising multiple onboard subsystems;
The flow diagram of Fig. 4-Fig. 5 onboard system update method provided in an embodiment of the present invention;
Fig. 6 is the xml formatted file figure of onboard system provided in an embodiment of the present invention more new task;
Fig. 7 is the structural block diagram that program is controlled in update provided in an embodiment of the present invention;
Fig. 8 is the standard agreement lattice for the sub more new task that update data transmission program provided in an embodiment of the present invention is sent
Formula schematic diagram;
Fig. 9 is a kind of structural schematic diagram of onboard system updating device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without making creative work it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or server need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
Referring to Fig. 1, Fig. 1 is a kind of schematic diagram of system provided in an embodiment of the present invention, as shown in Figure 1, the system can
It can also include customer mobile terminal 03 to include at least server 01 and car-mounted terminal 02.
Specifically, the server 01 may include an independently operated server perhaps distributed server or
The server cluster being made of multiple servers.Server 01 may include having network communication unit, processor and memory etc.
Deng.Specifically, the server 01 can provide background service for above-mentioned car-mounted terminal 02 and customer mobile terminal 03.
Specifically, the car-mounted terminal 02 can be interacted with the server 01 and customer mobile terminal 03, to pass
Defeated or reception data.The car-mounted terminal 02 may include hardware module, such as vehicle-mounted control device, also may include software control
Module, such as vehicle-mounted central control system, for receiving the onboard system more new task and more new data etc. accordingly of server end transmission,
It can be used for the more new state from onboard subsystem to server end and relevant more new record and data etc. that send, can also use
In carrying out data interaction etc. with each onboard subsystem, the vehicle-mounted central control system can be IHU system, the onboard subsystem packet
Include but be not limited to MCU subsystem, DVR subsystem, HUD subsystem, each electronic instrument control subsystem and AVM subsystem etc..
Specifically, the customer mobile terminal 03 may include that smart phone, tablet computer, laptop, number help
The entity device of the types such as reason, intelligent wearable device, also may include the software run in entity device, such as using journey
Sequence etc..
Further, in a particular embodiment, the server 01 can dispose onboard system more new task, and receive more
The more new data of the new onboard system, for example, may include vehicle-mounted central control system software upgrade package and multiple vehicle-mounted sons
The software upgrade package etc. of system.The car-mounted terminal 02 can obtain the onboard system more new task from the server,
And relevant more new data is downloaded, to execute the onboard system more new task, while can also be sent to the server 01
More new state and update result.It is more newly appointed that the customer mobile terminal 03 can receive the onboard system that the server is sent
Business, and it is forwarded to car-mounted terminal 02, more new data can also be downloaded from server, the more new data is sent to car-mounted terminal
02, while the more new state of the transmission of car-mounted terminal 02 can also be received and updated as a result, to remind user to carry out relevant operation.
Introduced below the present invention is based on the onboard system update methods of above system, are applied to vehicle-mounted control device, described
Vehicle-mounted control device runs vehicle-mounted central control system, i.e., vehicle-mounted central control system (namely vehicle-mounted central control system software program) is in vehicle-mounted
It is run on control device.
Fig. 2 is the flow diagram of onboard system update method provided in an embodiment of the present invention, and present description provides such as
Method operating procedure described in embodiment or flow chart, but based on it is conventional or without creative labor may include it is more or
Less operating procedure.The step of enumerating in embodiment sequence is only one of numerous step execution sequences mode, not generation
Table uniquely executes sequence.It, can be according to shown in embodiment or attached drawing when system or server product in practice executes
Method sequence execute or parallel execute (such as environment of parallel processor or multiple threads).Specifically such as Fig. 2 institute
Show, the method may include:
S210: obtaining onboard system more new task, in the system update task comprising the vehicle-mounted central control system from
The sub more new task of body more new task and onboard subsystem, wherein the vehicle-mounted central control system and onboard subsystem collaboration
It works, cooperates between each onboard subsystem.
In this specification embodiment, the onboard system includes but is not limited to IHU system, MCU subsystem, DVR subsystem,
HUD subsystem, the onboard subsystems such as each electronic instrument control subsystem and AVM subsystem.
In practical applications, the onboard system more new task, which can be, disposes on the server, and the son is more newly appointed
Business is updated for dispatching its corresponding onboard subsystem.
In specific embodiment, it can cooperate between the vehicle-mounted central control system and each onboard subsystem, it is described
Each onboard subsystem can cooperate, i.e., its is interrelated, be related to data interaction etc., and therefore, it is necessary to be mutually matched and be compatible with.
S220: being updated based on itself more new task and carry out system update update to the vehicle-mounted central control system, and
System update is carried out based on each onboard subsystem described in the sub- update task control.
It include the corresponding update number of vehicle-mounted central control system in the onboard system more new task in this specification embodiment
According to, and/or more new data corresponding with the onboard subsystem for needing to update, the more new data, which can be, to be uploaded and is stored in clothes
It is engaged on device.
In practical applications, the corresponding updated data package of the vehicle-mounted central control system includes but is not limited to vehicle-mounted central control system
Device model, updating type, current software version, target software release, more new data download address and other can customize
Data and information etc.;It include but is not limited to the equipment type of onboard subsystem in the corresponding more new data of the onboard subsystem
Number, updating type, current software version, target software release, more new data download address and other customizable data
With information etc..
S230: the more new state of monitoring each onboard subsystem.
In this specification embodiment, what the more new state can include but is not limited to onboard subsystem is updated successfully shape
State updates status of fail, updates the frequency of failure and the update progress of each onboard subsystem etc..
S240: if monitoring, the more new state of at least one onboard subsystem meets preset termination update condition, eventually
The only onboard system more new task.
In this specification embodiment, the corresponding preset termination update condition of each onboard subsystem can it is identical can also be with
It is different.
In specific embodiment, the update of each onboard subsystem can include but is not limited in the onboard system more new task
Mode and update order etc..
S250: each onboard subsystem for having carried out system update is restored into the system mode to update.
In this specification embodiment, the last update institute that each onboard subsystem is stored in the onboard system is right
The history answered more new data, however, it is determined that terminate the onboard system more new task, control each vehicle-mounted son being updated
System is based on the history more new data and carries out system recovery, to restore the system mode to before updating.
Onboard system update method described in this specification can manage the update of multiple onboard subsystems, realize each vehicle-mounted
Being mutually matched between subsystem and between each onboard subsystem and vehicle-mounted central control system and compatible, raising system upgrade effect
Rate improves user experience.
Based on above-mentioned part or all of embodiment, in this specification embodiment, the preset termination update condition includes:
The update frequency of failure of the onboard subsystem reaches preset times.
Based on above-mentioned part or all of embodiment, in this specification embodiment, if the method can also include: described
The update of vehicle-mounted central control system meets central control system and terminates update condition, and the update frequency of failure of such as vehicle-mounted central control system reaches pre-
If the frequency of failure, then the onboard system more new task is terminated, each onboard subsystem for having carried out system update is restored
System mode before to update.
Based on above-mentioned part or all of embodiment, in this specification embodiment, if vehicle-mounted central control system and whole vehicles
Subsystems are all updated successfully, and can be sent and are updated successfully as a result, or sending be updated successfully result extremely simultaneously to server
Customer mobile terminal.
Based on above-mentioned part or all of embodiment, in this specification embodiment, the step S220 may include:
S221: the corresponding more new data of the vehicle-mounted central control system is downloaded based on itself more new task, and is based on
The son more new task downloads the corresponding more new data of each onboard subsystem;
S222: the more new data is sent to the corresponding onboard subsystem;
S223: system is carried out more to the vehicle-mounted central control system according to more new data corresponding with the vehicle-mounted central control system
Newly, and according to the update order in onboard system more new task each onboard subsystem is controlled according to the corresponding update
Data execute system update.
Based on above-mentioned part or all of embodiment, in this specification embodiment, monitoring each onboard subsystem
More new state after, the method also includes: if monitoring, the more new state of at least one onboard subsystem is unsatisfactory for
Preset termination update condition obtains corresponding more new data based on the corresponding sub more new task of the onboard subsystem again and controls
It makes the onboard subsystem and executes system update.
Based on above-mentioned part or all of embodiment, in this specification embodiment, the update order includes parallel pair
Each onboard subsystem is updated and is successively updated to each onboard subsystem according to setting order.
In some embodiments, the update order of each onboard subsystem can be according to setting order successively to each vehicle
Subsystems are updated, and the mode of update can be using preset order or random order.I.e. an onboard subsystem is complete
At the update for carrying out next onboard subsystem after update.
Further, it if a upper onboard subsystem is updated successfully and still has unfinished sub more new task, sequentially opens
Move the more new task of next onboard subsystem;If a upper onboard subsystem updates failure, but is still unsatisfactory for preset termination more
New Terms then restarts the update of the onboard subsystem, if being updated successfully in not up to preset termination update condition,
Continue to update other onboard subsystems;If having met preset termination update condition, stop that current update fails and subsequent
The update of onboard subsystem, and the state for the other onboard subsystems being updated successfully before is restored to the system shape to update
State, such as can be the current software version for running the software rejuvenation of each onboard subsystem to before updating.
In further embodiments, the update order include it is parallel each onboard subsystem is updated, i.e., regardless of
Order can control each onboard subsystem while be updated.If monitoring one or more vehicle-mounted son in the process
System update fails and meets default update termination condition, then stops the update of all onboard subsystems, and will be updated successfully
Or the state of the onboard subsystem of part update restores the system mode to update, such as can be each onboard subsystem
Software rejuvenation to update before run the current software version.
Based on above-mentioned part or all of embodiment, in this specification embodiment, the method can also include: S260:
It sends and updates failure information to vehicle-mounted display terminal and/or customer mobile terminal, to remind user to carry out subsequent processing.
In specific embodiment, the process and reason for updating failure can also be sent to server, checks He Chu for subsequent
Reason.
It is more newly appointed in the acquisition onboard system in this specification embodiment based on above-mentioned part or all of embodiment
Before business, which comprises whether periodic polling has the onboard system more new task for the first preset matching condition that meets;If wheel
Ask result be it is yes, obtain the onboard system more new task;If polling result be it is no, whether poll has that meet first default again
The onboard system of matching condition more new task.
Wherein, the first preset matching condition includes that the corresponding more new data of each onboard subsystem is mutually matched,
And the corresponding more new data of the vehicle-mounted central control system more new data corresponding with each onboard subsystem is mutually matched, with
It can cooperate after being updated successfully the vehicle-mounted central control system and each onboard subsystem.
In specific embodiment, the more new data, which is mutually matched, can include but is not limited to device model matching, update class
Type matching and each target software release are mutually matched and are compatible with, that is, the onboard subsystem for needing to update and/or vehicle-mounted middle control system
It, being capable of journey collaborative work after system is all updated successfully.
In practical applications, if determining in polling result has the sub more new task of at least one onboard subsystem to be unsatisfactory for the
One preset matching condition and/or itself more new task are unsatisfactory for the first preset matching condition, then this does not start more new task,
Continue next round poll.Polling object can be server.
Based on above-mentioned part or all of embodiment, in this specification embodiment, the sub more new task of the onboard system
Including but not limited to: the update order of each onboard system, updating type, current software version, target software release and under
Set address etc..
Based on above-mentioned part or all of embodiment, in this specification embodiment, itself is more newly appointed based on described described
Business, which is updated, carries out system update to the vehicle-mounted central control system, and based on each vehicle-mounted subsystem described in the sub- update task control
Before system carries out system update, the method also includes;
S2101: judge all whether the sub more new task meets the second preset matching condition, second preset matching
Condition includes but is not limited to the current fortune of the current software version model and the vehicle-mounted central control system in itself new task
Capable software version model is consistent and the sub more new task in current software version model and corresponding onboard subsystem
Currently running software version model it is consistent;
S2102: if the determination result is YES, execute described update based on itself more new task is to the vehicle-mounted middle control
System carries out system update, and the step of carrying out system update based on each onboard subsystem described in the sub- update task control.
S2103: if judging result be it is no, terminate current vehicle-mounted more new task;
Whether S2104: rejudging has the new onboard system more new task for meeting the first preset matching condition.Can be
The poll of next round is carried out, to obtain new vehicle-mounted more new task.
The onboard system update method that some embodiments of this specification provide is introduced below in conjunction with Fig. 3-Fig. 5:
Car-mounted terminal described in this specification may include vehicle-mounted central control system, which can be IHU
System.Fig. 3 shows the onboard system block diagram comprising multiple onboard subsystems, referring to FIG. 3, IHU system is used for user's
The interactive and data interaction with other periphery subsystems, such as connect and communicate by UART serial ports mode with MCU, Huo Zheke
To be connect by USB, network or other interface forms with other modules.In addition, in IHU system can also include be used for and its
Its subsystem does the module of the services such as data interaction, such as DVR service module (DVR Service), HUD service module (HUD
Service), electronic instrument service module (Dashboard Service) and AVM service module (AVM Service) etc., on
It states and runs respectively individual operating system in each onboard subsystem.
Based on above-mentioned onboard system, onboard system update method described in this specification can as shown in fig. 4-5, Fig. 4
There is different update order from the onboard system update method in Fig. 5.
It should be noted that method shown in Fig. 4 and Fig. 5 is only the preferred embodiment of this specification, this cannot be covered
The onboard system update method of explanation it is all deformed, onboard system update method described in this specification is not with Fig. 4 and Fig. 5 institute
The content shown is limited.
Firstly, received server-side more new data, more new data and multiple onboard subsystems comprising vehicle-mounted central control system
More new data, and generate corresponding download address;Server end disposes onboard system more new task, wherein updating comprising itself
Task and multiple sub more new tasks, the onboard system more new task may include such as device model, and IHU updating type, IHU work as
Preceding software version, IHU target software release, MCU updating type, MCU current software version, MCU target software release, DVR are more
New type, DVR current software version, DVR target software release etc. are that modules extend relevant more new data etc..
For example, in a specific embodiment, it can be as shown in fig. 6, onboard system more new task includes that itself is more newly appointed
Business and two son more new tasks, are related to IHU system, MCU subsystem and DVR subsystem, with xml format organization at a file
It is deployed in server end.Wherein contain project name, the project name can be systematic name, such as IHU, MCU and DVR etc.,
For judging whether to be matched with the item types of vehicle-mounted central control system to be updated and onboard subsystem, while all updates
Data can be mutually matched, i.e., its all update after, IHU system, MCU subsystem and DVR subsystem can journey cooperate,
If it is judged that be it is yes, then onboard system more new task meets the first preset matching condition.XXXUpdateType in Fig. 6
Indicate updating type, wherein Increase indicates that current software version for increment upgrading, i.e., is passed through patch installing by update mode
Mode is updated to target software release.XXXBaseVersion is the current operation version of onboard subsystem, vehicle-mounted central control system
Or the currently running software version of onboard subsystem needs to match this data could update specified target software release.
XXXTargetVersion is target software release, that is, vehicle-mounted central control system or onboard subsystem are by the software of operation after updating
Version.XXXPackageDownloadLink is the download link of more new data, i.e., above-mentioned download address.It should be noted that
It is above-mentioned XXX characterization systematic name, such as IHU, MCU and DVR etc..
Further, car-mounted terminal operation has update detection program, meets the to whether server inquiry has for timing
The onboard system more new task of one preset matching condition.Can be obtained based on project name field corresponding itself more new task,
Sub more new task and more new data obtain the update time of each onboard subsystem by the parsing to above-mentioned xml formatted file
Sequence, updating type, current software version, target software release and download address etc..IHU, MCU and DVR module are compared respectively
Whether the model of current operation version is consistent with the model of current software version defined in more new task, if all consistent,
Above-mentioned update detection program more will be downloaded to local by new data, carry out the update of onboard subsystem;If it exists one or one with
Upper inconsistent, then detection terminates, and waits after a detection cycle again to server end poll.The detection cycle can be every
It, the time interval defined weekly or in addition.
Further, car-mounted terminal can also run and control program in update, and control program can be individually in the update
Operation, be also possible to operate in vehicle-mounted central control system, as shown in fig. 7, for executing onboard system more new task, it is described more
New middle control program may include updating scheduling, updating multiple sub- journeys such as mission dispatching, more new data transmission and the acquisition of more new state
Sequence.
Wherein, whether update scheduling subroutine has onboard system more new task for poll, control vehicle-mounted central control system and
The update of onboard subsystem and the more new state for monitoring onboard subsystem.As parsed from the more new task that server end obtains
The object for needing to update, and determine and update order, start and scheduling sublayer more new task according to order is updated.
Update downloading and each son more new task and corresponding of control that mission dispatching subprogram is used to control more new data
Transmission of the more new data to each onboard subsystem.Such as by the service module that is docked with onboard subsystem send sub more new task and
More new data.As shown in figure 3, being communicated by DVR Service with DVR system when updating DVR, passing through DVR's and IHU
Network connection distributes sub more new task and corresponding more new data in DVR onboard subsystem, then DVR onboard subsystem
The update installation procedure of itself carries out system update.
Downloading and transmission that data transmission program is used to execute sub more new task and corresponding more new data are updated, is needed
Compatible IHU and the connection type of different onboard subsystems and data transfer mode, and sent with a set of standard agreement format
Sub more new task.The standard agreement format is a kind of data format, and the formulation of data need to follow a set of approved rule.
In the present embodiment, the standard agreement format can be as shown in Figure 8, wherein module is to indicate vehicle-mounted subsystem
The field for title of uniting, for distinguishing each onboard subsystem;Type is to indicate that the field of updating type (is updated for example including full dose
And/or the optional parameters such as incremental update);Base version be indicate current software version field (this field be directed to increment
It updates effectively, this field can be ignored if it is full dose update);Target version is the word for indicating target software release
Section.It updates data transmission program and follows this agreement transmission more new data, corresponding onboard subsystem follows this agreement to parse
Data, to obtain required more new data.It is also used to more new data being transferred to correspondence in addition, updating data transmission program
Onboard subsystem specified store path in.Updating data transmission program can be also used for the update of each onboard subsystem
State and the data for updating result are transmitted in update and control program.
The more new state that state acquisition module is used to monitor each onboard subsystem is updated, and obtains each vehicle-mounted subsystem
The update result of system.The more new state is contained and is updated successfully as shown in Table 1 also in compliance with the reference format of a set of definition
(UPDATE_SUCCESS), wrong (UPDATE_ERR) is updated, overtime (UPDATE_TIMEOUT) is updated, updates and interrupt
(UPDATE_INTERRUPT) states such as.It should be noted that the more new state is not limited in these states enumerated.It should
More new state eventually by update data transmission program back to update scheduling subroutine in, update scheduling subroutine according to be somebody's turn to do
Update node state scheduling onboard system more new task and sub more new task.
Table one: the reference format of more new state:
It returns the result |
Data definition |
0 |
UPDATE_SUCCESS |
1 |
UPDATE_ERR |
2 |
UPDATE_TIMEOUT |
3 |
UPDATE_INTERRUPT |
Further, the task schedule for updating scheduling subroutine is also based on previously described update order, at one
In specific embodiment, the update order of onboard subsystem is sequentially to update, i.e., an onboard subsystem is completed to carry out down after updating
The update of one onboard subsystem.
As shown in figure 4, the task schedule for updating scheduling subroutine can include but is not limited to following classification: 1, a vehicle-mounted son
System (such as onboard subsystem 1) is updated successfully, and has onboard subsystem to be updated, then starts the son of next onboard subsystem
More new task;2, an onboard subsystem (such as onboard subsystem 2) is updated successfully, and onboard subsystem not to be updated, then
Determine that all sub more new task is completed, and is terminated onboard system more new task, is returned to the result being updated successfully;3, a vehicle-mounted subsystem
System updates failure, and updates the frequency of failure and be not up to preset times, then restarts the sub more new task of the onboard subsystem, carry out weight
It is new to update;4, an onboard subsystem updates failure, and updates the frequency of failure and have reached preset times, determines and meets default update
Termination condition terminates onboard system more new task, returns and updates failing as a result, and restoring the onboard subsystem being updated
System mode before to update.
In another specific embodiment, the update order is parallel update, i.e., n onboard subsystem can be by simultaneously
Capable mode updates, and the task schedule for updating scheduling subroutine can include but is not limited to following classification: 1. whole vehicle-mounted subsystems
System is updated successfully, and is terminated onboard system more new task, is returned to the result being updated successfully;2. one or more vehicle-mounted subsystem
System updates failure, but the number for updating failure is not up to preset times, then restarts the sub more new task of corresponding onboard subsystem, into
Row updates again;3. the update frequency of failure of one or more onboard subsystem reaches preset times, that is, meet default
Update termination condition, terminate onboard system more new task, and return update failure as a result, and other by what is be updated
Onboard subsystem restores the system mode to update.
Further, program is controlled in the update and is also used to the processing to update failure, including is sent more to server end
New failure cause and related data can also include sending to update failure information to vehicle-mounted display terminal and customer mobile terminal,
It is handled with notice system and user.
The embodiment of the invention also provides the server packets that the server that a kind of onboard system updates, the onboard system update
Processor and memory are included, at least one instruction, at least a Duan Chengxu, code set or instruction set are stored in the memory, it should
At least one instruction, an at least Duan Chengxu, the code set or the instruction set are loaded by the processor and are executed to realize as above-mentioned
Onboard system update method provided by embodiment of the method.
In this specification embodiment, the memory can be used for storing software program and module, and processor passes through operation
It is stored in the software program and module of memory, thereby executing various function application and data processing.Memory can be main
Including storing program area and storage data area, wherein storing program area can application program needed for storage program area, function
Deng;Storage data area, which can be stored, uses created data etc. according to the equipment.In addition, memory may include high speed with
Machine access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or its
His volatile solid-state part.Correspondingly, memory can also include Memory Controller, to provide processor to memory
Access.
This specification embodiment additionally provides a kind of onboard system updating device, and Fig. 9 is vehicle provided in an embodiment of the present invention
The structural schematic diagram of loading system updating device, specifically, as shown in connection with fig. 9, the apparatus may include:
More new task acquiring unit 10: including institute in the system update task for obtaining onboard system more new task
State itself more new task of vehicle-mounted central control system and the sub more new task of onboard subsystem, wherein the vehicle-mounted central control system and
The onboard subsystem cooperates, and cooperates between each onboard subsystem;
It updates execution unit 20: system being carried out to the vehicle-mounted central control system for updating based on itself more new task
It updates, and system update is carried out based on each onboard subsystem described in the sub- update task control;
Update monitoring unit 30: for monitoring the more new state of each onboard subsystem;
Update task termination unit 40: if for monitoring that it is pre- that the more new state of at least one onboard subsystem meets
If terminating update condition, the onboard system more new task is terminated;
System recovery unit 50: it is for restoring each onboard subsystem for having carried out system update to update
System state.
Wherein, the preset termination update condition includes: that the update frequency of failure of the onboard subsystem reaches default time
Number.
Based on above-mentioned specific embodiment, in specific embodiment, the more new task acquiring unit 10 may include regular
Whether poll subelement has the onboard system more new task for the first preset matching condition that meets for periodic polling;If poll knot
Fruit be it is yes, obtain the onboard system more new task;If polling result be it is no, whether poll, which has, again meets the first preset matching
The onboard system of condition more new task;Wherein, the first preset matching condition includes that each onboard subsystem is corresponding more
New data is mutually matched, and the corresponding more new data of the vehicle-mounted central control system and each onboard subsystem it is corresponding more
New data is mutually matched, so that each onboard subsystem can cooperate after being updated successfully.
Based on above-mentioned specific embodiment, in specific embodiment, the update execution unit 20 may include:
More new data downloads subelement: corresponding for downloading the vehicle-mounted central control system based on itself more new task
More new data, and the corresponding more new data of each onboard subsystem is downloaded based on the sub more new task;
Update data transmission unit: for the more new data to be sent to the corresponding onboard subsystem;
Subsystem update subelement: for according to more new data corresponding with the vehicle-mounted central control system to it is described it is vehicle-mounted in
Control system carries out system update, and controls each onboard subsystem root according to the update order in onboard system more new task
System update is executed according to the corresponding more new data.
Based on above-mentioned specific embodiment, in specific embodiment, described device further includes that more new task restarts unit, is used for
If monitoring, the more new state of at least one onboard subsystem is unsatisfactory for preset termination update condition, is based on the vehicle again
The corresponding sub more new task of subsystems, which obtains corresponding more new data and controls the onboard subsystem, executes system update.
Based on above-mentioned specific embodiment, in specific embodiment, described device further includes updating information transmitting unit, is used for
It sends and updates failure information to vehicle-mounted display terminal and/or customer mobile terminal.
Based on above-mentioned specific embodiment, in specific embodiment, the sub more new task of the onboard system includes: described each
Update order, updating type, current software version, target software release and the download address of onboard system.
Based on above-mentioned specific embodiment, in specific embodiment, described device further includes sub more new task matching unit: being used
In judging whether whole sub more new tasks meet the second preset matching condition, the second preset matching condition includes described
Current software version model in itself new task is consistent with the currently running software version model of the vehicle-mounted central control system,
And the current software version model in the sub more new task and the currently running software version of corresponding onboard subsystem
Model is consistent;If the determination result is YES, execute it is described based on itself more new task update to the vehicle-mounted central control system into
Row system update, and the step of system update is carried out based on each onboard subsystem described in the sub- update task control.
Based on above-mentioned specific embodiment, in specific embodiment, the son more new task matching unit is also used to: if judgement
As a result be it is no, terminate current vehicle-mounted more new task;And rejudge whether have the new first preset matching condition that meets
Onboard system more new task.Apparatus and method embodiment in the Installation practice is based on similarly inventive concept.
This specification embodiment additionally provides a kind of electronic equipment, and the equipment includes processor and memory;The place
Device is managed, one or one or more instruction are adapted for carrying out;The memory, is stored with one or one or more is instructed, and described one
Or one or more is suitable for the processor and loads and execute to realize previously described onboard system update method.
This specification embodiment additionally provides a kind of vehicle, including previously described electronic equipment.
This specification embodiment additionally provides a kind of computer readable storage medium, and the computer readable storage medium is deposited
Contain at least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Cheng
Sequence, the code set or instruction set execute the computer to realize previously described onboard system update method.
On the other hand this specification also provides a kind of onboard system more new system, the system includes at least: car-mounted terminal
And server;
The car-mounted terminal can be used for obtaining onboard system more new task, in the system update task comprising two or
The sub more new task of more than two onboard subsystems;Based on each onboard subsystem described in the sub- update task control according to correspondence
More new data carry out system update;Monitor the more new state of each onboard subsystem;If monitoring at least one described vehicle
The more new state of subsystems meets preset termination update condition, terminates the onboard system more new task;By the system of progress
Each onboard subsystem updated restores the system mode to update.
The server, can be used for receiving the onboard system more new task and more new data of deployment, and be sent to
To car-mounted terminal;And receive the system update result that car-mounted terminal is sent.
In some embodiments, the onboard system more new system can also include customer mobile terminal, can be used for receiving
The onboard system more new task and more new data etc. that server is sent can be used for receiving server or car-mounted terminal transmission
It updates as a result, can be also used for onboard system more new task and more new data etc. being forwarded to car-mounted terminal.
It should be understood that embodiments of the present invention sequencing is for illustration only, do not represent the advantages or disadvantages of the embodiments.
And above-mentioned this specification specific embodiment is described.Other embodiments are within the scope of the appended claims.One
In a little situations, the movement recorded in detail in the claims or step can be executed according to the sequence being different from embodiment and
Still desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or company
Continuous sequence is just able to achieve desired result.In some embodiments, multitasking and parallel processing it is also possible or
It may be advantageous.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For system and server example, since it is substantially similar to the method embodiment, so being described relatively simple, related place
Illustrate referring to the part of embodiment of the method.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.