Hi Blynkers,
I really need your help with my project.
My setup: Arduino Uno + Ai A6 GSM module
I have tried the example: BlynkClient
My problem is that I can’t connect to blynk cloud. The GSM module itself is working. I have tested it with manual AT commands and could send data to thingspeak channel.
For a short time the module seems to be connected, because it is shown as online in the blynk app.
I am getting the following messages in the command window:
Initializing modem…
00:36:05.344 -> Modem Info: Ai Thinker Co.LTD A6 V03.05.20170724017H17
00:36:05.412 -> [3544]
00:36:05.412 -> ___ __ __
00:36:05.446 -> / _ )/ /_ _____ / /__
00:36:05.480 -> / _ / / // / _ / '/
00:36:05.480 -> ///_, /////_
00:36:05.514 -> /__/ v0.6.1 on Arduino Uno
00:36:05.548 ->
00:36:05.548 -> [3695] Modem init…
00:36:06.022 -> [4226] Connecting to network…
00:36:06.396 -> [4599] Network: E-Plus
00:36:06.430 -> [4600] Connecting to pinternet.interkom.de …
00:36:06.973 -> [5167] Connected to GPRS
00:36:07.142 -> [5344] Connecting to blynk-cloud.com:8080
00:36:12.158 -> [10348] Connecting to blynk-cloud.com:8080
00:36:17.137 -> [15346] Connecting to blynk-cloud.com:8080
00:36:22.147 -> [20347] Connecting to blynk-cloud.com:8080
My code is:
*
* 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 60
// Select your modem:
// #define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM808
// #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_UBLOX
// #define TINY_GSM_MODEM_SARAR4
// #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
// #define TINY_GSM_MODEM_XBEE
// #define TINY_GSM_MODEM_SEQUANS_MONARCH
#include <TinyGsmClient.h>
#include <BlynkSimpleTinyGSM.h>
#define TINY_GSM_DEBUG
// 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[] = "pinternet.interkom.de";
const char user[] = "";
const char pass[] = "";
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
const char auth[] = "y-Y5z**************6WfKKr";
TinyGsm modem(SerialAT);
void setup()
{
// Set console baud rate
SerialMon.begin(9600);
delay(10);
// Set GSM module baud rate
SerialAT.begin(9600);
delay(3000);
// Restart takes quite some time
// To skip it, call init() instead of restart()
SerialMon.println("Initializing modem...");
modem.init();
String modemInfo = modem.getModemInfo();
SerialMon.print("Modem Info: ");
SerialMon.println(modemInfo);
// Unlock your SIM card with a PIN
//modem.simUnlock("1234");
Blynk.begin(auth, modem, apn, user, pass);
}
void loop()
{
Blynk.run();
}```
Do you have any ideas, what could be the problem or solutions for me?
Thank you and kind regards