Offline/Online does not seem to work any longer since going to the Photon

103 views
Skip to first unread message

Dataway

unread,
Nov 2, 2015, 11:34:14 AM11/2/15
to cubetalk
Hello All...

I took my cube outside of my network and put it in offline mode with the switch and my animation would not run the photon went into a green blinking state.  I then moved my cube back into range of my wifi and the light blue breathing light came on and all works fine.  When I was running the Core in my cube the offline/online would allow me to run my cube without having to connect to a network.

I did go through the steps to recover the Photon by holding the mode button for 3 seconds and got the blinking blue then used the particle app on my cell phone to try and reclaim it and I believe that app also has its issues as it went through the procedures of reclaiming a new photon and completed but the photon never became accessible.

Wanted to see if and how others are using their cubes outside of their home wifi ..

Thanks for any input...

John

Alex Hornstein

unread,
Nov 2, 2015, 12:23:55 PM11/2/15
to Dataway, cubetalk
Hey Dataway,
I actually just pushed a fix to this issue yesterday.  If you load a new program from cubetube, your online-offline switch should work correctly, now.

—alex

--
You received this message because you are subscribed to the Google Groups "cubetalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cubetalk+u...@googlegroups.com.
To post to this group, send email to cube...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cubetalk/c6ee0819-52ed-4534-888f-b4ae25b46f2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dataway

unread,
Nov 2, 2015, 2:43:45 PM11/2/15
to cubetalk
Great, Thanks Alex much appreciated I will give it a go, I just downloaded your demo post on the gallery ...

Dataway

unread,
Nov 2, 2015, 2:47:12 PM11/2/15
to cubetalk
Works perfect.....again have to say this is one of the best Kickstarter Campaigns I have been involved in....and a great community....

Thanks again Alex and the Whole Looking Glass Team...

John

Peter Chestna

unread,
Jan 20, 2016, 11:07:22 PM1/20/16
to cubetalk, jvasq...@gmail.com
Alex,

This is still a problem with FastLED. Can you explain what needs to happen in that library for this to work off of wifi?

Peter Chestna

unread,
Jan 20, 2016, 11:08:47 PM1/20/16
to cubetalk, jvasq...@gmail.com
Or is there something that I can include in my sketches that would fix the problem?

Alex Hornstein

unread,
Jan 21, 2016, 3:45:56 AM1/21/16
to Peter Chestna, cubetalk, jvasq...@gmail.com
Hi Peter,
Put this line at the top of your sketch: 
SYSTEM_THREAD(ENABLED);
SYSTEM_THREAD is a wonderful mode that particle introduced a few months ago that moves all the wifi connection activity to a separate thread, so that can happen in the background.  Cubetube automatically adds this line to the top of every sketch.
Once you have this in, get rid of SYSTEM_MODE(SEMI_AUTOMATIC) and any reference to the online/offline switch on the cube — just keep the photon in its mode basic mode where it tries to connect to wifi immediately at boot.  If there is wifi available, it’ll connect.  If there’s no wifi, it’ll start running your program immediately, and the wifi thread will keep looking for available wifi and periodically trying to connect in the background.
Particle documentation on SYSTEM_THREAD is up here.

—alex


Message has been deleted

Peter Chestna

unread,
Jan 21, 2016, 8:42:31 PM1/21/16
to cubetalk, peter....@gmail.com, jvasq...@gmail.com
Awesome. Thanks.
Reply all
Reply to author
Forward
0 new messages