# Loading WIP plug in on Q2687

**URL:** <https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396>\
**Category:** Open AT\
**Created:** [June 14, 2007, 2:10pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396 "2007-06-14T14:10:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [June 14, 2007, 2:10pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/1 "2007-06-14T14:10:26Z")

</div>

Hello,

i have fulfilled the following steps in order to install WIP plug-in on wavecom Q2687 :

[color=orange]

1. Erase old file thanks to AT+WOPEN=0, AT+WOPEN=4 and AT+WOPEN=3
2. Send AT+WDWL and load WipSoft\_v202.wpb.dwl file using Hyperterminal (by XModem)
3. As soon as the file is loaded, reset the module by AT+CFUN=1
4. Start WIP function thanks to AT+WOPEN=1
5. Check WIP operating mode thanks to AT+WIPCFG=1 and AT+WIPCFG=3

Now, i have developed an OpenAT application which used wip library and i load it thanks to AT+WDWL.

But after application loaded and started with AT+WOPEN=1, i typed AT+WIPCFG=3 (or 1) and wavecom module returns an ERROR.

So, is it normal ? WIP plug-in is it properly loaded on Wavecom module ? should i loaded WIP plug-in each time i deployed a new OpenAT application on Wavecom module ?

Thanks you for your help

---

<div class="post-metadata">

**Author:** ![Wallace](https://avatars.discourse-cdn.com/v4/letter/w/b4bc9f/32.png) [@Wallace](https://forum.sierrawireless.com/u/Wallace)\
**Post date:** [June 14, 2007, 2:39pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/2 "2007-06-14T14:39:02Z")

</div>

Hi,

As I know the wipSoft is only for new Q24 series module or Q2406B with 657 or higher firmware. Wavecom has not made wipSoft program for Q26 series module.

Maybe you can check by entering AT+WOPEN=2, you will see two OpenAT versions; 1st : OpenAT version supported by this module, 2nd: OpenAT version of the downloaded file.

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [June 14, 2007, 3:20pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/3 "2007-06-14T15:20:10Z")

</div>

Hi,

[color=blue]at+wopen=2

+WOPEN: 2,“AT v04.20”,“AT v04.20”

Wavecom has gave to me Firmware version 6.62 for Q2687 and WIP stack 2.02 in a same e-mail. Does it is possible that they make a mistake ? i don’t think.

But, the main problem is that when i execute my OpenAT application the wip\_bearerOpen() function returns WIP\_BERR\_NO\_DEV (= the device does not exist).

So, how solve this problem :

- Does the WIP plug-in is properly installed on wavecom module (as describe above) ?
- Maybe different operations should be made before calling wip\_bearerOpen() function in my OpenAT application ? (i already use adl\_sim\_Subscribe() of course, but maybe others (AT+CGATT ?!) ?!)

Thanks you in advance for your help and guidelines

---

<div class="post-metadata">

**Author:** ![Wallace](https://avatars.discourse-cdn.com/v4/letter/w/b4bc9f/32.png) [@Wallace](https://forum.sierrawireless.com/u/Wallace)\
**Post date:** [June 14, 2007, 3:29pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/4 "2007-06-14T15:29:10Z")

</div>

Sorry I really don’t know there is wipSoft for Q26 series. Nevertheless if you are downloading your own written and complied program to the module this will overwrite the wipSoft dwl file (wipSoft is actually an OpenAT program itself)

Before you call wip\_bearerOpen() have you called wip\_netInit( ) first ? If yes what is the return value then ?

---

<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:** [June 15, 2007, 6:18am UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/5 "2007-06-15T06:18:40Z")

</div>

WipSoft and the WIP plugin for use with ADL applications are not the same.

WipSoft is a standalone application, while the WIP plugin can be linked with your own application.

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [June 15, 2007, 8:23am UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/6 "2007-06-15T08:23:23Z")

</div>

Hello,

When i add wip\_Init() function just before wip\_bearerOpen(), the OpenAT compilation (in RTE mode) gives the following error :

Code :  
[color=blue]/\* Open Bearer and install our event handler \*/

```
Status = wip_netInit();
  
Status = wip_bearerOpen(&myBearer, GPRS_Bearer_Device, AL_GPRS_Bearer_Hdlr, NULL);

```

Compilation :  
[color=green]D:\Programmes\Wavecom-OpenAT\WorkSpace-OpenAT\LoadIde.bat -p wmmake -RTE  
Loading Open AT IDE…  
bash.exe: warning: could not find /tmp, please create!  
Done.  
Loading project settings…  
done.  
Updating GPRS.mak file from Software Common Settings…  
Done.  
Building mingw\_GPRS\_H project…

```
Launch a full library or binary process

```

* * *

## … Dependency graph is being built … …/out/mingw\_GPRS\_H.dep

… Build sources filtering rules for mingw\_GPRS\_H  
…/out/mingw\_GPRS\_H.flt

* * *

* * *

Get …/…/src/al\_gprs.c al\_gprs.c  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_global.h adl\_global.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/basic/wm\_types.h wm\_types.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/basic/wm\_stdio.h wm\_stdio.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/basic/wm\_remote.h wm\_remote.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/basic/wm\_list.h wm\_list.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/basic/wm\_snd.h wm\_snd.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_str.h adl\_str.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_port.h adl\_port.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_at.h adl\_at.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_traces.h adl\_traces.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_memory.h adl\_memory.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_error.h adl\_error.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_flash.h adl\_flash.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_gpio.h adl\_gpio.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_bus.h adl\_bus.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_fcm.h adl\_fcm.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_osa.h adl\_osa.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_AppliInit.h adl\_AppliInit.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_UnSoHandler.h adl\_UnSoHandler.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_RspHandler.h adl\_RspHandler.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_CmdHandler.h adl\_CmdHandler.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_CmdStackHandler.h adl\_CmdStackHandler.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_TimerHandler.h adl\_TimerHandler.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_sim.h adl\_sim.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_sms.h adl\_sms.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_call.h adl\_call.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_gprs.h adl\_gprs.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_safe.h adl\_safe.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_ad.h adl\_ad.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_rtc.h adl\_rtc.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_ctx.h adl\_ctx.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_msg.h adl\_msg.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_irq.h adl\_irq.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_sctu.h adl\_sctu.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_vs.h adl\_vs.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_sem.h adl\_sem.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_extint.h adl\_extint.h  
Get D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/itf/adl\_dac.h adl\_dac.h  
Get …/…/inc/al\_gprs.h al\_gprs.h  
Get D:/Programmes/Wavecom-OpenAT/Plug-ins/WIP/1.10.02/WIP/itf/wip\_bearer.h wip\_bearer.h  
Get D:/Programmes/Wavecom-OpenAT/Plug-ins/WIP/1.10.02/WIP/itf/wip\_net.h wip\_net.h  
Get D:/Programmes/Wavecom-OpenAT/Plug-ins/WIP/1.10.02/WIP/itf/wip\_inet.h wip\_inet.h  
Get D:/Programmes/Wavecom-OpenAT/Plug-ins/WIP/1.10.02/WIP/itf/wip\_http.h wip\_http.h  
Get D:/Programmes/Wavecom-OpenAT/Plug-ins/WIP/1.10.02/WIP/itf/wip\_file.h wip\_file.h  
Get D:/Programmes/Wavecom-OpenAT/Plug-ins/WIP/1.10.02/WIP/itf/wip\_channel.h wip\_channel.h  
Get …/…/inc/bl\_gprs.h bl\_gprs.h  
… Compiling al\_gprs.c

al\_gprs.c:137:21: warning: unknown escape sequence: ‘\040’  
al\_gprs.c:143:22: warning: unknown escape sequence: ‘\040’

* * *

Get …/…/src/appli.c appli.c  
… Compiling appli.c

* * *

Get …/…/src/bl\_gprs.c bl\_gprs.c  
… Compiling bl\_gprs.c

* * *

```
Copy all needed library and object files

```

## Make links D:/Programmes/Wavecom-OpenAT/OS/4.10.10/ADL/rte\_wmadl\_4.10.5.2.0.lib …/out/rte\_wmadl\_4.10.5.2.0.lib Make links D:/Programmes/Wavecom-OpenAT/Plug-ins/WIP/1.10.02/WIP/rte\_wmwip\_2.0.0.2.0.lib …/out/rte\_wmwip\_2.0.0.2.0.lib

… Link step in progress …

… Link mingw\_GPRS\_H.bin …

[color=red]make: \*\*\* [make\_single\_bin] Error 1  
rte\_wmwip\_2.0.0.2.0.lib(./rte/vc6/Release/st\_rand.obj)(.text[\_ngRandom]+0x25):U:\projet\gsmmi\in: undefined reference to `_allmul' rte_wmwip_2.0.0.2.0.lib(./rte/vc6/Release/st_rand.obj)(.text[_ngRandom]+0x33):U:\projet\gsmmi\in: undefined reference to`\_aullrem’[color=green]  
Done.  
Updating RTE kernel file…  
no generated DLL found…  
[wmmake error #1] Build error.]

If i comment “wip\_netInit()” in my code the compilation (in RTE mode) is Ok. What is this error (in red) ? (in my project i include “wip\_net.h” librairy)

In Target Mode the compilation is Ok. But, i wish to use in RTE Mode for debugging.

Regards

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [June 18, 2007, 2:13pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/7 "2007-06-18T14:13:31Z")

</div>

Hello,

The problem is already known here :

[wavecom.com/modules/movie/sc … php?t=1209](http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?t=1209)

So, thank for your help.

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [June 19, 2007, 1:45pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/8 "2007-06-19T13:45:14Z")

</div>

Hello,

I come back because something is wrong with this plug in internet and me !

1. 
  - If i understand properly, The WIPSoft is only an OpenAT application that Wavecom provides to us in order to introduce HTTP and IP connection ? That’s right or wrong ? because it’s not very clear…

2. 
  - So, if WIPsoft is only an OpenAT application, what i have to install on my Q2687 in order to handle WIP and HTTP library. (as wip\_HTTP\_ClientCreateOpts(…)) ? there is something to install ? or it’s already included in my firmware version ?

I currently have the OpenAT OS version : [color=orange]662\_09gg.Q2687H 1945024 042307 12:41  
My Module is : [color=orange]Q2687  
My Open AT version :[color=orange] 4.11  
My WIPSoft version : [color=orange]WIP Soft v202 on Open AT OS v420

1. 
  - Independently of the previous points, i developped a small program which tries to establish and send an HTTP request. when WIP\_BEV\_IP\_CONNECTED event is sent the following code is executed on my module :

[color=blue]…  
wip\_channel\_t HTTPCom;  
…

case WIP\_BEV\_IP\_CONNECTED :  
// IP Communciation Ready - we can start IP application from here…  
// setup HTTP session

HTTPCom = wip\_HTTPClientCreateOpts(NULL, NULL, WIP\_COPT\_HTTP\_HEADER, “User-Agent”, “WIP-HTTP/Client/1.0”, WIP\_COPT\_END);

```
     if(HTTPCom != NULL){
        AL_GPRS_SystemOut("HTTPCom established...\r");    
     }else{
        AL_GPRS_SystemOut("Init HTTP Communication failed\r");        
     }   
     break;

```

But, HTTPCom is always equals to [color=violet]NULL.

Do i forgot a parameter in wip\_HTTPClientCreateOpts ? how can i know what’s wrong with this method ? Maybe it is due to the two first questions ?

Thank you in advance for your help, time and guidelines 😉 !

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [June 20, 2007, 8:54am UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/9 "2007-06-20T08:54:02Z")

</div>

Nobody has already used HTTP client ?! someone can help me ?! (Mainly for the third question)

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [June 20, 2007, 2:28pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/10 "2007-06-20T14:28:08Z")

</div>

i have tried this :

[color=blue]wip\_httpHeader\_t http\_struct[4];  
wip\_channel\_t HTTPCom;

…

```
switch(event){
    
 case WIP_BEV_IP_CONNECTED :
 
    http_struct[0].name = "User-Agent";
    http_struct[0].value = "WIP-HTTP-Client/1.0";
    http_struct[1].name = "Content-Language";
    http_struct[1].value = "en-US";
    http_struct[2].name = "Content-Type";
    http_struct[2].value = "application/x-www-form-urlencoded";
    http_struct[3].name = NULL;
    http_struct[3].value = NULL;
    
    HTTPCom = wip_HTTPClientCreateOpts(NULL, NULL, WIP_COPT_HTTP_METHOD, WIP_HTTP_METHOD_POST, WIP_COPT_HTTP_HEADER_LIST, &http_struct, WIP_COPT_END);

     if(HTTPCom != NULL){
        AL_GPRS_SystemOut("AL_GPRS_Bearer_Hdlr : HTTPCom established...\r");
     }else{
        AL_GPRS_SystemOut("AL_GPRS_Bearer_Hdlr : Init HTTP Communication failed\r");
     }
     break;

```

…  
}

But, HTTPCom always equals to [color=violet]NULL !!!

---

<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:** [June 21, 2007, 6:08am UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/11 "2007-06-21T06:08:57Z")

</div>

You may have to unlock the Internet features for HTTP to work.

Check in the AT manual how AT+WCFM works so you can check it on your own. If Internet Plug In is not enabled, you need to contact your distributor for a key to unlock.

Or you can write your own HTTP service if you have the know-how.

You can still connect to servers with TCP or UDP if you want to, but the extra features like HTTP, FTP, etc. that do all the hard work for you is not enabled by default.

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [June 25, 2007, 9:53am UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/12 "2007-06-25T09:53:52Z")

</div>

Hello,

Thank you tobias for your reply

After several phone call and e-mail to our supplier in order to solve the problem, it appears that our module has NO IMEI and NO key activation for internet plug-in !

i’m disappointed about our supplier because without your help, the problem would be unsolved !!!

So, i wait an activation key. i will tell you if all it’s ok !

Best regards.

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [June 27, 2007, 10:19am UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/13 "2007-06-27T10:19:29Z")

</div>

Hy,

With an IMEI and an activation key, it runs much better ! But, problem arises also quickly !

my HTTPClientCreate function is OK. Now, when wip\_getFileOpts() is executed, after few seconds WIP\_CEV\_ERROR event is sent on my BL\_GPRS\_HTTP\_Handler. (“This event is sent when a socket error has occured”).

```auto
wip_bearer_t myBearer;
wip_channel_t HTTPCom;

...

case WIP_BEV_IP_CONNECTED :
     
       // setup HTTP session
         
            HTTPCom = wip_HTTPClientCreateOpts(BL_GPRS_HTTP_Hdlr, NULL, WIP_COPT_HTTP_HEADER, "User-Agent", "WIP-HTTP/Client/1.0", WIP_COPT_END);

         if(HTTPCom != NULL){

                wip_getFileOpts(HTTPCom, "http:\\www.wavecom.com", BL_GPRS_HTTP_Hdlr, NULL, WIP_COPT_HTTP_HEADER, "Accept", "text/html", WIP_COPT_END);
       
         }else{
                wip_close(HTTPCom);
                wip_bearerStop(myBearer);
         }
         break;
```

The WIp\_development guidelines doen’st explain what could cause this error (page 184) ! Maybe, anybody knows what’s wrong ? or What i missed ?

Thanks in advance.

regards

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [June 28, 2007, 2:45pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/14 "2007-06-28T14:45:14Z")

</div>

Noboby implements HTTP library ?!

---

<div class="post-metadata">

**Author:** ![Wallace](https://avatars.discourse-cdn.com/v4/letter/w/b4bc9f/32.png) [@Wallace](https://forum.sierrawireless.com/u/Wallace)\
**Post date:** [June 30, 2007, 12:40pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/15 "2007-06-30T12:40:59Z")

</div>

> [@afaurep](#):
>
> Noboby implements HTTP library ?!

I used http APIs to download file, so far no problem. Just follow the sample code in WIP document…

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [July 2, 2007, 9:05am UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/16 "2007-07-02T09:05:17Z")

</div>

Yes, i also follow it. But, when are you call “MyFunction” in the WIP document sample. what are you doing before ?

do you set sim card ? (of course)  
do you set AT+cgatt=1 ? (i do)  
do you use wip\_netInit() ? (i do)  
wip\_bearerOpen() ? (i do)  
wip\_bearerSetOpts() ? (i do)  
wip\_bearerStart() ? (i do)

in my bearer handler when WIP\_BEV\_IP\_CONNECTED event is sent, i start http com with http\_clientCreateOpts() (see my last post above) !

So, i’m lost 👿 ! what i forgot ! i have no idea !

Last week i haven’t IMEI and activation key on my Q2687… now yes… need i other things ?

---

<div class="post-metadata">

**Author:** ![fft](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@fft](https://forum.sierrawireless.com/u/fft)\
**Post date:** [July 3, 2007, 2:36pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/17 "2007-07-03T14:36:42Z")

</div>

> “http:\www.wavecom.com”

Replacing backslashes with proper slashes might help.

As for your error event. there’s a field ev-\>content.error.errnum which contains an informative error number; having this error number would help diagnosing what went wrong.

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [July 5, 2007, 12:16pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/18 "2007-07-05T12:16:35Z")

</div>

Thank you for your help fft !

I’m working alone on my Q2687 and it’s always helpful to have an outside glance.

In fact, i made a mistake with slashes. i replaced it and now it’s work fine.

i have just another question. I use an HTTP post method to forward data on my server. In my BL\_GPRS\_HTTP\_Hdlr when WIP\_CEV\_WRITE event is sent, i use wip\_write() function to set my HTTP body request.  
But, the wip\_write() function returns always WIP\_CERR\_CSTATE.

```auto
void BL_GPRS_HTTP_Hdlr(wip_event_t *ev, void *ctx){
   wip_channel_t ch;
    s32 ret;
    u8 u8Index;
    ch = ev->channel;
    int Status, len, tmplen;
    ascii tmpbuf[256];

...
        case WIP_CEV_OPEN :
           break;

...
        case WIP_CEV_WRITE :             
            wm_sprintf( tmpbuf, "IMEI=XXXXXXXXXX&Ref=0\r\n");
            Status = wip_write(ch, tmpbuf, sizeof(tmpbuf));  
            
            if(Status = WIP_CERR_CSTATE){
               AL_GPRS_SystemOut("\rAL_GPRS_Bearer_Hdlr : wip_write = WIP_CERR_CSTATE\r");
            }else if(Status = WIP_CERR_NOT_SUPPORTED){
                AL_GPRS_SystemOut("\rAL_GPRS_Bearer_Hdlr : wip_write = WIP_CERR_NOT_SUPPORTED\r");
            }else{
               AL_GPRS_SystemOut("\rAL_GPRS_Bearer_Hdlr : wip_write = default\r");
            }
        
            Status = wip_shutdown(ch, FALSE, TRUE);
            break;

...

}
```

But, The HTTP request is sent properly, receive on server side and HTTP response is properly received on my Q2687.

So, i would like to understand why wip\_write() function always returns WIP\_CERR\_CSTATE whereas HTTP request work fine ?!

Thanks in advance for your explanation.

---

<div class="post-metadata">

**Author:** ![colin-tfe](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@colin-tfe](https://forum.sierrawireless.com/u/colin-tfe)\
**Post date:** [July 5, 2007, 12:28pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/19 "2007-07-05T12:28:34Z")

</div>

Hi !

You’ve made a little error in the if statement :

> [@afaurep](#):
>
> ```auto
> case WIP_CEV_WRITE :             
> wm_sprintf( tmpbuf, "IMEI=XXXXXXXXXX&Ref=0\r\n");
> Status = wip_write(ch, tmpbuf, sizeof(tmpbuf));  
>             
> if(Status = WIP_CERR_CSTATE){
> AL_GPRS_SystemOut("\rAL_GPRS_Bearer_Hdlr : wip_write = WIP_CERR_CSTATE\r");
> }else if(Status = WIP_CERR_NOT_SUPPORTED){
> AL_GPRS_SystemOut("\rAL_GPRS_Bearer_Hdlr : wip_write = WIP_CERR_NOT_SUPPORTED\r");
> }else{
> AL_GPRS_SystemOut("\rAL_GPRS_Bearer_Hdlr : wip_write = default\r");
> }
> ```

Instead of comparison operator “==” you use affectation operator “=” : if(Status [color=red][size=150]=[/size] WIP\_CERR\_CSTATE)

---

<div class="post-metadata">

**Author:** ![afaurep](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@afaurep](https://forum.sierrawireless.com/u/afaurep)\
**Post date:** [July 5, 2007, 12:33pm UTC](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396/20 "2007-07-05T12:33:19Z")

</div>

Hi,

ok ok ! i’m really stupid ! lol ! 😉  
i had not seen this stupid error !

Thank you for your help ! 😆

[Next page](https://forum.sierrawireless.com/t/loading-wip-plug-in-on-q2687/1396.md?page=2)
