Hey there,
I am currently working with the Ai Thinker A7 GSM+GPS module and want to connect it via GPRS to the blynk.cloud (the Blynk APP). Unfortunately I get stuck in the Blynk.begin() function, because it seems like the module couldn’t connect to the blynk.cloud. The output in the serial monitor looks like this without changing its output for several minutes…:
[153]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v1.0.1 on ESP32
[155] Modem init...
[591] Connecting to network...
[865] Network: NettoKOM
[865] Connecting to internet.eplus.de ...
[1218] Connected to GPRS
[1335] Connecting to blynk.cloud:8080
[6343] Cmd skipped:29
[10604] Connecting to blynk.cloud:8080
[13362] Cmd skipped:29
[17625] Connecting to blynk.cloud:8080
[20321] Cmd skipped:29
[20440] Connecting to blynk.cloud:8080
[23159] Cmd skipped:29
[27420] Connecting to blynk.cloud:8080
[30143] Cmd skipped:29
[34404] Connecting to blynk.cloud:8080
[37140] Cmd skipped:29
Can someone tell me what does the Cmd Skipped:29
mean?
A few sentences to my hardware setup and the things I have done so far:
- I am using an ESP32 dev board with an A7 shield on a breadboard. General AT communication with the module is working and is done over Serial1 port of the ESP32.
- I have added a huge capacitor directly next to the power input. Already gone through this problematic earlier…
- Same code is working with a different GSM module (SIM800 by Simcom).
- Module does not connect to blynk.cloud when using the old Blynk version as well. It will stay in the connection loop either.
- I have changed server (blynk.cloud, blynk-cloud.com, IP-address) and port (80, 8080, 430) but nothing changed.
- Neither inside nor outside possible.
My code is:
#define BLYNK_PRINT Serial
#define BLYNK_DEBUG
#define BLYNK_DEBUG_ALL Serial
#define BLYNK_TEMPLATE_ID "XXX"
#define BLYNK_DEVICE_NAME "XXX"
#define BLYNK_AUTH_TOKEN "XXX"
#define TINY_GSM_MODEM_A7
#define TINY_GSM_RX_BUFFER 1024 // Set RX buffer to 1Kb
#define MODEM_TX 27
#define MODEM_RX 26
#include <TinyGsmClient.h>
#include <BlynkSimpleTinyGSM.h>
char auth[] = BLYNK_AUTH_TOKEN;
char apn[] = "internet.eplus.de";
char user[] = "nettokom";
char pass[] = "nettokom";
TinyGsm modem(Serial1);
BLYNK_WRITE(V0){
int in = param.asInt();
Serial.print("in: ");
Serial.println(in);
}
void setup(){
Serial.begin(115200);
delay(100);
Serial1.begin(115200, SERIAL_8N1, MODEM_RX, MODEM_TX);
// Blynk.begin(auth, modem, apn, user, pass);
Blynk.begin(auth, modem, apn, user, pass, "blynk.cloud", 8080);
}
void loop(){
Blynk.run();
}
Can someone help what is going on here? Or has someone noticed similar problems using the Ai Thinker A7 module?
Any help is appreciated!
Thanks in advance and regards,
Moritz