Chip system control method, system-level chip and vehicle

Through the heterogeneous chip system of the heterogeneous chip system, the first core with lower processing performance is used to verify the calibration data in advance and restart the chip, which solves the problem of long wake-up time of the system-level chip and achieves fast startup and efficient control.

CN118244689BActive Publication Date: 2024-09-03XIAOMI EV TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410684947.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-03
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

Existing system-level chips have a long wake-up time, which prolongs the device startup time and affects the control efficiency and user experience of the device.

Method used

Using a heterogeneous chip system, the first core with lower processing performance is used to detect calibration data before waking up, and notifies the second core to power on when the calibration data is normal, ensuring that the second core starts the application after synchronizing the wake-up signal, achieving fast Wake up the process and restart the chip if necessary to reduce startup time.

Benefits of technology

By verifying the calibration data early and restarting the wake-up process in a timely manner, the startup time of the device is significantly saved, the device is prevented from being used in an unawakened state, and the user experience and device control efficiency are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118244689B
    Figure CN118244689B
Patent Text Reader

Abstract

The present disclosure relates to a chip system control method, a system-level chip and a vehicle, and relates to the field of chip control technology. The present disclosure includes a system-level chip, which includes a first core and a second core, and the processing performance of the first core is less than the processing performance of the second core; the method includes: the first core responds to the system-level chip switching to a wake-up state, detects the calibration data stored in the first storage space, and notifies the second core to power on when the calibration data is normal; the first core responds to the second core powering on to enter the wake-up state, and synchronizes the wake-up signal to the second core; the second core responds to the wake-up signal to control the application to start. Using the chip system control method proposed in the present disclosure, the startup time of the device can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of chip control technology, and in particular to a chip system control method, a system-level chip and a vehicle. Background Art

[0002] At present, system-level chips exist in vehicles, robots and other equipment. System-level chips are used to control vehicles, robots and other equipment to achieve some control functions.

[0003] In the related art, before the system-level chip runs, it is necessary to wake up the system-level chip in the device to realize the startup of the device. The awakened system-level chip can control the device to realize the control function, but the wake-up time of the system-level chip is long and the startup time of the device is long. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a chip system control method, a system-level chip and a vehicle.

[0005] According to a first aspect of an embodiment of the present disclosure, a chip system control method is provided, including a system-level chip, the system-level chip including a first core and a second core, the processing performance of the first core is lower than the processing performance of the second core; the method includes:

[0006] The first core detects calibration data stored in the first storage space in response to the system-level chip switching to the awake state, and notifies the second core to power on when the calibration data is normal;

[0007] In response to the second core being powered on, the first core enters the wake-up state and synchronizes a wake-up signal to the second core;

[0008] The second core controls the application to start in response to the wake-up signal.

[0009] Optionally, the method further comprises:

[0010] The first core synchronizes a sleep signal to the second core in response to the system-on-chip switching to a sleep state;

[0011] The second core controls the application program to sleep in response to the sleep signal;

[0012] In response to the second core successfully hibernating, the first core saves the calibration data to the first storage space and enters a hibernation state after saving the calibration data to the first storage space; the calibration data is used to verify whether the second storage space can be normally accessed by the second core.

[0013] Optionally, the method further comprises:

[0014] The first core synchronizes a sleep signal to the second core in response to the system-on-chip switching to a sleep state;

[0015] The second core saves the calibration data to the first storage space in response to the sleep signal.

[0016] Optionally, after the first core synchronizes a sleep signal to the second core in response to the system-on-chip switching to a sleep state, the method further includes:

[0017] When the first core does not receive the sleep feedback signal from the second core for more than a first preset time period, the first core notifies the second core to power off, and controls the first core to switch to a shutdown state or the sleep state.

[0018] Optionally, the second core controls the application program to hibernate in response to the hibernation signal, including:

[0019] The second core starts a sleep service in response to the sleep signal, and suspends the application program to the second storage space through the sleep service; or,

[0020] The second core executes a process kill operation on the application in response to the sleep signal.

[0021] Optionally, the method further comprises:

[0022] After the second core controls the application to sleep in response to the sleep signal, the variable mark stored in the first storage space is switched to a target variable mark;

[0023] In response to the second core successfully being put into sleep mode, the first core saves the calibration data to the first storage space, including:

[0024] The first core detects that the variable mark is switched to the target variable mark, and saves the calibration data to the first storage space.

[0025] Optionally, the method further comprises:

[0026] In response to the second core failing to hibernate, the first core notifies the second core to power off.

[0027] Optionally, the method further comprises:

[0028] In response to the second core successfully being put into sleep mode, the first core disables a designated interrupt function of the first core.

[0029] Optionally, the method further comprises:

[0030] In response to the second core successfully sleeping, the first core turns off a timer; the timer is used to time the operation of the first core and / or the second core.

[0031] Optionally, the method further comprises:

[0032] In response to the second core successfully hibernating, the first core saves the entry of the first core in the first storage space.

[0033] Optionally, the method further comprises:

[0034] In response to the second core successfully sleeping, the first core configures a wake-up mode of the first core, where the wake-up mode includes a cold start or a wake-up start.

[0035] Optionally, the method further comprises:

[0036] In response to the wake-up mode configured before sleep being a cold start, the first core stores the device driving data in the third storage space; after the first core is powered off, the device driving data stored in the third storage space will not be lost; or,

[0037] In response to the wake-up mode configured before the sleep state being a wake-up start, the first core stores the device driving data in the first storage space.

[0038] Optionally, after the first core enters the wake-up state in response to the second core being powered on and synchronizing a wake-up signal to the second core, the method further includes:

[0039] When the first core does not receive the wake-up feedback signal of the second core for more than a second preset time period, the first core restarts the second core.

[0040] Optionally, after the first core enters the wake-up state in response to the second core being powered on and synchronizing a wake-up signal to the second core, the method further includes:

[0041] When the first core receives the wake-up feedback signal from the second core within the second preset time period, the first core switches to the running state and synchronizes the running signal to the second core;

[0042] When the first core does not receive the operation feedback signal of the second core for more than a third preset time period, the first core restarts the second core.

[0043] Optionally, the method further comprises:

[0044] In response to the system-level chip switching to the awake state, the first core detects whether the calibration data stored in the first storage space is abnormal, and notifies the first core and the second core to restart if abnormal.

[0045] Optionally, the first core includes an AutoSar master control, and the second core includes an AutoSar slave control; in response to the second core being powered on, the first core enters the wake-up state and synchronizes a wake-up signal to the second core, including:

[0046] In response to the second core being powered on, the AutoSar master controller enters the wake-up state and synchronizes the wake-up signal to the AutoSar slave controller.

[0047] According to a second aspect of the embodiments of the present disclosure, a system-on-chip is provided.

[0048] The system-level chip includes a first core and a second core, and the processing performance of the first core is lower than the processing performance of the second core;

[0049] The first core detects calibration data stored in the first storage space in response to the system-level chip switching to the awake state, and notifies the second core to power on when the calibration data is normal;

[0050] In response to the second core being powered on, the first core enters the wake-up state and synchronizes a wake-up signal to the second core;

[0051] The second core controls the application to start in response to the wake-up signal.

[0052] According to a third aspect of an embodiment of the present disclosure, a vehicle is provided, on which the system-level chip provided by the second aspect of an embodiment of the present disclosure is configured.

[0053] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0054] Before the first core is awakened successfully and before the first core enters the awakening state, the first core verifies the calibration data. If the verification fails at this time, the first core and the second core will be notified to power off and restart immediately. The verification timing is early, so once the verification failure is found, the awakening process can be restarted as soon as possible, thereby saving the awakening startup time.

