How to Decode Alpha Fields in the STK Menu

REQUESTING SUPPORT for MOBITEK Q24 STK MODEM

Product:  MOBITEK® Q24 STK MODEM (1 SIM card) Expiry Date of Warranty and Support I14-2036-ONEMART
12 Month from 21,March 2014
Which STK API version are you using?
  • version 6
What is the Operating System?
  • Windows 7
  • 32 bit
Which programming language are you using?
  • VB.net
SIM Card Used:
  • Name of Operator: ORANGE
  • Memory: 128k
  • 3G activated: Yes
Description of Problem: Case 1 : Network Operator is ORANGE. In this case the Main menu and Sub menu are not display correctly but in my cell phone it’s correct. See the attach screen capture

Orange STK MENU-01

Orange STK MENU in mobile phone (left) compare with STK VB.net (right)

 

Orange STK MENU-02

Orange STK MENU as shown in mobile phone (left) and in VB.net (right)

 

Suggested Solution no. 1  We suggest a work around:-

  • noted down all the values of the menu item that matches the menu in your mobile phone screen, refer table below
  • when you call functions of MOBITEK STK API, you only need to pass the value of the menu item and not the text of menu item as the argument/parameter
Menu Menu Item FUNCTION CALL
Recharger 128
Retour 129
Rapports 130
Option 131
Dernier trans 1 Correct -> SubMenuSelect(1)
Wrong ->  SubMenuSelect(Dernier trans)
Solde 2 SubMenuSelect(2)
Rapport jour. 3 SubMenuSelect(3)
Suggested Solution no. 2 In countries where English is not the primary language, the STK Menu may display alphanumeric string instead of English text. We provide VB.Net sample code to decode the alphanumeric string.The VB.Net Sample Code decodes the alphanumeric string into UCS2 and then decode the UCS2 to display the unicode characters. The sample code is in the MOBITEK Air-Time Reload Development Kit CD.

Example, the alphanumeric string displayed by Orange STK Menu is “810E00C4E5F2EEE9E5F220F4F2E1EEF3AE “, the VB.Net sample code will decode it and convert to “Dernier trans.”. Refer image below.

Decoding Orange STK MENU-01

Decoding Orange STK MENU-01

 

Suggested Solution to “COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154

Question: When calling the method Modem.Init(), this error appears – “Retrieving the
COM class factory for component with CLSID {C7B56BA9-90BC-4B2B-BA02-
DF1FCBE506A7} failed due to the following error: 80040154.

 

Answer: refer to page 9 of the “Manual_VB2008.pdf” in the SMS Gateway Development Kit CD:

In Visual Studio .Net, modify your project’s platform from “Any CPU” to “x86” in “Project Properties > Build/Platform’s Target.

MOBITEK Q24 SMS MODEM Works with SMSLib in Linux

Product: MOBITEK® Q24 SMS Modem
Model: S-657f
Type: E
IMEI: 356205030009943
Expiry Date of Warranty and Support  12 Months After 26 June 2014
The modem is connected with?
  • PC
What is the Operating System (ignore if not relevant)?
  • Linux Red Hat & Ubuntu
What software are you using to communicate with the modem?
  • SMSLib Version: 3.5.0
SIM Card Used:
  • Maxis / Digi
Description of Problem:  Trouble getting it to work with Linux machines (“No such port”).But the very same java program works fine on Windows PC.813    2014-07-07 16:19:35,433 [Thread-4] INFO  com.cardzone.oneswitch.sms.smslib.modem.SerialModemDriver  – GTW: modem1: Closing: /dev/ttyS0 @115200
2040   2014-07-07 16:19:36,660 [main] INFO  com.cardzone.oneswitch.sms.smslib.modem.ModemGateway  – GTW: modem1: Stopping gateway…
2040   2014-07-07 16:19:36,660 [main] INFO  com.cardzone.oneswitch.sms.smslib.modem.SerialModemDriver  – GTW: modem1: Closing: /dev/ttyS0 @115200
2040   2014-07-07 16:19:36,660 [main] INFO  com.cardzone.oneswitch.sms.smslib.modem.ModemGateway  – GTW: modem1: Gateway stopped.
2241   2014-07-07 16:19:36,861 [main] ERROR com.cardzone.oneswitch.sms.smslib.smsserver.SMSServer  – SMSServer error!
com.cardzone.oneswitch.sms.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: gnu.io.NoSuchPortException
Root Cause: Permission/privilege to use serial port is NOT assigned to current user.
Solution: Assign permission — add/assign these groups to the current user — “tty”, “dialout”

Linux-Mint

Linux-Mint

 

What If The Warranty Period of MOBITEK Q24 MODEM Has Expired?

If the problem is caused by hardware failure, you have these options:-

  1. sign up for annual support programme to extend the warranty period; or
  2. purchase a new one to replace the current faulty one.

If the problem is caused by software, you have these options:-

  1. sign up for annual support programme to receive continue support via e-mail; or
  2. self-help from our web site — http://www.mobitek.com.my/mobitek/Help.html and from this blog.

Please take note that our support is tied to a specific modem’s warranty period.

Using MOBITEK STK API version 6.2 with Java

Installation Guide

  1. We’ll be assuming you have already install the MOBITEK® SIM Tool Kit Application Programming Interface (STK API) version 6.2 and the MOBITEK® Q24 STK MODEM is connected to a PC
  2. Install Eclipse IDE (you may use other IDE) and JRE
  3. Install JACOB –  Unzip the file “jacob-1.14.3.zip”
    –  Copy these 2 files to “system32” folder:
    a) jacob-1.14.3-x64.dll
    b) jacob-1.14.3-x86.dll

Using the STK API in JAVA

  1. Create new java project in Eclipse
  2. Include Jacob.jar in Library
  3. Create a new class and copy and paste the sample code provided
  4. Made modification where necessary (ie Port Number, Script for the STK )
    – Port number may be change in line
vMOBITEK = Modem.invoke("Init", 1);

– Script of STK may be found in  Start() Function

private static void Start() { 
...
...
}
// In case you are not using maxis just try to call the main menu first
// Comment the other

Continue reading