hi davidgoth,
thanks again for your feedback. here we go:
for both scenarios i am using the code examples from arduino 1.0.5 (SendSMS / ReceiveSMS) and both SIM cards (sending / receiving) are registered in Germany with t-mobile.
scenario SendSMS (arduino sending sms to my mobile):
- i changed the line for #define PINNUMBER "" and entered my 4 digit pin
- i opened serial monitor with 9600 baud and both NL&CR
- here is the results for 7 tests that i ran ( --> )
1 --> empty SMS
a --> empty SMS
abc --> ?
test --> ??
abc abc --> ???
12 12 --> ??
12 --> ?
then i changed the parameter to debugging and here is the output in serial monitor for the last example with sending string "12" (i modified the output to mask my pin no. and mobile no.)
SMSMS Messages Sender
AT%13%
0 9>AT%13%%13%%10%OK%13%%10%
AT+CPIN=xxxx%13%
9 44>AT+CPIN=xxxx%13%%13%%10%+CPIN: READY%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
44 75>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
75 106>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
106 9>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
23 54>AT+CGREG?%13%%13%%10%+CGREG: 0,1%13%%10%%13%%10%OK%13%%10%
AT+IFC=1,1%13%
54 71>AT+IFC=1,1%13%%13%%10%OK%13%%10%
AT+CMGF=1%13%
71 87>AT+CMGF=1%13%%13%%10%OK%13%%10%
AT+CLIP=1%13%
87 103>AT+CLIP=1%13%%13%%10%OK%13%%10%
ATE0%13%
103 114>ATE0%13%%13%%10%OK%13%%10%
AT+COLP=1%13%
114 120>%13%%10%OK%13%%10%
GSM initialized
Enter a mobile number: 0151xxxxxxxx
Now, enter SMS content: SENDING
Message:
12
AT+CMGS="0151xxxxxxxx"%13%
120 124>%13%%10%>
12%26%%13%
120 16>%13%%10%> %13%%10%+CMGS: 105%13%%10%%13%%10%OK%13%%10%
COMPLETE!
Enter a mobile number:
scenario b (arduino receiving sms from my mobile):
- i changed the line for #define PINNUMBER "" and entered my 4 digit pin
- i opened serial monitor with 9600 baud and both NL&CR
- here is the results for tests that i ran ( --> )
12 --> 12
abc --> abc
1 --> 1
test --> test
test was successful for example SMSreceive
here is the debugging result for the test with string "test"
SMS Messages Receiver
AT%13%
0 9>AT%13%%13%%10%OK%13%%10%
AT+CPIN=xxxx%13%
9 44>AT+CPIN=xxxx%13%%13%%10%+CPIN: READY%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
44 75>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
75 106>AT+CGREG?%13%%13%%10%+CGREG: 0,2%13%%10%%13%%10%OK%13%%10%
AT+CGREG?%13%
106 9>AT+CGREG?%13%%13%%10%+CGREG: 0,1%13%%10%%13%%10%OK%13%%10%
AT+IFC=1,1%13%
9 40>AT+IFC=1,1%13%%13%%10%OK%13%%10%%13%%10%Call Ready%13%%10%
AT+CMGF=1%13%
40 56>AT+CMGF=1%13%%13%%10%OK%13%%10%
AT+CLIP=1%13%
56 72>AT+CLIP=1%13%%13%%10%OK%13%%10%
ATE0%13%
72 83>ATE0%13%%13%%10%OK%13%%10%
AT+COLP=1%13%
83 89>%13%%10%OK%13%%10%
GSM initialized
Waiting for messages
AT+CMGL="REC UNREAD",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%
50 4>%13%%10%+CMGL: 1,"REC UNREAD","+49151xxxxxxxx","","2013/06/05 02:53:27+08"%13%%10%test%13%%10%%13%%10%OK%13%%10%
Message received from:
+49151xxxxxxxx
test
END OF MESSAGE
AT+CMGD=1%13%
4 10>%13%%10%OK%13%%10%
MESSAGE DELETED
AT+CMGL="REC UNREAD",1%13%
10 16>%13%%10%OK%13%%10%
thanks a lot in advance!
musterstrasse