Technical information

Chapter 5: JAVA API
July 15, 2008 G24 KJAVA Users Guide 5-19
Message Connection
Package: javax.wireless.messaging.
Default SMS Port API.
All regular incoming SMS (without destination and source port) will be redirected to a special,
default MT port;
Destination port - 6024
Source port - 49153
In order to be able to get this kind of SMS, MIDlet should listen on port 6024 using JSR120.
MIDlet Messages are stored in a separate JSR120 Inbox folder (up to 26 messages).
When this folder reaches its limit then the oldest unread message in a group of existing port
(xxxx) will be deleted. If no group port messages exist the oldest unread message in the folder
will be deleted.
Notification about Incoming Message
There are two main use-cases for message arrival:
1. MIDlet is running
MIDlet handles message (registered to 6024 port).
2. MIDlet is not running
SMS will be stored in the JSR120 Inbox folder. When MIDlet is launched and registers to
6024 port, then incoming SMS will be handled it and deleted from storage.
File Connection
Package name: javax.microedition.io.file
G24-J team recommends saving files and creating directories in root '/c/'.
For example:
fileConnection = (FileConnection) Connector.open("file:///c/<my_file>");
Location API
Package name: javax.microedition.location
G24-J Location mechanism is the result of JSR179 implementation.
The Location APIs feature allows obtaining updated location information (longitude, latitude,
altitude, speed, course etc.) from a GPS device by Request or Periodical Listening.
Connection of a GPS Device to G24-J
GPS receiver may be connected to the G24-J via serial port UART1 or UART2. TX and RX lines
are required for this connection. Optionally, flow control lines CTS and RTS can be connected.