Hi all,
As a first time user, I got my new particle photon yesterday. Setting it up via the mobile phone app on the iPhone was smooth. It is connected to the cloud alright.
When checking on the console webpage, it says under ‘Device OS’: unknown. (I thought that the photon comes with some basic FW / device OS pre installed?)
Anyway - flashing the Blinking LED code doesn’t work either, the IDE tells me “flash unsuccessfull”.
I grab myself through dozens of documents, and it all seems quite complicated. I for example still don’t know what the simpliest way is to install the FW only… (0.7.0 for example)
I can’t get my new Photon online - the app on the iPhone tells me that it is offline and that the setup isn’t complete.
When looking at the console, I get this:
No firmware is shown.
I can’t get it connected via DFU mode and USB whatever I try (I can get it flashing yellow without problem)
Thanks for your feedback Moors7.
I keep getting this message:
Stephan13Retina:~ jc$ particle update
!!! I was unable to detect any devices in DFU mode...
Your device will blink yellow when in DFU mode.
If your device is not blinking yellow, please:
Press and hold both the RESET/RST and MODE/SETUP buttons simultaneously.
Release only the RESET/RST button while continuing to hold the MODE/SETUP button.
Release the MODE/SETUP button once the device begins to blink yellow.
Stephan13Retina:~ jc$
I should mention that during the installation, I got into some endless loop:
I honestly don't quite understand what this means:
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp/8.11.4"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp"
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp/8.11.4"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp"
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp/8.11.4"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp"
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp/8.11.4"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp"
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp/8.11.4"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp"
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp/8.11.4"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp"
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp/8.11.4"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp"
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp/8.11.4"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/particle-cli/node_modules/serialport/.node-gyp"
^Z
After aborting, I reinstalled particle-cli and didn't get the above message:
1]+ Stopped sudo npm install -g particle-cli
Stephan13Retina:~ jc$ sudo npm install -g particle-cli
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
npm WARN deprecated parser-byte-length@1.0.2: renamed to @serialport/parser-byte-length
npm WARN deprecated parser-ready@1.0.2: reanmed to @serialport/parser-ready
npm WARN deprecated parser-cctalk@1.0.2: reanmed to @serialport/parser-cctalk
npm WARN deprecated parser-delimiter@1.0.2: reanmed to @serialport/parser-delimiter
npm WARN deprecated parser-readline@1.0.2: reanmed to @serialport/parser-readline
npm WARN deprecated parser-regex@1.0.2: reanmed to @serialport/parser-regex
/usr/local/bin/particle -> /usr/local/lib/node_modules/particle-cli/bin/particle.js
+ particle-cli@1.33.0
updated 1 package in 7.481s
Your CLI install is broken, and I think you have a Mac, so this is how to fix it:
Particle CLI Repair
If you get an error during Particle CLI installation or upgrade, or if you upgrade and the version remains unchanged at a lower version number, you may need to follow these steps to fix your Particle Command Line Interface install.
Mac or Linux
Open a Terminal window and run the command:
sudo npm uninstall -g particle-cli
If you get an error about npm not found, just continue onto the next step. This removes a previous manual install.
Reinstall the CLI using the Particle CLI installer for Mac or Linux:
Check the version of the installed CLI. The current version is 1.33.0.
particle --version
Make sure you do not use the npm install -g particle-cli or npm update -g particle-cli command as this will break your installation again. Instead, use:
particle upgrade-cli
The main difference between the Particle CLI installer and the old way is that the new way runs a separate copy of node.js just for the CLI, and also installs as the current user, instead of root.
If you get an older version or particle command not found
Check and see which particle you’re finding:
which particle
If you get one in /usr/local/bin/particle, remove it:
sudo rm /usr/local/bin/particle
If you still get particle command not found
Try reloading your .profile:
source ~/.profile
If that still does not solve the problem, double check that this is near the end of your ~/.profile file:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
Thanks a lot rickkas7 - I did as you suggested.
Fixed all according your suggestion.
I can login, my Particle is Offline however. Still I get this error when trying to use DFU mode:
(and yes, my LED flashes yellow)
Stephan13Retina:bin jc$ particle update-cli
Updating CLI... no plugins to update.
Stephan13Retina:bin jc$ particle list
You're not logged in. Please login using particle cloud login before using this command
Stephan13Retina:bin jc$ particle cloud login
? Please enter your email address johncoffee@gmail.com
? Please enter your password [hidden]
Successfully completed login!
Stephan13Retina:bin jc$ particle list
Hallos [270027000b47343432313031] (Photon) is offline
Stephan13Retina:bin jc$ particle update
!!! I was unable to detect any devices in DFU mode...
Your device will blink yellow when in DFU mode.
If your device is not blinking yellow, please:
Press and hold both the RESET/RST and MODE/SETUP buttons simultaneously.
Release only the RESET/RST button while continuing to hold the MODE/SETUP button.
Release the MODE/SETUP button once the device begins to blink yellow.
Holy moly!
It worked with the 4 th. cable !!! Thanks a lot Moors7 - I almost didn’t believe it.
Now I have done this:
Stephan15Retina:bin johncoffee$ particle update
> Your device is ready for a system update.
> This process should take about 50 seconds. Here it goes!
! System firmware update successfully completed!
> Your device should now restart automatically.
Stephan15Retina:bin johncoffee$
The photon flashes white / green / magenta continously. How can I continue now…
I tried to claim the unit again with my iphone app. It somehow doesn’t continue after I connected to the Photon Wifi. Before the app automatically asked me if I want to claim it etc…
Something might still not be as it should…
Can you help me again - thanks a lot for your patience.