FC11 ESP32-S3 BLE error

Any bugs you encounter with Flowcode should be discussed here.
stefan.erni
Valued Contributor
Posts: 1139
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 215 times
Been thanked: 238 times

Re: FC11 ESP32-S3 BLE error

Post by stefan.erni »

Hi Ben

First the good news.
BLE is also working with the ESP32-Pico

I tested the client.
It searches for devices and finds them, but it does not display any names.

If I simply select a device number to connect, for example no. 2, and that is the server (Flowcode), then I can receive and display the sent string. :)

BenR
Matrix Staff
Posts: 2048
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 544 times
Been thanked: 727 times

Re: FC11 ESP32-S3 BLE error

Post by BenR »

Ok thanks for letting us know I'll investigate this and see if I can replicate.

stefan.erni
Valued Contributor
Posts: 1139
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 215 times
Been thanked: 238 times

Re: FC11 ESP32-S3 BLE error

Post by stefan.erni »

Hi Ben

BLE also works with ESP32-C3 perfect :)

I couldn't test with ESP32-C6 because I can't compile C6.

I have a few more suggestions:

A command to set the BLE name at startup as with classic Bluetooth.

Establishing a fixed connection to a BLE using the BLE-MAC address.

Send receive Int_Array would be good to have so that BLE would be compatible with Uart component , Bluetooth classic component and the App developper comport component. Many applications use 16 bits. Probably the other array send/receives are not very important or useful.

stefan.erni
Valued Contributor
Posts: 1139
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 215 times
Been thanked: 238 times

Re: FC11 ESP32-S3 BLE error

Post by stefan.erni »

Hi Ben

More good news.
Interrupt and string receive work perfectly on ESP32-S3 with BLE.

stefan.erni
Valued Contributor
Posts: 1139
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 215 times
Been thanked: 238 times

Re: FC11 ESP32-S3 BLE error

Post by stefan.erni »

Hi Ben

I can already test part of it?
I'll have a look into the PC/Web devloper components next so we have a full set.

BenR
Matrix Staff
Posts: 2048
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 544 times
Been thanked: 727 times

Re: FC11 ESP32-S3 BLE error

Post by BenR »

I'm on it, I think we have already released the web developer version of a component, I'll check on this as I'm a little fuzzy on how I left things with Steve. I made a quick demo and Steve wrapped it into a finished webdev component.

For PC developer, this afternoon I've written a DLL to interface the Windows Bluetooth API (will need at least Win10 for this to work) and I've written a component to go around this. Just need to test it all works now. Hopefully later today or tomorrow we will have something I can share.

BenR
Matrix Staff
Posts: 2048
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 544 times
Been thanked: 727 times

Re: FC11 ESP32-S3 BLE error

Post by BenR »

Right this is largely working for me now but it needs more work to make it a bit more user friendly in terms of the usual read/write functions.


First you need the DLL which needs to be extracted and placed here:
C:\Program Files (x86)\Flowcode v11\API.DLL folder.

BLE_SPP_DLL.zip
(101.93 KiB) Downloaded 2 times

Next you need the BLE component. Here is the exported component file that needs to live here:
C:\ProgramData\MatrixTSL\FlowcodeV11\Components

BLE_GATT_SPP.fcpx
(3.05 KiB) Downloaded 2 times

Lastly here is the component source code, it has a little code in the main as a basic test I've been trying out.

BLE GATT SPP.fcpcd
(44.2 KiB) Downloaded 2 times

Let me know how you get on.

Post Reply