Peripheral starting method, device and equipment of vehicle-mounted controller and storage medium

By loading real-time and time-sharing operating systems in parallel on the control chip of the on-board controller and assigning initialization tasks to critical and non-critical peripherals, the problem of startup delay of the on-board controller peripherals is solved and the system startup efficiency is improved and response speed.

CN119200443APending Publication Date: 2024-12-27FAW JIEFANG AUTOMOTIVE CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411236164.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The peripheral startup mechanism of the existing vehicle controller relies on the linear startup process of the time-sharing operating system, resulting in delays in peripheral startup and difficulty in responding quickly. The multi-core task allocation strategy is not reasonable enough and the system performance is not fully utilized.

Method used

In the control chip of the on-board controller, the real-time operating system is loaded through real-time cores and the time-sharing operating system is loaded on the high-performance cores. Initialization tasks are allocated for critical and non-critical peripherals respectively, and the real-time operating system is used to prioritize the processing of key tasks. improves peripheral startup efficiency.

Benefits of technology

Through parallel processing and reasonable task allocation, the peripheral startup speed is significantly accelerated, the time required for the system to reach a full operating state is shortened, and the overall startup efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119200443A_ABST
    Figure CN119200443A_ABST
Patent Text Reader

Abstract

The invention discloses a peripheral starting method and device of a vehicle-mounted controller, equipment and a storage medium. The method is applied to a control chip in a vehicle-mounted controller. The control chip at least comprises a high-performance core and a real-time core; the method comprises the following steps: responding to a power-on signal of a control chip, loading a real-time operating system on a real-time core, and loading a time-sharing operating system on a high-performance core; initializing the non-critical peripheral according to the first configuration task through a time-sharing operation system of the high-performance core so as to start the non-critical peripheral; the first configuration task is allocated to the time-sharing operation system by the control chip; initializing the key peripheral according to the second configuration task through a real-time operating system of the real-time core so as to start the key peripheral; the second configuration task is allocated to the real-time operating system by the control chip. According to the technical scheme, the starting of the key peripheral is executed by the real-time operating system, so that the starting efficiency of the peripheral is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of automotive engineering technology, in particular to the field of vehicle-mounted controller technology, and specifically to a method, device, equipment and storage medium for starting a peripheral of a vehicle-mounted controller. Background Art

[0002] The current peripheral startup mechanism of the vehicle controller generally relies on the linear startup process of the time-sharing operating system, such as Linux (Linux Operating System), which requires all peripherals to wait for the operating system to be fully initialized before they can be started one by one. Since the operating system startup process takes a long time, the peripheral startup is delayed, making it difficult to meet the demand for fast response. The reason is that the multi-core task allocation strategy is not reasonable, resulting in the failure to fully utilize the system performance potential. Summary of the invention

[0003] The present application provides a method, device, equipment and storage medium for starting a peripheral of a vehicle-mounted controller, which improves the startup efficiency of the peripheral.

[0004] According to one aspect of the present application, a method for starting a peripheral device of an on-board controller is provided, which is applied to a control chip in the on-board controller; the control chip includes at least a high-performance core and a real-time core; the method includes:

[0005] In response to a power-on signal of the control chip, a real-time operating system is loaded on the real-time core, and a time-sharing operating system is loaded on the high-performance core;

[0006] Initializing non-critical peripherals according to a first configuration task through the time-sharing operating system of the high-performance core to start the non-critical peripherals; the first configuration task is assigned by the control chip to the time-sharing operating system;

[0007] The real-time operating system of the real-time core initializes the critical peripherals according to a second configuration task to start the critical peripherals; the second configuration task is allocated by the control chip to the real-time operating system.

[0008] According to another aspect of the present application, a peripheral startup device of an on-board controller is provided, which is configured in a control chip in the on-board controller; the control chip includes at least a high-performance core and a real-time core; the device includes:

[0009] A system loading module, for loading a real-time operating system on the real-time core and a time-sharing operating system on the high-performance core in response to a power-on signal of the control chip;

