@ScruffR: thanks for your response.
The device id is correct. The <device_id>
also shows this id as 24 HEX number
Next strange is, that I have let my Electron alone for a few hours and now it doesnât show the cyan/red issue anymore. I read at the community, that sometimes the connection works with wrong keys (wrong public key). So I believe itâs just a coincidence that I works and the issue is not solved.
In [âŚ]\node_modules\particle-cli\keys are this two files:
There is no <device_id>_ec_new.der
file like the line spawning dfu-util -d 2b04:d00a -a 1 -i 0 -s 3106:leave -D <device_id>_ec_new.der
says. I found these key files in another directory (the location in cmd where I run the command ) Is this a problem? If yes, how to configure the cli to store the key files at the right directory?
I deleted these two files in \node_modules\particle-cli\keys and run keys doctor. This works. Running keys server command fails with the line:
Found DFU device 2b04:d00a
Make sure your device is in DFU mode (blinking yellow), and is connected to your computer
Error - Error: ENOENT: no such file or directory, stat 'C:\Users\Niklas\AppData\Roaming\npm\node_modules\particle-cli\keys\ec.pub.der'
So these two files are part of the server public key? I think so. Could they be deprecated? How to update them?
So I restore the backup of the public server keys back to its location. particle keys server
works again.
After cleaning up the wrong key directory (where all the key files are stored in past) and running the keys doctor in the particle-cli/keys dir, the cyan/red issue is disapeared and the key files are at the right dir. (âDisapearedâ is wrong because the issue was not there before because it goes away alone like described above - but comparing to my previous posts, the cyan/red issue appears after the keys doctor. So itâs a good progress )
So now it is clear how to get the correct keys on the electron. The problem why it lost it keys after some time is still there. Maybe their is a releation between these two problems. If in the past, the key doctor didnât transfer any keys to the devices + some random ⌠maybe.