Project

General

Profile

Emulator Issues #5153

Add IOS passthrough for Wii USB devices.

Added by parlane over 9 years ago. Updated over 5 years ago.

Status:
Fixed
Priority:
Low
Assignee:
Category:
Controls
% Done:

0%

Operating system:
N/A
Issue type:
Feature request
Milestone:
Next
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Dolphin needs to support pass through for using real wii usb devices. This affects a lot of games. I am at the moment unsure how this can be achieved correctly.

Here are a few:
RFID Platform - Skylanders: Spyro's Adventure (working on this causes activision to send a frivilous C&D [http://brandonw.net/skylanders/activision.pdf])
Microphone - Boogie
Dancemat - Dance Dance Revolution: Hottest Party 1 & 2
Wiispeak - Quite a few games

This issue will serve as the main issue for all issues concerning using the real Wii USB peripherals with Dolphin.


Related issues

Has duplicate Emulator - Emulator Issues #4919: Skylander USB support.Duplicate

Has duplicate Emulator - Emulator Issues #6279: Wii Network - usb keyboard doesn't work online Monster Hunter TriDuplicate

History

#1 Updated by parlane over 9 years ago

issue 5079 has been merged into this issue.

#2 Updated by parlane over 9 years ago

issue 4919 has been merged into this issue.

#3 Updated by SandraV92301 over 9 years ago

source code for skylanders portal of power emulator

#4 Updated by Anonymous over 9 years ago

cool :)

#5 Updated by parlane over 9 years ago

Obviously we can't use that code or spec, and I have to do the work myself with regards to Skylanders. As Activision has claimed under the DMCA that the work brandon did was not "ok". I will do the work in NZ for figuring out how to get the portal working on Dolphin.

#6 Updated by SandraV92301 over 9 years ago

the emulator For The Portal Of Power itself was not the reason he got a DMCA Notice He Got That Notice Because He Also Hacked A Way For All Skylanders figures To Be Playable

#7 Updated by parlane over 9 years ago

"highly confidential encryption code" is referenced in the C&D. "unauthorised" decryption is referenced too. Which has nothing to do with faking characters, they are talking about the mere fact that he released details on how to decrypt the data.

#8 Updated by Anonymous over 9 years ago

md5 == highly confidential

#9 Updated by parlane over 9 years ago

  • Status changed from New to Work started

Started on /dev/usb/hid work.

#10 Updated by MofoMan2000 over 9 years ago

Don't forget Rock Band's instrument controllers.

#11 Updated by parlane about 9 years ago

Buy me some for testing :P

#12 Updated by sepp256 about 9 years ago

parlane: I saw your work on the Wii-HID branch. Can you give some instructions for testing it out? I have Wii RB2 drums and a USB mic that I could use to test with.

#13 Updated by parlane about 9 years ago

Do they appear as hid devices?

#14 Updated by peterjdb about 9 years ago

so what is your current progress on getting skylanders to work?

#15 Updated by parlane about 9 years ago

It works on Windows. But you have to install the libusb driver specifically for it. I am still working on networking at the same time, so this gets pushed back a bit.

#16 Updated by parlane about 9 years ago

At the moment for driver install:

Device Driver Installation

•Please use the latest release version.
•The device driver is distributed as a separate package which includes everything to use libusb-win32 for single devices as a normal device driver. The installation of the filter driver is not necessary any more!
•Log in as a user with administrator privileges.
•​Download the latest device driver binary package (libusb-win32-device-bin-x.x.x.x.zip or tar.gz).
•Extract it to a temporary directory.
•Use the INFWizard program to generate the INF file (modify the vendor and product IDs, strings etc). Create different inf-files to install different types of devices (devices with different IDs).

You should be able to find the right device in your device manager, once you have created the driver for libusb, go in to device manager, find your portal (can unplug and replug to find differences), right click, update driver, then choose your own which is the one you just created.

http://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/libusb-win32-devel-filter-1.2.6.0.exe/download

This is all temporary, for HID devices anyway. Hoping to port it to real HID lib soon.

#17 Updated by parlane about 9 years ago

I own a WiiSpeak now, which will come after I do HID functionality.

I also today ordered some weird EA Sports Active V2 that has a usb dongle, will be interesting to see what protocol that uses.

#18 Updated by obsidian17 almost 9 years ago

