Page 1 of 1

App Developer Comport scan ID for ESP32 Bluetooth

Posted: Fri Jul 07, 2023 10:56 am
by stefan.erni
Hi Steve

There is a very good command,(scan_ for_device_ID) to detect the comport of a microchip bluetooth modul and then connect the comport. That worked pretty well.

Each bluetooth connection makes two comports, incoming and outgoing.

So far, FC has always detected the correct one, even if the wrong port (port6) appears first, it has detected the correct one (port7).

But with the ESP32 Bluetooth it only recognises the first one. So it's not working if the first is the wrong one .

Is there a way to improve this?

regards


Stefan


Snag_fdee49.png
Snag_fdee49.png (44.66 KiB) Viewed 2753 times

Snag_fe3380.png
Snag_fe3380.png (55.14 KiB) Viewed 2753 times

Re: App Developer Comport scan ID for ESP32 Bluetooth

Posted: Fri Jul 07, 2023 11:34 am
by Steve-Matrix
Hi Stefan,

I have had a little success and hopefully this will help you.

My ESP32 device creates only one COM port at COM3:
ESP32 COM port.png
ESP32 COM port.png (97.09 KiB) Viewed 2750 times

If I alter your project and look for this, it is correctly returning the COM port number:
ESP32 COM port FC.png
ESP32 COM port FC.png (37.61 KiB) Viewed 2750 times

My ESP32 has no program and so I have not attempted to try PC <-> ESP comms, but hopefully this gets you started.

Re: App Developer Comport scan ID for ESP32 Bluetooth

Posted: Fri Jul 07, 2023 11:36 am
by Steve-Matrix
You can just look for the VID/PID instead - i.e. "USB\VID_1A86&PID_7523".

Re: App Developer Comport scan ID for ESP32 Bluetooth

Posted: Fri Jul 07, 2023 1:22 pm
by stefan.erni
Hi Steve

I have now adjusted my program so that I can also recognise the USB port.
This port can also be used for programming (flash) or as a comport for a USB C connection with, for example, 921600 bd.

But after lunch I restarted my computer and now it reads the correct number (7).

regards


Stefan

Infos: