-
Notifications
You must be signed in to change notification settings - Fork 136
Test more fully with the Photon! #45
Comments
@dmiddlecamp @emilyrose what testing have we done with the Photon on |
I'm not aware of any specific photon testing so far on the local server, but we should expect all normal protocol bits to work. The photon more or less doesn't get any special accommodations server side except we skip requesting the describe payload before auto-update (which the local server doesn't do.) |
@kennethlimcp I'm guessing you've played with this - have you tried the Photon with |
I have not personally done any testing with spark-server yet, but am happy to when we decide to give it priority! |
@zsup i haven't done anything with Photon + spark-server but i can try things out :) |
@kennethlimcp would love your help if you've got a sec to play with it! |
Just tested and the handshake failed with:
|
Ah sure, that's a quick fix, thanks! Sent from my iPhone
|
I override the check here: https://github.com/spark/spark-protocol/blob/master/js/lib/Handshake.js#L343 Tested OTA which did not work. I think we need to wait for more tests to be done but for now i think the cloud functions should work (never tested) |
@kennethlimcp @emilyrose How to reproduce the issue:
After this call the LED changed to a fixed magenta color during aprox. 1s and then the photon was restarted (LED in white, then green, cyan, etc.). So it didn't start blinking in magenta as when the firmware is really being flashed. Do you have any timelines for a new spark-server release that support the OTA updates with the Photon?, or is there any workaround that could be applied to the spark-firmware (develop 0.4.3) or to the spark-server code to support OTA upgrades in the local cloud? Thanks!. |
Hi again. I have discovered that the fixed magenta color during aprox. 1s observed during the failing OTA update is similar to when the module manually enters in Ymodem mode by changing the USB device baudrate to 28800. I don't know if this comment helps or not... I'm just trying to understand why is the OTA update not currently working with the Photon in the local ☁️ 😞 |
I can't get the photon to work at all locally.. after commenting out the handshake check and then running key doctor (and placing the pub file in the right place): After loading a key unto my photon:
It sorta looks like it saved? There is an error at the bottom but dfu did write /something/:
|
Hey @lrburton |
@javier-rodas unless I'm missing something that's for local flashing -- I'm having issues connecting the photon to the local spark-server instance. The photon is running 0.4.3 fwiw. |
@lrburton just make sure to update both the modules and the main firmware before trying to connect to your local ☁️ as explained in the link I gave you. I would start trying only with the first step (with modules -> program-dfu, which rewrites 2 module firmware parts plus the default tinker app), and then I would try connecting to the global Particle ☁️ Then I would just update the public key and static IP of the local ☁️ in the Photon using:
where If you want to reverse the public key and use again the global Particle ☁️ you should use the der file that can be downloaded from here and update it without giving any IP address to this command:
Finally I would try with the second step (compiling from the main directory -> program-dfu), to write my own custom app in the Photon. |
I've got part1/part2/tinkervlatest of the 0.4.3 update on my 2 photons and they work fine with the public cloud. I reverted the one I had pointed at my local cloud with:
And it seems to work just fine on the public cloud -- the local server was throwing errors but the photon did breath cyan some of the time when connected to the local server. Attempting to move it back to my private cloud:
results in the errors I saw above (but with the photon breathing cyan except ever few seconds when it reconnects) after commenting out the check @ https://github.com/spark/spark-protocol/blob/827ded3f20d43fa0ffe2e092a2316998c8b4812d/js/lib/Handshake.js#L343 Unlike particle keys doctor (in my first post) all of the commands above completed entirely successfully according to their output. Are you using a different version of spark-server / spark-protocol? Or do you see something wrong with the above? Thanks, |
@lrburton In which operating system are you testing this? And, have you correctly installed all the dependences as commented in the README files of the spark-server, particle-cli and spark-firmware? Please review that, because in your log I see some problems related to the CoAP version:
|
Hi All, The photon firmware behaves slightly differently during the handshake, I'll be submitting a pull-request to the spark-protocol project hopefully today that should resolve the handshake errors you're seeing. Thanks! |
@javier-rodas Windows... I ran npm install as per the instructions in spark-server readme .. I don't have repo locally for spark-firmware but also ran npm to install particle-cli. Are the other dependencies I'm missing? Readme/Install don't say to have anything additionally.. |
I'd like to close out the photon / local cloud issues if possible. I've tested this recently and the photon seems to be working as expected. Can someone who was having this issue confirm it's fixed or still a problem? Thanks! |
httpError fix & move files
Things to include:
The text was updated successfully, but these errors were encountered: