KurtE
Senior Member+
If I run the viewer app with Bluetooth debug turned on, and with out the pairing option: JoystickController joystick(myusb);
The debug output I see includes:
Note: Arduino 1.8.13 plus new beta
Now if I try it with the pairingversion: BluetoothController bluet(myusb, true, "0000"); // Version does pairing to device
Note: it looks like it is failing a config request... Need to see what we do then?
The debug output I see includes:
Code:
USB Host Testing
ST7789_t3::init mode: 0
BluetoothController claim this=20007ec0 vid:pid=a12:1
9 4 0 0 3 e0 1 1 0 7 5 81 3 10 0 1 7 5 2 2 40 0 1 7 5 82 2 40 0 1 9 4 1 0 2 e0 1 1 0 7 5 3 1 0 0 1 7 5 83 1 0 0 1 9 4 1 1 2 e0 1 1 0 7 5
3 1 9 0 1 7 5 83 1 9 0 1 9 4 1 2 2 e0 1 1 0 7 5 3 1 11 0 1 7 5 83 1 11 0 1 9 4 1 3 2 e0 1 1 0 7 5 3 1 19 0 1 7 5 83 1 19 0 1 9 4 1 4 2 e0
1 1 0 7 5 3 1 21 0 1 7 5 83 1 21 0 1 9 4 1 5 2 e0 1 1 0 7 5 3 1 31 0 1 7 5 83 1 31 0 1
rxep=1(16) txep=2(64) rx2ep=2(64)
HCI_RESET called (03 0c 00 )
Control callback (bluetooth): 1 : 3 c 0
BT rx_data(6): e 4 1 3 c 0
Command Completed!
HCI_WRITE_CLASS_OF_DEV called (24 0c 03 04 08 00 )
Control callback (bluetooth): 3 : 24 c 3 4 8 0
BT rx_data(6): e 4 1 24 c 0
Command Completed!
HCI_Read_BD_ADDR called (09 10 00 )
Control callback (bluetooth): 4 : 9 10 0
BT rx_data(12): e a 1 9 10 0 13 71 da 7d 1a 0
Command Completed!
BD Addr 0:1a:7d:da:71:13
HCI_Read_Local_Version_Information called (01 10 00 )
Control callback (bluetooth): 4 : 1 10 0
BT rx_data(14): e c 1 1 10 0 6 bb 22 6 a 0 bb 22
Command Completed!
Local Version: 6
HCI_WRITE_SCAN_ENABLE called(1a 0c 01 02 )
Control callback (bluetooth): 0 : 1a c 1 2
BT rx_data(6): e 4 1 1a c 0
Command Completed!
Write_Scan_enable Completed
*** Device Bluet a12:1 - connected ***
BT rx_data(12): 4 a dc 13 d6 1b aa 9c 8 5 0 1
Event: Incoming Connect - dc:13:d6:1b:aa:9c CL:508 LT:1
Peripheral device
Gamepad
BluetoothController::find_driver driver 20004bd8
Keyboard Controller::claim_bluetooth - Class 508
driver 20004e78
Keyboard Controller::claim_bluetooth - Class 508
driver 20004a48
MouseController Controller::claim_bluetooth - Class 508
driver 20007978
*** Claimed ***
HCI_OP_REMOTE_NAME_REQ called (19 04 0a dc 13 d6 1b aa 9c 01 00 00 00 )
*** BTHID Device tablet 0:0 - connected ***
Control callback (bluetooth): 0 : 19 4 a dc 13 d6 1b aa 9c 1 0 0 0
BT rx_data(6): f 4 0 1 19 4
Command 419 Status 0
BT rx_data(16): 7 ff 0 dc 13 d6 1b aa 9c 58 62 6f 78 20 57 69
BT rx_data(16): 72 65 6c 65 73 73 20 43 6f 6e 74 72 6f 6c 6c 65
BT rx_data(16): 72 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(1): 0
Event: handle_hci_remote_name_complete(0)
Remote Name: Xbox Wireless Controller
HCI_OP_ACCEPT_CONN_REQ called (09 04 07 dc 13 d6 1b aa 9c 00 )
Control callback (bluetooth): 0 : 9 4 7 dc 13 d6 1b aa 9c 0
BT rx_data(6): f 4 0 1 9 4
Command 409 Status 0
BT rx_data(10): 12 8 0 dc 13 d6 1b aa 9c 0
BT rx_data(13): 3 b 0 48 0 dc 13 d6 1b aa 9c 1 0
Connection Complete - ST:0 LH:48
BT rx_data(9): 20 7 dc 13 d6 1b aa 9c 1
BT rx_data(5): 1b 3 48 0 5
BT rx_data(8): 17 6 dc 13 d6 1b aa 9c
Event: Link Key Request dc:13:d6:1b:aa:9c
HCI_LINK_KEY_NEG_REPLY called (0c 04 06 dc 13 d6 1b aa 9c )
Control callback (bluetooth): 120 : c 4 6 dc 13 d6 1b aa 9c
BT rx_data(12): e a 1 c 4 0 dc 13 d6 1b aa 9c
Command Completed!
BT rx_data(6): 5 4 0 48 0 15
Event: HCI Disconnect complete(0): handle: 48, reason:15
*** BTHID Device tablet - disconnected ***
Now if I try it with the pairingversion: BluetoothController bluet(myusb, true, "0000"); // Version does pairing to device
Code:
USB Host Testing
ST7789_t3::init mode: 0
BluetoothController claim this=20007ec0 vid:pid=a12:1
9 4 0 0 3 e0 1 1 0 7 5 81 3 10 0 1 7 5 2 2 40 0 1 7 5 82 2 40 0 1 9 4 1 0 2 e0 1 1 0 7 5 3 1 0 0 1 7 5 83 1 0 0 1 9 4 1 1 2 e0 1 1 0 7 5
3 1 9 0 1 7 5 83 1 9 0 1 9 4 1 2 2 e0 1 1 0 7 5 3 1 11 0 1 7 5 83 1 11 0 1 9 4 1 3 2 e0 1 1 0 7 5 3 1 19 0 1 7 5 83 1 19 0 1 9 4 1 4 2 e0
1 1 0 7 5 3 1 21 0 1 7 5 83 1 21 0 1 9 4 1 5 2 e0 1 1 0 7 5 3 1 31 0 1 7 5 83 1 31 0 1
rxep=1(16) txep=2(64) rx2ep=2(64)
HCI_RESET called (03 0c 00 )
Control callback (bluetooth): 1 : 3 c 0
BT rx_data(6): e 4 1 3 c 0
Command Completed!
HCI_WRITE_CLASS_OF_DEV called (24 0c 03 04 08 00 )
Control callback (bluetooth): 3 : 24 c 3 4 8 0
BT rx_data(6): e 4 1 24 c 0
Command Completed!
HCI_Read_BD_ADDR called (09 10 00 )
Control callback (bluetooth): 4 : 9 10 0
BT rx_data(12): e a 1 9 10 0 13 71 da 7d 1a 0
Command Completed!
BD Addr 0:1a:7d:da:71:13
HCI_Read_Local_Version_Information called (01 10 00 )
Control callback (bluetooth): 4 : 1 10 0
BT rx_data(14): e c 1 1 10 0 6 bb 22 6 a 0 bb 22
Command Completed!
Local Version: 6
HCI_WRITE_INQUIRY_MODE called (45 0c 01 02 )
Control callback (bluetooth): 6 : 45 c 1 2
BT rx_data(6): e 4 1 45 c 0
Command Completed!
HCI_Set_Event_Mask called (01 0c 08 ff ff ff ff ff 5f 00 00 )
Control callback (bluetooth): 7 : 1 c 8 ff ff ff ff ff 5f 0 0
BT rx_data(6): e 4 1 1 c 0
Command Completed!
HCI_INQUIRY called (01 04 05 33 8b 9e 30 0a )
Control callback (bluetooth): 8 : 1 4 5 33 8b 9e 30 a
BT rx_data(6): f 4 0 1 1 4
Command 401 Status 0
*** Device Bluet a12:1 - connected ***
BT rx_data(16): 2f ff 1 16 ac b3 26 3f c8 1 2 8 5 0 71 74
BT rx_data(16): a0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(16): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(1): 0
Extended Inquiry Result - Count: 1
BD:16:ac:b3:26:3f:c8, PS:1, class: 508
Peripheral device
Gamepad
BluetoothController::find_driver driver 20004bd8
Keyboard Controller::claim_bluetooth - Class 508
driver 20004e78
Keyboard Controller::claim_bluetooth - Class 508
driver 20004a48
MouseController Controller::claim_bluetooth - Class 508
driver 20007978
*** Claimed ***
HCI_INQUIRY_CANCEL called (02 04 00 )
*** BTHID Device tablet 0:0 - connected ***
Control callback (bluetooth): 100 : 2 4 0
BT rx_data(6): e 4 1 2 4 0
Command Completed!
HCI_CREATE_CONNECTION called (05 04 0d 16 ac b3 26 3f c8 18 cc 01 00 00 00 00 )
Control callback (bluetooth): 101 : 5 4 d 16 ac b3 26 3f c8 18 cc 1 0 0 0 0
BT rx_data(6): f 4 0 1 5 4
Command 405 Status 0
BT rx_data(13): 3 b 0 48 0 16 ac b3 26 3f c8 1 0
Connection Complete - ST:0 LH:48
HCI_AUTH_REQUESTED called (11 04 02 48 00 )
Control callback (bluetooth): 110 : 11 4 2 48 0
BT rx_data(6): f 4 0 0 11 4
Command 411 Status 0
=====================
BT rx2_data(16): 48 20 c 0 8 0 1 0 2 1 4 0 1 0 40 0
L2CAP Connection Request: ID: 1, PSM: 1, SCID: 40
BT rx_data(5): 1b 3 48 0 5
BT rx_data(8): 17 6 16 ac b3 26 3f c8
Event: Link Key Request 16:ac:b3:26:3f:c8
HCI_LINK_KEY_NEG_REPLY called (0c 04 06 16 ac b3 26 3f c8 )
BT rx_data(6): f 4 0 1 0 0
Command 0 Status 0
Control callback (bluetooth): 120 : c 4 6 16 ac b3 26 3f c8
BT rx_data(12): e a 1 c 4 0 16 ac b3 26 3f c8
Command Completed!
BT rx_data(8): 16 6 16 ac b3 26 3f c8
Event: Pin Code Request 16:ac:b3:26:3f:c8
HCI_PIN_CODE_REPLY called (0d 04 17 16 ac b3 26 3f c8 04 30 30 30 30 00 00 00 00 00 00 00 00 00 00 00 00 )
Control callback (bluetooth): 130 : d 4 17 16 ac b3 26 3f c8 4 30 30 30 30 0 0 0 0 0 0 0 0 0 0 0 0
BT rx_data(12): e a 1 d 4 0 16 ac b3 26 3f c8
Command Completed!
BT rx_data(5): 6 3 6 48 0
Event: HCI Authentication complete(6): handle: 48
ConnectionRequest called(48 20 0c 00 08 00 01 00 02 00 04 00 11 00 70 00 )
tx_data callback (bluetooth): 0 : 48 20 c 0 8 0 1 0 2 0 4 0 11 0 70 0
BT rx_data(7): 13 5 1 48 0 1 0
=====================
BT rx2_data(20): 48 20 10 0 c 0 1 0 3 0 8 0 40 0 70 0 3 0 0 0
L2CAP Connection Response: ID: 0, Dest:40, Source:70, Result:3, Status: 0
Control Response
L2CAP_ConfigRequest called(48 20 10 00 0c 00 01 00 04 00 08 00 40 00 00 00 01 02 ff ff )
tx_data callback (bluetooth): 0 : 48 20 10 0 c 0 1 0 4 0 8 0 40 0 0 0 1 2 ff ff
BT rx_data(7): 13 5 1 48 0 1 0
=====================
BT rx2_data(18): 48 20 e 0 a 0 1 0 1 0 6 0 2 0 40 0 0 0
L2CAP command reject: ID: 0, length:6, Reason:2, Data: 0 40
Note: it looks like it is failing a config request... Need to see what we do then?