Code Monkey home page Code Monkey logo

esp-ali-smartliving's People

Contributors

cwespressif avatar esp-yjm avatar lhespress avatar ljysp avatar ustccw avatar wujiangang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp-ali-smartliving's Issues

更新SDK ali-smartliving-device-sdk-c v1.6后编译失败

1. 开发环境

-ali-smartliving-device-sdk-c v1.6
https://code.aliyun.com/living_platform/ali-smartliving-device-sdk-c/repository/archive.zip?spm=a2c4g.11186623.2.15.25bd306aMZeLo9&ref=rel_1.6.0):
或 git clone [email protected]:living_platform/ali-smartliving-device-sdk-c.git -b rel_1.6.0

2. 问题描述

把ali-smartliving-device-sdk-c 更新到 v1.6 版本后,出现以下错误
编译example-》smart_light 提示错误:
/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(awss_dev_ap.o): In function wifimgr_process_dev_ap_switchap_request': (.text.wifimgr_process_dev_ap_switchap_request+0x3fb): undefined reference to softap_decrypt_password'

2.1 复现步骤

  1. 编译esp-ali-smartliving sdk
    cd ali-smartliving-device-sdk-c
    make reconfig (选择SDK平台 esp8266)
    make menuconfig
    make
  2. 编译example,smart_light

谢谢,
keen

天猫精灵可以发现设备,但配网不成功

1. 开发环境

  • 模组或开发板:esp8266mod
  • esp-ali-smartliving 版本:(git rev-parse --short HEAD 来获取 commit id):15cc594
  • ESP8266_RTOS_SDK 版本(git rev-parse --short HEAD 来获取 commit id):610c44d

2. 问题描述

用demo上的smart_light进行调试,烧写固件和四元组后,设备可以被天猫精灵找到,但是配网不成功

2.1 复现步骤

2.2 复现问题的代码

3. 调试 Logs

[prt] log level set as: [ 4 ]
W (652) wrapper_kv: nvs get blob stassid failed with 1102
[crt] enable awss

I (658) app main: IOTX_AWSS_ENABLE
I (661) app main: IOTX_AWSS_START
[crt] __awss_start

inf zconfig_init(261): zconfig_init
I (692) awss: Open monitor mode
[crt] chan 1

[crt] chan 6

inf zconfig_callback_channel_locked(139): channel lock @ 6
I (986) app main: IOTX_AWSS_LOCK_CHAN
ERROR A stack overflow in task ppT has been detected.
abort() was called at PC 0x40223c07 on core 0
0x40223c07: vApplicationStackOverflowHook at /home/linjon/esp/ESP8266_RTOS_SDK/components/freertos/port/esp8266/port.c:395

Guru Meditation Error: Core 0 panic'ed (StoreProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x3ff20c1c PS : 0x0000001d A0 : 0x3ff20c00 A1 : 0x00000004
A2 : 0x3ffec6ec A3 : 0x00000003 A4 : 0x0000004c A5 : 0x3fff342c
A6 : 0x00000019 A7 : 0x3ffea61c A8 : 0x00000000 A9 : 0x000cb25d
A10 : 0x3ffea920 A11 : 0x00000019 A12 : 0x00000080 A13 : 0x00000007
A14 : 0x00000080 A15 : 0x3ffea920 SAR : 0x0000001e EXCCAUSE: 0x0000001d

