Hello everybody,
I have a very strange problem with my SIM900. I can send an SMS from my Arduino but I can not receive.
Here are the codes:
https://drive.google.com/file/d/0B5RP5NsysFygMHRZQThrdURXc0E/viewI have done everything from that tutorial. Also, I have tried to use hardvare serial instead of software serial, but doesn't help.
I have also tried this code:
#include <SoftwareSerial.h>
SoftwareSerial GPRS(7, 8);
unsigned char buffer[64]; // buffer array for data receive over serial port
int count=0; // counter for buffer array
void setup()
{
GPRS.begin(19200);
Serial.begin(19200);
}
void loop()
{
if (GPRS.available())
{
while(GPRS.available())
{
buffer[count++]=GPRS.read();
if(count == 64)break;
}
Serial.write(buffer,count);
clearBufferArray();
count = 0;
}
if (Serial.available())
GPRS.write(Serial.read());
}
void clearBufferArray()
{
for (int i=0; i<count;i++)
{
buffer[i]=NULL;
}
}
and to test AT commands, but nothing happends.
Can someone help me?