Project

General

Profile

Actions

Emulator Issues #5153

closed

Add IOS passthrough for Wii USB devices.

Added by parlane about 12 years ago. Updated about 8 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 2 (0 open2 closed)

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

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

Actions
Actions #1

Updated by parlane about 12 years ago

Issue 5079 has been merged into this issue.

Actions #2

Updated by parlane about 12 years ago

Issue 4919 has been merged into this issue.

Actions #3

Updated by SandraV92301 about 12 years ago

source code for skylanders portal of power emulator

Actions #4

Updated by Anonymous about 12 years ago

cool :)

Actions #5

Updated by parlane about 12 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.

Actions #6

Updated by SandraV92301 about 12 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

Actions #7

Updated by parlane about 12 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.

Actions #8

Updated by Anonymous about 12 years ago

md5 == highly confidential

Actions #9

Updated by parlane about 12 years ago

  • Status changed from New to Work started

Started on /dev/usb/hid work.

Actions #10

Updated by MofoMan2000 about 12 years ago

Don't forget Rock Band's instrument controllers.

Actions #11

Updated by parlane about 12 years ago

Buy me some for testing :P

Actions #12

Updated by sepp256 about 12 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.

Actions #13

Updated by parlane about 12 years ago

Do they appear as hid devices?

Actions #14

Updated by peterjdb about 12 years ago

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

Actions #15

Updated by parlane about 12 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.

Actions #16

Updated by parlane about 12 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.

Actions #17

Updated by parlane about 12 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.

Actions #18

Updated by obsidian17 almost 12 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.

Actions #19

Updated by sebastien.aubry31 over 11 years ago

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

Actions #20

Updated by parlane over 11 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.

Actions #21

Updated by mbc07 over 11 years ago

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

Actions #22

Updated by parlane over 11 years ago

wii-usb

HID2 will be deleted :)

Actions #23

Updated by latestlinux over 11 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?

Actions #24

Updated by JoMaAb over 11 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?

Actions #25

Updated by parlane over 11 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.

Actions #26

Updated by dcquence over 11 years ago

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

Actions #27

Updated by parlane over 11 years ago

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

Actions #28

Updated by parlane over 11 years ago

Do we have any Mac users here with Skylanders?

Actions #29

Updated by parlane over 11 years ago

  • Milestone set to 4.0
Actions #30

Updated by hilts.vaughan about 11 years ago

Hi,

I have Skylanders and a Mac.

Actions #31

Updated by jalpcremer about 11 years ago

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

Actions #32

Updated by 17waldth about 11 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

Actions #33

Updated by 17waldth about 11 years ago

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

Actions #34

Updated by fintremai almost 11 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

Actions #35

Updated by ericmparham over 10 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

Actions #36

Updated by skidau over 10 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

Actions #37

Updated by ericmparham over 10 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...

Actions #38

Updated by skidau over 10 years ago

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

Actions #39

Updated by parlane over 10 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.

Actions #40

Updated by ericmparham over 10 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...

Actions #41

Updated by ericmparham over 10 years ago

Oh, missed your post parlane. Thanks very much!

Actions #42

Updated by parlane over 10 years ago

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

Actions #43

Updated by delroth over 10 years ago

  • Milestone changed from 4.0 to Current

@parlane: status of this issue for 4.0?

Actions #44

Updated by parlane over 10 years ago

Comex appears to be working on this.

Actions #45

Updated by CPSTjim over 10 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!

Actions #46

Updated by pauldacheez over 10 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.

Actions #47

Updated by delroth over 10 years ago

  • Milestone changed from Current to Next

Post-4.0.

Actions #48

Updated by delroth over 10 years ago

  • Milestone changed from Next to Current

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

Actions #49

Updated by SRoth96 over 10 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.

Actions #50

Updated by skidau over 10 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.

Actions #51

Updated by parlane over 10 years ago

Why is this cc: comex ?

Actions #52

Updated by SRoth96 over 10 years ago

Just Tried 4.0-90-x64. No change.

Actions #53

Updated by parlane over 10 years ago

On zadig use winusb instead of libusbk

Actions #54

Updated by SRoth96 over 10 years ago

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

Actions #55

Updated by parlane over 10 years ago

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

Actions #56

Updated by MofoMan2000 over 10 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.

Actions #57

Updated by mbc07 over 10 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

Actions #58

Updated by delroth about 10 years ago

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

Actions #59

Updated by parlane about 10 years ago

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

Actions #60

Updated by SRoth96 about 10 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)

Actions #61

Updated by abomination.an about 10 years ago

so, is this still being worked on?

Actions #62

Updated by jdcpent almost 10 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 ??

Actions #63

Updated by delroth almost 10 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.

Actions #64

Updated by JMC4789 over 8 years ago

Issue 8802 has been merged into this issue.

Actions #65

Updated by JMC4789 over 8 years ago

Issue 6279 has been merged into this issue.

Actions #66

Updated by JMC4789 over 8 years ago

Issue 6701 has been merged into this issue.

Actions #67

Updated by JosJuice over 8 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
Actions #68

Updated by JosJuice about 8 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/

Actions #69

Updated by JosJuice about 8 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)
Actions #70

Updated by JosJuice about 8 years ago

Actions #71

Updated by JosJuice about 8 years ago

Actions #72

Updated by JosJuice about 8 years ago

Actions

Also available in: Atom PDF