[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0057] Figure 1 The figure is a flowchart of a chip system control method according to an exemplary embodiment.

[0058] Figure 2 The diagram is a schematic diagram showing a power module supplying power to a system-on-chip and various storage spaces according to an exemplary embodiment.

[0059] Figure 3 The diagram is a schematic diagram showing a synchronization state between an Autosar master control and an Autosar slave control according to an exemplary embodiment.

[0060] Figure 4 The diagram is a schematic diagram showing a synchronization state between an Autosar master control and an Autosar slave control according to an exemplary embodiment.

[0061] Figure 5 The figure is a flowchart of a chip system control method according to an exemplary embodiment.

[0062] Figure 6 The figure is a flowchart of a chip system control method according to an exemplary embodiment.

[0063] Figure 7 The figure is a schematic diagram showing a sleep interaction between a first core and a second core according to an exemplary embodiment.

[0064] Figure 8 The figure is a schematic diagram showing a wake-up interaction between a first core and a second core according to an exemplary embodiment.

[0065] Fig. 9 The figure is a block diagram of a system-on-chip according to an exemplary embodiment.

[0066] Fig.10 is a block diagram of a vehicle according to an exemplary embodiment.

[0067] Fig.11 is a block diagram of a chip system control device according to an exemplary embodiment.

[0068] Fig.12 is a block diagram of a chip system according to an exemplary embodiment. DETAILED DESCRIPTION

[0069] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0070] The embodiments described in some embodiments of the present disclosure below do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0071] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0072] Before introducing the embodiments of the present disclosure, some technical terms involved in the embodiments of the present disclosure are first introduced so that readers can more easily understand the exemplary solutions of the present disclosure.

[0073] (1) System on Chip (SOC), see Figure 2 As shown, the system-level chip can also be called a system on chip, and the system-level chip includes a first core (MCores), a second core (ACores), a static random access memory (SARM) and a standby random access memory (StandbyRAM). MCores are referred to as M cores in the following examples, and ACores are referred to as A cores in the following examples.

[0074] Among them, static random access memory is a semiconductor memory that can maintain data without refresh operation, and standby random access memory is used to maintain the status of data and programs in sleep mode or standby mode. When the system-level chip enters sleep mode, the standby random access memory allows the system-level chip to wake up quickly and restore to the previous state without restarting the entire system-level chip.

[0075] Among them, if the device is a movable device such as a vehicle and a robot, the first core controls the driving system of the device, and the second core controls the vehicle system on the device. The first core and the second core communicate through an IPC (inter-process communication) bus, and the first core stores the calibration data in a static random access memory or a standby random access memory.

[0076] If the device is a mobile phone, tablet, or computer, the first core can be used to control the device's games, video editing, applications, multitasking, camera, and other tasks; the second core can be used to process background tasks, lightweight tasks (such as music playback and web browsing), sensor data, low-latency tasks, etc.

[0077] It is worth noting that the present disclosure uses vehicles or robots as examples of devices to illustrate some scenarios or examples, but vehicles or robots are not limitations on the devices. They are an exemplary solution for the devices. The first core and the second core proposed in the present disclosure can also be applied to devices such as mobile phones, tablets and computers.

[0078] In some scenarios, taking the device as a vehicle, the first core controls the vehicle's driving system, steering system, braking system and other driving systems to achieve vehicle acceleration, braking, steering and other actions; the second core controls the vehicle's central control screen, music player, ambient light, wipers, air conditioning and other on-board equipment.

[0079] In other scenarios, taking the device as a robot, the first core controls the robot's driving system, steering system, braking system and other driving systems to realize the robot's automatic acceleration, braking, steering and other actions; the second core controls the robot's voice interaction, smart home control, multimedia playback and other functions.

[0080] It can be understood that the first storage space referred to in the embodiment of the present disclosure may be a static random access memory or a standby random access memory.

[0081] (2) Main memory chip (Double Data Rate, DDR), external non-volatile storage (Embedded Multi Media Card, EMMC) and boot storage (Not Ordinary Random Access Memory Flash, Norflash), these three storage spaces are located outside the system-level chip. The main memory chip is a dynamic random access memory that can transmit data at the rising and falling edges of each clock cycle, thereby achieving a double data transfer rate. The second core is used to access the data in the main memory chip to control the vehicle system of the device; external non-volatile storage is a storage space that integrates flash memory and flash memory controller, which does not require an additional controller chip; boot storage is a non-volatile flash memory storage space that supports random access and high-speed reading.

[0082] It can be understood that the second storage space referred to in the embodiment of the present disclosure may be a main memory chip, and the third storage space may be a boot storage or a hard disk, etc.

[0083] (3) Power module. The power module is a power management integrated circuit (Power Management IC, PMIC), see Figure 2 As shown, the power module is connected to the first core, the second core and each storage space respectively, wherein the power module is connected to the first core and the second core via I2C (serial bus). The storage space includes static random access memory, standby random access memory, main memory chip, external non-volatile storage and boot storage, and the power module can receive control instructions sent by the first core to start or stop supplying power to the static random access memory and standby random access memory in the system-level chip.

[0084] (4) Startup, Resume, Running, Suspend and Shutdown. The startup state is the initial state of the device when it is powered on. At this time, the system software and driver need to be loaded; the waking state refers to the process of the device recovering from the suspend state to the running state. In the waking state, the device will restore the previously saved data. The duration of the waking state is the startup time of the device; the running state is the state of normal operation of the device. In the running state, the device can run applications and process data; the suspend state refers to the device saving data to the hard disk or other non-volatile storage media and entering a low power consumption state; the shutdown state refers to the state in which the hardware in the device stops working. In the shutdown state, the data saved by the device may be lost, and the device needs to be restarted before it can be used again.

[0085] In the related art, the wake-up process of the device includes: the first core wakes up first, and then notifies the second core to wake up after the first core is woken up, and the second core reads the calibration data from the main memory chip and verifies the calibration data. If the second core fails to verify the calibration data, the first core will power off and restart both the first core and the second core, and re-perform the wake-up process to verify the calibration data.

[0086] The present disclosure provides a chip system control method, in which an execution subject of verifying calibration data is set in a first core, and a timing of verifying calibration data is set before the first core is successfully awakened.

[0087] First, the first core verifies the calibration data earlier than the second core, so it can power off and restart earlier when the calibration data is abnormal, thereby reducing the startup time of the device; second, the first core will not be awakened before the first core verifies the calibration data to be normal, so the user cannot use the vehicle's driving system to control the vehicle, and there is no possibility of dangerous driving; third, the first core will not be awakened before the first core verifies the calibration data to be normal, so the first core will not be awakened while the second core is not awakened. Both the first core and the second core are not awakened, which means that both the vehicle's driving system and the on-board system are not started at the user level.

[0088] Based on this, Figure 1 is a flow chart of a chip system control method according to an exemplary embodiment. Figure 1 As shown, the chip system control method is applied to a system-on-chip, the system-on-chip includes a first core and a second core, and the chip system control method includes the following steps.

[0089] In step S11 , in response to the system-on-chip switching to a wake-up state, the first core detects calibration data stored in a first storage space, and notifies the second core to power on when the calibration data is normal.

[0090] See also Figure 2 As shown, the first storage space may be a static random access memory or a standby random access memory located in the system-on-chip.

[0091] The first core and the second core are heterogeneous chips in the system-level chip. The processing performance of the first core is less than that of the second core. The first core can be the core of the Cortex-M (processor) hardware platform; the second core can be the core of the Cortex-A (processor) hardware platform, in which an operating system is deployed.

[0092] Optionally, the first core may respond to the system-level chip switching from the sleep state to the wake-up state, check whether the calibration data stored in the first storage space is abnormal, and notify the second core to power on if it is normal.

