Skip to content
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

Wireshark bluetooth controller dissector plugin #118

Merged
merged 2 commits into from
Feb 2, 2021

Conversation

Poohl
Copy link
Contributor

@Poohl Poohl commented Jan 31, 2021

Hi, i am working on understanding and reproducing the MCU's NFC functionality (mart1nro/joycontrol#89) and in the process wrote a wireshark plugin to dissect the Bluetooth communication between Joycon and switch.

I know that something similar already exists for traffic captured via usb implemented in LUA but i couldn't get the LUA API to do as I wanted, so this is implemented in C (also no elif chains).

If you want I can also supply a compiled version for ubuntu x64 that should be just as simple to use as the LUA one.

Currently the following is dissected:

  • Subcommands
  • Subcommand responses
  • SPI read & write
  • MCU request & response
  • NFC responses
  • input report type changes

and these only mark the appropiate fields:

  • set player lights
  • rumble

Beyond that the main thing obviously missing is marking of known constants as "expected".

The traffic this dissects is captured by using a PC running wireshark as proxy between the Switch and a Joycon (Pro Controller works, but overloads my laptops's bluetooth controller)

@dekuNukem dekuNukem merged commit 98c7f84 into dekuNukem:master Feb 2, 2021
fengjixuchui added a commit to fengjixuchui/Nintendo_Switch_Reverse_Engineering that referenced this pull request Feb 2, 2021
Merge pull request dekuNukem#118 from Poohl/nxbt_wireshark_plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants