I would like to know how many BLE services can be created with the RUI3 API. I currently need to implement two services with their respective features.
I have implemented one service with its features and it works fine, but when I try to create a second service, the program compiles and loads, but when I connect via BLE, it doesn’t display the services and disconnects the RAK11720. The application gets stuck on “connected.”
My questions are:
How many BLE services can I create simultaneously on a RAK11720?
What is the maximum number of features per service on the RAK11720?
I am also evaluating the RAK11160. Is it possible that this microcontroller supports more BLE services?
Thanks @and-tecnipak. I will inform R&D team to add it to future versions of RUI3. I cannot talk about the schedule. Also, I cannot talk for RAK11160. For RAK11160, please take a look the link shared by Bernd.
For RAK11160, the ESP32-C2 is running the original Espressif AT command firmware. It supports EITHER WiFi OR BLE, depending on the Espressif firmware used, check AT Command Set - ESP32 - — ESP-AT User Guide latest documentation as I shared before. You will have to flash the Espressif firmware you want to use.
Regarding number of BLE services that the Espressif AT command BLE firmware supports, I do not know. By default we ship the RAK11160 with the Espressif AT command WiFi firmware.
I’ve been testing your multi-service support, but when I try to connect with nrf connect on Android, it connects to the device but doesn’t discover any services. I also tried loading your main.cpp file directly, and it has the same problem.
I’ve been looking into the RAK11160. I was able to program the STM32 with STLINKV2, but I haven’t been able to flash the AT commands provided by Espressif for the ESP32-C2. For some reason, I can’t enter the ESP’s boot mode. My goal is to install the latest version of the AT commands provided by Espressif.
Could you explain the step-by-step process?
Currently, I’m trying the following method:
Using an FTDI CH340 UART, I connect to the debug pins of the RAK11160 breakout board on the ESP side. I hold down the boot button, press the reset button while still holding boot, release the reset button, and wait a few seconds before releasing boot.
I’m using Arch Linux with ESPtool, with the following command: esptool --chip esp32c2 --port /dev/ttyUSB0 --baud 115200 write-flash 0x0 factory_ESP32C2-2MB.bin; but it’s not flashing it (I also tried using the Windows flashtool and it fails the same way).
I’m wondering if the EN pin, which is PA0 of the STM32, needs to be HIGH to use the ESP32, even for flashing.
Is it possible to do it through serial communication, or is there another method to put it into boot mode?
Is there another method to flash the ESP32-C2? I also saw in a post that it needs a specific .BIN file for BLE, which is different from the Wi-Fi one; at least in the Espressif documentation, I haven’t seen anything like that.
I forgot to mention that I absolutely need to add support for BLE.
I am using same version and I am able to communicate with device over BLE. When you revert back these changes, are you able to communicate with RAK11720 again?