Egy usb host projekten dolgoznék, ha nem akadtam volna el már a legelején.
Az usb host példaprogramok közül feltöltöttem a BTHID- programot. Egy távirányítót szeretnék hozzá csatolni. A következő üzeneteket kapom.
Kód: Egész kijelölése
HID Bluetooth Library Started
Bluetooth Dongle Initialized
No response to HCI Reset
HCI Reset complete
Write class of device
Local Bluetooth Address: 00:15:83:EB:D2:50
Please enable discovery of your device
Keyboard found
HID device found
Now just create the instance like so:
BTHID bthid(&Btd);
And then press any button on the device
Connecting to HID device
Connected to HID device
Received Key Request
Bluetooth pin is set too: 0000
Pairing successful with HID device
Send HID Control Connection Request
Send HID Control Config Request
Set protocol mode: 01
Send HID Interrupt Connection Request
L2CAP Control: 00
Send HID Interrupt Config Request
HID Channels Established
Wait For Incoming Connection Request
HCI Disconnected from Device
Wait For Incoming Connection Request
Keyboard is connecting
Incoming Connection Request
Remote Name: SC-B03-08D4
Connected to Device: DF:90:78:01:08:D4
Received Key Request
Wait For Incoming Connection Request
HCI Disconnected from Device
Wait For Incoming Connection Request