-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having an issue with the xboxone library #305
Comments
@mojoe128 are you running the latest code here form GIthub or have you downloaded it through the Arduino library manager? |
Hi! I downloaded it from here. I then added a .zip library with sketch/include library/add .zip library. Here is the usb_desc for the controller i'm trying to connect. Thank you for your time Start 01Device descriptor: Configuration descriptor: Interface descriptor: Endpoint descriptor: Endpoint descriptor: Interface descriptor: Interface descriptor: Endpoint descriptor: Endpoint descriptor: Interface descriptor: Interface descriptor: Endpoint descriptor: Endpoint descriptor: Addr:1(0.0.1) |
Please download the newest version of the library (currently 1.3.1). It has a fix for Xbox One controllers: #298. |
Hi! I have tried the updated library and am still having the same issue. Would you have any idea why? Thanks |
Can you try to update the firmware on your controller? |
I just checked the firmware. I was already up to date. Any other ideas? Thanks for your time! |
Same here XBOX USB Library Started XboxCommand, Return: 0DMade it this far 00 Xbox One Init Failed, error code: 0D Xbox One Controller Disconnected XBOXONE Init Xbox One Controller Disconnected XBOXONE Init Xbox One Controller Disconnected XBOXONE Init Xbox One Controller Disconnected |
@Carsonsmuts could you try to change this line: https://github.com/felis/USB_Host_Shield_2.0/blob/master/XBOXONE.cpp#L150 to: epInfo[ XBOX_OUTPUT_PIPE ].epAddr = 0x02; // XBOX one output endpoint And this line: https://github.com/felis/USB_Host_Shield_2.0/blob/master/XBOXONE.cpp#L156 to. epInfo[ XBOX_INPUT_PIPE ].epAddr = 0x02; // XBOX one input endpoint I.e. this will use endpoint address 2 instead of 1. |
Yep, that worked! I search everywhere for new possible protocols. Where did you find this info if I may ask? |
Actually you can tell it from the comment by @mojoe128: #305 (comment). I will write a fix, so it works for all Xbox One controllers. |
…ing them Also cleaned up the code a bit Fixes #305
@mojoe128 and @Carsonsmuts please test: #325 and report back if it works or not. |
I have been getting init failed whenever i try to connect an Xbox one controller. I was wondering if you had any idea why. I have tested my host shield with the ps4 and xbox libraries. They both work. This is what is in the serial monitor with all of the debugs on.
XBOX USB Library Started
XBOXONE Init
Addr: 01
Xbox One Controller Connected
XboxCommand, Return: 0D
Xbox One Init Failed, error code: 0D
Xbox One Controller Disconnected
XBOXONE Init
getDevDescr
Xbox One Init Failed, error code: 0D
Xbox One Controller Disconnected
XBOXONE Init
getDevDescr
Xbox One Init Failed, error code: 0D
Xbox One Controller Disconnected
XBOXONE Init
getDevDescr
Xbox One Init Failed, error code: 0D
Xbox One Controller Disconnected
Any help would be greatly appreciated
thank you
The text was updated successfully, but these errors were encountered: