A wake-up control method, apparatus, electronic device, and storage medium for a controller network.
By optimizing the wake-up control method of the controller network, including main chip startup, internal and external device initialization, and upper-layer software component initialization, the problem of excessively long restart time of the AUTOSAR vehicle real-time control system has been solved, and a faster network wake-up and initialization process has been achieved.
Patent Information
- Application Number
- CN202510626454.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2026-11-17
AI Technical Summary
In AUTOSAR-based real-time control systems for vehicles, the system restart process is time-consuming and cannot meet the needs of technological development.
A wake-up control method for a controller network is provided, including main chip startup, peripheral initialization, session switching time configuration, upper-layer software component initialization, and effective wake-up operation. The initialization process is optimized, and the impact of the main chip's DMA transfer capability on the peripheral SPI communication speed is taken into account.
While ensuring the original functions are maintained, the startup time of the controller network has been shortened and the reliability of the initialization process has been improved.
Smart Images

Figure CN123123045A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive electronics technology, and more specifically, to a wake-up control method, apparatus, electronic device, and storage medium for a controller network. Background Technology
[0002] AUTOSAR (Automotive Open System Architecture) is a globally recognized open software architecture standard for the automotive industry. It aims to improve the reusability, maintainability, and development efficiency of automotive electronic systems through software and hardware decoupling and interface standardization. This architecture establishes a unified software layering architecture and interface specifications, reducing collaboration costs between OEMs and suppliers and supporting compatibility with software and hardware modules from multiple vendors.
[0003] In AUTOSAR-based real-time control systems for vehicles (such as engine controllers and transmission controllers), the system restart process uses a unified controller startup procedure, which takes a long time and cannot meet the needs of technological development. Summary of the Invention
[0004] In view of this, this application provides a wake-up control method, apparatus, electronic device, and storage medium for a controller network, for reducing the startup time required for the controller network.
[0005] To achieve the above objectives, the following solution is proposed:
[0006] A wake-up control method for a controller network, applied to electronic devices in a vehicle, the wake-up control method comprising the following steps:
[0007] In response to the system's wake-up control request, the main chip startup operation is executed to enable the main chip of the controller network to start.
[0008] Perform internal and external device initialization operations on the controller network to initialize the internal and external devices of the controller network.
[0009] Configure the session handover waiting instruction handover time and environment setup time;
[0010] Perform initialization operations on the upper-layer software components of the controller network;
[0011] Perform a valid wake-up operation;
[0012] Switch the control unit of the controller network to the start state;
[0013] The CAN module controlling the controller network sends network management messages to the CAN bus.
[0014] Optionally, the wake-up control request from the response system is used to perform the main chip startup operation, including the following steps:
[0015] Configure the system clock of the controller network.
[0016] Optionally, the process of initializing the controller network's internal and external devices includes the following steps:
[0017] Perform initialization operations on the internal and / or external storage units of the controller network;
[0018] Perform initialization operations on the CAN module of the controller network.
[0019] Optionally, the initialization operation performed on the internal and / or external storage units of the controller network may also include optimization operations for data reading and SPI rate.
[0020] Optionally, the initialization operation performed on the CAN module of the controller network includes the following steps:
[0021] Switch the CAN module to STANDBY mode;
[0022] Configure the CAN time register, control register, and CAN filter register;
[0023] Initialize 2KByte of MRAM space;
[0024] Enable CAN interrupt;
[0025] Switch the CAN module to NORMAL mode and clear the Standby or Sleep cause.
[0026] Optionally, the upper-layer software components include software components for calculating SOH and SOC and software components for assigning values to CAN messages.
[0027] Optionally, switching the control unit of the controller network to the start state includes the following steps:
[0028] Switch the control unit to the STOP state;
[0029] Notify the CANSM module;
[0030] Switch the control unit to the START state.
[0031] A wake-up control device for a controller network, applied to electronic devices in a vehicle, the wake-up control device comprising:
[0032] The startup operation module is configured to respond to the system's wake-up control request and execute the main chip startup operation to enable the main chip of the controller network to start.
[0033] The initialization operation module is configured to perform internal and external device initialization operations on the controller network, so that the internal and external devices of the controller network are initialized.
[0034] The time configuration module is used to configure the session handover waiting instruction handover time and environment setup time;
[0035] The first execution module is configured to perform initialization operations on the upper-layer software components of the controller network;
[0036] The second execution module is configured to perform a valid wake-up operation;
[0037] A state switching module is configured to switch the control unit of the controller network to the start state;
[0038] The transmission control module is configured to control the CAN module of the controller network to send network management messages to the CAN bus.
[0039] An electronic device includes at least one processor and a memory connected to the processor, wherein:
[0040] The memory is used to store computer programs or instructions;
[0041] The processor is used to execute the computer program or instructions to enable the electronic device to implement the wake-up control method as described above.
[0042] A computer-readable storage medium is applied to an electronic device, the storage medium carrying one or more computer programs that can be executed by the electronic device, thereby enabling the electronic device to implement the wake-up control method as described above.
[0043] As can be seen from the above technical solutions, this application discloses a wake-up control method, device, electronic device, and storage medium for a controller network. This method and device are applied to vehicle electronic devices, specifically involving responding to a system wake-up control request and executing a main chip startup operation; performing peripheral and external device initialization operations on the controller network; configuring session switching waiting instruction switching time and environment establishment time; performing initialization operations on the upper-layer software components of the controller network; performing a valid wake-up operation; switching the controller network's control unit to the start state; and controlling the controller network's CAN module to send network management messages to the CAN bus. This application considers the key factors affecting network wake-up time under the AUTOSAR standard and proposes a process optimization scheme. It also considers the impact of the main chip's DMA handling capability on the upper limit of peripheral SPI communication speed to enhance the reliability of the initialization process, thereby shortening the network wake-up time while ensuring the original functions are maintained, effectively reducing the startup time required for the controller network. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a schematic diagram of the controller network according to an embodiment of this application;
[0046] Figure 2 This is a flowchart illustrating a wake-up control method for a controller network according to an embodiment of this application;
[0047] Figure 3 This is a block diagram of a wake-up control device for a controller network according to an embodiment of this application;
[0048] Figure 4 This is a block diagram of an electronic device according to an embodiment of this application. Detailed Implementation
[0049] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0050] This application provides a wake-up control method for a controller network, which is applied to electronic devices in a vehicle. These electronic devices can be understood as embedded devices in the vehicle, in-vehicle infotainment system, or the controller network itself. Figure 1 As shown, the controller network includes an MCU, as well as multiple sampling peripherals, external EEPROM, HVADC, RDC, SBC and CAN modules connected via SPI bus. In this application, the TCAN4550 chip is used as an example to illustrate the solution.
[0051] Figure 2 This is a flowchart illustrating a wake-up control method for a controller network according to an embodiment of this application.
[0052] like Figure 2 As shown, the wake-up control method for the controller network provided in this embodiment includes the following steps:
[0053] S1. Respond to the system's wake-up control request and execute the main chip startup operation.
[0054] The main chip of the controller network is started by performing a boot operation on the main chip. Chip boot includes system clock configuration and other configurations.
[0055] S2. Perform internal and external device initialization operations on the controller network.
[0056] By performing initialization operations on the controller network's internal and external devices, the controller network's internal and external devices are initialized. Specifically, this includes initializing the clock and initializing the TCAN4550.
[0057] The initialization steps for the internal and external EEPROMs include NVM ReadAll, data reading, data verification, and data updating. It also includes optimization processes, such as reducing the number of READALL blocks during power-up while maintaining BMS functionality. Furthermore, the SPI rate is increased to the upper limit of 2M / s specified in the chip datasheet.
[0058] The initialization process for TCAN4550 includes:
[0059] Clear the received network wake-up frames in the buffer, pull the Reset Pin high to reset the TCAN4550 chip, wait 30us to ensure the TCAN4550 restarts completely, pull the Reset Pin low to exit the TCAN4550 reset, and switch the TCAN4550 mode to STANDBY state. Additionally, set the CAN time register, control register, and CAN filter register, initialize 2KB of MRAM space, enable CAN interrupts, switch the TCAN4550 mode to NORMAL, and clear the Standby or Sleep reason.
[0060] During the controller wake-up process, the SPI task in the TCAN4550 peripheral initialization process must be synchronous communication. This is because the TCAN4550, as a CAN transceiver chip, can only recognize the network wake-up frame on the CAN bus and begin the network wake-up process after successful initialization.
[0061] Set the maximum length of a single SPI instruction according to the TCAN4550 chip manual.
[0062] For example, the TCAN4550 chip has a built-in 2KB transmit / receive buffer. During initialization, this buffer needs to be cleared. This process involves long SPI instructions, requiring the setting of the length of a single SPI instruction. The TCAN4550 chip manual specifies that the maximum length of a single SPI instruction is 1024 bytes, and the SPI instructions for initializing 2KB RAM need to be sent in segments.
[0063] The key to the TCAN4550 initialization process is the initialization of 2Kbyte RAM, which is implemented through SPI instructions.
[0064] The longer the single SPI instruction and the higher the SPI speed, the higher the requirements for the DMA handling capability of the main chip in the system containing the TCAN4550, and the higher the probability of transmission failure. Conversely, the shorter the single SPI instruction, the more SPI instructions are needed to complete the 2Kbyte RAM assignment task, and the more instruction intervals exist. After testing, the solution of setting the SPI rate to 10Mbps and completing the 2Kbyte RAM assignment task with four SPI instructions has the shortest transmission time and is less prone to transmission failure.
[0065] Set the upper limit of the SPI communication speed of the TCAN4550 peripherals according to the DMA transfer capability of the main chip.
[0066] In addition, since the TCAN4550 cannot switch directly from SLEEP state to START state, it is first put into Standby mode, which corresponds to the STOP state of the software controller.
[0067] S3. Configure session switching wait time and environment setup time;
[0068] During the session switching instruction waiting time, the process will be executed according to enterprise standards or other predetermined standards. Environment setup time refers to the environment setup time of the main chip within the APP.
[0069] S4. Perform initialization operations on the upper-layer software components of the controller network.
[0070] The initialization of the upper-layer Software Component (SWC) involves functional SWCs, including those for calculating State of Health (SOH) and State of Charge (SOC), as well as those for assigning values to CAN messages. The initialization process includes interface initialization and global variable assignment. Additionally, it includes an optimization process, such as reducing the number of interfaces and global variables.
[0071] S5. Perform a valid wake-up operation;
[0072] The TCAN4550 driver software needs to design network management message filtering and establish an interface with the upper layer. Specifically, this is achieved by designing a filter register in the TCAN4550 to receive CAN message IDs. The reason for designing the filter is that there are regulations regarding the CAN IDs of network wake-up frames; only CAN messages within a specific CAN ID range can wake up the controller. This filter is used to filter for that specific CAN ID.
[0073] S6. Switch the control unit of the controller network to the start state.
[0074] The specific process is as follows:
[0075] First, switch the controller to the STOP state;
[0076] Then, notify the CANSM module;
[0077] Finally, switch the Controller to the Start state. This involves periodic tasks such as CANSM_MainFunction, ComM_MainFunction, and BswM_MainFunction under the AUTOSAR standard. Some module main functions need to be executed multiple times to complete the state machine mode switching process. Therefore, the software design needs to shorten the task cycle of these mode management-related modules when resources allow.
[0078] Since the controller cannot switch directly from SLEEP state to START state, it needs to be put into Standby mode first, and then switched to START state.
[0079] The mode transition process during power-on involves periodic tasks such as TCAN4550_MainFunction, CANSM_MainFunction, ComM_MainFunction, and BswM_MainFunction. Some MainFunctions require multiple executions to complete the state machine mode switching process. Furthermore, several other tasks exist besides the aforementioned MainFunctions upon power-on, and these MainFunctions may not execute sequentially, resulting in a relatively long overall execution time. To optimize wake-up control, this application also employs optimized scheduling and modifications to the MainFunction cycle.
[0080] S7 controls the CAN module to send network management messages to the CAN bus.
[0081] This means controlling the CAN module in the controller module to send network management messages to the CAN bus. To ensure that the first frame sent by the controller is a network management frame, a time offset needs to be set for all other transmission frames. Offset principle: The offset is set according to the transmission period and the importance of the transmission frames. In principle, the number of transmission frames within 5ms should not exceed 3 frames.
[0082] As can be seen from the above technical solution, this embodiment provides a wake-up control method for a controller network. This method is applied to vehicle electronic devices and specifically involves responding to a system wake-up control request, executing a main chip startup operation; performing peripheral and external device initialization operations on the controller network; configuring session switching waiting instruction switching time and environment establishment time; performing initialization operations on the upper-layer software components of the controller network; performing a valid wake-up operation; switching the controller network's control unit to the start state; and controlling the controller network's CAN module to send network management messages to the CAN bus. This application considers the key factors affecting network wake-up time under the AUTOSAR standard and proposes a process optimization scheme. It also considers the impact of the main chip's DMA handling capability on the upper limit of peripheral SPI communication speed to enhance the reliability of the initialization process. Therefore, while ensuring the original functions, the network wake-up time is shortened, effectively reducing the startup time required for the controller network.
[0083] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0084] Although the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous.
[0085] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0086] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer.
[0087] Figure 3 This is a block diagram of a wake-up control device for a controller network according to an embodiment of this application.
[0088] like Figure 3As shown, the wake-up control device for the controller network provided in this embodiment includes a start operation module 10, an initialization operation module 20, a time configuration module 30, a first execution module 40, a second execution module 50, a state switching module 60, and a transmission control module 70.
[0089] The startup control module is used to respond to the system's wake-up control request and execute the main chip startup operation.
[0090] The main chip of the controller network is started by performing a boot operation on the main chip. Chip boot includes system clock configuration and other configurations.
[0091] The initialization operation module is used to perform internal and external device initialization operations on the controller network.
[0092] By performing initialization operations on the controller network's internal and external devices, the controller network's internal and external devices are initialized. Specifically, this includes initializing the clock and initializing the TCAN4550.
[0093] The initialization steps for the internal and external EEPROMs include NVM ReadAll, data reading, data verification, and data updating. It also includes optimization processes, such as reducing the number of READALL blocks during power-up while maintaining BMS functionality. Furthermore, the SPI rate is increased to the upper limit of 2M / s specified in the chip datasheet.
[0094] The initialization process for TCAN4550 includes:
[0095] Clear the received network wake-up frames in the buffer, pull the Reset Pin high to reset the TCAN4550 chip, wait 30us to ensure the TCAN4550 restarts completely, pull the Reset Pin low to exit the TCAN4550 reset, and switch the TCAN4550 mode to STANDBY state. Additionally, set the CAN time register, control register, and CAN filter register, initialize 2KB of MRAM space, enable CAN interrupts, switch the TCAN4550 mode to NORMAL, and clear the Standby or Sleep reason.
[0096] During the controller wake-up process, the SPI task in the TCAN4550 peripheral initialization process must be synchronous communication. This is because the TCAN4550, as a CAN transceiver chip, can only recognize the network wake-up frame on the CAN bus and begin the network wake-up process after successful initialization.
[0097] Set the maximum length of a single SPI instruction according to the TCAN4550 chip manual.
[0098] For example, the TCAN4550 chip has a built-in 2KB transmit / receive buffer. During initialization, this buffer needs to be cleared. This process involves long SPI instructions, requiring the setting of the length of a single SPI instruction. The TCAN4550 chip manual specifies that the maximum length of a single SPI instruction is 1024 bytes, and the SPI instructions for initializing 2KB RAM need to be sent in segments.
[0099] The key to the TCAN4550 initialization process is the initialization of 2Kbyte RAM, which is implemented through SPI instructions.
[0100] The longer the single SPI instruction and the higher the SPI speed, the higher the requirements for the DMA handling capability of the main chip in the system containing the TCAN4550, and the higher the probability of transmission failure. Conversely, the shorter the single SPI instruction, the more SPI instructions are needed to complete the 2Kbyte RAM assignment task, and the more instruction intervals exist. After testing, the solution of setting the SPI rate to 10Mbps and completing the 2Kbyte RAM assignment task with four SPI instructions has the shortest transmission time and is less prone to transmission failure.
[0101] Set the upper limit of the SPI communication speed of the TCAN4550 peripherals according to the DMA transfer capability of the main chip.
[0102] In addition, since the TCAN4550 cannot switch directly from SLEEP state to START state, it is first put into Standby mode, which corresponds to the STOP state of the software controller.
[0103] The time configuration module is used to configure the session switching wait instruction switching time and environment setup time;
[0104] During the session switching instruction waiting time, the process will be executed according to enterprise standards or other predetermined standards. Environment setup time refers to the environment setup time of the main chip within the APP.
[0105] The first execution module is used to perform initialization operations on the upper-layer software components of the controller network.
[0106] The initialization of the upper-layer Software Component (SWC) involves functional SWCs, including those for calculating State of Health (SOH) and State of Charge (SOC), as well as those for assigning values to CAN messages. The initialization process includes interface initialization and global variable assignment. Additionally, it includes an optimization process, such as reducing the number of interfaces and global variables.
[0107] The second execution module is used to perform a valid wake-up operation;
[0108] The TCAN4550 driver software needs to design network management message filtering and establish an interface with the upper layer. Specifically, this is achieved by designing a filter register in the TCAN4550 to receive CAN message IDs. The reason for designing the filter is that there are regulations regarding the CAN IDs of network wake-up frames; only CAN messages within a specific CAN ID range can wake up the controller. This filter is used to filter for that specific CAN ID.
[0109] The state switching module is used to switch the control units of the controller network to the start state.
[0110] The specific process is as follows:
[0111] First, switch the controller to the STOP state;
[0112] Then, notify the CANSM module;
[0113] Finally, switch the Controller to the Start state. This involves periodic tasks such as CANSM_MainFunction, ComM_MainFunction, and BswM_MainFunction under the AUTOSAR standard. Some module main functions need to be executed multiple times to complete the state machine mode switching process. Therefore, the software design needs to shorten the task cycle of these mode management-related modules when resources allow.
[0114] Since the controller cannot switch directly from SLEEP state to START state, it needs to be put into Standby mode first, and then switched to START state.
[0115] The mode transition process during power-on involves periodic tasks such as TCAN4550_MainFunction, CANSM_MainFunction, ComM_MainFunction, and BswM_MainFunction. Some MainFunctions require multiple executions to complete the state machine mode switching process. Furthermore, several other tasks exist besides the aforementioned MainFunctions upon power-on, and these MainFunctions may not execute sequentially, resulting in a relatively long overall execution time. To optimize wake-up control, this application also employs optimized scheduling and modifications to the MainFunction cycle.
[0116] The transmit control module is used to control the CAN module to send network management messages to the CAN bus.
[0117] This means controlling the CAN module in the controller module to send network management messages to the CAN bus. To ensure that the first frame sent by the controller is a network management frame, a time offset needs to be set for all other transmission frames. Offset principle: The offset is set according to the transmission period and the importance of the transmission frames. In principle, the number of transmission frames within 5ms should not exceed 3 frames.
[0118] As can be seen from the above technical solution, this embodiment provides a wake-up control device for a controller network. This device is applied to the electronic equipment of a vehicle. Specifically, it responds to the system's wake-up control request, executes the main chip startup operation; performs peripheral initialization operations on the controller network; configures the session switching waiting instruction switching time and environment establishment time; executes the initialization operation of the upper-layer software components of the controller network; performs a valid wake-up operation; switches the control unit of the controller network to the start state; and controls the controller network CAN module to send network management messages to the CAN bus. This application considers the key factors affecting network wake-up time under the AUTOSAR standard and proposes a process optimization scheme. It also considers the impact of the main chip's DMA handling capability on the upper limit of peripheral SPI communication speed to enhance the reliability of the initialization process. Thus, while ensuring the original functions, it shortens the network wake-up time and effectively reduces the time required for the controller network to start.
[0119] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0120] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0121] Figure 4 This is a block diagram of an electronic device according to an embodiment of this application.
[0122] The following is for reference. Figure 4This document illustrates a structural diagram suitable for implementing the electronic device in the embodiments of this disclosure. The terminal device in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. This electronic device is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this disclosure.
[0123] The electronic device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from an input device 406 into a random access memory (RAM) 403. The RAM also stores various programs and data required for the operation of the electronic device. The processing unit, ROM, and RAM are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0124] Typically, the following devices can be connected to the I / O interface: input devices including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 407 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 408 including, for example, magnetic tapes, hard disks, etc.; and communication devices 409. Communication device 409 allows the electronic device to communicate wirelessly or wiredly with other devices to exchange data. Although electronic devices with various devices are shown in the figures, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0125] This application also provides an embodiment of a computer-readable storage medium.
[0126] The aforementioned computer-readable storage medium is used in an electronic device and carries one or more computer programs. When these programs are executed by the electronic device, the device responds to the system's wake-up control request, performs the main chip startup operation, initializes the controller network's internal and external devices, configures session switching waiting instruction switching time and environment setup time, initializes the upper-layer software components of the controller network, performs a valid wake-up operation, switches the controller network's control unit to the start state, and controls the controller network's CAN module to send network management messages to the CAN bus. This application considers the key factors affecting network wake-up time under the AUTOSAR standard and proposes a process optimization scheme. It also considers the impact of the main chip's DMA handling capability on the upper limit of peripheral SPI communication speed to enhance the reliability of the initialization process. Therefore, while ensuring the original functionality, it shortens the network wake-up time and effectively reduces the startup time required for the controller network.
[0127] It should be noted that the computer-readable medium described above in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.
[0128] In this disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0129] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0130] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0131] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0132] The technical solution provided by the present invention has been described in detail above. Specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core idea of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the idea of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A wake-up control method for a controller network, applied to electronic devices in a vehicle, characterized in that, The wake-up control method includes the following steps: In response to the system's wake-up control request, the main chip startup operation is executed to enable the main chip of the controller network to start. Perform internal and external device initialization operations on the controller network to initialize the internal and external devices of the controller network. Configure the session handover waiting instruction handover time and environment setup time; Perform initialization operations on the upper-layer software components of the controller network; Perform a valid wake-up operation; Switch the control unit of the controller network to the start state; The CAN module controlling the controller network sends network management messages to the CAN bus.
2. The wake-up control method as described in claim 1, characterized in that, The system responds to the wake-up control request and performs the main chip startup operation, including the following steps: Configure the system clock of the controller network.
3. The wake-up control method as described in claim 1, characterized in that, The initialization operation of the controller network's internal and external devices includes the following steps: Perform initialization operations on the internal and / or external storage units of the controller network; Perform initialization operations on the CAN module of the controller network.
4. The wake-up control method as described in claim 3, characterized in that, The initialization operation performed on the internal and / or external storage units of the controller network also includes optimization operations for data reading and SPI rate.
5. The wake-up control method as described in claim 3, characterized in that, The initialization operation performed on the CAN module of the controller network includes the following steps: Switch the CAN module to STANDBY mode; Configure the CAN time register, control register, and CAN filter register; Initialize 2KByte of MRAM space; Enable CAN interrupt; Switch the CAN module to NORMAL mode and clear the Standby or Sleep reason.
6. The wake-up control method as described in claim 1, characterized in that, The upper-layer software components include software components for calculating SOH and SOC and software components for assigning values to CAN messages.
7. The wake-up control method as described in claim 1, characterized in that, Switching the control unit of the controller network to the start state includes the following steps: Switch the control unit to the STOP state; Notify the CANSM module; Switch the control unit to the START state.
8. A wake-up control device for a controller network, applied to electronic devices in a vehicle, characterized in that, The wake-up control device includes: The startup operation module is configured to respond to the system's wake-up control request and execute the main chip startup operation to enable the main chip of the controller network to start. The initialization operation module is configured to perform internal and external device initialization operations on the controller network, so that the internal and external devices of the controller network are initialized. The time configuration module is used to configure the session handover waiting instruction handover time and environment setup time; The first execution module is configured to perform initialization operations on the upper-layer software components of the controller network; The second execution module is configured to perform a valid wake-up operation; A state switching module is configured to switch the control unit of the controller network to the start state; The transmission control module is configured to control the CAN module of the controller network to send network management messages to the CAN bus.
9. An electronic device, characterized in that, The electronic device includes at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs or instructions; The processor is used to execute the computer program or instructions to enable the electronic device to implement the wake-up control method as described in any one of claims 1 to 7.
10. A computer-readable storage medium for use in electronic devices, characterized in that, The storage medium carries one or more computer programs that can be executed by the electronic device, thereby enabling the electronic device to implement the wake-up control method as described in any one of claims 1 to 7.
