Hello Matthias
I only want to use the BLE radio mode of the SX1280 for the moment.
Thank you very much for your answers.
I have another question. To start with I want to use a bluetooth dongle as a server and try to connect to it with my phone with the LightBlue app.
1. I connected BTDongle (BLED112-V1) and replaced driver using Zadig
Chosen- WinUSB
2. Using MSYS2 MinGW 64-Bit
I was able to make the project
3. Using winpty, i am able to run gatt_counter.exe
4. From remote device - my mobile, I can't see my bluetooth key after scanning the Bluetooth LE devices
In the device manager I see my bluetooth dongle, in "universal serial bus device".
when I using winpty i have only that:
Packet Log: hci_dump.pklg
BTstack counter 0001
in wireshark, I have this log :
1 0.000000 PKTLOG hci_transport_h2_winusb.c.406: registering packet handler
2 1.000000 PKTLOG hci.c.5065: hci_power_control: 1, current mode 0
3 1.000000 PKTLOG hci_transport_h2_winusb.c.1102: WinUSB 00007ff8f5060000
4 1.000000 PKTLOG hci_transport_h2_winusb.c.1103: WinUsb_QueryPipeEx 00007ff8f5061210
6 1.000000 PKTLOG hci_transport_h2_winusb.c.1105: WinUsb_ReadIsochPipe 00007ff8f5064180
5 1.000000 PKTLOG hci_transport_h2_winusb.c.1104: WinUsb_RegisterIsochBuffer 00007ff8f5063800
7 1.000000 PKTLOG hci_transport_h2_winusb.c.1106: WinUsb_ReadIsochPipeAsap 00007ff8f5064130
8 1.000000 PKTLOG hci_transport_h2_winusb.c.1107: WinUsb_WriteIsochPipe 00007ff8f5063da0
9 1.000000 PKTLOG hci_transport_h2_winusb.c.1108: WinUsb_WriteIsochPipeAsap 00007ff8f5063d70
10 1.000000 PKTLOG hci_transport_h2_winusb.c.1109: WinUsb_UnregisterIsochBuffer 00007ff8f50639b0
11 1.000000 PKTLOG hci_transport_h2_winusb.c.1110: WinUsb_GetCurrentFrameNumber 00007ff8f5063600
12 2.000000 PKTLOG hci_transport_h2_winusb.c.1151: usb_open: SetupDiGetClassDevs -> 0000025b97e3cf30
14 2.000000 PKTLOG hci_transport_h2_winusb.c.978: Opening USB device: ffffffffffffffff
13 2.000000 PKTLOG hci_transport_h2_winusb.c.1201: usb_open: Device Path: \\?\usb#vid_0461&pid_4d15#6&2a0b5975&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
15 2.000000 PKTLOG hci_transport_h2_winusb.c.1090: usb_try_open_device: last error 6
16 2.000000 PKTLOG hci_transport_h2_winusb.c.1228: usb_open: Device open failed
17 2.000000 PKTLOG hci_transport_h2_winusb.c.1201: usb_open: Device Path: \\?\usb#vid_0bda&pid_57c3#200901010001#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
18 2.000000 PKTLOG hci_transport_h2_winusb.c.978: Opening USB device: 00000000000001c4
19 64.000000 PKTLOG hci_transport_h2_winusb.c.1090: usb_try_open_device: last error 8
20 64.000000 PKTLOG hci_transport_h2_winusb.c.1228: usb_open: Device open failed
21 64.000000 PKTLOG hci_transport_h2_winusb.c.1201: usb_open: Device Path: \\?\usb#vid_2458&pid_0001#1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
22 64.000000 PKTLOG hci_transport_h2_winusb.c.978: Opening USB device: 00000000000001c4
23 64.000000 PKTLOG hci_transport_h2_winusb.c.349: check vid_0a5c&pid_21e8 in \\?\usb#vid_2458&pid_0001#1#{a5dcbf10-6530-11d2-901f-00c04fb951ed} -> 0000000000000000
24 64.000000 PKTLOG hci_transport_h2_winusb.c.349: check vid_0b05&pid_17cb in \\?\usb#vid_2458&pid_0001#1#{a5dcbf10-6530-11d2-901f-00c04fb951ed} -> 0000000000000000
25 64.000000 PKTLOG hci_transport_h2_winusb.c.349: check vid_0a5c&pid_22be in \\?\usb#vid_2458&pid_0001#1#{a5dcbf10-6530-11d2-901f-00c04fb951ed} -> 0000000000000000
26 64.000000 PKTLOG hci_transport_h2_winusb.c.349: check vid_2fe3&pid_0100 in \\?\usb#vid_2458&pid_0001#1#{a5dcbf10-6530-11d2-901f-00c04fb951ed} -> 0000000000000000
27 64.000000 PKTLOG hci_transport_h2_winusb.c.349: check vid_2fe3&pid_000b in \\?\usb#vid_2458&pid_0001#1#{a5dcbf10-6530-11d2-901f-00c04fb951ed} -> 0000000000000000
28 64.000000 PKTLOG hci_transport_h2_winusb.c.1007: Class, Subclass, Protocol does not match Bluetooth device
29 64.000000 PKTLOG hci_transport_h2_winusb.c.1228: usb_open: Device open failed
30 64.000000 PKTLOG hci_transport_h2_winusb.c.1201: usb_open: Device Path: \\?\usb#vid_413c&pid_2107#6&2a0b5975&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
31 64.000000 PKTLOG hci_transport_h2_winusb.c.978: Opening USB device: ffffffffffffffff
32 64.000000 PKTLOG hci_transport_h2_winusb.c.1090: usb_try_open_device: last error 6
33 64.000000 PKTLOG hci_transport_h2_winusb.c.1228: usb_open: Device open failed
35 64.000000 PKTLOG hci_transport_h2_winusb.c.978: Opening USB device: 00000000000001c4
34 64.000000 PKTLOG hci_transport_h2_winusb.c.1201: usb_open: Device Path: \\?\usb#vid_8087&pid_0a2b#5&1548b049&0&8#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
36 64.000000 PKTLOG hci_transport_h2_winusb.c.1090: usb_try_open_device: last error 50
37 64.000000 PKTLOG hci_transport_h2_winusb.c.1228: usb_open: Device open failed
38 64.000000 PKTLOG hci_transport_h2_winusb.c.1201: usb_open: Device Path: \\?\usb#vid_0a5c&pid_5834#0123456789abcd#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
39 64.000000 PKTLOG hci_transport_h2_winusb.c.978: Opening USB device: 00000000000001c4
40 64.000000 PKTLOG hci_transport_h2_winusb.c.1090: usb_try_open_device: last error 8
41 64.000000 PKTLOG hci_transport_h2_winusb.c.1228: usb_open: Device open failed
42 64.000000 PKTLOG hci_transport_h2_winusb.c.1201: usb_open: Device Path: \\?\usb#vid_413c&pid_81b6#lf62210158011013#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
43 64.000000 PKTLOG hci_transport_h2_winusb.c.978: Opening USB device: 00000000000001c4
44 73.000000 PKTLOG hci_transport_h2_winusb.c.1090: usb_try_open_device: last error 8
45 73.000000 PKTLOG hci_transport_h2_winusb.c.1228: usb_open: Device open failed
46 76.000000 PKTLOG hci_transport_h2_winusb.c.1242: usb_open: done, r = ffffffff
47 76.000000 PKTLOG hci.c.4821: HCI_INIT failed, turning Bluetooth off again
48 76.000000 PKTLOG hci.c.7524: BTSTACK_EVENT_POWERON_FAILED
49 76.000000 controller host HCI_EVT Rcvd Unknown 0x62
50 76.000000 PKTLOG hci.c.4947: hci_power_control_on() error -1
I hope I haven't missed an important step,
thank you for all your answers
Best
Gurvan