[0010] A first peripheral device startup module, used for initializing non-critical peripheral devices according to a first configuration task through the time-sharing operating system of the high-performance core to start the non-critical peripheral devices; the first configuration task is assigned by the control chip to the time-sharing operating system;

[0011] The second peripheral startup module is used to initialize the key peripherals according to the second configuration task through the real-time operating system of the real-time core to start the key peripherals; the second configuration task is allocated by the control chip to the real-time operating system.

[0012] According to another aspect of the present application, an electronic device is provided, the electronic device comprising:

[0013] one or more processors;

[0014] A memory for storing one or more programs;

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the peripheral startup methods of the vehicle-mounted controller provided in the embodiments of the present application.

[0016] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the peripheral device startup method of any vehicle-mounted controller provided in the embodiments of the present application is implemented.

[0017] This application loads a real-time operating system on the real-time core and a time-sharing operating system on the high-performance core in response to a power-on signal of the control chip; the time-sharing operating system of the high-performance core initializes non-critical peripherals according to a first configuration task to start the non-critical peripherals; the first configuration task is assigned to the time-sharing operating system by the control chip; the real-time operating system of the real-time core initializes critical peripherals according to a second configuration task to start the critical peripherals; the second configuration task is assigned to the real-time operating system by the control chip. The above technical solution improves the startup efficiency of peripherals by handing over the startup of critical peripherals to the real-time operating system. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flow chart of a peripheral device startup method of a vehicle-mounted controller provided according to Embodiment 1 of the present application;

[0019] Figure 2 is a flow chart of a method for starting a peripheral device of a vehicle-mounted controller provided in accordance with Embodiment 2 of the present application;

[0020] Figure 3It is a structural schematic diagram of an external device starting device of a vehicle-mounted controller provided according to the third embodiment of the present application;

[0021] Figure 4 It is a structural schematic diagram of an electronic device that implements the peripheral startup method of the vehicle-mounted controller of an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] In addition, it should be noted that in the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of relevant data such as the power-on signal and the first configuration task involved are in compliance with the relevant laws and regulations and do not violate public order and good morals.

[0025] Embodiment 1

[0026] Figure 1 This is a flowchart of a method for starting a peripheral device of a vehicle controller according to the first embodiment of the present application. This embodiment can be applied to the case where the peripheral device of the vehicle controller is initialized to start the peripheral device. It can be executed by the peripheral device starting device of the vehicle controller. The peripheral device starting device of the vehicle controller can be implemented in the form of hardware and / or software. The peripheral device starting device of the vehicle controller can be configured in a computer device, such as a control chip of the vehicle controller. Figure 1 As shown, the method includes:

[0027] S110 , in response to a power-on signal of the control chip, loading a real-time operating system on the real-time core and loading a time-sharing operating system on the high-performance core.

[0028] In this embodiment, the control chip refers to the electronic control unit of the vehicle controller, which is used to process the startup and control process; optionally, the control chip is a heterogeneous multi-core design, including at least a high-performance core and a real-time core. The power-on signal refers to the electrical signal received by the control chip when the power of the vehicle controller is turned on. These signals trigger the system startup process, including loading and initializing different operating systems. The real-time core refers to a core specifically used to process real-time tasks. The real-time core runs a real-time operating system. It has strict requirements on the response time of the task to ensure that the task is completed within a specific time limit. It is usually used to process high-priority, delay-sensitive tasks. A real-time operating system (RTOS) is an operating system designed to process real-time tasks, capable of completing tasks within strict time limits, ensuring that the system responds to events within a certain time, and it provides priority scheduling, interrupt management, and task synchronization functions to meet real-time requirements. A high-performance core refers to a core that focuses on performing high-performance computing tasks, usually running more complex tasks or processing large amounts of data, with a higher clock frequency and stronger processing power, and is used to process computing-intensive applications. A time-sharing operating system is a multi-tasking operating system that is designed to allocate computer resources to multiple tasks or users by time slices to achieve multi-tasking; it optimizes the utilization of system resources and provides a user-friendly environment. It is suitable for application scenarios that require complex calculations or processing. Specifically, the system can be Linux.

