-
Notifications
You must be signed in to change notification settings - Fork 31
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
Incompatibilities with Spark CLI 1.2.0 #61
Comments
cc @Resseguie |
Thanks for the report! |
@bryan-m-hughes I also noticed this issue. I have a Photon which needs a newer version of the cli for "particle setup" to work. It looks like an issue with voodospark and the "endpoint" action results in a 404. I saw some people suggest that I flash with the lastest version of voodospark but that ended in a trail of errors. I would love to help out but i'm not really sure where to proceed from here. |
@rwaldron do you have a photon yet? I don't, and without one in hand, I couldn't test and say what's going on. On an unrelated note: here's why we had to use an old version of the Spark CLI: particle-iot/particle-cli@a5ae0db |
I do, but when I first got it there was no cli that worked for it yet and I didn't have time resources to try and figure it out out. I just tried flashing voodoospark to the photon that I have and it doesn't work:
And...
I see
I don't quite understand what that change means for Spark CLI...? |
The cli command |
Oh, so the DFU thing...you have to hold down the reset and mode button, then release the reset button, and wait until it's flashing yellow (not flashing white) to put it in DFU mode (takes many seconds). Then that command should find it. |
Wow.
I can't spend any more time on this tonight. It's 8 o'clock and I have to start dinner for my wife and I soon |
You and your silly eastern time zone ;-) Enjoy dinner! |
@rwaldron haha, yeah I had to make dinner for my wife and 3 year old as well. Anyway, originally I flashed it successfully with |
@bryan-m-hughes with that "Core" -> "Spark Core" fix in on the CLI, the latest works with the Spark Core now? But something still not right with Photon? Am I tracking correctly? Hopefully I'll get my Photon soon so I can help test. |
@Resseguie that is my understanding, but admittedly I have not tested since the cli fix I referenced was landed, so I can't say with any confidence. |
@bryan-m-hughes confirmed! The core works with the cli fix referenced above. However, the Photon throws this error right away.
|
Ok, I got it to work! The issue was voodoospark and the setup() method. It worked on the core but bombed on the photon. With this patch I got it to work on both. I tested 2 cores and 2 photons. voodootikigod/voodoospark#45 |
@blackjk3 and you loaded spark-io successfully? |
@luke3butler yup. With the patch to voodoospark flashed on a core or photon spark-io works for me. Let me know if you have issues. |
Unfortunately I'm still waiting to receive my early bird photon. |
I am still unable to get spark-io working on my Photon. I've flashed the latest voodoospark firmware (with @blackjk3 patch) and get the following error when attempting to run the "Hello World" code (to blink D7).
|
@ericterpstra according to the docs 401 error code = "Unauthorized - Your access token is not valid." That is a good sign I think, since I was getting a 404 before. Can you verify that your access token is valid or refresh it from the particle IDE and try again? |
Yep, you are correct. My token expired. Generated a new one, and all is well. Thanks! |
Yippie! Glad it works. |
I was getting the same problem (401) and I re-generated my token, but now I get this error:
Running this as per the voodoospark page works fine: curl https://api.particle.io/v1/devices/{DEVICE-ID}/endpoint?access_token={ACCESS-TOKEN} |
Are you using a photon or core? |
Core |
|
Particle-cli, and I updated to the latest voodoospark before posting here. |
Thanks, I need as much information as possible and I didn't see it mentioned. Please paste the exact code you're using here, but delete your token and device id. |
Now I can't even get it to get to the point where I enter in the network password. Regardless of whether I have it autodetect the password, it freezes here:
|
Did you file that with particle-cli? |
Not yet. I'm going to try it again when I get home (where I was having the original problem) to verify it's not a wifi issue at work. |
When running Spark CLI 1.2.0, the only version that worked for us at JSConf, we had to flash voodoo spark with
spark flash [id] voodoo
, which is an older version of VoodooSpark. Our installation instructions are at https://github.com/opheliasdaisies/nodeboats-jsconf2015.When we flash the latest version straight from GitHub, we would get a 404 error very quickly (less than a second after startup). This error came from the call that spark-io makes to get the device info (not from a voodoospark call).
This doesn't really make sense, but it's what we observed ¯_(ツ)_/¯.
This issue is mostly to track the problems we ran into that wasn't purely Spark Core based.
The text was updated successfully, but these errors were encountered: