# STK: How to display menu and set the items

**URL:** <https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957>\
**Category:** WP Series\
**Created:** [October 29, 2020, 1:40pm UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957 "2020-10-29T13:40:23Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![shatrughan](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@shatrughan](https://forum.sierrawireless.com/u/shatrughan)\
**Post date:** [October 29, 2020, 1:40pm UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/1 "2020-10-29T13:40:23Z")

</div>

Hi,  
I am using WP series module, which supports STK. I need to display the menu of SIM Toolkit and set the desired menu. However, I am not able to find any lead to do this either by using AT command or SDK API.

Is there any sample apps for STK or set of AT commands I could use to do this?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 29, 2020, 2:46pm UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/2 "2020-10-29T14:46:33Z")

</div>

Isn’t there a chapter about sim toolkit in AT command guide?

E.g.  
AT!CUSTOM=”STKUIEN”,2

AT\*PSSTKI=2

---

<div class="post-metadata">

**Author:** ![shatrughan](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@shatrughan](https://forum.sierrawireless.com/u/shatrughan)\
**Post date:** [October 29, 2020, 4:01pm UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/3 "2020-10-29T16:01:32Z")

</div>

Hi @jyijyi Thanks… There are set of AT commands related to STK and I know how to enable STK. But, I dont know how to DISPLAY TEXT and setup a Menu, Select Item. Do you know which AT command I can use to do this?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 30, 2020, 12:05am UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/4 "2020-10-30T00:05:06Z")

</div>

Make sure you sim card is working for stk

AT!CUSTOM=“STKUIEN”,2  
OK  
at+cfun=1,1  
OK

at\*psstki?

\*PSSTKI: 1

OK  
at!stkgc=25

!STKGC: 25,5,0,0,4,47656D58706C6F72652043415345,0,0

1,5573657220696E746572616374696F6E,0,0,21

2,4D6F62696C6520696E746572616374696F6E,0,0,21

3,4E6574776F726B20696E746572616374696F6E,0,0,21

4,4361726420696E746572616374696F6E,0,0,21

128,436F6D6D6F6E2053544B206665617475726573,0,0,21

OK

---

<div class="post-metadata">

**Author:** ![shatrughan](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@shatrughan](https://forum.sierrawireless.com/u/shatrughan)\
**Post date:** [October 30, 2020, 8:15am UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/5 "2020-10-30T08:15:55Z")

</div>

@jyijyi. Thanks for reply

at\*psstki?  
\*PSSTKI: 1

OK

at!stkgc=25  
+CME ERROR: operation not allowed

what is meaning of the above error?

!STKGC: Get (retrieve) data for last unsolicited proactive SIM command notification  
So, I understand it as this is used to retrieve the notification of previously received unsolicited proactive SIM command using !stkc

I also tried with stkms. The command executes fine for any given integer  
at!stkms=25,0  
OK  
However, I do not get ant !STKC notification after that

What am I missing here?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 30, 2020, 8:36am UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/6 "2020-10-30T08:36:39Z")

</div>

is your SIM card OK for Sim toolkit?  
Have you tried on other modem before?  
Have you set AT!CUSTOM=“STKUIEN”,2 ?

---

<div class="post-metadata">

**Author:** ![shatrughan](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@shatrughan](https://forum.sierrawireless.com/u/shatrughan)\
**Post date:** [October 30, 2020, 10:29am UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/7 "2020-10-30T10:29:52Z")

</div>

AT!CUSTOM=“STKUIEN”,2 is enabled

CUSTOM:  
GPSENABLE 0x01  
GPSLPM 0x01  
IPV6ENABLE 0x01  
UIM2ENABLE 0x01  
SIMLPM 0x02  
USBSERIALENABLE 0x01  
SINGLEAPNSWITCH 0x01  
TXONINDICATION 0x01  
HSICENABLE 0x01  
SCRUBEN 0x01  
STKUIEN 0x02  
EXTGPSLNAEN 0x01

OK

STK feature bitmask also seems fine for setup/select menu  
AT!STKPD?  
Profile config=000000001FFFFF

When I plug the sim card to android phone, I can see the sim application and access/select the menu.  
When I issue at+cfun=0 and then at+cfun=1, I see this:

!STKC: 05 \>\> Setup event list  
!STKC: 81 \>\> End of proactive session

So, I think stk is working fine. The issue is I have no clue, how to get the !STKC: 25 or !STKC:24

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 30, 2020, 10:58am UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/9 "2020-10-30T10:58:17Z")

</div>

// Insert SIM card  
at\*psstki=1

OK  
at!stkpd?

Profile config=000000001FFFFF

OK  
at!stkpd=?

AT!STKPD=

OK  
at!stkpd=000000001FFF00 // set terminal profile

OK  
at!stkpd?

Profile config=000000001FFFFF // TP to be updated after module restart

OK  
at+cfun=1,1

OK  
at!stkpd?

Profile config=000000001FFF00 // TP updated

OK

