Code Monkey home page Code Monkey logo

Comments (16)

bettse avatar bettse commented on August 26, 2024

Can you check the logs when you run it from xcode? It's been a while, but from what I recall turning on the switch should enable the advertising of the virtual portal, which Skylanders Trap Team iOS shoudl detect.

Being blank, I think that's because you don't have any tokens. Looking at the code (https://github.com/bettse/Solarbreeze/blob/master/Solarbreeze/Token.swift#L266-L284) I think you need to load .bin files of the skylanders via iTunes file sharing (iirc this is how I did it: https://support.readdle.com/documents/transfer-share-your-files/itunes). Just to head off a potential question: Don't ask me where to get those.

from solarbreeze.

bettse avatar bettse commented on August 26, 2024

Looking at the code, I think the "second" screen is for connecting to a real portal

from solarbreeze.

NefariousTechSupport avatar NefariousTechSupport commented on August 26, 2024

I uploaded a backup of one of my figures to solarbreeze via iTunes like you suggested and it was being picked up, so thank you for that :)
Trap Team still isn't picking up solarbreeze but I'll examine xcode logs for that shortly as some other work just came up. Thank you for your quick replies, especially on such an old project :)

from solarbreeze.

NefariousTechSupport avatar NefariousTechSupport commented on August 26, 2024

interestingly my ubuntu machine's picking up the device as Skylanders Portal as the code says it should, after experimenting more, i noticed it's not being picked up by other ios devices or windows computers.
Android worked though

from solarbreeze.

NefariousTechSupport avatar NefariousTechSupport commented on August 26, 2024

My other iOS device is an iPhone 7 on iOS 15.8.2

from solarbreeze.

NefariousTechSupport avatar NefariousTechSupport commented on August 26, 2024

xcode logs weren't really reporting anything, selecting a skylander showed S 4 bytes as well as some data about my figure, but since no device with the game on it was detecting my portal, i don't assume it's working, at least not as is.
Thank you so much, if you have any other suggestions then please do let me know, I'll explore making my own since this is very interesting stuff.

from solarbreeze.

bettse avatar bettse commented on August 26, 2024

mind posting the logs? did they show that it was advertising? did it give any indication the iOS device running the game was attempting to connect?

from solarbreeze.

NefariousTechSupport avatar NefariousTechSupport commented on August 26, 2024
SkylanderToken(7686709d - Spyro xp: 33000/0/0 gold: 9736) selected
S 4 bytes
S 4 bytes
SkylanderToken(7686709d - Spyro xp: 33000/0/0 gold: 9736) selected
S 4 bytes
S 4 bytes
SkylanderToken(7686709d - Spyro xp: 33000/0/0 gold: 9736) selected
S 4 bytes
S 4 bytes
SkylanderToken(7686709d - Spyro xp: 33000/0/0 gold: 9736) selected
S 4 bytes
S 4 bytes

from solarbreeze.

bettse avatar bettse commented on August 26, 2024

Ah: maybe try uncommenting some of the prints (ex https://github.com/bettse/Solarbreeze/blob/master/Solarbreeze/BLEPortal.swift#L28 ) that I have commented out

from solarbreeze.

NefariousTechSupport avatar NefariousTechSupport commented on August 26, 2024

Thanks, tried this, no difference in the console logs
Went ahead and uncommented everything and the only difference was a => 11 bytes following S 4 bytes
Keep in mind that I'm not using this to communicate with the portal but rather as an emulator

Also tried placing a breakpoint on that function (https://github.com/bettse/Solarbreeze/blob/master/Solarbreeze/BLEPortal.swift#L28) and it was never hit

Messing around with more breakpoints now to try and debug this as well

EDIT: gotta go, won't reply for a while

from solarbreeze.

bettse avatar bettse commented on August 26, 2024

I think I had it backwards and that might be still part of conecting to a real portal. Add print statements to https://github.com/bettse/Solarbreeze/blob/master/Solarbreeze/FakeBaseInterface.swift and that should show the ble advertisements starting when the switch is flipped.

from solarbreeze.

NefariousTechSupport avatar NefariousTechSupport commented on August 26, 2024

Yep it was showing that it is broadcasting, however when something tries to connect the XPC connection gets invalidated and it resets

I should also state that someone else got it working on two devices running i believe iOS 10

from solarbreeze.

bettse avatar bettse commented on August 26, 2024

I should also state that someone else got it working on two devices running i believe iOS 10

Good to hear

connect the XPC connection gets invalidated and it resets

Probably need to google to debug that one. Could it be permissions or entitlement or something? the code is from before they made developers add things to info.plist for BLE permission

from solarbreeze.

NefariousTechSupport avatar NefariousTechSupport commented on August 26, 2024

Will do! I'll reply to this thread if I get it working

from solarbreeze.

bettse avatar bettse commented on August 26, 2024

Does #4 basically close this?

from solarbreeze.

NefariousTechSupport avatar NefariousTechSupport commented on August 26, 2024

Yep :)

from solarbreeze.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.