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. 谁是颠覆者?最全盘点25条区块链主链
  2. 如何处理Global symbol * requires explicit package name编译错误,以及use strict用法
  3. mysql安装版安装
  4. Google推出了Python最牛逼的编辑器,不看后悔一辈子!
  5. 会动的图解!GMP模型里为什么要有P?背后的原因让人暖心
  6. html之CSS设计(文本、边框、列表标签、display设置、内外边距)
  7. C++中读取文件乱码问题
  8. davfs挂载与使用缺陷
  9. POJ 2886 能被3除尽的数之和
  10. sql server 新语法 收藏
  11. java检索账号和密码_如何从数据库中检索密码
  12. 基于WEB的客户关系管理系统
  13. 软件工程之软件质量管理
  14. 计算机应用唐家琪,基于机器学习的蛋白质相互作用预测研究
  15. html调用ckplayer说明,CKplayer功能配置(示例代码)
  16. MongoDB可视化客户端管理工具之NoSQLbooster4mongo
  17. DOS 之for循环
  18. 计算机毕设(附源码)JAVA-SSM基于java学科竞赛管理系统
  19. 除了美团点评合并,国庆长假O2O还发生了什么?
  20. Mounty 1.10免费版(NTFS硬盘工具)支持big sur

热门文章

  1. SCRT软件的使用教程
  2. matlab语句运算相关论文,毕业论文MATLAB在复变函数中的应用.doc
  3. Java笔试题大全(附带答案)
  4. 流固耦合仿真案例及教学
  5. 联想Y9000X Opencore引导黑苹果Catalina10.15.6安装教程
  6. 谷歌引擎html,国内免费使用谷歌翻译引擎
  7. python之pygame,详解坦克大战
  8. Unity零基础到入门 ☀️| 学会这些Unity常用组件,Unity中必备组件技能学习!
  9. Chrome 谷歌浏览器账户无法登录、注册
  10. Cadence Allegro学习之PCB封装库的导出