0% found this document useful (0 votes)
56 views35 pages

Quectel_EC200U&EG91xU_Series_STK_Application_Note_V1.0

The document provides an application note for the Quectel EC200U and EG91xU series LTE standard modules, detailing the use of AT commands related to the (U)SIM Application Toolkit (STK). It includes information on enabling STK functionality, command syntax, proactive command responses, and character sets supported by the STK AT command interface. Additionally, it outlines legal notices, privacy policies, and contact information for technical support.

Uploaded by

Sakthivel P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views35 pages

Quectel_EC200U&EG91xU_Series_STK_Application_Note_V1.0

The document provides an application note for the Quectel EC200U and EG91xU series LTE standard modules, detailing the use of AT commands related to the (U)SIM Application Toolkit (STK). It includes information on enabling STK functionality, command syntax, proactive command responses, and character sets supported by the STK AT command interface. Additionally, it outlines legal notices, privacy policies, and contact information for technical support.

Uploaded by

Sakthivel P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 35

EC200U&EG91xU Series

STK Application Note

LTE Standard Module Series

Version: 1.0

Date: 2023-11-06

Status: Released
LTE Standard Module Series

At Quectel, our aim is to provide timely and comprehensive services to our customers. If you
require any assistance, please contact our headquarters:

Quectel Wireless Solutions Co., Ltd.


Building 5, Shanghai Business Park Phase III (Area B), No.1016 Tianlin Road, Minhang District, Shanghai
200233, China
Tel: +86 21 5108 6236
Email: [email protected]

Or our local offices. For more information, please visit:


http://www.quectel.com/support/sales.htm.

For technical support, or to report documentation errors, please visit:


http://www.quectel.com/support/technical.htm.
Or email us at: [email protected].

Legal Notices
We offer information as a service to you. The provided information is based on your requirements and we
make every effort to ensure its quality. You agree that you are responsible for using independent analysis
and evaluation in designing intended products, and we provide reference designs for illustrative purposes
only. Before using any hardware, software or service guided by this document, please read this notice
carefully. Even though we employ commercially reasonable efforts to provide the best possible
experience, you hereby acknowledge and agree that this document and related services hereunder are
provided to you on an “as available” basis. We may revise or restate this document from time to time at
our sole discretion without any prior notice to you.

Use and Disclosure Restrictions


License Agreements
Documents and information provided by us shall be kept confidential, unless specific permission is
granted. They shall not be accessed or used for any purpose except as expressly provided herein.

Copyright
Our and third-party products hereunder may contain copyrighted material. Such copyrighted material
shall not be copied, reproduced, distributed, merged, published, translated, or modified without prior
written consent. We and the third party have exclusive rights over copyrighted material. No license shall
be granted or conveyed under any patents, copyrights, trademarks, or service mark rights. To avoid
ambiguities, purchasing in any form cannot be deemed as granting a license other than the normal
non-exclusive, royalty-free license to use the material. We reserve the right to take legal action for
noncompliance with abovementioned requirements, unauthorized use, or other illegal or malicious use of
the material.

EC200U&EG91xU_Series_STK_Application_Note 1 / 34
LTE Standard Module Series

Trademarks
Except as otherwise set forth herein, nothing in this document shall be construed as conferring any rights
to use any trademark, trade name or name, abbreviation, or counterfeit product thereof owned by Quectel
or any third party in advertising, publicity, or other aspects.

Third-Party Rights
This document may refer to hardware, software and/or documentation owned by one or more third parties
(“third-party materials”). Use of such third-party materials shall be governed by all restrictions and
obligations applicable thereto.

We make no warranty or representation, either express or implied, regarding the third-party materials,
including but not limited to any implied or statutory, warranties of merchantability or fitness for a particular
purpose, quiet enjoyment, system integration, information accuracy, and non-infringement of any
third-party intellectual property rights with regard to the licensed technology or use thereof. Nothing herein
constitutes a representation or warranty by us to either develop, enhance, modify, distribute, market, sell,
offer for sale, or otherwise maintain production of any our products or any other hardware, software,
device, tool, information, or product. We moreover disclaim any and all warranties arising from the course
of dealing or usage of trade.

Privacy Policy
To implement module functionality, certain device data are uploaded to Quectel’s or third-party’s servers,
including carriers, chipset suppliers or customer-designated servers. Quectel, strictly abiding by the
relevant laws and regulations, shall retain, use, disclose or otherwise process relevant data for the
purpose of performing the service only or as permitted by applicable laws. Before data interaction with
third parties, please be informed of their privacy and data security policy.

Disclaimer
a) We acknowledge no liability for any injury or damage arising from the reliance upon the information.
b) We shall bear no liability resulting from any inaccuracies or omissions, or from the use of the
information contained herein.
c) While we have made every effort to ensure that the functions and features under development are
free from errors, it is possible that they could contain errors, inaccuracies, and omissions. Unless
otherwise provided by valid agreement, we make no warranties of any kind, either implied or express,
and exclude all liability for any loss or damage suffered in connection with the use of features and
functions under development, to the maximum extent permitted by law, regardless of whether such
loss or damage may have been foreseeable.
d) We are not responsible for the accessibility, safety, accuracy, availability, legality, or completeness of
information, advertising, commercial offers, products, services, and materials on third-party websites
and third-party resources.

Copyright © Quectel Wireless Solutions Co., Ltd. 2023. All rights reserved.

EC200U&EG91xU_Series_STK_Application_Note 2 / 34
LTE Standard Module Series

About the Document

Revision History
Version Date Author Description

- 2023-02-16 Joe TU Creation of the document

1.0 2023-11-06 Joe TU First official release

EC200U&EG91xU_Series_STK_Application_Note 3 / 34
LTE Standard Module Series

Contents

About the Document ................................................................................................................................... 3


Contents ....................................................................................................................................................... 4
Table Index ................................................................................................................................................... 5

1 Introduction .......................................................................................................................................... 6
1.1. Applicable Modules ..................................................................................................................... 6
1.2. AT Command Introduction .......................................................................................................... 6
1.2.1. Definitions......................................................................................................................... 6
1.2.2. AT Command Syntax ....................................................................................................... 7
1.3. Declaration of AT Commands ..................................................................................................... 7
1.4. Using STK AT Commands .......................................................................................................... 7
1.5. STK States .................................................................................................................................. 8
1.6. Proactive Command Responses ................................................................................................ 8
1.7. STK Character Set ...................................................................................................................... 9

2 Description of STK AT Commands .................................................................................................. 10


2.1. AT+QSTK Enable/Disable STK Functionality ........................................................................ 10
2.2. AT+QSTKPD Get Terminal Profile ......................................................................................... 11
2.3. AT+QSTKSTATE Query STK State ........................................................................................ 12
2.4. AT+QSTKGI Get Proactive Command Information ............................................................... 13
2.5. AT+QSTKRSP STK Response .............................................................................................. 13
2.6. Summary of URCs .................................................................................................................... 14
2.6.1. Proactive Command Report........................................................................................... 14
2.6.2. Proactive Command Termination ................................................................................... 15
2.6.3. (U)SIM Card Loss .......................................................................................................... 15
2.6.4. Timeout Response ......................................................................................................... 15
2.7. Details of Proactive Command <cmdtype> .............................................................................. 15
2.7.1. Play Tone (32) ................................................................................................................ 16
2.7.2. Display Text (33)............................................................................................................. 18
2.7.3. Get Inkey (34)................................................................................................................. 20
2.7.4. Get Input (35) ................................................................................................................. 21
2.7.5. Select Item (36) .............................................................................................................. 23
2.7.6. Set up Menu (37) ........................................................................................................... 25
2.7.7. Set up Idle Mode Text (40) ............................................................................................. 27
2.7.8. Language Notification (53) ............................................................................................. 28

3 Examples of STK AT Commands ..................................................................................................... 30


3.1. Enable STK Function and Set up Menu ................................................................................... 30
3.2. Select Menu .............................................................................................................................. 31
3.3. Terminate STK Session and Timeout Response ...................................................................... 32
3.4. Disable STK Functionality ......................................................................................................... 33

4 Appendix References ........................................................................................................................ 34

EC200U&EG91xU_Series_STK_Application_Note 4 / 34
LTE Standard Module Series

Table Index

Table 1: Applicable Modules......................................................................................................................... 6


Table 2: Types of AT Commands ................................................................................................................. 7
Table 3: Proactive Command Responses .................................................................................................... 8
Table 4: Types of Proactive Commands (Refer to Chapter 13.4 in 3GPP TS 11.14) ................................ 16
Table 5: Related Document ........................................................................................................................ 34
Table 6: Terms and Abbreviations .............................................................................................................. 34

EC200U&EG91xU_Series_STK_Application_Note 5 / 34
LTE Standard Module Series

1 Introduction
Quectel EC200U series and EG91xU family modules provide AT commands to support (U)SIM
Application Toolkit (STK). This document is a reference guide to all (U)SIM Application Toolkit-related AT
commands.

1.1. Applicable Modules

Table 1: Applicable Modules

Module Family Module

- EC200U Series

EG912U-GL
EG91xU
EG915U Series

1.2. AT Command Introduction

1.2.1. Definitions

⚫ <CR> Carriage return character.


⚫ <LF> Line feed character.
⚫ <...> Parameter name. Angle brackets do not appear on the command line.
⚫ [...] Optional parameter of a command or an optional part of TA information response.
Square brackets do not appear on the command line. When an optional parameter is
not given in a command, the new value equals its previous value or the default settings,
unless otherwise specified.
⚫ Underline Default setting of a parameter.

EC200U&EG91xU_Series_STK_Application_Note 6 / 34
LTE Standard Module Series

1.2.2. AT Command Syntax

All command lines must start with AT or at and end with <CR>. Information responses and result codes
always start and end with a carriage return character and a line feed character:
<CR><LF><response><CR><LF>. In tables presenting commands and responses throughout this
document, only the commands and responses are presented, and <CR> and <LF> are deliberately
omitted.

Table 2: Types of AT Commands

Command Type Syntax Description

Test the existence of the corresponding


Test Command AT+<cmd>=? command and return information about
the type, value, or range of its parameter.
Check the current parameter value of the
Read Command AT+<cmd>?
corresponding command.

Write Command AT+<cmd>=<p1>[,<p2>[,<p3>[...]]] Set user-definable parameter value.

Return a specific information parameter


Execution Command AT+<cmd>
or perform a specific action.

1.3. Declaration of AT Commands

The AT command examples in this document are provided to help you learn about the use of the AT
commands introduced herein. The examples, however, should not be taken as Quectel’s
recommendations or suggestions about how to design a program flow or what status to set the module
into. Sometimes multiple examples may be provided for one AT command. However, this does not mean
that there is a correlation among these examples, or that they should be executed in a given sequence.

1.4. Using STK AT Commands

Step 1: Switch on the module, and enable STK functionality with AT+QSTK=1[,<alphabet>], then
reboot the module.
Step 2: Query proactive command information based on URC with AT+QSTKGI. Respond to the STK
proactive command with AT+QSTKRSP. When +QSTKURC: 253 is reported, you can select a
menu item with AT+QSTKRSP=253,<result>,<itemID>. Furthermore, you can use
AT+QSTKRSP=254 to terminate the STK session at any time.
Step 3: Disable STK functionality with AT+QSTK=0, then reboot the module.

EC200U&EG91xU_Series_STK_Application_Note 7 / 34
LTE Standard Module Series

1.5. STK States

