Hi everyone,
I bought SIM808EVB-v3.2 module (https://fr.aliexpress.com/item/SIM808-instead-of-SIM908-module-GSM-GPRS-GPS-Development-Board-IPX-SMA-with-GPS-Antenna-for/32647682188.html?spm=2114.13010608.0.0.WrgmgQ) and I'm trying to use it with the Arduino UNO.
I've inserted my simcard into the SIM808 and I've connected the following :
TXD => Pin 0 on Arduino
RXD => Pin 1 on Arduino
GND => GND
V_IN => 5V on Arduino
Here is a picture of the wiring : https://www.hostingpics.net/viewer.php?id=552320IMG3367.jpg
After that, I've powered my Arduino and my SIM808 module.
I've also downloaded the SIMCom library from GitHub - itead/ITEADLIB_Arduino_SIMCom: GSM GPRS GPS Bluetooth for SIM800/808/900/908 Shield Library and, in the file GSM.cpp, I've changed :
#define _GSM_TXPIN_ 2
#define _GSM_RXPIN_ 3
to :
#define _GSM_TXPIN_ 1
#define _GSM_RXPIN_ 0
Then, I've uploaded the example of simple GSM/GPRS read to the Arduino :
#include "SIM900.h"
#include <SoftwareSerial.h>
//#include "inetGSM.h"
//#include "sms.h"
//#include "call.h"
//To change pins for Software Serial, use the two lines in GSM.cpp.
//GSM Shield for Arduino
//www.open-electronics.org
//this code is based on the example of Arduino Labs.
//Simple sketch to communicate with SIM900 through AT commands.
//InetGSM inet;
//CallGSM call;
//SMSGSM sms;
int numdata;
char inSerial[40];
int i=0;
void setup()
{
//Serial connection.
Serial.begin(9600);
Serial.println("GSM Shield testing.");
//Start configuration of shield with baudrate.
//For http uses is raccomanded to use 4800 or slower.
if (gsm.begin(9600))
Serial.println("\nstatus=READY");
else Serial.println("\nstatus=IDLE");
};
void loop()
{
//Read for new byte on serial hardware,
//and write them on NewSoftSerial.
serialhwread();
//Read for new byte on NewSoftSerial.
serialswread();
};
void serialhwread()
{
i=0;
if (Serial.available() > 0) {
while (Serial.available() > 0) {
inSerial=(Serial.read());
delay(10);
i++;
}
inSerial='\0';
if(!strcmp(inSerial,"/END")) {
Serial.println("_");
inSerial[0]=0x1a;
inSerial[1]='\0';
gsm.SimpleWriteln(inSerial);
}
//Send a saved AT command using serial port.
if(!strcmp(inSerial,"TEST")) {
Serial.println("SIGNAL QUALITY");
gsm.SimpleWriteln("AT+CSQ");
} else {
Serial.println(inSerial);
gsm.SimpleWriteln(inSerial);
}
inSerial[0]='\0';
}
}
void serialswread()
{
gsm.SimpleRead();
}
}
Unfortunately, after the upload, I get a "DB:NO RESP" error message from the IDE serial console.
GSM Shield testing.
ATT: OK
RIC:
Shield testing
ATT: OK
RIC:
Shield testing
DB:ELSE
DB:NO RESP
DB:NO RESP
DB:NO RESP
Trying to force the baud-rate to 9600
1200
2400
4800
9600
19200
38400
57600
115200
ERROR: SIM900 doesn't answer. Check power and serial pins in GSM.cpp
status=IDLE
I've tried to change values in the file GSM.cpp to :
#define _GSM_TXPIN_ 0
#define _GSM_RXPIN_ 1
but it still not work.
So, can someone please help me ?
Thank you ![]()