Really looking forward to this :) Speaking of the sports active dongle, some guys have bricked theirs by writing random data to it. The common idea is that they somehow clobbered data on the eeprom, maybe the physical address or whatnot.

#19 Updated by sebastien.aubry31 over 8 years ago

As Skylanders Giants is not to be released on PC (what a pity!), I really hope to see it work with Dolphin!

#20 Updated by parlane over 8 years ago

So A little update since March. I moved HID devices to use the HIDAPI, which I have had to customize to work with how the Wii talks to HID devices. (It likes to use the control interrupt instead of normal interrupt endpoints)

I have the Spyro portal working on Windows 7, plug and play! As in, no drivers needed.

Lots of fixes to do for the wii-HID branch though.

Need to remove hardcoded descriptors as currently only spyro works. And then linux + mac support.

#21 Updated by mbc07 over 8 years ago

what is the correct branch? wii-usb or wii-HID2?

#22 Updated by parlane over 8 years ago

wii-usb

HID2 will be deleted :)

#23 Updated by latestlinux over 8 years ago

parlane,

Just a quick word of encouragement: you Dolphin developers ROCK, in all my years of development I've never seen an emulator of this quality (save maybe Zsnes)! Know that your work is not in vain. Excellent job on this branch (just finished looking through the code diffs as I'm typing). Keep up the good work, and I'm happy to help test, especially on Linux (but have Mac and Windows 7 and XP environments here as well). I have a behemouth machine (Nvidia 670 SLI w/ 32GB ram - not an Athlon II like that other dude's post) here and I'm using the PC version of the portal (#84157790).

Is the wii-usb git-branch going to get merged back into mainline soon? What catalyst does the maintainer need before doing so?

#24 Updated by JoMaAb over 8 years ago

parlane,
if i buy the original skylander game an portal, could i use then with dolphin installing libusb?. What do i changes in infwizard?

#25 Updated by parlane over 8 years ago

I would not recommend it currently as I don't want you to buy something based on an unfinished modification to Dolphin.

Also libusb doesn't need to eb installed for Windows, as it comes prepackaged with Dolphin.

#26 Updated by dcquence over 8 years ago

Is 818 the last compile of wii-USB or was this merged back into the main?

#27 Updated by parlane over 8 years ago

Not in master yet, still quite a bit to do :)

#28 Updated by parlane over 8 years ago

Do we have any Mac users here with Skylanders?

#29 Updated by parlane over 8 years ago

  • Milestone set to 4.0

#30 Updated by hilts.vaughan about 8 years ago

Hi,

I have Skylanders and a Mac.

#31 Updated by jalpcremer about 8 years ago

Yes, me too (Mac + Skylanders, that is).

#32 Updated by 17waldth about 8 years ago

I have been looking around everywhere for an answer.. I played skylanders on my friend wii and want to play it on dolphin... I got the game on dolphin and the portal of power but the port doesn't work..Please help. Thanks

#33 Updated by 17waldth about 8 years ago

By the way Im on a windows 8 laptop if that makes a difference.

#34 Updated by fintremai almost 8 years ago

PLEASE I wanted to know where you are with this project I would like very much to play sckylanders Giants on win 7, thanks for your work

#35 Updated by ericmparham almost 8 years ago

Found the unpublished wii-usb branch. Looks like good work, thanks! Was this ever merged into another branch, such as the wii-network branch or the master branch?

In the following testing on my Win7 x64 box w/ i5 processor, 8GB, and Intel HD4000 graphics, I tried at least one usb portal-of-power for each (and up to 4 portals, including 1. pc wired usb, 2. wii wireless usb, 3. iMobile Bluetooth, and 4. 3DS wired usb):

dolphin-wii-usb-3.5-144-x64 Can't find the Portal of Power
dolphin-wii-usb-3.5-158-x64 BackPatch: no support for operand size 1 => crash
dolphin-wii-usb-3.5-159-x86 Hangs on Nintendo screen
Dolphin-wii-usb-3.5-159-x64 BackPatch: no support for operand size 1 => crash
Dolphin-win-x86-v3.5-367 Can't find the Portal of Power
Dolphin-win-x64-v3.5-367 Can't find the Portal of Power
Dolphin-wii-network-3.5-1382-x64 Black screen after Nintendo screen
Dolphin-master-3.5-1625-x64 Can't find the Portal of Power
Dolphin-master-3.5-1627-x64 Can't find the Portal of Power