[0029] Exemplarily, in response to the power-on signal of the control chip, the configured boot program loads the RTOS on the real-time core and loads Linux on the high-performance core; Linux and RTOS each maintain their own task scheduling mechanism, in which the RTOS schedules tasks according to the task entry function, task priority, amount of task allocation resources and scheduling strategy configured by the developer when creating the task, and Linux uses the scheduling mechanism of the system kernel, and the developer completes task allocation and operation by setting up a daemon process, developing related application service programs, and other methods.

[0030] It should be noted that Linux and RTOS are executed in parallel. The two systems do not interfere with each other, but can communicate with each other.

[0031] S120, initializing non-critical peripherals according to a first configuration task through the time-sharing operating system of the high-performance core to start the non-critical peripherals; the first configuration task is allocated by the control chip to the time-sharing operating system.

[0032] The first configuration task is a control function or program that is pre-set based on actual conditions or experience values ​​and is used to initialize non-critical peripherals. Non-critical peripherals refer to peripherals that have low requirements on the real-time performance and stability of the system, usually including devices such as displays and keyboards. Their startup and initialization can be performed when the system load is low, without affecting the basic functions of the system.

[0033] Optionally, the time-sharing operating system of the high-performance core is initialized; when it is recognized that the initialization of the time-sharing operating system is completed, the non-critical peripherals are initialized according to the startup order of the non-critical peripherals and the first configuration task through the time-sharing operating system of the high-performance core.

[0034] Taking the Linux system as an example, the peripheral startup process of the Linux system can be implemented through the following steps:

[0035] S121, boot loading kernel: the system first loads the Linux kernel into the memory.

[0036] S122, kernel initialization: perform basic settings through the core function responsible for completing kernel initialization, including the establishment of core subsystems such as memory management and process management.

[0037] S123, hardware and driver initialization: In the kernel space, the hardware driver is gradually loaded and initialized through the initialization setting function to prepare the operating environment for the peripherals.

[0038] S124, system service and user environment configuration: Subsequently, the system service and user interface are configured by executing the initialization configuration file and the startup script.

[0039] S125, login and interactive interface: Finally, the system enters the login interface, and the user can interact with the system through the graphical interface.

[0040] S126. Initialize the non-critical peripherals according to the first configuration task to start the non-critical peripherals.

[0041] S130, initializing the critical peripherals according to the second configuration task through the real-time operating system of the real-time core to start the critical peripherals; the second configuration task is allocated from the control chip to the real-time operating system.

[0042] The second configuration task is a control function or program that is pre-set based on actual conditions or experience values ​​and is used to initialize critical peripherals. Critical peripherals are those that are essential to the real-time and stability of the system, usually including sensors, actuators, etc. Their initialization must be completed within strict time limits to ensure real-time response and normal operation of the system.

[0043] It is understandable that in the traditional mode of peripheral startup, the Linux system follows a strict startup sequence, that is, first perform a comprehensive system initialization, including memory management, file system mounting, and configuration of core services, etc. After this series of operations are completed, the peripheral drivers are loaded and activated one by one in a predetermined order. This process is relatively cumbersome, especially for non-critical peripherals, their loading is arranged at a later position, resulting in an extension of the overall startup time. In this process, the Linux system, as the master control, sends initialization commands to the slave controllers of each peripheral through system calls and device drivers, and the two parties work together to complete the configuration and startup of the peripherals. In this application, the configuration strategy of the peripherals is changed. The traditional idea is that Linux configures peripherals. It can achieve a more complete and comprehensive peripheral function configuration with the help of Linux's high-performance characteristics. However, for the sake of startup time, we put the control program of the necessary functions of the peripherals in the real-time core and the RTOS is responsible for it. The configuration of other complex functions that are not strictly time-sensitive continues to be placed in the high-performance core and is responsible for Linux; because the initialization process of the RTOS and Linux systems is executed in parallel, while the RTOS is processing the initialization of the peripherals, the Linux system is also performing its own configuration work on another core. This parallel processing not only significantly speeds up the startup of peripherals, especially network components (such as Ethernet cards), but also effectively shortens the time required for the overall system to reach a fully operational state.

