xref: /btstack/port/windows-winusb/README.md (revision c75587468f82e2f5711bc0f0cceb7c8196f66d85)
1*c7558746SMatthias Ringwald# BTstack port for Windows Systems using the WinUSB Driver
2a1a1af71SMatthias Ringwald
3*c7558746SMatthias RingwaldThe Windows-WinUSB port uses the native run loop and WinUSB API to access a USB Bluetooth dongle.
4a1a1af71SMatthias Ringwald
5a1a1af71SMatthias RingwaldTo allow libusb or WinUSB to access an USB Bluetooth dongle, you need to install a special device driver to make it accessible to user space processes.
6a1a1af71SMatthias Ringwald
7a1a1af71SMatthias RingwaldIt works like this:
8*c7558746SMatthias Ringwald-  Download [Zadig](http://zadig.akeo.ie)
9*c7558746SMatthias Ringwald-  Start Zadig
10a1a1af71SMatthias Ringwald-  Select Options -> “List all devices”
11a1a1af71SMatthias Ringwald-  Select USB Bluetooth dongle in the big pull down list
12a1a1af71SMatthias Ringwald-  Select WinUSB (libusb) in the right pull pull down list
13a1a1af71SMatthias Ringwald-  Select “Replace Driver”
14a1a1af71SMatthias Ringwald
15a1a1af71SMatthias RingwaldWhen running the examples in the MSYS2 shell, the console input (via btstack_stdin_support) doesn't work. It works in the older MSYS and also the regular CMD.exe environment. Another option is to install WinPTY and then start the example via WinPTY like this:
16a1a1af71SMatthias Ringwald
17a1a1af71SMatthias Ringwald    $ winpty ./hfp_hf_demo.exe
18a1a1af71SMatthias Ringwald
19