Standard serial over Bluetooth link - select COM port

As mentioned in https://blog.bachi.net/?p=9700, Bluetooth SPP opens two ports when pairing a device:

Is there a way to modify this behavior and specify to open just one of the two? E.g. incoming port, telling Windows in advanced that the remote device is establishing the connection. I am specially interested also if it is possible to configure from WinRT/Win32 C++ APIs.

Thanks in advance!

Windows API - Win32

A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.

2,586 questions Sign in to follow

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

3,690 questions Sign in to follow 0 comments No comments Report a concern I have the same question I have the same question 0 votes Add comment

1 answer

Sort by: Most helpful Most helpful Newest Oldest

Jeanine Zhang-MSFT 9,661 Reputation points • Microsoft Vendor 2023-02-02T01:36:52.35+00:00

Hello, Welcome to Microsoft Q&A! As far as I'm concerned, there is no suitable winapi to configure. Usually there are 2 COM ports (incoming and outgoing) are assigned to a device. Who initiates the connection determines whether incoming or outgoing is used. Thank you. Jeanine If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

3 comments Show comments for this answer Report a concern

This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.