[0044] The embodiment of the present application loads a real-time operating system on the real-time core and a time-sharing operating system on the high-performance core in response to a power-on signal of the control chip; the time-sharing operating system of the high-performance core initializes non-critical peripherals according to a first configuration task to start the non-critical peripherals; the first configuration task is assigned to the time-sharing operating system by the control chip; the real-time operating system of the real-time core initializes critical peripherals according to a second configuration task to start the critical peripherals; the second configuration task is assigned to the real-time operating system by the control chip. The above technical solution improves the startup efficiency of peripherals by handing over the startup of critical peripherals to the real-time operating system.

[0045] Embodiment 2

[0046] Figure 2This is a flow chart of a peripheral startup method for a vehicle-mounted controller provided in accordance with the second embodiment of the present application. Based on the technical solutions of the above embodiments, this embodiment refines "initializing the critical peripherals according to the second configuration task through the real-time operating system of the real-time core" into "determining the second peripheral type of the critical peripherals according to the second configuration task through the real-time operating system of the real-time core; calling the connection interface between the real-time core and the critical peripherals according to the second peripheral type, and initializing the critical peripherals based on the connection interface according to the second configuration task". It should be noted that for the parts not described in detail in the embodiments of the present application, please refer to the relevant statements of other embodiments. Figure 2 As shown, the method includes:

[0047] S210 , in response to a power-on signal of the control chip, loading a real-time operating system on the real-time core and loading a time-sharing operating system on the high-performance core.

[0048] S220, initializing non-critical peripherals according to a first configuration task through the time-sharing operating system of the high-performance core to start the non-critical peripherals; the first configuration task is allocated by the control chip to the time-sharing operating system.

[0049] Optionally, through the time-sharing operating system of the high-performance core, according to the first configuration task, a first peripheral type of the non-critical peripheral is determined; according to the first peripheral type, a connection interface between the high-performance core and the non-critical peripheral is called, and based on the connection interface, according to the first configuration task, the non-critical peripheral is initialized.

[0050] In this embodiment, the first peripheral type refers to the configuration type of non-critical peripherals; optionally, the first peripheral type may include at least one of on-chip peripherals and off-chip peripherals; specifically, on-chip peripherals are hardware functional modules integrated on the processor chip, directly connected to the internal bus of the processor, and these peripherals usually provide higher speed and lower latency because they do not need to communicate through an external interface; off-chip peripherals are hardware devices connected to the outside of the processor chip, communicating with the processor through an external bus interface, and these peripherals are usually used to expand system functions or provide higher performance, but may have higher latency and bandwidth limitations. The connection interface between the high-performance core and the non-critical peripherals is a bridge between the high-performance core and the non-critical peripherals, allowing them to communicate and exchange data. It defines a set of rules and protocols to ensure that the high-performance core can identify, configure and control the peripherals in a predetermined manner; optionally, the connection interface may include at least one of a hardware interface and a communication interface; specifically, the hardware interface refers to the standards and protocols of physical and electrical connections, which are used for data transmission and power supply between different components; the communication interface focuses on the software level and protocol, and is used for data exchange and command transmission between different software modules or devices.

[0051] Further, according to the first peripheral type, calling the connection interface between the high-performance core and the non-critical peripheral can be, if the non-critical peripheral is an on-chip peripheral, calling the pre-configured communication interface between the high-performance core and the non-critical peripheral; if the non-critical peripheral is an off-chip peripheral, determining the communication protocol between the high-performance core and the non-critical peripheral, and based on the communication protocol, calling the hardware interface between the high-performance core and the non-critical peripheral.

