5 连接阿里云物联网平台掉线的问题

连到阿里云IOT上的设备掉线,服务器提示:Connection reset by peer ,不知道什么原因

attachments-2018-08-UQgtdd2h5b88dcc773be3.jpg

抓了对应的TRACE

[2018-08-31 09:40:29,023.023]: host trace send:?

[2018-08-31 09:40:41,289.289]: host trace atc:

[2018-08-31 09:40:41,296.296]: host trace atc:SSL&1,SEND OK

[2018-08-31 09:40:41,301.301]: host trace ril.sslSEND1SEND1SEND

[2018-08-31 09:40:41,302.302]: host trace linksslrsp1+SSLSENDSSL&1,SEND OK

[2018-08-31 09:40:41,302.302]: host trace linksslsendcnf1SEND OKCONNECTED

[2018-08-31 09:40:41,303.303]: host trace socketsslsckrsp1SENDSEND OK

[2018-08-31 09:40:41,303.303]: host trace mqttsslntfySENDtruetable: 0x821eb308

[2018-08-31 09:40:41,305.305]: host trace mqttsslitem.paratruetable: 0x82208420MQTTPINGREQ

[2018-08-31 09:40:41,305.305]: host trace sendat:AT+CENG?

[2018-08-31 09:40:41,305.305]: host trace atc:

[2018-08-31 09:40:41,306.306]: host trace atc:+CENG:1,1

[2018-08-31 09:40:41,306.306]: host trace atc:+CENG:0,"0109,13,99,460,01,43,13181,14,06,21764,14"

[2018-08-31 09:40:41,326.326]: host trace atc:+CENG:1,"118,14,460,1,58,10871,21764"

[2018-08-31 09:40:41,332.332]: host trace atc:+CENG:2,"116,9,460,1,62,11833,21764"

[2018-08-31 09:40:41,334.334]: host trace atc:+CENG:3,"120,7,460,1,31,10353,21764"

[2018-08-31 09:40:41,335.335]: host trace atc:

[2018-08-31 09:40:41,335.335]: host trace atc:OK

[2018-08-31 09:40:41,381.381]: host trace atc:

[2018-08-31 09:40:41,388.388]: host trace atc:+SSL RECEIVE,1,2:

[2018-08-31 09:40:41,398.398]: host trace linksslurc prefix+SSL RECEIVE

[2018-08-31 09:40:41,401.401]: host trace ?

[2018-08-31 09:40:41,401.401]: host trace mqttsslrcvD000

[2018-08-31 09:40:41,403.403]: host trace mqttsslunpack130D000

[2018-08-31 09:40:49,690.690]: host trace loop_sendwrite?

[2018-08-31 09:40:49,936.936]: host trace mqttsslpack3304C001F2F61316436394242707764502F6169723230325F303030332F7570646174657B227432223A302C227431223A302C226832223A30

[2018-08-31 09:40:49,937.937]: host trace 2C227332223A302C227331223A302C226831223A307D

[2018-08-31 09:40:49,938.938]: host trace sendat:AT+SSLSEND=1,78

[2018-08-31 09:40:49,938.938]: host trace loop_sendnum is 0

[2018-08-31 09:40:49,940.940]: host trace atc:> 

[2018-08-31 09:40:49,940.940]: host trace send:0L

[2018-08-31 09:40:53,151.151]: host trace CLOCK_IND0

[2018-08-31 09:40:57,888.888]: host trace atc:

[2018-08-31 09:40:57,890.890]: host trace atc:SSL&1,CLOSED

[2018-08-31 09:40:57,915.915]: host trace ril.sslSEND1CLOSED1CLOSED

[2018-08-31 09:40:57,921.921]: host trace linksslurc prefixSSL&1

[2018-08-31 09:40:57,927.927]: host trace linksslurc dataSSL&1,CLOSED1CLOSED

[2018-08-31 09:40:57,930.930]: host trace linksslstatusind1CLOSEDtable: 0x821c1f58

[2018-08-31 09:40:57,930.930]: host trace linksslstatusind1CONNECTED

[2018-08-31 09:40:57,931.931]: host trace socketsslsckrsp1STATECLOSED

[2018-08-31 09:40:57,933.933]: host trace mqttsslntfySTATECLOSEDnil

[2018-08-31 09:40:57,934.934]: host trace mqttduptimernil0

[2018-08-31 09:40:57,934.934]: host trace usersckindnil

[2018-08-31 09:40:57,936.936]: host trace procledtrueSCKnilnilnilREGISTERED

[2018-08-31 09:40:57,936.936]: host trace atc:

[2018-08-31 09:40:57,937.937]: host trace atc:SSL&1,SEND ERROR: 37,0,0,0,0

[2018-08-31 09:40:57,937.937]: host trace ril.sslSEND1SEND1SEND

[2018-08-31 09:40:57,937.937]: host trace linksslrsp1+SSLSENDSSL&1,SEND ERROR: 37,0,0,0,0

[2018-08-31 09:40:57,938.938]: host trace linksslsendcnf1SEND ERROR: 37CLOSED

[2018-08-31 09:40:57,940.940]: host trace socketsslsckrsp1SENDSEND ERROR: 37

[2018-08-31 09:40:57,940.940]: host trace mqttsslntfySENDfalsetable: 0x821e9b60

[2018-08-31 09:40:57,940.940]: host trace sendat:AT+CSQ

[2018-08-31 09:40:57,941.941]: host trace atc:

[2018-08-31 09:40:57,943.943]: host trace atc:+CSQ: 13,0

[2018-08-31 09:40:57,947.947]: host trace atc:

[2018-08-31 09:40:57,947.947]: host trace atc:OK

[2018-08-31 09:41:02,911.911]: host trace mqttsslreconn10false0

[2018-08-31 09:41:02,914.914]: host trace sendat:AT+SSLDESTROY=1

[2018-08-31 09:41:02,937.937]: host trace atc:

[2018-08-31 09:41:02,940.940]: host trace atc:SSL&1,DESTROY OK

[2018-08-31 09:41:02,947.947]: host trace ril.sslDESTROY1DESTROY1DESTROY

[2018-08-31 09:41:02,948.948]: host trace linksslrsp1+SSLDESTROYSSL&1,DESTROY OK

[2018-08-31 09:41:02,948.948]: host trace linksslclosecnf1DESTROY OKDISCONNECTING

[2018-08-31 09:41:02,950.950]: host trace socketsslsckrsp1DISCONNECTOK

[2018-08-31 09:41:02,950.950]: host trace mqttsslntfyDISCONNECTtruenil

[2018-08-31 09:41:02,950.950]: host trace mqttduptimernil0

[2018-08-31 09:41:02,951.951]: host trace sendat:AT+SSLCREATE=1,"a1d69BBpwdP.iot-as-mqtt.cn-shanghai.aliyuncs.com:1883",1

[2018-08-31 09:41:02,951.951]: host trace usersckindnil

[2018-08-31 09:41:12,223.223]: host trace atc:

[2018-08-31 09:41:12,227.227]: host trace atc:+CREG: 1,"5504","2E39"

[2018-08-31 09:41:12,227.227]: host trace ril.sslCREATEnilnil1nil

[2018-08-31 09:41:18,782.782]: host trace atc:

[2018-08-31 09:41:18,785.785]: host trace atc:SSL&1,CREATE OK

[2018-08-31 09:41:18,786.786]: host trace ril.sslCREATE1CREATE1CREATE

请先 登录 后评论

1 个回答

技术销售Delectate
擅长:IT

+CSQ: 13,0

信号有点差,改善一下天线试试。

--------

刚刚问了一下工程师,ssl 37错误,是连接被对方(阿里云)关闭的意思。重连即可。

请先 登录 后评论