Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I am trying to send SMS through p300u edge modem but it is showing an error +CMS Error :518.
Here I am changing the message format into text mode by giving the command AT+CMGF=1, and it is giving OK response.
But while reading the SMS it is showing in number format and I am unable to read and send SMS by using this modem. please help me out, its my project work, urgent.
Posted
Updated 31-May-10 21:29pm
v4

1 solution

sinaku08 wrote:
it is showing an error "+cms error :518".


Error code 518 means Invalid parameter. Check the command that you are using. You must have supplied some invalid parameters.

sinaku08 wrote:
here Iam changing the message format into text mode by giving the command AT+CMGF=1, It is giving OK response . but while reading the sms it is showing in number format.


You said you got an OK response. That should mean text mode is supported. Anyways I would suggest you to check which mode(s) are supported by your modem.
Check using this command: AT+CMGF=?
If a response, +CMGF: (0,1) is received, means both Text mode and PDU mode is supported. 0 - PDU mode, 1 - Text mode
If Text mode is also supported, you are doing something wrong.

sinaku08 wrote:
please help me out,its my project work


I am providing you with a couple of links on CP which would help a lot in developing this project. I would suggest you to read the full article before using the code.
Send and Read SMS through GSM Modem using AT Commands[^]
How To Send and Receive SMS using GSM Modem[^]

Hope this helps!
Let me know if you have any queries.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900