Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

Telit Cinterion IoT Developer Community

Clean up MIDlets

Showcase, June 4, 2015 - 1:58pm, 5473 views

After working with the Cinterion Concept Board or Terminals for a while you might end up in a situation that several MIDlet are installed and you want to clean all.

I wrote a easy to use program which helps you to do this.

It can be executed in a shell e.g. java -jar DelMIDlets_rev1.0.1.jar -p com2

Execute this without any argument will show the help text below explaining how to use this small program.

Help text:
-p         serial port e.g com1 or /dev/ttyS0
-baudrate  serial port speed, default is 115200
-databits  number of databis default is 8
-stopbits  number of stopbits default is 1
-parity    parity, e for even, o for odd, n for none, default is none
           Hardware flow control is used by default
-pwd       password to be used with AT^SJAM, empty by default
-help      this help text

Example: c:\>java -jar DelMIDlets.jar -p COM1
This delets all MIDles excluding the JRC from the module 

Hey Markus.  I know this util is a few years old, but for completeness, thought you may want to know about an exception it threw.

C:\Aplicom\Tools\CleanMidletsJAR>java -jar DelMIDlets_rev1.0.1.jar -p COM5

DelMIDlets for Cinterion EHSx and BGS5

Version: 1.0.1  2015/06/04

Author: Markus Enck

ERROR timeout

ERROR timeout

Exception in thread "main" java.lang.reflect.InvocationTargetException

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(Unknown So


Caused by: java.lang.NullPointerException

        at DelMIDlet_Main.main(Unknown Source)

        ... 5 more


Markus's picture