Skip to content

Instantly share code, notes, and snippets.

Created May 20, 2017 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/279d2739cffd8eca2ff6696e25e94406 to your computer and use it in GitHub Desktop.
Save anonymous/279d2739cffd8eca2ff6696e25e94406 to your computer and use it in GitHub Desktop.
0000000970 [system] INFO: Cloud: connecting
0000000970 [system] TRACE: sparkSocket Now =-1
0000000970 [system] TRACE: HAL_FLASH_Read_ServerAddress() = type:1,domain:$id.udp.particle.io,ip: 46.100.105.36, port: 65535
0000000972 [system] TRACE: using IP/port from session
On first socketSocket use, free all open sockets
0.972 AT send 15 "AT+USOCTL=0,1\r\n"
0.984 AT read + 18 "\r\n+USOCTL: 0,1,0\r\n"
0.994 AT read OK 6 "\r\nOK\r\n"
Socket handle 0 was open, now closing...
0.994 AT send 12 "AT+USOCL=0\r\n"
1.266 AT read OK 6 "\r\nOK\r\n"
Socket handle 0 was closed.
1.266 AT send 15 "AT+USOCTL=1,1\r\n"
1.278 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
1.280 AT send 15 "AT+USOCTL=2,1\r\n"
1.290 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
1.292 AT send 15 "AT+USOCTL=3,1\r\n"
1.302 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
1.304 AT send 15 "AT+USOCTL=4,1\r\n"
1.314 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
1.316 AT send 15 "AT+USOCTL=5,1\r\n"
1.326 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
1.328 AT send 15 "AT+USOCTL=6,1\r\n"
1.338 AT read ERR 37 "\r\n+CME ERROR: operation not allowed\r\n"
socketSocket(UDP)
1.340 AT send 18 "AT+USOCR=17,5684\r\n"
1.350 AT read + 13 "\r\n+USOCR: 0\r\n"
1.360 AT read OK 6 "\r\nOK\r\n"
Socket 0: handle 0 was created
0000001360 [system] TRACE: socketed udp=1, sparkSocket=0, 1
0000001362 [system] TRACE: connection attempt to 54.234.103.54:5684
0000001362 [system] INFO: Cloud socket connected
0000001362 [system] INFO: Starting handshake: presense_announce=0
0000001364 [comm.protocol.handshake] INFO: Establish secure connection
0000001392 [comm.dtls] INFO: (CMPL,RENEG,NO_SESS,ERR) restoreStatus=0
0000001392 [comm.dtls] INFO: out_ctr 0,1,0,0,0,0,0,33, next_coap_id=1d
0000001394 [comm.dtls] INFO: app state crc: d831900f, expected: d831900f
0000001394 [comm.dtls] WARN: skipping hello message
0000001396 [comm.dtls] INFO: restored session from persisted session data. next_msg_id=29
0000001396 [comm.dtls] INFO: session cmd (CLS,DIS,MOV,LOD,SAV): 2
0000001398 [comm.coap] TRACE: sending message id=1e
0000001398 [system] TRACE: send 46
socketSendTo(0,54.234.103.54,5684,,46)
1.398 AT send 36 "AT+USOST=0,\"54.234.103.54\",5684,46\r\n"
1.412 AT read > 3 "\r\n@"
1.462 AT send 46 "\xfe\xfe\xfd\x00\x01\x00\x00\x00\x00\x00!\x00\x14\x00\x01\x00\x00\x00\x00\x00!\x8c\xfe\xbe\x92\x02\xc7\x82J\xc4\xfa(z)\x00\"\x00\x0eQ542939\f"
1.604 AT read + 16 "\r\n+USOST: 0,46\r\n"
1.614 AT read OK 6 "\r\nOK\r\n"
0000001614 [comm.protocol.handshake] INFO: resumed session - not sending HELLO message
0000001614 [system] INFO: cloud connected from existing session.
0000001616 [system] INFO: Cloud connected
0000001626 [comm.coap] TRACE: sending message id=1f
0000001626 [system] TRACE: send 65
socketSendTo(0,54.234.103.54,5684,,65)
1.626 AT send 36 "AT+USOST=0,\"54.234.103.54\",5684,65\r\n"
1.638 AT read > 3 "\r\n@"
1.688 AT send 65 "\xfe\xfe\xfd\x00\x01\x00\x00\x00\x00\x00\"\x00'\x00\x01\x00\x00\x00\x00\x00\"\tP\x1d\xa3\xb1\x02\xfd\x83x\xbe3\x9bu\x97\xb2\xd9\xbdh\xb9\x05ha\xffI\xc4c(v\xccsT)\x00\"\x00\x0eQ542939\f"
1.830 AT read + 16 "\r\n+USOST: 0,65\r\n"
1.840 AT read OK 6 "\r\nOK\r\n"
1.840 AT read + 17 "\r\n+UUSORD: 0,33\r\n"
Socket 0: handle 0 has 33 bytes pending
1.852 AT send 16 "AT+USORF=0,813\r\n"
1.872 AT read + 71 "\r\n+USORF: 0,\"54.234.103.54\",5684,33,\"\x17\xfe\xfd\x00\x01\x00\x00\x00\x00\x00\x15\x00\x14\x00\x01\x00\x00\x00\x00\x00\x15}XGu9q\x19\xc9\xac\x98\xca\x94\""
1.886 AT read OK 6 "\r\nOK\r\n"
0000001886 [system] TRACE: received 33
0000001886 [comm.coap] TRACE: recieved ACK for message id=1e
0000001888 [comm.protocol] INFO: rcv'd message type=13
0000061617 [system] TRACE: Close Attempt
socketClose(0)
61.618 AT send 12 "AT+USOCL=0\r\n"
61.948 AT read OK 6 "\r\nOK\r\n"
socketFree(0)
0000061948 [system] TRACE: socket_close()=success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment