Hello,
I'm new in using M2M. I have Fastrack Supreme 20. I make the project and build it without problem, but when I debug the project I have not any result or log in console.
Project is very simple, just sending SMS and receving. Target is connected. Connection is ok according to Expresso. Anyone of you have a similar problem?? I would thanks you a lot.
What I`m getting in console is the following:
warning: CSelima::CSelima()
warning: CSelima::CreateInstance()
warning: CSelima::Advise()
warning: -> Ok
warning: CSelima::AddClient()
warning: -> Num Client 9, Cookie 2315932
warning: CRtkClient::CRtkClient() : Register(INFO_MSG)
warning: CRtkClient::CRtkClient() : Register(INFO_MSG2)
warning: CRtkClient::CRtkClient() : Register(INFO_RPC)
warning: CRtkClient::CRtkClient() : Register(INFO_RPC2)
warning: CRtkClient::CRtkClient() : Register(INFO_EEPROM)
warning: CRtkClient::CRtkClient() : Register(INFO_OBJECT)
warning: CSelima::AddFlow(9, 0x6)
warning: CSelima::AddFlow(9, 0x11)
warning: CSelima::AddFlow(9, 0x1e)
warning: CSelima::AddFlow(9, 0x19)
warning: CSelima::AddFlow(9, 0xe)
warning: CSelima::AddFlow(9, 0xf)
And the code I`m using is:
/********************************************************************************************/
/***************************************************************************/
/* File : Appli.c */
/*-------------------------------------------------------------------------*/
/* Object : Customer application */
/* */
/* contents : Customer main procedures */
/* */
/* Change : */
/***************************************************************************/
/*
$LogWavecom: G:\projet\mmi\pvcsarch\archives\open-mmi\SAMPLES\adl\New_Project\src\appli.c-arc $
* --------------------------------------------------------------------------
* Date | Author | Revision | Description
* ----------+--------+----------------+-------------------------------------
* 25.10.05 | DPO | 1.1 | * New V4 interface
* ----------+--------+----------------+-------------------------------------
* 16.12.02 | dpo | 1.0 | Initial revision.
* ----------+--------+----------------+-------------------------------------
*/
#include "adl_global.h"
/***************************************************************************/
/* Mandatory variables */
/*-------------------------------------------------------------------------*/
/* wm_apmCustomStackSize */
/*-------------------------------------------------------------------------*/
/***************************************************************************/
const u16 wm_apmCustomStackSize = 1024*3;
s8 handle;
/***************************************************************************/
/* Local variables */
/***************************************************************************/
void SimHandler(u8 Event);
void SmsCtrlHandler( u8 Event, u16 Nb );
bool SmsHandler( ascii * SmsTel, ascii * SmsTimeOrLength, ascii * SmsText );
int counter;
/***************************************************************************/
/* Local functions */
/***************************************************************************/
void DELAY (u8 ID, void * Context){}
void SimHandler(u8 Event)
{
TRACE((1, " In Sim Handler"));
switch(Event)
{
case ADL_SIM_EVENT_REMOVED:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SIM_EVENT_REMOVED");
break;
case ADL_SIM_EVENT_INSERTED:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SIM_EVENT_INSERTED");
break;
case ADL_SIM_EVENT_FULL_INIT:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SIM_EVENT_FULL_INIT");
adl_smsSend( handle, "0229315658110" , "Mensaje para Osito cambio y fuera...", ADL_SMS_MODE_TEXT );
counter = 2;
break;
case ADL_SIM_EVENT_PIN_ERROR:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SIM_EVENT_PIN_ERROR");
break;
case ADL_SIM_EVENT_PIN_OK:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SIM_EVENT_PIN_OK");
break;
case ADL_SIM_EVENT_PIN_WAIT:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SIM_EVENT_PIN_WAIT");
break;
case ADL_SIM_EVENT_PUK_WAIT:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SIM_EVENT_PUK_WAIT");
break;
case ADL_SIM_EVENT_PUK_ERROR:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SIM_EVENT_PUK_ERROR");
break;
case ADL_SIM_EVENT_FAILURE:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SIM_EVENT_FAILURE");
break;
case ADL_SIM_EVENT_NET_LOCK:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SIM_EVENT_NET_LOCK");
break;
}
}
void SmsCtrlHandler( u8 Event, u16 Nb )
{
TRACE((1, " IN SMS Ctrl handler"));
switch(Event)
{
case ADL_SMS_EVENT_SENDING_OK:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SMS_EVENT_SENDING_OK");
break;
case ADL_SMS_EVENT_SENDING_ERROR:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SMS_EVENT_SENDING_ERROR");
break;
case ADL_SMS_EVENT_SENDING_MR:
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SMS_EVENT_SENDING_MR");
break;
}
}
bool SmsHandler( ascii * SmsTel, ascii * SmsTimeOrLength, ascii * SmsText )
{
TRACE((1, " IN SMS data handler"));
adl_atSendResponse(ADL_AT_RSP, "\r\nSMS Phone Number: ");
adl_atSendResponse(ADL_AT_RSP, SmsTel);
adl_atSendResponse(ADL_AT_RSP, "\r\n");
adl_atSendResponse(ADL_AT_RSP, "\r\nSMS Time: ");
adl_atSendResponse(ADL_AT_RSP, SmsTimeOrLength);
adl_atSendResponse(ADL_AT_RSP, "\r\n");
adl_atSendResponse(ADL_AT_RSP, "\r\nSMS Text: ");
adl_atSendResponse(ADL_AT_RSP, SmsText);
adl_atSendResponse(ADL_AT_RSP, "\r\n");
return TRUE;
}
/***************************************************************************/
/* Function : adl_main */
/*-------------------------------------------------------------------------*/
/* Object : Customer application initialisation */
/* */
/*-------------------------------------------------------------------------*/
/* Variable Name |IN |OUT|GLB| Utilisation */
/*--------------------+---+---+---+----------------------------------------*/
/* InitType | | | | Application start mode reason */
/*--------------------+---+---+---+----------------------------------------*/
/***************************************************************************/
void adl_main ( adl_InitType_e InitType )
{
TRACE (( 1, "Embedded Application : Main" ));
// TO DO : Add your initialization code here
adl_simSubscribe ((adl_simHdlr_f)SimHandler, NULL);
handle = adl_smsSubscribe((adl_smsHdlr_f)SmsHandler, (adl_smsCtrlHdlr_f)SmsCtrlHandler, ADL_SMS_MODE_TEXT );
adl_atSendResponse(ADL_AT_RSP, "\r\nADL_SIM_EVENT_FULL_INIT");
adl_smsSend( handle, "567898888877" , "Mensaje ", ADL_SMS_MODE_TEXT );
}
THANKS you very much!!!