
6. EMBEDDED APPLICATIONS
36
LZ T 123 7 605 P1C
6. Embedded Applications
The module has the capability to store, and run customer written code in
the form of a script during the processors idle time, through the use of an
on board interpreter.
6.1 Features
Main features of embedded applications are as follows.
• C based scripting language (Sony Ericsson specific)
• Over the air upgrade of scripts (NOT GSM software)
• Library of intrinsic functions
• Two radio device scripts can be stored, but only one can run at any one
time.
6.2 Implementation
The module has up to 44kbytes of space available for storage of two scripts
in the scripting language and 25kbytes of operating RAM. Structures
included in this language are:
• If - then - else statements
• While loops
• For loops
All hardware interfaces that are normally available to the module through
the AT commands are available to the embedded application. Further
drivers have been written such as M bus and I
2
C for use by the embedded
application (EA) through the use of the I/O pins.
6.2.1 Limitations
Since the module is processing the script using its own memory,
limitations are placed onto the scripts that are run.
• A direct comparison cannot be made to a fully compiled C program in
terms of size but a gauge of script size is that if each line were 128
characters long in the script then the script could be 350 lines long.
• Processing power is something that needs to be considered as the script
is run as a low priority process within the software. However, controller
mode stops GSM operation and provides all the processing power for
the script to be run. See the M2
m
Power Application Guide for more
details.
• Code cannot be ported directly from an existing application and loaded
directly onto the radio device. It must be re written in the Sony
Ericsson Mobile script language so that the radio device interpreter can
function correctly.