[0093] For example, taking the first core as the M core, the second core as the A core, and the first storage space as the standby random access memory, the M core can read the calibration data from the standby random access memory and detect whether the calibration data is abnormal. If normal, the A core can be notified to power on.

[0094] The calibration data is used to check whether the main memory can be accessed normally by the second core. In the wake-up process of the device, the calibration data needs to be verified. Only when the verification is successful can it be said that the main memory can be accessed normally by the second core. Then, when the device is in operation, the second core can normally access the data stored in the main memory.

[0095] For example, taking the case where the first core is the M core, the second core is the A core, the first storage space is the standby random access memory, and the on-board data is the air conditioning control data of the device, in the wake-up process of the device, the M core needs to verify the calibration data stored in the standby random access memory. If the verification is successful, it means that the main memory can be accessed by the A core, and then the A core is notified to power on. Only then can the A core read the air conditioning control data from the main memory and control the air conditioning operation on the device according to the air conditioning control data.

[0096] Optionally, in response to the system chip switching from a sleep state to a wake-up state, the first core detects whether the calibration data stored in the first storage space is abnormal, and notifies the first core and the second core to power off and restart when the calibration data is abnormal.

[0097] In step S12, in response to the second core being powered on, the first core enters the wake-up state and synchronizes a wake-up signal to the second core.

[0098] See also Figure 4 As shown, the first core and the second core can communicate via the IPC bus, so that the first core can synchronize its own state to the second core via the IPC bus.

[0099] For example, when the first core enters the startup state, it can synchronize the startup state to the second core; when the first core enters the wake-up state, it can synchronize the wake-up state to the second core; when the first core enters the running state, it can synchronize the running state to the second core; when the first core enters the sleep state, it can synchronize the sleep state to the second core; when the first core enters the shutdown state, it can synchronize the shutdown state to the second core. After the states of the first core and the second core are synchronized, the states of the driving system controlled by the first core and the vehicle system controlled by the second core will also be synchronized, improving the user experience.

[0100] Synchronizing the status of the driving system controlled by the first core and the vehicle-mounted system controlled by the second core on the device will reduce the user experience. The reason is: taking the device as a vehicle and the vehicle-mounted system including air conditioning as an example, if the status of the driving system controlled by the first core and the vehicle-mounted system controlled by the second core are not synchronized, the driving system controlled by the first core may be in operation, but the vehicle-mounted system controlled by the second core may be in sleep mode. At this time, the vehicle can drive normally, but the air conditioning on the vehicle cannot be used, which reduces the user experience.

[0101] After synchronizing the status of the driving system controlled by the first core and the vehicle-mounted system controlled by the second core on the device, if the driving system controlled by the first core is in operation, the operation status will be synchronized with the second core, and the second core also controls the vehicle-mounted system to be in operation. At this time, the vehicle can drive normally, and the air conditioner on the vehicle can be used normally, and the user experience is improved.

[0102] It can be understood that after the second core can be powered on normally, it means that the second core can be used normally. At this time, the first core enters the wake-up state again and quickly wakes up the first core.

[0103] In the relevant wake-up process, the first core notifies the second core to wake up, and the second core reads the calibration data from the main memory and detects the calibration data. If the calibration data is normal, it means that the second core can access the main memory normally; if the calibration data is abnormal, it means that the second core cannot access the main memory. At this time, the second core will crash. In order to ensure that the second core can run smoothly, the first core will notify the first core and the second core to power off and restart, and re-perform the wake-up process for verification, but this also increases the startup time of the device.

[0104] In the wake-up process of the embodiment of the present disclosure, the first core reads the calibration data from the first storage space, such as the standby random access memory, and detects the calibration data. If the calibration data is normal, it means that the second core can access the main memory normally; if the calibration data is abnormal, it means that the second core cannot access the main memory, and the second core will crash. In order to ensure that the second core can run smoothly, the first core will notify the first core and the second core to power off and restart, and re-perform the wake-up process for verification, so that the startup time of the device is shortened.

[0105] The reason why it shortens the startup time of the device is that the calibration timing in the relevant wake-up process is after the first core is successfully awakened; the calibration timing in the wake-up process in the embodiment of the present disclosure is before the first core is successfully awakened. When the first core itself has not been awakened successfully and the first core finds that the calibration data is abnormal, it will immediately notify the first core and the second core to power off and restart, rather than after the first core itself is awakened successfully and the second core finds that the calibration data is abnormal, then notify the first core and the second core to power off and restart. The time point when the first core powers off and restarts after discovering the abnormal calibration data is earlier than the time point when the second core powers off and restarts after discovering the abnormal calibration data, so the overall startup time of the device can be saved.

[0106] In step S13, the second core controls the application to wake up in response to the wake-up signal.

[0107] Optionally, the second core controls the vehicle system of the device through an application program, and after the application program is awakened, the second core can run the application program to control the vehicle system of the device. The application program can be configured in the controller, and different application programs can also be configured in different vehicle systems.

[0108] For example, the second core can control the device's air conditioner through application A, control the device's wiper through application B, control the device's music player through application C, etc.

[0109] Through the above technical solution, the embodiment of the present disclosure uses the first core to detect whether the calibration data stored in the first space is abnormal, which has at least the following advantages:

[0110] Firstly, before the first core is awakened successfully, that is, before the first core enters the awakening state, the first core verifies the calibration data. If the verification fails at this time, the first core and the second core will be notified to power off and restart immediately. The verification timing is early, so once the verification failure is found, the awakening process can be restarted as soon as possible, thereby saving the awakening startup time.

[0111] Secondly, before the first core is awakened successfully, if the first core finds that the verification fails, it will immediately notify the first core and the second core to power off and restart. It can be seen that until the calibration data is successfully verified, the first core is always in a non-awakened state, and there will be no situation where the first core is powered on and then powered off and restarted. Taking the device as a vehicle as an example, before the calibration data is successfully verified, the first core is always in a non-awakened state. At this time, the user cannot use the driving system on the vehicle, and cannot control the vehicle's driving. At the user level, it avoids the situation where the vehicle suddenly loses power after the user controls the vehicle's driving.

[0112] Thirdly, after the first core successfully verifies the calibration data, it means that the second core can access the main memory normally. Only then will the second core be notified to power on and control the first core to wake itself up. During this process, the first core and the second core will only enter the wake-up state when they can be used normally.

[0113] An exemplary embodiment of the above wake-up process is introduced below, which is used to explain that after the first core enters the wake-up state in response to the second core being powered on and synchronizing the wake-up signal to the second core, if the first core does not receive the wake-up feedback signal from the second core within a second preset time period, the second core is restarted.

[0114] The wake-up feedback signal is used to indicate that the second core is successfully awakened.

[0115] See also Figure 8 As shown, a timer can be configured for the first core. When the first core synchronizes the wake-up signal to the second core, the timer is started. When the duration counted by the timer exceeds the second preset duration, if the first core has not received the wake-up feedback signal from the second core, it means that the wake-up of the second core has failed. At this time, the second core will be notified to power off and restart to re-perform the wake-up process.

[0116] Optionally, when the first core receives a wake-up feedback signal from the second core within the second preset time period, it switches to the running state and synchronizes the running signal to the second core; when the first core does not receive the running feedback signal from the second core for more than a third preset time period, it restarts the second core.

[0117] The operation feedback signal is used to indicate that the second core operates successfully.

[0118] See also Figure 8 As shown, after the first core receives the wake-up feedback signal from the second core within the second preset time, it indicates that the second core is awakened successfully. After that, the first core switches from the awake state to the running state, and synchronizes the running signal to the second core. If the first core has not received the running feedback signal after exceeding the third preset time, it indicates that the second core has failed to start. At this time, the second core will be notified to power off and restart, and the wake-up process will be repeated.

