AVS to AIA的变化

Build the future of the connected home with AWS IoT and Amazon Alexa

Alexa Voice Service Integration for AWS IoT

开发框架

1. ESP32 与 DSPG 通讯失败
[http_transport]: Current time in London: Fri Apr 10 06:37:04 2020
E (9938) [dspg_utility]: Trigger Acoustic model was not successfully uploaded 0
E (9978) [dspg_utility]: No Clock in TDM0 pin - Try number 0
E (12338) [dspg_utility]: Trigger Acoustic model was not successfully uploaded 0
E (12378) [dspg_utility]: No Clock in TDM0 pin - Try number 0
W (14198) httpd_uri: httpd_uri: URI '/rootDesc.xml' not found
W (14198) httpd_txrx: httpd_resp_send_err: 404 Not Found - This URI doesn't exist
E (14788) [dspg_utility]: Trigger Acoustic model was not successfully uploaded 0
E (14828) [dspg_utility]: No Clock in TDM0 pin - Try number 0
[http_transport]: Waiting for authentication token.
[http_transport]: Waiting for authentication token.
E (17198) [dspg_utility]: Trigger Acoustic model was not successfully uploaded 0
E (17228) [dspg_utility]: No Clock in TDM0 pin - Try number 0其中 可以发现 dspg_utility 的报错日志
2. Audio ES8311 无法正常工作
  • I2S 工作正常
  • I2C Read Data NO ACK 情况 i2c信号的ACK与NACK
3. ESP32 AWS IOT Connect Fail
I (1237) esp_image: segment 5: paddr=0x003da0d0 vaddr=0x40080400 size=0x1aaf8 (109304) load
I (1299) boot: Loaded app from partition at offset 0x20000
I (1299) boot: Disabling RNG early entropy source...
[conn_mgr_prov]: Found ssid: Test
[conn_mgr_prov]: Found password: test123
[app_main]: Connected with IP Address: 192.168.1.49
[alexa]: Waiting for time to be updated
[alexa]: Done getting current time: 1586431887
[alexa]: Authentication done
[http_transport]: AWS Account ID: 22343294582284[http_transport]: Client ID: 989dafd-1403-4c33-bdfb-993fc0fd89ef
[http_transport]: Current time in London: Thu Apr  9 11:31:28 2020
E (2661) aws_iot: failed! mbedtls_net_connect returned -0x52
E (2661) [http_transport]: Error(-23) connecting to 989dafd-ats.iot.us-east-1.amazonaws.com
:8883
E (3761) aws_iot: failed! mbedtls_net_connect returned -0x52
E (3761) [http_transport]: Error(-23) connecting to 989dafd-ats.iot.us-east-1.amazonaws.com
:8883
E (4841) aws_iot: failed! mbedtls_net_connect returned -0x52
E (4841) [http_transport]: Error(-23) connecting to 989dafd-ats.iot.us-east-1.amazonaws.com
:8883
[dspg_utility]: Trigger Acoustic model was successfully uploaded>> [dspg_driver]: ASRP User defined delay: 300
W (5481) httpd_uri: httpd_uri: URI '/rootDesc.xml' not found
W (5481) httpd_txrx: httpd_resp_send_err: 404 Not Found - This URI doesn't exist
E (5951) aws_iot: failed! mbedtls_net_connect returned -0x52
E (5951) [http_transport]: Error(-23) connecting to 989dafd-ats.iot.us-east-1.amazonaws.com
:8883
[auth-delegate]: Token will be refreshed after 3000 seconds.
E (7031) aws_iot: failed! mbedtls_net_connect returned -0x52
E (7031) [http_transport]: Error(-23) connecting to 989dafd-ats.iot.us-east-1.amazonaws.com
:8883

参考 RT thread mqtt 使用TLS组件时出问题

对比mfg.bin文件的差异 :

阿里云设备接入Link Kit SDK常见问题列表

解决方案:

4. ESP32 烧录工具的使用

  • 使用的烧录工具为V3.6.6
