Hi guys! i hope you can help me!!
I have a Arduino UNO and the Arduino GSM Shield. I want to SEND and READ a SMS with AT Commands ( I can not use the GSM library - i have a conflict with the WIRE.h library ).
So the sending of a SMS is not a problem. That works fine but i can't read SMS.
For example i want to check the List with -> AT+CMGL="ALL" the M10 Module starts to answer but i get only the half of the information what i could normal get. I tried different commands but i have no success.
It seems that i have a problem with my SoftSerial Port? Or am i wrong!! Please HELP!
Here is my Code:
#include <SoftwareSerial.h>
SoftwareSerial GSM(2,3);
String Command, Respond;
void setup()
{
Serial.begin(9600);
GSM.begin(9600);
}
void loop()
{
// From Serial Monitor - for the AT - Commands
if (Serial.available())
{
Command = "";
while (Serial.available())
{
Command = Serial.readString();
}
GSM.println(Command);
}
// Respond from the GSM Shield
if (GSM.available() > 0)
{
Respond = "";
while(GSM.available() > 0)
{
Respond = GSM.readString();
}
Serial.print("\nData: ");
Serial.print(Respond);
}
delay(1000);
}
And that is what i get from the Shield:
Data: AT+CMGL="ALL"
+CMGL: 1,"REC READ","+43xxxxxxxx80","","2015/09 <---hier is something missing?? OR not?
Data: AT+CMGR=1
+CMGR: "REC READ","+43xxxxxxxx80","","2015/09/20 19 <---hier is something missing?? OR not?
Data: AT+CSDH?
+CSDH: 0
OK
Data: AT+CSMP?
+CSMP: 17,71,0,0
OK
Data: AT+CSMP=17,167,0,0
OK
Data: AT+CMGL="ALL"
+CMGL: 1,"REC READ","+436606121980","","2015/ <---hier is something missing?? OR not?
Data: AT+CSMP=17,167,0,8
OK
Data: AT+CMGF=1
OK
Data: AT+CMGL="ALL"
+CMGL: 1,"REC READ","+436606121980","","2015 <---hier is something missing?? OR not?
/// see at: AT+CMGL="ALL" --->> it seems that not the hole info will transmit to the Serial Monitor