In my last Blog post, I wrote about how I used Minicom to call phones through a Chinese PCMCIA Express CDMA modem called SEP 6000. As I could now receive and send calls, I only wanted to know how to send and read SMSs received.
By the way, the AT command for accepting voice call is AT$QCCAV which is a Qualcomm specific AT Command. AT+CHV will hang up the call.
I already had the text version of the commands from reading the srt.exe in Vim editor. So, all I needed to do was to find the commands for sending and receiving SMSs. First I googled around, until I reached two links, one in Chinese and one in Indonesian . The Indonesian link is very helpful.
After I fired up Minicom and connected to the phone, I send AT$MTCNT and got the reply 3,3. This means that there is 3 SMSs and I have read none. Now to read the SMS. First I had to do
AT$SMSTYPE
1
OK
I need to change the SMSTYPE to 0 if I want to read the SMS
AT$SMSTYPE=0
OK
Then to read the first SMS
AT$SMSMT1
20090522215437,403,4098,0,"SMS Message"
It tells me the date and time of the Message and gives me human readable SMS Message.
Now to send SMS Message,
AT$SMSMO00=Number,,4098,4,0,0,0,"Message"
Number is the number that I am sending the SMS to and Message is the SMS message.
After some time, I get
$SMSOACK0
which means that the SMS has been sent successfully.
Next blog, how to check the signal strength through Minicom.
how about "deleting SMS" sir??
ReplyDeletei can't delete sms from card memory..
would you like to help me.
Hi Antony,
ReplyDeleteYou can delete SMSs using the AT$DELMT = %d where %d is the SMS number that you want to delete. For example to delete the SMS numbered 1, use AT$DELMT = 1.
hi mr.rbn,
ReplyDeletethank you..
i have build an gateway application using CDMA and GSM.
JBU
antony
sir, have you use "huawei e156g" to send sms..?
ReplyDelete