Updating method based on vehicle-mounted operating system and intelligent cabin device

By setting the update flag in the QNX operating system and entering update mode to utilize operating system functions, it solves the problem of inability to reuse functions and security in traditional upgrade methods, and achieves safe and efficient software and data updates.

CN118535197APending Publication Date: 2024-08-23DELPHI CHINA TECHNOLOGICAL CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310149010.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In smart vehicle-mounted units running the QNX operating system, the traditional vehicle-mounted control unit upgrade method will lead to the inability to reuse operating system functions and security issues, and the real-time nature and security of the operating system cannot be utilized during the upgrade process.

Method used

By setting the update flag in the vehicle operating system, it is determined that the system enters normal mode or update mode, thereby utilizing the functions of the operating system in update mode, avoiding direct manipulation of physical addresses, and ensuring data security.

Benefits of technology

It realizes software and data updates in the update mode of the vehicle operating system, reuses the operating system functions, avoids additional development work of the boot loader, and ensures data security and system advantages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535197A
    Figure CN118535197A
Patent Text Reader

Abstract

The invention provides an updating method based on a vehicle-mounted operating system. The updating method comprises the steps that the vehicle-mounted operating system is started; the starting script of the vehicle-mounted operating system reads an update flag bit, and the update flag bit is stored in a microprocessor or an external memory independent of the vehicle-mounted operating system; and determining whether the vehicle-mounted operating system enters a common mode or an updating mode based on the updating flag bit. In addition, the invention further provides computing equipment, an intelligent cabin device, a vehicle, a computer readable storage medium and a computer program product. By means of the technical scheme disclosed by the invention, the content needing to be updated can be updated in the updating mode of the vehicle-mounted operating system, so that the additional development work of a boot loader is omitted, and the advantages of the vehicle-mounted operating system can be benefited.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle control, and more specifically, to an updating method based on a vehicle operating system, a computing device, a smart cockpit device, a vehicle, a computer-readable storage medium, and a computer program product. Background Art

[0002] When the traditional on-board control unit ECU composed of microcontroller unit MCU is upgraded offline at the car service outlets (such as 4S stores) and car manufacturers, a dedicated diagnostic tool is generally used to upgrade the software or update the data. This method connects the diagnostic tool to the on-board diagnostic interface (OBD) and allows the on-board control unit ECU to enter the programming session (PS) through the diagnostic command (Unified diagnostic services: UDS). Such a programming session requires the on-board control unit ECU to only run programs associated with software and data flashing, and prohibits ordinary applications from running. Traditional on-board control unit ECU usually implements the programming session function by jumping into the boot loader Bootloader and residing therein to run programs associated with diagnostic flashing.

[0003] However, for intelligent vehicle units (such as smart cockpit systems) running vehicle operating systems such as the QNX operating system, if the programming session implementation method of the traditional vehicle control unit ECU is copied, it will bring at least the following two technical problems:

[0004] First of all, if the QNX operating system implements programming sessions in the Bootloader (called Initial Program Loaders: IPLs in QNX) and Startup, the existing functions of the QNX operating system (Operation System: OS) cannot be used, such as the file system and network protocols that the diagnostic flash relies on, and the real-time performance of the diagnostic flash program cannot benefit from the guarantee of the QNX operating system.

[0005] Secondly, the diagnostic program running in IPLs and Startup directly operates the physical address, which will destroy the security of the QNX operating system. At this time, the high security of the QNX operating system cannot be applied and reflected during the software data upgrade. Summary of the invention

[0006] In order to solve the above problems, existing software upgrades or data updates are run independently of the QNX vehicle operating system, but are performed in the Bootloader and Startup. This not only fails to reuse the advantages of the QNX operating system, but also brings additional problems such as data security. The inventor of the present disclosure proposes an update method based on the vehicle operating system, in which the advantages of the vehicle operating system can be reused and the cost of developing the Bootloader can be saved.

[0007] Based on this, according to an embodiment of the present disclosure, an updating method based on a vehicle operating system is provided, and the updating method includes:

[0008] Starting the vehicle operating system;

[0009] The startup script of the vehicle operating system reads the update flag, wherein the update flag is stored in a microprocessor or an external memory independent of the vehicle operating system; and