[0052] S230: Determine, by the real-time operating system of the real-time core, a second peripheral type of the critical peripheral according to the second configuration task.

[0053] S240: According to the second peripheral type, call a connection interface between the real-time core and the critical peripheral, and based on the connection interface and according to the second configuration task, initialize the critical peripheral to start the critical peripheral.

[0054] In this embodiment, the second peripheral type refers to the configuration type of the key peripheral; optionally, the second peripheral type may include at least one of an on-chip peripheral and an off-chip peripheral. The connection interface between the real-time core and the key peripheral is a bridge between the real-time core and the key peripheral, allowing them to communicate and exchange data. It defines a set of rules and protocols to ensure that the high-performance core can identify, configure and control the peripheral in a predetermined manner; optionally, the connection interface may include at least one of a hardware interface and a communication interface.

[0055] Optionally, according to the second peripheral type, calling the connection interface between the real-time core and the critical peripherals can be, if the critical peripherals are on-chip peripherals, calling a pre-configured communication interface between the real-time core and the critical peripherals; if the critical peripherals are off-chip peripherals, determining the communication protocol between the real-time core and the critical peripherals, and based on the communication protocol, calling the hardware interface between the real-time core and the critical peripherals.

[0056] For example, RTOS, with its lightweight and fast startup characteristics, can directly call a specially designed peripheral startup function at the earliest stage of system initialization, that is, during the execution of its main function. This function sends control information to the peripheral through the API (Application Programming Interface) interface provided by the peripheral. Peripherals are generally divided into on-chip peripherals and off-chip peripherals. The communication path of on-chip peripherals is integrated inside the chip. The operation of sending control instructions can be completed by calling the API in the chip manual. Off-chip peripherals need to use I2C (Inter-Integrated Circuit) and other communication buses for data transmission and reception.

[0057] It should be noted that the peripheral startup function plays the role of the master in the RTOS, and is responsible for sending specific startup instruction sets to the slave controllers of each peripheral, triggering the parallel initialization and self-test process of the peripherals, without waiting for the Linux system to complete all initialization work.

[0058] The embodiment of the present application loads a real-time operating system on the real-time core and a time-sharing operating system on the high-performance core in response to a power-on signal of the control chip; initializes non-critical peripherals according to a first configuration task through the time-sharing operating system of the high-performance core to start the non-critical peripherals; the first configuration task is assigned to the time-sharing operating system by the control chip; determines the second peripheral type of the critical peripherals according to a second configuration task through the real-time operating system of the real-time core; calls the connection interface between the real-time core and the critical peripherals according to the second peripheral type, and initializes the critical peripherals according to the second configuration task based on the connection interface to start the critical peripherals; the second configuration task is assigned to the real-time operating system by the control chip. The above technical solution can improve the accuracy and reliability of peripheral initialization by determining the peripheral type of the critical peripherals.

[0059] Embodiment 3

[0060] Figure 3 The schematic diagram of the structure of a peripheral startup device of a vehicle controller provided in the third embodiment of the present application can be applied to initialize the peripherals of the vehicle controller to start the peripherals. The peripheral startup device of the vehicle controller can be implemented in the form of hardware and / or software. The peripheral startup device of the vehicle controller can be configured in a computer device, such as a control chip of the vehicle controller, and the control chip includes at least a high-performance core and a real-time core. Figure 3 As shown, the device comprises:

[0061] The system loading module 310 is used to load the real-time operating system on the real-time core and load the time-sharing operating system on the high-performance core in response to the power-on signal of the control chip;

[0062] The first peripheral device startup module 320 is used to initialize the non-critical peripheral devices according to the first configuration task through the time-sharing operating system of the high-performance core to start the non-critical peripheral devices; the first configuration task is assigned by the control chip to the time-sharing operating system;

[0063] The second peripheral device startup module 330 is used to initialize the key peripheral devices according to the second configuration task through the real-time operating system of the real-time core to start the key peripheral devices; the second configuration task is allocated from the control chip to the real-time operating system.

