I’m using Arduino Uno with SIM900A on Blynk server and I can’t get it to work. I’m using latest libraries and firmware for GSM. This is my code
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#define TINY_GSM_MODEM_SIM900
// Default heartbeat interval for GSM is 60
// If you want override this value, uncomment and set this option:
//#define BLYNK_HEARTBEAT 30
#include <TinyGsmClient.h>
#include <BlynkSimpleSIM800.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "token";
// Your GPRS credentials
// Leave empty, if missing user or pass
char apn[] = "internet.tele2.hr";
char user[] = "";
char pass[] = "";
BlynkTimer timer;
// Hardware Serial on Mega, Leonardo, Micro
//#define SerialAT Serial1
// or Software Serial on Uno, Nano
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
TinyGsm modem(SerialAT);
void setup()
{
// Debug console
Serial.begin(9600);
delay(10);
// Set GSM module baud rate
SerialAT.begin(19200);
delay(3000);
// Restart takes quite some time
// To skip it, call init() instead of restart()
Serial.println("Initializing modem...");
modem.restart();
Blynk.begin(auth, modem, apn, user, pass);
}
void loop()
{
Blynk.run();
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
Blynk.virtualWrite(0, 255);
}
And this is my serial monitor output
Initializing modem...
[17909]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v0.6.0 on Arduino Uno
[18002] Modem init...
[39644] SIM is missing
Initializing modem...
[6854]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v0.6.0 on Arduino Uno
[6946] Modem init...
[7576] Connecting to network...
[18882] Network: HR TELE2, HR 21902
[18883] Connecting to internet.tele2.hr ...
[25265] Connected to GPRS
[25409] Connecting to blynk-cloud.com:80
[28510] Connecting to blynk-cloud.com:80
[103740] Connecting to blynk-cloud.com:80
[106304] Ready (ping: 1554ms).
[113469] Connecting to blynk-cloud.com:80
[116945] Connecting to blynk-cloud.com:80
[193125] Connecting to blynk-cloud.com:80
[196367] Connecting to blynk-cloud.com:80
[199486] Connecting to blynk-cloud.com:80
[202661] Connecting to blynk-cloud.com:80
[205836] Connecting to blynk-cloud.com:80
[209015] Connecting to blynk-cloud.com:80
[212269] Connecting to blynk-cloud.com:80
[216393] Connecting to blynk-cloud.com:80
[291629] Connecting to blynk-cloud.com:80
[295042] Connecting to blynk-cloud.com:80
[297908] Connecting to blynk-cloud.com:80
[300760] Connecting to blynk-cloud.com:80
[303620] Connecting to blynk-cloud.com:80
[306786] Connecting to blynk-cloud.com:80
[309680] Connecting to blynk-cloud.com:80
[312947] Connecting to blynk-cloud.com:80
[317090] Connecting to blynk-cloud.com:80
[392325] Connecting to blynk-cloud.com:80
[395815] Connecting to blynk-cloud.com:80
[471049] Connecting to blynk-cloud.com:80
[474233] Connecting to blynk-cloud.com:80
[477097] Connecting to blynk-cloud.com:80
I have seen on forum that signal strength could be problem but I’m close to tower, less than 500m