adl_GPRS & WIP connection


#1

I need to instal tcp/ip connection for Q64 using OpenAT.

I fulfil operations:
1] init SIM with the help adl_simSubscribe(sim_handler,pin_code);,
wait to result:ADL_SIM_EVENT_FULL_INIT;
2] check value: NETWORK_HOME_REG: Ok;
3] define GPRS context:
// adl_gprsSetupParams_t gprs_setup;
// u8 ctx_id=1;
adl_gprsSetup (ctx_id,gprs_setup);
check value: ADL_GPRS_EVENT_SETUP_OK: Ok;
3] Then attach GPRS & activate context:
start: adl_gprsAct(ctx_id);
get value: ADL_GPRS_EVENT_ME_ATTACH…ADL_GPRS_EVENT_ACTIVATE_OK;
4] Init wip stack:
wip_netInit();
get_value: 0;

What to do further, to instal tcp/ip connection, using activated GPRS Context in calls:
wip_bearerOpen(…)
wip_bearerStart(…)
wip_TCPClientCreate(PEER_STRADDR,PEER_PORT…)

I will not understand how to use ctx_id ???