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
{
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:
[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.)
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.)
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
[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