串口冲突
➜  ais_sdk git:(master) ✗ ./build_flash.sh
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting.......
Traceback (most recent call last):File "/home/mike/Work/ESP32/ESP32_AIA/ais_sdk/tools/esptool.py", line 3201, in <module>_main()File "/home/mike/Work/ESP32/ESP32_AIA/ais_sdk/tools/esptool.py", line 3194, in _mainmain()File "/home/mike/Work/ESP32/ESP32_AIA/ais_sdk/tools/esptool.py", line 2890, in mainesp.connect(args.before)File "/home/mike/Work/ESP32/ESP32_AIA/ais_sdk/tools/esptool.py", line 475, in connectlast_error = self._connect_attempt(mode=mode, esp32r0_delay=False)File "/home/mike/Work/ESP32/ESP32_AIA/ais_sdk/tools/esptool.py", line 455, in _connect_attemptself.sync()File "/home/mike/Work/ESP32/ESP32_AIA/ais_sdk/tools/esptool.py", line 394, in synctimeout=SYNC_TIMEOUT)File "/home/mike/Work/ESP32/ESP32_AIA/ais_sdk/tools/esptool.py", line 347, in commandp = self.read()File "/home/mike/Work/ESP32/ESP32_AIA/ais_sdk/tools/esptool.py", line 292, in readreturn next(self._slip_reader)File "/home/mike/Work/ESP32/ESP32_AIA/ais_sdk/tools/esptool.py", line 2041, in slip_readerread_bytes = port.read(1 if waiting == 0 else waiting)File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 501, in read'device reports readiness to read but returned no data '
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
授权失败
W (64579) httpd_uri: httpd_uri: URI '/rootDesc.xml' not found
W (64579) httpd_txrx: httpd_resp_send_err: 404 Not Found - This URI doesn't exist
E (65519) [auth-delegate]: Error! response code: 403, receive ret: 99
E (66029) [alexa_auth_delegate]: Registration attempt failed...retrying !
E (66029) [alexa_auth_delegate]: Please check connectivity and/or credentials
E (66029) [alexa_auth_delegate]: In case of authentication failure try resetting the device to factory mode and restart provisioning
[alexa_auth_delegate]: Registration Request Buffer: {"authentication":{"token":"Atzr|IwEBILWJyLsYkiW9huVjML9dFXTJXlRfc7fxAhd_EP7GMMMMS9kroOSjEVso9UDp3uXE4r2YroftrYks9pMBKSsjeaF52ikO8gk_B70CMy9-mY5C2YZ50oJqlwuaXnwZzr7Z6tbAOnIMU7E7W-tv5czapBAheKPsyFVMfAHuGqXL7yupu7udW8jzNATlfkoyVxbylbmOiTNXxeZZf8SzGZL7HhIzFidbQLIPwp9EIQg581y00ZN_FpbEhfLycy63UZ9hdffNGizJo0dJqFLQI7dVsGlh0IQJDueZuk2MrcabBJrPD4ui94xwm189ueTzWmfatvKkSNQXAL0V80PMVScs5FdXswQSOGwsn7WD7RR3Lsa5OumSNxAp408zZVhmzyAZBqX2piiEnYJdagnF-mCRUuF8C341NvDY63ImajHbF1pfvsm4BdTp2qjGj21sUu3mW_A", "clientId":"amzn1.application-oa2-client.320d0c28204541e4a061b7aff8e7d1b9"},"encryption":{"algorithm":"ECDH_CURVE_25519_32_BYTE", "publicKey":"9WhtDty/F8WnRmSTGbaDbnMFT05PND6EQbW35IBssVc="},"iot":{"awsAccountId":"222294582284", "clientId":"9f4bc610-8de1-4b5c-816e-fb1a412841da","endpoint":"a39yhypxjgqgon-ats.iot.us-east-1.amazonaws.com","topicRoot":"$aws/alexa"}}
错误的请求
E (26917) [auth-delegate]: Error! response code: 400, receive ret: 79
E (27417) [alexa_auth_delegate]: Registration attempt failed...retrying !
E (27417) [alexa_auth_delegate]: Please check connectivity and/or credentials
E (27417) [alexa_auth_delegate]: In case of authentication failure try resetting the device to factory mode and restart provisioning
[alexa_auth_delegate]: Registration Request Buffer: {"authentication":{"token":"Atzr|IwEBIKKaDpzjjNC-N-o3Cvb-fB6YbE5ER4Aj7pDvl3Q584jGEK5FTuabXVeThNaIhExnP3Umt_HZ6AtTLjr4tIXZyv4bI6HMJgJxIkMFBtNel1DKVfBbuWLDpw2y1ydffkQmuGOJgiPaDA_6MAl-Gozvv3feIP3ll7MEwcpG39r41ejqzMx-mH-qIO63Ic-s3hIb6HliCGt698HomsJePLJrxKThglVwk05DzQCuH9117ZGVkrUQYqaiQOSFhQ1jdFmXAbEGhP11Fk9F7BaZKLD85fZTl5sglDtH5UPoAatteFClglxI70ys6DC0LgG4SZj-VDlI6fPkJQeRkJcpC-pIy6ofMShamCwgcpt0AjsM2HYlyu2wx6Rh56gc5Et_pHXlqFOxTrErysOkGSRQ1QQ6MC-Q827ZtYUXNTYAGd5cZiiq9JLzF5eyFB0JNTmb4bJ-r_-hmzo2NMUOaId5-W8Pttzm", "clientId":"amzn1.application-oa2-client.320d0c28204541e4a061b7aff8e7d1b9"},"encryption":{"algorithm":"ECDH_CURVE_25519_32_BYTE", "publicKey":"Fu/lTve99rChIC2huORb/1so+xt9s4q0719DsDi1Mxk="},"iot":{"awsAccountId":"222294582284", "clientId":"amzn1.application-oa2-client.3491a05ca7e54afeab47007809a844a5
","endpoint":"a39yhypxjgqgon-ats.iot.us-east-1.amazonaws.com","topicRoot":"$aws/alexa"}}
  • Also there seems to be a <new_line> at the end of your client ID. Can you remove that and try?
  • This current client ID might be too long.

由于device.info 中多了一行导致的异常,正常如下 :

修改这种配置文件,用vim打开保存之后会修改之前的格式,建议用VS Code修改

  • GPIO 异常
[alexa]: Authentication done
[http_transport]: AWS Account ID: 282183071650
[http_transport]: Client ID: 9d8dff38-4773-4ed9-81e6-ba829da47baf
[http_transport]: Current time in London: Tue Apr 21 09:49:33 2020
E (2354) gpio: GPIO34-39 can only be used as input mode
E (2364) gpio: gpio_set_level(176): GPIO output gpio_num error

[ 物联网篇 ] ESP32 AWS IoT and Amazon Alexa Development / FreeRTOS平台的Alexa语音助手相关推荐

  1. 教Alexa看懂手语,不说话也能控制语音助手

    Alexa.Siri.小度--各种语音助手令人眼花缭乱,但这些设备多是针对能力健全的用户,忽略了听.说能力存在障碍的人群.本文作者敏锐地发现了这一 bug,并训练亚马逊语音助手 Alex 学会识别美式 ...

  2. 单片机学习:第一篇 基于Python的树莓派语音助手

    title: 单片机学习:第一篇 基于Python的树莓派语音助手 tags: 树莓派,python,语音助手,百度AIP 目录 一.pyaudio录音 二.语音识别 三.与图灵机器人对话 四.语音合 ...

  3. 启明云端esp32开发板直连亚马逊AWS IOT平台实例控制灯泡演示

    ESP32通过AWS IOT物联网平台接入物联网,Alexa亚马逊音箱触发Lambda对乐鑫ESP32进行控制,实现ESP32接入Alexa亚马逊音箱. 登录亚马逊AWS IOT Core后台,可以创 ...

  4. AWS IoT 物联网设备 - 即时部署 JITP 实战

    为了保证通信的安全性,IoT 设备与 AWS IoT Core 的 MQTT 通信使用基于证书的 TLS 1.2 双向认证体系. 利用即时注册(JITR)功能,可以快速的进行设备证书注册及设备上线.但 ...

  5. 结合Amazon Cognito服务限制接入AWS IoT平台的MQTT客户端的clientId

    AWS IoT 支持使用四种身份委托人进行身份验证: X.509 证书 IAM 用户.组和角色 Amazon Cognito 身份 联合身份 通常,AWS IoT 设备使用 X.509 证书,移动应用 ...

  6. AWS物联网解决方案之:如何将设备安全地接入AWS IoT

    1 简介 AWS IoT解决方案是一个全托管的云平台,使互联设备可以轻松安全地与云应用程序及其他设备交互.AWS IoT可以支持数十亿太设备和数万亿条消息,并且可以对这些消息进行处理并将其安全可靠地路 ...

  7. 国外物联网平台(1):亚马逊AWS IoT

    国外物联网平台(1) --亚马逊AWS IoT 马智 平台定位 AWS IoT是一款托管的云平台,使互联设备可以轻松安全地与云应用程序及其他设备交互. AWS IoT可支持数十亿台设备和数万亿条消息, ...

  8. 乐鑫esp8266学习rtos3.0笔记:AT指令固件如何二次开发,实现AT指令连接亚马逊AWS IoT平台;

    本系列博客学习由非官方人员 半颗心脏 潜心所力所写,不做开发板.仅仅做个人技术交流分享,不做任何商业用途.如有不对之处,请留言,本人及时更改. 基于C SDK的ESP8266开发技术全系列笔记 一.N ...

  9. Amazon---IoT--Android和iOS上的实践,通过MQTT协议连接AWS IoT,并订阅和推送消息

    因为公司有一个物联网项目需要使用到亚马逊到AWS-IOT服务,通过iot服务来控制物联网设备,国内和国外都没什么人用,连google都极少有跟这个有关帖子,所以做一个踩坑总结: 先放一个官方博客关于A ...

  10. aws iot 连接时间_AWS IoT Core 定价

    定价一览 连接 连接用于在您的设备与 AWS IoT Core 之间提供经验证的安全连接.连接按 1 分钟的增量进行计量,基于您的设备连接到 AWS IoT Core 的总时间. 例如,在美国东部(弗 ...

最新文章

  1. 阿里某员工面试华为后吐槽:面试官太水,反问几句都答不上来
  2. 在kubernetes集群中部署mysql主从
  3. Servlet--03--servlet的生命周期
  4. IOS开发基础之单文件上传基础最原始的方式
  5. javascript字符串方法总结
  6. 如何分析解读systemstat dump产生的trc文件
  7. maps-api-v3_Android Google Maps API集成
  8. 每日英语:A Chinese Soccer Club Has Won Something!
  9. USB的速度还是不够快
  10. cmd命令行查看wifi密码
  11. win10重装系统后无法联网
  12. 移动硬盘提示数据错误循环冗余检查要怎么办啊
  13. python3 print输出不换行
  14. 大数据Hive 面试以及知识点
  15. 力扣(83.643)补8.29
  16. python若干整数的最大值_python脚本3_输入若干个整数打印出最大值
  17. 多模态机器学习基础、应用及预训练模型介绍
  18. JAVA md5把我气到疯的代码,天哪,神呀,我的C# 啊。
  19. 勤奋,不足以让你过上好日子
  20. 【学习进度】截至2022.9.6,已学习的C++知识

热门文章

  1. 微信小程序支付宝小程序合并二维码
  2. VS2015镜像安装教程
  3. Solr(一) Solr 简介及搜索原理
  4. HLS ug871学习
  5. 修改Hosts不生效的解决办法
  6. word转换html 批量,Word批量转HTML工具
  7. 使用阿里云加速器解决docker下载镜像太慢的问题
  8. Python坦克大战(一):素材准备
  9. 白云机场停车费一天要多少钱,广州白云机场t2航站楼最近停车场
  10. “软件工程造价师”和“软件造价评估师”有什么区别?