[Solved]-Resetting previous claimed device using Windows machine

Solved -- I got it sorted out tonight doing the following:
I put in all the links I used but looks like I am only allowed to post up to 4 links as a new user.

went to photon troubleshooting
http://blog.jongallant.com/2015/08/particle-photon-setup-windows-putty.html

using windows and putty to connect to photon over usb serial connection
Download the putty executable from the INTERNET.
plug the photon into usb cable and into the usb port of the computer
Put photon in listening mode by pressing setup button (next to RX TX pins) for 4 seconds ( till it blinks blue. )
Open device manager for Windows. (one way on Windows 7 - click windows start button and - Type devmgmt.msc in the search or run box)
Under Action menu at the top of the device manager window select "Scan for hardware changes"
Look for photon device in device manager. (mine shows up under Ports (COM & LPT) as Poton (COM6))
Need to load the windows usb drivers for the photon device.
Install the Driver for photon (look for driver download on partical.io website as I could not put link here)
Unzip the Partical.zip files where you can find them (like in the download folder)
Right click the Photon item in the Device Manager window and select "update software dirver". Select to browse to the folder with the unzipped photon drivers in it and click next to update the drivers.
Open putty executable
Select the serial radial button
type in under serial line the name of the com port you saw in device manager (for me it is COM6)
click the open button (You will get a blank black terminal window which was confussing at first)
press the letter i on your keyboard and you should get back the device id number that looks like this:
Your device id is 27002b000851355531349411 (your number will be different of course)

w (to setup wireless)
ssid: WirelessNetworkName (is the name of your network )
Security 0=unsecured, 1=WEP, 2=WPA, 3=WPA2: 2 (lookup what version of security you are running on your wireless network router to be sure of what you have)
Password: MyWifiPasswordHere
Thanks! Wait while I save those credentials...

Awesome. Now we'll connect!

If you see a pulsing cyan light, your device
has connected to the Cloud and is ready to go!

If your LED flashes red or you encounter any other problems,
visit particle.io/support to debug.

Particle <3 you!

Trying to connect to the cloud fails and the device flashes several cyan and then red. This is my ongoing problem

If your LED flashes red or you encounter any other problems,
visit particalDOTio/support to debug. (can you figure out the real link?)

So it is in my case that I am having problems.
I go to particleDOTio/support

for this light pattern the support pages say to reset the public key
To do this I will do the following:

go to https://docs.particle.io/guide/tools-and-features/cli/photon/ Info is on this page
Get the particle CLI (command line interface) tool
I have windows so for me this is what I get:
See the link on this page to download the windows install file.
This is suppose to install node.js, partical-cli, and dfu-util
ParticleCLISetup will created a folder under my user name C:\Users\Jimmy\AppData\Local\particle\bin>

under advanced install it says to use key features I also need to get openssl.
I downloaded openssl already complied executable files for win32 in zip file from Index of /SSL and put the unzipped files into my folder C:\Users\Jimmy\AppData\Local\particle\bin>
I already have python installed and I don't think I need visual Studio since i think that was needed for the un-compiled install of openssl.
So If you don't have it I guess you need to install some version of python 2 (not version 3 or above)

The link below is suppose to have full details on windows install.

I installed nodejs using the link in the instructions to directory C:\Program Files\nodejs (default directory)
use the link on the tutorial page since I can't listed it here.

ran the following command from the command line to install nodejs particle-cli package
C:\Program Files\nodejs>npm install -g particle-cli
C:\Program Files\nodejs>npm update -g particle-cli (to update if needed to latest version)

I tried running login and it worked.
C:\Users\Jimmy\AppData\Local\particle\bin>particle login
? Please enter your email address MyEmailAddress@gmail.com
? Please enter your password ********

Successfully completed login!

Tried listing devices and that worked:
C:\Users\Jimmy\AppData\Local\particle\bin>particle list
remote_play [1e0029000b47353335703438] (Photon) is offline (This is my other Photon that is already working)

Ran the keys doctor tool suggested by ScruffR above and now it works!
C:\Users\Jimmy\AppData\Local\particle\bin>particle keys doctor 27002b000851355531349411
Found DFU device 2b04:d006
Found DFU device 2b04:d006
New Key Created!
Found DFU device 2b04:d006
Found DFU device 2b04:d006
Saved!
checking file 27002b000851355531349411_rsa_new.der
spawning dfu-util -d 2b04:d006 -a 1 -i 0 -s 34:leave -D 27002b000851355531349411_rsa_new.der
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Opening DFU capable USB device...
ID 2b04:d006
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #1 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "DCT Flash "
Downloading to address = 0x00000022, size = 610
Download [=========================] 100% 610 bytes
Download done.
File downloaded successfully
Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Saved!
attempting to add a new public key for device 27002b000851355531349411
submitting public key succeeded!
Okay! New keys in place, your device should restart.

Guess What! I was able to claim my device and it is breathing beautiful cyan right now.
Tinker is working and all is well in the world.
Thanks for the help.

2 Likes