I’m getting lots of errors trying to use your SM5100B-D shield in order to connect to my website. I’m following all the instructions of TCP/IP document you provided at product’s page. Here is my simple test and results:
First of All:
I ‘ve set GSM shield pin D2 to Mega pin 19, and a jumper from GSM shield pin D3 to Mega pin 18.
ARDUINO CODE: (MEGA 2560)
#include <string.h>
char incoming_char=0;
void setup()
{
//Initialize serial ports for communication.
Serial.begin(9600); // for terminal communication
Serial1.begin(9600); // for GSM module communication
Serial.println("Starting SM5100B Communication...");
delay(5000);
}
void loop(){
if(Serial1.available() >0)
{
incoming_char = Serial1.read();
Serial.print(incoming_char);
}
if(Serial.available() >0)
{
incoming_char = Serial.read();
Serial1.print(incoming_char);
}
}
(I’m using cutecom compiled for Mac OS X)
Baud Rate: 9600
Data Bits: 8
Stop Bits: 1
CR line End
RESULTS:
Starting SM5100B Communication…
\0xd0\0xe8\0xd0\0xd0
+SIND: 1
+SIND: 10,“SM”,1,“FD”,1,“LD”,1,“MC”,1,“RC”,1,“ME”,1
+STIN:0
+SIND: 11
+SIND: 3
+SIND: 4
+STIN:9
SEND: AT
RESULT: OK
SEND: +STIN:9
RESULT: +CGATT: 1
OK
SEND: AT+CGDCONT=1,“IP”,“zap.vivo.com.br”
RESULT: OK
SEND: AT+CGDCONT=1,“IP”,“zap.vivo.com.br”
RESULT: OK
SEND: AT+CGACT=1,1
RESULT: OK
SEND: AT+SSTRSEND=1,”GET /geladeira/index.php"
RESULT: +CME ERROR: 4
SEND: AT+SDATASTART=1,1
RESULT: +CME ERROR: 4
Please HELP.