WIP Create calls failing outright

We are using the following WIP calls that sometimes fails outright (returns NULL), other times they work:
wip_TCPClientCreateOpts
wip_pingCreate
wip_FTPCreateOpts

The wip_TCPClientCreateOpts and wip_pingCreate calls fail intermittently, but recovers after some time automatically.

The wip_FTPCreateOpts fails and seems to only recover after the unit has been rebooted, we have not tested this a lot though and it might recover automatically after a while like the other two calls.

The unit’s GPRS is connected as I ran the CGREG and CGATT commands and got:
AT+CGREG?

+CGREG: 2,1,“02C8”,“DF21”

OK

AT+CGATT?

+CGATT: 1

OK

How can we obtain more information about why these calls fail? Is there a way to get WIP specific debug information and/or traces?

Hi,

To get wipspecific debug information or traces :

Define following in your application :

int returnvalue = wip_netInitOpts(WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_TRACE, WIP_NET_OPT_DEBUG_PKT_MAXLEN, 1500,WIP_NET_OPT_END);

And, set WIP_BOPT_DEBUG_PKT as TRUE in BearerSetOpts() API as following:

s8 bearerRet = wip_bearerSetOpts ( br,
WIP_BOPT_GPRS_APN, GPRS_APN,
WIP_BOPT_LOGIN, GPRS_USER,
WIP_BOPT_PASSWORD, GPRS_PASSWORD,
WIP_BOPT_DEBUG_PKT,TRUE, WIP_BOPT_END );