And when I download the code into Fastrack. it gives out responses as follow:
IRQ Measure Application: Main
Vao ham AT command
+CUSD: 2,“QUY KHACH CO 50125 DONG TRONG TAI KHOAN CHINH VA 49486 DONG TRONG TAI
KHOAN THUONG. THOI HAN SU DUNG DEN 03/12/2009”,15
It seems not to invoke the s32 atRspHandler(adl_atResponse_t *paras) functions. Is there any thing wrong?
Please help me.
Hi, I followed what you said: using adl_atUnSoSubscribe("+CUSD: ", atUnSoHandler) function and the result was great.
I did get the response string in the atUnSoHandler.
Let me expand on that, lest it be taken the wrong way:
With AT commands (all AT commands - not just Wavecom and not just GSM), “response” is the general term for anything that comes from the modem when in command mode.
These responses can be either “solicited” or “un-solicited”
Solicited responses come as a direct reply to entering a command; eg, the OK or ERROR;
un-solicited responses are not in direct reply to entering a command; they are caused by effectively asynchronous events; eg +RING:
It is important to understand this distinction so that they can be appropriately handled; in particular, in Open-AT, they need different API calls in order to “catch” them.
Since this distinction was the key to phamduong537’s problem, the intention of my post was to confirm that he had fully understood the point - it wasn’t a sarcastic comment, and it wasn’t directed to fer.caballero
My apologies if it appeared otherwise.