benlink icon indicating copy to clipboard operation
benlink copied to clipboard

autodetect command / audio RFCOMM channels

Open khusmann opened this issue 10 months ago • 2 comments

Right now RFCOMM channels have to be manually specified when making RFCOMM connections; SDP service discovery is not supported.

Service discovery would be easy to implement using pybluez, but it is unfortunately no longer under active development.

In Linux we could simply call sdptool records --xml <UUID> and parse the result, but that still leaves Windows and OSX.

khusmann avatar Feb 02 '25 19:02 khusmann

I have not started looking at voice at all in Windows, but in due time I am sure I will look into it.

Ylianst avatar Feb 02 '25 22:02 Ylianst

Awesome, much appreciated! It'll be easier for your application though because you can just call the windows API directly via C#.

But if you can turn whatever you end up with into a Powershell script I could call from Python via subprocess, that'd work pretty well, I think :)

khusmann avatar Feb 02 '25 22:02 khusmann