[0119] Through the above technical solution, the first core will synchronize its own state to the second core by means of a signal. If the feedback response from the second core is not received, the second core will be restarted to perform the wake-up process again; if the feedback response from the second core is received, it means that the first core has successfully synchronized the state to the second core. By determining whether the second core sends a feedback response to the first core, it can be determined whether the states of the first core and the second core are synchronized. If a feedback response is sent, it means that the states are synchronized. If no feedback response is sent, it means that the states are not synchronized, and the second core will be notified to power off and restart, thereby ensuring that the first core and the second core run in synchronization with each other, and avoiding the state asynchrony between the first core and the second core that reduces the user experience.

[0120] An exemplary scheme for state synchronization between the first core and the second core is introduced below.

[0121] The device is equipped with AutoSar (Automotive Open System Architecture) components, which are used to manage the state synchronization between the first core and the second core. The AutoSar components include AutoSar master control and AutoSar slave control. Figure 4 As shown, Figure 4 The master controller is the AutoSar master controller, the slave controller is the AutoSar slave controller, the first core includes the AutoSar master controller, and the second core includes the AutoSar slave controller.

[0122] Optionally, the AutoSar master receives a state switching signal sent by an external device or a state switching signal triggered by a user, switches the state of the first core according to the state switching signal, and synchronizes the state switching signal to the AutoSar slave of the second core, so that the AutoSar slave switches the state of the second core.

[0123] For example, taking the state switching signal as a signal for switching from a sleep state to a wake-up state, the AutoSar master control receives the signal for switching from a sleep state to a wake-up state, controls the first core to switch to the wake-up state; and synchronizes the wake-up signal to the AutoSar slave control; the AutoSar slave control controls the second core to switch from the sleep state to the wake-up state according to the wake-up signal.

[0124] For example, taking the state switching signal as a signal for switching from the awake state to the sleep state, the AutoSar master control receives the signal for switching from the awake state to the sleep state, controls the first core to switch to the sleep state; and synchronizes the sleep signal to the AutoSar slave control; the AutoSar slave control controls the second core to switch from the awake state to the sleep state according to the sleep signal.

[0125] For related technologies, see Figure 3 As shown, Figure 3The master controller in is the AutoSar master controller. Figure 3 The slave controller in the first core is the AutoSar slave controller. The AutoSar master controller configured in the first core is used to notify the AutoSar slave controller of the second core that the state of the first core is switched, but it does not control the state synchronization of the first core and the second core.

[0126] See also Figure 3 As shown, the AutoSar master control will notify the AutoSar slave control that the first core has switched from the startup state to the running state, and the AutoSar slave control will then control the second core to switch from the startup state to the wake-up state, and then from the wake-up state to the running state. This may cause the states of the first core and the second core to be unsynchronized. For example, the first core has switched to the running state, but the second core switches from the startup state to the wake-up state only after receiving the state switching signal from the first core to the running state. When the first core is in the running state, the second core is still in the startup state or the wake-up state. At the user level, the driving system controlled by the first core can be used, but the vehicle system controlled by the second core has not yet been started, and the user experience is low.

[0127] In the present disclosure, please refer to Figure 4 As shown, when the first core switches from the startup state to the awake state, the AutoSar master control will notify the AutoSar slave control to control the second core to switch from the startup state to the awake state; after the first core switches from the awake state to the running state, the AutoSar master control will notify the AutoSar slave control to control the second core to switch from the awake state to the running state; when the first core switches from the running state to the sleep state, the AutoSar master control will notify the AutoSar slave control to control the second core to switch from the running state to the sleep state. In this way, the states between the first core and the second core are synchronized.

[0128] Through the above technical solution, by deploying the AutoSar master control in the first core and the AutoSar slave control in the second core, the state synchronization between the AutoSar master control and the AutoSar slave control can be used to ensure the state synchronization between the first core and the second core, thereby avoiding the situation where the user experience is reduced due to state asynchrony.

[0129] The following describes an exemplary embodiment of the sleep process. In this exemplary embodiment, the first core stores the calibration data in the first storage space. Figure 5 , including the following steps.

[0130] In step S21 , the first core synchronizes a sleep signal to the second core in response to the system-on-chip switching to a sleep state.

[0131] Optionally, the external device can send a state switching signal to the CAN bus, the first core receives the state switching signal output by the CAN bus, switches from the wake-up state to the sleep state based on the state switching signal, and synchronizes the sleep signal to the second core, notifying the second core to switch from the wake-up state to the sleep state.

[0132] Optionally, the user can trigger a state switching signal, which is directly sent to the first core. The first core switches from the awake state to the sleep state in response to the state switching signal, and synchronizes the sleep signal to the second core, notifying the second core to switch from the awake state to the sleep state.

[0133] Since the AutoSar master control is deployed in the first core and the AutoSar slave control is deployed in the second core, the AutoSar master control can receive the state switching signal triggered by the external device or the user, and control the first core to switch from the awake state to the sleep state. The AutoSar master control then synchronizes the sleep signal to the AutoSar slave control.

[0134] Optionally, after the first core synchronizes the sleep signal to the second core, when the sleep feedback signal from the second core is not received for more than a first preset time, the second core is notified to power off, and the first core is controlled to switch to a shutdown state or a sleep state.

[0135] The sleep feedback signal is used to indicate that the second core is capable of performing sleep.

[0136] See also Figure 7 As shown, a timer can be configured for the first core. After the first core sends a sleep signal to the second core, the timer starts timing. If the first core has not received a sleep feedback signal from the second core within a first preset time period, it means that the application controlled by the second core cannot enter sleep mode. At this time, the second core can be directly powered off and switched from the running state to the shutdown state or the sleep state, and the first core can be controlled to switch from the running state to the shutdown state or the sleep state, so as to control the first core and the second core to be forced to power off or sleep.

[0137] In step S22, the second core controls the application program to hibernate in response to the hibernation signal.

[0138] Optionally, the second core may execute a process kill on the application in response to the sleep signal, close the application through the process kill operation, and control the second core to sleep after closing the application.

[0139] The application may include multiple applications. The process killing operation may be implemented through a preset mechanism of the system kernel in the second core, or through a certain application. The process corresponding to the application may be called an executor. After executing the process killing operation to close all other processes, the executor may perform self-closure, thereby terminating the processes corresponding to all applications running on the second core.

[0140] In this way, all processes will be restarted when the second core wakes up, and the redundant data of these processes can be cleared during hibernation to prevent these redundant data from occupying system resources.

[0141] Optionally, the second core may start a sleep service in response to the sleep signal, and suspend the application program to the second storage space through the sleep service.

[0142] The sleep service can be a thread running in the second core, which can be used to monitor other threads. After the second core receives the state switching information, if the sleep service does not monitor the voting information sent by other threads within the preset time, the sleep service of the operating system kernel can be started to suspend the application to the memory.

[0143] Suspending the application to the memory may refer to storing the data of the application in the main memory chip.

[0144] For example, the sleep service may be a WakeUP Count service of the Linux kernel, or any other system kernel service that can retain application data, which is not limited in the present disclosure.

[0145] Compared with the method of killing the process, by retaining the application in the main memory, the time required for waking up the second core can be further reduced, and the speed of switching the system-level chip from the sleep state to the wake-up state can be increased.

[0146] In step S23, in response to the second core successfully hibernating, the first core saves the calibration data to the first storage space, and enters a hibernation state after saving the calibration data to the first storage space; the calibration data is used to verify whether the second storage space can be normally accessed by the second core.

