nettymk2 / wjoy

Automatically exported from code.google.com/p/wjoy
0 stars 0 forks source link

Crash discovering Wii U Wiimote #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Application detects the Wii U Wiimote and attempts to pair with it, becomes 
unresponsive for a while and then crashes. test.app behaves in the same way.

Using  0.5.1 and OS X 10.8.2. Attaching test.app's crash log and what it 
displays right before crashing.

Console also shows:
Jan  3 01:24:42 supernova kernel[0]: 
[IOBluetoothHIDDriver][getDevicePropertiesWL][40-f4-07-c3-dd-b4] Error 
retrieving device properties.
Jan  3 01:24:42 supernova kernel[0]: [IOBluetoothHIDDriver][probe] Couldn't 
retrieve device properties
Jan  3 01:25:02 supernova kernel[0]: [SendHCIRequestFormatted] ### ERROR: 
[0x0406] (Disconnect) -- Send request failed (err = 0x0010 
(kBluetoothHCIErrorHostTimeout))
Jan  3 01:25:02 supernova kernel[0]: ### ERROR: send request failed (err=0x0010 
(kBluetoothHCIErrorHostTimeout))
Jan  3 01:25:02 supernova kernel[0]: IOBluetoothDevice::sendL2CAPPacket() -- 
After waited for 15 seconds, ACL packet has timed out!

Original issue reported on code.google.com by miguelpontes on 3 Jan 2013 at 1:27

GoogleCodeExporter commented 8 years ago
Hello, Miguel.

It's very strange behaviour: WJoy and Wii U Wiimote is not compatible, and (i 
hope) WJoy can't detect Wii U controller. But, may be Nintendo assign to Wii U 
and Wii remotes same names? I can't verify this.

But I was able to reproduce this crash with original Wii Remote, and I fixed 
it. I attached new build of test application. Can you test it? :)

PS: thanks for you feedback :)

Original comment by alexandr.serkov on 5 Jan 2013 at 8:35

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This is the Wii U Wiimote, not the Wii U Gamepad. The Wii U Wiimote is supposed 
to be compatible with a regular Wii, so hopefully WJoy could support it too.

I'll test that, thanks.

Original comment by miguelpontes on 5 Jan 2013 at 3:24

GoogleCodeExporter commented 8 years ago
Got this:

Begin discovery...
Wrapper created
Nintendo RVL-CNT-01-TR
(
    "<Wiimote: 0x7f9a3be24540>"
)
End discovery
Disconnected
(
)
Wrapper deleted

Original comment by miguelpontes on 5 Jan 2013 at 4:10

GoogleCodeExporter commented 8 years ago
Hmm... Looks like if you device disconnect itself. But i find and fix only 
crash. Can you test this contoller with original Wii or Wii U?

And, please, attach here this screen with you controller properties (may be 2 
:) ):

Original comment by alexandr.serkov on 5 Jan 2013 at 4:54

GoogleCodeExporter commented 8 years ago
Oh, I don't have the remote at all in my Bluetooth devices. Should I try to 
manually pair the device first?

I tried to replace the new Wiimote.framework in WJoy.app and the behavior is 
the same as test.app, Wiimote connects and then disconnects right after.

Original comment by miguelpontes on 5 Jan 2013 at 5:00

GoogleCodeExporter commented 8 years ago
Yes, try to pair the device. And replacing Wiimote.framework don't help - fixed 
only crash, but not diconnecting of device.

Original comment by alexandr.serkov on 5 Jan 2013 at 5:08

GoogleCodeExporter commented 8 years ago
Hm, it fails to pair at first, but if I hit "Passcode Options" and pick "No 
passcode," it pairs just fine.

Same connect/disconnect behavior, though.

Original comment by miguelpontes on 5 Jan 2013 at 5:12

GoogleCodeExporter commented 8 years ago
Could it be related to this?
http://wiibrew.org/wiki/Wiimote#Bluetooth_Communication

> The newer Wiimote RVL-CNT-01-TR shuts down immediately upon receiving any HID 
output report if it has been turned on using the 1 + 2 method, although it 
works using the sync button. It is possible that authentication is now 
mandatory for the 1 + 2 temporary sync[check].

Original comment by miguelpontes on 5 Jan 2013 at 5:13

GoogleCodeExporter commented 8 years ago
Yahoo, may be is it! I don't know about it. Can you test connecting with sync 
button? I have only old Wiimote (without TR) :(

Original comment by alexandr.serkov on 5 Jan 2013 at 5:18

GoogleCodeExporter commented 8 years ago
Aha, it works! Thanks, it seems like it paired perfectly now.

Original comment by miguelpontes on 5 Jan 2013 at 5:20

GoogleCodeExporter commented 8 years ago
Thank you for you help, i post this link to wiibrew.org on project page. Big 
thanks!

Original comment by alexandr.serkov on 5 Jan 2013 at 5:25