[0064] The embodiment of the present application loads a real-time operating system on the real-time core and a time-sharing operating system on the high-performance core in response to a power-on signal of the control chip; the time-sharing operating system of the high-performance core initializes non-critical peripherals according to a first configuration task to start the non-critical peripherals; the first configuration task is assigned to the time-sharing operating system by the control chip; the real-time operating system of the real-time core initializes critical peripherals according to a second configuration task to start the critical peripherals; the second configuration task is assigned to the real-time operating system by the control chip. The above technical solution improves the startup efficiency of peripherals by handing over the startup of critical peripherals to the real-time operating system.

[0065] Optionally, the second peripheral device startup module 330 includes:

[0066] A second type determination unit, configured to determine a second peripheral type of the critical peripheral according to a second configuration task through a real-time operating system of the real-time core;

[0067] The second peripheral initialization unit is used to call the connection interface between the real-time core and the key peripheral according to the second peripheral type, and initialize the key peripheral based on the connection interface and according to the second configuration task.

[0068] Optionally, the second peripheral type includes an on-chip peripheral and an off-chip peripheral; the connection interface includes a hardware interface and a communication interface; accordingly, the second peripheral initialization unit is specifically used to:

[0069] If the critical peripheral is an on-chip peripheral, a pre-configured communication interface between the real-time core and the critical peripheral is called;

[0070] If the critical peripheral is an off-chip peripheral, a communication protocol between the real-time core and the critical peripheral is determined, and based on the communication protocol, a hardware interface between the real-time core and the critical peripheral is called.

[0071] Optionally, the first peripheral device starting module 320 includes:

[0072] A first type determination unit, configured to determine a first peripheral type of a non-critical peripheral according to a first configuration task through a time-sharing operating system of the high-performance core;

[0073] The first peripheral initialization unit is used to call the connection interface between the high-performance core and the non-critical peripheral according to the first peripheral type, and initialize the non-critical peripheral based on the connection interface and according to the first configuration task.

[0074] Optionally, the first peripheral type includes an on-chip peripheral and an off-chip peripheral; the connection interface includes a hardware interface and a communication interface; accordingly, the first peripheral initialization unit is specifically used to:

[0075] If the non-critical peripheral is an on-chip peripheral, a pre-configured communication interface between the high-performance core and the non-critical peripheral is called;

[0076] If the non-critical peripheral is an off-chip peripheral, a communication protocol between the high-performance core and the non-critical peripheral is determined, and based on the communication protocol, a hardware interface between the high-performance core and the non-critical peripheral is called.

[0077] Optionally, the first peripheral device starting module 320 is specifically used to:

[0078] Initialize the time-sharing operating system of the high-performance core;

[0079] When it is recognized that the initialization of the time-sharing operating system is completed, the time-sharing operating system of the high-performance core initializes the non-critical peripherals according to the startup sequence of the non-critical peripherals and according to the first configuration task.

[0080] The peripheral startup device of the vehicle controller provided in the embodiment of the present application can execute the peripheral startup method of the vehicle controller provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects for executing the peripheral startup method of each vehicle controller.

[0081] Embodiment 4

[0082] Figure 4 It is a structural diagram of an electronic device 410 that implements the peripheral startup method of the vehicle controller of an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present application described and / or required herein.

[0083] like Figure 4As shown, the electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In RAM413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, ROM412 and RAM413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.

[0084] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0085] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 411 executes the various methods and processes described above, such as a peripheral startup method of an onboard controller.

[0086] In some embodiments, the peripheral startup method of the vehicle-mounted controller may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the peripheral startup method of the vehicle-mounted controller described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured as a peripheral startup method of the vehicle-mounted controller by any other appropriate means (e.g., by means of firmware).

[0087] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0088] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other peripheral activation device of a programmable vehicle controller, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0089] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0090] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0091] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0092] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0093] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.