Then noticed Spyro Portal was HID in Device Manager, so I used zadig_v2.0.1.160 to install USB driver from libusbk over HID driver for Spyro Portal.

dolphin-wii-usb-3.5-144-x64 Can't find the Portal of Power
dolphin-wii-usb-3.5-159-x86 Hangs on Nintendo screen
dolphin-wii-usb-3.5-158-x64 BackPatch: no support for operand size 1 => crash
Dolphin-master-3.5-1627-x64 Can't find the Portal of Power

Then used zadig to install USB driver from WinUSB instead.

dolphin-wii-usb-3.5-144-x64 Can't find the Portal of Power
Dolphin-wii-usb-3.5-159-x64 BackPatch: no support for operand size 1 => crash
Dolphin-master-3.5-1627-x64 Can't find the Portal of Power

#36 Updated by skidau almost 8 years ago

WinUSB driver with Dolphin-wii-usb-3.5-159-x64 should work (it worked for me, but it is slow at ~75% speed on i7-2600k 4.5ghz). I have a Wii wireless portal. Make sure your iso is dumped properly.

The MD5 of my PAL Skylanders Giants Wii ISO is:

b7aa37ff2f30fa04fc2c3161864b4f05

CRC32:

ac82ad16

#37 Updated by ericmparham almost 8 years ago

Thanks! I've got the USA NTSC version, although I wasn't able to dump it from my own disk. The MD5 infohash is a good match, though.

I've got 4 usb ports on my computer, so I installed different drivers for each and tested the 144-x64 and 159-x64 builds on each of the 4 port/driver combos (1. original HID, 2. libusbk, 3. libusb32, and 4. WinUSB), all with the same results as above. That is, Backpatch errors on the 159 build and can't find portal on the 144 build. Any ideas what to check next? Sounds like the 159 version should work if I could figure out the Backpatch errors...

#38 Updated by skidau almost 8 years ago

Try unplugging as many usb devices from your PC as you can.

#39 Updated by parlane almost 8 years ago

Yea there is a bug where if your pc has a certain type of usb device it adds bad data to the device list. Ill fix it this week and get it merged to master.

#40 Updated by ericmparham almost 8 years ago

Thanks again, but no luck. Tried the Wii wireless portal with same results. No other USB devices plugged in, and I temporarily disabled all clearly non-critical USBs in Device Manager. FWIW, the exact error message that I'm getting from Dolphin-wii-usb-3.5-159-x64 is:

BackPatch: no support for operand size 1

Error encountered accessing emulated address a0000000,
Culprit instruction:
movzx eax, byte ptr ds:[rbx+rcx]
at 0x1311fdee

Yikes, looks like assembly language...

#41 Updated by ericmparham almost 8 years ago

Oh, missed your post parlane. Thanks very much!

#42 Updated by parlane almost 8 years ago

It is, it causes an overflow in the Wii PPC being emulated. sorry.

#43 Updated by delroth almost 8 years ago

  • Milestone changed from 4.0 to Current

@Parlane: status of this issue for 4.0?

#44 Updated by parlane over 7 years ago

Comex appears to be working on this.

#45 Updated by CPSTjim over 7 years ago

Activision released a PC/Mac version of Skylanders: Spyro's Adventure which included a wireless Portal of Power with a dongle. Is it possible to just pull out, or reverse engineer their own USB driver? The Spyro's Portal works fine in Giants, so this might be the easy(er) answer. Another possibility is that Activision released Skylanders: Battlegrounds for IOS which includes a Bluetooth Portal. Might the Bluetooth Portal be easier to support than a USB Portal? Especially as IOS has direct roots in OSX.

While I'm not a Dev or programmer, I do own a 2010 Mac Mini that I use as my media server and both Spyro's and Giants (Will have Swap Force next month too.) for the Wii, so I am more than willing to play test things. Daddy wants his living room TV back!

#46 Updated by pauldacheez over 7 years ago

IOS on the Wii != iOS on your iPhone. They're in no way related. And the Wii USB portals are already working in Dolphin - parlane and comex just need to finish up their work and merge it into master (hopefully before 4.0's released).

Besides, the point is to allow you to plug in any Wii USB device, not just the various Skylanders portals. Dolphin's a GC/Wii emulator, not a Skylanders emulator.

#47 Updated by delroth over 7 years ago

  • Milestone changed from Current to Next