[0010] Based on the update flag, it is determined whether the vehicle operating system enters a normal mode or an update mode.

[0011] At this time, the update flag is stored in a microprocessor or an external memory independent of the vehicle operating system, so that the correct update flag can still be read after the vehicle operating system is restarted, so as to ensure the correct selection of the normal mode or update mode entered. In addition, by setting the update flag in the memory of the vehicle operating system, it can be used as a basis to decide whether to put the vehicle operating system into the normal mode or the newly designed update mode, so that the update mode of the vehicle operating system can be started when necessary. In such an update mode, the inherent functions of the vehicle operating system such as the file system and the network protocol can be utilized by the update mode, and the vehicle operating system also avoids the update mode directly operating on the physical address, but indirectly operates on the physical address through the operating system, thereby ensuring data security. In other words, by means of the technical solution disclosed in accordance with the content of the present disclosure, the content to be updated can be updated in the update mode of the vehicle operating system, which not only eliminates the additional development work for the boot loader, but also benefits from the advantages of the vehicle operating system itself.

[0012] According to one embodiment of the present disclosure, a setting method of an update flag is also provided. For example, the default value of the update flag is the first state value; and when an update command is received and the security verification of the update command based on the security access request included therein is passed, the update flag is set to the second state value different from the first state value based on the programming session request included in the update command. At startup, when the update flag is the first state value, the vehicle operating system enters the normal mode; or when the update flag is the second state value different from the first state value, the vehicle operating system enters the update mode.

[0013] According to one embodiment of the present disclosure, a computing device is also provided, comprising: a processor; and a memory for storing computer executable instructions, which enables the processor to execute the above-mentioned updating method when the computer executable instructions are executed.

[0014] According to one embodiment of the present disclosure, a smart cockpit device is also provided, comprising: a processor; and a memory for storing computer executable instructions, which enables the processor to execute the above-mentioned update method when the computer executable instructions are executed.

[0015] According to one embodiment of the present disclosure, a vehicle is also provided, the vehicle comprising the above-mentioned computing device or smart cockpit apparatus.

[0016] According to one embodiment of the present disclosure, a computer-readable storage medium is further provided, wherein the computer-readable storage medium has computer-executable instructions stored thereon, and the computer-executable instructions are used to execute the above-mentioned updating method.

[0017] According to one embodiment of the present disclosure, a computer program product is also provided. The computer program product is tangibly stored on a computer-readable storage medium and includes computer-executable instructions. When the computer-executable instructions are executed, at least one processor performs the above-mentioned updating method.

[0018] With the help of the technical solution disclosed according to the contents of the present disclosure, the content to be updated can be updated in the update mode of the vehicle operating system, which not only eliminates the need for additional development work for the boot loader, but also benefits from the advantages of the vehicle operating system itself. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The features, advantages and other aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings, in which several embodiments of the present disclosure are shown in an exemplary and non-limiting manner. In the accompanying drawings:

[0020] Figure 1 A schematic diagram showing an application scenario of an updating method in the prior art;

[0021] Figure 2 An exemplary flow chart of an updating method 200 based on a vehicle operating system according to an embodiment of the present disclosure is shown;

[0022] Figure 3A A schematic diagram 300A shows a manner of receiving an update command according to an update method of the present disclosure;

[0023] Figure 3B An exemplary flow chart of an updating method 300B based on a vehicle operating system according to another embodiment of the present disclosure is shown;

[0024] Figure 4 An exemplary flow chart of an updating method 400 based on a vehicle operating system according to yet another embodiment of the present disclosure is shown;

[0025] Figure 5 An exemplary block diagram illustrating a computing device 500 according to one embodiment of the present disclosure; and

[0026] Figure 6 An exemplary block diagram of a smart cockpit device 600 according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0027] The various exemplary embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. Although the exemplary methods and devices described below include software and / or firmware executed on hardware among other components, it should be noted that these examples are merely illustrative and should not be considered restrictive. For example, it is considered that any or all hardware, software, and firmware components can be implemented exclusively in hardware, exclusively in software, or in any combination of hardware and software. Therefore, although exemplary methods and devices have been described below, it should be readily understood by those skilled in the art that the examples provided are not intended to limit the manner in which these methods and devices are implemented.

