project-hermes / hermes-sensor

:no_entry:Depreciated:no_entry:
MIT License
0 stars 2 forks source link

Particle board is not connect to the cloud #36

Closed sonyccd closed 6 years ago

sonyccd commented 6 years ago

The device is flashing blue very fast. The serial log shows it is trying to send HELLO but fails and keeps looping in this fail. Have tried the doctor to no success. Please help as we are doing field trials soon.

Logs are:

0000002065 [system] INFO: Sim Ready
0000002065 [system] INFO: ARM_WLAN_WD 1
0000002436 [system] INFO: ARM_WLAN_WD 2
0000002436 [system] INFO: CLR_WLAN_WD 1, DHCP success
0000002441 [system] WARN: Public Server Key was blank, restoring.
0000002443 [comm] INFO: channel inited
0000002444 [system] INFO: Cloud: connecting
0000002445 [system] WARN: Public Server Address was blank, restoring.
0000002445 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0000004939 [system] INFO: Resolved host 1e0034001847373130353639.udp.particle.io to 54.157.13.160
0000005029 [system] INFO: Cloud socket connected
0000005029 [system] INFO: Starting handshake: presense_announce=0
0000005030 [comm.protocol.handshake] INFO: Establish secure connection
0000005039 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0000010642 [comm.protocol.handshake] INFO: Sending HELLO message
0000079000 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 0
0000079000 [comm.protocol.handshake] ERROR: Could not send HELLO message: 10
0000079001 [system] INFO: Send event spark/device/key/error=5
0000079001 [system] WARN: Cloud handshake failed, code=10
0000079251 [system] INFO: Cloud: disconnecting
0000080781 [system] INFO: Cloud: disconnected
0000080781 [system] INFO: Cloud: connecting
0000080782 [system] WARN: Public Server Address was blank, restoring.
0000080783 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0000083176 [system] INFO: Resolved host 1e0034001847373130353639.udp.particle.io to 54.157.249.252
0000083196 [system] INFO: Cloud socket connected
0000083197 [system] INFO: Starting handshake: presense_announce=0
0000083197 [comm.protocol.handshake] INFO: Establish secure connection
0000083206 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0000088791 [comm.protocol.handshake] INFO: Sending HELLO message

It will loop like this over and over.

Have talked with the support they think it is a corrupted key.

There solutions is as follows:

It is possible that you have corrupted device keys. Since it's easy to fix them, it's a good thing to start with.

Put the Electron in DFU mode by holding down both the RESET and MODE buttons, releasing RESET and continuing to hold down MODE until it blinks yellow and issue the commands below, in order.

particle keys server
particle keys doctor 1e0034001847373130353639
If you get this error under Windows:

'openssl' is not recognized as an internal or external command, operable program or batch file.
and you have used the CLI installer as described above, it may work if you do:

cd c:\OpenSSL-Win32\bin
particle keys doctor 1e0034001847373130353639
There are additional tips for a missing openssl error on this page, including tips for Mac OS X and Linux.
sonyccd commented 6 years ago

That appears to have solved the problem.