Iot Sim card

ok I am testing the module now with a sketch from this website I gave a link to in my last message, for some reason I could not get it to include it in this post as it comes up with a message saying it exceeds the 9000 words per post thing. The Example I have tried is this one which is the raw file none of my details are included

/* 
 *  This library was written by Vittorio Esposito
 *    https://github.com/VittorioEsposito
 *
 *  Designed to work with the GSM Sim800L.
 *
 *  ENG
 *    This library uses SoftwareSerial, you can define RX and TX pins
 *    in the header "Sim800L.h", by default pins are RX=10 and TX=11.
 *    Be sure that GND is connected to arduino too. 
 *    You can also change the RESET_PIN as you prefer.
 *  
 *  ESP
 *    Esta libreria usa SoftwareSerial, se pueden cambiar los pines de RX y TX
 *    en el archivo header, "Sim800L.h", por defecto los pines vienen configurado en
 *    RX=10 TX=11.  
 *    Tambien se puede cambiar el RESET_PIN por otro que prefiera
 * 
 *  ITA
 *    Questa libreria utilizza la SoftwareSerial, si possono cambiare i pin di RX e TX
 *    dall' intestazione "Sim800L.h", di default essi sono impostati come RX=10 RX=11
 *    Assicurarsi di aver collegato il dispositivo al pin GND di Arduino.
 *    E' anche possibile cambiare il RESET_PIN.
 *
 *
 *   DEFAULT PINOUT: 
 *        _____________________________
 *       |  ARDUINO UNO >>>   Sim800L  |
 *        -----------------------------
 *            GND      >>>   GND
 *        RX  10       >>>   TX    
 *        TX  11       >>>   RX
 *       RESET 2       >>>   RST 
 *                 
 *   POWER SOURCE 4.2V >>> VCC
 *
 *
 *  SOFTWARE SERIAL NOTES:
 *
 *    PINOUT
 *    The library has the following known limitations:
 *    1. If using multiple software serial ports, only one can receive data at a time.
 *    2. Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 14, 15, 50, 51, 52, 53, A8 (62), A9 (63), A10 (64), A11 (65), A12 (66), A13 (67), A14 (68), A15 (69).
 *    3. Not all pins on the Leonardo and Micro support change interrupts, so only the following can be used for RX: 8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).
 *    4. On Arduino or Genuino 101 the current maximum RX speed is 57600bps
 *    5. On Arduino or Genuino 101 RX doesn't work on Pin 13
 *  
 *    BAUD RATE
 *    Supported baud rates are 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 31250, 38400, 57600, and 115200.
 *
 *
 *  Edited on:  December 24, 2016
 *    Editor:   Vittorio Esposito
 *    
 *  Original version by:   Cristian Steib
 *        
 *
*/

#include <Sim800L.h>
#include <SoftwareSerial.h>               

#define RX  10
#define TX  11

Sim800L GSM(RX, TX);

/*
 * In alternative:
 * Sim800L GSM;                       // Use default pinout
 * Sim800L GSM(RX, TX, RESET);        
 * Sim800L GSM(RX, TX, RESET, LED);
 */

char* text;
char* number;
bool error; 					//to catch the response of sendSms


void setup(){
	GSM.begin(4800); 			
	text="Testing Sms";  		//text for the message. 
	number="2926451386"; 		//change to a valid number.
	error=GSM.sendSms(number,text);
	
	// OR 
	//Sim800L.sendSms("+540111111111","the text go here")

}

void loop(){
	//do nothing
}

I have looked up the AT command results, but old age, I forgot what they mean now, I did write it down.
As for the Youtube video, I'm unable to find the link to his sketch, I have seen it before, but I'm watching it again now, in-between typing :slight_smile:

