rolandoislas / drc-sim

Wii U Gamepad Simulator Backend
Other
167 stars 33 forks source link

Can't reconnect to Wii U despite using Panda N600 #52

Open nasianthewasian opened 6 years ago

nasianthewasian commented 6 years ago

I got a successful pairing and server start with the mobile client after I first connected to the Wii U. I'm running DRC Sim Server 2.0 and Ubuntu 16.04 on a VirtualBox with macOS 10.9.5. I'm having a tough time accessing the specific logs, as I've already given myself access to /root as well as looking in the actual root for these logs without finding any. The Panda N600 does support AP but it seems to be having a problem with that for some reason. Virtualbox successfully captures the device and has it listed as Ralink 802.11 n WLAN. If I try to pair right now, it'll work fine. If I try to start the server at all, though, it just cuts off the Wii U connection and if I start it and wait, it'll hang on the scanning and waiting phase then say no Wii U found. Sometimes I get an error about wpa_supplicant_drc instead if I make no successful attempt to pair. I'm a Linux noob so I may be missing something.

UPDATE: I forgot that the log button on the GUI shows multiple logs. Here's the output: ==> /root/.drc-sim/log/drcsim.log <== 2018-03-27 17:06:44,194 INFO:drcsim Initializing drc-sim-backend version 2.0 2018-03-27 17:06:44,195 INFO:drcsim Using "/root/.drc-sim/" as home folder. 2018-03-27 17:06:44,196 INFO:drcsim Enabling GUI

==> /root/.drc-sim/log/cli.log <==

==> /root/.drc-sim/log/gui.log <== 2018-03-27 17:06:44,423 INFO:gui Initializing GUI 2018-03-27 17:06:46,612 INFO:gui Opening GUI

==> /root/.drc-sim/log/wpa.log <== 2018-03-27 17:08:21,820 INFO:wpa Authenticated with the Wii U

==> /root/.drc-sim/log/backend.log <==

==> /root/.drc-sim/log/drc_sim_c.log <== 2018-03-27 15:03:01 INFO:CONFIG Region: na 2018-03-27 15:03:01 INFO:CONFIG Input delay: 100ms 2018-03-27 15:03:01 INFO:CONFIG Video quality: 75% 2018-03-27 15:03:01 INFO:CONFIG Video enabled: 1 2018-03-27 15:03:01 INFO:CONFIG Audio enabled: 1 2018-03-27 15:03:01 INFO:DRCSIM Initializing DRC Sim Server version 1.0.2 2018-03-27 15:03:01 INFO:DRCSIM Using "/root/.drc-sim/" as home folder. 2018-03-27 15:03:01 INFO:DRCSIM Starting backend 2018-03-27 15:03:01 INFO:DRCSIM Waiting for packets 2018-03-27 15:03:01 INFO:DRCSIM Received a Wii U packet

nasianthewasian commented 6 years ago

I also tried

sudo wpa_supplicant_drc -i -Dnl80211 -dd -c ~/.drc-sim/connect_to_wii_u.conf

There is no ~/.drc-sim/connect_to_wii_u.conf on my computer, and I don't see the .drc-sim folder in the file browser GUI. I used the install script.

rolandoislas commented 6 years ago

According to the drc_sim_c log, it manages to establish a connection with the Wii U.

The connect_to_wii_u.conf file is stored in /root/.drc-sim/. Using the tilde (~) may be pointing to another users home folder instead of root.

An interface name is missing from the wpa supplicant command. After the -i argument there should be the name of the interface to use (e.g. wlan0).

If wpa supplicant launches successfully and drc_sim_c (which can be executed as a normal user) runs fine the issue likely lies in the server GUI.