If Blynk IS NOT connected, then as long as your programming is setup to keep running without that link (see here for an example), then you should be able do whatever you want with the modem… attempt reconnection to Blynk, ET phone home, answer spam calls, whatever…
If, however, Blynk IS connected, then generally that is ALL the modem (or any other method of link, WiFi, USB, BT/BLE) can do (maintain that connection), and thus unable to do anything else.
Perhaps due to the fact that I use a translator, the essence of my text changes. If the SIM800L module is connected to the server and data is transmitted, there is no problem. I make a call to the module, he answers it and executes DTMF commands from the phone. As soon as the call is over, it again starts sending data to the server without reconnecting again. But, if the module has lost connection with the server due to a bad “GPRS” signal and is constantly trying to reconnect, then at that moment I call the module, the call goes on, but does not answer this call. And it is necessary that if there is no connection with the server, the modem constantly tries to connect, but also accepts an incoming call.
As @Gunner’s example (that he linked to in his last post) shows, using Blynk.config and Blynk.connect instead of Blynk.begin (which is a blocking command and prevents any other code execution when there is no Blynk connection) should solve the problem you’re describing.
Sorry for my persistence. Still nothing works. If replace Blynk.begin with Blynk.config and Blynk.connect gives the error "no matching function for call to 'BlynkSIM :: config (char [33], TinyGsm &, char [9], char [1], char [1]) ’ "
Yes… posting code helps us actually see what you’re talking about.
Also, searching this forum just might help a bit I used these keywords (Blynk.config GSM)… and for example, this showed up… I suggest reading whole topic, and looking through others as well…
This code is designed to work with Arduino Mega 2560 and GSM module SIM800L. It is controlled by Blynk via GPRS and by using DTMF commands when calling the module from a mobile phone. The code contains the following:
reading readings from three temperature sensors DS18b20
readout of input voltage readings
control of turning on two relays to open and close car doors, and automatically start the engine
turning on one relay to start the tablet PC installed in the car, after starting the engine
turning on one relay to activate the air conditioner button in the car
DTMF commands duplicate relay activation for doors and engine start.
I understood what my mistake was. Thank you so much Pete and GTT !!! Everything works as I wanted
Pete, please delete this topic so that other users don’t read my mistakes in vain.
I’d asked you to post the code that gave the compilation error, so we could see if you’d correctly implemented the Blynk.config/begin commands correctly.
It appears that you’ve now worked-out the error for yourself, so I’ll mark the topic as ‘solved’.
It may help others in future if you post your working code.
And yet it does not work quite correctly … If the modem is connected to GPRS and I install a sketch with “Blynk.config” then everything works. And if there is no GPRS connection and I install a sketch with “Blynk.config” then the modem does not connect to GPRS. This can be seen in the “port monitor” and on the diode of the modem itself. Help me please! I thought it worked, but alas … I’m very upset …
Please open the question.
And yet it does not work quite correctly … If the modem is connected to GPRS and I install the sketch with “Blynk.config”, then everything works. And if there is no GPRS connection and I install the sketch with “Blynk.config”, then the modem does not connect to GPRS. This can be seen on the “port monitor” and on the diode of the modem itself.
You’re using variables called BLYNK_DEFAULT_DOMAIN and BLYNK_DEFAULT_PORT in the code you posted, but those variables aren’t declared anywhere in your sketch, so the code would fail to compile.
If you post the actual code you are using then we might be able to spot the error.
I’ve recently been doing some tests with a TTGO T-Call ESP32 board and I use this as my connection commands for Blynk cloud and it works perfectly: