CMS Error 518 while sending messages using AT Commands - gsm

I have connected a gsm modem to my computer. I am trying to read sms from gsm modem and send sms to other mobile numbers using AT commands. When I type
at+cmgl ="all"
It lists all the messages from SIM card. But the messages displyed in hyper terminal are like this..
+CMGL: 1,"REC READ","004C004D002D00560065006E005300650063",,"11/12/15,16:10:04+2
2"
0041007400200063006C006F00730065002C002000530065006E0073006500780020003100350038
003300360028002D003400350029002C0020004E0069006600740079002000340037003400360028
002D0031003700290020006C006500640020006200790020006D006500740061006C007300200028
0053007400650072006C006900740065002D00340025002900200026002000630061007000200067
006F006F0064007300200028004200480045004C002D003300250029002E0020004500750072006F
007000650061006E0020006D006B00740073002000740072006100640069006E0067002B00760065
002E00200044006F00770020006600750074002B0037002E002000560045004E0054005500520041
+CMGL: 2,"REC READ","00540041002D0049004E004E005300450054",,"12/03/24,20:32:04+2
2"
00480069002100200059006F00750072002000640065007600690063006500200073007500700070
006F0072007400730020004D004D0053002C005400410054004100200044006F0063006F006D006F
0020004400690076006500200049006E00200061006E006400200047005000520053002E00530061
0076006500200066007200650065002000730065007400740069006E0067007300200079006F0075
0020006100720065002000610062006F0075007400200074006F0020007200650063006500690076
006500200061006E006400200065006E006A006F00790020006F00750072002000560061006C0075
0065002000410064006400650064002000730065007200760069006300650073
While the messages in sim cad are in simple text format. How can I see the messages from sim card in text format in Hyper terminal?
Also when I try to send the message from hyper terminal using command
at+cmgs="phone number"
It gives me error saying
+CMS ERROR: 518
Can Anybody tell me what's the problem?
Note: I have set sms service centre no.

Seems your message format is not set to Text format and is likely in PDU mode. You should give AT+CMGF=1 to set to text format.
Also you are getting +CMS ERROR: 518 means that your storage type is invalid. Set your storage appropriately

Related

SIM800L incoming sms stuck in memory

I hit a deadened trying to receive sms on the SIM800L module with Arduino Uno.
I'm using the Receive sms sketch on the IDE, the module does not receive incoming messages and just keeps displaying one sms over and over, this message is the first one I sent to the module, and somehow it's stuck in memory. the sms.flush() method does't erase the message, how do I go about clearing memory to create space for incoming messages ? Thanks
The SIM800L has a vendor specific command to delete all messages, this may clear up enough space for it to receive additional messages.
Run AT+CMGDA=? to find out which mode you need to use. The modem responds with (1-6) or lists the responses in text mode.
Then run AT+CMGDA=6 if the modem responded with numbers, or AT+CMGDA="DEL ALL".
To avoid overflowing the storage, using AT+CNMI=2,2 you can tell the modem to always forward incoming messages to the terminal and avoid storing them in the SIM card or modem memory.

"short message transfer rejected" m590 device

Im trying to get a M590 circuit to send a GSM/GPRS SMS,
I have communication with the cirtuit using serial communication using PUTTY.exe
on power on the M590 starts up, giving the following printout:
MODEM: STARTUP
+PBREADY
It has registered to the GSM network since
+AT+CSQ ;given as input gives
22,2
+AT+CREG?
+CREG: 0,1
to sen an SMS i enter the following (Ok is the response recieved)
+AT+CMGF=1 ;ie set mode text
OK
+AT+CSCS="GSM" ;ie GSM coding of chars
OK
+AT+CMGS="+46739550618" ; the sending command (my phone ;)
"hii" ctrl-z
... it goes away a while
ERROR
Instead of ctrl z, you can try : push alt then 026 and then release alt. It did work for me.

How to send a non-character byte through terminal program

I would like to know if there is a way to send a non-character byte through a terminal emulator. Bytes with values from 0 to 127 are (mostly) represented by characters on a keyboard (example: a, b,c...A,B,C.. 1,2,3..!,#,#..). But how can I type and send something that corresponds to a byte with value 137 for instance? I would like to send these types of "non-characters" over a serial connection to an arduino using a terminal program. I am currently using teraterm, but other terminal emulators might be fine too. BTW, the arduino code for receiving these bytes is working fine.
You can use send the character that you want by using the Alt key.
Alt+137 will display the character ë. If you send that, the arduino will receive the appropriate byte.

ESP8266 Wifi Module - prints "ready" but not responding to AT commands

Just received my first ESP8266 wifi module with some excitement. However I've been unable to fully communicate with it. I have connected the module to my computer via a usb to serial cable and I'm power the module via a separate power supply (3.3v).
After powering the module up I receive the following information (via PuTTY or and Arduino serial monitor window):
[Vendor:www.ai-thinker.com Version:0.9.2.4]
ready
I have tried sending various AT commands e.g.
AT+RST
But I get no response. Using ctrl+m and ctrl+j in putty didn't help either.
Please see my youtube video if its helpful:
https://www.youtube.com/watch?v=RvasOuHuWDc
To get AT OK .
1.AT + PRESS ENTER + THEN CTRL +J WILL GIVE OK
2.Then Enter commands to execute
eg AT+GMR ->presss enter then ctrl+j
to get firmware
repeat step 1 for each command.
Make sure that you have putty or the Arduino serial console configured to send both a newline \n and a carriage return \r character. So AT+RST actually ends up being AT+RST\r\n. This took me a bit when I first received my ESP8266 modules. On the Arduino serial console this option is at the bottom of the window. I can see in your video you have it set to no line ending. Hopefully that does it for you.

Get error when try read sms with at command

I'm trying to use AT command for send/read the sms with nokia 5530 serial port on com6
I can connect and send sms correctly without any error and recipient get the message.
But the problem: I can't read any message and get "Error" nothing more !!!! check the below image for more info:
What is the problem and how can I read the sms?
Try using the AT+CNMI command before the AT+CMGL. It tells the device what to do with incoming messages.
try: AT+CNMI=1,2,0,0,0
Also, try this: AT+CMGL=? to see if the command is supported by your device. It should respond "OK" if it is. If not, it isn't supported.

Resources