[0028] In addition, the flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the methods and systems according to the various embodiments of the present disclosure. It should be noted that the functions marked in the boxes may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession may actually be executed substantially in parallel, or they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the flowchart and / or block diagram, and the combination of boxes in the flowchart and / or block diagram, may be implemented using a dedicated hardware-based system that performs a specified function or operation, or may be implemented using a combination of dedicated hardware and computer instructions.

[0029] The terms "including", "comprising" and similar terms used herein are open terms, i.e., "including / including but not limited to", indicating that other contents may also be included. The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment", etc.

[0030] Figure 1 A schematic diagram showing an application scenario of an updating method in the prior art is shown. Figure 1 It can be seen that the vehicle-mounted central control screen 101 located in front of the steering wheel 102 can run the vehicle-mounted operating system and various applications, such as applications involving various functions such as navigation, audio and video entertainment, and instrument display. When it is necessary to upgrade the software or refresh the data, the special diagnostic tool 106 can be inserted into the corresponding interface 103 or the USB flash drive 105 with relevant data stored inside can be inserted into the USB interface 104. However, as mentioned above, the traditional vehicle-mounted control unit ECU usually implements the programming session function by jumping into the boot loader Bootloader and residing therein to run the program associated with the diagnostic flash. At this time, since the QNX operating system implements the programming session in the Bootloader (called Initial Program Loaders: IPLs in QNX) and Startup, the existing functions of the QNX operating system (Operation System: OS) cannot be used; in addition, the diagnostic program running in IPLs and Startup directly operates the physical address, which will destroy the security of the QNX operating system. At this time, the high security of the QNX operating system cannot be applied and reflected when the software data is upgraded.

[0031] In the face of the above problem, the existing software upgrade or data update is run independently of the QNX vehicle operating system and is performed in the Bootloader and Startup, which not only fails to reuse the advantages of the QNX operating system, but also brings additional problems such as data security. The inventor of the present disclosure proposes an update method based on the vehicle operating system, such as a solution based on the programming session under the QNX system, which enables the diagnostic programming session to run in the QNX operating system instead of the Bootloader. In this update method, the advantages of the vehicle operating system can be reused, and the cost of developing the Bootloader can be saved.

[0032] In the solution according to the content of the present disclosure, the programming session function can directly use the functions of the operating system OS kernel, file system, and network protocol, avoiding the repeated development of the file system and network functions under the Bootloader. In addition, in the solution according to the content of the present disclosure, the programming session and the underlying Bootloader function are decoupled from each other rather than associated, and when the diagnostic program including the programming session function needs to iteratively develop new functions, it will not involve changes to the underlying Bootloader module. Specifically, a special update flag is set in the technical solution proposed in the present disclosure, so that the operating system can know which mode to enter when it is started, that is, whether to enter the update mode or the normal operation mode. The special update flag here is stored in a microprocessor or an external memory independent of the vehicle-mounted operating system, so that it will not be reset when the system is restarted, and can accurately enter the desired operation mode.

[0033] The reason why the update flag is stored in the microcontroller MCU (such as the Flash Data storage location) or the external EEPROM is that: first, the microcontroller MCU needs to read the update flag and execute the corresponding program according to the update flag to achieve the purpose of working in coordination with the system on chip SOC; in addition, the file system used by the vehicle operating system (such as the QNX operating system) in the normal operation mode for data reading and writing is different from the file system enabled when entering the programming update mode. The file system used by the former is generally a DOS file system, a Linux file system, a Windows file system, or a HFS file system, while the latter needs to use a Flash file system. Different file systems cannot directly read data from each other, which requires entering a non-normal operation mode when a diagnostic session is required.

[0034] The following describes the updating method based on the vehicle operating system proposed according to the present disclosure with reference to the accompanying drawings. Figure 2FIG. 2 shows an exemplary flow chart of an updating method 200 based on a vehicle operating system according to an embodiment of the present disclosure. Figure 2 It can be seen that the update method 200 based on the vehicle operating system proposed according to the content of the present disclosure includes at least the following three steps: first, in method step 210, the vehicle operating system will be started, for example, the vehicle operating system will be started when the smart cockpit system in the vehicle is started; then in method step 220, the startup script of the vehicle operating system reads the update flag, wherein the update flag is stored in a microprocessor or an external memory independent of the vehicle operating system, that is, in the solution proposed according to the content of the present disclosure, an update flag will be preset, which is located at a specific location of the memory, such as a microcontroller or an external independent EEPROM, and the specific location or specific address is known to the vehicle operating system, and after the vehicle operating system is started, the startup script of the vehicle operating system will read the update flag; finally, in method step 230, it is determined whether the vehicle operating system enters normal mode or update mode based on the specific value of the update flag. For example, when the update flag is a first state value (e.g., 0), the vehicle operating system enters the normal mode 231; and when the update flag is a second state value (e.g., 1) different from the first state value (e.g., 0), the vehicle operating system enters the update mode 232. Figure 2 In the illustrated updating method 200 based on the vehicle operating system, by setting an update flag in the memory of the vehicle operating system, it is possible to decide whether to put the vehicle operating system into the normal mode or the newly designed update mode, so that the update mode of the vehicle operating system can be started when necessary. In such an update mode, the inherent functions of the vehicle operating system (such as the QNX operating system), such as the file system and the network protocol, can be utilized by the update mode, and the vehicle operating system also avoids the update mode from directly operating the physical address, and all operations are performed under the management of the operating system, thereby ensuring security.

[0035] When the update flag is 0, it means that no update is required. At this time, the pre-configured first application is started according to the first configuration file associated with the normal mode in the startup script of the vehicle operating system. For example, all applications can be started when no update is required, or in order to save system resources or increase the operating speed, the first configuration file associated with the normal mode in the startup script of the vehicle operating system can be run to start the pre-configured first application, such as only starting applications related to navigation, and not starting applications related to audio and video entertainment. The first configuration file can be customized according to the personal preferences of each driver, or it can be customized according to the hardware configuration of the vehicle, or it can be freely selected by the driver.

[0036] In normal mode, in addition to normal operation, it is also possible to receive update commands so that it can enter update mode when necessary. The reception of the update command can be formed, for example, by a variety of ways, Figure 3A Schematic diagram 300A shows a receiving method of an update command according to the update method of the present disclosure. Figure 3A It can be seen that the update command can be received, for example, via various vehicle buses, Internet protocols, or cloud service protocols. Figure 3A In the programming session function 304 of the in-vehicle operating system QNX shown, its startup can, for example, receive update commands through the CAN bus 301, can also receive update commands through the Ethernet bus 302, can also receive update commands through the Flexray bus 303; what's more, it can also receive update commands from the remotely connected cloud 305.

[0037] Specifically, Figure 3B The update flag bit is shown in FIG. Figure 3B FIG. 3 shows an exemplary flow chart of an updating method 300B based on a vehicle operating system according to another embodiment of the present disclosure. Figure 3B It can be seen that, in addition to Figure 2In addition to the similar steps 310, 320 and 330 shown therein, at least the following three steps are included, namely, in method step 340, an update command can be received, and the update command includes a security access request and a programming session request; after receiving the update command, it is necessary to verify it to ensure whether the counterparty initiating the update command has the authority to update. At this time, the update command can be securely verified based on the security access request in method step 350, for example, based on the verification code, user name and password combination or other security tools contained in the security access request; and finally in method step 360, if the security verification passes, the update flag is set to the second state value (for example, 1 in this example) based on the programming session request, for example, the update flag is set from the original first state value 0 to the new second state value 1, which means that a legitimate requester has sent an update command, and the relevant application needs to be updated. The vehicle operating system can be restarted in a timely manner, for example, immediately or after a predetermined time. As mentioned above, the update flag here will be stored in the microcontroller MCU (for example, FlashData storage location) or the external EEPROM, and the specific location or specific address is known to the vehicle operating system.

