When you type AT 13 (without the comma), the terminal will send 4 sequence of the ASCII equivalent (in decimal): 65 84 49 51. This is not what you want, right?
You want the number 13 be sent, not the 49 ('1') and 51 ('3').
Hope this helps,
Ioannis
When you type AT 13 (without the comma), the terminal will send 4 sequence of the ASCII equivalent (in decimal): 65 84 49 51. This is not what you want, right?
You want the number 13 be sent, not the 49 ('1') and 51 ('3').
Hope this helps,
Ioannis
"AT+CMGS="+4179xxxxxxx",#10,"Hello Roger",#26
or
"AT+CMGS="+4179xxxxxxx",$A,"Hello Roger",$1A
![]()
Warning I'm not a teacher
To add on Richard's post, if you insist on using the Serial Communicator, Help says this:
Parse Control Characters
When enabled, the parse control characters option enables you to send control characters in your message, using either a decimal or hexadecimal notation. For example, if you want to send hello world followed by a carriage return and line feed character, you would use hello world#13#10 for decimal, or hello world$D$A for hex. Only numbers in the range 0 to 255 will be converted. For example, sending the message letter #9712345 will be interpreted as letter a12345.
If the sequence of characters does not form a legal number, the sequence is interpreted as normal characters. For example, hello world#here I am. If you don't want characters to be interpreted as a control sequence, but rather send it as normal characters, then all you need to do is use the tilda symbol (~). For example, letter ~#9712345 would be sent as letter #9712345.
Ioannis
Thanks guys,
I knew it, I knew it!!!
I should have read the communicator's help again - did it a few years ago but forgot the "hash" story... my bad :-\
Thanks again...
Roger
Actually, the working syntax in the Serial Communicator is: AT+CMGS="+4179xxxxxxx"#10"Hello Roger"#26
Thanks Richard for your help
BTW, one of the AT commands manual I could find in the WEB says:
Using the SIM800L GSM module, according to the "AT data sheet" () I should have used a CR after the phone number. But by chance, I discovered that only a LF would work. Is it a typo or something wrong with my module, I don't know; fact is CR = NO, LF = YES!!!!
Roger
I never faced such a problem with SIMcom modules.
CR is the necessary for line or command termination. LF does not that...
Are absolutely sure you send out LF instead of CR?
Ioannis
Ioannis,
This is really strange, yes. It took me hours to find out that there was something strange.
But actually, to make it work, I use:
working with PIC: SEROUT PORTB.4,2,["AT+CMGS=",34,"+4179xxxxxx",34,10,"Hello Roger",26,10,13]
working with serial com: AT+CMGS="+4179xxxxxxx"#10"Hello Roger"#26
If I replace the 10 or #10 by a 13 or #13, it will not work anymore.
Nope, no idea what's wrong but "yes", I'm sure I use LF instead of CR.
Roger
Sure is sure so I just checked again.
See whats happens with CR instead of LF:
![]()
Roger
Do you have other terminal program to test? My suspicions fall on MCSP serial communicator.
Ioannis
You are welcome!
Ioannis
Bookmarks