Commit graph

116 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
6c1832bd3a Parse Extended Inquiry Result events and fix parsing class of device when more than one response was returned in a Inquiry Result event 2021-12-19 20:41:31 +01:00
Jakob Grootens
fe14a37ded Remove unintended change/typo left in first commit. 2021-10-08 11:18:16 -05:00
Jakob Grootens
3f35c6c02a Restore support for Nintendo RVL-CNT-01 (old wiimotes revisoins). 2021-10-08 10:41:48 -05:00
Kristian Sloth Lauszus
28a75dea6b PS5 is now also working via Bluetooth
However the output report is still not working
2021-01-17 23:35:10 +01:00
Kristian Sloth Lauszus
f500cc9b4c Only use simple pairing with the Xbox One S controller, as it did not work with the PS4 2020-11-15 19:18:57 +01:00
Kristian Sloth Lauszus
102746ef6b Xbox One S controller support is now finally working 2020-11-15 19:14:30 +01:00
Kristian Sloth Lauszus
ad9360b865 Yet another go at getting the Xbox One S controller working
It just connects and opens a SDP channel it then disconnects the SDP channel and I get a "Paring Faild: 05 (Authentication Failure)"

For some reason I never receive the "IO Capability Request" event
2020-11-15 19:14:30 +01:00
Kristian Sloth Lauszus
8d7265f92c Try to figure out which HCI command that is failing 2020-11-15 19:14:30 +01:00
Kristian Sloth Lauszus
7714e807f6 Added SDP support to the BTHID, as needed for the Xbox One S controller 2020-11-15 19:13:54 +01:00
Kristian Sloth Lauszus
a347b3bace Enable simple paring mode 2020-11-15 19:13:49 +01:00
Kristian Sloth Lauszus
30ac619331 Initial code for Xbox One S controller support
I lack a dongle that support simply paring, so it has been confirmed working yet
2020-11-15 19:13:49 +01:00
Kristian Sloth Lauszus
502c547ca2
Merge pull request #332 from felis/belkin
Workaround issue with Belkin F8T065bf Bluetooth dongle
2017-12-10 12:37:31 +01:00
Kristian Sloth Lauszus
a06d173aad Workaround issue with Belkin F8T065bf Bluetooth dongle
Fixes #331
2017-12-09 12:07:19 +01:00
Andrew J. Kroll
08121e1701 Merge branch 'master' of github.com:felis/USB_Host_Shield_2.0 2017-12-01 10:44:10 -05:00
Andrew J. Kroll
f948ffccba clean up annoying bogus warnings 2017-12-01 10:43:31 -05:00
Kristian Sloth Lauszus
597d389ae6 Fixed bit mask indicating the transfer type when reading the attributes in an endpoint
Fixes #313
2017-09-05 10:37:32 +07:00
Kristian Sloth Lauszus
42948831ce Explicit cast millis() and micros() to uint32_t, as it is uint64_t on the Arduino 101 2017-02-12 16:58:14 +01:00
Kristian Sloth Lauszus
6fb48f48e4 Fix millis() and micros() rollover bug
Also replace long with int32_t, so it is not architecture dependent
2017-02-12 15:10:07 +01:00
Kristian Sloth Lauszus
242ce6c92b Fixed type in waitingForConnection variable and set it to false when pairing 2017-02-07 15:27:00 +01:00
Kristian Sloth Lauszus
eb3a258aa6 Remove execute permission from source files 2016-04-26 17:00:44 +02:00
Kristian Sloth Lauszus
00658d60eb Fixed typo 2016-04-19 11:48:51 +02:00
Kristian Sloth Lauszus
0cdde7afe9 Check status byte in HCI Authentication Complete Event
If paring fails simply disconnect
2016-02-09 12:10:12 +01:00
Kristian Sloth Lauszus
50ae401566 Print error message if a USB Hub is detected in the BTD class
This is useful as some Bluetooth dongles have a hub inside

