B
bwanaken
Guest
VB 2015
I am using My.Computer.Ports.SerialPortNames to show the serial ports in my application.
After pairing a Bluetooth device, I see two new COM ports. On a laptop they are: COM5 and COM6. On a desktop they are COM11 and COM12.
On the laptop, when selected COM5 works and COM6 hangs the app. On the desktop COM11 hangs the app and COM12 works.
I tried putting a Try/Catch around the port.open but the app still hangs.
1) Is there any way to detect which of the two Bluetooth port is the correct one to use and if so, please give me an example.
2) If not, how do I prevent my app from hanging if a user tries to use the wrong port?
Thanks,
Ken
Continue reading...
I am using My.Computer.Ports.SerialPortNames to show the serial ports in my application.
After pairing a Bluetooth device, I see two new COM ports. On a laptop they are: COM5 and COM6. On a desktop they are COM11 and COM12.
On the laptop, when selected COM5 works and COM6 hangs the app. On the desktop COM11 hangs the app and COM12 works.
I tried putting a Try/Catch around the port.open but the app still hangs.
1) Is there any way to detect which of the two Bluetooth port is the correct one to use and if so, please give me an example.
2) If not, how do I prevent my app from hanging if a user tries to use the wrong port?
Thanks,
Ken
Continue reading...