Here's the one I'm actually running at the moment, minus my details, think this is a pretty good one as it shows in the serial window the AT command results. It's meant to connect data collected from a DHT22 Temp/Humidity sensor to Thingspeak, but as your all aware it's not. >:(

#include <SoftwareSerial.h>
SoftwareSerial gprsSerial(2,3);
 
#include <String.h>
#include <DHT.h> 
 
#define DHTPIN A0
 
DHT dht(DHTPIN, DHT11);
 
void setup()
{
  gprsSerial.begin(9600);               // the GPRS baud rate   
  Serial.begin(9600);    // the GPRS baud rate 
  dht.begin();
 
  delay(1000);
}
 
void loop()
{
      float h = dht.readHumidity();
      float t = dht.readTemperature(); 
      delay(100);   
         
      Serial.print("Temperature = ");
      Serial.print(t);
      Serial.println(" °C");
      Serial.print("Humidity = ");
      Serial.print(h);
      Serial.println(" %");    
      
   
  if (gprsSerial.available())
    Serial.write(gprsSerial.read());
 
  gprsSerial.println("AT");
  delay(1000);
 
  gprsSerial.println("AT+CPIN?");
  delay(1000);
 
  gprsSerial.println("AT+CREG?");
  delay(1000);
 
  gprsSerial.println("AT+CGATT?");
  delay(1000);
 
  gprsSerial.println("AT+CIPSHUT");
  delay(1000);
 
  gprsSerial.println("AT+CIPSTATUS");
  delay(2000);
 
  gprsSerial.println("AT+CIPMUX=0");
  delay(2000);
 
  ShowSerialData();
 
  gprsSerial.println("AT+CSTT=\"airtelgprs.com\"");//start task and setting the APN,
  delay(1000);
 
  ShowSerialData();
 
  gprsSerial.println("AT+CIICR");//bring up wireless connection
  delay(3000);
 
  ShowSerialData();
 
  gprsSerial.println("AT+CIFSR");//get local IP adress
  delay(2000);
 
  ShowSerialData();
 
  gprsSerial.println("AT+CIPSPRT=0");
  delay(3000);
 
  ShowSerialData();
  
  gprsSerial.println("AT+CIPSTART=\"TCP\",\"api.thingspeak.com\",\"80\"");//start up the connection
  delay(6000);
 
  ShowSerialData();
 
  gprsSerial.println("AT+CIPSEND");//begin send data to remote server
  delay(4000);
  ShowSerialData();
  
  String str="GET https://api.thingspeak.com/update?api_key=O13AOCHYYNU2LQ19&field1=" + String(t) +"&field2="+String(h);
  Serial.println(str);
  gprsSerial.println(str);//begin send data to remote server
  
  delay(4000);
  ShowSerialData();
 
  gprsSerial.println((char)26);//sending
  delay(5000);//waitting for reply, important! the time is base on the condition of internet 
  gprsSerial.println();
 
  ShowSerialData();
 
  gprsSerial.println("AT+CIPSHUT");//close the connection
  delay(100);
  ShowSerialData();
} 
void ShowSerialData()
{
  while(gprsSerial.available()!=0)
  Serial.write(gprsSerial.read());
  delay(5000);

In the first sketch I would change the baud from 4800 to 9600
Find this line in your posted sketch

GSM.begin(4800);

And change to

GSM.begin(9600);

..

Your AT command list suggests you may not be connected to the network (+CREG: 0,0) which could be a power issue.

How are you powering it now? With a Li Ion or LiPo like how mine is powered?

What is the net led doing?

When you have found the sketch from the video I would really use that for testing, it will give you a much better understanding of what AT commands need to be sent for the module to work.

I watched the video, and it's not the first time I have watched it, bit frustrating as most of the time the screen shots are out of focus and the guy does babble abit. I still cannot find the link to the sketch from the video, I agree the sketch would be great to test out the GSM board.
The GSM board is powered by a Lith Ion battery through a joule thief to give it 5v I have tried so many other ways to power it up, all with the same results.
One LED is flashing every second, the other LED flashes randomly and not all the time ( hope that makes sense).

The sketch that has the GSM baud rate at 4800 is how it was posted on the website, my version which also includes all my phone/internet settings was changed to 9600 .

John, have you read this thread: Cheap GSM module (SIM800) not connecting to the network - Page 4 (arduino.cc)

countrypaul:
John, have you read this thread: Cheap GSM module (SIM800) not connecting to the network - Page 4 (arduino.cc)

Just read through it, confused me even more, have tried some of the power adaptions, made no difference to my issue, but thanks anyway.

Thanks to all that replied to my plea for help, but sadly it still does not work. I have watched Youtube video after Youtube videos, read lots of online instructions on how to do this n that with a GSM module, I have practically reinvented power sources to feed the SIM800L with the juice it requires and still it does not work.
Spending a week trying to get a simple Arduino Example Sketch to work is just too much, I've not even started on the project I brought the SIM800L for.
The idea was to build a remote environmental monitoring station in an area that does not have WiFi, the device simply records data from various sensors and transmits the data at regular intervals.
So the project has been shelved and everything disconnected and put back in to storage.
Thanks to everyone that tried to help, but my head is buzzing with lots of information, some useful, some not, but I'm gonna close this post now.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.