Hi,
I have a Photon 2 that I've just started using that is having issues connecting and staying connected to wifi.
It was recently on 5.8.0, and I locally flashed 5.8.2 onto it. It immediately started having these issues. It usually shows up as the fast blinking cyan happening for a long time, then going back to blinking green. The log shows it's mostly hanging on "establishing secure connection" and then disconnecting. Sometimes it does connect, other times it just retries, but then always disconnecting pretty soon after.
After flashing it did hang, and unfortunately i wasnt able to count all of the red flashes, but it did get reset by my 60s hw wdt and then I've not seen it fault since.
I do notice that it takes longer to connect my other Photon 2s to this network in my office when compared to home. It may just be congestion or the network is set up in a way that makes it take longer compared to my home network.
To dig deeper on if the wifi network was somehow the issue, I had it connect to my phone's wifi and it seems to work fine... So I guess my question is what should I ask or look for in my workspace's wifi settings that would cause this issue? I'll see what info I can get from the workspace management but I'm not sure what else I can check from my end. Still - I don't know why it's having issues on 5.8.2 when it didn't seem to have these issues on 5.8.0.
Here's particle serial inspect
Device: 0a10aced202194944a059060
Platform: 32 - Photon 2 / P2
Modules
Bootloader module #0 - version 2601
Size: 56.34 kB / MaxSize: 65.536 kB
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
Bootloader module #2 - version 8
Bootloader module #1 - version 2
Size: 4.204 kB / MaxSize: 8.192 kB
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
Bootloader module #2 - version 8
Size: 79.188 kB / MaxSize: 303.104 kB
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System part module #1 - version 5802
Size: 1213.788 kB / MaxSize: 1572.864 kB
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
Bootloader module #0 - version 2601
User part module #1 - version 6
Size: 127.256 kB / MaxSize: 1572.864 kB
UUID: 69ff25ca917a7cac415336487f78a5755d0b148500daa7022e671780baf36b63
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System part module #1 - version 5802
Asset Dependencies:
Required:
CBS_5_1_5_C.cyacd (PASS)
CBT_5_0_6_C.cyacd (PASS)
PC_5_0_3_C.cyacd (PASS)
PO_5_0_4_C.cyacd (PASS)
PS_5_0_2_C.cyacd (PASS)
Big log dump below, removed my [app] entries. All from when the Photon 2 was connected to the workspace wifi.
C:\>particle serial monitor --follow
Polling for available serial device...Opening serial monitor for com port: " COM11 "
Serial monitor opened successfully:
0000036194 [ncp.rltk.client] TRACE: Disconnected
0000036195 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000036196 [net.rltkncp] TRACE: NCP event 2
0000036197 [net.rltkncp] TRACE: State changed event: 0
0000036199 [net.ifapi] INFO: Netif wl3 link DOWN, profile=NONE
0000036203 [net.ifapi] TRACE: Netif wl3 ipv4 configuration changed
0000036205 [system.nm] INFO: State changed: IP_CONFIGURED -> IFACE_LINK_UP
0000036209 [hal] INFO: DNS server list changed
0000036210 [hal] INFO: DNS server list changed
0000036214 [system.nm] INFO: State changed: IFACE_LINK_UP -> IFACE_UP
0000036238 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000036241 [net.rltkncp] TRACE: NCP event 2
0000036242 [net.rltkncp] TRACE: State changed event: 1
0000036243 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000047598 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000047600 [net.rltkncp] TRACE: NCP event 2
0000047601 [net.rltkncp] TRACE: State changed event: 0
0000048103 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000048105 [net.rltkncp] TRACE: NCP event 2
0000048106 [net.rltkncp] TRACE: State changed event: 1
0000048107 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000059462 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000059463 [net.rltkncp] TRACE: NCP event 2
0000059464 [net.rltkncp] TRACE: State changed event: 0
0000063778 [net.rltkncp] TRACE: Failed to connect to WiFi: -170
0000063779 [hal.ble] TRACE: Going to stop the stack...
0000064091 [hal] INFO: WiFi off
0000064102 [hal] INFO: rltk_wlan_set_netif_info: 0, 94:94:4a:05:90:60
0000064236 [hal] INFO: WiFi on
0000064237 [hal] INFO: WiFi is already on
0000064341 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000064342 [net.rltkncp] TRACE: NCP event 2
0000064343 [net.rltkncp] TRACE: State changed event: 1
0000064345 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
Serial connection closed. Attempting to reconnect...
Serial monitor opened successfully:
0000002497 [hal] INFO: WiFi KM0 firmware initialization started result=0 (RAM start=10006000 end=1001a000)
0000002529 [hal] INFO: WiFi KM0 firmware initialization completed result=0 (RAM start=10006000 end=10013bf8 reserved=00005000)
0000002576 [hal] INFO: rltk_wlan_set_netif_info: 0, 94:94:4a:05:90:60
0000002728 [hal] INFO: WiFi on
0000003584 [system.nm] INFO: State changed: DISABLED -> IFACE_DOWN
0000003656 [system.nm] INFO: State changed: IFACE_DOWN -> IFACE_REQUEST_UP
0000003709 [net.ifapi] INFO: Netif wl3 state UP
0000003742 [ncp.rltk.client] TRACE: NCP power state changed: 4
0000003743 [net.rltkncp] TRACE: NCP event 3
0000003744 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_POWERING_UP
0000003746 [system.nm] INFO: State changed: IFACE_REQUEST_UP -> IFACE_UP
0000003752 [system.nm] TRACE: Interface 4 power state changed: POWERING_UP
0000003754 [hal] INFO: WiFi is already on
0000003755 [ncp.rltk.client] TRACE: NCP power state changed: 2
0000003757 [net.rltkncp] TRACE: NCP event 3
0000003758 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_UP
0000003760 [system.nm] TRACE: Interface 4 power state changed: UP
0000003762 [ncp.rltk.client] INFO: rltkOff
0000003763 [ncp.rltk.client] INFO: rltkOff done
0000003764 [ncp.rltk.client] TRACE: NCP power state changed: 1
0000003766 [net.rltkncp] TRACE: NCP event 3
0000003767 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_DOWN
0000003769 [system.nm] TRACE: Interface 4 power state changed: DOWN
0000003771 [hal] INFO: WiFi is already on
0000003772 [ncp.rltk.client] TRACE: NCP power state changed: 2
0000003774 [net.rltkncp] TRACE: NCP event 3
0000003775 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_UP
0000003777 [system.nm] TRACE: Interface 4 power state changed: UP
0000003778 [ncp.rltk.client] TRACE: NCP state changed: 1
0000003780 [net.rltkncp] TRACE: NCP event 1
0000003783 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000003785 [net.rltkncp] TRACE: NCP event 2
0000003786 [net.rltkncp] TRACE: State changed event: 1
0000003787 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000004687 [hal] TRACE: Abort: 00000001
0000008376 [ncp.rltk.client] TRACE: NCP connection state changed: 2
0000008379 [net.rltkncp] TRACE: NCP event 2
0000008381 [net.rltkncp] TRACE: State changed event: 2
0000008383 [net.ifapi] INFO: Netif wl3 link UP, profile=MassRobotics
0000008393 [system.nm] INFO: State changed: IFACE_UP -> IFACE_LINK_UP
0000008430 [hal] INFO: DNS server list changed
0000008432 [hal] INFO: DNS server list changed
0000008433 [net.ifapi] TRACE: Netif wl3 ipv4 configuration changed
0000008435 [system.nm] INFO: State changed: IFACE_LINK_UP -> IP_CONFIGURED
0000008440 [system] INFO: Cloud: connecting
0000008490 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0000008515 [system] WARN: Failed to load session data from persistent storage
0000008538 [system] INFO: Discarding session data
0000008605 [system] TRACE: Resolving 0a10aced202194944a059060.v5.udp.particle.io#5684
0000008725 [system] TRACE: Address type: 3
0000008758 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0000008779 [system] INFO: Cloud socket=0, connecting to 52.5.139.123#5684 using if 4
0000008807 [system] INFO: Bound cloud socket to lwip if 4 ("wl3")
0000008827 [system] TRACE: Cloud socket=0, connected to 52.5.139.123#5684
0000008849 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0000008873 [system] TRACE: Applying new keepalive interval now
0000008893 [system] INFO: Cloud socket connected
0000008908 [system] INFO: Starting handshake: presense_announce=0
0000008927 [comm.protocol.handshake] INFO: Establish secure connection
0000008987 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0000012749 [comm.protocol.handshake] INFO: Sending HELLO message
0000013270 [comm.protocol.handshake] INFO: Handshake completed
0000013315 [comm.protocol.handshake] TRACE: Updating cached session parameters
0000013382 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000013440 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 3
0000014911 [comm] INFO: Sending TIME request
0000014973 [system] INFO: Send spark/device/last_reset event
0000015034 [system] INFO: Sending application DESCRIBE
0000015088 [system] INFO: Sending subscriptions
0000015130 [comm.protocol] INFO: Sending subscriptions
0000015182 [system] TRACE: Waiting until all handshake messages are processed by the protocol layer
0000015262 [comm.protocol] TRACE: Updating system DESCRIBE checksum
0000015323 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000016875 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 3
0000016932 [comm.protocol] INFO: Received TIME response: 1721314577
0000017386 [comm.protocol] TRACE: Updating application DESCRIBE checksum
0000017451 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000017505 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 3
0000017760 [system] INFO: All handshake messages have been processed
0000017821 [comm.protocol] TRACE: Updating subscriptions checksum
0000017879 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000017934 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 3
0000018090 [comm.protocol] INFO: Received DESCRIBE request; flags: 0x04
0000018162 [system] INFO: Cloud connected
0000018198 [system.ledger] TRACE: Connected
0000002094 [hal] INFO: WiFi KM0 firmware initialization started result=0 (RAM start=10006000 end=1001a000)
0000002126 [hal] INFO: WiFi KM0 firmware initialization completed result=0 (RAM start=10006000 end=10013bf8 reserved=00005000)
0000002172 [hal] INFO: rltk_wlan_set_netif_info: 0, 94:94:4a:05:90:60
0000002324 [hal] INFO: WiFi on
0000003177 [system.nm] INFO: State changed: DISABLED -> IFACE_DOWN
0000003254 [system.nm] INFO: State changed: IFACE_DOWN -> IFACE_REQUEST_UP
0000003294 [net.ifapi] INFO: Netif wl3 state UP
0000003325 [ncp.rltk.client] TRACE: NCP power state changed: 4
0000003326 [net.rltkncp] TRACE: NCP event 3
0000003327 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_POWERING_UP
0000003329 [system.nm] INFO: State changed: IFACE_REQUEST_UP -> IFACE_UP
0000003335 [system.nm] TRACE: Interface 4 power state changed: POWERING_UP
0000003338 [hal] INFO: WiFi is already on
0000003339 [ncp.rltk.client] TRACE: NCP power state changed: 2
0000003340 [net.rltkncp] TRACE: NCP event 3
0000003341 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_UP
0000003343 [system.nm] TRACE: Interface 4 power state changed: UP
0000003345 [ncp.rltk.client] INFO: rltkOff
0000003346 [ncp.rltk.client] INFO: rltkOff done
0000003348 [ncp.rltk.client] TRACE: NCP power state changed: 1
0000003349 [net.rltkncp] TRACE: NCP event 3
0000003350 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_DOWN
0000003353 [system.nm] TRACE: Interface 4 power state changed: DOWN
0000003354 [hal] INFO: WiFi is already on
0000003355 [ncp.rltk.client] TRACE: NCP power state changed: 2
0000003356 [net.rltkncp] TRACE: NCP event 3
0000003357 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_UP
0000003359 [system.nm] TRACE: Interface 4 power state changed: UP
0000003361 [ncp.rltk.client] TRACE: NCP state changed: 1
0000003363 [net.rltkncp] TRACE: NCP event 1
0000003366 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000003368 [net.rltkncp] TRACE: NCP event 2
0000003369 [net.rltkncp] TRACE: State changed event: 1
0000003370 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000008043 [ncp.rltk.client] TRACE: NCP connection state changed: 2
0000008045 [net.rltkncp] TRACE: NCP event 2
0000008046 [net.rltkncp] TRACE: State changed event: 2
0000008047 [net.ifapi] INFO: Netif wl3 link UP, profile=MassRobotics
0000008057 [system.nm] INFO: State changed: IFACE_UP -> IFACE_LINK_UP
0000008083 [hal] INFO: DNS server list changed
0000008084 [hal] INFO: DNS server list changed
0000008087 [net.ifapi] TRACE: Netif wl3 ipv4 configuration changed
0000008088 [system.nm] INFO: State changed: IFACE_LINK_UP -> IP_CONFIGURED
0000008093 [system] INFO: Cloud: connecting
0000008152 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0000008241 [system] INFO: Loaded cloud server address and port from session data
0000008303 [system] TRACE: Address type: 1
0000008341 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0000008402 [system] INFO: Cloud socket=0, connecting to 52.5.139.123#5684 using if 4
0000008474 [system] INFO: Bound cloud socket to lwip if 4 ("wl3")
0000008529 [system] TRACE: Cloud socket=0, connected to 52.5.139.123#5684
0000008597 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0000008666 [system] TRACE: Applying new keepalive interval now
0000008721 [system] INFO: Cloud socket connected
0000008764 [system] INFO: Starting handshake: presense_announce=0
0000008820 [comm.protocol.handshake] INFO: Establish secure connection
0000008887 [comm.dtls] INFO: session has 0 uses
0000008933 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=0
0000008997 [comm.dtls] INFO: out_ctr 0,1,0,0,0,0,0,16, next_coap_id=c
0000009063 [comm.dtls] INFO: restored session from persisted session data. next_msg_id=12
0000009136 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 2
0000010615 [comm.protocol.handshake] INFO: Skipping HELLO message
0000010673 [system] INFO: cloud connected from existing session.
0000010747 [comm] INFO: Sending TIME request
0000010786 [system] INFO: Send spark/device/last_reset event
0000010839 [system] INFO: Sending application DESCRIBE
0000010882 [comm.protocol] INFO: Checksum has not changed; not sending application DESCRIBE
0000010955 [system] INFO: Sending subscriptions
0000010991 [comm.protocol] INFO: Checksum has not changed; not sending subscriptions
0000011052 [system] TRACE: Waiting until all handshake messages are processed by the protocol layer
0000011124 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000011169 [comm.protocol] INFO: Received TIME response: 1721314622
0000011519 [system] INFO: All handshake messages have been processed
0000011674 [system] INFO: Cloud connected
0000011709 [system.ledger] TRACE: Connected
0000058330 [ncp.rltk.client] TRACE: Disconnected
0000058332 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000058333 [net.rltkncp] TRACE: NCP event 2
0000058334 [net.rltkncp] TRACE: State changed event: 0
0000058335 [net.ifapi] INFO: Netif wl3 link DOWN, profile=NONE
0000058338 [net.ifapi] TRACE: Netif wl3 ipv4 configuration changed
0000058341 [system.nm] INFO: State changed: IP_CONFIGURED -> IFACE_LINK_UP
0000058345 [hal] INFO: DNS server list changed
0000058346 [hal] INFO: DNS server list changed
0000058350 [system.nm] INFO: State changed: IFACE_LINK_UP -> IFACE_UP
0000058361 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000058365 [net.rltkncp] TRACE: NCP event 2
0000058366 [net.rltkncp] TRACE: State changed event: 1
0000058367 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000064490 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000064491 [net.rltkncp] TRACE: NCP event 2
0000064492 [net.rltkncp] TRACE: State changed event: 0
0000064993 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000064995 [net.rltkncp] TRACE: NCP event 2
0000064996 [net.rltkncp] TRACE: State changed event: 1
0000064997 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000076360 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000076362 [net.rltkncp] TRACE: NCP event 2
0000076363 [net.rltkncp] TRACE: State changed event: 0
0000080677 [net.rltkncp] TRACE: Failed to connect to WiFi: -170
0000080679 [hal.ble] TRACE: Going to stop the stack...
0000080991 [hal] INFO: WiFi off
0000081001 [hal] INFO: rltk_wlan_set_netif_info: 0, 94:94:4a:05:90:60
0000081133 [hal] INFO: WiFi on
0000081134 [hal] INFO: WiFi is already on
0000081238 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000081240 [net.rltkncp] TRACE: NCP event 2
0000081241 [net.rltkncp] TRACE: State changed event: 1
0000081242 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000082189 [comm.protocol] ERROR: Event loop error 1
0000082227 [system] WARN: Communication loop error, closing cloud socket
0000082281 [system] INFO: Cloud: disconnecting
0000082317 [system.ledger] TRACE: Disconnected
0000082332 [system] INFO: Cloud: disconnected
0000085167 [ncp.rltk.client] TRACE: NCP connection state changed: 2
0000085168 [net.rltkncp] TRACE: NCP event 2
0000085169 [net.rltkncp] TRACE: State changed event: 2
0000085171 [net.ifapi] INFO: Netif wl3 link UP, profile=MassRobotics
0000085181 [system.nm] INFO: State changed: IFACE_UP -> IFACE_LINK_UP
0000085221 [hal] INFO: DNS server list changed
0000085223 [hal] INFO: DNS server list changed
0000085226 [net.ifapi] TRACE: Netif wl3 ipv4 configuration changed
0000085228 [system.nm] INFO: State changed: IFACE_LINK_UP -> IP_CONFIGURED
0000085233 [system] INFO: Cloud: connecting
0000085250 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0000085358 [system] INFO: Loaded cloud server address and port from session data
0000085419 [system] TRACE: Address type: 1
0000085455 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0000085513 [system] INFO: Cloud socket=0, connecting to 52.5.139.123#5684 using if 4
0000085585 [system] INFO: Bound cloud socket to lwip if 4 ("wl3")
0000085634 [system] TRACE: Cloud socket=0, connected to 52.5.139.123#5684
0000085691 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0000085754 [system] TRACE: Applying new keepalive interval now
0000085806 [system] INFO: Cloud socket connected
0000085848 [system] INFO: Starting handshake: presense_announce=0
0000085902 [comm.protocol.handshake] INFO: Establish secure connection
0000085960 [comm.dtls] INFO: session has 0 uses
0000086005 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=0
0000086064 [comm.dtls] INFO: out_ctr 0,1,0,0,0,0,0,41, next_coap_id=22
0000086111 [comm.dtls] INFO: restored session from persisted session data. next_msg_id=34
0000086174 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 2
0000087469 [comm.protocol.handshake] INFO: Skipping HELLO message
0000087523 [system] INFO: cloud connected from existing session.
0000087548 [system] INFO: Sending application DESCRIBE
0000087620 [comm.protocol] INFO: Checksum has not changed; not sending application DESCRIBE
0000087690 [system] INFO: Sending subscriptions
0000087727 [comm.protocol] INFO: Checksum has not changed; not sending subscriptions
0000087796 [system] TRACE: Waiting until all handshake messages are processed by the protocol layer
0000087880 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000088039 [system] INFO: All handshake messages have been processed
0000088197 [system] INFO: Cloud connected
0000088230 [system.ledger] TRACE: Connected
0000113136 [ncp.rltk.client] TRACE: Disconnected
0000113137 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000113139 [net.rltkncp] TRACE: NCP event 2
0000113140 [net.rltkncp] TRACE: State changed event: 0
0000113141 [net.ifapi] INFO: Netif wl3 link DOWN, profile=NONE
0000113144 [net.ifapi] TRACE: Netif wl3 ipv4 configuration changed
0000113146 [system.nm] INFO: State changed: IP_CONFIGURED -> IFACE_LINK_UP
0000113151 [hal] INFO: DNS server list changed
0000113152 [hal] INFO: DNS server list changed
0000113157 [system.nm] INFO: State changed: IFACE_LINK_UP -> IFACE_UP
0000113162 [comm] INFO: Forcing a cloud ping
0000113195 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000113198 [net.rltkncp] TRACE: NCP event 2
0000113199 [net.rltkncp] TRACE: State changed event: 1
0000113200 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000122560 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000122562 [net.rltkncp] TRACE: NCP event 2
0000122563 [net.rltkncp] TRACE: State changed event: 0
0000123064 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000123066 [net.rltkncp] TRACE: NCP event 2
0000123067 [net.rltkncp] TRACE: State changed event: 1
0000123068 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000134423 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000134425 [net.rltkncp] TRACE: NCP event 2
0000134427 [net.rltkncp] TRACE: State changed event: 0
0000138738 [net.rltkncp] TRACE: Failed to connect to WiFi: -170
0000138740 [hal.ble] TRACE: Going to stop the stack...
Trying with a a different Photon 2, also on the workspace wifi
Serial monitor opened successfully:
...
0000140745 [system] TRACE: Claim code received by the cloud and cleared locally.
0000141460 [system.ctrl.ble] TRACE: Enqueued a reply message for sending; ID: 38
0000141637 [comm.protocol] INFO: Received DESCRIBE request; flags: 0x04
0000142051 [comm.protocol] TRACE: Updating application DESCRIBE checksum
0000142108 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000142163 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 3
0000142218 [system.ctrl.ble] TRACE: Received a request message; type: 300, ID: 39
0000142387 [system.ctrl.ble] TRACE: Enqueued a reply message for sending; ID: 39
0000142569 [comm.protocol] TRACE: Updating subscriptions checksum
0000142625 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000142684 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 3
0000142956 [system] INFO: All handshake messages have been processed
0000143112 [system] INFO: Cloud connected
0000143144 [system.ledger] TRACE: Connected
0000143184 [system.ctrl.ble] TRACE: Received a request message; type: 300, ID: 40
0000143232 [system.ctrl.ble] TRACE: Enqueued a reply message for sending; ID: 40
0000143311 [comm.protocol] WARN: Received a key change message; discarding session
0000143362 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 1
0000143383 [system.ledger] TRACE: Disconnected
0000143398 [comm.protocol] ERROR: Event loop error 21
0000143438 [system] WARN: Communication loop error, closing cloud socket
0000143456 [system] INFO: Cloud: disconnecting
0000143470 [system] INFO: Cloud: disconnected
0000143486 [system] TRACE: Disable BLE prov mode
0000143501 [system] INFO: Cloud: connecting
0000143530 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0000143618 [system] WARN: Failed to load session data from persistent storage
0000143641 [system] INFO: Discarding session data
0000143681 [system] TRACE: Resolving 0a10aced202194944a05a358.v5.udp.particle.io#5684
0000143796 [system] TRACE: Address type: 3
0000143832 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0000143903 [system] INFO: Cloud socket=0, connecting to 52.45.184.198#5684 using if 4
0000143981 [system] INFO: Bound cloud socket to lwip if 4 ("wl3")
0000144042 [system] TRACE: Cloud socket=0, connected to 52.45.184.198#5684
0000144112 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0000144183 [system] TRACE: Applying new keepalive interval now
0000144238 [system] INFO: Cloud socket connected
0000144285 [system] INFO: Starting handshake: presense_announce=0
0000144347 [comm.protocol.handshake] INFO: Establish secure connection
0000144412 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=2
0000148921 [comm.protocol.handshake] INFO: Sending HELLO message
0000149003 [comm.protocol.handshake] INFO: Handshake completed
0000149057 [comm.protocol.handshake] TRACE: Updating cached session parameters
0000149116 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000149171 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 3
0000150504 [comm] INFO: Sending TIME request
0000150580 [system] INFO: Sending application DESCRIBE
0000150635 [system] INFO: Sending subscriptions
0000150680 [comm.protocol] INFO: Sending subscriptions
0000150739 [system] TRACE: Waiting until all handshake messages are processed by the protocol layer
0000150822 [comm.protocol] TRACE: Updating system DESCRIBE checksum
0000150883 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000152233 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 3
0000152287 [system.ctrl.ble] TRACE: Received a request message; type: 300, ID: 41
0000152363 [comm.protocol] INFO: Received TIME response: 1721317835
0000152420 [system.ctrl.ble] TRACE: Enqueued a reply message for sending; ID: 41
0000152686 [comm.protocol] TRACE: Updating application DESCRIBE checksum
0000152746 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000152798 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 3
0000153057 [comm.protocol] TRACE: Updating subscriptions checksum
0000153109 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000153160 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 3
0000153217 [system.ctrl.ble] TRACE: Received a request message; type: 300, ID: 42
0000153383 [comm.protocol] INFO: Received DESCRIBE request; flags: 0x04
0000153450 [system.ctrl.ble] TRACE: Enqueued a reply message for sending; ID: 42
0000153722 [system] INFO: All handshake messages have been processed
0000153888 [system] INFO: Cloud connected
0000153919 [system.ledger] TRACE: Connected
0000154099 [system.ctrl.ble] TRACE: Received a request message; type: 300, ID: 43
0000154261 [system.ctrl.ble] TRACE: Enqueued a reply message for sending; ID: 43
0000155122 [system.ctrl.ble] TRACE: Received a request message; type: 300, ID: 44
0000155281 [system.ctrl.ble] TRACE: Enqueued a reply message for sending; ID: 44
0000156046 [system.ctrl.ble] TRACE: Received a request message; type: 300, ID: 45
0000156208 [system.ctrl.ble] TRACE: Enqueued a reply message for sending; ID: 45
0000284583 [ncp.rltk.client] TRACE: Disconnected
0000284584 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000284586 [net.rltkncp] TRACE: NCP event 2
0000284587 [net.rltkncp] TRACE: State changed event: 0
0000284588 [net.ifapi] INFO: Netif wl3 link DOWN, profile=NONE
0000284591 [net.ifapi] TRACE: Netif wl3 ipv4 configuration changed
0000284593 [system.nm] INFO: State changed: IP_CONFIGURED -> IFACE_LINK_UP
0000284598 [hal] INFO: DNS server list changed
0000284600 [hal] INFO: DNS server list changed
0000284605 [system.nm] INFO: State changed: IFACE_LINK_UP -> IFACE_UP
0000284664 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000284665 [net.rltkncp] TRACE: NCP event 2
0000284666 [net.rltkncp] TRACE: State changed event: 1
0000284668 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000296036 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000296038 [net.rltkncp] TRACE: NCP event 2
0000296039 [net.rltkncp] TRACE: State changed event: 0
0000296541 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000296542 [net.rltkncp] TRACE: NCP event 2
0000296544 [net.rltkncp] TRACE: State changed event: 1
0000296545 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000297920 [comm.protocol] ERROR: Event loop error 1
0000297969 [system] WARN: Communication loop error, closing cloud socket
0000298024 [system] INFO: Cloud: disconnecting
0000298063 [system.ledger] TRACE: Disconnected
0000298122 [system] INFO: Cloud: disconnected
0000307906 [ncp.rltk.client] TRACE: NCP connection state changed: 0
0000307907 [net.rltkncp] TRACE: NCP event 2
0000307909 [net.rltkncp] TRACE: State changed event: 0
0000312225 [net.rltkncp] TRACE: Failed to connect to WiFi: -170
0000312227 [hal.ble] TRACE: Going to stop the stack...
0000312305 [wiring.ble] TRACE: Disconnected
0000312364 [system.ctrl.ble] TRACE: Disconnected
0000312964 [hal] INFO: WiFi off
0000312977 [hal] INFO: rltk_wlan_set_netif_info: 0, 94:94:4a:05:a3:58
0000313109 [hal] INFO: WiFi on
0000313111 [hal] INFO: WiFi is already on
0000313561 [ncp.rltk.client] TRACE: NCP connection state changed: 1
0000313563 [net.rltkncp] TRACE: NCP event 2
0000313564 [net.rltkncp] TRACE: State changed event: 1
0000313565 [ncp.rltk.client] INFO: Try to connect to ssid: MassRobotics
0000317488 [ncp.rltk.client] TRACE: NCP connection state changed: 2
0000317489 [net.rltkncp] TRACE: NCP event 2
0000317490 [net.rltkncp] TRACE: State changed event: 2
0000317492 [net.ifapi] INFO: Netif wl3 link UP, profile=MassRobotics
0000317502 [system.nm] INFO: State changed: IFACE_UP -> IFACE_LINK_UP
0000317536 [hal] INFO: DNS server list changed
0000317539 [hal] INFO: DNS server list changed
0000317542 [net.ifapi] TRACE: Netif wl3 ipv4 configuration changed
0000317544 [system.nm] INFO: State changed: IFACE_LINK_UP -> IP_CONFIGURED
0000317550 [system] INFO: Cloud: connecting
0000317615 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0000317701 [system] INFO: Loaded cloud server address and port from session data
0000317770 [system] TRACE: Address type: 1
0000317805 [system] TRACE: Cloud socket=0, family=2, type=2, protocol=17
0000317870 [system] INFO: Cloud socket=0, connecting to 52.45.184.198#5684 using if 4
0000317949 [system] INFO: Bound cloud socket to lwip if 4 ("wl3")
0000318008 [system] TRACE: Cloud socket=0, connected to 52.45.184.198#5684
0000318068 [system] TRACE: Updating cloud keepalive for AF_INET: 25000 -> 25000
0000318143 [system] TRACE: Applying new keepalive interval now
0000318196 [system] INFO: Cloud socket connected
0000318245 [system] INFO: Starting handshake: presense_announce=0
0000318297 [comm.protocol.handshake] INFO: Establish secure connection
0000318361 [comm.dtls] INFO: session has 0 uses
0000318410 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=0
0000318476 [comm.dtls] INFO: out_ctr 0,1,0,0,0,0,0,66, next_coap_id=46
0000318540 [comm.dtls] INFO: restored session from persisted session data. next_msg_id=70
0000318622 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 2
0000320223 [comm.protocol.handshake] INFO: Skipping HELLO message
0000320281 [system] INFO: cloud connected from existing session.
0000320309 [system] INFO: Sending application DESCRIBE
0000320374 [comm.protocol] INFO: Checksum has not changed; not sending application DESCRIBE
0000320453 [system] INFO: Sending subscriptions
0000320494 [comm.protocol] INFO: Checksum has not changed; not sending subscriptions
0000320565 [system] TRACE: Waiting until all handshake messages are processed by the protocol layer
0000320656 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 4
0000320817 [system] INFO: All handshake messages have been processed
0000320975 [system] INFO: Cloud connected
0000321009 [system.ledger] TRACE: Connected