Method for implementing smart cockpit, smart cockpit, and computer-readable medium
By adopting a microkernel operating system in the car's smart cockpit and dividing safety-critical and non-safety-critical businesses, the problems of bloated and complex cockpits and high computing resource overhead are solved, and efficient and reliable smart cockpit functions are realized.
Patent Information
- Application Number
- CN202211231345.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-08
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2042-10-08
AI Technical Summary
When implementing smart car cockpits, existing technologies can easily lead to bloated and complex cockpits or excessive computing resource consumption, making it difficult to efficiently implement all functions in one operating system.
A microkernel operating system is used to implement basic functions through the microkernel layer, and safety-critical and non-safety-critical businesses are divided in the microkernel application layer, computing resources are allocated separately, and various businesses are implemented using the system area and virtual area of the microkernel application layer.
Without increasing computing resource overhead, all functions of the smart cockpit are realized, the robustness and scalability of the system are improved, and the reliable operation of safety-critical services is ensured.
Smart Images

Figure CN117891515B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of intelligent transportation vehicles, and in particular to a method for implementing an intelligent cockpit, an intelligent cockpit, and a computer-readable medium. Background Art
[0002] Currently, civilian cars are developing towards electrification, networking, intelligence and sharing. The smart cockpit of a car needs to provide not only digital instruments and on-board controls, but also rich entertainment functions.
[0003] Automotive electrical and electronic architecture is also evolving from a traditional distributed architecture to a regional centralized architecture, ultimately developing into a centralized architecture. A characteristic of the regional centralized architecture is that it integrates the computing power previously dispersed across multiple electronic control units (ECUs) and microcontrollers (MCUs) within a domain onto a large regional computing platform, known as the domain master processor. Currently, the entire vehicle can be divided into the powertrain domain, chassis domain, body / comfort domain, cockpit / infotainment domain, and autonomous driving domain based on specific functional domains.
[0004] The current approach to implementing smart cockpits in cars either results in bloated and complex cockpits or creates a large computational resource overhead for the entire system. Summary of the Invention
[0005] Embodiments of the present application provide a method for implementing a smart cockpit, a smart cockpit, and a computer-readable medium.
[0006] In a first aspect, an embodiment of the present application provides a method for implementing a smart cockpit, comprising: implementing basic functions through a microkernel operating system of a microkernel layer; wherein the basic functions include: functions that are necessary for the operation of the microkernel operating system; under the control of the microkernel operating system, implementing additional functions through the system area of the microkernel application layer, and allocating exclusive computing resources to each safety-critical business; wherein the additional functions include: auxiliary functions required for the operation of the microkernel operating system; under the control of the microkernel operating system, implementing safety-critical businesses through the application area of the microkernel application layer; under the control of the microkernel operating system, implementing non-safety-critical businesses through the virtual area of the microkernel application layer.
[0007] In a second aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; a memory, wherein at least one program is stored in the memory, and when the at least one program is executed by the at least one processor, any one of the above-mentioned smart cockpit implementation methods is implemented.
[0008] In a third aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon. When the computer program is executed by a processor, any one of the above-mentioned methods for implementing a smart cockpit is implemented.
[0009] The implementation method of the smart cockpit provided in the embodiment of the present application runs an operating system on a set of hardware devices, and implements all the functions of the smart cockpit in one operating system. It does not require excessive computing resource overhead and is relatively simple to implement. By using microkernel technology in the operating system, security-critical services can be hosted in the application area of the microkernel application layer, which is currently impossible for systems such as Linux. The scalability is relatively good, and for new functions, it is only necessary to divide the new functions into security-critical services and non-security-critical services, and add the new functions in the areas where the security-critical services or non-security-critical services are located. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A flowchart of a method for implementing a smart cockpit provided in one embodiment of the present application;
[0011] Figure 2 This is a schematic diagram of the architecture of the software system of the smart cockpit according to an embodiment of the present application;
[0012] Figure 3 This is a schematic diagram of the startup process of the software system of the smart cockpit according to an embodiment of the present application;
[0013] Figure 4 A block diagram of the composition of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0014] In order to enable those skilled in the art to better understand the technical solution of the present application, the implementation method of the smart cockpit, the smart cockpit, and the computer-readable medium provided in the present application are described in detail below with reference to the accompanying drawings.
[0015] Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete and will fully convey the scope of this application to those skilled in the art.
[0016] In the absence of conflict, the various embodiments of the present application and the various features therein may be combined with each other.
[0017] As used herein, the term "and / or" includes any and all combinations of at least one of the associated listed items.
[0018] The terms used herein are used only to describe specific embodiments and are not intended to limit this application. As used herein, the singular forms "a," "an," and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements, and / or components is specified, but the presence or addition of at least one other feature, whole, step, operation, element, component, and / or group thereof is not excluded.
[0019] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning unless expressly defined as such herein.
[0020] Figure 1 A flowchart of a method for implementing a smart cockpit provided in one embodiment of the present application.
[0021] First, refer to Figure 1 One embodiment of the present application provides a method for implementing a smart cockpit, including:
[0022] Step 100, such as Figure 2 As shown, the basic functions are realized by the microkernel operating system of the microkernel layer; wherein the basic functions include: functions that are necessary for the operation of the microkernel operating system.
[0023] In some exemplary embodiments, the basic functions include: a process management function, a capability execution function, an interrupt management function, an exception handling function, and an inter-process communication function.
[0024] In some exemplary embodiments, the functional safety of the microkernel operating system complies with ISO 26262-6:2011, Road vehicles — Functional safety — Part 6: Software-layer product development.
[0025] Step 101, as Figure 2 As shown, under the control of the microkernel operating system, additional functions are implemented through the system area of the microkernel application layer, and exclusive computing resources are allocated to each security-critical business; wherein the additional functions include: auxiliary functions required for the operation of the microkernel operating system.
[0026] In some exemplary embodiments, the additional functions include: hardware abstraction functions, basic middleware, and system service functions.
[0027] In some exemplary embodiments, the hardware abstraction function includes at least one of the following: a device driver, a file system, a network protocol stack, and the like.
[0028] In some exemplary embodiments, the basic middleware includes at least one of the following: a C or C++ program runtime environment, a system interface library, and the like.
[0029] In some exemplary embodiments, the system service function includes at least one of the following: a resource management service function, a system monitoring service function, and the like.
[0030] In some exemplary embodiments, the system service function is implemented through an independent process space of the system area.
[0031] In some exemplary embodiments, the computing resources include at least one of the following: CPU resources, memory resources, and cache resources.
[0032] In some exemplary embodiments, the computing resources allocated to the safety-critical business are exclusive resources of the safety-critical business and have exclusive usage rights.
[0033] The embodiment of the present invention only implements simple basic functions in the microkernel layer, and complex additional functions are moved to the system area of the microkernel application layer. The system service functions are implemented in an independent process space. Such a decentralized design makes the software system architecture robust to runtime errors, which means that a failure within the process corresponding to a system service function will not affect other processes and the kernel, ensuring the reliable operation of the kernel and security-critical services.
[0034] Step 102, as Figure 2 As shown, under the control of the microkernel operating system, security-critical services are implemented through the application area of the microkernel application layer.
[0035] In some exemplary embodiments, the safety-critical service is a service that requires real-time performance or safety.
[0036] In some exemplary embodiments, safety-critical services include at least one of the following: services requiring real-time performance, services requiring functional safety, services requiring startup time, and services requiring information security. For example, in the smart cockpit field, safety-critical services include at least one of the following: instrument monitoring services and assisted driving monitoring services.
[0037] The functional safety of the instrument monitoring and assisted driving monitoring services implemented in the smart cockpit complies with ISO26262-6:2011, Road vehicles — Functional safety — Part 6: Software layer product development.
[0038] Step 103, as Figure 2 As shown, under the control of the microkernel operating system, non-safety-critical services are implemented through the virtual area of the microkernel application layer.
[0039] In some exemplary embodiments, the application area, the system area, and the virtual area are each composed of a group of processes, divided according to business types, and implemented using the process management function provided in the microkernel operating system.
[0040] In some exemplary embodiments, non-safety-critical services are services that have no requirements for real-time performance and safety.
[0041] In some exemplary embodiments, the non-safety-critical service includes at least one of the following: a digital instrument service, an infotainment service, an assisted driving service, and the like.
[0042] In some exemplary embodiments, Figure 2 As shown, under the control of the microkernel operating system, the non-safety-critical business is realized through the virtual area of the microkernel application layer, including: under the control of the microkernel operating system, the virtual machine manager in the virtual area is used to manage the virtual machines in the virtual area; and the non-safety-critical business is realized through the main virtual machine in the virtual area.
[0043] In some exemplary embodiments, the management of the virtual machine by the virtual machine manager includes at least one of the following: starting the virtual machine, stopping the virtual machine, suspending the virtual machine, managing the life cycle of the virtual machine, and providing virtual devices and physical devices for the virtual machine.
[0044] In some exemplary embodiments, the virtual area also includes other virtual machines.
[0045] In some exemplary embodiments, the main virtual machine and other virtual machines can be Linux, Android, Windows and other systems, which have a rich software ecosystem and make up for the shortcomings of the insufficient software ecosystem of the microkernel operating system.
[0046] In some exemplary embodiments, container technology is used in a main virtual machine to implement non-safety-critical services, and non-safety-critical services can also be integrated into the virtual machine.
[0047] In some exemplary embodiments, different non-safety-critical businesses are implemented using different containers, ensuring that each business runs relatively independently without interfering with each other, improving the quality of functional services, and facilitating the maintenance of each business.
[0048] In some exemplary embodiments, when the primary VM is a Linux system, Linux container technology is used within the primary VM to implement non-safety-critical services. Specifically, Linux container technology is used within the primary VM to isolate the Linux environment of the primary VM into at least one relatively independent execution space. Leveraging Linux's rich software ecosystem, different non-safety-critical services are implemented within different execution spaces. Because the execution spaces are isolated, the quality of service of each execution environment can be well guaranteed.
[0049] In some exemplary embodiments, a primary virtual machine is used to provide virtualization services for detection hardware devices and systems for non-safety-critical businesses, so that non-safety-critical businesses can use these detection hardware devices and systems simultaneously and work normally.
[0050] In some exemplary embodiments, the detection hardware device and system include at least one of the following: an artificial intelligence (AI) chip, a camera, a lidar, a millimeter-wave radar, a display screen, an Android framework, etc.
[0051] In some exemplary embodiments, the method further includes: dividing a portion of the memory space as a shared memory space through a microkernel operating system.
[0052] In some exemplary embodiments, the system further includes: dividing the shared memory space into at least two subspaces through a microkernel operating system. The at least two subspaces can be allocated to different services to enable communication and interaction between the services. For example, the shared memory space is divided into subspace 1 and subspace 2. Subspace 1 is allocated to the assisted driving service and the assisted driving monitoring service, which use subspace 1 for communication and interaction; subspace 2 is allocated to the digital instrument service and the instrument monitoring service, which use subspace 2 for communication and interaction.
[0053] In some exemplary embodiments, Figure 2 As shown, it also includes: managing a first hardware module in a hardware device through a microkernel operating system; wherein the first hardware module includes: a hardware module required for the operation of the microkernel operating system; under the control of the microkernel operating system, managing a second hardware module in the hardware device through a system area; wherein the second hardware module includes: an auxiliary hardware module required for the operation of the microkernel operating system; under the control of the microkernel operating system, implementing security-critical services through an application area; under the control of the microkernel operating system, managing and using a third hardware module in the hardware device through a virtual area; wherein the third hardware module is a hardware module other than the first hardware module and the second hardware module.
[0054] In some exemplary embodiments, the first hardware module includes: a central processing unit (CPU), an interrupt, a memory, and the like.
[0055] In some exemplary embodiments, the CPU is a high-computing-power CPU.
[0056] In some exemplary embodiments, all modules in the hardware device comply with International Standardization Organization (ISO) 26262-6:2011, Road vehicles — Functional safety — Part 5: Hardware-layer product development, and chip manufacturing complies with AEC-Q100 requirements.
[0057] In some exemplary embodiments, the second hardware module includes: a debugging module, a memory, and a network module.
[0058] In some exemplary embodiments, the memory is a mass storage device.
[0059] In some exemplary embodiments, the third hardware module includes: a display, and a hardware module with independent computing capabilities.
[0060] In some exemplary embodiments, the third hardware module further includes: peripheral modules other than the first hardware module, the second hardware module, the display and the hardware module with independent computing capabilities, such as a Universal Serial Bus (USB), a speaker, a microphone, etc.
[0061] In some exemplary embodiments, the hardware modules with independent computing capabilities include: a graphics processing unit (GPU) and an embedded neural network processor (NPU).
[0062] In some exemplary embodiments, the GPU is a high-performance GPU.
[0063] In some exemplary embodiments, under the control of the microkernel operating system, managing and using the third hardware module in the hardware device through the virtual area of the microkernel application layer includes: under the control of the microkernel operating system, managing the virtual machines in the virtual area through the virtual machine manager in the virtual area; and managing and using the third hardware module in the hardware device through the main virtual machine in the virtual area.
[0064] The following describes the startup process of the smart cockpit software system, such as Figure 3As shown, after the hardware device is powered on, it performs a hardware self-test and boots the micro-kernel operating system from the memory.
[0065] The microkernel operating system initializes the first hardware modules such as interrupts and memory, starts the root process, and then initializes the entire system area.
[0066] Initialize the device driver through the system area, start the file system, start the system service function, and start the application area.
[0067] Start the instrument monitoring service and the assisted driving monitoring service through the application area and start the virtual machine manager.
[0068] Start the master VM through the VM manager and provide virtual devices and physical devices to the master VM.
[0069] Start the container management program through the main virtual machine and initialize three container spaces. Initialize the digital instrument business in the first container space, initialize the assisted driving business in the second container space, and initialize the infotainment business in the third container space.
[0070] The implementation method of the smart cockpit provided in the embodiment of the present application runs an operating system on a set of hardware devices, and implements all the functions of the smart cockpit in one operating system. It does not require excessive computing resource overhead and is relatively simple to implement. By using microkernel technology in the operating system, security-critical services can be hosted in the application area of the microkernel application layer, which is currently impossible for systems such as Linux. The scalability is relatively good, and for new functions, it is only necessary to divide the new functions into security-critical services and non-security-critical services, and add the new functions in the areas where the security-critical services or non-security-critical services are located.
[0071] Secondly, refer to Figure 4 Another embodiment of the present application provides an electronic device, including: at least one processor 401; a memory 402, wherein at least one program is stored in the memory 402, and when the at least one program is executed by the at least one processor, any one of the above-mentioned smart cockpit implementation methods is implemented.
[0072] Among them, the processor 401 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 402 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH).
[0073] In some embodiments, the processor 401 and the memory 402 are connected to each other via a bus, and further connected to other components of the electronic device.
[0074] In some exemplary embodiments, the electronic device further includes a fourth hardware module 403 , a fifth hardware module 404 , and a third hardware module 405 connected to the processor 401 via a bus.
[0075] In some exemplary embodiments, the fourth hardware module 403 includes: interrupt, memory, etc.
[0076] In some exemplary embodiments, the fourth hardware module 403 further includes: a CPU.
[0077] In some exemplary embodiments, the fifth hardware module 404 includes: a debugging module and a network module.
[0078] In some exemplary embodiments, the fifth hardware module 404 further includes a memory.
[0079] In some exemplary embodiments, the third hardware module 405 includes: a display, and a hardware module with independent computing capabilities.
[0080] In some exemplary embodiments, the third hardware module further includes: peripheral modules such as USB, speakers, microphones, etc. in addition to the first hardware module, the second hardware module, the display, and the hardware module with independent computing capabilities.
[0081] In some exemplary embodiments, the hardware modules with independent computing capabilities include: a GPU and an NPU.
[0082] In a third aspect, another embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which implements any of the above-mentioned methods for implementing the smart cockpit when the computer program is executed by a processor.
[0083] Those skilled in the art will appreciate that all or some of the steps, systems, and functional modules / units in the methods, systems, and devices disclosed above may be implemented as software, firmware, hardware, or any combination thereof. In hardware implementations, the division between functional modules / units described above does not necessarily correspond to the division between physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is well known to those skilled in the art, the term computer storage media encompasses both volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0084] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly indicated, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the scope of the present application as set forth in the appended claims.
Claims
1. A method for implementing a smart cockpit, comprising: Implementing basic functions through the microkernel operating system of the microkernel layer; wherein the basic functions include: functions that the microkernel operating system must have to run; Under the control of the microkernel operating system, additional functions are implemented through the system area of the microkernel application layer, and exclusive computing resources are allocated to each security-critical business; wherein the additional functions include: auxiliary functions required for the operation of the microkernel operating system; Under the control of the microkernel operating system, implementing security-critical services through the application area of the microkernel application layer; Under the control of the microkernel operating system, non-safety-critical services are implemented through the virtual area of the microkernel application layer.
2. The method for implementing the smart cockpit according to claim 1, further comprising: A part of the memory space is divided out by the microkernel operating system as a shared memory space.
3. The method for implementing the smart cockpit according to claim 2, further comprising: The shared memory space is divided into at least two subspaces by the microkernel operating system.
4. The method for implementing the smart cockpit according to claim 1, further comprising: Managing a first hardware module in a hardware device through the microkernel operating system; wherein the first hardware module includes: a hardware module necessary for the operation of the microkernel operating system; Under the control of the microkernel operating system, a second hardware module in the hardware device is managed through the system area; wherein the second hardware module includes: an auxiliary hardware module required for the operation of the microkernel operating system; Under the control of the microkernel operating system, implementing security-critical services through the application area; Under the control of the microkernel operating system, a third hardware module in the hardware device is managed and used through the virtual area; wherein the third hardware module is a hardware module other than the first hardware module and the second hardware module.
5. The method for realizing the smart cockpit according to claim 4, wherein: The first hardware module includes: a central processing unit, an interrupt and a memory; The second hardware module includes: a debugging module, a memory and a network module; The third hardware module includes: a display and a hardware module with independent computing capabilities; the hardware module with independent computing capabilities includes: an image processor and an embedded neural network processor.
6. The method for implementing a smart cockpit according to any one of claims 1 to 5, wherein: The basic functions include: process management function, capability execution function, interrupt management function, exception handling function and inter-process communication function; The additional functions include: hardware abstraction function, basic middleware and system service function.
7. The method for realizing a smart cockpit according to claim 6, wherein: The system service function is implemented through an independent process space of the system area.
8. The method for implementing a smart cockpit according to any one of claims 1 to 5, wherein: The safety-critical business includes at least one of the following: Businesses that require real-time performance, functional safety, startup time, and information security.
9. The method for implementing a smart cockpit according to any one of claims 1 to 5, wherein: The safety-critical business includes at least one of the following: Instrument monitoring business, assisted driving monitoring business.
10. The method for implementing a smart cockpit according to any one of claims 1 to 5, wherein: The non-safety-critical business includes at least one of the following: Digital instrument business, infotainment business, and assisted driving business.
11. The method for implementing a smart cockpit according to any one of claims 1 to 5, wherein: The implementation of non-safety-critical services through the virtual area of the microkernel application layer under the control of the microkernel operating system includes: Under the control of the microkernel operating system, managing the virtual machines in the virtual area through the virtual machine manager in the virtual area; The non-safety-critical business is implemented through the main virtual machine in the virtual area.
12. The method for realizing a smart cockpit according to claim 11, wherein: The non-safety-critical business is implemented in the primary virtual machine using container technology.
13. A smart cockpit, comprising: at least one processor; A memory having at least one program stored thereon, wherein when the at least one program is executed by the at least one processor, the method for implementing the smart cockpit according to any one of claims 1 to 12 is implemented.
14. A computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for implementing the smart cockpit according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Inter-process communication method and device and computer equipment
CN112035272A
Intelligent cabin control system realized through hard isolation
CN113696837A