Standard serial over Bluetooth link - select COM port

Carlos Viescas 0 Reputation points
2023-02-01T16:53:27.3+00:00

Hello,

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

  • An incoming port is used when a remote device established a connection to your device, and is exposed as the SerialPort service to the remote device.
  • An outgoing port is used to make a connection to the serial port service on a remote 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
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,685 questions
C++
C++
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,787 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 10,041 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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.