Post-4.0.

#48 Updated by delroth over 7 years ago

  • Milestone changed from Next to Current

4.0 was released, moving Milestone-Next to Milestone-Current.

#49 Updated by SRoth96 over 7 years ago

I need help. I had skylanders working properly on my old AMD Phenom II X4 based system. I have replaced it with an Intel Haswell based system, and now I can't get Dolphin to detect the portal.

It's a clean install of Windows 7 SP1 64-bit. I'm using Dolphin [wii-usb] 3.5-159. I used zadig to install the libusbk driver, and device manager says it's working properly. When I start any Skylanders game, everything works flawlessly until I press (A) at the title screen. That's when the game says "cannot detect the portal of power". There is no Dolphin error. I wish it was just a backpatch error because then I would know I just have to unplug something (just like my old PC).

Please help. I really don't want to wait for the next milestone after 4.0.
Plus I think I would probably have this same problem even if it was in the master branch.

#50 Updated by skidau over 7 years ago

SRoth96, it wasn't clear from your comment whether you tried Dolphin 4.0 or just [wii-usb] 3.5-159. If not, please try the portal with Dolphin 4.0.

#51 Updated by parlane over 7 years ago

Why is this cc: comex ?

#52 Updated by SRoth96 over 7 years ago

Just Tried 4.0-90-x64. No change.

#53 Updated by parlane over 7 years ago

On zadig use winusb instead of libusbk

#54 Updated by SRoth96 over 7 years ago

I tried WinUSB on both versions; same problem.
Don't know if this helps, usb id is 1430 0150.

#55 Updated by parlane over 7 years ago

Make a new issue with all your specifics please. And follow the template as much as possible.

#56 Updated by MofoMan2000 over 7 years ago

I'm not exactly sure how USB passthrough works on VirtualBox, but they have it. You shouldn't have to code anything specific, just let people plug USB devices into their computer and allow them to tell the emulator it should be considered as connected to the emulated Wii.

#57 Updated by mbc07 over 7 years ago

Wii USB has already been merged to master... It has been merged to wii-network and then wii-network was merged to master

#58 Updated by delroth about 7 years ago

@Parlane: status of this issue? Can it be closed?

#59 Updated by parlane about 7 years ago

It's not done. comex got most of the way but got bored I guess and had lost his Spyro dongle :(

#60 Updated by SRoth96 about 7 years ago

Not done? what's left then? It would be really helpful if I could tell dolphin what device to use for the portal because it does not see it on my new PC. (Worked on my old one which was to slow to run wii games)

#61 Updated by abomination.an about 7 years ago

so, is this still being worked on?

#62 Updated by jdcpent about 7 years ago

Has the portal and slowdown problem been fixed or worked around for skylanders giants to work with dolphin. I have been able to get it to work using the newest 4.0 release and changing hid to winusb but it lags so bad that it is unplayable. Any new results for this ??

#63 Updated by delroth almost 7 years ago

  • Milestone changed from Current to Next

Moving to next milestone since these issues are not critical to a new release.

If you feel strongly about this issue and want it to block the next Dolphin release, please assign yourself as owner and re-add Milestone-Current.

#64 Updated by JMC4789 almost 6 years ago

issue 8802 has been merged into this issue.

#65 Updated by JMC4789 almost 6 years ago

issue 6279 has been merged into this issue.

#66 Updated by JMC4789 almost 6 years ago

issue 6701 has been merged into this issue.

#67 Updated by JosJuice over 5 years ago

  • Has duplicate Emulator Issues #9199: Jenny McCarthy's Your Shape Featuring Self Acclaimed Health Genius Jenny McCarthy - Camera Add-on Not Supported added

#68 Updated by JosJuice over 5 years ago

  • Status changed from Work started to Fixed

USB passthrough is supported, but not for microphones (issue 5079) and some other devices (issue 9199). https://dolphin-emu.org/blog/2016/01/26/wii-usb-hid-support/

#69 Updated by JosJuice over 5 years ago

  • Has duplicate deleted (Emulator Issues #9199: Jenny McCarthy's Your Shape Featuring Self Acclaimed Health Genius Jenny McCarthy - Camera Add-on Not Supported)

#70 Updated by JosJuice over 5 years ago

#71 Updated by JosJuice over 5 years ago

#72 Updated by JosJuice over 5 years ago

Also available in: Atom PDF