Sleep method and apparatus for SOC chip, and vehicle
By recording the number of failures and restarting when the SOC chip fails to hibernate, the problem of long boot times caused by cold starts of the SOC chip is solved, achieving a higher hibernation success rate and shorter boot time, thus improving the user experience.
Patent Information
- Application Number
- PCT/CN2024/138423
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-25
- Filing Date
- 2024-12-11
- Publication Date
- 2026-01-02
AI Technical Summary
After the SOC chip fails to hibernate, a cold boot is required, resulting in a longer boot time and affecting the user experience.
When a hibernation failure is detected, the number of failures is recorded. If it is less than a set threshold (e.g., 2 times), a restart operation is performed, and the SOC chip is controlled to restart until successful, thus avoiding direct power-off and improving the hibernation success rate.
By using a hot-start SOC chip, boot time is shortened and user experience is improved.
Smart Images

Figure CN2024138423_02012026_PF_FP_ABST
Abstract
Description
Sleep method, device and vehicle of SOC chip
[0001] Cross-reference to related applications
[0002] The embodiments of the present application are based on and claim priority to Chinese Patent Application No. 202410825521.4, filed on June 25, 2024, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD
[0003] The present application relates to the field of automotive electronics, in particular to a sleep method, device and vehicle of SOC chip. BACKGROUND
[0004] With the rapid development of automotive electronics, electronic architecture gradually evolves from traditional distributed architecture to domain centralized architecture, and intelligent cockpit domain emerges as the times require. The intelligent cockpit of the vehicle integrates operating systems such as instrument systems and car systems, and the instrument systems and car systems of the vehicle run on the SOC chip of the vehicle, thereby realizing one chip and multiple systems. The vehicle also includes an MCU for controlling the SOC chip. In order to improve the performance and user experience of the vehicle, it is required that after the vehicle is started, the instrument system and the car system can be quickly started and enter a normal working state, thereby introducing a sleep mode of the SOC chip. In the sleep mode, the vehicle meets the low power consumption requirement, and the vehicle can quickly restore to the state before shutdown according to the information saved in the memory when the vehicle is started next time, thereby reducing the startup time.
[0005] However, at present, when it is detected that the sleep condition is met, if the SOC chip fails to enter the sleep state, the SOC chip will be directly controlled to be powered off. In this way, after the SOC chip fails to sleep, when the SOC chip needs to be started, the SOC chip needs to be cold started, thereby causing the startup time of the SOC chip to be long and affecting the user experience. SUMMARY
[0006] The present application provides a sleep method, device and vehicle of SOC chip, which is used to solve the problem that in the prior art, after sleep fails, when the SOC chip needs to be started, the SOC chip needs to be cold started, thereby causing the startup time of the SOC chip to be long and affecting the user experience.
[0007] In a first aspect, the present application provides a sleep method of SOC chip, applied to a microprocessor of a vehicle, and the microprocessor of the vehicle is electrically connected with a SOC chip of the vehicle. The method provided by the present application comprises:
[0008] When it is detected that the sleep condition is met, a sleep instruction is sent to the SOC chip;
[0009] read a number of times of SOC chip hibernation failures when no hibernation success signal based on the hibernation instruction feedback of the SOC chip is received within a first preset time length;
[0010] perform a restart operation and control the SOC chip to perform the restart operation when the number of times of SOC chip hibernation failures is less than or equal to a set number threshold, wherein the set number threshold is greater than or equal to 2;
[0011] re-send the hibernation instruction to the SOC chip;
[0012] determine that the SOC chip hibernation is successful when the hibernation success signal based on the hibernation instruction feedback of the SOC chip is received within the first preset time length.
[0013] In a second aspect, the present application further provides a hibernation device of an SOC chip, configured in a microprocessor of a vehicle, and the microprocessor of the vehicle is electrically connected with an SOC chip of the vehicle. The device provided by the present application comprises:
[0014] a data sending unit configured to send a hibernation instruction to the SOC chip when it is detected that a hibernation condition is met;
[0015] a data reading unit configured to read a number of times of SOC chip hibernation failures when no hibernation success signal based on the hibernation instruction feedback of the SOC chip is received within a first preset time length;
[0016] a system restart unit configured to perform a restart operation and control the SOC chip to perform the restart operation when the number of times of SOC chip hibernation failures is less than or equal to a set number threshold, wherein the set number threshold is greater than or equal to 2;
[0017] the data sending unit is further configured to re-send the hibernation instruction to the SOC chip;
[0018] a hibernation success determination unit configured to determine that the SOC chip hibernation is successful when the hibernation success signal based on the hibernation instruction feedback of the SOC chip is received within the first preset time length.
[0019] In a third aspect, the present application further provides a vehicle comprising a microprocessor and an SOC chip, the microprocessor is electrically connected with the SOC chip, and the microprocessor is configured to perform the method provided by the first aspect of the present application.
[0020] The application provides a sleep method and device of an SOC chip and a vehicle. When a sleep success signal fed back by the SOC chip based on a sleep instruction is not received within a first preset time length, it is indicated that the sleep of the SOC chip fails. At this time, the number of times of sleep failure of the SOC chip is read. When the number of times of sleep failure of the SOC chip is less than or equal to a set number threshold, it is indicated that the reason for the sleep failure of the SOC chip is probably caused by a system process. Therefore, the SOC chip is not powered off temporarily, but a restart operation is performed, and the SOC chip is controlled to perform the restart operation. The sleep instruction is sent to the SOC chip again. When the sleep success signal fed back by the SOC chip based on the sleep instruction is received within the first preset time length, it is determined that the sleep of the SOC chip succeeds, and the reliability of the sleep success of the SOC chip is improved. In this way, when the SOC chip is started, the SOC chip can be started hot, and therefore the start-up time of the SOC chip is shortened, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0022] Fig. 1 is an interaction schematic diagram of a microprocessor and an SOC chip provided by the embodiments of the present application;
[0023] Fig. 2 is a flowchart of a sleep method of an SOC chip provided by the embodiments of the present application;
[0024] Fig. 3 is a flowchart of a sleep method of an SOC chip provided by the embodiments of the present application;
[0025] Fig. 4 is a flowchart of a wake-up method of an SOC chip provided by the embodiments of the present application;
[0026] Fig. 5 is a flowchart of a wake-up method of an SOC chip provided by the embodiments of the present application;
[0027] Fig. 6 is a flowchart of a wake-up method of an SOC chip provided by the embodiments of the present application;
[0028] Fig. 7 is a flowchart of a wake-up method of an SOC chip provided by the embodiments of the present application;
[0029] Fig. 8 is a functional module block diagram of a sleep device of an SOC chip provided by the embodiments of the present application. Embodiments of the application
[0030] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood, however, that the description is merely exemplary of the present disclosure, but not intended to limit the scope of the present disclosure. Also, in the following description, description of well-known structures and techniques have been omitted to avoid obscuring the concept of the present disclosure.
[0031] In the drawings, various structural diagrams according to embodiments of the present disclosure are shown. These diagrams are not drawn to scale in which certain details are exaggerated for clarity of presentation and may omit certain details. The shapes of various regions, layers shown in the drawings, and their relative sizes and positional relationships may deviate in actuality due to manufacturing tolerances or technical limitations, and regions / layers having different shapes, sizes, relative positions can be additionally designed by those skilled in the art according to actual needs.
[0032] In the context of the present disclosure, when a layer / element is referred to as being located "on" another layer / element, the layer / element can be directly located on the other layer / element, or an intervening layer / element can be present therebetween. In addition, if a layer / element is located "on" another layer / element in one orientation, it can be located "under" the other layer / element when the orientation is reversed.
[0033] Hereinafter, the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes can not be described again in some embodiments. Hereinafter, the embodiments of the present application will be described with reference to the accompanying drawings.
[0034] The embodiment of the present application provides a sleep method of an SOC chip, applied to a microprocessor 101 of a vehicle, the microprocessor 101 of the vehicle (i.e. MCU) is electrically connected with an SOC chip 102 of the vehicle. As shown in FIG. 1, the SOC chip 102 includes an instruction interaction pin, a Sleep_Ready indication pin, a Sleep_Done indication pin, and a wake-up pin. The instruction interaction pin, the Sleep_Ready indication pin, the Sleep_Done indication pin, and the wake-up pin are electrically connected with the microprocessor 101 respectively.
[0035] The SOC chip 102 runs a vehicle machine system (such as an Android system) and an instrument system; the instruction interaction pin of the SOC chip 102 and the microprocessor 101 adopt serial port UART communication or SPI communication, for sending interaction instructions, such as sleep instructions and handshake instructions; after the vehicle machine system sleeps successfully, the microprocessor 101 can be notified by the Sleep_Ready indication pin that the vehicle machine system has slept successfully; after the instrument system sleeps successfully, the microprocessor 101 can be notified by the Sleep_Done indication pin that the instrument system has slept successfully; in addition, the microprocessor 101 can pull up the wake-up pin to wake up the SOC chip 102.
[0036] Specifically, as shown in FIG. 2, the method provided by the embodiment of the application comprises:
[0037] S201: When it is detected that the sleep condition is met, a sleep instruction is sent to the SOC chip 102.
[0038] Exemplarily, when the microprocessor 101 detects that the power supply of the whole vehicle stops or the whole vehicle network is disconnected, it is determined that the sleep condition is met, and a sleep instruction is sent to the SOC chip 102 based on the instruction interaction pin; the SOC chip 102 can start to perform a sleep operation in response to the sleep instruction. If the sleep is successful, the SOC chip 102 will feed back a sleep success signal to the microprocessor 101 based on the instruction interaction pin.
[0039] S202: It is judged whether the sleep success signal fed back by the SOC chip 102 based on the sleep instruction is received within a first preset time length; if yes, S203 is performed; if no, S204 is performed.
[0040] S203: It is determined that the SOC chip 102 sleeps successfully.
[0041] S204: The number of times of sleep failure of the SOC chip 102 is read.
[0042] S205: It is judged whether the number of times of sleep failure of the SOC chip 102 is less than or equal to a set number threshold; if no, S206 is performed; if yes, S207 is performed.
[0043] The set number threshold is greater than or equal to 2, for example, the set number is equal to 2 or 3 or 4 or the like.
[0044] S206: The SOC chip 102 is controlled to shut down, and the microprocessor 101 also performs a shutdown operation.
[0045] When the number of times of sleep failure of the SOC chip 102 is greater than the set number threshold, it is indicated that the sleep failure of the SOC chip 102 is not caused by the system process of the SOC chip 102, but caused by other physical reasons, and thus the SOC chip 102 is directly powered off, and the microprocessor 101 also performs the power-off operation. In this way, power consumption can be saved.
[0046] S207: performing a restart operation, and controlling the SOC chip 102 to perform the restart operation, and returning to perform S201.
[0047] When the number of times of sleep failure of the SOC chip 102 is less than or equal to the set number threshold, it is indicated that the sleep failure of the SOC chip 102 is possibly caused by the system process of the SOC chip 102; and thus the restart operation can be performed, and the SOC chip 102 is controlled to perform the restart operation, so as to improve the reliability of the sleep success of the SOC chip 102.
[0048] Specifically, the microprocessor 101 can record the restart source of the sleep failure exception, and then the microprocessor 101 performs the restart operation and controls the SOC chip 102 to be powered off, the microprocessor 101 reads the restart source, and when it is determined that the restart source is the restart source of the sleep failure exception, the number of times of sleep failure is recorded, and the SOC chip 102 is powered on and awakened, so that the SOC chip 102 performs a cold start, and returns to perform S201.
[0049] In summary, the embodiment of the present application provides a sleep method of a SOC chip. When a sleep success signal fed back by the SOC chip 102 based on a sleep instruction is not received within a first preset time period, it is indicated that the SOC chip 102 fails to sleep, and the number of times of sleep failure of the SOC chip 102 is read. When the number of times of sleep failure of the SOC chip 102 is less than or equal to a set number threshold, it is indicated that the sleep failure of the SOC chip 102 is possibly caused by the system process, and thus the SOC chip 102 is not powered off temporarily, but the restart operation is performed, and the SOC chip 102 is controlled to perform the restart operation. The sleep instruction is sent to the SOC chip 102 again. When the sleep success signal fed back by the SOC chip 102 based on the sleep instruction is received within the first preset time period, it is determined that the SOC chip 102 succeeds in sleeping, and the reliability of the sleep success of the SOC chip 102 is improved. In this way, when the SOC chip 102 is started, the SOC chip 102 can be started hot, and thus the start-up time of the SOC chip 102 is shortened, and the user experience is improved.
[0050] In some embodiments, the SOC chip 102 runs a car machine system and an instrument system, as shown in FIG. 3, S202-S205 can include:
[0051] S301: In the first preset time length, it is judged whether the sleep success signal based on the sleep instruction feedback of the car machine system of the SOC chip 102 is received, if not, S302 is executed; if yes, S304 is executed.
[0052] S302: The number of sleep failures of the car machine system is read.
[0053] S303: It is judged whether the number of sleep failures of the car machine system of the SOC chip 102 is less than or equal to the set number threshold, if yes, S207 is executed, if not, S206 is executed.
[0054] S304: When the sleep success signal based on the sleep instruction feedback of the instrument system of the SOC chip 102 is not received in the first preset time length, the number of sleep failures of the instrument system is read.
[0055] S305: It is judged whether the number of sleep failures of the instrument system of the SOC chip 102 is less than or equal to the set number threshold, if yes, S207 is executed, if not, S206 is executed.
[0056] In addition, as shown in FIG. 4, after S201, the method provided by the embodiment of the application further comprises:
[0057] S401: When the wake-up event is detected, it is detected whether the sleep success signal based on the sleep instruction feedback of the SOC chip 102 is received in the first preset time length; if not, S402 is executed; if yes, S403 is executed.
[0058] S402: Wait for a second preset time length, and return to execute S201.
[0059] S403: Wake up the SOC chip 102.
[0060] Based on the above S401-S403, when the wake-up event is detected, if the sleep success signal based on the sleep instruction feedback of the SOC chip 102 is not received in the first preset time length, it is indicated that the SOC chip 102 is in the process of sleeping at this time, and the sleep process of the SOC chip will not be interrupted, and the SOC chip 102 is woken up after the sleep of the SOC chip 102 is completed, which can avoid the inconsistency of the time sequence of the microprocessor 101 and the SOC chip 102, and cause serious abnormalities such as wake-up failure.
[0061] Further, the SOC chip 102 runs the car machine system and the instrument system, as shown in FIG. 5, S401-S403 can be specifically implemented as:
[0062] S501: When the wake-up event is detected, it is detected whether the sleep success signal based on the sleep instruction feedback of the car machine system of the SOC chip 102 is received within the first preset time length; if not, S502 is executed; if yes, S503 is executed.
[0063] Or, if yes, wake up the SOC chip 102.
[0064] It can be understood that when the wake-up event is detected, if the sleep success signal based on the sleep instruction feedback of the car machine system of the SOC chip 102 is not received within the first preset time length, it means that the car machine system of the SOC chip 102 is in the process of sleeping at this time, and the sleep process of the car machine system of the SOC chip 102 will not be interrupted, but the SOC chip 102 will be woken up after the car machine system of the SOC chip 102 is completely slept, which can avoid the inconsistency of the timing of the microprocessor 101 and the SOC chip 102, and cause serious abnormalities such as wake-up failure.
[0065] S502: Wait for a second preset time length, and return to execute S501.
[0066] S503: Detect whether the sleep success signal transmitted by the instrument system is received, if not, S504 is executed; if yes, S505 is executed.
[0067] S504: Wait for a second preset time length, and return to execute S503.
[0068] S505: Wake up the instrument system and the car machine system of the SOC chip 102.
[0069] It can be understood that when the wake-up event is detected, if the sleep success signal based on the sleep instruction feedback of the instrument system of the SOC chip 102 is not received within the first preset time length, it means that the instrument system of the SOC chip 102 is in the process of sleeping at this time, and the sleep process of the instrument system of the SOC chip 102 will not be interrupted, but the SOC chip 102 will be woken up after the instrument system of the SOC chip 102 is completely slept, which can avoid the inconsistency of the timing of the microprocessor 101 and the SOC chip 102, and cause serious abnormalities such as wake-up failure.
[0070] In addition, after S203, as shown in FIG. 6, the method provided by the embodiment of the application further comprises:
[0071] S601: When the wake-up event is detected, send a wake-up instruction to the SOC chip 102.
[0072] S602: Determine whether the wake-up success signal based on the wake-up instruction feedback of the SOC chip 102 is received within the first preset time length, if yes, S603 is executed; if not, return to execute S601.
[0073] S603: It is determined that the SOC chip 102 is successfully woken up.
[0074] Understandably, when the wake-up success signal based on the wake-up instruction feedback by the SOC chip 102 is not received within the first preset time length, it indicates that the wake-up of the SOC chip 102 fails, and multiple wake-ups of the SOC chip 102 can improve the probability of successful wake-up of the SOC chip 102.
[0075] Exemplarily, the SOC chip 102 runs the instrument system and the car machine system, as shown in FIG. 7, S601-S603 can be specifically implemented as:
[0076] S701: It is determined whether the wake-up success signal based on the wake-up instruction feedback by the instrument system of the SOC chip 102 is received within the first preset time length; if not, S702 is executed; if yes, S703 is executed.
[0077] S702: The instrument system of the SOC chip 102 is restarted, and S701 is returned.
[0078] Understandably, when the wake-up success signal based on the wake-up instruction feedback by the instrument system of the SOC chip 102 is not received within the first preset time length, it indicates that the wake-up of the instrument system of the SOC chip 102 fails, and multiple wake-ups of the instrument system of the SOC chip 102 can improve the probability of successful wake-up of the instrument system of the SOC chip 102.
[0079] S703: It is determined whether the wake-up success signal based on the wake-up instruction feedback by the car machine system of the SOC chip 102 is received within the first preset time length after the wake-up success signal feedback by the instrument system of the SOC chip 102 is received; if not, S704 is executed; if yes, S705 is executed.
[0080] S704: The car machine system of the SOC chip 102 is restarted, and S703 is returned.
[0081] S705: It is determined that the SOC chip 102 is successfully woken up.
[0082] Understandably, when the wake-up success signal based on the wake-up instruction feedback by the car machine system of the SOC chip 102 is not received within the first preset time length, it indicates that the wake-up of the car machine system of the SOC chip 102 fails, and multiple wake-ups of the car machine system of the SOC chip 102 can improve the probability of successful wake-up of the car machine system of the SOC chip 102.
[0083] It should be noted that the first preset time length and the second preset time length mentioned in the embodiments of the present application can be counted by a timer.
[0084] Referring to FIG. 8, the embodiment of the present application further provides a SOC chip hibernation device 800 configured in the microprocessor 101 of the vehicle, and the microprocessor 101 of the vehicle is electrically connected with the SOC chip 102 of the vehicle. It should be noted that the SOC chip hibernation device 800 provided by the embodiment of the present application has the same basic principle and technical effects as the above-mentioned embodiments. For brief description, the part of the embodiment of the present application not mentioned can refer to the corresponding content in the above-mentioned embodiments. The device 800 provided by the present application comprises a data sending unit 801, a data reading unit 802, a system restart unit 803, and a hibernation success determination unit 804, wherein,
[0085] The data sending unit 801 is configured to send a hibernation instruction to the SOC chip 102 when it is detected that the hibernation condition is met.
[0086] The data reading unit 802 is configured to read the number of hibernation failures of the SOC chip 102 within a first preset time length when a hibernation success signal fed back by the SOC chip 102 based on the hibernation instruction is not received within the first preset time length.
[0087] In some embodiments, the SOC chip 102 runs a car machine system, and the data reading unit 802 is specifically configured to read the number of hibernation failures of the car machine system if a hibernation success signal fed back by the car machine system of the SOC chip 102 based on the hibernation instruction is not received within the first preset time length.
[0088] Further, the SOC chip 102 also runs an instrument system, and the data reading unit 802 is further specifically configured to read the number of hibernation failures of the instrument system if a hibernation success signal fed back by the instrument system of the SOC chip 102 based on the hibernation instruction is not received within the first preset time length after a hibernation success signal fed back by the car machine system based on the hibernation instruction is received within the first preset time length.
[0089] The system restart unit 803 is configured to perform a restart operation and control the SOC chip 102 to perform the restart operation when the number of hibernation failures of the SOC chip 102 is less than or equal to a set number threshold, and the set number threshold is greater than or equal to 2.
[0090] The data sending unit 801 is further configured to send the hibernation instruction to the SOC chip 102 again.
[0091] The hibernation success determination unit 804 is configured to determine that the SOC chip 102 hibernates successfully if a hibernation success signal fed back by the SOC chip 102 based on the hibernation instruction is received within the first preset time length.
[0092] In addition, the apparatus 800 provided by the embodiment of the present application can further include a system wake-up unit configured to, when detecting a wake-up event, detect whether a sleep success signal fed back by the SOC chip 102 based on the sleep instruction is received within a first preset time length; if the sleep success signal is not received, waiting for a second preset time length and detecting again whether the sleep success signal fed back by the SOC chip 102 based on the sleep instruction is received; and if the sleep success signal is received, waking up the SOC chip 102.
[0093] In some embodiments, the SOC chip 102 runs an in-vehicle infotainment system, and the system wake-up unit is specifically configured to, if the sleep success signal transmitted by the in-vehicle infotainment system of the SOC chip 102 is not received, waiting for a second preset time length and detecting again whether the sleep success signal transmitted by the in-vehicle infotainment system is received; and if the sleep success signal is received, waking up the SOC chip 102.
[0094] Further, the SOC chip 102 further runs an instrument system, and the system wake-up unit is further specifically configured to, if the sleep success signal transmitted by the instrument system is not received after the sleep success signal transmitted by the in-vehicle infotainment system is received, waiting for a second preset time length and detecting again whether the sleep success signal transmitted by the instrument system is received, and if the sleep success signal transmitted by the instrument system is received, waking up the instrument system and the in-vehicle infotainment system of the SOC chip 102.
[0095] In some embodiments, the data sending unit 801 is further configured to, when detecting a wake-up event, send a wake-up instruction to the SOC chip 102; and the system restart unit 803 is further configured to, when a wake-up success signal fed back by the SOC chip 102 based on the wake-up instruction is not received within a first preset time length, restart the SOC chip 102.
[0096] The apparatus 800 provided by the embodiment of the present application further includes an operation returning unit configured to return to the step of sending the wake-up instruction to the SOC chip 102 until the wake-up success signal fed back by the SOC chip 102 based on the wake-up instruction is received within a first preset time length; and a wake-up success determining unit configured to, when the wake-up success signal fed back by the SOC chip 102 based on the wake-up instruction is received, determine that the SOC chip 102 wakes up successfully.
[0097] Further, the SOC chip 102 runs an instrument system and a car machine system, the system restart unit 803 is specifically used for judging whether the wake-up success signal based on the wake-up instruction feedback by the instrument system of the SOC chip 102 is received within the first preset time length; if not, restarting the instrument system of the SOC chip 102. The operation return unit is specifically used for returning to execute the step of judging whether the wake-up success signal based on the wake-up instruction feedback by the instrument system of the SOC chip 102 is received within the first preset time length until the wake-up success signal feedback by the instrument system of the SOC chip 102 is received.
[0098] The system restart unit 803 is also specifically used for judging whether the wake-up success signal based on the wake-up instruction feedback by the car machine system of the SOC chip 102 is received within the first preset time length after the wake-up success signal feedback by the instrument system of the SOC chip 102 is received; if not, restarting the car machine system of the SOC chip 102. The operation return unit is used for returning to execute the step of judging whether the wake-up success signal based on the wake-up instruction feedback by the car machine system of the SOC chip 102 is received within the first preset time length until the wake-up success signal feedback by the car machine system of the SOC chip 102 is received. The wake-up success determination unit is used for determining that the SOC chip 102 wakes up successfully when the wake-up success signal based on the wake-up instruction feedback by the car machine system of the SOC chip 102 is received.
[0099] In addition, the embodiment of the present application further provides a vehicle, comprising a microprocessor 101 and a SOC chip 102, the microprocessor 101 is electrically connected with the SOC chip 102. The microprocessor 101 is used for executing the sleep method of the SOC chip provided by the above-mentioned embodiments of the present application.
[0100] In addition, the present application further provides a storage medium, the storage medium stores computer execution instructions, the computer execution instructions are executed by the microprocessor and are used for realizing the sleep method of the SOC chip provided by the above-mentioned embodiments of the present application.
[0101] In the above description, the technical details such as the composition of each layer are not described in detail. However, those skilled in the art should understand that the layers, regions and the like with the required shape can be formed by various technical means. In addition, those skilled in the art can also design methods that are not exactly the same as the methods described above in order to form the same structure. In addition, although each embodiment is described above, this does not mean that the measures in each embodiment cannot be used advantageously in combination.
[0102] While the preferred embodiments of the application have been described, additional variations and modifications can be made to these embodiments by those skilled in the art once they have the benefit of the present disclosure without departing from the spirit and scope of the application. Accordingly, it is intended that such additions and modifications be included within the scope of the application. It is the following claims, including any amendments thereto, which define the scope of the application.
[0103] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.
Claims
1. A method for putting a System-on-Demand (SOC) chip into sleep mode, applied to a vehicle microprocessor, wherein the vehicle microprocessor is electrically connected to the vehicle's SOC chip, the method comprising: When the sleep conditions are detected, a sleep command is sent to the SOC chip; If no sleep success signal is received from the SOC chip based on the sleep command within a first preset time period, the number of times the SOC chip failed to sleep is read. When the number of times the SOC chip fails to hibernate is less than or equal to a set threshold, a restart operation is performed, and the SOC chip is controlled to perform the restart operation, wherein the set threshold is greater than or equal to 2. Send a sleep command to the SOC chip again; If a sleep success signal is received from the SOC chip based on the sleep command within the first preset time period, it is determined that the SOC chip has successfully entered sleep mode.
2. The method according to claim 1, wherein, The SOC chip runs a vehicle infotainment system. When no sleep success signal is received from the SOC chip based on the sleep command within a first preset time period, the number of times the SOC chip has failed to sleep is read, including: If no hibernation success signal is received from the vehicle system based on the hibernation command within the first preset time period, the number of hibernation failures of the vehicle system is read.
3. The method according to claim 2, wherein, The SOC chip also runs an instrumentation system. The step of reading the number of times the SOC chip failed to sleep if no sleep success signal is received from the SOC chip based on the sleep command within a first preset time period further includes: If a hibernation success signal is received from the vehicle system based on the hibernation command within the first preset time period, but no hibernation success signal is received from the instrument system based on the hibernation command within the subsequent first preset time period, the number of hibernation failures of the instrument system is read.
4. The method according to claim 1, wherein, After sending a sleep command to the SOC chip when the sleep condition is detected, the method further includes: When a wake-up event is detected, it is checked whether a sleep success signal is received from the SOC chip based on the sleep command within the first preset time period; If the hibernation success signal is not received, wait for a second preset time and check again whether the hibernation success signal fed back by the SOC chip based on the hibernation command is received; If the sleep success signal is received, the SOC chip is woken up.
5. The method according to claim 4, wherein, The SOC chip runs a vehicle infotainment system. If it does not receive the sleep success signal, it waits for a second preset time and checks again whether it receives the sleep success signal fed back by the SOC chip based on the sleep command. If it receives the sleep success signal, it wakes up the SOC chip, including: If the sleep success signal transmitted by the vehicle system of the SOC chip is not received, wait for a second preset time and check again whether the sleep success signal transmitted by the vehicle system is received. If the sleep success signal is received, the SOC chip is woken up.
6. The method according to claim 5, wherein, The SOC chip also runs an instrumentation system. If the sleep success signal is not received, it waits for a second preset time and checks again whether the sleep success signal fed back by the SOC chip based on the sleep command is received. If the sleep success signal is received, the SOC chip is woken up. The system also includes: If the hibernation success signal transmitted by the vehicle system is received but the hibernation success signal transmitted by the instrument system is not received, then wait for a second preset time and check again whether the hibernation success signal transmitted by the instrument system is received. If the hibernation success signal transmitted by the instrument system is received, then wake up the instrument system and the vehicle system of the SOC chip.
7. The method according to claim 1, wherein, After determining that the SOC chip has successfully entered sleep mode, the method further includes: When a wake-up event is detected, a wake-up command is sent to the SOC chip; If no wake-up success signal is received from the SOC chip based on the wake-up command within the first preset time period, the SOC chip is restarted; and the step of sending the wake-up command to the SOC chip is returned until a wake-up success signal is received from the SOC chip based on the wake-up command within the first preset time period. Upon receiving a wake-up success signal from the SOC chip based on the wake-up command, it is determined that the SOC chip has been successfully woken up.
8. The method according to claim 7, wherein, The SOC chip runs an instrument system and a vehicle infotainment system. If no wake-up success signal is received from the SOC chip based on the wake-up command within a first preset time period, the SOC chip is restarted. Returning to the step of sending a wake-up command to the SOC chip, until within a first preset time period, a wake-up success signal is received from the SOC chip based on the wake-up command, including: Determine whether a wake-up success signal based on the wake-up command is received from the instrument system of the SOC chip within a first preset time period; If not, restart the instrumentation system of the SOC chip and return to the step of determining whether a wake-up success signal based on the wake-up command has been received from the instrumentation system of the SOC chip within the first preset time period, until a wake-up success signal from the instrumentation system of the SOC chip is received. Within a first preset time period after receiving the wake-up success signal from the instrument system of the SOC chip, determine whether the wake-up success signal from the vehicle system of the SOC chip based on the wake-up command has been received; If not, restart the vehicle system of the SOC chip and return to the step of determining whether a wake-up success signal based on the wake-up command has been received from the vehicle system of the SOC chip within the first preset time period, until a wake-up success signal from the vehicle system of the SOC chip is received. If so, the SOC chip is confirmed to have been successfully woken up.
9. A sleep mode device for a System-on-a-Chip (SOC) chip, configured in a vehicle's microprocessor, the vehicle's microprocessor being electrically connected to the vehicle's SOC chip, the device comprising: A data transmission unit is used to send a sleep command to the SOC chip when it is detected that the sleep conditions are met; The data reading unit is used to read the number of times the SOC chip failed to sleep if it does not receive a sleep success signal fed back by the SOC chip based on the sleep command within a first preset time period. The system restart unit is used to perform a restart operation when the number of times the SOC chip fails to hibernate is less than or equal to a set threshold number, and to control the SOC chip to perform the restart operation, wherein the set threshold number is greater than or equal to 2. The data transmission unit is also used to send a sleep command to the SOC chip again; The hibernation success determination unit is used to determine that the SOC chip has successfully entered hibernation if a hibernation success signal is received from the SOC chip based on the hibernation command within the first preset time period.
10. A vehicle comprising a microprocessor and a SOC chip, the microprocessor being electrically connected to the SOC chip, the microprocessor being configured to perform the method of any one of claims 1-8.
Citation Information
Patent Citations
Vehicle machine power supply management method and device, electronic equipment and storage medium
CN112026788A
Whole vehicle bus network abnormity monitoring method and system
CN113923137A
Dormancy method and device of vehicle-mounted controller and vehicle
CN116069147A
Sleep method and device of SOC chip and vehicle
CN118897696A
Apparatus and method for controlling power supply for use with computer peripheral device
US5961647A