Controller wake-up circuit, method and related device
By combining a controller, a wake-up source device, and a multiplexer, and utilizing interrupt signals and polling wake-up signals, the problem of limited controller interrupt interfaces is solved, and the requirement for fast wake-up of the wake-up source under low power consumption is realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2026-03-10
AI Technical Summary
The limited number of controller interrupt interfaces makes it impossible to directly connect multiple wake-up sources, which makes it difficult to guarantee that wake-up sources with fast wake-up requirements can be woken up quickly under low sleep power consumption.
A combination of controller, wake-up source device and multiplexer is adopted to quickly identify and wake up wake-up sources with fast wake-up requirements through interrupt signals and polling wake-up signals.
It achieves rapid wake-up of wake-up sources with high wake-up requirements while maintaining low sleep power consumption, and also takes into account the low power consumption requirements of the controller.
Smart Images

Figure CN121634940A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of automatic control, and in particular to a controller wake-up circuit, method and related device. BACKGROUND
[0002] When the controller is in a sleep state, the controller can be woken up by sending an external wake-up signal to the interrupt interface of the controller. The wake-up signal is usually provided by a wake-up source, and the controller can be externally connected to various wake-up sources.
[0003] The number of interrupt interfaces in the controller is limited and cannot be directly connected to each wake-up source. When the number of wake-up sources is large, a polling method using a multi-plexer is needed to solve the problem. Because there is a certain requirement for sleep power consumption in actual scenarios, the polling period of the multi-plexer cannot be too short. In addition, when there is a wake-up source with a fast wake-up requirement among the wake-up sources, the polling period cannot be too long. Therefore, how to ensure that the wake-up source with a fast wake-up requirement can be quickly woken up under the premise of low sleep power consumption has become one of the technical problems to be solved by the technical personnel in the field. SUMMARY
[0004] In view of the above problems, the present application provides a controller wake-up circuit, method and related device to achieve the purpose of waking up the controller and interacting with the wake-up source sending the wake-up signal. The specific scheme is as follows:
[0005] A controller wake-up circuit, comprising: a controller, a wake-up source device, and at least one multiplexer;
[0006] The controller has an interrupt signal input end, a wake-up signal receiving end, and a channel selection end;
[0007] The wake-up source device includes a first type of wake-up source; the first type of wake-up source includes an interrupt signal output end and a wake-up signal output end;
[0008] The multiplexer has an input end, a wake-up signal output end, and a channel selection receiving end, the channel selection end of the controller is connected to the channel selection receiving end of the multiplexer, and the wake-up signal receiving end of the controller is connected to the wake-up signal output end of the multiplexer;
[0009] The interrupt signal output end of the first type of wake-up source is connected with the interrupt signal input end of the controller, the wake-up signal output end of the first type of wake-up source is connected with the input end of the multiplexer corresponding thereto, the first type of wake-up source is used for outputting an interrupt signal to the controller through the interrupt signal output end and outputting a polling wake-up signal to the multiplexer through the wake-up signal output end; the controller is used for being woken up in response to the interrupt signal and polling the multiplexer in response to the polling wake-up signal.
[0010] The wake-up signal receiving end of the controller is connected with the wake-up signal output end of the multiplexer.
[0011] Optionally, in the controller wake-up circuit, the wake-up source device further comprises a second type of wake-up source, the second type of wake-up source has a wake-up signal output end, and the wake-up signal output end of the second type of wake-up source is connected with the input end of the multiplexer corresponding thereto.
[0012] Optionally, in the controller wake-up circuit, the controller is used for outputting a polling signal to the multiplexer through the channel selection end.
[0013] The multiplexer acquires the polling signal through the channel selection receiving end, determines a target input end matched with the polling signal, and controls the circuit between the target input end and the wake-up signal output end to be turned on.
[0014] The controller is further used for determining the multiplexer that acquires the polling wake-up signal, determining the value of the polling signal when the polling wake-up signal is acquired, and determining the target wake-up source device based on the determined multiplexer and the value of the polling signal.
[0015] A controller wake-up method applied to a controller, the method comprising:
[0016] In the case of the sleep state, if an interrupt signal is acquired, the sleep state is switched to a wake-up state in response to the interrupt signal.
[0017] The multiplexer is polled, and a target wake-up source that sends the interrupt signal is determined based on a polling result.
[0018] Optionally, in the controller wake-up method, the target wake-up source that sends the interrupt signal is determined based on the polling result, comprising:
[0019] The multiplexer is polled by using a polling signal, a multiplexer that acquires a polling wake-up signal is determined based on the acquired polling wake-up signal, the value of the polling signal when the polling wake-up signal is acquired is determined, and the target wake-up source that sends the interrupt signal is determined based on the determined multiplexer and the value of the polling signal.
[0020] Optionally, the above controller wake-up method further includes:
[0021] When in sleep mode, if the received wake-up signal is a polling wake-up signal output by the multiplexer, the system switches to wake-up mode in response to the polling wake-up signal sent by the multiplexer.
[0022] Optionally, in the above controller wake-up method, the controller's polling cycle includes a polling sub-cycle and a sleep sub-cycle. The step of polling the multiplexer and determining the target wake-up source for sending the interrupt signal based on the polling results includes:
[0023] Identify the time when the interrupt signal occurs within the polling cycle;
[0024] If the occurrence time occurs within the polling sub-cycle, stop the current polling, restart the polling of the multiplexer, and determine the target wake-up source for sending the interrupt signal based on the polling result.
[0025] If the occurrence time occurs within the sleep sub-cycle, the multiplexer is polled, and the target wake-up source for sending the interrupt signal is determined based on the polling result.
[0026] A computer program product includes computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the controller wake-up method described in any of the preceding claims.
[0027] An electronic device includes at least one processor and a memory connected to the processor, wherein:
[0028] The memory is used to store computer programs;
[0029] The processor is used to execute the computer program to enable the electronic device to implement the controller wake-up method as described in any of the above.
[0030] A computer storage medium carrying one or more computer programs, which, when executed by an electronic device, enable the electronic device to implement the controller wake-up method as described in any of the preceding claims.
[0031] A vehicle comprising the controller wake-up circuit described in any one of the preceding claims.
[0032] By means of the above technical solution, the present invention discloses a controller wake-up circuit, method and related apparatus, including: a controller, a wake-up source device and at least one multiplexer. The wake-up source device includes a first type of wake-up source that needs to be woken up quickly. Each input terminal of the multiplexer is connected to a wake-up source. The interrupt signal output terminal of the first type of wake-up source is connected to the interrupt signal input terminal of the controller. The wake-up signal output terminal of the first type of wake-up source is connected to the input terminal of the corresponding multiplexer. The first type of wake-up source outputs an interrupt signal to the controller through the interrupt signal output terminal and outputs a polling wake-up signal to the multiplexer through the wake-up signal output terminal. The controller can then be woken up by the interrupt signal. Then, based on the polling result, the signal source that initiates the wake-up is identified. Thus, the controller can be quickly woken up by the first type of signal source with low sleep power consumption. Attached Figure Description
[0033] The above and other features, advantages, and aspects of the embodiments disclosed in this application will become more apparent when taken in conjunction with the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0034] Figure 1 A schematic diagram of a system architecture is provided for this application;
[0035] Figure 2 A schematic diagram of a wake-up source provided in this application;
[0036] Figure 3 Another schematic diagram of a wake-up source provided in this application;
[0037] Figure 4 A controller wake-up circuit is provided in this application;
[0038] Figure 5 A controller wake-up method is provided in this application;
[0039] Figure 6 A block diagram of a controller wake-up device provided in this application;
[0040] Figure 7 This is a schematic diagram of the structure of a device provided in this application.
[0041] Figure label:
[0042] 100 - Wake-up source; 200 - Controller wake-up circuit; 110 - Radio frequency unit; 120 - Memory; 130 - Input unit; 140 - Display unit; 150 - Camera; 160 - Audio circuit; 161 - Speaker; 162 - Microphone; 163 - Headphone jack; 170 - Processor; 180 - External interface; 190 - Power supply. Detailed Implementation
[0043] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.
[0044] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.
[0045] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.
[0046] This application can be applied to the field of automatic control. The following section uses controller wake-up as an example to introduce several application scenarios implemented in products. The solution provided in this application can be applied to all electronic devices with controllers, and these electronic devices can be of various types, such as terminal-side devices, intermediate devices, and server-side devices.
[0047] First, let's introduce the application scenarios of this application.
[0048] This application can be applied, but is not limited to, to applications with controller wake-up functionality or cloud services provided by cloud-side servers, which will be described in detail below:
[0049] See Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The system may include a wake-up source 100 and a controller wake-up circuit 200. The wake-up source 100 may include one or more (…). Figure 1(The example includes a wake-up source) The controller wake-up circuit 200 implements the controller wake-up method provided in the embodiments of this application.
[0050] According to the embodiments of the present invention, the wake-up source 100 can send a wake-up signal (parameter) to the controller wake-up circuit 200 to wake up the controller in a dormant state. The wake-up source 100 can also send relevant control data or other data (related data) to the controller wake-up circuit 200. The controller wake-up circuit 200 responds to the received data or performs other processing (related data) and feeds back the result to the wake-up source 100.
[0051] The following description Figure 1 The product form of the Wake-Up Source 100;
[0052] In this application embodiment, the wake-up source 100 can be a terminal or a server. The terminal can include controllers in devices such as vehicles, mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). This application embodiment does not impose any limitations on this.
[0053] Figure 2 A schematic diagram of an optional hardware structure for a wake-up source 100 that exists in the form of a terminal is shown.
[0054] refer to Figure 2 As shown, the wake-up source 100 may include a radio frequency unit 110 (optional), a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161, a microphone 162, a headphone jack 163, a processor 170, an external interface 180, a power supply 190, and other components. Those skilled in the art will understand that... Figure 2 These are merely examples of terminals or multi-functional devices and do not constitute a limitation on terminals or multi-functional devices. They may include more or fewer components than shown in the illustration, or combine certain components, or use different components.
[0055] The input unit 130 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of the portable multi-functional device. Specifically, the input unit 130 may include a touchscreen 131 (optional) and / or other input devices 132. The touchscreen 131 can collect touch operations performed by the user on or near it (such as operations performed by the user using fingers, knuckles, styluses, or any suitable object on or near the touchscreen), and drive the corresponding connection devices according to a pre-set program. The touchscreen can detect the user's touch actions, convert the touch actions into touch signals and send them to the processor 170, and can receive and execute commands sent by the processor 170; the touch signal includes at least touch point coordinate information. The touchscreen 131 can provide an input interface and an output interface between the terminal 100 and the user. In addition, various types of touchscreens, such as resistive, capacitive, infrared, and surface acoustic wave, can be used to implement the touchscreen. Besides the touchscreen 131, the input unit 130 may also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.
[0056] Among them, the input device 132 can receive input data, etc.
[0057] The display unit 140 can be used to display information input by the user or information provided to the user, various menus of the controller 100, interactive interfaces, file display, and / or playback of any multimedia file. In this embodiment, the display unit 140 can be used to display the interface of the controller wake-up method, processing results, etc.
[0058] The memory 120 can be used to store instructions and data. The memory 120 may primarily include an instruction storage area and a data storage area. The data storage area can store various types of data, such as multimedia files and text. The instruction storage area can store software units such as operating systems, applications, and instructions required for at least one function, or subsets or extended sets thereof. It may also include non-volatile random access memory. It provides the processor 170 with hardware, software, and data resources for managing the computing device, supporting control software and applications. It is also used for storing multimedia files, as well as storing running programs and applications.
[0059] The processor 170 is the control center of the controller 100. It connects various parts of the controller 100 via various interfaces and lines. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it performs various functions of the controller 100 and processes data, thereby providing overall control of the terminal device. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 170. In some embodiments, the processor and memory can be implemented on a single chip; in some embodiments, they can also be implemented separately on independent chips. The processor 170 can also be used to generate corresponding operation control signals, send them to the corresponding components of the computing device, read and process data in the software, especially read and process data and programs in the memory 120, so that the various functional modules therein perform corresponding functions, thereby controlling the corresponding components to act according to the instructions.
[0060] The memory 120 can be used to store the controller wake-up method and related software code. The processor 170 can execute the steps of the controller wake-up method and can also schedule other units (such as the above-mentioned input unit 130 and display unit 140) to achieve the corresponding functions.
[0061] The radio frequency unit 110 (optional) can be used for receiving and transmitting signals during information transmission or calls. For example, it can receive downlink information from the base station and process it for the processor 170; additionally, it can transmit uplink data to the base station. Typically, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, etc. Furthermore, the radio frequency unit 110 can also communicate wirelessly with network devices and other devices. This wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0062] In this embodiment of the application, the radio frequency unit 110 can send data to the controller wake-up circuit 200 and receive the processing result sent by the controller wake-up circuit 200.
[0063] It should be understood that the radio frequency unit 110 is optional and can be replaced with other communication interfaces, such as a network port.
[0064] The wake-up source 100 also includes a power supply 190 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0065] The wake-up source 100 also includes an external interface 180, which can be a standard Micro USB interface or a multi-pin connector, which can be used to connect the wake-up source 100 to communicate with other devices, or to connect a charger to charge the controller 100.
[0066] Although not shown, the wake-up source 100 may also include a flash, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which will not be described in detail here. Some or all of the methods described below can be applied to, for example... Figure 2 The wake-up source 100 shown.
[0067] Furthermore, wake-up source 100 can exist in the form of a server. Figure 3 A schematic diagram of the structure of a wake-up source 100 existing in the form of a server is provided, such as... Figure 3 As shown, the wake-up source 100 includes a bus 201, a processor 202, a communication interface 203, and a memory 204. The processor 202, the memory 204, and the communication interface 203 communicate with each other via the bus 201.
[0068] Bus 201 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 3 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0069] The processor 202 can be any one or more of the following processors: central processing unit (CPU), graphics processing unit (GPU), microprocessor (MP), or digital signal processor (DSP).
[0070] Memory 204 may include volatile memory, such as random access memory (RAM). Memory 204 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).
[0071] The memory 204 can be used to store software code related to the wake-up source in the controller wake-up method, and the processor 202 can execute the steps of the chip's controller wake-up method, and can also schedule other units to achieve the corresponding functions.
[0072] It should be understood that the processor in the wake-up source 100 (e.g., processor 170 and processor 202) can be a hardware circuit (such as an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a general-purpose processor, a digital signal processor (DSP), a microprocessor or microcontroller, etc.) or a combination of these hardware circuits. For example, the processor can be a hardware system with instruction execution capabilities, such as a CPU or DSP, or a hardware system without instruction execution capabilities, such as an ASIC or FPGA, or a combination of the aforementioned hardware systems without instruction execution capabilities and hardware systems with instruction execution capabilities.
[0073] To ensure rapid wake-up of wake-up sources with low sleep power consumption, this application provides a controller wake-up circuit 200. The following detailed description, in conjunction with the accompanying drawings, provides an embodiment of a controller wake-up circuit, method, and related apparatus according to this application.
[0074] Reference Figure 4 , Figure 4 A controller wake-up circuit 200 is provided in this application embodiment. The controller wake-up circuit 200 includes: a controller MCU, a wake-up source device, and at least one multiplexer (MUX). In this embodiment, based on the wake-up speed requirements of the wake-up source device, the wake-up source device can be divided into a first type of wake-up source 00 and a second type of wake-up source. The specific form of the existence of the first type of wake-up source 00 and the second type of wake-up source is not limited. Preferably, see [link to application details]. Figure 4 In this scheme, the first type of wake-up source is used as the Controller Area Network transceiver (CAN) as an example for illustration, and the second type of wake-up source is not shown.
[0075] Each type I wake-up source has a signal input terminal (CANL / H), an interrupt signal output terminal ((RX1…RXn)) and a wake-up signal output terminal (CANn_WAKE);
[0076] The controller has an interrupt signal input terminal (INTP) and multiple channel selection terminals (SELA, SELB, and SELC). Each multiplexer has multiple input terminals (WAKE) and multiple channel selection receivers (ports in the MUX connected to SELA, SELB, and SELC). For example, in this application, the multiplexer has eight input terminals (WAKE), denoted as WAKE1 to WAKE8. The interrupt signal output terminal of the first type of wake-up source is connected to the interrupt signal input terminal of the controller, and the wake-up signal output terminal of the first type of wake-up source is connected to the input terminal of its corresponding multiplexer.
[0077] The second type of wake-up source is connected to the controller via a multiplexer. Specifically, the second type of wake-up source also has a wake-up signal output terminal, and the wake-up signal output terminal of the second type of wake-up source is also connected to the input terminal of its corresponding multiplexer. Furthermore, the wake-up signal output terminal of each wake-up source is connected to the input terminal of the multiplexer in a one-to-one correspondence. The connection method between this type of wake-up source, the multiplexer, and the controller can be found in existing solutions.
[0078] When the first type of wake-up source needs to wake up the controller, its signal input terminal receives a trigger signal. At this time, the interrupt signal output terminal of the first type of wake-up source outputs an interrupt signal to the interrupt signal input terminal of the controller. Simultaneously, the wake-up signal output terminal of the first type of wake-up source also outputs a polling wake-up signal to the input terminal of the multiplexer. The interrupt signal is used to quickly wake up the controller, and the output polling wake-up signal assists the controller in determining which first type of wake-up source woke up the controller. The trigger signal can be a high-level signal such as a switch signal or a step signal; the interrupt signal can be a brief high-level signal; and the polling wake-up signal can be a long high-level signal.
[0079] In the technical solution disclosed in this application, a first type of wake-up source with a fast wake-up requirement is connected to the interrupt signal input terminal of the controller. When the first type of wake-up source needs to wake up the controller, it directly sends an interrupt signal to the controller, thereby quickly waking up the controller. At the same time, the first type of wake-up source outputs a polling signal to the multiplexer through the wake-up signal output terminal. After the controller is woken up, it polls the multiplexer. Based on the polling result, it can quickly determine which first type of signal source woke up the controller. When the first type of signal source does not have a wake-up requirement, the controller can poll in a conventional manner. Thus, the controller can be quickly woken up by the first type of signal source with low sleep power consumption.
[0080] See Figure 4In this embodiment, each of the multiplexers includes: a wake-up signal input terminal (WAKE1…WAKE8, WAKEn1…WAKEn8), multiple channel selection receivers (ports in the MUX connected to SELA, SELB and SELC), and a wake-up signal output terminal (WAKEUP1…WAKEUPn).
[0081] The controller includes at least: an interrupt signal input terminal (INTP), multiple channel selection terminals (SELA, SELB and SELC) and a wake-up signal receiving terminal (the port in the controller that is connected to WAKEUP1...WAKEUPn in the MUX).
[0082] The multiplexer has an input terminal, a wake-up signal output terminal, and a channel selection receiver terminal. The wake-up signal receiver terminal of the controller is connected to the wake-up signal output terminal of the multiplexer in a one-to-one correspondence. Multiple channel selection receiver terminals of the multiplexers share the channel selection terminal of the controller. Under the control of the output signal of the channel selection terminal of the controller, the wake-up signal output terminal of each multiplexer can be sequentially connected to its respective input terminal through an internal control switch.
[0083] The wake-up source device includes a first type of wake-up source; the first type of wake-up source has an interrupt signal output terminal and a wake-up signal output terminal.
[0084] The interrupt signal output terminals of each of the first type of wake-up sources are connected to the same interrupt signal input terminal of the controller, and the wake-up sources connected to different input terminals of the multiplexer are different.
[0085] When polling a multiplexer, the controller generates a polling signal through its channel selection terminal. This polling signal controls the sequential connection of each input terminal of the multiplexer to the wake-up signal output terminal. Different values of the polling signal result in different input terminals connected to the wake-up signal output terminal. When the polling signal connects the input terminal that receives the polled wake-up signal to the wake-up signal output terminal, the polled wake-up signal is input to the controller through the wake-up signal output terminal and the wake-up signal receiver terminal. Since different multiplexers connect their wake-up signal output terminals to different wake-up signal receiver terminals, the controller can determine which multiplexer output the polled wake-up signal based on the identifier of the wake-up signal receiver terminal. Furthermore, since different values of the polling signal result in different input terminals connected to the wake-up signal output terminal, identifying the polling signal allows the controller to further determine which input terminal of the multiplexer is connected to the wake-up source device that initiated the wake-up.
[0086] The first type of wake-up source outputs an interrupt signal to the controller through the interrupt signal output terminal and outputs a polling wake-up signal to the multiplexer through the wake-up signal output terminal. The controller can then be woken up by the interrupt signal. The controller then polls the multiplexer to determine which first type of wake-up source woke up the controller.
[0087] In this embodiment of the invention, the other input terminals of the multiplexer (excluding the input terminals connected to the first type of signal source) are connected one-to-one with the second type of wake-up source. When the second type of wake-up source has a wake-up requirement, it sends a polling wake-up signal to the input terminal of its corresponding multiplexer. This polling signal can be a long high-level signal. When the controller polls and recognizes this polling wake-up signal, it can be woken up by the polling wake-up signal.
[0088] In this application, the configuration of the channel selection terminal is related to the number of input terminals of the multiplexer. Taking binary mode as an example, when the number of input terminals is 8, the polling signal is composed of the output signals of the three channel selection terminals (SELA, SELB, and SELC) of the controller. The polling signal composed of SELA, SELB, and SELC can be 000, 001, 010, 011, 100, 101, 110, 111. When the polling signal is 000, the first input terminal of the multiplexer is connected to the wake-up signal output terminal. When the polling signal is 001, the multiplexer controls the conduction state of its internal control switch to connect its second input terminal to the wake-up signal output terminal, and so on. When the polling signal is 111, the multiplexer controls the conduction state of its internal control switch to connect its eighth input terminal to the wake-up signal output terminal.
[0089] Furthermore, the wake-up source device includes a first signal transceiver terminal, and the controller includes a second signal transceiver terminal, wherein the first signal transceiver terminal is connected to the second signal transceiver terminal. The first wake-up signal transceiver terminal and the second wake-up signal transceiver terminal are used to interact with the corresponding wake-up source device after the controller wakes the user up. Furthermore, the wake-up source device and the controller interact based on a Universal Asynchronous Receiver / Transmitter (UART).
[0090] In this embodiment of the invention, reference is made to Figure 4The execution process of the controller wake-up circuit is illustrated below. The controller MCU polls the multi-round multiplexer (MUX) and inputs the wake-up signal to the MUX, and receives the interrupt signal INTP. U1 to Un are n MUX multi-round multiplexers. The execution process of each multiplexer is the same. Each multiplexer has 8 input terminals, one wake-up signal output terminal, and a set of channel selection receivers. The controller has n wake-up signal receivers, a set of channel selection terminals, and one interrupt signal input terminal. The MCU outputs polling signals via SELA / B / C to control the 8 inputs (WAKE1-WAKE8) of the MUX to be sequentially connected to the wake-up signal output of the MUX, achieving 8-channel expansion. Polling one input of the MUX takes 1ms, and polling all 8 inputs takes 8ms. To achieve fast wake-up, the polling period is set to 40ms, i.e., 8ms polling (polling sub-cycle) and 32ms sleep (sleep sub-cycle). However, if the first type of wake-up source (CAN) requires fast wake-up, 40ms cannot meet the requirements. Therefore, to meet the requirements while considering IO resource limitations, all CAN interrupt signal outputs are connected to the same interrupt signal input of the MCU. In order to be able to query the wake-up source, the CAN wake-up signal output is connected to the input of the MUX. When CAN requires fast wake-up, when a wake-up message is input on the CAN bus, its interrupt signal output terminal sends an interrupt signal to INTP. The MCU is quickly woken up by the interrupt signal, and at the same time, its wake-up signal output terminal sends a polling signal to MUX. After the controller is woken up, it starts fast polling. Its wake-up signal input terminal and polling signal quickly identify the wake-up source. After determining the wake-up source, the MCU sends and receives the corresponding UART information to the wake-up source through the first signal transceiver terminal and the second signal transceiver terminal.
[0091] In this embodiment of the invention, based on the aforementioned controller wake-up circuit, a controller wake-up method is provided. The execution flow of the controller wake-up method is as follows: Figure 5 ,like Figure 5 As shown, the steps include:
[0092] S301. When in sleep mode, if an interrupt signal is received, switch to wake-up mode in response to the interrupt signal;
[0093] S302. Poll the multiplexer and determine the target wake-up source for sending the interrupt signal based on the polling results.
[0094] The controller wake-up method disclosed in the above embodiments of this application can be applied to a controller. When the controller is in a sleep state, if the interrupt signal input terminal of the controller does not receive an interrupt signal, it is determined that there is no first type of wake-up source to wake up the controller temporarily, and the controller remains in a sleep state. If the interrupt signal receiver receives the interrupt signal, it responds to the interrupt signal, and the controller is woken up and switched to a wake-up state. In this embodiment of the invention, the interrupt signal can be a high-level signal with a duration greater than a preset duration. After the controller is woken up, the multiplexer can be polled to identify the target wake-up source that sent the interrupt signal based on the polling result.
[0095] Optionally, determining the target wake-up source for sending the interrupt signal based on the polling result includes: the controller polls the multiplexer using a polling signal, determines the multiplexer that received the polling wake-up signal based on the acquired polling wake-up signal, for example, determining the multiplexer that sent the polling wake-up signal based on the identifier of the wake-up signal receiver that received the polling wake-up signal, then determining the value of the polling signal when the polling wake-up signal was acquired, and then determining the target wake-up source for sending the interrupt signal based on the determined multiplexer and the value of the polling signal. The value of the polling signal can determine which input terminal of the multiplexer received the polling wake-up signal. Once the multiplexer and the input terminal that received the polling wake-up signal are determined, the target wake-up source is also determined.
[0096] Optionally, after waking up the controller based on the interrupt signal, the controller polls the multiplexer to scan whether the controller's wake-up signal receiver receives the polling wake-up signal output by the multiplexer. If the polling wake-up signal is not received, it indicates that the first type of wake-up source may have output an incorrect interrupt signal, or the multiplexer output is abnormal. In this case, an error message can be issued. Conversely, if the controller's wake-up signal receiver receives the polling wake-up signal, it identifies the identifier of the wake-up signal receiver that received the polling wake-up signal, determines the multiplexer that outputs the polling wake-up signal based on the identifier, and then obtains the current value of the channel selection terminal (the current value of the polling signal). Based on the current value of the channel selection terminal, it determines which wake-up source corresponding to the multiplexer woke up the controller.
[0097] Optionally, the determined signal source is recorded as the target signal source. After the controller is woken up and the target wake-up source is determined, reference is made to... Figure 4 The target wake-up source is controlled to interact with the controller via UART.
[0098] Optionally, this application can pre-configure a wake-up strategy that matches the type of wake-up signal. The type of wake-up signal may include the interrupt signal and a multiplexed wake-up signal. When the wake-up signal used to wake up the controller is an interrupt signal, the controller in a sleep state is woken up based on the wake-up strategy corresponding to the interrupt signal; when the wake-up signal used to wake up the controller is a multiplexed wake-up signal, the controller in a sleep state is woken up based on the wake-up strategy corresponding to the multiplexed wake-up signal.
[0099] Optionally, due to requirements on the controller's sleep power consumption, the controller's polling cycle cannot be too short. Additionally, because the first type of wake-up source requires rapid wake-up, the polling cycle cannot be too long. Therefore, in the actual polling process, the controller's polling cycle includes a polling sub-cycle and a sleep sub-cycle. During the controller's polling of the multiplexer, the polling sub-cycle is used to poll the multiplexer, and the sleep sub-cycle is used for sleep mode. In practical applications, the interrupt signal has a higher priority than the multiplexer wake-up signal. To achieve a rapid response to the interrupt signal, the process of waking up the controller from its sleep state based on the wake-up strategy corresponding to the interrupt signal can be implemented as follows: identify the occurrence time of the interrupt signal within the polling cycle and determine which stage of the polling cycle the occurrence time belongs to. If the occurrence time occurs within the polling sub-cycle, the controller stops the current polling operation on the multiplexer and restarts polling of the multiplexer, determining the target wake-up source for sending the interrupt signal based on the polling result; if the occurrence time occurs within the sleep sub-cycle, the polling operation on the multiplexer is directly triggered, waking up the controller in sleep mode based on the interrupt signal, and determining the target wake-up source for sending the interrupt signal based on the polling result.
[0100] Based on the above processing, regardless of whether the controller is in the polling sub-cycle or the sleep sub-cycle, as long as an interrupt signal is issued, the controller can be woken up as soon as possible. Furthermore, since the interrupt signal is a brief high-level signal, in order to ensure that the controller can determine the wake-up source as soon as possible, the duration of the polling wake-up signal must be longer than the polling cycle.
[0101] Optionally, for cases where the occurrence time belongs to the polling sub-cycle, without considering response time, equivalence, etc., polling can continue or only poll the polling sub-cycle can be performed. After polling is completed, if no wake-up source is found, the controller can re-enter the polling sub-cycle and re-polle the multiplexer. For cases where the occurrence time belongs to the sleep sub-cycle, without considering response time, sleep can continue, and the controller can be controlled to poll the multiplexer again when the polling cycle is reached.
[0102] In this embodiment of the invention, multiple wake-up sources can be simultaneously connected to the controller by polling a multiplexer. To meet the controller's sleep power consumption requirements, the polling period is controlled within a specified duration. To meet the fast wake-up requirements of the first type of wake-up source, the interrupt signal output terminals of the first type of wake-up source are respectively connected to the interrupt signal input terminals of the controller, and the wake-up signal output terminals of the first type of wake-up source are connected to the input terminals of the multiplexer. The wake-up source (i.e., which wake-up source issued the wake-up signal) is identified by the signal received by the controller's wake-up signal receiver and the value of the polling signal output by the controller's channel selection terminal at this time. This enables the controller to wake up quickly and the wake-up source to be identified, thus meeting the low power consumption requirements.
[0103] In this embodiment of the invention, based on the controller wake-up method described above, a controller wake-up device is also provided. The structural block diagram of the ring device is shown below. Figure 6 As shown, it includes:
[0104] The first wake-up module 401 and the determination module 402.
[0105] The first wake-up module 401 is used to switch to wake-up state in response to an interrupt signal when it is in sleep state.
[0106] The determining module 402 is used to poll the multiplexer and determine the target wake-up source for sending the interrupt signal based on the polling result.
[0107] In this embodiment of the invention, the control wake-up device further includes:
[0108] The second wake-up module and the third wake-up module.
[0109] in,
[0110] The second wake-up module is used to wake up the controller in a sleep state based on the wake-up strategy corresponding to the interrupt signal when the wake-up signal to wake up the controller is an interrupt signal.
[0111] The third wake-up module is used to wake up the controller in a sleep state based on the wake-up strategy corresponding to the multiplexed wake-up signal when the wake-up signal for waking up the controller is a multiplexed wake-up signal.
[0112] This application also provides an electronic device in its embodiments. (See reference...) Figure 7 The diagram illustrates a structural schematic suitable for implementing the electronic device in the embodiments of this application. The electronic device in the embodiments of this application may include, but is not limited to, fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0113] like Figure 7 As shown, the electronic device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. When the electronic device is powered on, the RAM 503 also stores various programs and data required for the operation of the electronic device. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0114] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, memory cards, hard drives, etc.; and communication devices 509. Communication device 509 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0115] This application also provides a computer program product including computer-readable instructions, which, when executed on an electronic device, cause the electronic device to implement any of the controller wake-up methods provided in this application.
[0116] This application also provides a computer-readable storage medium that carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the controller wake-up methods provided in this application.
[0117] This invention also provides a vehicle for implementing the controller wake-up circuit described above.
[0118] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.
[0119] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0120] In the above embodiments, the implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, in the form of a computer program product.
[0121] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
Claims
1. A controller wake-up circuit, comprising: The controller, the wake-up source device and at least one multiplexer are included. The controller has an interrupt signal input end, a wake-up signal receiving end and a channel selection end. The wake-up source device includes a first type of wake-up source; the first type of wake-up source includes an interrupt signal output end and a wake-up signal output end. The multiplexer has an input end, a wake-up signal output end and a channel selection receiving end, the channel selection end of the controller is connected with the channel selection receiving end of the multiplexer, and the wake-up signal receiving end of the controller is connected with the wake-up signal output end of the multiplexer. The interrupt signal output end of the first type of wake-up source is connected with the interrupt signal input end of the controller, the wake-up signal output end of the first type of wake-up source is connected with the input end of the multiplexer corresponding to the first type of wake-up source, the first type of wake-up source is used for outputting an interrupt signal to the controller through the interrupt signal output end and outputting a polling wake-up signal to the multiplexer through the wake-up signal output end, the controller is used for being woken up in response to the interrupt signal and polling the multiplexer in response to the polling wake-up signal. The wake-up signal receiving end of the controller is connected with the wake-up signal output end of the multiplexer. The wake-up source device further includes a second type of wake-up source, the second type of wake-up source has a wake-up signal output end, and the wake-up signal output end of the second type of wake-up source is connected with the input end of the multiplexer corresponding to the second type of wake-up source.
2. The controller wake-up circuit of claim 1, wherein, 3. The controller wake-up circuit according to claim 2, wherein The controller is used for outputting a polling signal to the multiplexer through the channel selection end. The multiplexer acquires the polling signal through the channel selection receiving end, determines a target input end matched with the polling signal, and controls the circuit between the target input end and the wake-up signal output end to be turned on. The controller is further used for determining the multiplexer acquiring the polling wake-up signal, determining the value of the polling signal when the polling wake-up signal is acquired, and determining the target wake-up source device based on the determined multiplexer and the value of the polling signal. The method applied to the controller includes:
4. A controller wake-up method, comprising: In the case of the sleep state, if an interrupt signal is acquired, the sleep state is switched to the wake-up state in response to the interrupt signal. The multiplexer is polled, and the target wake-up source sending the interrupt signal is determined based on the polling result. The target wake-up source sending the interrupt signal is determined based on the polling result, including:
5. The controller wake-up method of claim 4, wherein, The multiplexer is polled by using a polling signal, the multiplexer acquiring the polling wake-up signal is determined based on the acquired polling wake-up signal, the value of the polling signal when the polling wake-up signal is acquired is determined, and the target wake-up source sending the interrupt signal is determined based on the determined multiplexer and the value of the polling signal. Further included are:
6. The controller wake-up method of claim 5, wherein, When in the sleep state, if the acquired wake-up signal is the polling wake-up signal output by the multiplexer, the sleep state is switched to the wake-up state in response to the polling wake-up signal sent by the multiplexer. 7. The controller wake-up method of claim 5, wherein, The polling cycle of the controller comprises a polling sub-cycle and a sleep sub-cycle, the polling of the multiplexer, the determination of the target wake-up source sending the interrupt signal based on the polling result, comprising: identifying the occurrence time of the interrupt signal in the polling cycle; if the occurrence time occurs in the polling sub-cycle, stopping the current polling, and restarting the polling of the multiplexer, the determination of the target wake-up source sending the interrupt signal based on the polling result; if the occurrence time occurs in the sleep sub-cycle, polling the multiplexer, and determining the target wake-up source sending the interrupt signal based on the polling result.
8. A computer program product, characterised in that, The computer readable instructions, when executed on the electronic device, enable the electronic device to implement the controller wake-up method of any one of claims 4 to 7.
9. An electronic device, comprising: The electronic device comprises at least one processor and a memory connected to the processor, wherein: the memory is configured to store computer programs; the processor is configured to execute the computer programs to enable the electronic device to implement the controller wake-up method of any one of claims 4 to 7.
10. A computer storage medium, characterized in that, The storage medium carries one or more computer programs, which, when executed by the electronic device, enable the electronic device to implement the controller wake-up method of any one of claims 5 to 9.
11. A vehicle characterized by comprising: The vehicle comprises the controller wake-up circuit of any one of claims 1 to 3.
Citation Information
Patent Citations
Interrupt awakening method and device, electronic equipment and readable storage medium
CN111309385A
Multi-channel I2S voice awakening low-power-consumption circuit data processing method and device
CN111583927A
Control method and control device of vehicle controller, storage medium and electronic equipment
CN114228642A
Wake-up identification circuit and vehicle
CN115257585A
Vehicle awakening method, vehicle awakening device, vehicle and storage medium
CN115416596A