Search found 300 matches
- Mon Feb 20, 2023 2:22 am
- Forum: ESP Cloud 中文讨论版
- Topic: esp-ali-smartliving SDK功能OTA升级失败
- Replies: 13
- Views: 49090
Re: esp-ali-smartliving SDK功能OTA升级失败
我这边有时也会出现你这个错误,所以我怀疑是内存不够导致。你可以参考 https://blog.csdn.net/ustccw/article/details/84136257 这个来优化 task 创建时的内存,看哪个 task 剩的多,你就进行裁剪。另外,OTA 也支持 http 的方式,如果你可以接受这种方式的话,也可以采取这种方案。启用方式在 ali-smartliving-device-sdk-c 下执行 make menuconfig->启用 FEATURE_SUPPORT_HTTP_OTA.
- Fri Feb 17, 2023 5:19 am
- Forum: ESP Cloud 中文讨论版
- Topic: esp-ali-smartliving SDK功能OTA升级失败
- Replies: 13
- Views: 49090
Re: esp-ali-smartliving SDK功能OTA升级失败
怀疑是内存不够了,你看下先优化点内存呢。
- Fri Feb 17, 2023 2:20 am
- Forum: ESP Cloud 中文讨论版
- Topic: esp-ali-smartliving SDK功能OTA升级失败
- Replies: 13
- Views: 49090
Re: esp-ali-smartliving SDK功能OTA升级失败
我这边试了,OTA 没有问题,原来的证书也可以用。现在按如下方向排查:
1. 提供下你的 sdkconfig 和 ali-smartliving-device-sdk-c 下 make.settings 文件。
2. 提供下你阿里云物联网平台 OTA 升级配置相关截图。
1. 提供下你的 sdkconfig 和 ali-smartliving-device-sdk-c 下 make.settings 文件。
2. 提供下你阿里云物联网平台 OTA 升级配置相关截图。
- Thu Feb 16, 2023 11:36 am
- Forum: ESP-IDF 中文讨论版
- Topic: 请教:尝试建立http stream连接的问题
- Replies: 1
- Views: 1301
Re: 请教:尝试建立http stream连接的问题
esp_http_client_write 函数返回的是 -1(错误),大于等于 0 表示写入的数据,你用返回值不等于 ESP_OK 来判断是不对的。
- Thu Feb 16, 2023 8:28 am
- Forum: ESP Cloud 中文讨论版
- Topic: esp-ali-smartliving SDK功能OTA升级失败
- Replies: 13
- Views: 49090
Re: esp-ali-smartliving SDK功能OTA升级失败
你可以加点日志重新编译下 ali-smartliving-device-sdk-c SDK。调用方法可以直接搜这个函数,貌似就一个地方用。联网和 OTA 不是一个链接,OTA 有 OTA 自己的服务器,如果阿里 OTA 服务器换了证书,可能就需要更换 CA 证书。
- Thu Feb 16, 2023 8:23 am
- Forum: ESP-IDF
- Topic: esp_http_client stream loosing connection after some time
- Replies: 1
- Views: 1343
Re: esp_http_client stream loosing connection after some time
Could you please show the log, error message here?
- Thu Feb 16, 2023 4:05 am
- Forum: ESP-IDF 中文讨论版
- Topic: aliyun的例程编译错误
- Replies: 1
- Views: 1335
Re: aliyun的例程编译错误
建议你直接在 aliyun 工程自带的示例下面进行编译。
- Thu Feb 16, 2023 4:04 am
- Forum: ESP-IDF
- Topic: WebSockets on Ethernet
- Replies: 1
- Views: 1499
Re: WebSockets on Ethernet
I think you can choose ethernet interface by idf.py menuconfig->Example Connection Configuration, disable the default wifi interface and enable the ethernet interface.
- Thu Feb 16, 2023 3:35 am
- Forum: ESP Cloud 中文讨论版
- Topic: esp-ali-smartliving SDK功能OTA升级失败
- Replies: 13
- Views: 49090
Re: esp-ali-smartliving SDK功能OTA升级失败
从日志看错误原因并不是 `Not digestSign key in json doc of OTA`, 而是 CA 证书校验失败。你看下你函数 iotx_ca_get 返回的是 NULL 还是证书?
- Thu Feb 09, 2023 10:51 am
- Forum: ESP-IDF 中文讨论版
- Topic: MQTT和HTTP OTA同时使用
- Replies: 2
- Views: 2137
Re: MQTT和HTTP OTA同时使用
你加的代码有问题,改为
char mqtt_username[] = "RF1_23020901";
memcpy(&mqtt_username[4], serial_number, 8);
char mqtt_username[] = "RF1_23020901";
memcpy(&mqtt_username[4], serial_number, 8);