Fixes #187
2015-12-06 18:35:16 +01:00
Kristian Sloth Lauszus
fb723fcbb0 Don't set epAttribs to 0, as this will set bmNakPower to 0 as well. Instead set bmSndToggle and bmRcvToggle explicit to 0.
Fixes: #184
2015-11-18 00:11:33 +01:00
Kristian Sloth Lauszus
e7bb5fafb1 Add delay between multiple calls to dispatchpkt inside InTransfer
Fixes: #167
2015-07-12 19:17:12 +02:00
Kristian Sloth Lauszus
a3fbffb42c Updated some comments 2015-04-16 02:34:27 +02:00
Kristian Sloth Lauszus
b1902b2a55 Initial support for Wii Balance Board
Still need to convert readings into something meaningful
2015-04-16 01:57:00 +02:00
Kristian Sloth Lauszus
a2265ea0a9 All these files changes were changed in: bc8000f782
I suspect Andrew used force push to overwrite the history
2015-03-19 18:11:22 +01:00
Andrew J. Kroll
46dc4e6fec fix conflict, fix case on include for hid.h (regression?) 2015-03-14 04:54:28 -04:00
Kristian Lauszus
106aff6411 Call registerBluetoothService in BluetoothService constructor
I needed to move the BluetoothService class down after the BTD class in order for it to work
2014-09-09 16:32:46 -07:00
Kristian Lauszus
25c8d87ba2 Added several variables to BluetoothService class
Also moved attachOnInit function into BluetoothService class, but this really belong somewhere else
2014-09-02 02:02:17 -07:00
Kristian Lauszus
b82835c877 Break for loop if HID device is found 2014-07-01 13:22:44 +02:00
Andrew J. Kroll
15974fcd54 Merge branch 'master' of github.com:felis/USB_Host_Shield_2.0 into xxxajk 2014-05-23 00:10:24 -04:00
Andrew J. Kroll
d56ed57495 Fix 1 month rollover bug -- Lei Shi found this one in one place, I found the problem all over the library and patched them all. 2014-05-22 23:36:33 -04:00
Kristian Lauszus
b3b476af33 Fixed debug message 2014-03-18 18:37:36 +01:00
Kristian Lauszus
0c05413447 Remote name buffer should be a char array 2014-01-16 18:56:42 +01:00
Kristian Lauszus
7469ff099e Typos, whitespace and some other cleanup stuff 2014-01-12 16:31:47 +01:00
Kristian Lauszus
e9bd896ca2 Added support for the PS4 controller via Bluetooth 2014-01-10 17:44:51 +01:00
Andrew J. Kroll
f1af9b08ec Janitorial, whitespace fixes. No new code. 2013-12-25 05:09:57 -05:00
Kristian Lauszus
c1f82e9e47 Check length is larger than 0 before sending data to Bluetooth services 2013-12-11 11:56:05 +01:00
Kristian Lauszus
6909ecd6b8 Use more readable macros in the BTD class as well 2013-12-11 10:37:18 +01:00
Kristian Lauszus
712bc3818d Fixed warning
Check if we are at the end of the string properly
2013-12-11 10:10:12 +01:00
Kristian Lauszus
dec1a31bc7 Updated some comments 2013-12-11 10:06:40 +01:00
Kristian Lauszus
4f738d3ef9 Removed some unused code 2013-12-06 22:59:12 +01:00
Kristian Lauszus
75637bab31 Merge branch 'master' into xxxajk 2013-12-05 07:26:41 +01:00
Andrew J. Kroll
95d133b919 Merge 2013-12-04 18:51:06 -05:00
Andrew J. Kroll
e18eb57752 fix all warnings for ARM, fix a few small bugs 2013-12-04 18:40:23 -05:00
Kristian Lauszus
c84dce8e00 Renamed clearAllVariables() to Initialize() 2013-12-01 16:02:23 +01:00
Kristian Lauszus
f783b97cb9 Initial commit for BTHID library
To see incoming data uncomment PRINTREPORT in BTHID.cpp
2013-11-24 21:55:15 +01:00
Kristian Lauszus
bcc51279d9 Added function, so one can connect to any Bluetooth device by setting the Bluetooth address as an argument 2013-11-24 15:31:12 +01:00