Quantity of services BLE RAK11720 RUI3

Hello.

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:

  1. How many BLE services can I create simultaneously on a RAK11720?

  2. What is the maximum number of features per service on the RAK11720?

  3. I am also evaluating the RAK11160. Is it possible that this microcontroller supports more BLE services?

I look forward to your comments.

Best regards.

RUI3 supports only one custom BLE service.

The RAK11160 is using the ESP32-C2 with Espressifs AT command firmware for WiFi and BLE. Best is to check the Espressif documentation for BLE support ==> AT Command Set - ESP32 - — ESP-AT User Guide latest documentation

Hi Begee, thanks for replying.

I was able to modify the uhal_cus.h file and increase the number of features per service, which was previously limited to 7.

It’s precisely in these definitions.

I modified the number of services, but it’s not working the same way.

Is there any way to modify uhal_cus.c so that RUI3 can support more than one service?

Best regards.

/*****************************************************************************
#define CUS_SERVICE_START_HDL 0x0600 // This is important!!!

#define MAXIMUM_CUS_SERVICE_SIZE 3
#define MAXIMUM_CUS_CHARACTERISTIC_SIZE 10 //MAXIMUM NUMBER OF FEATURES TO TEST

@sercan
Can you help?

1 Like

Hello @and-tecnipak

I will take a look and inform you.

Thanks,
Sercan.

Hello @and-tecnipak,

Please take a look attached zip. I added multi service support. Please take a look main.cpp file to learn how to use it.

cus.zip (7.1 KB)

Please be aware that these additions can cause problems. Testing is your responsibility.

Thanks,
Sercan.

Hello Sercan.

Thank you very much for your technical support. I will be testing this new functionality.

On another note, do you plan to add this support for future versions of RUI3? And also for RAK11160?

Best regards.

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.

Best regards.

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.