Hello,
In short it’s failing to connect to WiFi. I tried setting it in safe mode but the problem still persists. I am not sure what happened all of a sudden. It was working fine before. I flashed the same firmware on a different device and it works fine. My P1 is reporting the following log on the console when it boots up.
Any ideas to debug this?
0000021119 [system] INFO: Starting handshake: presense_announce=1
0000021121 [comm.sparkprotocol.handshake] INFO: Started: Receive nonce
0000021208 [comm.sparkprotocol.handshake] INFO: Encrypting handshake nonce
0000021280 [comm.sparkprotocol.handshake] INFO: Sending encrypted nonce
0000021283 [comm.sparkprotocol.handshake] INFO: Receive key
0000021386 [comm.sparkprotocol.handshake] ERROR: Unable to receive key -19
0000021386 [system] WARN: Cloud handshake failed, code=-19
0000021636 [system] INFO: Cloud: disconnecting
0000021637 [system] INFO: Cloud: disconnected
0000023437 [system] INFO: Cloud: connecting
0000023437 [system] WARN: Read Server Address = type:255,defaulting to device.spark.io
0000023451 [system] INFO: Resolved host device.spark.io to 107.22.156.56
0000023536 [system] INFO: connected to cloud 107.22.156.56:5683
0000023536 [system] INFO: Cloud socket connected
0000023536 [system] INFO: Starting handshake: presense_announce=1
0000023538 [comm.sparkprotocol.handshake] INFO: Started: Receive nonce
0000023623 [comm.sparkprotocol.handshake] INFO: Encrypting handshake nonce
0000023695 [comm.sparkprotocol.handshake] INFO: Sending encrypted nonce
0000023698 [comm.sparkprotocol.handshake] INFO: Receive key
0000023783 [comm.sparkprotocol.handshake] ERROR: Unable to receive key -19
0000023783 [system] WARN: Cloud handshake failed, code=-19
0000024034 [system] INFO: Cloud: disconnecting
0000024035 [system] INFO: Cloud: disconnected
0000025835 [system] INFO: Cloud: connecting
0000025835 [system] WARN: Read Server Address = type:255,defaulting to device.spark.io
0000025848 [system] INFO: Resolved host device.spark.io to 107.22.156.56
0000025937 [system] INFO: connected to cloud 107.22.156.56:5683
0000025939 [system] INFO: Cloud socket connected
0000025939 [system] INFO: Starting handshake: presense_announce=1
0000025939 [comm.sparkprotocol.handshake] INFO: Started: Receive nonce
0000026028 [comm.sparkprotocol.handshake] INFO: Encrypting handshake nonce
0000026102 [comm.sparkprotocol.handshake] INFO: Sending encrypted nonce
0000026104 [comm.sparkprotocol.handshake] INFO: Receive key
0000026220 [comm.sparkprotocol.handshake] ERROR: Unable to receive key -19
0000026220 [system] WARN: Cloud handshake failed, code=-19
0000026471 [system] INFO: Cloud: disconnecting
0000026472 [system] INFO: Cloud: disconnected
0000028272 [system] INFO: Cloud: connecting
0000028272 [system] WARN: Read Server Address = type:255,defaulting to device.spark.io
0000028279 [system] INFO: Resolved host device.spark.io to 107.22.156.56
0000028364 [system] INFO: connected to cloud 107.22.156.56:5683
0000028364 [system] INFO: Cloud socket connected
0000028364 [system] INFO: Starting handshake: presense_announce=1
0000028366 [comm.sparkprotocol.handshake] INFO: Started: Receive nonce
0000028449 [comm.sparkprotocol.handshake] INFO: Encrypting handshake nonce
0000028521 [comm.sparkprotocol.handshake] INFO: Sending encrypted nonce
0000028524 [comm.sparkprotocol.handshake] INFO: Receive key
0000028608 [comm.sparkprotocol.handshake] ERROR: Unable to receive key -19
0000028608 [system] WARN: Cloud handshake failed, code=-19
0000028858 [system] INFO: Cloud: disconnecting
0000028859 [system] INFO: Cloud: disconnected
0000030702 [system] INFO: Cloud: connecting
0000030702 [system] WARN: Read Server Address = type:255,defaulting to device.spark.io
0000030712 [system] INFO: Resolved host device.spark.io to 107.22.156.56
0000030801 [system] INFO: connected to cloud 107.22.156.56:5683
0000030801 [system] INFO: Cloud socket connected
0000030801 [system] INFO: Starting handshake: presense_announce=1
0000030803 [comm.sparkprotocol.handshake] INFO: Started: Receive nonce
0000030902 [comm.sparkprotocol.handshake] INFO: Encrypting handshake nonce
0000030974 [comm.sparkprotocol.handshake] INFO: Sending encrypted nonce
0000030977 [comm.sparkprotocol.handshake] INFO: Receive key
Thanks
Dheeraj