Login timeout - blynk-cloud.com:80

Hello all,

I currently have a simple project to connect Blynk Android app to an Arduino Uno via GPRS. I receive GPRS connected but then connecting to blynk-cloud.com:80 login timeout continuously. I have uploaded an image of the serial monitor too.

Here are the details:

• Arduino Uno with SIM808
• Android Samsung S9 - Andriod Version 10
•Using Arduino library Blynk 0.6.1. Using Blynk example code "TinyGSM_SIM800_SIM900
• Sketch code below

 * For this example, you need to install Blynk library:
 *   https://github.com/blynkkk/blynk-library/releases/latest
 * TinyGSM Getting Started guide:
 *   https://tiny.cc/tinygsm-readme
 * Blynk is a platform with iOS and Android apps to control
 * Arduino, Raspberry Pi and the likes over the Internet.
 * You can easily build graphic interfaces for all your
 * projects by simply dragging and dropping widgets.
 * Blynk supports many development boards with WiFi, Ethernet,
 * GSM, Bluetooth, BLE, USB/Serial connection methods.
 * See more in Blynk library examples and community forum.
 *                http://www.blynk.io/
 * Change GPRS apm, user, pass, and Blynk auth token to run :)

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space

// Default heartbeat interval for GSM is 60
// If you want override this value, uncomment and set this option:
//#define BLYNK_HEARTBEAT 10

// Select your modem:
//#define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM7000
// #define TINY_GSM_MODEM_SIM5360
// #define TINY_GSM_MODEM_SIM7600
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266

#include <TinyGsmClient.h>
#include <BlynkSimpleTinyGSM.h>

// Set serial for debug console (to the Serial Monitor, default speed 115200)
#define SerialMon Serial

// Hardware Serial on Mega, Leonardo, Micro
//#define SerialAT Serial1

// or Software Serial on Uno, Nano
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX

// Your GPRS credentials, if any
const char apn[]  = "payandgo.o2.co.uk";
const char user[] = "payandgo";
const char pass[] = "password";

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
const char auth[] = "XPB28VnCh1RCJCUpZ1mGfJ40Ke5mxxxx";

TinyGsm modem(SerialAT);

void setup()
  // Set console baud rate

  // Set GSM module baud rate

  // Restart takes quite some time
  // To skip it, call init() instead of restart()
  SerialMon.println("Initializing modem...");

  String modemInfo = modem.getModemInfo();
  SerialMon.print("Modem Info: ");

  // Unlock your SIM card with a PIN

  Blynk.begin(auth, modem, apn, user, pass);

void loop()

Thanks all

I have added Blynk_debug. See serial monitor below:

Hi Tom, I think your mobile service provider is probably blocking the device to server communications.

instead of this:

Blynk.begin(auth, modem, apn, user, pass);

you could try this:

Blynk.begin(auth, modem, apn, user, pass, "blynk-cloud.com", 8080);

Otherwise try a different SIM card (but not GifGaf as they use the O2 network as well).


Perfect. Thankyou @PeteKnight. I can confirm o2 is not working and changing the Blynk.begin and adding an EE sim it works. Just to work out how to get my PAYG o2 working…