3

I have the COM port for the Bluetooth serial communication in the windows 7 machine. How do I get the direction of the COM Ports in C#, i.e whether is it an incoming port or outgoing port.

Thank you for your extended support. Attached is the screen shotenter image description here

Regards

Gibson Justian
  • 107
  • 2
  • 9
  • Wasn't [answered](http://stackoverflow.com/q/7911874/1997232) earlier. Check [this](https://social.msdn.microsoft.com/Forums/en-US/ad5fe4a6-9be8-4780-a8e7-7742533a2b4d/determining-bluetooth-com-port-assignments-in-windows-7?forum=wdk). – Sinatr Aug 24 '16 at 12:25
  • Serial ports hardware is always bi-directional. Unless a custom driver is used that only allows one direction all ports are bi-directional. – jdweng Aug 24 '16 at 12:32
  • Chicken-and-egg problem, how do you know the COM port number in the first place? These problems won't go away until talking to Bluetooth devices gets easier in C# without having to rely on the serial port emulation hack. The Windows.Devices.Bluetooth namespace is a very good way to get there but that's never going to come to Win7. It will take a while, it is new XP. – Hans Passant Aug 24 '16 at 12:46
  • Check the accepted answer of [this](https://stackoverflow.com/questions/52327458/get-bluetooth-com-ports?rq=1) question. It worked for me. – Waleed Naveed Nov 21 '19 at 11:23

0 Answers0