I have a different problem with sim subsribce function. In my code, I subscribed the sim.And I called the gprs connection functions when ADL_SIM_STATE_FULL_INIT is received.
But the sim call back function is not called when I execute program first time. It works fine when I restart code 2 or 3 time.
I have a problem with sim event handler. In my code, I create an at command and use it to initialise GPRS and all. Well, I think the sim event is received well before I type my at command on the Terminal emulator to initialise GPRS. So the API hangs just after adl_simSubscribe and does not receive the sim event to continue execution until I remove the sim card from its socket. Its immediately receives the sim event and continues and connects to the apn.
I am looking for assistance from anyone who has encountered this perhaps a way to re initialise the sim card without removing it from its slot.