[0094] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for starting a peripheral device of a vehicle-mounted controller, characterized in that: A control chip used in a vehicle controller; the control chip includes at least a high-performance core and a real-time core; the method includes: In response to a power-on signal of the control chip, a real-time operating system is loaded on the real-time core, and a time-sharing operating system is loaded on the high-performance core; Initializing non-critical peripherals according to a first configuration task through the time-sharing operating system of the high-performance core to start the non-critical peripherals; the first configuration task is assigned by the control chip to the time-sharing operating system; The real-time operating system of the real-time core initializes the critical peripherals according to a second configuration task to start the critical peripherals; the second configuration task is allocated by the control chip to the real-time operating system.

2. The method according to claim 1, characterized in that Initializing the critical peripherals by the real-time operating system of the real-time core according to the second configuration task includes: Determining, by the real-time operating system of the real-time core, a second peripheral type of the critical peripheral according to the second configuration task; According to the second peripheral type, a connection interface between the real-time core and the critical peripheral is called, and based on the connection interface, the critical peripheral is initialized according to the second configuration task.

3. The method according to claim 2, characterized in that The second peripheral type includes on-chip peripherals and off-chip peripherals; the connection interface includes a hardware interface and a communication interface; accordingly, according to the second peripheral type, calling the connection interface between the real-time core and the key peripheral includes: If the critical peripheral is an on-chip peripheral, calling a pre-configured communication interface between the real-time core and the critical peripheral; If the critical peripheral is an off-chip peripheral, a communication protocol between the real-time core and the critical peripheral is determined, and based on the communication protocol, a hardware interface between the real-time core and the critical peripheral is called.

4. The method according to claim 1, characterized in that: Initializing the non-critical peripherals according to the first configuration task through the time-sharing operating system of the high-performance core includes: Determining, by the time-sharing operating system of the high-performance core, a first peripheral type of a non-critical peripheral according to a first configuration task; According to the first peripheral type, a connection interface between the high-performance core and the non-critical peripheral is called, and based on the connection interface, the non-critical peripheral is initialized according to the first configuration task.

5. The method according to claim 4, characterized in that The first peripheral type includes on-chip peripherals and off-chip peripherals; the connection interface includes a hardware interface and a communication interface; accordingly, according to the first peripheral type, calling the connection interface between the high-performance core and the non-critical peripheral includes: If the non-critical peripheral is an on-chip peripheral, calling a pre-configured communication interface between the high-performance core and the non-critical peripheral; If the non-critical peripheral is an off-chip peripheral, a communication protocol between the high-performance core and the non-critical peripheral is determined, and based on the communication protocol, a hardware interface between the high-performance core and the non-critical peripheral is called.

6. The method according to claim 1, characterized in that Initializing non-critical peripherals through the time-sharing operating system of the high-performance core according to the first configuration task includes: Initializing the time-sharing operating system of the high-performance core; When it is recognized that the initialization of the time-sharing operating system is completed, the non-critical peripherals are initialized according to the startup sequence of the non-critical peripherals and the first configuration task through the time-sharing operating system of the high-performance core.

7. A peripheral starting device for a vehicle-mounted controller, characterized in that: A control chip configured in a vehicle-mounted controller; the control chip includes at least a high-performance core and a real-time core; the device includes: A system loading module, for loading a real-time operating system on the real-time core and a time-sharing operating system on the high-performance core in response to a power-on signal of the control chip; A first peripheral device startup module, used for initializing non-critical peripheral devices according to a first configuration task through the time-sharing operating system of the high-performance core to start the non-critical peripheral devices; the first configuration task is assigned by the control chip to the time-sharing operating system; The second peripheral startup module is used to initialize the key peripherals according to the second configuration task through the real-time operating system of the real-time core to start the key peripherals; the second configuration task is allocated by the control chip to the real-time operating system.

8. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the peripheral startup method of the vehicle controller as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the peripheral startup method of the vehicle-mounted controller as described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the peripheral device startup method of the vehicle-mounted controller according to any one of claims 1 to 6.