silicontrip / SkyReader

A Skylander portal reader/editor/writer for OSX.
87 stars 55 forks source link

"Cannot Find Portal USB" on Linux with WiiU portals #6

Open sinkillerj opened 9 years ago

sinkillerj commented 9 years ago

I have tried both a Swap Force portal, as well as a Giants portal, both fail to be located with the error "Cannot Find Portal USB.". The output of lsusb for the Giants portal is "Bus 002 Device 003: ID 1430:0150 RedOctane wireless receiver for skylanders wii".

The program works fine for editing a existing dump file, but portal interactions fail.

silicontrip commented 9 years ago

Does the usb test program produce any output? The device should show up as a HID. I've only tested this with the original skylanders wii portal. I'll have to look into the code to see if we can get any debug out of it to see whats different.

sinkillerj commented 9 years ago

The HIDAPI test tool GUI has it listed as: "1430:0150 - Activision Spyro Porta"

silicontrip commented 9 years ago

From the look of things everything should work, the vendor and device ID are correct. More debugging needs to be added to the code to investigate this further.

sinkillerj commented 9 years ago

Do let me know if you need me to do anything on my end to help with this, and thanks for the amazing work you have done on this tool.

silicontrip commented 9 years ago

I've added limited debugging messages. It should say if it finds the portal but can't open it. Which is what I believe is happening. If this is the case however, libhid doesn't give any causes for why it cannot open the usb device. Let me know if this version produces different output.

sinkillerj commented 9 years ago

You seam to be right on the money. As a normal user: http://pastebin.com/0L8K9ZvL As root: http://pastebin.com/dcEDu9mU

Now the only question is why its happening.

silicontrip commented 9 years ago

My first thought is permissions on the usb device. I'm not sure if there is a device under /dev for the usb. if there is, check it's permissions. looks like more debugging is needed to determine the cause of the write failures.

bbussiere commented 7 years ago

Hi,

I have the same issue, the HIDAPI test tool see the portal, but when I launch editor -l, I have : Found portal usb device Unable to write to Portal. I used capull0 fork compiled on m64 bit, because your makefile isn't compatible with Linux. I'm root and the /dev have all access.

Could you help me ?

Thanks in advance,

silicontrip commented 7 years ago

I recommend trying one of the linux forks. I tried to make the Makefile generic enough to work on any platform but I don't have a linux machine to test building it on.

concept8192 commented 7 years ago

I have absolutely no idea how to get this to work. It keeps saying 'Cannot find portal USB'. I think it's because I don't know what the heck HIDAPI is. I have hidapi.dll in System32, but i don't know what to do from there. Please help. My portal is a Wii Swap Force portal.

silicontrip commented 7 years ago

Hi there, I'm a bit confused because this thread is about getting it to compile under Linux but you've mentioned .dll and System32 which are windows specific. I didn't even think the Makefile would compile under windows. You may need to provide more information about how you've built it. And consider starting a new issue.

concept8192 commented 7 years ago

oh ok, sorry. I should've read the title all the way.