# US 8,787,972 B2 · Electronic device and method for managing commands

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 8,787,972 B2
- Document ID: US8787972B2
- Status: Granted
- Kind: B2
- Application number: 13/749,590
- Filed: 2013-01-24
- Published: 2013-09-26
- Granted: 2014-07-22
- Earliest claimed: 2012-03-26
- Assignees: Chi Mei Communication Systems, Inc.
- Applicants: Chi Mei Communication Systems, Inc.
- Inventors: Pao-I Lee
- Web page: https://patentgrep.com/patent/US8787972B2

## CPC

- H04W 4/20: Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

In a method for managing commands of an electronic device, a command queue is generated at a radio interface layer (RIL) of the electronic device. The method sets a buffer storage to store an identifier and command contents of each command. A received command from a telephony framework layer is stored in the command queue when the electronic device is establishing a communication link. An identifier of each command in the command queue is determined when the command queue has a command. Command contents corresponding to the determined identifier is determined when the buffer storage stores the determined identifier. The method creates first response information according to the determined command contents, and sends the first response information to the telephony framework layer.

## Claims

### Claim 1

A computer-implemented method for managing commands of an electronic device, the electronic device comprising a telephony framework layer, a radio interface layer (RIL), and an AT command channel, the method comprising:
generating a command queue at the RIL;
setting a buffer storage in the electronic device to store an identifier and command contents of each command;
storing a received command sent by the telephony framework layer in the command queue when the electronic device is establishing a communication link;
determining whether the command queue has any command after the communication link has been established;
determining an identifier of each of the at least one command in the command queue when the command queue has at least one command;
determining command contents corresponding to the determined identifier, when the buffer storage stores the determined identifier; and
creating first response information according to the determined command contents, and sending the first response information to the telephony framework layer.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
sending the at least one command in the command queue to the AT command channel of the electronic device when the buffer storage does not store the determined identifier;
storing the determined identifier and the determined command contents of each of the at least one command into the buffer storage, in response to receiving second response information from the AT command channel; and
sending the second response information to the telephony framework layer.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising:
sending the received command sent by the telephony framework layer to the AT command channel when the electronic device is not establishing the communication link.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
clearing all data in the buffer storage when the command queue has no command.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the communication link follows a Packet Data Protocol (PDP).

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
presetting one or more specified commands to establish the communication link of the electronic device;
determining whether one of the one or more specified commands is received from the telephony framework layer; and
determining that the electronic device is establishing the communication link, when one of the one or more specified commands is received from the telephony framework layer.

### Claim 7

An electronic device, comprising:
a telephony framework layer, a radio interface layer (RIL), and an attention (AT) command channel;
a storage device;
at least one processor; and
one or more modules that are stored in the storage device and are executed by the at least one processor, the one or more modules comprising:
a presetting module that generates a command queue at the RIL, and sets a buffer storage in the electronic device to store an identifier and command contents of each command;
a processing module that stores a received command sent by the telephony framework layer in the command queue when the electronic device is establishing a communication link;
a determination module that determines whether the command queue has any command after the communication link has been established, and determines an identifier of each of the at least one command in the command queue when the command queue has at least one command; and
a response module that determines command contents corresponding to the determined identifier, when the buffer storage stores the determined identifier, creates first response information according to the determined command contents, and sends the first response information to the telephony framework layer.

### Claim 8 (depends on 7)

The electronic device according to claim 7, wherein the response module sends the at least one command in the command queue to the AT command channel of the electronic device when the buffer storage does not store the determined identifier, stores the determined identifier and the determined command contents of each of the at least one command into the buffer storage in response to receiving second response information from the AT command channel, and sends the second response information to the telephony framework layer.

### Claim 9 (depends on 7)

The electronic device according to claim 7, wherein the processing module sends the received command sent by the telephony framework layer to the AT command channel when the electronic device is not establishing the communication link.

### Claim 10 (depends on 7)

The electronic device according to claim 7, wherein the one or more modules further comprises a clearing module that clears all data in the buffer storage when the command queue has no command.

### Claim 11 (depends on 7)

The electronic device according to claim 7, wherein the communication link follows a Packet Data Protocol (PDP).

### Claim 12 (depends on 7)

The electronic device according to claim 7, wherein the presetting module further presets one or more specified commands to establish the communication link of the electronic device, and the determination module further determines whether one of the one or more specified commands is received from the telephony framework layer, and determines that the electronic device is establishing the communication link when one of the one or more specified commands is received from the telephony framework layer.

### Claim 13

A non-transitory storage medium having stored thereon instructions that, when executed by a processor of an electronic device, causes the electronic device to perform a method for managing commands of an electronic device, the electronic device comprising a telephony framework layer, a radio interface layer (RIL), and an AT command channel, the method comprising:
generating a command queue at the RIL;
setting a buffer storage in the electronic device to store an identifier and command contents of each command;
storing a received command sent by the telephony framework layer in the command queue when the electronic device is establishing a communication link;
determining whether the command queue has any command after the communication link has been established;
determining an identifier of each of the at least one command in the command queue when the command queue has at least one command;
determining command contents corresponding to the determined identifier, when the buffer storage stores the determined identifier; and
creating first response information according to the determined command contents, and sending the first response information to the telephony framework layer.

### Claim 14 (depends on 13)

The non-transitory storage medium according to claim 13, wherein the method further comprises:
sending the at least one command in the command queue to the AT command channel of the electronic device when the buffer storage does not store the determined identifier;
storing the determined identifier and the determined command contents of each of the at least one command into the buffer storage, in response to receiving second response information from the AT command channel; and
sending the second response information to the telephony framework layer.

### Claim 15 (depends on 13)

The non-transitory storage medium according to claim 13, wherein the method further comprises:
sending the received command sent by the telephony framework layer to the AT command channel when the electronic device is not establishing the communication link.

### Claim 16 (depends on 13)

The non-transitory storage medium according to claim 13, wherein the method further comprises:
clearing all data in the buffer storage when the command queue has no command.

### Claim 17 (depends on 13)

The non-transitory storage medium according to claim 13, wherein the communication link follows a Packet Data Protocol (PDP).

### Claim 18 (depends on 13)

The non-transitory storage medium according to claim 13, wherein the method further comprises:
presetting one or more specified commands to establish the communication link of the electronic device;
determining whether one of the one or more specified commands is received from the telephony framework layer; and
determining that the electronic device is establishing the communication link, when one of the one or more specified commands is received from the telephony framework layer.
