Message notification method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsRongguo Liu, Xiaoyan Li
Life of this patent
Estimating the term…
Abstract
This application provides a message notification method and apparatus. One example message notification method includes: A flash memory receives a first sleep request from a master chip. The flash memory detects an execution status of a working command initiated by a local end. The working command is used to initiate a read/write operation with the master chip. The flash memory sends a first notification to the master chip, where the first notification indicates the execution status of the working command.
Claims20
A message notification method, applied to a flash memory of a terminal device, wherein the terminal device further comprises a master chip, and the method comprises:
- receiving, by the flash memory, a first sleep request from the master chip;
- detecting, by the flash memory, an execution status of a working command initiated by a local end, wherein the working command comprises a command to initiate a read/write operation with the master chip;
- sending, by the flash memory, a first notification to the master chip, wherein the first notification indicates the execution status of the working command and whether the first sleep request that is received from the master chip conflicts with execution of the working command, wherein the first notification indicates that there is a working command in a being-executed state or a to-be-executed state and that the first sleep request conflicts with execution of the working command;
- and
- after the sending the first notification to the master chip, receiving by the flash memory, a second sleep request from the master chip.
A message notification apparatus, used in a flash memory of a terminal device, wherein the terminal device further comprises a master chip, and the apparatus comprises a transceiver and at least one processor, wherein
- the transceiver is configured to receive a first sleep request from the master chip;
- the at least one processor is configured to detect an execution status of a working command initiated by a local end, wherein the working command comprises a command to initiate a read/write operation with the master chip;
- and
- the transceiver is further configured to send a first notification to the master chip, wherein the first notification indicates the execution status of the working command and whether the first sleep request that is received from the master chip conflicts with execution of the working command, wherein a protocol stack of the flash memory comprises a physical layer and firmware, the transceiver is configured to be used by the physical layer to send an interrupt processing request to the firmware after the first sleep request is received, the firmware is configured to detect the execution status of the working command in response to the interrupt processing request, and the firmware is configured to send a detection result to the physical layer.
A message notification method, applied to a master chip of a terminal device, wherein the terminal device further comprises a flash memory, and the method comprises:
- sending, by the master chip, a first sleep request to the flash memory;
- and
- receiving, by the master chip, a first notification from the flash memory, wherein the first notification indicates an execution status of a working command and whether the first sleep request that is received from the master chip conflicts with execution of the working command, and the working command comprises a command for the flash memory to initiate a read/write operation with the master chip, wherein the first notification indicates that there is a working command in a being-executed state or a to-be-executed state and that the first sleep request conflicts with execution of the working command;
- and
- after the receiving, by the master chip, a first notification from the flash memory, the method further comprises:
- starting, by the master chip, a timer;
- and
- sending, by the master chip, a second sleep request to the flash memory after the timer expires.
A message notification apparatus, used in a master chip of a terminal device, wherein the terminal device further comprises a flash memory, and the apparatus comprises a transmitter and a receiver, wherein
- the transmitter is configured to send a first sleep request to the flash memory;
- and
- the receiver is configured to receive a first notification from the flash memory, wherein the first notification indicates an execution status of a working command and whether the first sleep request that is received from the master chip conflicts with execution of the working command, and the working command comprises a command for the flash memory to initiate a read/write operation with the master chip, wherein the first notification indicates that there is a working command in a being-executed state or a to-be-executed state and that the first sleep request conflicts with execution of the working command, and the apparatus further comprises:
- at least one processor, configured to start a timer;
- and wherein
- the transmitter is further configured to send a second sleep request to the flash memory after the timer expires.
Dependencies are inferred from the claim text.