There are three types of STK states: automatic response state, terminal response state, and waiting state.
For more details, see Chapter 2.3. The following figure illustrates the state transitions.

AT+QSTK=1[,<alphabet>] AT+QSTKRSP=<cmdtype>,<result>[ ]
and reboot module
Automatic Terminal
Waiting state
response state response state
AT+QSTK=0 and reboot +QSTKURC: <cmdtype>
module

Figure 1: STK State Transitions

1.6. Proactive Command Responses

When STK functionality is disabled, the module will automatically respond to a proactive command.
However, when STK functionality is enabled, you should respond to the proactive command (Refer to
Chapter 2.7). If you do not respond to the proactive command within a specific time frame, a URC
indicating a timeout response will be reported, and module will automatically respond to the proactive
command.

Table 3: Proactive Command Responses

Proactive Command Automatic Response User Response

PLAY TONE (32) 48 0, 4, 16, 32, 48

DISPLAY TEXT (33) 0 0, 4, 16, 17, 18, 32, 48

GET INKEY (34) 48 0, 4, 16, 17, 18, 19, 32, 48

GET INPUT (35) 48 0, 4, 16, 17, 18, 19, 32, 48

SELECT ITEM (36) 48 0, 4, 16, 17, 18, 19, 32, 48

SET UP MENU (37) 0 0, 4, 32, 48

SET UP IDLE MODE TEXT (40) 0 0, 4, 32, 48

LANGUAGE NOTIFICATION (53) 0 0

EC200U&EG91xU_Series_STK_Application_Note 8 / 34
LTE Standard Module Series

1.7. STK Character Set

The STK AT command interface supports the following character sets:

⚫ GSM character set (default)


⚫ UCS-2 character set

You can configure the character set with AT+QSTK=<mode>[,<alphabet>] (Refer to Chapter 2.1). The
configured settings become effective after being set and they will affect both the input parameters and
output information of STK AT commands. If UCS-2 characters cannot be converted to GSM characters,
they will be converted to 0x20 (space).

EC200U&EG91xU_Series_STK_Application_Note 9 / 34
LTE Standard Module Series

2 Description of STK AT Commands

2.1. AT+QSTK Enable/Disable STK Functionality

AT+QSTK Enable/Disable STK Functionality


Test Command Response
AT+QSTK=? +QSTK: (list of supported <mode>s),(list of supported <
alphabet>s),(range of supported <response_timeout>s)

OK
Read Command Response
AT+QSTK? +QSTK: <mode>,<alphabet>,<response_timeout>

OK
Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>
Write Command Response
AT+QSTK=<mode>[,<alphabet>[,<res OK
ponse_timeout>]] Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>

Maximum Response Time 300 ms

The command takes effect immediately.


Characteristic
The configurations are not saved.

EC200U&EG91xU_Series_STK_Application_Note 10 / 34
LTE Standard Module Series

Parameter

<mode> Integer type. Enable or disable the STK functionality.


0 Disable
1 Enable
<alphabet> Integer type. Character set encoding.
0 GSM character set
1 UCS-2 character set
<response_timeout> Integer type. Response timeout. Range: 1–65535. Default value: 300.
Unit: second.
<err> Integer type. Error code. See document [1] for details.

Example
AT+QSTK=?
+QSTK: (0,1),(0,1),(1-65535)

OK
AT+QSTK?
+QSTK: 0,0,300

OK

2.2. AT+QSTKPD Get Terminal Profile

This command gets the terminal profile. For more details, see ETSI TS 102 223.

AT+QSTKPD Get Terminal Profile


Test Command Response
AT+QSTKPD=? OK
Read Command Response
AT+QSTKPD? +QSTKPD: <profile>

OK
Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>
Maximum Response Time 300 ms

Characteristics /

EC200U&EG91xU_Series_STK_Application_Note 11 / 34
LTE Standard Module Series

Parameter

<profile> Hex string. STK profile.


<err> Integer type. Error code. See document [1] for details.

2.3. AT+QSTKSTATE Query STK State

When executing AT+QSTKGI or AT+QSTKRSP, you should refer to the value of <cmdtype>. When
<state> is 0 or 2, <cmdtype> will be ignored.

When <cmdtype> is 253, it indicates that the STK session has ended. In this STK state, you cannot get
STK proactive command information via AT+QSTKGI=<cmdtype> and do not need to respond to the
proactive command via AT+QSTKRSP. However, you can select a menu item via
AT+QSTKRSP=253,<result>,<itemID> and start an STK session.

AT+QSTKSTATE Query STK State


Test Command Response
AT+QSTKSTATE=? +QSTKSTATE: (range of supported <state>s),(list of
supported <cmdtype>s)

OK
Read Command Response
AT+QSTKSTATE? +QSTKSTATE: <state>[,<cmdtype>]

OK
Maximum Response Time 300 ms

Characteristics /

Parameter

<state> Integer type. STK state.


0 Automatic response state
1 Terminal response state
2 Waiting state
<cmdtype> Integer type. Type of command. Range: 32–37, 40, 53, 253. Refer to Table 4 for details.

EC200U&EG91xU_Series_STK_Application_Note 12 / 34
LTE Standard Module Series

2.4. AT+QSTKGI Get Proactive Command Information

When URC: +QSTKURC: <cmdtype> has been reported, you can get STK proactive command
information via AT+QSTKGI=<cmdtype>.

AT+QSTKGI Get Proactive Command Information


Test Command Response
AT+QSTKGI=? +QSTKGI: (list of supported <cmdtype>s)

OK
Write Command Response varies with <cmdtype>. See Chapter 2.7 for
AT+QSTKGI=<cmdtype> details.
Maximum Response Time 300 ms

Characteristics /

Parameter

<cmdtype> Integer type. Type of proactive command. Range: 32–37, 40, 53. Refer to Table 4 for
details.

2.5. AT+QSTKRSP STK Response