Backtrace: 0x3ff20c1c:0x4
���PV��ET����T��K��u�U+UZ��UT��T
����Ū TQT�QQ��jP� ��u�����ZT�( E����QZ�Eu�� ����B����B�u�� E+��TT)UZV� RUEu�� ��ŪQB���U���UP�Q�ZT�( E����Q��E�jQ�����UUPR�B�u�
�U�**P��UUU��TT����-+V
�u�u�UZ��UE��UU�Q�U�ꮫ�ꪪUP��
��U�ե�UT���UUPR�B�u�ե��ԢJ��(U�j

U Z�)UX��UUU�TU�U��T��u�
UT U�UT���
�UT�UU�TU�U��T�U���ZUT U+UP���
��UUU�TU�U��TUU���ZUT � Z�UU��UUJ U�TU�U��T�
�u�
Q�����(RUZ��UE��UU�Q�U�ꮫ�� RJP�����UZԪ������X
U�]UZJP�UV����UE��UU�Q,U���Z���-��������R ��������Q� Q�Q�QQE � U�TU�U��T�TB�u�

]Z��+P����]� �������Q
Q�QQE �QQE � U�TU�U��T� �u�
��,ծժ
����U)���������Q
QQUQ�QQ� � U�TU�U��T�UB�u�
��++�������]� E,P����Q��(Q�QQQQE Q��UE��UU�QT� �u�
��U��P����������������Q� �QQ�QQE � U�TU�U��TJU �u�

]Z�J(�����]� E,P����Q�
�QQQ�QUQQ��UE��UU�QT��u�
�+��P�K����ZTT�UU�TU�U��T��B�u�
��UR�Z U�VJ����V]� Q��UE��UU�Q�U U-�U V���VU�ZQ
��T�Q(Q�TQ��T�QTU�TQ�U��\�UE(�U Q U(J U�����UUP��U�լ��V���VU�Z�
��T�Q(Q ����T�QTU �Q�U��\JT�(J Q�U(J U�����UUPRUU�լ��V���VU�ZU
��T�Q(Q�����T�Q��� Q�U��\Q��B�U�
� T��UE��UU�Q�� U-�U V���VU�ZU
��T�Q(Q��T��T�QT�QQ����Q(E�B�U�� T��UE��UU�QU-�U V���VU�Z�
��T�Q(Q�����T�QT�Q�Q�U��\UVXQ�U�� � T��UE��UU�Q�� �u�
� TJP XU몱T������]UZJPq QQ��U�I (488) system_api: Base MAC address is not set, read default base MAC address from EFUSE
I (494) system_api: Base MAC address is not set, read default base MAC address from EFUSE
phy_version: 1163.0, 665d56c, Jun 24 2020, 10:00:08, RTOS new
I (559) phy_init: phy ver: 1163_0
I (562) reset_reason: RTC reset 4 wakeup 0 store 4, reason is 7
E (567) wrapper_kv: Set q_rt blob value
E (575) wrapper_kv: Set awss.rst blob value
W (584) factory_rst: factory restore
E (588) wrapper_kv: nvs erase key stassid failed with 1102
E (598) wrapper_kv: nvs erase key pswd failed with 1102
E (607) wrapper_kv: Set scmode blob value
I (615) conn_mgr: conn_mgr_set_sc_mode success
I (621) gpio: GPIO[0]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (635) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (649) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (663) pwm: --- PWM v3.2

[prt] log level set as: [ 4 ]
W (688) wrapper_kv: nvs get blob stassid failed with 1102
[crt] enable awss

I (694) app main: IOTX_AWSS_ENABLE
[crt] ssid:adh_a19VBJplWV5_8303F7

I (703) awss: ssid: adh_a19VBJplWV5_8303F7
I (1709) app main: IOTX_AWSS_START
I (1716) udp: success to establish udp, fd=0
I (1722) os: task name is CoAPServer_yield

I (1727) app main: IOTX_AWSS_ENABLE
E (6563) wrapper_kv: nvs erase key q_rt failed with 1102
I (6567) factory_rst: Quick reboot timeout, clear reboot times

4. 其他项

烧录example/smart_light例程,下载进去一直重复打印 [crt] chan 1.....这样的信息

1. 开发环境

  • 模组或开发板:esp32
  • esp-ali-smartliving 版本:1.6
  • ESP-IDF 版本:3.3

2. 问题描述

烧录example/smart_light例程,下载进去一直重复打印 [crt] chan 1.....这样的信息,

2.1 复现步骤

我第一次修改了分区表,把三元组烧录进去,配网成功过一次。后来我运行了 make erase_flash 擦除了flash,并且又烧录进去了三元组,发现又出现了跑历程的情况,我再次修改分区表 发现没用了,串口显示一直再重复打印 [crt] chan 1..(最下面有调试信息),
是不是这个是一次性的,一旦配网成功,擦除flash,所有的一切都没了???

3. 调试 Logs

I (366) app main: IOTX_AWSS_ENABLE
I (366) app main: IOTX_AWSS_START
[inf] zconfig_init(284): zconfig_init
I (376) wifi:ic_enable_sniffer
I (376) awss: Open monitor mode
[crt] chan 1

[crt] chan 6

[crt] chan 11

[crt] chan 1

[crt] chan 2

[crt] chan 3

[crt] chan 4

[crt] chan 5

[crt] chan 6

[crt] chan 7

[crt] chan 8

[crt] chan 9

[crt] chan 10

[crt] chan 11

提示:wifi: ap_probe_send_over, rest wifi status to disassoc 无法重连

根据本SDK,运行smartlight例程,长时间工作会偶然出现,断线无法自动重连,log如下:
[10:04:50.310]收←◆�[1;33m[inf] iotx_mc_cycle(1925): receive ping response!
�[0m
[10:05:20.555]收←◆�[1;33m[inf] iotx_mc_keepalive_sub(3056): send MQTT ping...
�[0m
[10:05:50.812]收←◆�[1;33m[inf] iotx_mc_keepalive_sub(3056): send MQTT ping...
�[0m
[10:06:12.740]收←◆�[0;32mI (56198205) wifi: bcn_timout,ap_probe_send_start�[0m

[10:06:15.245]收←◆�[0;32mI (56200709) wifi: ap_probe_send_over, rest wifi status to disassoc�[0m
�[0;32mI (56200711) wifi: state: 5 -> 0 (100)�[0m
�[0;32mI (56200713) wifi: pm stop�[0m
�[0;31mE (56200718) conn_mgr: Disconnect reason : 200�[0m
�[0;31mE (56200727) esp-tls-wolfssl: read error :-397:�[0m
�[0;31mE (56200733) iot_import_tls: esp_tls_conn_read error, errno:Software caused connection abort�[0m
�[1;31m[err] IOT_MQTT_Yield(3281): error occur rc=-14
�[0m�[1;31m[err] iotx_mc_keepalive(2655): network is disconnected!
�[0m�[1;33m[inf] iotx_cloud_conn_mqtt_event_handle(87): disconnected,fd = 0
�[0m�[1;33m[inf] _dm_client_event_cloud_disconnect_handle(139): IOTX_CM_EVENT_CLOUD_DISCONNECT
�[0m�[1;31m[err] IOT_MQTT_Yield(3281): error occur rc=-27
�[0m
[10:06:15.382]收←◆�[0;31mE (56200846) conn_mgr: Disconnect reason : 201�[0m

[10:06:15.442]收←◆�[1;31m[err] IOT_MQTT_Yield(3281): error occur rc=-27
�[0m
[10:06:15.552]收←◆�[1;31m[err] IOT_MQTT_Yield(3281): error occur rc=-27
�[0m
[10:06:15.652]收←◆�[1;33m[inf] _iotx_linkkit_event_callback(237): Receive Message Type: 1
�[0m�[1;32;40muser_disconnected_event_handler.89: Cloud Disconnected�[0m

[10:06:15.782]收←◆�[1;31m[err] IOT_MQTT_Yield(3281): error occur rc=-27
�[0m
[10:06:15.892]收←◆�[1;31m[err] IOT_MQTT_Yield(3281): error occur rc=-27
�[0m
[10:06:16.002]收←◆�[1;31m[err] IOT_MQTT_Yield(3281): error occur rc=-27

麻烦提供一下解决方法
谢谢!

esp32-s2能否使用该代码?

1. 开发环境

  • 模组或开发板:esp32-s2
  • esp-ali-smartliving 版本(git rev-parse --short HEAD 来获取 commit id):1.6
  • ESP-IDF 版本(git rev-parse --short HEAD 来获取 commit id):master (4.2)

2. 问题描述

我想问一下,这个版本对于idf要求是v3.3.2版本的,而我用的是esp32-s2的开发板,而esp32-s2只支持最新的master 版本,也就是4.2版本,请问我怎么才能编译成功??是不是意味着esp32S2是不能用这个代码。

有没有关于idf3.2版本 WS2812驱动的代码

1. 开发环境

  • 模组或开发板:esp32
  • esp-ali-smartliving 版本:1.6
  • ESP-IDF 版本(git rev-parse --short HEAD 来获取 commit id):3.2.2

2. 问题描述

请问有没有关于idf3.2.2的ws2812的驱动,idf4.2版本有个 ws21812的驱动,拿到3.2.2版本下编译失败,请问有没有低版本的驱动?或者这个仓库支持不支持4.1版本以上的?

有没有计划支持Windows上面用idf编译调试?

1. 开发环境

  • 模组或开发板:
  • esp-ali-smartliving 版本 : 4a750a5
  • ESP8266_RTOS_SDK 版本 :e09f004f
  • ESP-IDF 版本:e09f004f

2. 问题描述

其它模块基本支持通过再windows上面idf build进行编译。这个模块有没有计划支持?

最新的天猫精灵,已经无法进行配网

ubuntu 18.04
ESP8266 (多家硬件均一样的问题,使用的是安信可ESP-12S,天猫官方默认支持)

操作过程如下:

apt-get install git wget flex bison gperf python python-pip python-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
apt-get install libncurses5-dev libncursesw5-dev
apt-get python-serial

mkdir -p ~/esp
cd ~/esp
git clone https://github.com/espressif/ESP8266_RTOS_SDK.git
cd ~/esp/ESP8266_RTOS_SDK
git checkout release/v3.3
export IDF_PATH=~/esp/ESP8266_RTOS_SDK


cd ~/esp
wget "https://dl.espressif.com/dl/xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz"
tar zxvf xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz
export PATH=$PATH:/root/esp/xtensa-lx106-elf/bin



python -m pip install --user -r ~/esp/ESP8266_RTOS_SDK/requirements.txt


#cd ~/esp/ESP8266_RTOS_SDK/examples/get-started/hello_world
#make menuconfig

cd ~/esp
git clone https://github.com/espressif/esp-ali-smartliving.git

cd ~/esp/esp-ali-smartliving/ali-smartliving-device-sdk-c
make reconfig (选择SDK平台)
make menuconfig (选择相关功能配置,默认不需要修改,该步骤可以省略)
make (生成相关头文件和库文件)


cd ~/esp/esp-ali-smartliving/examples/solutions/smart_light
make defconfig
make menuconfig

cp  ~/esp/esp-ali-smartliving/config/mass_mfg/single_mfg_config.csv tm.csv

$IDF_PATH/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py --input tm.csv --output tm.bin --size 0x4000

$IDF_PATH/components/esptool_py/esptool/esptool.py --port /dev/ttyUSB0 write_flash 0x100000 tm.bin

tm.csv 已经写入天猫四元组

错误如下

TART
I (1737) udp: success to establish udp, fd=0
I (1742) os: task name is CoAPServer_yield

I (1746) app main: IOTX_AWSS_ENABLE
E (6584) wrapper_kv: nvs erase key q_rt failed with 1102
I (6588) factory_rst: Quick reboot timeout, clear reboot times

多次实验,均发现是nvs 区写入失败,有多个KEY无法写入,然后就重启死翘翘了

代码烧写到02dc模组,程序卡死不动

1. 开发环境

  • 模组或开发板:
  • esp-ali-smartliving 版本(git rev-parse --short HEAD 来获取 commit id):15cc594a
  • ESP8266_RTOS_SDK 版本(git rev-parse --short HEAD 来获取 commit id):3a7964b
  • ESP-IDF 版本(git rev-parse --short HEAD 来获取 commit id):

2. 问题描述

程序默认选项编译,烧入02DC模组,感觉卡死了,mnitor 监控停止不输出了

2.1 复现步骤

  1. ...
  2. ...

2.2 复现问题的代码

// 如果需要提交复现问题的代码, 可通过 GIST 或通过附件的方式提交。

3. 调试 Logs

ets Jan 8 2013,rst cause:1, boot mode:(3,0)

load 0x40100000, len 7168, room 16
tail 0
chksum 0xc9
load 0x3ffe8408, len 24, room 8
tail 0
chksum 0x40
load 0x3ffe8420, len 3544, room 8
tail 0
chksum 0x01
I (44) boot: ESP-IDF v3.3-31-g3a7964b 2nd stage bootloader
I (44) boot: compile time 16:49:18
I (45) qio_mode: Enabling default flash chip QIO
I (52) boot: SPI Speed : 40MHz
I (58) boot: SPI Mode : QIO
I (64) boot: SPI Flash Size : 2MB
I (71) boot: Partition Table:
I (76) boot: ## Label Usage Type ST Offset Length
I (87) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (99) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (110) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (122) boot: 3 ota_0 OTA app 00 10 00010000 000f0000
I (134) boot: 4 fctry WiFi data 01 02 00100000 00004000
I (145) boot: 5 ota_1 OTA app 00 11 00110000 000f0000
I (157) boot: End of partition table
I (163) boot: No factory image, trying OTA 0
I (171) esp_image: segment 0: paddr=0x00010010 vaddr=0x40210010 size=0x97e50 (622160) map
0x40210010: _stext at ??:?

I (394) esp_image: segment 1: paddr=0x000a7e68 vaddr=0x402a7e60 size=0x1aa68 (109160) map
I (431) esp_image: segment 2: paddr=0x000c28d8 vaddr=0x3ffe8000 size=0x00928 ( 2344) load
I (432) esp_image: segment 3: paddr=0x000c3208 vaddr=0x40100000 size=0x00a70 ( 2672) load
I (442) esp_image: segment 4: paddr=0x000c3c80 vaddr=0x40100a70 size=0x059cc ( 22988) load
I (463) boot: Loaded app from partition at offset 0x10000
I (482) system_api: Base MAC address is not set, read default base MAC address from EFUSE

ESP32-C3-01M的适配

请问ESP32-C3系列芯片请问有适配吗,或者后面什么时候会适配呢

ESP32-S2编译失败,找不到许多方法和函数;

1. 开发环境

  • 模组或开发板:
  • esp-ali-smartliving 版本:15cc594
  • ESP-IDF 版本:cd4fa46f5
  • 环境: Linux

2. 问题描述

无法正常编译

2.1 复现步骤

  1. 环境正确搭建;
  2. 运行脚本 build.sh

2.2 复现问题的Logs

/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(awss_reset.o):(.literal.awss_handle_reset_cloud_reply+0x10): undefined reference to `HAL_Timer_Stop'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(awss_reset.o):(.literal.awss_handle_reset_cloud_reply+0x14): undefined reference to `HAL_Timer_Delete'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(awss_reset.o): in function `awss_handle_reset_cloud_reply':
(.text.awss_handle_reset_cloud_reply+0x20): undefined reference to `HAL_Timer_Stop'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.awss_handle_reset_cloud_reply+0x2a): undefined reference to `HAL_Timer_Delete'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(awss_reset.o): in function `awss_stop_report_reset':
(.text.awss_stop_report_reset+0x1c): undefined reference to `HAL_Timer_Stop'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.awss_stop_report_reset+0x26): undefined reference to `HAL_Timer_Delete'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(awss.o):(.literal.awss_config_press+0x14): undefined reference to `HAL_Awss_Get_Timeout_Interval_Ms'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(awss.o):(.literal.awss_config_press+0x18): undefined reference to `HAL_Timer_Create'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(awss.o):(.literal.awss_config_press+0x1c): undefined reference to `HAL_Timer_Start'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(awss.o): in function `awss_config_press':
(.text.awss_config_press+0x3): undefined reference to `HAL_Awss_Get_Timeout_Interval_Ms'
(.text.iotx_report_devinfo+0x133): undefined reference to `HAL_GetNetifInfo'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o):(.literal.iotx_mc_connect+0x58): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o):(.literal.iotx_mc_release+0xc): undefined reference to `HAL_MutexDestroy'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o):(.literal.IOT_MQTT_Construct+0x5c): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `iotx_mc_get_next_packetid':
(.text.iotx_mc_get_next_packetid+0xc): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_get_next_packetid+0x20): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `iotx_mc_get_client_state':
(.text.iotx_mc_get_client_state+0x6): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_get_client_state+0x10): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `iotx_mc_set_client_state':
(.text.iotx_mc_set_client_state+0x6): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_set_client_state+0x10): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `iotx_mc_push_subInfo_to':
(.text.iotx_mc_push_subInfo_to+0x22): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_push_subInfo_to+0x5a): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_push_subInfo_to+0x8d): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_push_subInfo_to+0xde): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `iotx_mc_read_packet':
(.text.iotx_mc_read_packet+0x13): undefined reference to `HAL_MutexLock'
(.text._iotx_mqtt_event_handle_sub$isra$7+0x24): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text._iotx_mqtt_event_handle_sub$isra$7+0x52): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `MQTTDisconnect':
(.text.MQTTDisconnect+0xb): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.MQTTDisconnect+0x3b): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `iotx_mqtt_offline_subscribe':
(.text.iotx_mqtt_offline_subscribe+0x67): undefined reference to `HAL_MutexCreate'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mqtt_offline_subscribe+0x82): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mqtt_offline_subscribe+0xdb): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mqtt_offline_subscribe+0xf7): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mqtt_offline_subscribe+0x173): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mqtt_offline_subscribe+0x187): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `MQTTConnect':
(.text.MQTTConnect+0xc): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.MQTTConnect+0x3a): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.MQTTConnect+0x76): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.MQTTConnect+0x82): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `MQTTPublish':
(.text.MQTTPublish+0x32): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.MQTTPublish+0x3b): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.MQTTPublish+0x8e): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.MQTTPublish+0x97): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.MQTTPublish+0x157): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.MQTTPublish+0x160): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.MQTTPublish+0x18f): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o):(.text.MQTTPublish+0x198): more undefined references to `HAL_MutexUnlock' follow
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `iotx_mc_subscribe':
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `iotx_mc_unsubscribe':
(.text.iotx_mc_unsubscribe+0xd1): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_unsubscribe+0x163): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_unsubscribe+0x16c): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_unsubscribe+0x19c): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_unsubscribe+0x1db): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_unsubscribe+0x1fb): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_unsubscribe+0x211): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_unsubscribe+0x224): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_unsubscribe+0x246): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_unsubscribe+0x292): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_unsubscribe+0x29b): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `iotx_mc_init':
(.text.iotx_mc_init+0x65): undefined reference to `HAL_MutexCreate'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_init+0x363): undefined reference to `HAL_MutexDestroy'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_init+0x373): undefined reference to `HAL_MutexDestroy'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_init+0x383): undefined reference to `HAL_MutexDestroy'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.iotx_mc_init+0x393): undefined reference to `HAL_MutexDestroy'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: /mnt/d/ESPRESSIF/Linux_Windows/esp-ali-smartliving/ali-smartliving-device-sdk-c/output/release/lib/libiot_sdk.a(mqtt_client.o): in function `iotx_mc_connect':
(.text.iotx_mc_connect+0xe2): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.IOT_MQTT_Yield+0xdd): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.IOT_MQTT_Yield+0x11b): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.IOT_MQTT_Yield+0x147): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.IOT_MQTT_Yield+0x15c): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.IOT_MQTT_Yield+0x27d): undefined reference to `HAL_MutexLock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.IOT_MQTT_Yield+0x286): undefined reference to `HAL_MutexUnlock'
/home/xuhongv/.espressif/tools/xtensa-esp32s2-elf/esp-2020r1-8.2.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.2.0/../../../../xtensa-esp32s2-elf/bin/ld: (.text.IOT_MQTT_Yield+0x2b3): undefined reference to `HAL_MutexLock'

编译报错

1. 开发环境

  • 模组或开发板:
  • esp-ali-smartliving 版本(git rev-parse --short HEAD 来获取 commit id):15cc594
  • ESP8266_RTOS_SDK 版本(git rev-parse --short HEAD 来获取 commit id):3ad3fd7
  • ESP-IDF 版本(git rev-parse --short HEAD 来获取 commit id):

2. 问题描述

编译报错:
/home/hankchen/ESP_8266/esp-ali-smartliving/wrappers/wrapper_ota.c:27:28: fatal error: mbedtls/sha256.h: No such file or directory
compilation terminated.
/home/hankchen/ESP_8266/ESP8266_RTOS_SDK/make/component_wrapper.mk:285: recipe for target 'wrappers/wrapper_ota.o' failed
make[1]: *** [wrappers/wrapper_ota.o] Error 1

如何关闭此部分wifi 信息

1. 开发环境

  • 模组或开发板:ESP8266
    -开发环境按照本仓库搭建

2. 问题描述

如何关闭这部分wifi 信息
I (3202) wifi: state: 0 -> 2 (b0)
I (3209) wifi: state: 2 -> 3 (0)
I (3215) wifi: state: 3 -> 5 (10)
I (3218) wifi: pm start, type: 2
I (3221) wifi: state: 5 -> 2 (3a0)
I (3224) wifi: pm stop
I (3347) wifi: state: 2 -> 2 (b0)
I (3350) wifi: state: 2 -> 0 (0)
I (3474) wifi: state: 0 -> 2 (b0)
I (3478) wifi: state: 2 -> 3 (0)
I (3483) wifi: state: 3 -> 5 (10)
I (3486) wifi: pm start, type: 2

编译 ali-smartliving-device-sdk-c 库出错

----------------------------- 以下请删除 -----------------------------

提交问题时,请先仔细阅读该段提示信息!!

为了更高效的解决 issue 中提交的问题,请按照以下 issue 模板进行提交,请注意以下信息:

  1. 提交时请删除这段提示文字;
  2. 提交时删除以下由 // 开头的文字,并对此做详细补充,如没有特殊信息,可写

感谢配合。

----------------------------- 以上请删除 -----------------------------

1. 开发环境

  • 模组或开发板:
  • esp-ali-smartliving 版本(0159374):
  • ESP-IDF 版本(9e70825d1):

2. 问题描述

编译 ali-smartliving-device-sdk-c 库,在 esp-ali-smartliving 目录下执行:make menuconfig,后提示错误
错误如下
root@r0lsec-VirtualBox:/home/r0lsec/aliyun/esp-ali-smartliving/ali-smartliving-device-sdk-c# make menuconfig
./src/protocol/mqtt/Config.in:9:warning: multi-line strings not supported
make: *** [/home/r0lsec/aliyun/esp-ali-smartliving/ali-smartliving-device-sdk-c/build-rules/_rules-top.mk:204:menuconfig] 错
误 1

2.1 复现步骤

  1. cd esp-ali-smartliving
  2. make menuconfig

移植 生活物联网平台SDK(V1.6.6) mqtt连接失败,云智能公版APP添加不了设备

1. 开发环境

  • 模组或开发板: esp8266mod
  • esp-ali-smartliving 版本:15cc594
  • ESP8266_RTOS_SDK 版本:1be2289

2. 问题描述

移植 生活物联网平台SDK(V1.6.6) mqtt连接失败,云智能公版APP添加不了设备.
�[0;32mI (55977) app main: IOTX_AWSS_GOT_SSID_PASSWD�[0m
[crt] ready connect ap 'HUAWEI-E5573-87EA'

�[1;33minf do_connect_ap(817): dev ap: wait switchap resp ack,cnt = 1
�[0m�[1;33minf do_connect_ap(817): dev ap: wait switchap resp ack,cnt = 2
�[0m�[1;33minf do_connect_ap(817): dev ap: wait switchap resp ack,cnt = 3
�[0m�[0;32mI (56727) awss: ssid: adh_unusable�[0m
�[0;32mI (60988) app main: IOTX_AWSS_CONNECT_ROUTER�[0m
�[0;32mI (60991) awss: ssid: HUAWEI-E5573-87EA, password: ******, channel: 0�[0m
�[0;32mI (60999) awss: Connecting AP�[0m
�[0;32mI (62640) wifi:state: 0 -> 2 (b0)
�[0m�[0;32mI (62642) wifi:state: 2 -> 3 (0)
�[0m�[0;32mI (62646) wifi:state: 3 -> 5 (10)
�[0m�[0;32mI (62647) awss: Connecting AP�[0m
�[0;32mI (62659) wifi:connected with HUAWEI-E5573-87EA, aid = 3, channel 4, HT20, bssid = d0:16:b4:2a:87:ea
�[0m�[0;32mI (63146) awss: Connecting AP�[0m
�[0;32mI (63646) awss: Connecting AP�[0m
�[0;32mI (64146) awss: Connecting AP�[0m
�[0;31mE (64390) udp: sendto�[0m
�[1;31merr CoAPMessage_send(552): CoAP transport write failed, send message 46133 return 0
�[0m�[0;32mI (64646) awss: Connecting AP�[0m
�[0;32mI (65146) awss: Connecting AP�[0m
�[0;32mI (65649) awss: Connecting AP�[0m
�[0;32mI (66139) tcpip_adapter: sta ip: 192.168.0.103, mask: 255.255.255.0, gw: 192.168.0.1�[0m
�[0;31mE (66144) wrapper_kv: Set stassid blob value�[0m
�[0;31mE (66150) wrapper_kv: Set pswd blob value�[0m
�[0;32mI (66156) conn_mgr: SNTP get time failed (0), retry after 1000 ms
�[0m
�[0;32mI (66161) awss: AP connected�[0m
�[0;32mI (66163) app main: IOTX_AWSS_GOT_IP�[0m
[crt] connect 'HUAWEI-E5573-87EA' success

�[0;32mI (66370) app main: IOTX_AWSS_SUC_NOTIFY�[0m
�[1;33minf awss_notify_dev_info(232): topic:/sys/awss/event/connectap/notify
�[0m�[1;33minf awss_notify_dev_info(236): coap send notify success
�[0m�[1;33minf awss_notify_dev_info(232): topic:/sys/awss/event/connectap/notify
�[0m�[1;33minf awss_notify_dev_info(236): coap send notify success
�[0m�[0;32mI (67156) conn_mgr: SNTP get time failed (1), retry after 1000 ms
�[0m
�[0;32mI (68156) conn_mgr: SNTP get time failed (2), retry after 1000 ms
�[0m
�[0;32mI (69156) conn_mgr: SNTP get time failed (3), retry after 1000 ms
�[0m
�[0;32mI (70156) conn_mgr: SNTP get time failed (4), retry after 1000 ms
�[0m
�[0;32mI (71157) conn_mgr: SNTP get time success
�[0m
�[1;33minf iotx_alcs_construct(465): iotx_alcs_construct enter
�[0m�[1;33minf iotx_alcs_adapter_init(271): iotx_alcs_adapter_init
�[0m�[1;33minf CoAPServer_init(176): The CoAP Server already init
�[0m�[1;33minf alcs_context_init(275): CoAPServer_init return :0x40107fb8
�[0m�[1;33minf iotx_alcs_register_resource(817): alcs register resource, uri:/dev/a1dOsU2Wgyv/vMAdO0I8xxdIsP4Rjmo7/core/service/setup
�[0m�[1;33minf alcs_resource_register_secure(750): alcs_resource_register_secure
�[0m�[0;33mW (71217) wrapper_kv: nvs get blob ALCS_KEY failed with 1102�[0m
�[1;35mwrn __alcs_localsetup_kv_get(45): HAL_Kv_Get('ALCS_KEY') = 4354 (!= 0), return 1
�[0m�[1;35mwrn alcs_localsetup_ac_as_load(156): ALCS KV Get local Prefix And Secret Fail
�[0m�[1;33minf alcs_add_svr_key(297): alcs_add_svr_key, priority=0
�[0m�[1;33minf add_svr_key(247): add_svr_key, key:Xtau@iot
�[0m�[1;33minf add_svr_key(253): add_svr_key 1
�[0m�[1;33minf alcs_remove_low_priority_key(225): alcs_remove_low_priority_key 2_0: 0x3ffeb398:0x3ffeb398
�[0m�[1;33minf alcs_remove_low_priority_key(238): alcs_remove_low_priority_key 3
�[0m�[1;33minf add_svr_key(255): add_svr_key 2
�[0m�[1;33minf add_svr_key(265): add_svr_key 3
�[0m�[1;33minf add_svr_key(271): add_svr_key 4
�[0m�[1;33minf add_svr_key(279): add_svr_key 5
�[0m�[1;33minf add_svr_key(285): add_svr_key 6
�[0m�[1;33minf add_svr_key(291): finish add svr key
�[0m�[1;33minf CoAPServer_init(176): The CoAP Server already init
�[0m�[1;33minf _dm_server_dev_notify(50): notify path:/dev/core/service/dev/notify; payload = {"id":"0","version":"1.0","params":{"devices":{"addr":"192.168.0.103","port":5683,"pal":"linkkit-ica","profile":[{"productKey":"a1dOsU2Wgyv","deviceName":"vMAdO0I8xxdIsP4Rjmo7"}]}},"method":"core.service ...
�[0m�[1;33minf dm_client_open(37): CM Fd: 0
�[0m�[1;33minf iotx_alcs_register_resource(817): alcs register resource, uri:/sys/a1dOsU2Wgyv/vMAdO0I8xxdIsP4Rjmo7/thing/service/property/set
�[0m�[1;33minf alcs_resource_register_secure(750): alcs_resource_register_secure
�[0m�[1;33minf dm_server_subscribe(160): Register Resource Result: 0
�[0m�[1;33minf iotx_alcs_register_resource(817): alcs register resource, uri:/sys/a1dOsU2Wgyv/vMAdO0I8xxdIsP4Rjmo7/thing/service/property/get
�[0m�[1;33minf alcs_resource_register_secure(750): alcs_resource_register_secure
�[0m�[1;33minf dm_server_subscribe(160): Register Resource Result: 0
�[0m�[1;33minf iotx_alcs_register_resource(817): alcs register resource, uri:/sys/a1dOsU2Wgyv/vMAdO0I8xxdIsP4Rjmo7/thing/event/property/post
�[0m�[1;33minf alcs_resource_register_secure(750): alcs_resource_register_secure
�[0m�[1;33minf dm_server_subscribe(160): Register Resource Result: 0
�[0m�[1;33minf iotx_alcs_register_resource(817): alcs register resource, uri:/sys/a1dOsU2Wgyv/vMAdO0I8xxdIsP4Rjmo7/thing/service/#
�[0m�[1;33minf alcs_resource_register_secure(750): alcs_resource_register_secure
�[0m�[1;33minf dm_server_subscribe(160): Register Resource Result: 0
�[0m�[1;33minf iotx_alcs_register_resource(817): alcs register resource, uri:/dev/core/service/dev
�[0m�[1;33minf dm_server_subscribe(160): Register Resource Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf dm_client_subscribe(150): Subscribe Result: 0
�[0m�[1;33minf iotx_dm_subscribe(238): Devid 0 Sub Completed
�[0m�[0;32mI (71561) app main: IOTX_CONN_CLOUD�[0m
�[1;33minf iotx_guider_get_kv_env(176): guider set env:3
�[0m�[1;33minf iotx_guider_authenticate(1290): dyna url:a1dOsU2Wgyv.iot-as-mqtt.cn-shanghai.aliyuncs.com count:1
�[0m.................................
PK : a1dOsU2Wgyv
DN : vMAdO0I8xxdIsP4Rjmo7
DS : 5c3d814b66
PID : espressif
MID : wroom
SM : TLS + Direct
TS : 2524608000000
.................................
�[0;33mW (71611) wrapper_kv: nvs get blob awss.rst failed with 1102�[0m
.................................
Host : a1dOsU2Wgyv.iot-as-mqtt.cn-shanghai.aliyuncs.com
Port : 443
ClientID : a1dOsU2Wgyv.vMAdO0I8xxdIsP4Rjmo7|securemode=2,tokenType=1,token=B1F9DD8EFDE92D7CEF5EC525F13FC200,_v=sdk-c-2.3.0_FY_1.6.6,timestamp=2524608000000,signmethod=hmacsha1,lan=C,pid=espressif,mid=wroom,authtype=custom-ilop,_fy=1.6.6,_ss=1|
CA : ('... HMUfpIBvFSDJ3gyI ...')
.................................
�[1;33minf iotx_mc_init(2349): MQTT init success!
�[0m�[1;33minf recv_msg_handler(135): recv_msg_handler call callback
�[0m�[1;33minf _dm_server_malloc_context(27): alcs_context->ip: 192.168.0.100
�[0m�[1;33minf _dm_server_malloc_context(28): alcs_context->port: 5683
�[0m�[1;33minf dm_msg_proc_thing_dev_core_service_dev(1069): /dev/core/service/dev
�[0m�[1;33minf dm_msg_response(268): Send URI: /dev/core/service/dev, Payload: {"id":"14","code":200,"data":{"devices":{"addr":"192.168.0.103","port":5683,"pal":"linkkit-ica","profile":[{"productKey":"a1dOsU2Wgyv","deviceName":"vMAdO0I8xxdIsP4Rjmo7"}]}}}
�[0m�[1;33minf dm_server_send(137): Send Response Result 0
�[0m�[1;33minf recv_msg_handler(135): recv_msg_handler call callback
�[0m�[1;33minf _dm_server_malloc_context(27): alcs_context->ip: 192.168.0.100
�[0m�[1;33minf _dm_server_malloc_context(28): alcs_context->port: 5683
�[0m�[1;33minf dm_msg_proc_thing_dev_core_service_dev(1069): /dev/core/service/dev
�[0m�[1;33minf dm_msg_response(268): Send URI: /dev/core/service/dev, Payload: {"id":"15","code":200,"data":{"devices":{"addr":"192.168.0.103","port":5683,"pal":"linkkit-ica","profile":[{"productKey":"a1dOsU2Wgyv","deviceName":"vMAdO0I8xxdIsP4Rjmo7"}]}}}
�[0m�[1;33minf dm_server_send(137): Send Response Result 0
�[0m�[1;31merr iotx_mc_wait_CONNACK(1803): recvConnackProc error,result = -35
�[0m�[1;31merr iotx_mc_connect(2746): wait connect ACK timeout, or receive a ACK indicating error!
�[0m�[1;31merr IOT_MQTT_Construct(3148): iotx_mc_connect failed
�[0m�[1;33minf iotx_mc_disconnect(2871): mqtt disconnect!
�[0m�[1;33minf recv_msg_handler(135): recv_msg_handler call callback
�[0m�[1;33minf _dm_server_malloc_context(27): alcs_context->ip: 192.168.0.100
�[0m�[1;33minf _dm_server_malloc_context(28): alcs_context->port: 5683
�[0m�[1;33minf dm_msg_proc_thing_dev_core_service_dev(1069): /dev/core/service/dev
�[0m�[1;33minf dm_msg_response(268): Send URI: /dev/core/service/dev, Payload: {"id":"16","code":200,"data":{"devices":{"addr":"192.168.0.103","port":5683,"pal":"linkkit-ica","profile":[{"productKey":"a1dOsU2Wgyv","deviceName":"vMAdO0I8xxdIsP4Rjmo7"}]}}}
�[0m�[1;33minf iotx_mc_release(2964): mqtt release!
�[0m�[1;33minf dm_server_send(137): Send Response Result 0
�[0m�[1;33minf iotx_guider_authenticate(1290): dyna url:a1dOsU2Wgyv.iot-as-mqtt.cn-shanghai.aliyuncs.com count:2
�[0m.................................
PK : a1dOsU2Wgyv
DN : vMAdO0I8xxdIsP4Rjmo7
DS : 5c3d814b66
PID : espressif
MID : wroom
SM : TLS + Direct
TS : 2524608000000
.................................
�[0;33mW (71611) wrapper_kv: nvs get blob awss.rst failed with 1102�[0m
.................................
Host : a1dOsU2Wgyv.iot-as-mqtt.cn-shanghai.aliyuncs.com
Port : 443
ClientID : a1dOsU2Wgyv.vMAdO0I8xxdIsP4Rjmo7|securemode=2,tokenType=1,token=B1F9DD8EFDE92D7CEF5EC525F13FC200,_v=sdk-c-2.3.0_FY_1.6.6,timestamp=2524608000000,signmethod=hmacsha1,lan=C,pid=espressif,mid=wroom,authtype=custom-ilop,_fy=1.6.6,_ss=1|
CA : ('... HMUfpIBvFSDJ3gyI ...')
.................................
�[1;33minf iotx_mc_init(2349): MQTT init success!
�[0m�[1;33minf recv_msg_handler(135): recv_msg_handler call callback
�[0m�[1;33minf _dm_server_malloc_context(27): alcs_context->ip: 192.168.0.100
�[0m�[1;33minf _dm_server_malloc_context(28): alcs_context->port: 5683
�[0m�[1;33minf dm_msg_proc_thing_dev_core_service_dev(1069): /dev/core/service/dev
�[0m�[1;33minf dm_msg_response(268): Send URI: /dev/core/service/dev, Payload: {"id":"14","code":200,"data":{"devices":{"addr":"192.168.0.103","port":5683,"pal":"linkkit-ica","profile":[{"productKey":"a1dOsU2Wgyv","deviceName":"vMAdO0I8xxdIsP4Rjmo7"}]}}}
�[0m�[1;33minf dm_server_send(137): Send Response Result 0
�[0m�[1;33minf recv_msg_handler(135): recv_msg_handler call callback
�[0m�[1;33minf _dm_server_malloc_context(27): alcs_context->ip: 192.168.0.100
�[0m�[1;33minf _dm_server_malloc_context(28): alcs_context->port: 5683
�[0m�[1;33minf dm_msg_proc_thing_dev_core_service_dev(1069): /dev/core/service/dev
�[0m�[1;33minf dm_msg_response(268): Send URI: /dev/core/service/dev, Payload: {"id":"15","code":200,"data":{"devices":{"addr":"192.168.0.103","port":5683,"pal":"linkkit-ica","profile":[{"productKey":"a1dOsU2Wgyv","deviceName":"vMAdO0I8xxdIsP4Rjmo7"}]}}}
�[0m�[1;33minf dm_server_send(137): Send Response Result 0
�[0m�[1;31merr iotx_mc_wait_CONNACK(1803): recvConnackProc error,result = -35
�[0m�[1;31merr iotx_mc_connect(2746): wait connect ACK timeout, or receive a ACK indicating error!
�[0m�[1;31merr IOT_MQTT_Construct(3148): iotx_mc_connect failed
�[0m�[1;33minf iotx_mc_disconnect(2871): mqtt disconnect!
�[0m�[1;33minf recv_msg_handler(135): recv_msg_handler call callback
�[0m�[1;33minf _dm_server_malloc_context(27): alcs_context->ip: 192.168.0.100
�[0m�[1;33minf _dm_server_malloc_context(28): alcs_context->port: 5683
�[0m�[1;33minf dm_msg_proc_thing_dev_core_service_dev(1069): /dev/core/service/dev
�[0m�[1;33minf dm_msg_response(268): Send URI: /dev/core/service/dev, Payload: {"id":"16","code":200,"data":{"devices":{"addr":"192.168.0.103","port":5683,"pal":"linkkit-ica","profile":[{"productKey":"a1dOsU2Wgyv","deviceName":"vMAdO0I8xxdIsP4Rjmo7"}]}}}
�[0m�[1;33minf iotx_mc_release(2964): mqtt release!
�[0m�[1;33minf dm_server_send(137): Send Response Result 0
�[0m�[1;33minf iotx_guider_authenticate(1290): dyna url:a1dOsU2Wgyv.iot-as-mqtt.cn-shanghai.aliyuncs.com count:2
�[0m.................................
PK : a1dOsU2Wgyv
DN : vMAdO0I8xxdIsP4Rjmo7
DS : 5c3d814b66
PID : espressif
MID : wroom
SM : TLS + Direct
TS : 2524608000000
.................................
�[0;33mW (78408) wrapper_kv: nvs get blob awss.rst failed with 1102�[0m
.................................
Host : a1dOsU2Wgyv.iot-as-mqtt.cn-shanghai.aliyuncs.com
Port : 443
ClientID : a1dOsU2Wgyv.vMAdO0I8xxdIsP4Rjmo7|securemode=2,tokenType=1,token=B1F9DD8EFDE92D7CEF5EC525F13FC200,_v=sdk-c-2.3.0_FY_1.6.6,timestamp=2524608000000,signmethod=hmacsha1,lan=C,pid=espressif,mid=wroom,authtype=custom-ilop,_fy=1.6.6,_ss=1|
CA : ('... HMUfpIBvFSDJ3gyI ...')
.................................

一直在三个 PK : a1dOsU2Wgyv 之间循环直到APP添加设备超时: 失败原因:getTokenTimeout. 请问是在移植的时候有哪些没修改的吗?

ESP8266 使用阿里云OTA升级失败

1. 开发环境

  • 模组或开发板:
  • esp-ali-smartliving 版本

2. 问题描述

使用ESP8266_RTOS_SDK\esp-ali-smartliving\examples\ota\ota_example_mqtt下的demo测试阿里云的ota升级,老是失败。
见下面日志。看日志阿里云下发的升级的json相关信息,包括要升级的版本号,sign,升级的URL等信息,但是json中没有digestSign这个key,导致阿里云的sdk中解析出错(日志显示:Not digestSign key in json doc of OTA)

2.1 复现步骤

2.2 复现问题的代码

3. 调试 Logs

_ota_mqtt_client|181 :: wait ota upgrade command....
_ota_mqtt_client|181 :: wait ota upgrade command....
_ota_mqtt_client|181 :: wait ota upgrade command....
dbg iotx_mc_cycle(1880): PUBLISH
dbg iotx_mc_handle_recv_PUBLISH(1639): Packet Ident : 00000000
dbg iotx_mc_handle_recv_PUBLISH(1640): Topic Length : 43
dbg iotx_mc_handle_recv_PUBLISH(1644): Topic Name : /ota/device/upgrade/a1kStGsS7L7/AOTA0000001
dbg iotx_mc_handle_recv_PUBLISH(1647): Payload Len/Room : 418 / 2000
dbg iotx_mc_handle_recv_PUBLISH(1648): Receive Buflen : 2048
dbg iotx_mc_handle_recv_PUBLISH(1661): delivering msg ...
dbg iotx_mc_deliver_message(1361): topic be matched
dbg otamqtt_UpgrageCb(107): topic=/ota/device/upgrade/a1kStGsS7L7/AOTA0000001
dbg otamqtt_UpgrageCb(108): len=418, topic_msg={"code":"1000","data":{"size":713232,"sign":"955b618c645f802f48ad77bf74441c0e","ver
sion":"0.0.4","url":"https://iotx-ota.oss-cn-shanghai.aliyuncs.com/ota/f3fe6457dfae7a6ddf8e4cb1eadf3a1d/ckra0fiej00003b6ql5qud9dy.bin?Expire
s=1626748424& ...
dbg otamqtt_UpgrageCb(123): receive device upgrade
err otalib_GetFirmwareVarlenPara(132): Not digestSign key in json doc of OTA
err otalib_GetFotaParams(272): get value of digestSign key failed, maybe not security ota
inf httpclient_common(866): host: 'iotx-ota.oss-cn-shanghai.aliyuncs.com', port: 443
E (830365) esp-tls-wolfssl: wolfSSL_connect returned -0x1
E (830366) esp-tls-wolfssl: Failed to verify peer certificate , returned 28!
E (830377) esp-tls: Failed to open new connection
err httpclient_conn(71): httpclient_conn fail
err httpclient_common(878): httpclient_connect is error, ret = -8
inf httpclient_close(855): client disconnected
err ofc_Fetch(110): fetch firmware failed
err IOT_OTA_FetchYield(841): Fetch firmware failed
E (830441) esp_ota_ops: OTA image has invalid magic byte (expected 0xE9, saw 0xa5
E (830454) ota: esp_ota_write failed, err=0x1503
_ota_mqtt_client|196 :: write data to file failed
dbg IOT_OTA_Ioctl(1072): origin=, now=d41d8cd98f00b204e9800998ecf8427e
_ota_mqtt_client|222 :: The firmware is invalid
E (832485) ota: esp_ota_write failed! err=0x1503
dbg iotx_mc_disconnect(2862): rc = MQTTDisconnect() = 0
inf iotx_mc_disconnect(2871): mqtt disconnect!
inf iotx_mc_release(2964): mqtt release!
inf LITE_dump_malloc_free_stats(693): WITH_MEM_STATS = 0
ota_main|267 :: out of sample!
Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x00000000 PS : 0x00000030 A0 : 0x00000000 A1 : 0x3fff9400
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000005 A5 : 0x00000000
A6 : 0x40230354 A7 : 0x000001f4 A8 : 0x00000000 A9 : 0x00000310
0x40230354: __swrite at /home/dongheng/workspace/espressif/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-lx106-elf/newlib/libc/stdio/..
/../../.././newlib/libc/stdio/stdio.c:81

4. 其他项

ali-smartliving 可以适配ESP32-C3吗

你好 esp-ali-smartliving有计划适配ESP32-C3吗?
如果自行适配 ali-smartliving-device-sdk-c/src/board下的config文件如何修改?
只修改编译工具成riscv32-esp-elf- 无法编译

关于在smartlight工程中OTA升级代码问题

1. 开发环境

  • 模组或开发板:模组或开发板:ESP8266
  • esp-ali-smartliving 版本:esp-ali-smartliving 版本 1.6:
  • ESP8266_RTOS_SDK 版本:3a7964ba (release/v3.3)
  • ESP-IDF 版本:15cc594

2. 问题描述

参考完成smartlight后,需要开发OTA功能,发现在smartlight中没有OTA的代码,只有调用接口。

相关函数并没有实现OTA的具体部分,比如:
/** fota event handler **/
static int user_fota_event_handler(int type, const char *version)
{
char buffer[1025 + 1] = {0};
int buffer_length = 1025; //must set want read len to len + 1

/* 0 - new firmware exist, query the new firmware */
if (type == 0) {
    EXAMPLE_TRACE("New Firmware Version: %s", version);

    if (IOT_Linkkit_Query(EXAMPLE_MASTER_DEVID, ITM_MSG_QUERY_FOTA_DATA, (unsigned char *)buffer, buffer_length) == SUCCESS_RETURN) {
        HAL_Reboot();
    }
}

return 0;

}

/* cota event handler */
static int user_cota_event_handler(int type, const char *config_id, int config_size, const char *get_type,
const char *sign, const char *sign_method, const char *url)
{
char buffer[128] = {0};
int buffer_length = 128;

/* type = 0, new config exist, query the new config */
if (type == 0) {
    EXAMPLE_TRACE("New Config ID: %s", config_id);
    EXAMPLE_TRACE("New Config Size: %d", config_size);
    EXAMPLE_TRACE("New Config Type: %s", get_type);
    EXAMPLE_TRACE("New Config Sign: %s", sign);
    EXAMPLE_TRACE("New Config Sign Method: %s", sign_method);
    EXAMPLE_TRACE("New Config URL: %s", url);

    IOT_Linkkit_Query(EXAMPLE_MASTER_DEVID, ITM_MSG_QUERY_COTA_DATA, (unsigned char *)buffer, buffer_length);
}

return 0;

}

只有查询,请问如果要集成OTA功能是否要把样例程序中ota_example_mqtt的代码整合到一起?

如果在smartlight工程中已经实现了OTA的功能,请问在哪儿可以查看?

或者说这两个函数已经在SDK中实现了OTA升级?最终是在dm_fota.c文件中的int dm_fota_perform_sync(OU char *output, IN int output_len)这个函数里实现了OTA么?请指教

2.1 复现步骤

NA

2.2 复现问题的代码

NA

3. 调试 Logs

NA

4. 其他项

NA

一键配网和热点配网

测试一键配网时,发现配网的速度非常慢,特别是切换区域的时候,阅读了源码,发现一键配网每次都会去找全球服务器
.................................

PK : a1gkK9zsY5h

DN : COrd0upvij020I0A9VMx

DS : f1c988cefd

PID : espressif

MID : wroom

URL : https://iot-auth-global.aliyuncs.com/auth/bootstrap

SM : TLS + Guider

TS : 2524608000000

.................................

和官方的Alios比对了一下,esp-ali-smartliving 中的热点配网和一键配网个别地方存在差异

在zconfig_vendor_common.c中,该函数下

void zconfig_got_ssid_passwd_callback(uint8_t *ssid, uint8_t *passwd,
uint8_t *bssid, uint8_t *token,
uint8_t auth, uint8_t encry, uint8_t channel, uint8_t token_type)

多了这么一段代码,每次执行一键配网时,都会删除flash中存储的,这里是原来Alios中没有的,而且配网速度很慢:

//TODO:Please change it when smartconfig can got regionid
iotx_guider_set_dynamic_region(IOTX_CLOUD_REGION_INVALID);

在awss_dev_ap.c中,该函数下

int wifimgr_process_dev_ap_switchap_request(void *ctx, void *resource, void *remote, void *request)

多了这么一段代码,根据APP中传来的regionContent字段来直连区域,连接速度很快:

    // get region information
    str_len = 0;
    str = json_get_value_by_name(buf, len, "regionType", &str_len, 0);
    if (str) {
        // str format is like 0","xxx":"xxx", strtol only parse the integer
        uint8_t region_type = strtol(str, NULL, 10);
        //awss_debug("regionType, %d", region_type);
        if (region_type == REGION_TYPE_ID) {
            str_len = 0;
            str = json_get_value_by_name(buf, len, "regionContent", &str_len, 0);
            if (str) {
                int region_id = strtol(str, NULL, 10);
                //awss_debug("regionID, %d", region_id);
                iotx_guider_set_dynamic_region(region_id);
            }
            else
            {
                iotx_guider_set_dynamic_region(IOTX_CLOUD_REGION_INVALID);
            }
        } else if (region_type == REGION_TYPE_MQTTURL) {
            str_len = 0;
            str = json_get_value_by_name(buf, len, "regionContent", &str_len, 0);
            if (str) {
                memset(region_url, 0, GUIDER_URL_LEN);
                memcpy(region_url, str, str_len);
                awss_debug("mqtturl, %s", region_url);
                iotx_guider_set_dynamic_mqtt_url(region_url);
            }
        } else {
            awss_warn("REGION TYPE not supported");
        }

所以,一键配网是不是可以增减类似的区域字段,加快配网速度

ESP8266开发板采用天猫精灵零配功能失败,使用样例smartlight

1. 开发环境

  • 模组或开发板:ESP8266
  • esp-ali-smartliving 版本 1.6:
  • ESP8266_RTOS_SDK 版本 3a7964ba (release/v3.3):
  • ESP-IDF 版本 15cc594

2. 问题描述

编译完成smartlight后,下载到ESP8266开发板上,烧录完成三元组,第一次上电,设备自动进入配网状态,在扫描WIFI通道,语音控制天猫精灵找队友功能,可以发现开发板的存在,并且看日志,开发板已经获取到了SSID和password,但是最后连入阿里云后台失败

2.1 复现步骤

  1. 编译完sdk后,进入smartlight代码目录,编译并下载 make flash monitor
  2. 通过天猫精灵语音控制找队友功能,自动寻找该设备,然后在提示找到智能灯设备之后让天猫精灵连接该设备

2.2 复现问题的代码

// 如果需要提交复现问题的代码, 可通过 GIST 或通过附件的方式提交。

3. 调试 Logs

load 0x40100000, len 7168, room 16
tail 0
chksum 0xe3
load 0x3ffe8408, len 24, room 8
tail 0
chksum 0x6a
load 0x3ffe8420, len 3548, room 8
tail 4
chksum 0x17
I (46) boot: ESP-IDF v3.3-31-g3a7964ba-dirty 2nd stage bootloader
I (46) boot: compile time 02:02:10
I (48) qio_mode: Enabling default flash chip QIO
I (55) boot: SPI Speed : 40MHz
I (61) boot: SPI Mode : QIO
I (67) boot: SPI Flash Size : 2MB
I (73) boot: Partition Table:
I (79) boot: ## Label Usage Type ST Offset Length
I (90) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (102) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (113) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (125) boot: 3 ota_0 OTA app 00 10 00010000 000f0000
I (136) boot: 4 fctry WiFi data 01 02 00100000 00004000
I (148) boot: 5 ota_1 OTA app 00 11 00110000 000f0000
I (160) boot: End of partition table
I (166) boot: No factory image, trying OTA 0
I (174) esp_image: segment 0: paddr=0x00010010 vaddr=0x40210010 size=0x9844c (623692) map
0x40210010: _stext at ??:?

I (397) esp_image: segment 1: paddr=0x000a8464 vaddr=0x402a845c size=0x1d500 (120064) map
I (438) esp_image: segment 2: paddr=0x000c596c vaddr=0x3ffe8000 size=0x008c8 ( 2248) load
I (439) esp_image: segment 3: paddr=0x000c623c vaddr=0x40100000 size=0x00a40 ( 2624) load
I (449) esp_image: segment 4: paddr=0x000c6c84 vaddr=0x40100a40 size=0x059cc ( 22988) load
I (470) boot: Loaded app from partition at offset 0x10000
I (491) system_api: Base MAC address is not set, read default base MAC address from EFUSE
I (497) system_api: Base MAC address is not set, read default base MAC address from EFUSE
phy_version: 1163.0, 665d56c, Jun 24 2020, 10:00:08, RTOS new
I (563) phy_init: phy ver: 1163_0
I (566) reset_reason: RTC reset 1 wakeup 0 store 0, reason is 1
W (571) wrapper_kv: nvs get blob q_rt failed with 1102
E (579) wrapper_kv: Set q_rt blob value
I (588) factory_rst: quick reboot times 1, don't need to restore
I (597) gpio: GPIO[0]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (611) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (625) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (639) pwm: --- PWM v3.2

[prt] log level set as: [ 4 ]
W (663) wrapper_kv: nvs get blob stassid failed with 1102
[crt] enable awss

I (668) app main: IOTX_AWSS_ENABLE
I (671) app main: IOTX_AWSS_START
[crt] __awss_start

inf zconfig_init(261): zconfig_init
I (701) awss: Open monitor mode

[crt] chan 7

[crt] chan 8

[crt] chan 9

[crt] chan 10

inf zconfig_callback_channel_locked(139): channel lock @ 10
I (21708) app main: IOTX_AWSS_LOCK_CHAN
I (21711) app main: IOTX_AWSS_GOT_SSID_PASSWD
inf iotx_guider_set_dynamic_region(298): no region from app so clear region in kv
E (21730) wrapper_kv: nvs erase key mqtt_url failed with 1102
E (21740) wrapper_kv: nvs erase key regionid failed with 1102
ERROR A stack overflow in task ppT has been detected.
abort() was called at PC 0x40223c07 on core 0
0x40223c07: vApplicationStackOverflowHook at /home/jason/esp/ESP8266_RTOS_SDK/components/freertos/port/esp8266/port.c:393

Guru Meditation Error: Core 0 panic'ed (StoreProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x4023c39a PS : 0x00000033 A0 : 0x4023c398 A1 : 0x3ffe8490
0x4023c39a: abort at /home/jason/esp/ESP8266_RTOS_SDK/components/newlib/newlib/port/syscall.c:168 (discriminator 1)

0x4023c398: abort at /home/jason/esp/ESP8266_RTOS_SDK/components/newlib/newlib/port/syscall.c:168 (discriminator 1)

A2 : 0x00000000 A3 : 0x00000001 A4 : 0xffffffdb A5 : 0x00000001
A6 : 0x00000000 A7 : 0x3ffec2c0 A8 : 0x00000003 A9 : 0x00000090
A10 : 0x3fff33b4 A11 : 0x00000027 A12 : 0x00000080 A13 : 0x00000007
A14 : 0x00000080 A15 : 0x3ffea920 SAR : 0x0000001e EXCCAUSE: 0x0000001d

Backtrace: 0x4023c39a:0x3ffe8490 0x40223c0a:0x3ffe84a0 0x40101150:0x3ffe84b0 0x40100cc3:0x3ffe84c0 0x40100f16:0x3ffe84d0 0x401003bc:0x3ffe84f0
0x4023c39a: abort at /home/jason/esp/ESP8266_RTOS_SDK/components/newlib/newlib/port/syscall.c:168 (discriminator 1)

0x40223c0a: vApplicationStackOverflowHook at ??:?

0x40101150: vTaskSwitchContext at /home/jason/esp/ESP8266_RTOS_SDK/components/freertos/freertos/tasks.c:4554

0x40100cc3: SoftIsrHdl at /home/jason/esp/ESP8266_RTOS_SDK/components/freertos/port/esp8266/port.c:393

0x40100f16: _xt_isr_handler at /home/jason/esp/ESP8266_RTOS_SDK/components/freertos/port/esp8266/port.c:393

0x401003bc: _xt_user_entry1 at /home/jason/esp/ESP8266_RTOS_SDK/components/freertos/port/esp8266/xtensa_vectors.S:700。

4. 其他项

// 如果涉及到配网或其他兼容性问题,请提供具体手机型号、路由型号或其他信息。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.