just like the thread’s title, I want to send an AT Command directly to my modem using the application.
i’m using VC 6.0 as the IDE. i know that there is a command adl_atCmdCreate (“the AT COmmand”, TRUE/FALSE, CallBackHandler, “events”,NULL);
i have used this command to send sms from my application. and is worked perfectly previously. but after i reinstall my firmware ,because i got my modem into an infinite loop, the adl_atCmdCreate is not working anymore. seems like any AT COmmand that i wrote is ignored by the modem.
here is the step that i did.
i want to send AT+CGATT = 1 to my modem using my application.
i wrote adl_atCmdCreate (“AT+CGATT = 1”, TRUE, (adl_atRspHandler_t)gprsAttachHandler, “*”,NULL);
i made the gprsAttachHandler function to send an unsolicited response “attachment successful” to my Hyper Terminal.
i downloaded the program using AT+WDWL
i ran the program.
and the program send a response “attachment successful” to my hyper terminal.
but when i check the AT+CGATT value, the value is still 0.
could someone give me a light about what happened?
FYI: the firmware on my modem before i had the infinite loop is v4.30, and after i reinstall the firmware it became v6.00