After receiving the URC +QSTKURC: <cmdtype>, you can get information via AT+QSTKGI=<cmdtype>
and respond via AT+QSTKRSP.

AT+QSTKRSP=253,<result>,<itemID> is used to select a menu item. It can only be used after receiving
+QSTKURC: 253. Terminate STK session via AT+QSTKRSP=254, and then +QSTKURC: 253 will be
reported.

AT+QSTKRSP STK Response


Test Command Response
AT+QSTKRSP=? +QSTKRSP: (list of supported <cmdtype>s)

OK
Write Command Response
Select a menu item OK
AT+QSTKRSP=253,<result>,<itemID> Or
ERROR

EC200U&EG91xU_Series_STK_Application_Note 13 / 34
LTE Standard Module Series

If error is related to ME functionality:


+CME ERROR: <err>
Write Command Response
Terminate the current STK session OK
AT+QSTKRSP=254 Or
ERROR
Maximum Response Time 10 s

Characteristics /

Parameter

<cmdtype> Integer type. Type of command. Range: 32–37, 40, 53, 253, 254. Refer to Table 4 for
details.
<result> Integer type. Command result.
0 Trigger modem to select menu
19 Help information required by the user
<itemID> Integer type. Menu item ID. Range: 1–255.
<err> Integer type. Error code. See document [1] for details.

2.6. Summary of URCs

The URCs of STK will be reported to the host in the format +QSTKURC: <cmdtype>. They cover various
scenarios such as proactive command report, the termination of proactive commands, (U)SIM card loss,
and timeout response.

2.6.1. Proactive Command Report

During an ongoing STK session, this URC will be reported to prompt you to get the proactive command
information via AT+QSTKGI=<cmdtype> and respond to the proactive command via AT+QSTKRSP.

Proactive Command Report

+QSTKURC: <cmdtype> Indication of proactive command

Parameter

<cmdtype> Integer type. Type of proactive command. Range: 32–37, 40, 53. Refer to Table 4 for
details.

EC200U&EG91xU_Series_STK_Application_Note 14 / 34
LTE Standard Module Series

2.6.2. Proactive Command Termination

When STK session is finished, the URC +QSTKURC: 253 will be reported. At this time, you cannot get
STK proactive command information via AT+QSTKGI=<cmdtype> and do not need to respond to the
proactive command via AT+QSTKRSP. However, you can select a menu item via
AT+QSTKRSP=253,<result>,<itemID>.

Proactive Command Termination

+QSTKURC: 253 The termination of proactive command

2.6.3. (U)SIM Card Loss

When (U)SIM card is lost, this URC will be reported. For example, the URC is triggered when the (U)SIM
card is removed or when AT+CFUN changes the module's functionality from 1 to 0.

(U)SIM Card Loss

+QSTKURC: 254 Indication of (U)SIM loss

2.6.4. Timeout Response

When you do not respond to the proactive command within a specified time frame, this URC will be
reported and the module will automatically respond to the proactive command.

Timeout Response

+QSTKURC: 255,<cmdtype> Indication of timeout response

Parameter

<cmdtype> Integer type. Type of proactive command. Range: 32–37, 40, 53. Refer to Table 4
for details.

2.7. Details of Proactive Command <cmdtype>

You can repeatedly retrieve proactive command information before responding to the proactive
command.

EC200U&EG91xU_Series_STK_Application_Note 15 / 34
LTE Standard Module Series

Table 4: Types of Proactive Commands (Refer to Chapter 13.4 in 3GPP TS 11.14)

<cmdtype> Name

32 Play tone

33 Display text

34 Get inkey

35 Get input

36 Select item

37 Set up menu

40 Set up idle mode text

53 Language notification

NOTE

Please note that the value of <cmdtype> is in hexadecimal in the 3GPP TS 11.14.

2.7.1. Play Tone (32)

After receiving the +QSTKURC: 32, you can retrieve information via AT+QSTKGI=32, then respond via
AT+QSTKRSP=32,<result>[,<additional_info>].

Play Tone (32)


Write Command Response
AT+QSTKGI=32 +QSTKGI: 32,<command_details>,<text>,<tone>,<durati
on_unit>,<duration>,<icon_qualifier>,<iconID>

OK
Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>
Write Command Response
AT+QSTKRSP=32,<result>[,<addition OK
al_info>] Or
ERROR

EC200U&EG91xU_Series_STK_Application_Note 16 / 34
LTE Standard Module Series

If error is related to ME functionality:


+CME ERROR: <err>

Parameter
<command_details> RFU.
<text> String type. Text.
<tone> Integer type Tone generated by the UE. 01–08 are standard supervisory
tones, and 16–18 are UE proprietary tones.
01 Dial tone
02 Called subscriber busy
03 Congestion
04 Radio path acknowledge
05 Radio path not available/call dropped
06 Error/special information
07 Call waiting tone
08 Ringing tone
16 General beep
17 Positive acknowledgement tone
18 Negative acknowledgement or error tone
<duration_unit> Integer type. Duration unit.
0 Minutes
1 Seconds
2 A tenth of a second
<duration> Integer type. Duration of tone in units. Range: 1–255.
<icon_qualifier> Integer type. Icon qualifier.
Bit 1 0 Icon is self-explanatory and can replace text
1 Icon is not self-explanatory and shall be displayed with the text
determined value only if associated icon ID is not 0 (an icon
exists)
Bit 2–8 RFU
<iconID> Integer type. Icon ID.
0 No icon
1–255 Icon ID
<result> Integer type. Command result code.
0 Command executed successfully. Indicates that the user has accepted
the call request
4 Command executed successfully, but requested icon could not be
displayed
16 Proactive (U)SIM session was terminated by user
32 UE is unable to process command currently
48 Command is beyond UE's capabilities
<additional_info> Integer type. Optional additional command status. Refer to ETSI TS 102 223