[0038] As mentioned above, there are various ways to receive such update commands. For example, such update commands can be received in a wired manner through the vehicle bus, or in a wireless manner, such as through a wireless connection. Here, the available vehicle buses include but are not limited to CAN bus, Ethernet, Flexray bus, etc., and wireless connections include various wireless network communication protocols such as Bluetooth, WiFi, ZigBee, and of course also include wirelessly connected cloud remote diagnosis.

[0039] After restarting, the update flag is 1, indicating that an update is required. At this time, the vehicle operating system will enter the update mode. In the update mode, the pre-configured second application is started according to the second configuration file associated with the update mode in the startup script of the vehicle operating system. Here, the second application can, for example, only include necessary applications associated with the network protocol and the file system, so as to meet the needs of communication and file writing during the update. Preferably, the second application can also include, for example, applications associated with security encryption, and at this time, the data to be written can be encrypted and processed, thereby improving data security and preventing misoperation. More preferably, other applications that are not particularly necessary for the update can also be selectively started during the update. At this time, the second application also includes applications associated with instruments, audio and video, and / or navigation, thereby meeting the personalized needs of different users. After entering the update mode, update data can also be received from a predetermined location or the location of the initiator of the above-mentioned update command. For example, update data is received from an IP address that previously received an update command or from a MAC address of a device that previously received an update command. Here, the update data is, for example, software update data or file update data.

[0040] To illustrate this update process, Figure 4 FIG. 4 shows an exemplary flow chart of an updating method 400 based on a vehicle operating system according to another embodiment of the present disclosure. Figure 4 It can be seen that, in addition to Figure 2In addition to similar method steps 410, 420 and 430, a virtual memory disk will be created and the Flash file system will be started in method step 440. Here, the vehicle-mounted operating system and the second application run on a virtual memory disk virtually formed by a random access memory. The reason for creating a virtual memory disk is that the virtual memory disk is to divide a part of the space of the memory RAM as a hard disk area, and completely put the QNX operating system and the diagnostic upgrade and update-related programs in the actual hard disk (such as solid-state hard disk SSD, EMMC, UFS and other flash memory) behind the virtual memory disk. At this time, the operation of the vehicle-mounted operating system has little to do with the hard disk, which decouples the dependence of the vehicle-mounted operating system on the hard disk, so that when updating the software and data on the hard disk, there is no need to consider whether it will cause the operation of the current diagnostic update-related program, eliminating the concerns about the update or possible technical problems. In addition, since the operation of the vehicle-mounted operating system at this time has little to do with the hard disk, the diagnostic update-related program itself on the hard disk can be updated to achieve complete self-upgrade. At this time, the Flash file system needs to be introduced. The reason for using the Flash file system in update mode is that the Flash file system is specially used by QNX for updating and flashing on flash memory. It supports all standard POSIX I / O functions, open() function, read() function, write() function, and special devctl() function for erasing is also supported.

[0041] Then, in the next method step 450, the update mode is entered, that is, the application related to the update is started and the update data is received, such as which software or files need to be updated and how to update these software or files. In addition, in method step 450, the upgrade of related software or the update of related data will be implemented based on the update data; next, after these updates are completed, an exit command will be received in method step 460 to exit the update mode. At this time, it is necessary to set the update flag from the second state value (for example, 1) to the first state value (for example, 0) based on the exit command in method step 470, and restart the vehicle operating system in method step 480.

[0042] After such a restart, the update flag has been updated to 0, that is, after the restart, the update method based on the vehicle operating system proposed in accordance with the content of the present disclosure will enter the normal mode. At this time, the pre-configured first application is started according to the first configuration file associated with the normal mode in the startup script of the vehicle operating system. For example, all applications can be started when no update is required, or in order to save system resources or increase the operating speed, the first configuration file associated with the normal mode in the startup script of the vehicle operating system can be run to start the pre-configured first application. The first configuration file can be customized according to the personal preferences of each driver, for example, it can also be customized according to the hardware configuration of the vehicle, or it can also be freely selected by the driver.

[0043] In normal mode, it is possible to receive update commands, and so on, so that the update method based on the vehicle operating system according to the content disclosed by you can enter the update mode when updating is needed, and run in normal mode when updating is not needed.

