使用阿里云例程连接不上阿里云的问题

发布于 2019-10-17 17:13:19    浏览:820
1使用ESP8266模块采用ENV工具里的例程连接阿里云时遇到以下问题,请求支援!!!!
0001.png

err2.png

2.之前使用虚拟工具是可以正常连接的,一脸懵

查看更多

3 个回答
coulson
coulson 2019-10-17
This guy hasn't written anything yet
    本帖最后由 coulson 于 2019-10-17 17:15 编辑


以下是终端打印的信息
[D/at.dev.esp] AT version:1.7.1.0(Jul 15 2019 16:58:04)
[D/at.dev.esp] SDK version:3.0.1(78a3e33)
[D/at.dev.esp] compile time:Sep 10 2019 14:35:30
[I/at.dev.esp] esp0 device wifi is connected.
[I/at.dev.esp] esp0 device network initialize successfully.
[D/at.dev.esp] network interface device(esp0) set up status
msh />ali_mqtt_test start
[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] guider_print_dev_guider_info(271): ....................................................
[dbg] guider_print_dev_guider_info(272): ProductKey : a1yrnP9QqNZ
[dbg] guider_print_dev_guider_info(273): DeviceName : AZZEKmfQrQ171zJPeE8o
[dbg] guider_print_dev_guider_info(274): DeviceID : a1yrnP9QqNZ.AZZEKmfQrQ171zJPeE8o
[dbg] guider_print_dev_guider_info(276): ....................................................
[dbg] guider_print_dev_guider_info(277): PartnerID Buf : ,partner_id=example.demo.partner-id
[dbg] guider_print_dev_guider_info(278): ModuleID Buf : ,module_id=example.demo.module-id
[dbg] guider_print_dev_guider_info(279): Guider URL :
[dbg] guider_print_dev_guider_info(281): Guider SecMode : 2 (TLS + Direct)
[dbg] guider_print_dev_guider_info(283): Guider Timestamp : 2524608000000
[dbg] guider_print_dev_guider_info(284): ....................................................
[dbg] guider_print_dev_guider_info(290): ....................................................
[dbg] guider_print_conn_info(248): -----------------------------------------
[dbg] guider_print_conn_info(249): Host : a1yrnP9QqNZ.iot-as-mqtt.cn-shanghai.aliyuncs.com
[dbg] guider_print_conn_info(250): Port : 1883
[dbg] guider_print_conn_info(253): ClientID : a1yrnP9QqNZ.AZZEKmfQrQ171zJPeE8o|securemode=2,timestamp=2524608000000,signmethod=hmacsha1,gw=0,ext=0,partner_id=example.id,module_id=example.demo.module-id|
[dbg] guider_print_conn_info(255): TLS PubKey : 0805ef18 ('-----BEGIN CERTI ...')
[dbg] guider_print_conn_info(258): -----------------------------------------
host: a1yrnp9qqnz.iot-as-mqtt.cn-shanghai.aliyuncs.com
[inf] iotx_mc_init(1704): MQTT init success!
[inf] _ssl_client_init(175): Loading the CA root certificate ...
cert. version : 3
serial 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(143): crt content:451
[inf] _ssl_client_init(183): ok (0 skipped)
[inf] _TLSConnectNetwork(345): Connecting to /a1yrnp9qqnz.iot-as-mqtt.cn-shanghai.aliyuncs.com/1883...
msh />[inf] _TLSConnectNetwork(359): ok
[inf] _TLSConnectNetwork(364): . Setting up the SSL/TLS structure...
[inf] _TLSConnectNetwork(374): ok
[inf] _TLSConnectNetwork(409): Performing the SSL/TLS handshake...
[inf] _TLSConnectNetwork(413): failed ! mbedtls_ssl_handshake returned -0x4290
[inf] _network_ssl_disconnect(520): ssl_disconnect
[inf] HAL_SSL_Destroy(536): handle is NULL
[err] iotx_mc_connect(2002): TCP or TLS Connection failed
[inf] HAL_SSL_Destroy(536): handle is NULL
[inf] iotx_mc_disconnect(2130): mqtt disconnect!
[inf] iotx_mc_release(2176): mqtt release!
mqtt_client|274 :: MQTT construct failed
[err] LITE_dump_malloc_free_stats(594): WITH_MEM_STATS = 0
mqtt_client|345 :: out of sample!

Cheney_Chen
Cheney_Chen 2019-10-18
This guy hasn't written anything yet
查看一下是不是内存不足了,或者是不是 mbedtls 设置的帧大小过小
coulson
coulson 2019-10-18
This guy hasn't written anything yet
Cheney_Chen 发表于 2019-10-18 10:35
查看一下是不是内存不足了,或者是不是 mbedtls 设置的帧大小过小


mbedtls 帧大小设置成8192了,不是这个问题,我把RTT的版本换成4.0.1然后把mbedtls 的版本设置成1.6.0可以正常连接到阿里云上

撰写答案

请登录后再发布答案,点击登录
关注者
0
被浏览
820

发布
问题

分享
好友

手机
浏览

扫码手机浏览