thanks
i enabled CME error as AT+CMEE+1,
see the below code which i have used and the corresponding response of the commands
explain the following way which i send wip command is correct?
//
/* Includes */
//
#include “at_cmd_service.h”
#include “wm_types.h”
#include “adl_traces.h”
#include “adl_AppliInit.h”
#include “adl_RspHandler.h”
#include “wip_atcmd.h”
#include “wipsoft_monitor.h”
s32 Result = -1;
/* Functions related to adl_atCmdSend API /
/**************************************************************************/
static s16 ATCmdSend_Response_Handler ( adl_atResponse_t *paras );
void ATCmdSend ( void )
{
s8 s8Return = 0;
TRACE( ( APPLI_AT_CMD_TRACE_LEVEL, “Send ‘ATI’ using the adl_atCmdSend API”) );
s8Return = adl_atCmdSend( “ATI9”,
( adl_atRspHandler_t ) ATCmdSend_Response_Handler,
“*”,
NULL );
if ( 0 > s8Return )
{
TRACE( ( APPLI_AT_CMD_TRACE_LEVEL, “ATCmdSend: error in adl_atCmdSend: %d”, s8Return ) );
}
s8Return = adl_atCmdSend( “AT+CMEE=1”,( adl_atRspHandler_t ) ATCmdSend_Response_Handler,
“",NULL );
if ( 0 > s8Return )
{
TRACE( ( APPLI_AT_CMD_TRACE_LEVEL, “ATCmdSend: error in adl_atCmdSend: %d”, s8Return ) );
}
s8Return = adl_atCmdSend( “AT+CMEE?”,( adl_atRspHandler_t ) ATCmdSend_Response_Handler,
"”,NULL );
if ( 0 > s8Return )
{
TRACE( ( APPLI_AT_CMD_TRACE_LEVEL, “ATCmdSend: error in adl_atCmdSend: %d”, s8Return ) );
}
/GPRS intilisation/
Result = wip_ATCmdSubscribe();
if ( OK == Result )
{
/* The customer can write here its own application based on other plug-ins or
its specific application target. /
TRACE (( 1, “+WIP AT Commmands successfully subscribed.” ));
s8Return = adl_atCmdSend( “AT+WIPCFG?”,( adl_atRspHandler_t ) ATCmdSend_Response_Handler,
"",NULL );
if ( 0 > s8Return )
{
TRACE( ( APPLI_AT_CMD_TRACE_LEVEL, “ATCmdSend: error in adl_atCmdSend: %d”, s8Return ) );
}
}
else
{
/* error : memory lack within Open AT application */
TRACE (( 1, “+WIP AT Commmands subscribtion failed.” ));
}
}
s16 ATCmdSend_Response_Handler ( adl_atResponse_t *paras )
{
TRACE( ( APPLI_AT_CMD_TRACE_LEVEL, “ATCmdSend_Response_Handler: Response handled” ) );
TRACE( ( APPLI_AT_CMD_TRACE_LEVEL, paras->StrData ) );
/adl_atSendResponse ( ADL_AT_PORT_TYPE ( ADL_AT_UART1,
ADL_AT_UNS ),
“\r\n\ paras->StrData r\n” );/
adl_atSendResponsePort ( ADL_AT_RSP, ADL_PORT_NONE, paras->StrData );
/* The response does not need to be forwarded to the Sierra Wireless stack */
return FALSE;
}
The following response received for each of the above command in target management CONSOLE window
at+wopen=1
OK
“DWL”,“V09c08”,"",“Sierra Wireless”,55684,“053112 09:27”,“6baf6254”,“00010000”
“FW”,“FW_751_14.SL6087G”,“R7.51.0.201205311751.SL6087”,“Sierra Wireless”,620780,“053112 17:51”,“de5225b8”,“001c0000”
“MODEM”,“1.2.12”,“201205311748.SL6087”,“Sierra Wireless”,1660692,“053112 17:48”,“16b6cdaa”,“00020000”
“OAT”,“1.0.0”,“MyApplication”,“MyCompany”,198712,“051313 15:26”,“fd68ac7d”,“002a0000”
-“Developer Studio”,“2.2.1.201206182209-R9667”
-“Open AT Framework package”,“2.51.0.201206190958”
-“Open AT OS Package”,“6.51.0.201206010944”
-“Firmware Package”,“7.51.0.201205311751”
-“ExtendedATApplication Library Package”,“1.21.0.201206061241”
-“Internet Library Package”,“5.54.0.201206011257”
-“Location Library Package”,“1.5.1.201204231425”
-“Security Library Package”,“1.16.0.201206041340”
-“WMMP Library Package”,“4.1.0.201202021114”
-“eCall-InBandModem Library Package”,“1.2.2.201206061040”
“ROM”,“800000”
“RAM”,“200000”
“DWLNAME”,“SL6087”
OK
OK
+CMEE: 1
OK
ERROR