|
Question : No-kia 30 Sending SMS Problem
|
|
Same problem is found at Nokia Forums: http://discussion.forum.nokia.com/forum/showthread.php?s=&threadid=22473
Here's the scenario: I have created a hyperterminal+type program written in VB which uses the MSComm control, where I can input and execute AT commands inside a textbox. It can also output the results.
I've also includes a section wherein I can send SMS using the mobile.
I run the program, 1st executing "AT" + vbCrLF and it returns (it shows in the output) an AT+ OK and . I try to run some commands, AT+CMGL="ALL" and AT+CMGF=1 , and some basic SMS AT commands.
Problem is when I try to send AT+CMGS="", 145 it returns with either Framing Error, or Change in CTS. Then I turn off the power of the modem to reset it.
I also use hyperterminal to execute the commands. When executing AT+CMGS="",145 in HyperTerm, it returns with a Prompt ">". How do i catch this character? Or how to I output the message to be sent after ingoing the ">" character?
I give 250 points for the one who gets to answers this one, 500 if you've got me a code
|
Answer : No-kia 30 Sending SMS Problem
|
|
Dear merx,
As BigRat said it would be nice that you intialize the modem at slow speed of 9600,8,N,1 and set xon/Off . Once you start then start sending normal AT commands like ATE0, then intialize the setitngs AT+CMGF=1, then AT+CSCA="centreno" now once all these are set you would obtain OK in the form of string. Ihope you can directly catch them using the Events occuring inthe OnComm or else it would be better if you keep polling after you send each AT command.
Ithink once allthis is set you have to just read the string and compare it with ">"to check.
i have madethis injava if you want to have a look you can checkthe following link,.
http://www.experts-exchange.com/Programming/Wireless_Programming/GSM/Q_20612763.html regards,
vikas agarwal
|
|
|
|