IP Library › Granted Patent US 10,088,889
Granted Patent B2
US 10,088,889 · App. 15/178,202 · Granted Oct 2, 2018

Method and device for waking up a controller

Inventors: Deguo Meng (Beijing, CN); Yi Ding (Beijing, CN); Enxing Hou (Beijing, CN)
Assignee: Xiaomi Inc.
G06F1/3243G06F1/3293G06F9/4418H04W52/0293Y02D10/122Y02D10/152Y02D70/00Y02D70/142Y02D70/144Y02D70/166
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,088,889
App. No.
15/178,202
Granted
Oct 2, 2018
Kind
B2
Abstract

A method and a device are provided for waking up a MCU. The method includes: determining whether a second MCU is in a deep sleep state, when a first MCU triggers a communication event of transmitting data to the second MCU; and when the second MCU is in the deep sleep state, sending an interrupt wakeup signal to the second MCU via a wakeup pin connected between the first MCU and the second MCU, so as to wake up the second MCU.

Claims (44)

1. A method for waking up a Microcontroller Unit (MCC), comprising;

determining, by a first MCC, whether a second MCU is in a deep sleep state, when the first MCU triggers a communication event of transmitting data to the second MCU; and

when the second MCU is in the deep sleep state, sending, by the first MCU, an interrupt wakeup signal to the second MCU via a wakeup pin of the second MCU that is in electrical communication with the first MCU, so as to wake up the second MCU;

wherein determining whether the second MCU is in a deep sleep state comprises:

obtaining a pre-stored state parameter of the second MCU in a register of the first MCU according to a first state updating message sent by the second MCU wherein the pre-stored state parameter is updated according to a state updating message; and

when the pre-stored state parameter of the second MCU indicates the deep sleep state, determining that the second MCU is in the deep sleep state.

2. The method according to claim 1 , wherein determining whether the second MCU is in a deep sleep state comprises:

sending a detecting message to the second MCU via a communication interface between the first MCU and the second MCU; and

when no response message returned from the second MCU is received within a preset period, determining that the second MCU is in the deep sleep state.

3. The method according to claim 1 , further comprising:

receiving a second state updating message sent by the second MCU, where a state parameter carried in the second state updating message indicates a working, state; and

determining that the second MCU has, been woken up according to the second state updating message, and transmitting data to the second MCU via a communication interface between the first MCU and the second MCU.

4. The method according to claim 3 , further comprising:

updating the pre-stored state parameter of the second MCU according to the state parameter carried in the second state updating message.

5. A device, comprising:

a first Microcontroller Unit (MCU);

a second MCU in communication with the first MCU via a wakeup pin connected between the first MCU and the second MCU;

wherein the first MCU is configured to;

determine whether the second MCU is in a deep sleep state, when the first MCU triggers a communication event of transmitting data to the second MCU;

when the second MCU is in the deep sleep state, send an interrupt wakeup signal to the second MCU via the wakeup pin to wake up the second MCU;

obtain a pre-stored state parameter of the second MCU, where the pre-stored state parameter of the second MCU is determined according to a first state updating message sent by the second MCU wherein the pre-stored state parameter is updated according to a state updating message; and

if the pre-stored state parameter of the second MCU indicates the deep sleep state, determine that the second MCU deep sleep state.

6. The device according to claim 5 , wherein the first MCU is configured to:

send a detecting message to the second MCU via a communication interface between the first MCU and the second MCU; and

if no response message returned from the second MCU is received within a preset period, determine that the second MCU is in the deep sleep state.

7. The device according to claim 5 , wherein the first MCU is further configured to:

receive a second state updating message sent by the second MCU, where a state parameter carried in the second state updating message indicates a working state; and

determine that the second MCU has been woken up according to the second state updating message, and transmit data to the second MCU via a communication interface between the first MCU and the second MCU.

8. The device according to claim 7 , wherein the first MCU is further configured to:

update the pre stored state parameter of the second MCU according to the state parameter carried in the second state updating message.

9. A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a first Microcontroller Unit (MCU) of an intelligent device, causes the first MCU to:

when the first MCU triggers a communication event of transmitting data to a second MCU, determine whether the second MCU is in a deep sleep state: and

when the second MCU is in the deep sleep state, send an interrupt wakeup signal to the second MCU via a wakeup pin connected between the first MCU and the second MCU, so as to wake up the second MCU;

wherein to determine whether the second MCU is in a deep sleep state, the instructions further comprise instructions to cause the first MCU to:

obtain a pre-stored state parameter of the second MCU, where the pre-stored state parameter of the second MCU is determined according to a first state updating message sent by the second MCU wherein the pre-stored state parameter is updated according to a state updating message; and

if the pre-stored state parameter of the second MCU indicates the deep sleep state, determine that the second MCU is in the deep sleep state.

10. The storage medium according to claim 9 , wherein determining whether the second MCU is in a deep sleep state comprises:

sending a detecting message to the second MCU via a communication interface between the first MCU and the second MCU; and

if no response message returned from the second MCU is received within a preset period, determining that the second MCU is in the deep sleep state.

11. The storage medium according to claim 9 , wherein the instructions further comprise instructions to cause the first MCU to:

receive a second state updating message sent by the second MCU, where a state parameter carried in the second state updating message indicates a working state: and

determine that the second MCU has been woken up according to die second state updating message, and transmit data to the second MCU via a communication interface between the first MCU and the second MCU.

12. The storage medium according to claim 11 , wherein the instructions further comprise instructions to cause the first MCU to:

update the pre-stored state parameter of the second MCU according to the state parameter carried in the second state updating. message.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 9, 2016
From: MENG, DEGUO; DING, YI; HOU, ENXING
To: XIAOMI INC.
Reel/Frame 038865/0119 →
Priority Claims (1)
CN 2015 1 0379727 · Jul 1, 2015 · national
Continuity (1)
Related Publication 20170003728A1 · Jan 5, 2017