[0044] Of course, when running in normal mode, a shutdown command can also be received, and the shutdown operation can be performed based on the shutdown command. When running or when the system is initialized, the default value of the update flag is the first state value (for example, 0). And the vehicle operating system includes but is not limited to the QNX operating system.

[0045] In addition, the present disclosure relates to a computing device, which includes: a processor; and a memory for storing computer-executable instructions, which enable the processor to perform the above-mentioned updating method 200, 300B or 400 when the computer-executable instructions are executed. Figure 5 1 shows an exemplary block diagram of a computing device 500 according to one embodiment of the present disclosure. Figure 5 As can be seen in the figure, the computing device 500 includes a processor (e.g., a central processing unit (CPU)) 501 and a memory 502 coupled to the processor 501. The memory 502 is used to store computer executable instructions, and when the computer executable instructions are executed, the processor 501 executes the update method 200, 300B, 400 in the above embodiments. The processor 501 and the memory 502 are connected to each other through a bus, and an input / output (I / O) interface is also connected to the bus.

[0046] In addition, the computing device 500 can also include a plurality of components connected to the I / O interface ( Figure 5The computing device 500 includes a plurality of computer programs (not shown), including but not limited to: an input unit, such as a keyboard, a mouse, etc.; an output unit, such as various types of displays, speakers, etc.; a storage unit, such as a disk, an optical disk, etc.; and a communication unit, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit allows the computing device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0047] At this time, the computer executable instructions stored in the memory 502, when executed, cause the processor 501 to perform the Figure 2 , Figure 3B and Figure 4 The updating method 200, 300B, 400 described in any one of the various embodiments.

[0048] Furthermore, the present disclosure relates to a smart cockpit device, which includes: a processor; and a memory for storing computer-executable instructions, which enable the processor to execute the above-mentioned updating methods 200, 300B, 400 when the computer-executable instructions are executed. Figure 5 FIG. 5 shows an exemplary block diagram of a smart cockpit device 500 according to an embodiment of the present disclosure. It should be understood that the smart cockpit device 500 can be implemented to realize Figure 2 , Figure 3B as well as Figure 4 The functions of the update methods 200, 300B, 400 in the embodiment of the present invention are as follows. Figure 6 It can be seen that Figure 6 The smart cockpit device 600 includes a central processing unit (CPU) 601 (e.g., a processor), which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 602 or computer program instructions loaded from a storage unit 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the smart cockpit device 600 can also be stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0049] Multiple components in the smart cockpit device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the smart cockpit device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0050] The various methods described above, such as the display control method, can be executed by the processing unit 601. For example, in some embodiments, the update methods 200, 300B, 400 can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed on the smart cockpit device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the CPU 601, one or more actions or steps in the update methods 200, 300B, 400 described above can be performed, namely:

[0051] Starting the vehicle operating system;

[0052] The startup script of the vehicle operating system reads the update flag, wherein the update flag is stored in a microprocessor or an external memory independent of the vehicle operating system; and

[0053] Based on the update flag, it is determined whether the vehicle operating system enters a normal mode or an update mode.

[0054] In one embodiment of the present disclosure, when the computer program is loaded into the RAM 603 and executed by the CPU 601, the following actions or steps in the updating methods 200, 300B, and 400 described above may be performed, namely:

[0055] When the update flag is at the first state value, the vehicle operating system enters a normal mode; or

[0056] When the update flag is a second state value different from the first state value, the vehicle operating system enters an update mode.

[0057] In one embodiment of the present disclosure, when the computer program is loaded into the RAM 603 and executed by the CPU 601, the following actions or steps in the updating methods 200, 300B, and 400 described above may be performed, namely:

[0058] A preconfigured first application is started according to a first configuration file associated with the normal mode in a startup script of the vehicle operating system.

[0059] In one embodiment of the present disclosure, when the computer program is loaded into the RAM 603 and executed by the CPU 601, the following actions or steps in the updating methods 200, 300B, and 400 described above may be performed, namely:

[0060] receiving an update command, the update command comprising a security access request and a programming session request;

[0061] Performing security verification on the update command based on the security access request; and

[0062] In the case where the security verification passes, the update flag is set to the second state value based on the programming session request.

