This is is a example of the stk command in wavecom modem
at+stgi=0
+STGI: "Videocon"
+STGI: 1,4,"Vcharge",0
+STGI: 3,4,"Bill Payments",0
+STGI: 4,4,"My Accounts",0
+STGI: 6,4,"Settings",0
OK
at+stgr=0,1,4
OK
+STIN: 6
at+stgi=6
+STGI: 0,"My Accounts"
+STGI: 1,3,"Stock Balance",0
+STGI: 2,3,"Last Transaction",0
+STGI: 3,3,"Daily Report",0
OK
at+stgr=6,1,1
OK
+STIN: 3
at+stgi=3
+STGI: 0,0,4,4,0,"Enter VPIN"
OK
at+stgr=3,1,1
> 1234
OK
+STIN: 9
at+stgi=9
+STGI: "Sending SMS"
OK
+STIN: 1
at+stgi=1
+STGI: 1,"SMS Sent",0
OK
+CMTI: "SM",1
+STIN: 99
every stk starter must start with at+stgi=0. anykind of simcard will start from it.
stgi is to insert the reply from the wavecom
+STIN: 6
at+stgi=6
when the stin:6 just input stgi=6
+STIN: 3
at+stgi=3
when stin:3 just input stgi=3
stgr is to select or input any instruction to the stk. stgr divide by 2 method in our usage.
if the stgi: is 6 or 0 mean you need to select from menu, if the stgi:3 mean you need to input some values wether it is a pin number or phone number or value to recharge
so when you see example like this
at+stgi=0
+STGI: "Videocon"
+STGI: 1,4,"Vcharge",0
+STGI: 3,4,"Bill Payments",0
+STGI: 4,4,"My Accounts",0
+STGI: 6,4,"Settings",0
OK
at+stgr=0,1,4
why we need input 0,1,4 when you see above stin:6 then your stgr is start with 0, for the selection in the middle is 1, for the menu you select is 4. so mean this menu menu 0, i'm confirm going select sub menu 4.
another stgr example is input the value
+STIN: 3
at+stgi=3
+STGI: 0,0,4,4,0,"Enter VPIN"
OK
at+stgr=3,1,1
> 1234
OK
see above stin:3 is mean you need to enter value. after you reply the stin:3 with "at+stgi=3" below show enter "Enter Vpin"
this mean you need to reply the stgr include the stin/stgi value
at+stgr=3,1,1 . almost every case you will need do this command when the stin:3 .
after the ">" you just simply type the value wther is a pin, or a phone number, or uninor special code, or any character.
then after done this how to parse to otomax ?
at+stgi=0
+STGI: "Videocon"
+STGI: 1,4,"Vcharge",0
+STGI: 3,4,"Bill Payments",0
+STGI: 4,4,"My Accounts",0
+STGI: 6,4,"Settings",0
OK
at+stgr=0,1,4
OK
+STIN: 6
at+stgi=6
+STGI: 0,"My Accounts"
+STGI: 1,3,"Stock Balance",0
+STGI: 2,3,"Last Transaction",0
+STGI: 3,3,"Daily Report",0
OK
at+stgr=6,1,1
OK
+STIN: 3
at+stgi=3
+STGI: 0,0,4,4,0,"Enter VPIN"
OK
at+stgr=3,1,1
> 1234
OK
+STIN: 9
at+stgi=9
+STGI: "Sending SMS"
OK
+STIN: 1
at+stgi=1
+STGI: 1,"SMS Sent",0
OK
+CMTI: "SM",1
+STIN: 99
see the value i make in otomax? it is mostly from stgr value. you just simply need to take those number for doing parsing so the parsing just will become
^4^1^1234
enjoy.
So i hope this tutorial you can make your own new parsing. as in india operator they just love to change simcard stk menu. any question feel free to post here.