Bluetooth set as com port in c#
-
Hi Guys me again, old man again ;) .. I have used Scanner set as com port and I like to change it to use Bluetooth, used as com port. I have register device and change it to use it as com port in Windows 11. I am using SerialPort and add
SerialErrorReceivedEventHandler
. This event never happens. I cannot find any suggestion. Can you help me please ? Regards John
-
Hi Guys me again, old man again ;) .. I have used Scanner set as com port and I like to change it to use Bluetooth, used as com port. I have register device and change it to use it as com port in Windows 11. I am using SerialPort and add
SerialErrorReceivedEventHandler
. This event never happens. I cannot find any suggestion. Can you help me please ? Regards John
-
Hi Richard. no errors, The Receive Data Event not working. the com port is in /foreach(string port in ports) / as well it shows as com port in Device Manager as 'Standard Serial over Bluetooth link (COM4)'. I use standard Serial port structure . It works as HID, when I scan barcode while in Note Pad ?!!?? In device manager I have its HID disabled. When I change the driver to do as com port, my software works. I have an issue with the com port driver supplied with the scanner, and this is the reason I like to change it. Regards John
-
Hi Richard. no errors, The Receive Data Event not working. the com port is in /foreach(string port in ports) / as well it shows as com port in Device Manager as 'Standard Serial over Bluetooth link (COM4)'. I use standard Serial port structure . It works as HID, when I scan barcode while in Note Pad ?!!?? In device manager I have its HID disabled. When I change the driver to do as com port, my software works. I have an issue with the com port driver supplied with the scanner, and this is the reason I like to change it. Regards John
-
If it is a problem with the device you are connecting to then there is very little anyone here can do to help.
Hi Richard maybe I have not been clear. I do not want to use the faulty driver as it has problems. This is why I like to use Scanner via Bluetooth and redirected to operate as com port. The Bluetooth driver is Microsoft and redirection is done via Windows 11, so no faulty driver to be used. regards John
-
Hi Richard maybe I have not been clear. I do not want to use the faulty driver as it has problems. This is why I like to use Scanner via Bluetooth and redirected to operate as com port. The Bluetooth driver is Microsoft and redirection is done via Windows 11, so no faulty driver to be used. regards John
-
Hi Richard I want to use Bluetooth connection and use it to communicate as serial port with to operate. Maybe I am asking for something which cannot be done appreciate you help regards John
-
Hi Richard I want to use Bluetooth connection and use it to communicate as serial port with to operate. Maybe I am asking for something which cannot be done appreciate you help regards John
-
I just found this article which may help you Bluetooth Simulation in C# with Serial Ports[^].
-
The documentation for that is at SerialDataReceivedEventHandler Delegate (System.IO.Ports) | Microsoft Learn[^].