-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Portal Incompatibility? #12
Comments
It is documented that XBOX peripherals will not work. Xbox peripherals contain additional encryption hardware to tie them to the Xbox and cannot be used with other platforms and also prevent other platforms peripherals working with the Xbox. (apparently there is software about to talk to Xbox peripherals but it is not cross platform) The PS4 portal sounds like it is working. I assume you have a skylander on the portal. What is the command line arguments you are using. What operation are you wishing to perform? |
I entered the command: I also tried: I wanted to read in the character's data onto my PC. Preferably decrypted. I did run the program from an administrator console on Windows. I have installed the PS4 with the drivers and the device is recognized by Device Manager. I also used HidTest to verify that the Portal does show on the Device list. I am attempting to read the Giant Robot for Giants (I can't remember it's name) and a Crystal variant of Cynder for Swap Force. |
But have you compiled from the source code posted here for windows? Or are you using the version compiled by others running on the internet? How did you compile on windows? I just managed to compile on OSX ... |
I compiled the code using: as the Makefile.mingw file specified. The same issue with the PS4 portal still exists for me. |
Does it appear to crash out or exit normally? I'm sorry I don't know what indication you get when an application crashes in windows, do you get some sort of message or core dump? Do you end up with the .bin file as you specified (even if it is 0 bytes) |
I have never been able to get it to read from the portal under Windows
either.... I spent days trying to figure it out.
…On Tue, Nov 29, 2016, 9:53 PM Mark Heath ***@***.***> wrote:
Does it appear to crash out or exit normally? I'm sorry I don't know what
indication you get when an application crashes in windows, do you get some
sort of message or core dump? Do you end up with the .bin file as you
specified (even if it is 0 bytes)
Do you have a debugger you can run it under?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGFD4q_DXMcM_vRwwogZbLDgZNeEXbVks5rDPNEgaJpZM4K89TN>
.
|
This program doesn't get beyond "Found portal usb device" I tried the other Skylander Editor and it worked fine. Trap Team portal for PS4, Windows 7, Giants Robot. Data read in properly. No issues. |
Did you want me to make a debug version for you so we can find out why this version isn't working or are you happy with the other version? |
I woudn't mind using a debug version to determine what's going on here. Even that old version that you probably used as the code base, has issues reading data sometimes. And that's with the PS4 portal. If I can help debug/fix problems, I will be quite happy to get it to happen. |
I've started a debug branch, I've put some messages in the most likely places it is failing. See if it builds and let me know what the output of this version is. Can you run it with the "-l" option ? |
I compiled the Debug branch and this is the message I got: Found portal usb device The PortalIO:Write messages repeats constantly. I am using the PS4 Trap Team Portal with Cynder (Giants) for the first read test and Spyro (Adventures) for the second read test. Having no Skylander on the Portal, causes the same messages. Edit: |
I've narrowed it down. It appears that the code is waiting for the correct response from the portal. I do not know what the portal is responding with nor do I know why the expected response isn't received. I've added more debugging to print out the response from the portal. However it might be a peculiarity with the PS4 portal. |
I used a PS3/Wii portal for Swap Force. Command I used: Message from the Console: Found portal usb device
The PS4 Trap Team Portal gave me a longer but still repeating console message. The Xbox 360 Portals require special Driver software. To get them to work. Unsure if I should try them at all. I have the drivers if you want me to give that a try as well. |
It appears that the portal is sending back a status response and not a query skylander response. I've restored some code that is supposed to activate the portal first. Maybe it might help. |
The portal still does not behave as it should. Same error messages as before. Edit: "The protoocol couldn't be simpler -- the first byte of the data is a However, I wasn't able to find 0B 14 being sent along with the command characters. Could that be the reason it won't read? I know for sure that I am using Wired Portals. |
i figured out why some portals are not working. a swap-force/Superchargers portal with send following status: i think you have to send something to the portal to change the device status. |
I'm having the same issue with a superchargers portal. I'm not sure what @capull0 is referring to as "always sends...". Is this the device descriptor packet dumped in hex? EDIT: I found the SkylandersGUITool which seems to have no issues whatsoever communicating with this portal. Fired up USBlyzer to check out the differences, it doesn't look like hidapi is working correctly. hid_write specifically is sending a bulk transfer write instead of a Class Interface SetReport. I suspect this is the reason calls are now failing - at some point they may have removed support for the bulk transfer endpoint. Looking into whether it's possible to modify hidapi (hid_win.c specifically) to get this working. EDIT2: Found the solution. MSDN Documentation is somewhat lacking in this area (somewhat expected, given the low level of work). The windows implementation of hidapi uses WriteFile to implement hid_write which is translated into a bulk transfer operation. The library seems to be entirely missing a separate way of writing smaller requests - the closest is hid_send_feature_report. I'm not exactly a USB expert but I think there are differences between feature reports and other report types (the difference between HidD_SetOutputReport and HidD_SetFeature, I'd imagine). This can easily be fixed by a patch to hid_win.c, I'll try to put together a Pull Request once I fix some other things that are broken. |
thanks SpiderSensei for the hint. i figured out the problem. But all other portals, for example from Superchargers doesn't reply to "Interrupt Transfer".
|
Now if I could patch and test this on OSX. Has this been reported to libhid? |
i created a pull request libhid is not the issue. most of the skylanders portals don't like interrupt transfer. |
I got to work SkyReader on Windows 10 64 bit! my video proof |
I can confirm that the version from capull0 works on my Win10 64bit as well. |
I having trouble getting the editor to work correctly. I have tried a Swap Force portal for XBox 360 and a Trap Team portal for PS4, and neither one works correctly.
The XBox 360 portal isn't found by the editor.
The PS4 Portal does identify but, it doesn't read any character data.
The PS4 Console log says, "Reading Skylander"
Then it says,
"Found portal usb device"
Then nothing happens
Is there a particular portal I should use to make this work? What Game and System?
The text was updated successfully, but these errors were encountered: