开发者社区 > 物联网 > 正文

物联网套件sdk使用过程出现安全套接字连接错误

对接云端的并没有该错误,今天早上总是连不上。
mqtt_client_thread|257 :: TOPIC_GET=/x63B2nQ3RWu/SHGateway/get
[inf] iotx_device_info_init(40): device_info created successfully!
[dbg] iotx_device_info_set(50): start to set device info!
[dbg] iotx_device_info_set(64): device_info set successfully!
[dbg] _calc_hmac_signature(211): | source: clientIdx63B2nQ3RWu.SHGatewaydeviceNameSHGatewayproductKeyx63B2nQ3RWutimestamp2524608000000 (91)
[dbg] _calc_hmac_signature(212): | secret: O0A9rTFjytCVWsiBG1QXA5PvBdXMXf67 (32)
[dbg] _calc_hmac_signature(215): | method: hmacsha1
[dbg] _calc_hmac_signature(228): | signature: a320fbcba1d537240139ba00a3f4d99c04413c9d (40)
[dbg] iotx_guider_authenticate(764): ....................................................
[dbg] iotx_guider_authenticate(765): ProductKey : x63B2nQ3RWu
[dbg] iotx_guider_authenticate(766): DeviceName : SHGateway
[dbg] iotx_guider_authenticate(767): DeviceID : x63B2nQ3RWu.SHGateway
[dbg] iotx_guider_authenticate(768): DeviceSecret : O0A9rTFjytCVWsiBG1QXA5PvBdXMXf67
[dbg] iotx_guider_authenticate(769): ....................................................
[dbg] iotx_guider_authenticate(770): PartnerID Buf :
[dbg] iotx_guider_authenticate(771): Guider URL : http://iot-auth.cn-shanghai.aliyuncs.com/auth/devicename
[dbg] iotx_guider_authenticate(775): Guider Timestamp : 2524608000000
[dbg] iotx_guider_authenticate(776): ....................................................
[dbg] iotx_guider_authenticate(777): Guider Sign : a320fbcba1d537240139ba00a3f4d99c04413c9d
[dbg] iotx_guider_authenticate(782): ....................................................
[dbg] iotx_guider_authenticate(801): req_str = 'productKey=x63B2nQ3RWu&deviceName=SHGateway&signmethod=hmacsha1&sign=a320fbcba1d537240139ba00a3f4d99c04413c9d&version=default&clientId=x63B2nQ3RWu.SHGateway&timestamp=2524608000000&resources=mqtt'
[dbg] _http_response(272): requ_payload:

productKey=x63B2nQ3RWu&deviceName=SHGateway&signmethod=hmacsha1&sign=a320fbcba1d537240139ba00a3f4d99c04413c9d&version=default&clientId=x63B2nQ3RWu.SHGateway&timestamp=2524608000000&resources=mqtt

[dbg] httpclient_common(770): host: 'iot-auth.cn-shanghai.aliyuncs.com', port: 443
[inf] _ssl_client_init(164): Loading the CA root certificate ...

  1. version : 3
  2. number : 04:00:00:00:00:01:15:4B:5A:C3:94

issuer name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
subject name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
issued on : 1998-09-01 12:00:00
expires on : 2028-01-28 12:00:00
signed using : RSA with SHA1
RSA key size : 2048 bits
basic constraints : CA=true
key usage : Key Cert Sign, CRL Sign
[inf] _ssl_parse_crt(132): crt content:451
[inf] _ssl_client_init(172): ok (0 skipped)
[inf] TLSConnectNetwork(337): Connecting to /iot-auth.cn-shanghai.aliyuncs.com/443...
[inf] connect_callback(48):

[inf] TLSConnectNetwork(342): ok
[inf] TLSConnectNetwork(347): . Setting up the SSL/TLS structure...
[inf] TLSConnectNetwork(357): ok
[inf] TLSConnectNetwork(392): Performing the SSL/TLS handshake...
[inf] TLSConnectNetwork(396): failed ! mbedtls_ssl_handshake returned -0x2700
[err] httpclient_conn(81): establish connection failed
[err] httpclient_common(776): httpclient_connect is error,ret = -8
[dbg] _iotId_iotToken_http(389): http response:

[err] iotx_guider_authenticate(813): _iotId_iotToken_http() failed
mqtt_client_thread|272 :: AUTH request failed!

代码总体上都是阿里sdk的打印,里面自己的打印基本去掉了,希望有心人可以解答

展开
收起
edwinliang 2017-11-14 09:34:52 3832 0
1 条回答
写回答
取消 提交回答
  • 是认证失败,产品和设备id那些参数检查一下,是否都正确?

    2019-07-17 21:43:39
    赞同 展开评论 打赏

物联网领域前沿技术分享与交流

相关产品

  • 物联网平台
  • 相关电子书

    更多
    美的物联平台的云上实践与应用--- 人机新世代战略下的智能化探索 立即下载
    使用Link Develop 进行物联网一站式开发 立即下载
    从创意到原型: 物联网应用快速开发 立即下载