EC200U&EG91xU_Series_STK_Application_Note 17 / 34
LTE Standard Module Series

for possible values. Range: 0–255.


<err> Integer type. Error code. See document [1] for details.

NOTE

It indicates that the parameter is invalid under current conditions when "-" or - is returned. See
Chapter 3 for details.

2.7.2. Display Text (33)

After receiving the +QSTKURC: 33, you can retrieve information via AT+QSTKGI=33, then respond via
AT+QSTKRSP=33,<result>[,<additional_info>].

Display Text (33)


Write Command Response
AT+QSTKGI=33 +QSTKGI: 33,<command_details>,<text>,<immediate_re
sponse>,<icon_qualifier>,<iconID>

OK
Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>
Write Command Response
AT+QSTKRSP=33,<result>[,<addition OK
al_info>] Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>

Parameter
<command_details> Integer type. Display text command details. Range: 0–255.
Bit 1 0 Normal priority
1 High priority
Bit 2–7 RFU
Bit 8 0 Clear message after a delay
1 Wait for user to clear message
<text> String type. Text.
<immediate_response> Integer type. Immediate response to displayed text.
0 Send terminal response when text is cleared from screen

EC200U&EG91xU_Series_STK_Application_Note 18 / 34
LTE Standard Module Series

1 Send terminal response immediately and continue to display the


text until one of the following events occurs:
⚫ A subsequent proactive command is received, containing
displayed data
⚫ A short delay notified with <command_details> has expired
⚫ User intervention
⚫ A higher priority event occurs, e.g. a mobile terminated call
<icon_qualifier> Integer type. Icon qualifier.
Bit 1 0 Icon is self-explanatory and can replace text
1 Icon is not self-explanatory and shall be displayed with the
text determined value only if associated icon ID is not 0 (an
icon exists)
Bit 2–8 RFU
<iconID> Integer type. Icon ID.
0 No icon
1–255 Icon ID
<result> Integer type. Command result code.
0 Command executed successfully. Indicates that the user has
accepted the call request
4 Command executed successfully, but requested icon could not be
displayed
16 Proactive (U)SIM session was terminated by user
17 Backward move in the proactive (U)SIM session is requested by the
user
18 No response from user
32 UE is unable to process command currently
48 Command is beyond UE's capabilities
<additional_info> Integer type. Optional additional command status. See ETSI TS 102 223
for possible values. Range: 0–255.
<err> Integer type. Error code. See document [1] for details.

NOTE

It indicates that the parameter is invalid under current conditions when "-" or - is returned. See
Chapter 3 for details.

EC200U&EG91xU_Series_STK_Application_Note 19 / 34
LTE Standard Module Series

2.7.3. Get Inkey (34)

After receiving the +QSTKURC: 34, you can retrieve information via AT+QSTKGI=34, then respond via
AT+QSTKRSP=34,<result>,<input_string>[,<additional_info>].

Get Inkey (34)


Write Command Response
AT+QSTKGI=34 +QSTKGI: 34,<command_details>,<text>,<icon_qualifie
r>,<iconID>

OK
Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>
Write Command Response
AT+QSTKRSP=34,<result>,<input_str OK
ing>[,<additional_info>] Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>

Parameter
<command_details> Integer type. Get inkey command details. Range: 0–255.
Bit 1 0 Digits only
1 Alphabet set
Bit 2 0 SMS default alphabet (GSM character set)
1 UCS-2 alphabet
Bit 3 0 Character sets defined by bit 1 and bit 2 are enabled
1 Character sets defined by bit 1 and bit 2 are disabled and the
“Yes/No” response is requested
Bit 4–7 RFU
Bit 8 0 Help information is not available
1 Help information is available
<text> String type. Text.
<icon_qualifier> Integer type. Icon qualifier.
Bit 1 0 Icon is self-explanatory and can replace text
1 Icon is not self-explanatory and shall be displayed with the text
determined value only if associated icon ID is not 0 (an icon
exists)
Bit 2–8 RFU

EC200U&EG91xU_Series_STK_Application_Note 20 / 34
LTE Standard Module Series

<iconID> Integer type. Icon ID.


0 No icon
1–255 Icon ID
<result> Integer type. Command result code.
0 Command executed successfully. Indicates that the user has accepted
the call request
4 Command executed successfully, but requested icon could not be
displayed
16 Proactive (U)SIM session is terminated by user
17 Backward move in the proactive (U)SIM session requested by the user
18 No response from user
19 Help information is required by the user
32 UE is unable to process command currently
48 Command is beyond UE's capabilities
<input_string> String type. Input string.
<additional_info> Integer type. Optional additional command status. Refer to ETSI TS 102 223
for possible values. Range: 0–255.
<err> Integer type. Error code. See document [1] for details.

NOTE

It indicates that the parameter is invalid under current conditions when "-" or - is returned. See
Chapter 3 for details.

2.7.4. Get Input (35)

After receiving the +QSTKURC: 35, you can get information via AT+QSTKGI=35, then respond via
AT+QSTKRSP=35,<result>,<input_string>[,<additional_info>]. See Chapter 3.3 for example.

Get Input (35)


Write Command Response
AT+QSTKGI=35 +QSTKGI: 35,<command_details>,<text>,<inputmin>,<in
putmax>,<default_input>,<icon_qualifier>,<iconID>

OK
Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>
Write Command Response
AT+QSTKRSP=35,<result>,<input_str OK
ing>[,<additional_info>] Or

EC200U&EG91xU_Series_STK_Application_Note 21 / 34
LTE Standard Module Series

ERROR

If error is related to ME functionality:


+CME ERROR: <err>

