raphnet / gc_n64_usb-v3

Gamecube/N64 to USB adapter firmware (3rd generation)
http://www.raphnet.net/electronique/gcn64_usb_adapter_gen3/index_en.php
GNU General Public License v3.0
42 stars 10 forks source link

Changing Modes #12

Closed Dignity1337 closed 10 months ago

Dignity1337 commented 10 months ago

Hi. I'm currently building one of the Raphnet GC/N64 to UISB V3 adapters using an Arduino Leonardo (ATmega32u4). Everything is working fine but I noticed an inconvenient behavior (maybe also not intened behavior or a bug) while changing modes. If I use the cmd to execute "gcn64ctl -f --set_mode 0" (Singleplayer) or "gcn64ctl -f --set_mode 16" (Dual Player), I need to disconnect and reconnect the USB cable to my PC so that the adapter gets recogniced correctly. I don't know if that is a bug or intended behavior but it would be definitely more conveniant if the change could be made without reconnecting the USB. Took me some hours to find this out. At first I thought it just wouldn't work at all (when executing the commands the only thing that changed inside the adapter manager were the adapter modes. But the adapter didn't actually used these modes until I learned that I had to reconnect).

raphnet commented 10 months ago

When using the command-line, use --reset to force the adapter to reboot into its new configuration. The adapter manager supports switching mode for some adapters and issues the reset command internally, so it's only one click. But on the command-line, well it's a manual extra step...

Just a though... Does the --reset command actually work on your Atemga32u4 setup? It's entirely possible that it does not!

Dignity1337 commented 10 months ago

Thanks a lot. That works just as expected. It would probably be useful for other people if you would mention it on your website here under the section „Personalities and multiplayer modes“: https://www.raphnet.net/electronique/gcn64_usb_adapter_gen3/index_en.php#9

raphnet commented 10 months ago

It is now mentioned, thank you for the suggestion!