# How to send wip command

**URL:** <https://forum.sierrawireless.com/t/how-to-send-wip-command/6304>\
**Category:** Legacy AirPrime modules\
**Created:** [May 10, 2013, 10:06am UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304 "2013-05-10T10:06:51Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![prakash12345](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@prakash12345](https://forum.sierrawireless.com/u/prakash12345)\
**Post date:** [May 10, 2013, 10:06am UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/1 "2013-05-10T10:06:51Z")

</div>

hi,  
I am sending at+wipcfg=1 command by using in the following format  
adl\_atCmdSend( “AT+WIPCFG=1”,( adl\_atRspHandler\_t ) ATCmdSend\_Response\_Handler,  
“\*”,NULL );  
but i am getting response as error for this.

can you guide me whether is there seperate function for sending wip command?

thanks

thanks for your response

i have downloaded dwl.dwl,w.dwl,R7.51.0\_sl6087.dwl,GPS\_ATcmd.dwl,ExtendedATApplication.dwl these file in my SL6087 module.

Wheteher the format which i am sending at command is correct?

and i am not gettin any CME error just i received “ERROR” for wip command i sent.  
can you guide me

---

<div class="post-metadata">

**Author:** ![tomridl](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/tomridl/32/2704_2.png) [@tomridl](https://forum.sierrawireless.com/u/tomridl)\
**Post date:** [May 13, 2013, 6:50am UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/2 "2013-05-13T06:50:00Z")

</div>

Make sure you have the WIP AT commands application installed. You can also try enabling error codes to see exactly what the error is (AT+CMEE=1)

---

<div class="post-metadata">

**Author:** ![prakash12345](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@prakash12345](https://forum.sierrawireless.com/u/prakash12345)\
**Post date:** [May 13, 2013, 8:06am UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/3 "2013-05-13T08:06:43Z")

</div>

thanks for your response

i have downloaded dwl.dwl,w.dwl,R7.51.0\_sl6087.dwl,GPS\_ATcmd.dwl,ExtendedATApplication.dwl these file in my SL6087 module.

Wheteher the format which i am sending at command is correct?

and i am not gettin any CME error just i received “ERROR” for wip command i sent.  
can you guide me

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forum.sierrawireless.com/u/tobias)\
**Post date:** [May 13, 2013, 8:25am UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/4 "2013-05-13T08:25:07Z")

</div>

AT+WIPCFG=1 is a command that is used against the WIP application.

If you want to use WIP with your own application, there is the WIP library.  
Uncertain if there is a library that you can include that provides the WIP AT commands rather than direct calls to WIP routines.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [May 13, 2013, 9:32am UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/5 "2013-05-13T09:32:32Z")

</div>

[https://forum.sierrawireless.com/t/using-wip-soft-in-open-at-application/4986/5](https://forum.sierrawireless.com/t/using-wip-soft-in-open-at-application/4986/5)

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [May 13, 2013, 9:37am UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/6 "2013-05-13T09:37:05Z")

</div>

> [@prakash12345](#):
>
> i am not gettin any CME error just i received “ERROR”

Have you enabled the +CME ERRORs - as tomridl described ❓

> [@tomridl](#):
>
> You can also try enabling error codes to see exactly what the error is (AT+CMEE=1)

---

<div class="post-metadata">

**Author:** ![prakash12345](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@prakash12345](https://forum.sierrawireless.com/u/prakash12345)\
**Post date:** [May 13, 2013, 9:39am UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/7 "2013-05-13T09:39:31Z")

</div>

thanks  
so we can’t able to call wip commands like at+wipcfg=1  
am i right?

or else is there any other way to call directly access wip commands like at+wipcfg=1

if its there means send me that sample code

the following code i have used to call the wip commands

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." ));
    }

```

thanks ☹

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [May 13, 2013, 10:17am UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/8 "2013-05-13T10:17:39Z")

</div>

You didn’t answer the question:

> [@awneil](#):
>
> Have you enabled the +CME ERRORs - as tomridl described ❓

Did you take a look at this thread: [Using WIP SOFT in Open AT Application - #5 by awneil](https://forum.sierrawireless.com/t/using-wip-soft-in-open-at-application/4986/5)❓

---

<div class="post-metadata">

**Author:** ![prakash12345](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@prakash12345](https://forum.sierrawireless.com/u/prakash12345)\
**Post date:** [May 13, 2013, 11:51am UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/9 "2013-05-13T11:51:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [May 13, 2013, 12:33pm UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/10 "2013-05-13T12:33:43Z")

</div>

Did you take a look at this thread:

[https://forum.sierrawireless.com/t/using-wip-soft-in-open-at-application/4986/5](https://forum.sierrawireless.com/t/using-wip-soft-in-open-at-application/4986/5)❓

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forum.sierrawireless.com/u/tobias)\
**Post date:** [May 13, 2013, 1:15pm UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/11 "2013-05-13T13:15:17Z")

</div>

Looking at wip\_ATCmdSubscribe in the documentation, it seems to be that it subscribes those commands for external use.

To call “applications own” AT commands the way you want, you need to use adl\_atCmdSendExt rather than adl\_atCmdSend. And use ADL\_NI\_LAUNCH for the NI parameter instead of 0.

---

<div class="post-metadata">

**Author:** ![prakash12345](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@prakash12345](https://forum.sierrawireless.com/u/prakash12345)\
**Post date:** [May 13, 2013, 2:46pm UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/12 "2013-05-13T14:46:20Z")

</div>

thanks,  
i look at that thread which sent by you.  
from that i understood we can’t able to send wip commands like AT+WIPCFG=1 format,  
am i right?

and also i tried in the following format  
s8Return = adl\_atCmdSendExt (“AT+WIPCFG=1”,ADL\_PORT\_NONE,ADL\_NI\_LAUNCH,NULL,ATCmdSend\_Response\_Handler,"\*",NULL );

for this also i received response as “ERROR” only  
can you guide me?

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forum.sierrawireless.com/u/tobias)\
**Post date:** [May 13, 2013, 3:16pm UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/13 "2013-05-13T15:16:12Z")

</div>

You should probably move the call to AT+WIPCFG=1 into another function, so that wip\_ATCmdSubscribe runs in the function you have it now, but AT+WIPCFG=1 in some other function for further testing…  
This is to make sure that everything runs fine until you call WIPCFG, and also giving WIP at least a little time to get things ready…

---

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://forum.sierrawireless.com/u/tobias)\
**Post date:** [May 13, 2013, 3:17pm UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/14 "2013-05-13T15:17:04Z")

</div>

Also, have you checked the traces so that the wip subscribe is actually returning OK?

---

<div class="post-metadata">

**Author:** ![prakash12345](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@prakash12345](https://forum.sierrawireless.com/u/prakash12345)\
**Post date:** [May 28, 2013, 12:55pm UTC](https://forum.sierrawireless.com/t/how-to-send-wip-command/6304/15 "2013-05-28T12:55:07Z")

</div>

Hi,  
I move the call to AT+WIPCFG=1 into another function, that time also i receive ERROR response only.

> [@](#):
>
> Also, have you checked the traces so that the wip subscribe is actually returning OK?

from the response which i received in the TRCE window only confirmed subscribtion is OK.  
is there any other way to check wip subscribe is actually returning OK?

guide me?

Thanks
