# Repeating GPRS Connection

**URL:** <https://forum.sierrawireless.com/t/repeating-gprs-connection/4759>\
**Category:** Open AT\
**Created:** [November 25, 2010, 6:35pm UTC](https://forum.sierrawireless.com/t/repeating-gprs-connection/4759 "2010-11-25T18:35:32Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![svider](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@svider](https://forum.sierrawireless.com/u/svider)\
**Post date:** [November 25, 2010, 6:35pm UTC](https://forum.sierrawireless.com/t/repeating-gprs-connection/4759/1 "2010-11-25T18:35:32Z")

</div>

Hello,

I’m using a sample of WIP TCP/IP. Everything works fine but i would like to loop connection to put some info to website peridolicly.

I was trying to do it in many ways.

I’ve used a adl\_tmrSubscribe to call external function which body contains

```auto
{
    int r;

  /* Initialize the stack */
  r = wip_netInitOpts( 
      WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_UART1, /* WIP traces on UART1 */
      //WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_UART2,
      //WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_TRACE,
      WIP_NET_OPT_END);

  /* Depending on the activated flag, take the proper config */
  cfg_gprs( appli_entry_point);
}
```

The result:

```auto
[GPRS]: initialized.
[GSM]: initialized.
[UART1]: initialized.
[UART2]: initialized.
[]: initialized.
```

and nothing else happens.

I’ve also tried to put cfg\_gprs( appli\_entry\_point) in loop  
in two ways  
1.)

```auto
int r;
 r = wip_netInitOpts( 
      WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_UART1, /* WIP traces on UART1 */
      //WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_UART2,
      //WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_TRACE,
      WIP_NET_OPT_END);

  /* Depending on the activated flag, take the proper config */
for(licznik=0; licznik<=2; licznik++)
  {
    cfg_gprs( appli_entry_point);
  }
```

and 2.)

```auto
int r;
int licznik;

for(licznik=0; licznik<=2; licznik++)
  {
 r = wip_netInitOpts( 
      WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_UART1, /* WIP traces on UART1 */
      //WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_UART2,
      //WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_TRACE,
      WIP_NET_OPT_END);

  /* Depending on the activated flag, take the proper config */

    cfg_gprs( appli_entry_point);
  }
```

both with result

```auto
[GPRS]: initialized.
[GSM]: initialized.
[UART1]: initialized.
[UART2]: initialized.
[]: initialized.

+WIND: 1

+WIND: 7

+WIND: 4
[GPRS]: open: -> DISCONNECTED
[GPRS]: start: -> CONNECTING
ASSERTION FAILURE line 115: 0 == (r)
```

I’m pretty stucked in here. Are fimiliar with this issue? Hope you are 😃

Best redgards,  
Lukasz

---

_[View the full topic](https://forum.sierrawireless.com/t/repeating-gprs-connection/4759)._