[0063] In one embodiment of the present disclosure, when the computer program is loaded into the RAM 603 and executed by the CPU 601, the following actions or steps in the updating methods 200, 300B, and 400 described above may be performed, namely:

[0064] The pre-configured second application is started according to the second configuration file associated with the update mode in the startup script of the vehicle operating system. Here, the second application includes an application associated with a network protocol and a file system, and the file system includes a Flash file system. Preferably, the second application also includes an application associated with security encryption. Optionally or additionally, the second application also includes an application associated with instrumentation, audio and video, and / or navigation.

[0065] In one embodiment of the present disclosure, when the computer program is loaded into the RAM 603 and executed by the CPU 601, the following actions or steps in the updating methods 200, 300B, and 400 described above may be performed, namely:

[0066] Receive updated data; and

[0067] The related software is upgraded or the related data is updated based on the update data.

[0068] In one embodiment of the present disclosure, when the computer program is loaded into the RAM 603 and executed by the CPU 601, the following actions or steps in the updating methods 200, 300B, and 400 described above may be performed, namely:

[0069] Receive exit command;

[0070] Setting the update flag to the first state value based on the exit command; and

[0071] Restart the vehicle operating system.

[0072] The above-mentioned smart cockpit device 600 is mainly composed of a system on chip (System On Chip) and a microprocessor MCU in terms of hardware, each of which has its own division of labor. For example, due to the powerful computing power of the system on chip SOC, it runs the QNX system and executes the main smart cockpit functions, including offline diagnostic flashing functions, while the microprocessor MCU is only responsible for bus communication related functions. In terms of software architecture, the smart cockpit programming session control module includes a flag storage module and a startup script. The startup script is responsible for reading the flag from the flag storage module, controlling the system to enter the update mode (such as programming session) or normally start to enter the normal mode so as to start all applications.

[0073] Although the various exemplary embodiments of the present disclosure described above can be implemented in hardware or dedicated circuits, the above-mentioned computing device 500 or smart cockpit device 600 can be implemented in the form of hardware or software. This is because: in the 1990s, it was easy to determine whether a technical improvement was a hardware improvement (for example, an improvement to the circuit structure of a diode, transistor, switch, etc.) or a software improvement (for example, an improvement to the method flow). However, with the continuous development of technology, many improvements to the method flow today can almost be implemented by programming the improved method flow into the hardware circuit. In other words, by programming different programs for the hardware circuit to obtain the corresponding hardware circuit structure, that is, the change of the hardware circuit structure is achieved, so such an improvement in the method flow can also be regarded as a direct improvement in the hardware circuit structure. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit, and its logical function is determined by the user programming the device. Designers can "integrate" a digital system on a programmable logic device by programming it themselves, without having to ask chip manufacturers to design and produce dedicated integrated circuit chips.Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one type of HDL, but many types, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow. In other words, in general, the various example embodiments of the present disclosure may be implemented in hardware or dedicated circuits, software, firmware, logic, or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device. When various aspects of the embodiments of the present disclosure are illustrated or described as block diagrams, flow charts, or using some other graphical representation, it will be understood that the blocks, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof as non-limiting examples.

[0074] According to one embodiment of the present disclosure, a vehicle is also provided, the vehicle comprising the above-mentioned computing device or smart cockpit apparatus.

[0075] According to one embodiment of the present disclosure, a computer-readable storage medium is further provided, wherein the computer-readable storage medium has computer-executable instructions stored thereon, and the computer-executable instructions are used to execute the above-mentioned updating method.

[0076] According to one embodiment of the present disclosure, a computer program product is also provided. The computer program product is tangibly stored on a computer-readable storage medium and includes computer-executable instructions. When the computer-executable instructions are executed, at least one processor performs the above-mentioned updating method.

[0077] Computer-readable program instructions or computer program products for executing various embodiments of the present disclosure can also be stored in the cloud. When needed, users can access the computer-readable program instructions for executing an embodiment of the present disclosure stored in the cloud through mobile Internet, fixed network or other networks, thereby implementing the technical solutions disclosed in various embodiments of the present disclosure.

[0078] With the help of the technical solution disclosed according to the contents of the present disclosure, the content to be updated can be updated in the update mode of the vehicle operating system, which not only eliminates the need for additional development work for the boot loader, but also benefits from the advantages of the vehicle operating system itself.

