Search found 13 matches

by aterial
Mon Nov 13, 2017 1:35 am
Forum: Development
Topic: Creating firmware to emulate the Nintendo Switch Pro Controller
Replies: 19
Views: 33354

Re: Creating firmware to emulate the Nintendo Switch Pro Controller

Sorry for the delays, here ya go!
If you have any questions about the serial protocol, lemme know but it should be fairly self-explanatory.
by aterial
Mon Nov 06, 2017 5:13 am
Forum: Development
Topic: Creating firmware to emulate the Nintendo Switch Pro Controller
Replies: 19
Views: 33354

Re: Creating firmware to emulate the Nintendo Switch Pro Controller

well, its done. updates at the expected maximum rate of 120 updates per second, with full gyroscope/accelerometer support. rumble info is not sent over serial to the hosting application since i personally dont feel thats necessary, but it can be added by parsing specific packets. i made a simple c# ...
by aterial
Wed Nov 01, 2017 11:55 pm
Forum: Development
Topic: Creating firmware to emulate the Nintendo Switch Pro Controller
Replies: 19
Views: 33354

Re: Creating firmware to emulate the Nintendo Switch Pro Controller

Thanks for that! The switch is now correctly detecting the joysticks using the formula you gave me! I'll try and mess with the gyroscope values now and see what I can come up with. Edit: Early celebrations wew. Left stick is properly detected, right stick seems to trigger certain buttons. Seems like...
by aterial
Wed Nov 01, 2017 1:04 am
Forum: Development
Topic: Creating firmware to emulate the Nintendo Switch Pro Controller
Replies: 19
Views: 33354

Re: Creating firmware to emulate the Nintendo Switch Pro Controller

Looks like someone else figured out how to properly decode the stick/gyro data to somewhat-usable values. https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering/blob/master/bluetooth_hid_notes.md#standard-input-report---stick-data I'll try and implement this on a test program i have and se...
by aterial
Tue Oct 31, 2017 6:51 am
Forum: Development
Topic: Creating firmware to emulate the Nintendo Switch Pro Controller
Replies: 19
Views: 33354

Re: Creating firmware to emulate the Nintendo Switch Pro Controller

Alright I got it working. The switch correctly detects the firmware as an official Switch Pro Controller. The only things left to do now are figure out how to encode the thumbstick/gyro/accel data into a format the switch expects. I'm not that good at figuring out how bitshifting/bitmasks work (whic...
by aterial
Fri Oct 13, 2017 3:31 am
Forum: Development
Topic: Creating firmware to emulate the Nintendo Switch Pro Controller
Replies: 19
Views: 33354

Re: Creating firmware to emulate the Nintendo Switch Pro Controller

Alright, i figured out the transport fail error. Guess lufa or the avr usb stack doesnt like there being an IN endpoint and an OUT endpoint on the same address, so i just swapped the OUT address to 0x02. The firmware can now read incoming requests from the switch, and react accordingly. The only pro...
by aterial
Thu Oct 12, 2017 7:08 pm
Forum: Development
Topic: Creating firmware to emulate the Nintendo Switch Pro Controller
Replies: 19
Views: 33354

Re: Creating firmware to emulate the Nintendo Switch Pro Controller

http://www3.zippyshare.com/v/OuXXHw7M/file.html The descriptors seem to be correct, even if they're not laid out the 'proper' way (as in the usb dump with this firmware and the controller itself are identical). The problem seems to occur after the switch sends the first 0x00, 0x00 packet. My current...
by aterial
Thu Oct 12, 2017 6:55 pm
Forum: Development
Topic: Creating firmware to emulate the Nintendo Switch Pro Controller
Replies: 19
Views: 33354

Re: Creating firmware to emulate the Nintendo Switch Pro Controller

I'm running into some issues with the custom firmware. I'm not too experienced with usb stuff, so i'm pretty sure im doing something wrong. When the switch starts sending my firmware the packets, my firmware breaks and doesn't receive it. Checking the proxy dumps it seems like i'm getting a Protocol...
by aterial
Sun Oct 08, 2017 4:16 am
Forum: Development
Topic: Creating firmware to emulate the Nintendo Switch Pro Controller
Replies: 19
Views: 33354

Re: Creating firmware to emulate the Nintendo Switch Pro Controller

Finally had time to dig through the packet dumps and i'm pretty sure i nailed down the communication. Here's what i got : Note that byte 2 seems to be a counter variable, always incrementing when sent from the controller) Just for reference, < is from console to controller, > is from controller to c...
by aterial
Fri Oct 06, 2017 6:13 am
Forum: Development
Topic: Creating firmware to emulate the Nintendo Switch Pro Controller
Replies: 19
Views: 33354

Re: Creating firmware to emulate the Nintendo Switch Pro Controller

Here ya go! http://www62.zippyshare.com/v/Z84A6Bv9/file.html All of the dumps are taken from a cold start of the controller connected directly by wire to the rpi that's acting as the host, so if there's any authentication it should be easy to tell. capture_enable_and_disable_gyro.pcap were me enabli...