Siemens TC65 manual MIDlets, MIDlet Documentation MIDlet Life Cycle

Models: TC65

1 90
Download 90 pages 14.61 Kb
Page 34
Image 34

TC65 JAVA User's Guide

s

Strictly confidential / Released

 

6 MIDlets

The J2ME™ Mobile Information Device Profile (MIDP) provides a targeted Java API for writing wireless applications. The MIDP runs on top of the Connected Limited Device Configuration (CLDC), which in turn, runs on top of the J2ME™. MIDP applications are referred to as MIDlets. MIDlets are controlled by the mobile device implementation that supports the CLDC and MIDP. Since IMP-NG is a subset of MIDP 2.0, IMP includes MIDlets. The MIDlet code structure is very similar to applet code. There is no main method and MIDlets always extend from the MIDlet class. The MIDlet class in the MIDlet package provides methods to manage a MIDlet’s life cycle.

6.1MIDlet Documentation

MIDP and MIDlet documentation can be found at http://wireless.java.sun.com/midp/ and in the html document directory of the wtk, …\Siemens\SMTK\TC65\wtk\doc\index.html

6.2MIDlet Life Cycle

The MIDlet life cycle defines the protocol between a MIDlet and its environment through a simple well-defined state machine, a concise definition of the MIDlet’s states and APIs to signal changes between the states. A MIDlet has three valid states:

Paused – The MIDlet is initialised and is quiescent. It should not be holding or using any shared resources.

Active – The MIDlet is functioning normally.

Destroyed – The MIDlet has released all of its resources and terminated. This state is only entered once.

State changes are affected by the MIDlet interface, which consists of:

pauseApp() – the MIDlet should release any temporary resources and become passive.

startApp() – the MIDlet starts it’s execution, needed resources can be acquire here or in the MIDlet constructor

destroyApp() – the MIDlet should save any state and release all resources

Note: destroyApp() is called when a MIDlet should terminate caused by device.

notifyDestroyed() – the MIDlet notifies the application management software that it has cleaned up and is done

Note: the only way to terminate a MIDlet is to call notifyDestroyed(), but destroyApp() is not automatically called by notifyDestroyed().

notifyPaused() – the MIDlet notifies the application management software that it has paused

resumeRequest() – the MIDlet asks application management software to be started again.

°getAppProperty() – gets a named property from the MIDlet

TC65 JAVA User's Guide_V05

Page 34 of 90

26.09.2005

Page 34
Image 34
Siemens TC65 manual MIDlets, MIDlet Documentation MIDlet Life Cycle

TC65 specifications

The Siemens TC65 is a compact and powerful GSM/GPRS module designed for a wide range of mobile communication applications. With its robust features, the TC65 perfectly meets the growing demands for connectivity in various industries, including automotive, telematics, and industrial automation.

A standout feature of the TC65 is its compact size, allowing it to be easily integrated into various devices without compromising on performance. The module supports GSM (Global System for Mobile Communications) and GPRS (General Packet Radio Service), providing reliable and efficient voice and data transmission.

One of the key technologies incorporated in the TC65 is its integrated TCP/IP stack, which allows for seamless internet connectivity and enables application developers to create IoT solutions with ease. This capability is essential for remote monitoring, data logging, and other applications that require continuous data exchange.

The TC65 also boasts extensive multimedia capabilities, including support for SMS, MMS, and voice calls. This makes it suitable for applications that require not only data transmission but also communication features. Additionally, it supports various codecs for voice compression, ensuring high-quality audio in voice applications.

Enhanced security features are another highlight of the TC65. It incorporates comprehensive security protocols to safeguard data transmission, making it suitable for sensitive applications in finance, healthcare, and other critical sectors. The module also includes an integrated SIM application toolbox that supports the development of secure and customizable applications.

For developers, the TC65 offers an easy-to-use software development kit (SDK), simplifying the process of application development. This means that businesses can quickly create and deploy solutions tailored to their specific needs.

The module operates across a wide voltage range and is designed to tolerate challenging environmental conditions, making it ideal for industrial use. It supports various interfaces, including UART, GPIO, and I2C, enabling it to connect with a variety of peripherals and sensors, thus expanding its usability.

In summary, the Siemens TC65 combines compact design, versatile communication capabilities, advanced security features, and developer-friendly resources, making it an excellent choice for anyone looking to implement reliable and sophisticated GSM/GPRS communication in their applications. The TC65 is a valuable asset in the evolving landscape of connected devices and IoT solutions.