[0147] After the first core determines that the second core has successfully hibernated, the calibration data will be saved in the first storage space, so that when the device subsequently executes the wake-up process, the first core reads the calibration data from the first storage space, calibrates whether the second storage space can be accessed by the second core, and saves the calibration data in the first storage space before the first core enters a hibernation state.

[0148] In the related technology, in the hibernation process of the device, the second core saves the calibration data in the second storage space. Then in the subsequent wake-up process of the device, the second core needs to read the calibration data from the second storage space for detection after the first core is successfully awakened. This results in the calibration data detection time point being after the first core is successfully awakened. If the verification fails, the startup time of the device will increase.

[0149] Through the above technical solution, in the sleep process of the device, the first core will save the calibration data in the first storage space after the second core successfully sleeps, and will enter the sleep state after saving the calibration data in the first storage space; so that in the subsequent wake-up process of the device, the first core can read the calibration data from the first storage space for detection, which makes the detection time point of the calibration data before the first core wakes up successfully. Even if the verification fails, the verification time of the device will be relatively shortened.

[0150] Another exemplary embodiment of the sleep process is described below. In this exemplary embodiment, the second core stores the calibration data in the first storage space. Figure 6 As shown, the following steps are included.

[0151] In step S31 , the first core synchronizes a sleep signal to the second core in response to the system-on-chip switching to a sleep state.

[0152] In step S32 , the second core saves the calibration data to the first storage space in response to the sleep signal.

[0153] After receiving the sleep signal, the second core saves the calibration data in the first storage space and mounts the application program in the second storage space.

[0154] Through the above technical solution, in the sleep process of the device, the second core will save the calibration data in the first storage space before it goes into sleep; so that in the subsequent wake-up process of the device, the first core can read the calibration data from the first storage space for detection. Since the processing performance of the first core is lower than the processing performance of the second core, compared with the method of using the first core to save the calibration data in the first storage space, the method of using the second core to save the calibration data in the first storage space can write the calibration data to the first storage space faster.

[0155] The following describes an exemplary solution in which the first core determines that the second core has successfully sleep-signaled after the second core sends a sleep signal to the second core. The solution includes the following steps.

[0156] (1) After the second core controls the application to sleep in response to the sleep signal, the variable tag stored in the first storage space is switched to a target variable tag.

[0157] Optionally, after the second core sends the sleep feedback signal to the first core, it means that the second core is able to put the application to sleep. It can also be understood that the sleep of the application controlled by the second core will not affect the normal use of the user. Therefore, after the sleep feedback signal is sent to the first core, the variable mark saved in the first storage space will be switched to the target variable mark, indicating that the second core has successfully sleep.

[0158] If the second core is in hibernation through the hibernation service or process killing control application, the variable mark stored in the first storage space can be switched to the target variable mark. The target variable mark indicates that the second core is in hibernation state.

[0159] For example, taking the sleeping state as variable tag A and the awakening state as variable tag B as an example, after the second core controls the application to sleep, the variable tag is switched from B to A.

[0160] (2) The first core detects that the variable tag is switched to the target variable tag, and saves the calibration data to the first storage space.

[0161] Optionally, after the first core sends a sleep signal to the second core, if a sleep feedback signal is received from the second core, the variable mark can be detected cyclically. When it is detected that the variable mark is the target variable mark, it is determined that the second core has successfully sleep, so the calibration data can be saved in the first storage space.

[0162] It is understandable that the power module can keep supplying power to the first storage space, so that the variable flags stored in the first storage space will not be cleared due to power failure.

[0163] Optionally, the first core may notify the second core to power off in response to the second core failing to hibernate.

[0164] For example, after the first core sends a sleep signal to the second core and receives a sleep feedback signal from the second core, if it is detected that the variable mark is a non-target variable mark, it is determined that the second core has failed to sleep. Therefore, the second core can be notified to directly go through the power-off process and notify the second core to switch from the running state to the shutdown state without notifying the second core to switch from the running state to the sleep state.

[0165] Through the above technical solution, the first core determines whether the second core is successfully in sleep mode by monitoring the variable mark. After the second core is successfully in sleep mode, the calibration data is saved to the first storage space; after the second core fails to sleep mode, the second core is notified to switch directly to the shutdown state.

[0166] The following introduces at least one exemplary solution that needs to be executed by the first core in response to the second core successfully sleeping.

[0167] (1) In response to the second core successfully going into sleep mode, the first core disables a designated interrupt function of the first core.

[0168] The device is equipped with a variety of interrupt functions, including designated interrupt functions and non-designated interrupt functions. Non-designated interrupt functions include trunk interrupt function, terminal remote control function, card swiping function and key unlocking function to meet user needs; designated interrupt functions include sensor trigger interrupt function, energy-saving interrupt function and error handling interrupt function.

[0169] The trunk interrupt function means that when the user triggers the trunk to open or close, the sleep state of the device (such as a vehicle) will be interrupted; the terminal remote control function means that when the user remotely controls the device through the terminal, the sleep state of the device will be interrupted; the card swiping function and key unlocking function mean that when the user unlocks the device with a card or key, the sleep state of the device will be interrupted.

[0170] The sensor-triggered interrupt function refers to interrupting the device's sleep state after the sensor detects environmental changes such as temperature, light and sound; the energy-saving interrupt function refers to interrupting the device's sleep state when an event occurs; the error handling interrupt function refers to handling sensor failures or communication errors that interrupt the device's sleep state.

[0171] It is understandable that after the second core successfully goes to sleep, the first core needs to be controlled to sleep, so that the device is in sleep mode. The designated interrupt function is a function that the user does not need to trigger and the device does not need to respond to. If the designated interrupt function is not turned off, the device will accidentally switch from sleep mode to wake-up mode, resulting in a reduced user experience. Therefore, it is necessary to turn off the designated interrupt function to prevent the designated interrupt function from breaking the sleep mode of the device and preventing the device from being woken up by mistake.

[0172] The non-specified interrupt function is a function triggered by a user and requires a device to respond. Therefore, there is no need to disable the non-specified interrupt function so that the device can respond to the non-specified interrupt function to meet the user's device control needs.

[0173] (2) In response to the second core successfully going into sleep mode, the first core turns off a timer; the timer is used to time operations of the first core and / or the second core.

[0174] The timer is used to time the operation of the first core and / or the second core. For example, the timer can time the operation time of the first core and / or the second core, and can also time the feedback response of the second core.

[0175] Assume that the timer is used to measure the running time of the device. After the second core successfully goes to sleep, the first core needs to go to sleep as well, so the entire device goes into sleep mode. If the timer is still turned on, the time the device is in sleep mode will be counted as the time it is in wake-up mode or running mode, and the resulting time will have errors. Therefore, the timer needs to be turned off to prevent it from continuing to measure when the device is in sleep mode.

[0176] For example, if the working time of the device is measured after the device is in the awake state, the timer will be started after the device is in the awake state. If the device is controlled to switch from the awake state to the sleep state while the timer is still running, the timer will calculate the time the device is in the sleep state into the working time of the device in the awake state, resulting in the working time calculated by the timer being too long.

[0177] Based on this, after the second core successfully sleeps and before the first core sleeps, the timer can be controlled to be turned off, and then the first core can be controlled to sleep. In this way, when the entire device is in sleep mode, the timer will not continue to count.

[0178] Optionally, after the first core is successfully awakened, the timer may be restarted.

[0179] (3) In response to the second core successfully going into sleep mode, the first core saves an entry of the first core in the first storage space.

[0180] The entry of the first core is used to indicate the running entry of the first core. Storing the entry of the first core in the first storage space can ensure that the code location that the first core can run can be quickly found based on the entry when it is woken up next time.