[0079] Although the embodiments of the present disclosure have been described with reference to several specific embodiments, it should be understood that the embodiments of the present disclosure are not limited to the specific embodiments disclosed. The embodiments of the present disclosure are intended to cover various modifications and equivalent arrangements included in the spirit and scope of the appended claims. The scope of the claims is consistent with the broadest interpretation, thereby including all such modifications and equivalent structures and functions.

Claims

1. An updating method based on a vehicle-mounted operating system, characterized in that: The updating method comprises: Starting the vehicle operating system; The startup script of the vehicle operating system reads the update flag, wherein the update flag is stored in a microprocessor or an external memory independent of the vehicle operating system; and Based on the update flag, it is determined whether the vehicle operating system enters a normal mode or an update mode.

2. The updating method according to claim 1, characterized in that: Determining whether the vehicle operating system enters a normal mode or an update mode based on the update flag bit includes: When the update flag is at the first state value, the vehicle operating system enters a normal mode; or When the update flag is a second state value different from the first state value, the vehicle operating system enters an update mode.

3. The updating method according to claim 2, characterized in that: When the vehicle operating system enters the normal mode, the updating method further includes: A preconfigured first application is started according to a first configuration file associated with the normal mode in a startup script of the vehicle operating system.

4. The updating method according to claim 3, characterized in that: When the vehicle operating system enters the normal mode, the updating method further includes: receiving an update command, the update command comprising a security access request and a programming session request; Performing security verification on the update command based on the security access request; and In the case where the security verification passes, the update flag is set to the second state value based on the programming session request.

5. The updating method according to claim 4, characterized in that: Receiving update commands includes: The update command is received via the vehicle bus or wireless connection.

6. The updating method according to claim 2, characterized in that: When the vehicle-mounted operating system enters the update mode, the update method further includes: A preconfigured second application is started according to a second configuration file associated with the update mode in a startup script of the vehicle operating system.

7. The updating method according to claim 6, characterized in that: The in-vehicle operating system and the second application run on a virtual hard disk virtually formed by a random access memory.

8. The updating method according to claim 6, characterized in that: The second application includes an application associated with a network protocol and a file system.

9. The updating method according to claim 8, characterized in that: The file system includes a Flash file system.

10. The updating method according to claim 8, characterized in that: The second application also includes an application associated with security encryption.

11. The updating method according to claim 8, characterized in that: The second application also includes applications associated with instrumentation, audio and video, and / or navigation.

12. The updating method according to claim 2, characterized in that: When the vehicle-mounted operating system enters the update mode, the update method further includes: Receive updated data; and The related software is upgraded or the related data is updated based on the update data.

13. The updating method according to claim 12, characterized in that: The updating method further comprises: Receive exit command; Setting the update flag bit to the first state value based on the exit command; and Restart the vehicle operating system.

14. The updating method according to claim 1, characterized in that: The updating method further comprises: receiving a shutdown command; and A shutdown operation is performed based on the shutdown command.

15. The updating method according to any one of claims 1 to 14, characterized in that: The default value of the update flag bit is the first state value.

16. The updating method according to any one of claims 1 to 14, characterized in that: The in-vehicle operating system is the QNX operating system.

17. A computing device, characterized in that The computing device comprises: Processor; and A memory for storing computer executable instructions, which, when executed, causes the processor to perform the updating method according to any one of claims 1 to 16.

18. An intelligent cockpit device, characterized in that: The smart cockpit device comprises: Processor; and A memory for storing computer executable instructions, which, when executed, causes the processor to perform the updating method according to any one of claims 1 to 16.

19. A vehicle, characterized in that: The vehicle comprises the computing device according to claim 17 or the smart cockpit apparatus according to claim 18.

20. A computer-readable storage medium having computer-executable instructions stored thereon, the computer-executable instructions being used to execute the updating method according to any one of claims 1 to 16.

21. A computer program product tangibly stored on a computer-readable storage medium and comprising computer-executable instructions which, when executed, cause at least one processor to perform the updating method according to any one of claims 1 to 16.