Parameter
<command_details> Integer type. Get input command details. Range: 0–255.
Bit 1 0 Digits only
1 Alphabet set
Bit 2 0 SMS default alphabet (GSM character set)
1 UCS-2 alphabet
Bit 3 0 ME may echo user input on the display
1 User input shall not be revealed in any way
Bit 4 0 User input in unpacked format
1 User input in SMS packed format
Bit 5–7 RFU
Bit 8 0 No help information available
1 Help information available
<text> String type. Text.
<inputmin> Integer type. Minimum length of user input.
<inputmax> Integer type. Maximum length of user input.
<default_input> String type. Default input text.
<icon_qualifier> Integer type. Icon qualifier.
Bit 1 0 Icon is self-explanatory and can replace text
1 Icon is not self-explanatory and shall be displayed with the text
determined value only if associated icon ID is not 0 (an icon
exists)
Bit 2–8 RFU
<iconID> Integer type. Icon ID.
0 No icon
1–255 Icon ID
<result> Integer type. Command result code.
0 Command executed successfully. Indicates that the user has accepted
the call request
4 Command executed successfully, but requested icon could not be
displayed
16 Proactive (U)SIM session is terminated by user
17 Backward move in the proactive (U)SIM session requested by the user
18 No response from user
19 Help information is required by the user
32 UE is unable to process command currently
48 Command is beyond UE's capabilities
<input_string> String type. Input string.

EC200U&EG91xU_Series_STK_Application_Note 22 / 34
LTE Standard Module Series

<additional_info> Integer type. Optional additional command status. Refer to ETSI TS 102 223
for possible values. Range: 0–255.
<err> Integer type. Error code. See document [1] for details.

NOTE

It indicates that the parameter is invalid under current conditions when "-" or - is returned. See
Chapter 3 for details.

2.7.5. Select Item (36)

After receiving the +QSTKURC: 36, you can get information via AT+QSTKGI=36, then respond via
AT+QSTKRSP=36,<result>,<itemID>[,<additional_info>].

Select Item (36)


Write Command Response
AT+QSTKGI=36 The response for first line of output:
+QSTKGI: 36,<command_details>,<item_num>,<title>,<
default_itemID>,<item_icons_present>,<item_icons_qual
ifier>,<title_icon_qualifier>,<title_iconID>

There are repeated lines for each item with a total number of
<item_num>, and each line lists the following information:
+QSTKGI: 36,<itemID>,<item_text>,<next_actionID>,<ite
m_iconID>

OK
Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>
Write Command Response
AT+QSTKRSP=36,<result>,<itemID> OK
[,<additional_info>] Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>

EC200U&EG91xU_Series_STK_Application_Note 23 / 34
LTE Standard Module Series

Parameter
<command_details> Integer type. Details of selected item command.
Bit 1 0 Presentation type is not specified
1 Presentation type is specified in bit 2
Bit 2 0 Presentation as a choice of data values, if bit 1=1
1 Presentation as a choice of navigation options if bit 1=1
Bit 3 0 No selection preference
1 Using soft key preferred to select
Bit 4–7 RFU
Bit 8 0 Help information is not available
1 Help information is available
<item_num> Integer type. Number of items in the list.
<title> String type. Title.
<default_itemID> Integer type. Default item ID.
0 No default item is issued
1–255 ID of the default Item
<item_icons_present> Integer type. Presence of item icon.
0 No icon
1 Icon is presented
<item_icons_qualifier> Integer type. Item icon qualifier.
Bit 1 0 Icon is self-explanatory and can replace text
1 Icon is not self-explanatory and shall be displayed with the text
determined value only if associated icon ID is not 0 (an icon
exists)
Bit 2–8 RFU
<title_icon_qualifier> Integer type. Title icon qualifier.
Bit 1 0 Icon is self-explanatory and can replace text
1 Icon is not self-explanatory and shall be displayed with the text
determined value only if associated icon ID is not 0 (an icon
exists)
Bit 2–8 RFU
<title_iconID> Integer type. Title icon ID.
0 No icon
1–255 Icon ID
<itemID> Integer type. Item identifier.
<item_text> String type. Item text.
<next_actionID> Integer type. The next proactive command type to be issued upon execution
of the menu item.
<item_iconID> Integer type. Item icon ID.
0 No icon
1–255 Icon ID
<result> Integer type. Command result code.
0 Command executed successfully. Indicates that the user has accepted
the call request

EC200U&EG91xU_Series_STK_Application_Note 24 / 34
LTE Standard Module Series

4 Command executed successfully, but requested icon could not be


displayed
16 Proactive (U)SIM session terminated by user
17 Backward move in the proactive (U)SIM session requested by the user
18 No response from user
19 Help information required by the user
32 UE is unable to process command currently
48 Command beyond UE's capabilities
<additional_info> Integer type. Optional additional command status. Refer to ETSI TS 102 223
for possible values. Range: 0–255.
<err> Integer type. Error code. See document [1] for details.

NOTE

It indicates that the parameter is invalid under current conditions when "-" or - is returned. See
Chapter 3 for details.

2.7.6. Set up Menu (37)

After receiving the +QSTKURC: 37, you can get information via AT+QSTKGI=37, then respond via
AT+QSTKRSP=37,<result>[,<additional_info>]. See Chapter 3.1 for example. After this, you can get
main menu via AT+QSTKGI=37.

Set up Menu (37)


Write Command Response
AT+QSTKGI=37 The response for first line of output:
+QSTKGI: 37,<command_details>,<item_num>,<title>,<i
tem_icons_present>,<item_icons_qualifier>,<title_icon_
qualifier>,<title_iconID>

There are repeated lines for each item with a total number of
<item_num>, and and each line lists the following
information:
+QSTKGI: 37,<itemID>,<item_text>,<next_actionID>,<ite
m_iconID>

OK
Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>
Write Command Response

EC200U&EG91xU_Series_STK_Application_Note 25 / 34
LTE Standard Module Series

AT+QSTKRSP=37,<result>[,<addition OK
al_info>] Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>

