http://www.wavecom.com/forum Open AT ® Release version: 4.10 |
This MultiApp sample library provides start/stop mechanism to handle several running ADL applications. When an application uses this library, it provides some parameters as the start/stop command name, the start and stop callbacks, etc...
It also defines a +WHO command, to know which application is currently running.
All constants and APIs are defined by the multi_app.h header file, which must be included by any application to allows it to use the MultiApp Library.
The MultiApp APIs are defined bellow :
ma_LoadApplicationParameter | Description |
InitType | adl_main InitType parameter has to be forwarded to the library using this one. |
InitProc | The application entry point (see below) |
Parameter | Description |
InitType | InitType, forwarded from adl_main entry point. |
PinCode | Application defined PinCode, defined by the ma_SetupPinCode API (NULL by default). |
ApplicationData | Structure to be filled with application information.
{ ascii * AppName; ascii * AppCmd; u16 AppTrcID; u16 ObjRange; ma_StartFctHdlr_f AppStart; ma_StopFctHdlr_f AppStop; } ma_Element_t; AppCmd : Application command name AppTrcID : Trace ID (provided by the library) ObjRange : Used Flash Object numbers (object 0 is always the application state) AppStart : Application start callback AppStop : Application stop callback |
Parameter | Description |
Port | Serial port from which command was sent. |
Parameter | Description |
PinCode | PIN code to be sent to all loaded application entry points. |
The +WHO command is decribed below :
AT+WHO (Currently running applications dump command)
Command | Answers |
AT+WHO | Application name[ - running] Application name[ - running] ... OK Displays all linked applications, with the "running" word for the started ones... |
Updated: Tue Sep 19 17:17:44 CEST 2006;