[0181] (4) In response to the second core successfully going into sleep mode, the first core configures a wake-up mode of the first core, where the wake-up mode includes a cold start or a wake-up start.

[0182] Optionally, the saving and reading of calibration data in the cold start and wake-up start scenarios include:

[0183] In a cold start scenario, in the sleep process, before the first core or the second core goes into sleep, in response to the wake-up mode configured before sleep being a cold start, the calibration data is stored in the third storage space; in the wake-up process, the first core responds to the configured wake-up mode being a cold start, reads the calibration data from the third storage space, loads the calibration data into the first storage space, and then reads the calibration data from the first storage space, and performs anomaly detection on the calibration data.

[0184] In the wake-up start scenario, in the sleep process, before the first core or the second core goes into sleep, in response to the wake-up mode configured before sleep being wake-up start, the calibration data is stored in the first storage space; in the wake-up process, the first core responds to the configured wake-up mode being wake-up start, reads the calibration data from the first storage space, and performs anomaly detection on the calibration data.

[0185] Optionally, the storage and reading of non-calibration data (non-calibration data includes device driving data and vehicle data) in the cold start and wake-up start scenarios include:

[0186] In the cold start scenario, in the sleep process, the first core responds to the wake-up mode configured before sleep as cold start, and stores the device driving data in the third storage space. The second core responds to the wake-up mode configured before sleep as cold start, and stores the vehicle data in the third storage space. In the wake-up process, the first core responds to the configured mode as cold start, reads the device driving data from the third storage space, stores it in the first storage space, and reads the device driving data from the first storage space to control the driving system of the device; the second core responds to the configured mode as cold start, reads the vehicle data from the third storage space, stores it in the second storage space, and reads the vehicle data from the second storage space to control the vehicle system of the device.

[0187] After the first core is powered off, the device driving data stored in the third storage space will not be lost, so the device driving data or vehicle-mounted data can be stored in the third storage space to avoid data loss after the device is powered off.

[0188] In the wake-up start scenario, in the sleep process, the first core responds to the wake-up mode configured before sleep as wake-up start, and stores the device driving data in the first storage space; the second core responds to the wake-up mode configured before sleep as wake-up start, and stores the vehicle data in the second storage space. In the wake-up process, the first core responds to the configured wake-up mode as wake-up start, reads the device driving data from the first storage space, and controls the driving system of the device; the second core responds to the configured wake-up mode as wake-up start, and reads the vehicle data from the second storage space, and controls the vehicle system of the device.

[0189] It is understandable that when it is determined that the second core fails to sleep and the second core cannot send a feedback response to the first core after a predetermined time has expired (for example, the first core does not receive the wake-up feedback signal from the second core after a second preset time has expired, and the first core does not receive the operation feedback signal from the second core after a third preset time has expired), it means that the second core cannot operate normally, and the second core will be notified to forcibly power off and switch from the operating state to the shutdown state. At this time, the wake-up mode will be configured as a cold start mode before the second core goes to sleep. If the calibration data is saved by the second core, the second core will save the calibration data in the third storage space, or save the vehicle data in the third storage space.

[0190] When the first core fails to verify the calibration data, it is necessary to restart the first core and the second core to perform the wake-up verification process, so the wake-up mode can also be configured to be a cold start before the first core is powered off. If the calibration data is saved by the first core, the first core will save the calibration data in the third storage space.

[0191] When the first core and the second core successfully sleep, the first core and the second core can configure the wake-up mode to be wake-up start before sleeping, and the first core or the second core saves the calibration data in the first storage space, so that the first core quickly reads the calibration data from the first storage space for calibration; the first core saves the device driving data in the first storage space, so that the first core quickly reads the device driving data from the first storage space to control the driving system of the device; the second core saves the vehicle data in the second storage space, so that the second core quickly reads the vehicle data from the second storage space to control the vehicle system of the device.

[0192] By configuring the wake-up mode before the first core or the second core goes to sleep, the first core or the second core can be awakened by the configured wake-up mode before the next wake-up. When the wake-up mode configured for the first core or the second core is the cold start mode, the data will be stored in the third storage space, so that after the device is powered off, the calibration data, device driving data and vehicle data in the third storage space will not be lost; when the wake-up mode is the wake-up start, the data will be stored in the first storage space and the second storage space, so that after the device is awakened from sleep, the data can be quickly read from the first storage space and the second storage space to achieve fast wake-up.

[0193] The following introduces an exemplary scheme of the sleep process and the wake-up process involved in the embodiment of the present disclosure, including the following steps.

[0194] See also Figure 7 As shown, the sleep process includes:

[0195] (1) In response to the system-level chip switching to the sleep state, the first core sends a sleep signal to the second core, and then starts a timer to wait for the second core to respond. If the sleep feedback signal from the second core is not received within a first preset time, the first core and the second core are notified to directly go through the power-off process, and both the first core and the second core are switched to the shutdown state.

[0196] (2) After receiving the sleep signal, the second core controls all application programs of the second core to sleep, and after the sleep is successful, modifies the variable mark in the first storage space to the target variable mark.

[0197] (3) The first core loop detects the variable mark in the first storage space. If it is detected that the variable mark is switched to the target variable mark, it is determined that the second core is in sleep mode successfully. If it is not detected that the variable mark is switched to the target variable mark, the first core and the second core are notified to switch to the shutdown state and perform the forced shutdown process.

[0198] (4) After the first core determines that the second core has successfully entered sleep mode, it saves the calibration data to the first storage space, turns off the specified interrupt function and timer, saves the entry of the first core in the first storage space, and configures whether the wake-up mode is a cold start or a wake-up start. After the configuration is completed, the first core enters sleep mode.

[0199] See also Figure 8 As shown, the wake-up process includes:

[0200] (1) The first core checks whether the calibration data stored in the first storage space during the last sleep state is abnormal. If normal, the first core is notified to power on and the second core is also powered on. If abnormal, the first core and the second core are restarted to re-perform the wake-up process.

[0201] (2) The first core ensures that the second core enters the wake-up state after power-on, and synchronizes the wake-up signal to the second core. If the first core does not receive the wake-up feedback signal from the second core within a second preset time, it is determined that the wake-up of the second core has failed, and the second core is restarted at this time.

[0202] (3) If the first core receives a wake-up feedback signal from the second core within the second preset time, it enters the running state and sends the running signal to the second core. If the first core does not receive the running feedback signal from the second core within the third preset time, it determines that the operation of the second core has failed, and then restarts the second core.

[0203] (4) If the first core receives the operation feedback signal of the second core within the third preset time period, it is determined that the second core is operating successfully.

[0204] Based on the same inventive concept, the present disclosure also provides a system-level chip, see Fig. 9As shown, the system-on-chip 900 includes a first core 910 and a second core 920 .

[0205] The processing performance of the first core 910 is lower than the processing performance of the second core 920;

[0206] The first core 910 detects whether the calibration data stored in the first storage space is abnormal in response to the system-level chip 900 switching to the awake state, and notifies the second core 920 to power on when the calibration data is normal;

[0207] In response to the second core 920 being powered on, the first core 910 enters the wake-up state and synchronizes a wake-up signal to the second core 920;

[0208] The second core 920 controls the application to wake up in response to the wake-up signal.

[0209] Optionally, the first core 910 synchronizes a sleep signal to the second core 920 in response to the system-on-chip 900 switching to a sleep state;

[0210] The second core 920 controls the application program to sleep in response to the sleep signal;

[0211] In response to the second core 920 successfully hibernating, the first core 910 saves the calibration data to the first storage space and enters the hibernation state after saving the calibration data to the first storage space; the calibration data is used to verify whether the second storage space can be normally accessed by the second core 920.