Parameter
<command_details> Integer type. Details of set up menu command.
Bit 1 0 No selection preference
1 Using soft key preferred to select
Bit 2–7 RFU
Bit 8 0 Help information is not available
1 Help information is available
<item_num> Integer type. Number of items in the list.
<title> String type. Title.
<item_icons_present> Integer type. Presence of item icon.
0 No icon
1 Icon is presented
<item_icons_qualifier> Integer type. Item icon qualifier.
Bit 1 0 Icon is self-explanatory and can replace text
1 Icon is not self-explanatory and shall be displayed with the text
determined value only if associated icon ID is not 0 (an icon
exists)
Bit 2-8 RFU
<title_icon_qualifier> Integer type. Icon qualifier.
Bit 1 0 Icon is self-explanatory and can replace text
1 Icon is not self-explanatory and shall be displayed with the text
determined value only if associated icon ID is not 0 (an icon
exists)
Bit 2–8 RFU
<title_iconID> Integer type. Title icon ID.
0 No icon
1–255 Icon ID
<itemID> Integer type. Item identifier.
<item_text> String type. Item text.
<next_actionID> Integer type. The next proactive command type to be issued upon execution
of the menu item.
<item_iconID> Integer type. Item icon ID.
0 No icon
1–255 Icon ID
<result> Integer type. Command result code.
0 Command executed successfully. Indicates that the user has accepted

EC200U&EG91xU_Series_STK_Application_Note 26 / 34
LTE Standard Module Series

the call request.


4 Command executed successfully, but requested icon could not be
displayed
32 UE is unable to process command currently
48 Command is beyond UE's capabilities
<additional_info> Integer type. Optional additional command status. Refer to ETSI TS 102 223
for possible values. Range: 0–255.
<err> Integer type. Error code. See document [1] for details.

NOTE

It indicates that the parameter is invalid under current conditions when "-" or - is returned. See
Chapter 3 for details.

2.7.7. Set up Idle Mode Text (40)

After receiving the +QSTKURC: 40, you can get information via AT+QSTKGI=40, then respond via
AT+QSTKRSP=40,<result>[,<additional_info>]. This command provides text, and optionally, an icon
will be displayed by the TE when the display is idle.

Set up Idle Mode Text (40)


Write Command Response
AT+QSTKGI=40 The response for first line of output:
+QSTKGI: 40,<command_details>,<text>,<icon_qualifie
r>,<iconID>

OK
Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>
Write Command Response
AT+QSTKRSP=40,<result>[,<addition OK
al_info>] Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>

EC200U&EG91xU_Series_STK_Application_Note 27 / 34
LTE Standard Module Series

Parameter
<command_details> RFU.
<text> String type. Text to be displayed when TE is in idle mode.
<icon_qualifier> Integer type. Icon qualifier.
Bit 1 0 Icon is self-explanatory and can replace text
1 Icon is not self-explanatory and shall be displayed with the text
determined value only if associated icon ID is not 0 (an icon
exists)
Bit 2–8 RFU
<iconID> Integer type. Icon ID.
0 No icon
1–255 Icon ID
<result> Integer type. Command result code.
0 Command executed successfully. Indicates that the user has accepted
the call request
4 Command executed successfully, but requested icon could not be
displayed
32 UE is unable to process command currently
48 Command is beyond UE's capabilities
<additional_info> Integer type. Optional additional command status. Refer to ETSI TS 102 223
for possible values. Range: 0–255.
<err> Integer type. Error code. See document [1] for details.

NOTE

It indicates that the parameter is invalid under current conditions when "-" or - is returned. See
Chapter 3 for details.

2.7.8. Language Notification (53)

After receiving the +QSTKURC: 53, you can get information via AT+QSTKGI=53, then respond via
AT+QSTKRSP=53,<result>[,<additional_info>].

Language Notification (53)


Write Command Response
AT+QSTKGI=53 The response for first line of output:
+QSTKGI: 53,<command_details>,<lang>

OK
Or
ERROR

If error is related to ME functionality:

EC200U&EG91xU_Series_STK_Application_Note 28 / 34
LTE Standard Module Series

+CME ERROR: <err>

Write Command Response


AT+QSTKRSP=53,<result>[,<addition OK
al_info>] Or
ERROR

If error is related to ME functionality:


+CME ERROR: <err>

Parameter
<command_details> Integer type. Details of language notification command.
Bit 1 0 Non-specific language notification
1 Specific language notification
Bit 2–8 RFU
<lang> String type. Language code string. Provided as a pair of alpha-numeric
characters, defined in ISO 639. Each alphanumeric character is coded on
one byte using the SMS default 7-bit coded alphabet as defined in 3GPP TS
23.038.
<result> Integer type. Command result code.
0 Command executed successfully. Indicates that the user has accepted
the call request
<additional_info> Integer type. Optional additional command status. Refer to ETSI TS 102 223
for possible values. Range: 0–255.
<err> Integer type. Error code. See document [1] for details.

NOTE

It indicates that the parameter is invalid under current conditions when "-" or - is returned. See
Chapter 3 for details.

EC200U&EG91xU_Series_STK_Application_Note 29 / 34
LTE Standard Module Series

3 Examples of STK AT Commands

3.1. Enable STK Function and Set up Menu

1. Switch on the module and enable STK functionality.

AT+QSTK=1,1 //Enable STK functionality.


OK

2. Reset the module and you will receive the URC of the first proactive command, as follows:

+QSTKURC: 37

3. Request menu parameter information and respond to the menu setup proactive command.

AT+QSTKGI=37 //Get menu setup proactive command information.


