It’s difficult to help when you tell us that your serial output says…
when it actually says…
It’s also difficult when your latest sketch is massively different (and breaks all of the Blynk rules) compared to your initial sketch.
I’d suggest that you choose which sketch you’re going to use, share it - along with your serial output - then stick with that sketch making changes based on the feedback you receive from the forum. Otherwise, you’re going to find it difficult to get any assistance.
from your void loop, you will flood the server. Re-instate the timer from your first sketch.
Personally, I’d suggest that you start with a very simple standard SIM800 Blynk sketch, rather than this messy hacked-around code, to prove that you have proper communication with your SIM800.
[15240] Connecting to blynk.cloud:80
CHECK ok!
Blink connection Failed!
[96246] Connecting to blynk.cloud:80
[174252] Connecting to blynk.cloud:80
[252258] Connecting to blynk.cloud:80
[330264] Connecting to blynk.cloud:80
if wonder I miss some library for Blynk to connect ?
Thank you for your help untill now. But I see that code is just a sequence step by step to connect Blynk only, there is not any other purpose. If I can fix this mess I’ll come back and up my sketch for anyone have same problem like this.
Thank Pete.
Are you sure that the SIM800A module is correctly configured and has a valid SIM card installed?
Are you sure that the power source provides enough current for the SIM800A to run properly?
Hi John93,
Power supply: around 5.2v for module, it connected after 10-15s after power supply (3s/blink).
RX Sim800A to TX2 (pin 17) and TX Sim800A to RX2 (pin 16)
I just guess that I miss some necessary library for Blynk to connect and try to find out.
Today output have some better info:
[11813] Modem init...
[11840] Connecting to network...
[19222] Network: Mobifone
[19222] Connecting to m-wap ...
[27528] Connected to GPRS
[27536] Connecting to blynk.cloud:80
[31791] Connecting to blynk.cloud:80
[35716] Connecting to blynk.cloud:80
[39755] Connecting to blynk.cloud:80
[43670] Connecting to blynk.cloud:80
[47687] Connecting to blynk.cloud:80
[51855] Connecting to blynk.cloud:80
This is just one of the reasons why you should stop trying to get this screwed-up code to work and do what I’ve suggested multiple times before - use the Blynk GSM SIM800 example - but you seem to stubborn to do this!!
I don’t know what you mean, that the name TX2 or RX2 that the name printed on ESP32 for everyone can image what I connect. And the variable name I define for code is
#define RXPIN 17 // RXPIN of Sim800A to pin 17 of ESP32
#define RXPIN 16 // TXPIN of Sim800A to pin 16 of ESP32
I just want to discus and learn each other. If I’m wrong, someone can advise, thank.
I have been tried to run all example on library (but it did not work in my case) before I send it to this communicate for help. Thank all I stop here.
Problem “SOLVED”. I’ll try another another way to send my data to app.