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

Whatt's it all about? #1

Open
sorenoneill opened this issue Feb 11, 2022 · 2 comments
Open

Whatt's it all about? #1

sorenoneill opened this issue Feb 11, 2022 · 2 comments

Comments

@sorenoneill
Copy link

What does this actually do? Does it stream wii data as serial data or ...?

...the README doesn't make me any wiser...

@jy14898
Copy link
Owner

jy14898 commented Feb 13, 2022

I wrote this repo while at university to bridge Wiimote data from a Linux machine to a Windows machine, into the Unity game engine. This is because at the time, connecting Wiimotes to Windows via a standard Bluetooth adapter was troublesome, whereas on Linux it worked perfectly (via xwiimote).

The data is sent via a mix of websocket and UDP. UDP is used for the motion data, whereas websocket is used for the connection/disconnection of wiimotes and probably other things.

The data format is an adhoc binary format, encoded here: https://github.com/jy14898/xwiimote-server/blob/073bd6ce8d0a0a55dd36248b4caa4d6200f6f208/serverutils.py and decoded here: https://github.com/jy14898/xwiimote-server/blob/073bd6ce8d0a0a55dd36248b4caa4d6200f6f208/xwiimote-client/Assets/XWiimoteClient.cs

In the end, we did not use this solution as it was simpler in the end to purchase the 'mayflash wii remote sensor bar', which provides better drivers than a standard bluetooth adapter, and has the benefit of integrating the IR lights too.

@sorenoneill
Copy link
Author

Thanks for replying -- I'm on Linux and simply having issues with the python bindings, so your project is probably not going to help me :-)

Thanks for sharing though.

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

No branches or pull requests

2 participants