Blynk hack and improvements

Good day!

  1. We all love Blynk. But any tool can be improved, so I developed ways to work around some stupid limitations. Now with my help you can dynamically change Blynk ID directly in the WEB menu when you first connect. Proof of concept, only for ESP32 Wroom controller: flash file BOLVANKA_Blynk_WEB_auth_OK.ino.merged.bin by this way: Install: “Flash Download Tool”, after start: ESP32, development. Chose controller COM port on the screen and path to file BOLVANKA_Blynk_WEB_auth_OK.ino.merged.bin. On the left of file name- chose Marked area by V. On the right of file path: input address 0x0000 and press START. After reconnect ESP32 Wroom, find wifi “MY_BLYNK”, no passport. Input: wifi SSID, wifi PASSWORD, Blynk parameters. Switch “START BLYNK in work” - ON. And vualia: Blynk connected successfuly to your account. If something wrong - push BOOT button on the controller 2 sec and you will found local wifi MY_BLYNK again. All for people now!
  2. Shimansky programmed the same header to wifi and GSM. Stupid bug that prevents smooth switching from Wi-Fi to GSM connections and vice versa. Fixed, see ESP32_WiFi_SSL-BLYNK_OK.ino code. Make a switch in your account V0, connect 18 pin to modem TX and 19pin to modem RXн. The modem must be connected to a separate power source 5VDC, 2A. Switch V0 in the blynk console and watch in the console how wifi or GSM is connecting in real time, reboot - no need. Everything for people, even from Blynk we can be made a candy.
  3. The worst code I’ve ever seen is definitely TinyGSM… If your mobile account is not topped up, or your modem can’t connect to the network, this goes on forever and ever… For example, your car’s battery will die in an underground parking. I fixed that too, see the correct modem connection in the code. Even TinyGSM can be turned into a gem!
  4. I use the method I found to view coordinates on the map in the browser, if I have this GPS data in my FREE Blynk account. All these functions can be added to your beautiful code for a small reward. Write to olegfilatov@gmx.com Also you can bye finished and tested programs: “Auto alarm with GPS and GSM”, “Home Helper Full function System” with remote control from GyverHub app + Telegram bot.

My GIT: GitHub - olegfilatof/BLYNKmodified

  1. Мы все любим Blynk. Но любой инструмент можно улучшить, поэтому я разработал способы обойти некоторые глупые ограничения. Теперь с моей помощью вы можете динамически менять идентификатор Blynk прямо в меню WEB при первом подключении. Концептуальное решение, только для контроллера ESP32 Wroom: прошить файл BOLVANKA_Blynk_WEB_auth_OK.ino.merged.bin следующим образом: Установить: “Flash Download Tool”, после запуска: ESP32, development. Выберите COM-порт контроллера на экране и путь к файлу BOLVANKA_Blynk_WEB_auth_OK.ino.merged.bin. Слева от имени файла выберите область, отмеченную V. Справа от пути к файлу: введите адрес 0x0000 и нажмите START. После повторного подключения к ESP32 Wroom найдите Wi-Fi “MY_BLYNK” без паспорта. Введите: SSID Wi-Fi, ПАРОЛЬ Wi-Fi, параметры Blynk. Включите “START BLYNK in work”. И вуаля: Blynk успешно подключился к вашему аккаунту. Теперь всё для людей!
  2. Шиманский запрограммировал один и тот же хедер для Wi-Fi и GSM. Глупый баг, препятствующий плавному переключению с Wi-Fi на GSM и наоборот. Исправлено, см. код ESP32_WiFi_SSL-BLYNK_OK.ino. Сделайте переключатель в вашем аккаунте V0, подключите 18-й контакт к TX модема, а 19-й — к RXн модема. Модем должен быть подключен к отдельному источнику питания 5 В постоянного тока, 2 А. Переключите V0 в консоли Blynk и наблюдайте в консоли, как подключается Wi-Fi или GSM в реальном времени, без перезагрузки ESP. Всё для людей, даже из Blynk можно сделать конфетку.
  3. Самый плохой код, который я когда-либо видел- это, безусловно, TinyGSM… Если мобильный счёт не пополнен, либо модем не может соединиться с сетью- это продолжается циклично вечно… К примеру, аккумулятор Вашего авто обязательно разрядиться в подземном паркинге если использовать сигнализацию на основе Blynk. Я исправил и это, смотри правильное подключение модема в коде. Даже из TinyGSM можно сделать конфетку!
  4. Я использую найденный мною способ смотреть координаты на карте в браузере, при наличии GPS данных, поступающих в бесплатный аккаунт Blynk. Все эти функции могут быть добавлены в Ваш прекрасный код, либо есть возможность приобрести полные проекты “Auto alarm with GPS”, “Home Helper Full function System” за небольшое вознаграждение. Пишите на почту olegfilatov@gmx.com

@vshymanskyy @Pavlo
Are you comfortable with this post?

Pete.

While I’m not a fan of such communication style I’d be happy to see which improvements can be integrated back to TinyGSM (which is btw already loved by thousands of engineers worldwide)

We are welcoming any contribution that can make Blynk better and offer cool tech for the community in a positive and collaborative way.

I’d like to try it out by myself

2 Likes

@gidiara do you know the concept of github pull requests?

2 Likes

Good news! Thanks to my efforts, Blynk now supports a backup communication channel. For example, if Wi-Fi is lost, the system will automatically switch to a GSM connection using a modem, using a flag set, without esp reboot. The idiotic limitation of 1 Blynk = 1 connection is no longer there. Blynk can now be used for more than just turning on a light bulb remotely, tied to a single, unbacked connection, which precluded reliable engineering use of the system.

See the HACK_BLYNK_WIFI_AND_GSM folder for the free code.
Click to V0 switch on your Blynk and you will see connection change information in PC terminal.

Total:

  1. Blynk authentication parameters can now be entered dynamically from the controller’s web interface. See the compiled code: BOLVANKA_Blynk_WEB_auth_OK.ino.merged.bin. Connect to the controller’s Wi-Fi local network network “MY AUTO SYSTEM CONFIG”.
    In browser open 192.168.4.1
    Don’t forget to enter your Wi-Fi connection details and BLYNK account information in the menu.
    BLYNK_TEMPLATE_ID
    BLYNK_TEMPLATE_NAME
    BLYNK_AUTH_TOKEN

My Router SSID
My Router Password
Click “START BLYNK in work” and you’ll be logged into the specified account!
This code has been compiled and source code only available after you write to me to the mail olegfilatov@gmx.com about payment.

  1. Now you can use both Wi-Fi and a GSM modem with a single controller. Connect by clicking virtual pin 0 in the browser on the BLYNK page. See source code HACK_BLYNK_WIFI_AND_GSM on my GIT.
    Enjoy!

Good news! Today added code for WIFI SSL connection + modem.
Now you can use #include <WiFiClientSecure.h> and #include <TinyGsmClient.h> in the same code.
And have a choice of Wi-Fi or GSM backup connection, using a convenient flag, without rebooting. And if the controller fails to connect to Wi-Fi or GSM, it continues working, rather than freezing as is typical in the original Blynk. Now, Blynk code is truly becoming reliable from an engineering standpoint. See free open code in my GIT:

@gidiara, where’s the hack exactly? I only see you’re just using the open-source Blynk library. The solution looks half-finished — and slightly dangerous. What happens when the GSM modem never comes up? Think that device will just fall down into offline mode forever.

You’re absolutely right. That’s why I continue to fight Blynk’s useless and harmful code. I’ve completely rewritten the code for you. And here’s the result: if the modem doesn’t connect, or something’s wrong with it, the main code continues executing after a minute. And You can start by flag other connection. Thank you for the wonderful comment. Even Blynk can be made beautiful together.
Please see:

In any case, this looks much better than the original Blynk: it tries to connect the modem for 5 minutes when there are problems, blocking all the code, then the controller reboots - and the same thing happens again. And the silly principle: 1 Blynk - 1 connection. Clearly this wasn’t done for engineers.

Thank you! I’m still in the doubt with realibility of such solution. If you think Blynk’s code is useless and harmful why you continue use it and not just rewrite it from scratch?

That’s my mission. If I see code that can be improved, why not? I don’t think you have any reason to worry so much. Besides, most of the wonderful changes are free for you. At worst, don’t use my code. No hard feelings, my friend!