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
App Developer Comport scan ID for ESP32 Bluetooth
-
- Valued Contributor
- Posts: 758
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 149 times
- Been thanked: 171 times
App Developer Comport scan ID for ESP32 Bluetooth
- Attachments
-
- port_found1.fcsx
- (12.77 KiB) Downloaded 63 times
-
- Matrix Staff
- Posts: 1257
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 279 times
Re: App Developer Comport scan ID for ESP32 Bluetooth
Hi Stefan,
I have had a little success and hopefully this will help you.
My ESP32 device creates only one COM port at COM3:
If I alter your project and look for this, it is correctly returning the COM port number:
My ESP32 has no program and so I have not attempted to try PC <-> ESP comms, but hopefully this gets you started.
I have had a little success and hopefully this will help you.
My ESP32 device creates only one COM port at COM3:
If I alter your project and look for this, it is correctly returning the COM port number:
My ESP32 has no program and so I have not attempted to try PC <-> ESP comms, but hopefully this gets you started.
-
- Matrix Staff
- Posts: 1257
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 168 times
- Been thanked: 279 times
Re: App Developer Comport scan ID for ESP32 Bluetooth
You can just look for the VID/PID instead - i.e. "USB\VID_1A86&PID_7523".
-
- Valued Contributor
- Posts: 758
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 149 times
- Been thanked: 171 times
Re: App Developer Comport scan ID for ESP32 Bluetooth
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:
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:
- Attachments
-
- Snag_77628f.png (107.85 KiB) Viewed 1035 times
-
- Snag_7740de.png (57.97 KiB) Viewed 1035 times
-
- port_found1.fcsx
- (25.11 KiB) Downloaded 60 times