// Insert test SIM  
Test case: PSSTKI mode = 1 (Manual mode)  
at\*psstki=1

OK  
at\*psstki?

\*PSSTKI: 1 // STK AT interface is manual mode

OK  
at+cfun=1,1

OK  
!STKC: 25 // SETUP MENU  
at!stkc?

Outstanding Proactive Command: 25

OK  
at!stkgc=25

!STKGC: 25,5,0,0,4,47656D58706C6F72652043415345,0,0

1,5573657220696E746572616374696F6E,0,0,21

2,4D6F62696C6520696E746572616374696F6E,0,0,21

3,4E6574776F726B20696E746572616374696F6E,0,0,21

4,4361726420696E746572616374696F6E,0,0,21

128,436F6D6D6F6E2053544B206665617475726573,0,0,21

OK  
at!stkcr=25,0 // response SETUP MENU

OK

!STKC: 05 // SETUP EVENT LIST (handled by modem internally)

!STKC: 81  
at!stkms=3 // SELECT MENU ITEM #3

OK

!STKC: 24 // SELECT ITEM  
at!stkc?

Outstanding Proactive Command: 24

OK  
at!stkgc=24

!STKGC: 24,10,0,0,0,4,43686F6F736520616E206974656D203A,0,0

1,53656E642073686F7274206D657373616765,0,0,00

2,53656E6420534D533A6E756C6C20616C70686120,0,0,00

3,53656E64205353,0,0,00

4,53656E642055535344,0,0,00

5,5365742075702063616C6C,0,0,00

6,4F70656E206368616E6E656C,0,0,00

7,436C6F7365206368616E6E656C,0,0,00

8,526563656976652064617461,0,0,00

9,53656E642064617461,0,0,00

10,476574206368616E6E656C20737461747573,0,0,00

OK  
at!stkcr=24,0,1 // response SELECT ITEM (item #1)

OK

---

<div class="post-metadata">

**Author:** ![shatrughan](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@shatrughan](https://forum.sierrawireless.com/u/shatrughan)\
**Post date:** [October 30, 2020, 11:24am UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/10 "2020-10-30T11:24:11Z")

</div>

@jyijyi Thanks a lot. The steps can not be any clear than the above. However, when I try the above steps my at terminal closes at at+cfun=1,1 (because of module reset)and I dont get ant !STKC: 25 notification.  
There is no outstanding stkc either  
at!stkc?  
OK

I also tried using at+cfun=0, at+cfun=1 (with SIMLPM 0x02) to restart the sim. With this too, I only get  
at+cfun=0  
OK  
at+cfun=1  
OK

!STKC: 05

!STKC: 81

what could be the reason of not receiving !STKC: 25 ?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 31, 2020, 9:06am UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/11 "2020-10-31T09:06:10Z")

</div>

what is the return of

at!entercnd=“A710”  
at!nv?65674  
at!nv?65683

I used to see this problem with some MVNO SIM card.  
Need to change some NV parameter.

---

<div class="post-metadata">

**Author:** ![shatrughan](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@shatrughan](https://forum.sierrawireless.com/u/shatrughan)\
**Post date:** [October 31, 2020, 10:33am UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/12 "2020-10-31T10:33:00Z")

</div>

at!entercnd=“A710”  
OK

at!nv?65674  
01  
OK

at!nv?65683  
00  
OK

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 31, 2020, 12:07pm UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/13 "2020-10-31T12:07:56Z")

</div>

I supsect the module has regarded the SIM card as DATA card, as a result, SETUP MENU will not be supported.

To change this NV, you need to contact distributor.

---

<div class="post-metadata">

**Author:** ![shatrughan](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@shatrughan](https://forum.sierrawireless.com/u/shatrughan)\
**Post date:** [November 1, 2020, 6:49pm UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/14 "2020-11-01T18:49:17Z")

</div>

Thanks a lot for giving a direction. Before I contact our distributor for NV settings to be enabled in WP module, few questions below:

1. What is NV settings and, what these numbers(65674, 65683) represent?
2. If we enable above NV settings, will that impact other WP supported features in any way?
3. Can these NV settings be enabled remotely or I need to ship back WP modules to our distributor?
4. We have MC series module as well. MC series AT command document does not talk much about STK support. However, all the WP STK AT commands are working except \*PSSTKI and !STKPD. When I insert the STK supported sim card on MC module, I dont receive even !STKC: 05 and !STKC: 81.  
NV command output on MC module is below:  
at!nv?65674  
ERROR

at!nv?65683  
00  
OK

Does MC7304 module support STK? If yes, how can I enable STK proactive command notifications on MC module?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [November 1, 2020, 11:05pm UTC](https://forum.sierrawireless.com/t/stk-how-to-display-menu-and-set-the-items/21957/15 "2020-11-01T23:05:37Z")

</div>

1. Those nv is about if module regards the sim card as data card

2. I think no

3. You can set up a teamviewer session , i can try to do it remotely and if setting the nv can fix the problem
