Discussion in "Embedded GSM Development" started by    Elby    Oct 7, 2013.
Mon Oct 07 2013, 08:12 pm
#1
Hi,

I'm using the Arduino GSM R3 Shield over an Arduino UNO R3 to send and receive SMS message from a Max MSP application. I'm using an hybrid code from the two examples for sending and receiving SMS it works well.

http://arduino.cc/en/Reference/GSM

My problem is when I'm sending SMS with accent character (I'm form Quebec, Canada, we all speak french in here) the text is displayed as HEX value of the ASCII character instead of the ASCII value itself, with 00 between each character. It does this only when there is certain character in the sentence like ê and ç, but not with é.

Here is a print of the serial console for a test without and with accents :

Without accent :

message
test without accents

With accents :

message
00740065007300740020007700690074006800200061006300630065006E007400730020003A002000E9002000E0002000E8002000F4

The sentence here is this one : "test with accents : é à è ô"

00E9 = é

00E0 = à

00E8 = è

00F4 = ô

(http://www.ascii-code.com/)

In the same way, when I want to send a sentence with some accent character, it just doesn't works. I tried all the Charater Set of the M10 (AT+CSCS) with the same problem every time.

Can someone help me with this problem? I would like the shield to send my the correct ASCII character in the same format all the time, and I would want it to be able to send all the different characters in the same format too.

Regards
Tue Oct 08 2013, 12:05 pm
#2
Hi Elby ,

Please follow the below Sequence , I think your problem will be sorted out .


AT+CMGF=1<CR>
AT+CSMP=17,167,0,241
AT+CSCS="IRA"



Tue Oct 08 2013, 03:37 pm
#3
@Elby, Q_FAE is actually person from Quectel itself. Please try whatever he suggested and let us know if it worked for you or not.
Tue Oct 08 2013, 05:47 pm
#4
Hi,

Tanks for the help, I'm trying it tonight and let you know if it solved my problem.
Wed Oct 09 2013, 06:31 am
#5
Hi,


I add the sequence in my code but I have the same problem. I also noticed that if the message with accents is too long, I don't receive it in totality. Here is a print of my console with debug mode on.

Without accent :

AT+CMGL="REC UNREAD",1%13%
85 91>
%13%%10%OK%13%%10%
AT+CMGL="REC UNREAD",1%13%
91 97>
%13%%10%OK%13%%10%
AT+CMGL="REC UNREAD",1%13%
97 120>
%13%%10%OK%13%%10%%13%%10%+CMTI: "SM",1%13%%10%
AT+CMGL="REC UNREAD",1%13%
120 89>
%13%%10%+CMGL: 1,"REC UNREAD","23333","","2013/10/08 20:50:26-16"%13%%10%Test et oui, encore un test!%13%%10%%13%%10%OK%13%%10%
separator
numero
23333
separator
message
Test et oui, encore un test!AT+CMGD=1%13%
89 95>
%13%%10%OK%13%%10%
AT+CMGL="REC UNREAD",1%13%
95 101>
%13%%10%OK%13%%10%
AT+CMGL="REC UNREAD",1%13%
101 107>
%13%%10%OK%13%%10%


With accent :

AT+CMGL="REC UNREAD",1%13%
25 31>
%13%%10%OK%13%%10%
AT+CMGL="REC UNREAD",1%13%
31 54>
%13%%10%OK%13%%10%%13%%10%+CMTI: "SM",1%13%%10%
AT+CMGL="REC UNREAD",1%13%
54 50>
%13%%10%+CMGL: 1,"REC UNREAD","23333","","2013/10/08 20:52:07-16"%13%%10%002000E00020006300F4007400E90020006400650020006C002700EA0074007
separator
numero
23333
separator
message
002000E00020006300F4007400E90020006400650020006C002700EA0074007200650021AT+CMGD=1%13%
67 73>
%13%%10%OK%13%%10%
AT+CMGL="REC UNREAD",1%13%
73 79>
%13%%10%OK%13%%10%
AT+CMGL="REC UNREAD",1%13%
79 85>
%13%%10%OK%13%%10%


You can also find more information in a thread I posted on the Arduino Forum :

http://forum.arduino.cc/index.php?PHPSESSID=csa4ms39mvqvflhrvtg1iuktq7&topic=191123.msg1412789#msg1412789

Other ideas on what could cause this problem?

Wed Oct 09 2013, 12:55 pm
#6

Hi ,

I can not see the initialization command in your above log .

Please do the following settings & save it in initialization commands once you restart the module .

AT+CMGF = 1 // setting the module in txt mode
AT+CSCS="IRA"
AT+CSMP

AT&W to save all this .

If problem still persist then you can send

ATI command to module & provide me the F/W version of module which you will get from this command .

Please provide the SMS which you need to send & receive at module end . I will test it at my side & provide you the log .

If you can provide your email id & location place , I can ask some local FAE to support you .
Wed Oct 09 2013, 09:17 pm
#7
Hi,

Sorry, I didn't post the initialization log. Here it is :

SMS Messages Receiver
AT%13%
0 6>%13%%10%OK%13%%10%
AT+CGREG?%13%
6 27>%13%%10%+CGREG: 0,1%13%%10%%13%%10%OK%13%%10%
AT+IFC=1,1%13%
27 33>%13%%10%OK%13%%10%
AT+CMGF=1%13%
33 39>%13%%10%OK%13%%10%
AT+CLIP=1%13%
39 45>%13%%10%OK%13%%10%
ATE0%13%
45 51>%13%%10%OK%13%%10%
AT+COLP=1%13%
51 57>%13%%10%OK%13%%10%
AT+CMGF=1%13%AT+CSMP=17,167,0,241%13%AT+CSCS="IRA"%13%GSM initialized
Waiting for messages


Here is the ATI informations :

Quectel_Ltd
Quectel_M10
Revision: M10ER01A06W32

By SMS you mean my Phone number?
1-418-524-6454

[email protected]
I'm in Quebec City, Quebec, Canada

I'm also in contact with Ricky Guo form Quectel in China, if he tells me something important I will write in here.

Thanks a lot for the help.
Thu Oct 10 2013, 01:01 pm
#8
By SMS he meant the text message you're sending (with accent). I will ask him to get you nearby help.
Thu Oct 10 2013, 08:52 pm
#9
Hi,

Here is a SMS that goes wrong : "à côté de l'être!".

I did some more test yesterday with different phones and it does not behave the same way. This bug happen when I'm receiving a SMS from an iPhone or from Skype, but not from an Android or a Blackberry. With these two, the SMS is displayed correctly, but some accents are removed. Exemple :

"à côté de l'être!" is received "à coté de l'etre!"

It is a very less important problem, but a problem too.

Regards
Sat Oct 12 2013, 01:01 am
#10
Hi,

Ricky is very Good FAE, looking for Overseas market of Quectel , definitely he will sort out your issue .

I think in this scenario taking catcher log & sharing with R & D will help more to understand that what is going wrong in case of iphone & Skype msg .
you can ask ricky about getting the catcher log .

I will also discuss this with him .

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am
ArnoldDiant
Fri Apr 26 2024, 03:53 am
RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am