I have a problem with a series of a product I have that is based on P1 modules. The error is the same for all PCB's in this batch, but no change have been made to the PCB layout for the P1 module in this iteration.
When setting up via App (both Android or iOS) it never gets past "Connecting to Photon". Using CLI (1.29.0 and 1.30.0), I will sometimes get this error:
{ Error: connect ENETUNREACH 192.168.0.1:5609 - Local (0.0.0.0:58288)
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at connect (net.js:884:16)
at net.js:973:9
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
code: 'ENETUNREACH',
errno: 'ENETUNREACH',
syscall: 'connect',
address: '192.168.0.1',
port: 5609 }
Your Photon encountered an error while trying to scan for nearby Wi-Fi networks. Retrying...
In some rare cases, setup via CLI works after getting a few of these errors and the scanning suddenly works. Using the Listen Mode Commands, I can input the wifi settings but upon saving it says:
"Derp. Sorry, we couldn't save the credentials."
What can cause this behaviour? It's a crisis for the company if this happens once the devices have been shipped to customers all over Europe...
Another possible error is that via CLI we almost set it all up, but once we send the wifi password, we get this:
! Something went wrong: Serial timed out
Potentially unhandled rejection [3] Serial timed out (WARNING: non-Error used)
Potentially unhandled rejection [4] Serial timed out (WARNING: non-Error used)
Update: This might be related! When running "particle identify", it does not identify properly. Instead of showing the full UID, it only shows the first 8 numbers of it like this:
$particle identify
Your device id is 24004900
Your system firmware version is 0.7.0
The number is obviously much longer, so this is definitely wrong...
Another update: device doctor fails in step 2:
Flash success!
The Doctor didn't complete sucesfully. undefined
Please visit our community forums for help with this error:
https://community.particle.io/
It successfully flashes, but then fails to do what it should and just hangs. If I skip this stage and go straight to the wifi setup, I get another error:
? Select how the device will be assigned an IP address Dynamic IP
Serial err: Error: Error: No such file or directory, cannot open /dev/tty.usbmodem14611
Serial problems, please reconnect the device.
The Doctor didn't complete sucesfully. undefined
Clearing EEPROM data also fails:
Clear all data in EEPROM storage
? Select Continue when ready Continue
The Doctor didn't complete sucesfully. "path" is not defined: undefined