I’m using OpenAT 3.10, M1306B modem and EDLIB for tcp/ip activity.
I’m making a logger interface using FMC in V24 mode on the serial side and sending / receiving over TCP/IP on the network side.
In the embedded application, I do the follwing:
-
Subscribing to SIM service
-
On ADL_SIM_EVENT_FULL_INIT event the edlib is initated and subscribing to the gprsService
-
Setting gprs connection params (APN, APNUN and APNPW) using ed_gprsSetConfig
-
Issuing the AT+CGATT using the adl_CreateCmd() function.
-
On the ATL_GPRS_EVENT_ME_ATTACH calling the ed_DialupConnectionStart() (which always respond with ED_ERR_NETWORK_KO)
-
After 3 - 6 min I get the ADL_GPRS_EVENT_ACTIVATE_OK and ED_OK_GPRS_SESSION_SET events and the line is up.
Why does it take 3 - 6 min before the line is up? Is the sequence described above wrong?