[0212] Optionally, the first core 910 synchronizes a sleep signal to the second core 920 in response to the system-on-chip 900 switching to a sleep state;

[0213] The second core 920 saves the calibration data to the first storage space in response to the sleep signal.

[0214] Optionally, after the first core 910 synchronizes a sleep signal to the second core 920 in response to the system-level chip 900 switching to a sleep state, the first core 910 notifies the second core 920 to power off when the first core 910 does not receive a sleep feedback signal from the second core 920 for more than a first preset time period, and controls the first core 910 to switch to a shutdown state or a sleep state.

[0215] Optionally, the second core 920 starts a sleep service in response to the sleep signal, and suspends the application to the second storage space through the sleep service; or,

[0216] The second core 920 executes a process kill operation on the application in response to the sleep signal.

[0217] Optionally, after the second core 920 controls the application to hibernate in response to the hibernation signal, the variable mark stored in the first storage space is switched to a target variable mark;

[0218] In response to the second core 920 being successfully hibernated, the first core 910 saves the calibration data to the first storage space, including:

[0219] The first core 910 detects that the variable tag is switched to the target variable tag, and saves the calibration data to the first storage space.

[0220] Optionally, in response to the second core 920 failing to hibernate, the first core 910 notifies the second core 920 to power off.

[0221] Optionally, in response to the second core 920 successfully hibernating, the first core 910 disables a designated interrupt function of the first core 910 .

[0222] Optionally, in response to the second core 920 successfully hibernating, the first core 910 turns off a timer; the timer is used to time the operation of the first core 910 and / or the second core 920.

[0223] Optionally, in response to the second core 920 successfully hibernating, the first core 910 configures a wake-up mode of the first core 910 , where the wake-up mode includes a cold start or a wake-up start.

[0224] Optionally, in response to the wake-up mode configured before sleep being a cold start, the first core 910 stores the device driving data in the third storage space; after the first core 910 is powered off, the device driving data stored in the third storage space will not be lost; or,

[0225] In response to the wake-up mode configured before sleep being wake-up start, the first core 910 stores the device driving data in the first storage space.

[0226] Optionally, after the first core 910 enters the wake-up state in response to the second core 920 being powered on and synchronizing the wake-up signal to the second core 920, the first core 910 restarts the second core 920 when the first core 910 does not receive the wake-up feedback signal from the second core 920 after a second preset time period.

[0227] Optionally, after the first core 910 synchronizes a wake-up signal to the second core 920 in response to the second core 920 being powered on, the first core 910 switches to a running state when receiving a wake-up feedback signal from the second core 920 within the second preset time period, and synchronizes a running signal to the second core 920;

[0228] When the first core 910 does not receive the operation feedback signal of the second core 920 for more than a third preset time period, the second core 920 is restarted.

[0229] Optionally, in response to the SoC 900 switching to the awake state, the first core 910 detects whether the calibration data stored in the first storage space is abnormal, and notifies the first core 910 and the second core 920 to restart if abnormal.

[0230] Optionally, the first core 910 includes an AutoSar master control, and the second core 920 includes an AutoSar slave control; in response to the second core 920 being powered on, the AutoSar master control enters the wake-up state and synchronizes the wake-up signal to the AutoSar slave control.

[0231] Optionally, the first core 910 is a core of a Cortex-M hardware platform; and the second core 920 is a core of a Cortex-A hardware platform.

[0232] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0233] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the chip system control method provided by the present disclosure.

[0234] Fig.10 1 is a block diagram of a vehicle 1000 according to an exemplary embodiment. For example, the vehicle 1000 may be a hybrid vehicle, a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or other types of vehicles. The vehicle 1000 may be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.

[0235] Reference Fig.10, the vehicle 1000 may include various subsystems, for example, an infotainment system 1010, a perception system 1020, a decision control system 1030, a drive system 1040, and a computing platform 1050. The vehicle 1000 may also include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and each component of the vehicle 1000 may be interconnected by wire or wireless means.

[0236] In some embodiments, the infotainment system 1010 may include a communication system, an entertainment system, and a navigation system.

[0237] The perception system 1020 may include several sensors for sensing information about the environment around the vehicle 1000. For example, the perception system 1020 may include a global positioning system (the global positioning system may be a GPS system, or a Beidou system or other positioning systems), an inertial measurement unit (IMU), a laser radar, a millimeter wave radar, an ultrasonic radar, and a camera.

[0238] The decision control system 1030 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.

[0239] The drive system 1040 may include components that provide power movement for the vehicle 1000. In one embodiment, the drive system 1040 may include an engine, an energy source, a transmission system, and wheels. The engine may be one or a combination of an internal combustion engine, an electric motor, and an air compression engine. The engine can convert energy provided by the energy source into mechanical energy.

[0240] Some or all functions of the vehicle 1000 are controlled by a computing platform 1050. The computing platform 1050 may include at least one first processor 1051 and a first memory 1052, and the first processor 1051 may execute instructions 1053 stored in the first memory 1052.

[0241] The first processor 1051 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.

[0242] The first memory 1052 can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0243] In addition to the instructions 1053 , the first memory 1052 may also store data, such as road maps, route information, and data such as the location, direction, and speed of the vehicle. The data stored in the first memory 1052 may be used by the computing platform 1050 .

[0244] In the embodiment of the present disclosure, the first processor 1051 can execute instruction 1053 to complete all or part of the steps of the above-mentioned chip system control method.

[0245] Fig.11 1 is a block diagram of a chip system control device 1100 according to an exemplary embodiment. For example, the chip system control device 1100 may be a robot, a robot dog, a tablet, a computer, etc.

[0246] Reference Fig.11 The chip system control device 1100 may include one or more of the following components: a processing component 1102, a second memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input / output interface 1112, a sensor component 1114, and a communication component 1116.

[0247] The processing component 1102 generally controls the overall operation of the chip system control device 1100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more second processors 1120 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 1102 may include one or more modules to facilitate the interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate the interaction between the multimedia component 1108 and the processing component 1102.

[0248] The second memory 1104 is configured to store various types of data to support the operation of the chip system control device 1100. Examples of such data include instructions for any application or method operating on the chip system control device 1100, contact data, phone book data, messages, pictures, videos, etc. The second memory 1104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0249] The power supply component 1106 provides power to various components of the chip system control device 1100. The power supply component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the chip system control device 1100.

[0250] The multimedia component 1108 includes a screen that provides an output interface between the chip system control device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front camera and / or a rear camera. When the chip system control device 1100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0251] The audio component 1110 is configured to output and / or input audio signals. For example, the audio component 1110 includes a microphone (MIC), and when the chip system control device 1100 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the second memory 1104 or sent via the communication component 1116. In some embodiments, the audio component 1110 also includes a speaker for outputting audio signals.

[0252] The input / output interface 1112 provides an interface between the processing component 1102 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0253] The sensor assembly 1114 includes one or more sensors for providing various aspects of status assessment for the chip system control device 1100. For example, the sensor assembly 1114 can detect the on / off state of the chip system control device 1100, the relative positioning of the components, such as the display and keypad of the chip system control device 1100, and the sensor assembly 1114 can also detect the position change of the chip system control device 1100 or a component of the chip system control device 1100, the presence or absence of user contact with the chip system control device 1100, the chip system control device 1100 orientation or acceleration / deceleration and the temperature change of the chip system control device 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0254] The communication component 1116 is configured to facilitate wired or wireless communication between the chip system control device 1100 and other devices. The chip system control device 1100 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0255] In an exemplary embodiment, the chip system control device 1100 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned chip system control method.