+QSTKGI: 37,0,9,"005500530049004D53615E947528",-,-,-,-
+QSTKGI: 37,25,"7CBE54C163A88350",-,-
+QSTKGI: 37,33,"6C83901A884C8BC1",-,-
+QSTKGI: 37,54,"624B673A84254E1A5385",-,-
+QSTKGI: 37,96,"6C8353C28003",-,-
+QSTKGI: 37,98,"727960E0793C5305",-,-
+QSTKGI: 37,100,"6C8377E597F3",-,-
+QSTKGI: 37,102,"6C8373AF7403",-,-
+QSTKGI: 37,104,"6C835A314E50",-,-
+QSTKGI: 37,105,"8BA48BC152A9624B",-,-

OK
AT+QSTKRSP=37,0 //Respond to menu setup proactive command.
OK

+QSTKURC: 253 //URC indicates that the proactive session has ended.

EC200U&EG91xU_Series_STK_Application_Note 30 / 34
LTE Standard Module Series

3.2. Select Menu

1. Select menu item.

AT+QSTKRSP=253,0,25 //Select menu item, ID is 25.


OK

2. Select item.

+QSTKURC: 36 //Select item proactive command notification.

AT+QSTKGI=36 //Get the selected item proactive command information.


+QSTKGI: 36,0,9,"7CBE54C163A88350",-,-,-,-,-
+QSTKGI: 36,1,"53057F574E078C61",-,-
+QSTKGI: 36,2,"5E7D9ED851B77B118BDD",-,-
+QSTKGI: 36,3,"59296C14988462A5",-,-
+QSTKGI: 36,4,"65B095FB805A7126",-,-
+QSTKGI: 36,5,"4F53575B5FEB8BAF",-,-
+QSTKGI: 36,6,"4EB24EB25B9D8D1D",-,-
+QSTKGI: 36,7,"65C56E38653B7565",-,-
+QSTKGI: 36,8,"822A73ED67E58BE2",-,-
+QSTKGI: 36,255,"4E0B4E009875",-,-

OK
AT+QSTKRSP=36,0,1 //Respond to the selected item proactive command and the
OK item (ID is 1) is selected.

+QSTKURC: 36 //Select item proactive command notification.

AT+QSTKGI=36
+QSTKGI: 36,0,3,"",-,-,-,-,-
+QSTKGI: 36,1,"5B9A5236",-,-
+QSTKGI: 36,2,"53D66D88",-,-
+QSTKGI: 36,3,"4E1A52A14ECB7ECD",-,-

OK
AT+QSTKRSP=36,0,3 //Respond to the selected item proactive command and the item
(ID is 3) is selected.
+QSTKURC: 33 //Display text proactive command notification.

AT+QSTKGI=33
+QSTKGI: 33,1,"77ED4FE153D190016210529FFF01",-,-,-

OK

EC200U&EG91xU_Series_STK_Application_Note 31 / 34
LTE Standard Module Series

3.3. Terminate STK Session and Timeout Response

1. Terminate STK session.

AT+QSTKRSP=253,0,25 //Select menu item. ID is 25.


OK

+QSTKURC: 36 //Select item proactive command notification.


AT+QSTKGI=36 //Get the selected item proactive command information.
+QSTKGI: 36,0,9,"7CBE54C163A88350",-,-,-,-,-
+QSTKGI: 36,1,"53057F574E078C61",-,-
+QSTKGI: 36,2,"5E7D9ED851B77B118BDD",-,-
+QSTKGI: 36,3,"59296C14988462A5",-,-
+QSTKGI: 36,4,"65B095FB805A7126",-,-
+QSTKGI: 36,5,"4F53575B5FEB8BAF",-,-
+QSTKGI: 36,6,"4EB24EB25B9D8D1D",-,-
+QSTKGI: 36,7,"65C56E38653B7565",-,-
+QSTKGI: 36,8,"822A73ED67E58BE2",-,-
+QSTKGI: 36,255,"4E0B4E009875",-,-

OK
AT+QSTKRSP=254 //Terminate STK session.
OK

+QSTKURC: 253 //URC indicates that the proactive session has ended.

2. Timeout response of STK session.

AT+QSTKRSP=253,0,25 //Select menu item, ID is 25.


OK

+QSTKURC: 36 //Select item proactive command notification.


AT+QSTKGI=36 //Get the selected item proactive command information.
+QSTKGI: 36,0,9,"7CBE54C163A88350",-,-,-,-,-
+QSTKGI: 36,1,"53057F574E078C61",-,-
+QSTKGI: 36,2,"5E7D9ED851B77B118BDD",-,-
+QSTKGI: 36,3,"59296C14988462A5",-,-
+QSTKGI: 36,4,"65B095FB805A7126",-,-
+QSTKGI: 36,5,"4F53575B5FEB8BAF",-,-
+QSTKGI: 36,6,"4EB24EB25B9D8D1D",-,-
+QSTKGI: 36,7,"65C56E38653B7565",-,-
+QSTKGI: 36,8,"822A73ED67E58BE2",-,-
+QSTKGI: 36,255,"4E0B4E009875",-,-

EC200U&EG91xU_Series_STK_Application_Note 32 / 34
LTE Standard Module Series

OK
+QSTKURC: 255,36 //Indicate the timeout response of STK session.

+QSTKURC: 253 //URC indicates that the proactive session has ended and
entered into main menu (different (U)SIM cards may have
different performances).

3.4. Disable STK Functionality

After disabling the STK functionality, you should reboot the module.

AT+QSTK=0 //Disable STK functionality.


OK

EC200U&EG91xU_Series_STK_Application_Note 33 / 34
LTE Standard Module Series

4 Appendix References

Table 5: Related Document

Document Name

[1] Quectel_EC200U&EG91xU_Series_AT_Commands_Manual

Table 6: Terms and Abbreviations

Abbreviation Description

ME Mobile Equipment

TA Terminal Adapter

MS Mobile Station

DTE Data Terminal Equipment

STK (U)SIM Application Toolkit

URC Unsolicited Result Code

SMS Short Message Service

RFU Reserved for Future Use

EC200U&EG91xU_Series_STK_Application_Note 34 / 34

You might also like