[0256] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a second memory 1104 including instructions, and the instructions can be executed by a second processor 1120 of the chip system control device 1100 to complete the chip system control method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0257] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned chip system control method when executed by the programmable device.

[0258] Some embodiments of the present disclosure also provide a chip system, such as Fig.12 As shown, the chip system includes at least one third processor 1201 and at least one interface circuit 1202. The third processor 1201 and the interface circuit 1202 can be interconnected through lines. For example, the interface circuit 1202 can be used to receive signals from other devices (such as the memory of the electronic device). For another example, the interface circuit 1202 can be used to send signals to other devices (such as the third processor 1201). Exemplarily, the interface circuit 1202 can read the instructions stored in the memory and send the instructions to the third processor 1201. When the instructions are executed by the third processor 1201, the chip system control device can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, and some embodiments of the present disclosure are not specifically limited to this.

[0259] In some embodiments of the present disclosure, the interface circuit 1202 can obtain data, program instructions and / or information from the internal storage area of ​​the chip system; it can also obtain data, program instructions and / or information from outside the chip system.

[0260] Optionally, the chip system also includes a memory for storing necessary computer programs and data.

[0261] Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application may be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the functions described for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.

[0262] Furthermore, the word "exemplary" is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as "exemplary" is not necessarily to be construed as advantageous over other aspects or designs.

[0263] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art after reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise indicated, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if the structure is not equivalent to the disclosed structure. In addition, although specific features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and beneficial to any given or specific application. In addition, with respect to "including", "having", "having", "having", or variations thereof used in a specific embodiment or claim, such terms are intended to be inclusive in a manner similar to the term "comprising".

[0264] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

[0265] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

[0266] Although terms such as "first", "second" and "third" can be used herein to describe various components, parts, regions, layers or sections, these components, parts, regions, layers or sections are not limited to these terms. On the contrary, these terms are only used to distinguish one component, component, region, layer or section from another component, component, region, layer or section. Therefore, without departing from the teachings of each example, the first component, component, region, layer or section mentioned in the examples described herein may also be referred to as the second component, component, region, layer or section. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may expressly or implicitly include at least one of the features. In the description herein, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

Claims

1. A chip system control method, characterized in that: A system-on-chip is provided, wherein the system-on-chip includes a first core and a second core, and the processing performance of the first core is less than the processing performance of the second core; and the method includes: The first core detects calibration data stored in the first storage space in response to the system-level chip switching to the awake state, and notifies the second core to power on when the calibration data is normal, wherein the calibration data is used to check whether the main memory can be normally accessed by the second core; In response to the second core being powered on, the first core enters the wake-up state and synchronizes a wake-up signal to the second core; The second core controls the application to start in response to the wake-up signal; The method further includes: in response to the system-level chip switching to the awake state, the first core detects whether the calibration data stored in the first storage space is abnormal, and notifies the first core and the second core to restart if abnormal.

2. The method according to claim 1, characterized in that The method further comprises: The first core synchronizes a sleep signal to the second core in response to the system-on-chip switching to a sleep state; The second core controls the application program to sleep in response to the sleep signal; In response to the second core successfully hibernating, the first core saves the calibration data to the first storage space and enters a hibernation state after saving the calibration data to the first storage space; the calibration data is used to verify whether the second storage space can be normally accessed by the second core.

3. The method according to claim 1, characterized in that The method further comprises: The first core synchronizes a sleep signal to the second core in response to the system-on-chip switching to a sleep state; The second core saves the calibration data to the first storage space in response to the sleep signal.

4. The method according to claim 2, characterized in that: After the first core synchronizes a sleep signal to the second core in response to the system-on-chip switching to a sleep state, the method further includes: When the first core does not receive the sleep feedback signal from the second core for more than a first preset time period, the first core notifies the second core to power off, and controls the first core to switch to a shutdown state or the sleep state.

5. The method according to claim 2, characterized in that: The second core controls the application program to sleep in response to the sleep signal, including: The second core starts a sleep service in response to the sleep signal, and suspends the application program to the second storage space through the sleep service; or, The second core executes a process kill operation on the application in response to the sleep signal.

6. The method according to claim 2, characterized in that The method further comprises: After the second core controls the application to sleep in response to the sleep signal, the variable mark stored in the first storage space is switched to a target variable mark; In response to the second core successfully being put into sleep mode, the first core saves the calibration data to the first storage space, including: The first core detects that the variable mark is switched to the target variable mark, and saves the calibration data to the first storage space.

7. The method according to claim 2, characterized in that The method further comprises: In response to the second core failing to hibernate, the first core notifies the second core to power off.

8. The method according to claim 2, characterized in that: The method further comprises: In response to the second core successfully being put into sleep mode, the first core disables a designated interrupt function of the first core.

9. The method according to claim 2, characterized in that: The method further comprises: In response to the second core successfully sleeping, the first core turns off a timer; the timer is used to time the operation of the first core and / or the second core.

10. The method according to claim 2, characterized in that The method further comprises: In response to the second core successfully hibernating, the first core saves the entry of the first core in the first storage space.

11. The method according to claim 2, characterized in that The method further comprises: In response to the second core successfully sleeping, the first core configures a wake-up mode of the first core, where the wake-up mode includes a cold start or a wake-up start.

12. The method according to claim 11, characterized in that The method further comprises: In response to the wake-up mode configured before sleep being a cold start, the first core stores the device driving data in the third storage space; after the first core is powered off, the device driving data stored in the third storage space will not be lost; or, In response to the wake-up mode configured before the sleep state being a wake-up start, the first core stores the device driving data in the first storage space.

13. The method according to claim 1, characterized in that After the first core enters the wake-up state in response to the second core being powered on, and synchronizes a wake-up signal to the second core, the method further includes: When the first core does not receive the wake-up feedback signal of the second core for more than a second preset time period, the first core restarts the second core.

14. The method according to claim 13, characterized in that After the first core enters the wake-up state in response to the second core being powered on, and synchronizes a wake-up signal to the second core, the method further includes: When the first core receives the wake-up feedback signal from the second core within the second preset time period, the first core switches to the running state and synchronizes the running signal to the second core; When the first core does not receive the operation feedback signal of the second core for more than a third preset time period, the first core restarts the second core.

15. The method according to claim 1, characterized in that The first core includes an AutoSar master control, and the second core includes an AutoSar slave control; in response to the second core being powered on, the first core enters the wake-up state and synchronizes a wake-up signal to the second core, including: In response to the second core being powered on, the AutoSar master controller enters the wake-up state and synchronizes the wake-up signal to the AutoSar slave controller.

16. A system-on-chip, comprising a first core and a second core, wherein the processing performance of the first core is lower than the processing performance of the second core; The first core detects calibration data stored in the first storage space in response to the system-level chip switching to the awake state, and notifies the second core to power on when the calibration data is normal, wherein the calibration data is used to check whether the main memory can be normally accessed by the second core; In response to the second core being powered on, the first core enters the wake-up state and synchronizes a wake-up signal to the second core; The second core controls the application to start in response to the wake-up signal; In response to the system-level chip switching to the awake state, the first core also detects whether the calibration data stored in the first storage space is abnormal, and notifies the first core and the second core to restart if abnormal.

17. A vehicle, characterized in that: The vehicle is equipped with the system-level chip according to claim 16.

Citation Information

Patent Citations

  • Electronic device and switching method for working mode thereof

    CN107015847A

  • Wireless communication system and method for implantable medical device with wake-up function

    CN107911139A

  • Locomotive awakening method and device, equipment, system and readable storage medium

    CN112078603A

  • Method for realizing low power consumption of equipment and vehicle-mounted terminal

    CN112208470A

  • Vehicle operating system awakening method, device and system

    CN112540798A