概述
使用AZ3166(MXChip IoT DevKit)开发
Quickstart: Connect an MXCHIP AZ3166 devkit to IoT Central
aka.ms/iot-devkit
从这里下载Cmake 和 ARM GCC,下一个实验会用到
快速入门:将 MXCHIP AZ3166 devkit 连接到 IoT 中心
https://docs.microsoft.com/zh-cn/azure/iot-develop/quickstart-devkit-mxchip-az3166-iot-hub
使用 Azure Functions 将 IoT 设备连接到认知服务
https://docs.microsoft.com/zh-cn/learn/modules/connecting-iot-devices-cognitive-services-azure-functions/?WT.mc_id=cloudskillschallenge_d3708c4d-1181-463d-b5fa-e4a195a58c9c
需要设备:
- 带 Micro-USB 电缆的 MXChip IoT DevKit 电路板
************************************************
** MXChip - Microsoft IoT Developer Kit **
************************************************
You can 1. press Button A and reset to enter configuration mode.
2. press Button B and reset to enter AP mode.
有几个需要注意的地方
创建 IoT 中心
可以使用S1,而不是F1免费层
az iot hub create --resource-group <resource-group-name> --name <iot-hub-name> --sku F1 --partition-count 2
安装工具
下载ARM GCC
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads
下载 DevKit 固件
实验中提供的固件下载地址
https://github.com/microsoft/devkit-sdk/releases/
可以使用该固件 devkit-getstarted-2.0.0.bin,可能会更好
https://github.com/microsoft/devkit-sdk/releases/download/2.0.0/devkit-getstarted-2.0.0.bin
配置 DevKit 以连接到 Wi-Fi
首次配置时,选图中“SSID”的框,下方让填写 "device connection string",这样可以让设备连接到IoT hub。
否则可能会出现报错:“No IoT Hub”
为 Visual Studio Code 安装扩展
需要为 Visual Studio Code 安装一些扩展。
-
启动 Visual Studio Code,在扩展市场中搜索“Arduino”,然后安装它。 此扩展提供了在 Arduino 平台上进行开发的增强体验。
-
需要先安装Arduino IDE
arduino ide 1.8.5 https://www.arduino.cc/en/software
-
在扩展市场中搜索 Azure IoT Tools 并安装它。
Azure IoT Tools 扩展包包含 Azure IoT Device Workbench,其用于在各种 IoT devkit 设备上进行开发和调试。 Azure IoT Tools 扩展包中还包含 Azure IoT 中心扩展,它用于管理 Azure IoT 中心并与之交互。
-
在扩展市场中搜索“C#”,然后安装它。
在 Visual Studio Code 中,依次单击“文件”>“首选项”>“设置”。往下拉找到链接“Edit settings.json”。进入添加以下行,以根据你的平台配置 Arduino
settings.json部分配置
"arduino.path": "C:\Program Files (x86)\Arduino",
"arduino.additionalUrls": "https://raw.githubusercontent.com/VSChina/azureiotdevkit_tools/master/package_azureboard_index.json",
"IoTWorkbench.workbench": "C:\Users\Administrator\Documents\IoTWorkbenchProjects",
"C_Cpp.intelliSenseEngine": "Tag Parser",
注意:第一个json链接中,前面的Arduino版本下载链接已经失效。2.0.0可以。
打开示例项目
首先,从登录你的 Azure 帐户开始。 单击 F1 打开命令面板,键入并选择“Azure:Sign in”
单击 F1 打开命令面板,键入并选择“Azure IoT Device Workbench:Open Examples...”。
注意:这个页面可能由于网络原因,会刷不出来。
然后选择“IoT DevKit”作为电路板。在“IoT Workbench 示例”页中,找到“DevKit Translator”,单击“打开示例”。 然后,选择默认路径来下载示例代码。
选择板
单击 F1 打开命令面板,键入并选择“Arduino:Board Manager”。 搜索“AZ3166”并安装。
注意:可能需要搜索“mxchip”而不是“AZ3166”,或者搜索了,由于xx原因,下面也不会出来内容。
安装串行端口:ST-Link 驱动程序
-
Windows: 从 STMicroelectronics 网站下载并安装 USB 驱动程序。
配置设备设置
在右下方的状态栏中,检查 MXCHIP AZ3166 是否显示为选定电路板,以及是否使用 STMicroelectronics 的串行端口。
注意:下面可能有两个需要选择
Select Board Type:点击后,右边出来下拉框,拉到最下方选择“AZ3166”。如果状态栏未更新,重启VS Code。
Select Serial Port:上方可能弹出来的是COM2 xx和 COM3 STMicroelectrinoics。
单击 F1,键入并选择“Azure IoT Device Workbench:Configure Device Settings...”>“Config Device Connection String”。 选择“IoT 中心设备连接字符串”以将其配置到 DevKit。
在 DevKit 上,按住按钮 A,按下并释放重置按钮,然后释放按钮 A。DevKit 进入配置模式并保存连接字符串。
成功完成后,你将看到通知。//这个步骤现象没有看到,可以通过连接Wi-Fi时填写“Device Connection String”替代。
附件:
c_cpp_properties.json文件configurations配置起初如下
{
"version": 4,
"configurations": [
{
"name": "Win32",
"compilerPath": "D:\Program Files (x86)\gcc-arm-none-eabi-10.3-2021.07\bin\arm-none-eabi-gcc.exe",
"compilerArgs": [],
"intelliSenseMode": "clang-x64",
"includePath": [
"${workspaceFolder}",
"C:\Program Files (x86)\Arduino\tools\**",
"C:\Program Files (x86)\Arduino\hardware\arduino\avr\**"
],
"forcedInclude": [
"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h"
],
"cStandard": "c11",
"cppStandard": "gnu++17",
"defines": [
"ARDUINO=10800"
]
},
后来编译又增加了
{
"name": "Arduino",
"compilerPath": "C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\tools\arm-none-eabi-gcc\5_4-2016q3\bin\arm-none-eabi-g++",
"compilerArgs": [
"-std=gnu++11",
"-Wno-unused-parameter",
"-Wno-missing-field-initializers",
"-fmessage-length=0",
"-ffunction-sections",
"-fdata-sections",
"-nostdlib",
"-fno-threadsafe-statics",
"--param",
"-fno-rtti",
"-Wvla",
"-include"
],
"intelliSenseMode": "gcc-x64",
"includePath": [
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\cmsis",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\drivers",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\events",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\events\equeue",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\features",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\features\filesystem",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\features\filesystem\bd",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\features\filesystem\fat",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\features\filesystem\fat\ChaN",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\features\frameworks\greentea-client\greentea-client",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\features\frameworks\unity\unity",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\features\mbedtls\inc",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\features\mbedtls",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\features\netsocket",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\hal",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\hal\storage_abstraction",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\platform",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\rtos",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\rtos\rtx\TARGET_CORTEX_M",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\targets\TARGET_MXCHIP",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\targets\TARGET_MXCHIP\TARGET_AZ3166",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\targets\TARGET_MXCHIP\TARGET_AZ3166\device",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\targets\TARGET_STM",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\targets\TARGET_STM\TARGET_STM32F4",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\mbed-os\targets\TARGET_STM\TARGET_STM32F4\device",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\libraries\drivers\display\VGM128064",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\libraries\drivers\gpio_btn",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\libraries\drivers\spi_flash",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\libraries\utilities",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\include",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\include\mico_drivers",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\net\LwIP\lwip-sys",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\net\LwIP\lwip-sys\arch",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\net\LwIP\lwip-ver1.4.0.rc1\src\include",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\net\LwIP\lwip-ver1.4.0.rc1\src\include\lwip",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\net\LwIP\lwip-ver1.4.0.rc1\src\include\ipv4",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\platform",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\platform\include",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\platform\mbed",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\rtos",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\system",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\mico\system\command_console",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\TARGET_AZ3166",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\az3166-driver\TARGET_STM\peripherals",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\c-utility\inc",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\c-utility\pal\mbed_os5",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\deps\parson",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\deps\uhttp\inc",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\deps\umock-c\inc",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\deps\azure-macro-utils-c\inc",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\iothub_client\inc",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\iothub_client\inc\internal",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\provisioning_client\inc",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\provisioning_client\adapters",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\provisioning_client\deps\RIoT\Reference\DICE",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\provisioning_client\deps\RIoT\Reference\RIoT",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\provisioning_client\deps\RIoT\Reference\RIoT\Core\",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\provisioning_client\deps\RIoT\Reference\RIoT\Core\RIoTCrypt\include",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\system\azure-iot-sdk-c\umqtt\inc",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\cores\arduino",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\cores\arduino\cli",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\cores\arduino\httpclient",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\cores\arduino\httpclient\http_parser",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\cores\arduino\httpserver",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\cores\arduino\NTPClient",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\cores\arduino\system",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\cores\arduino\Telemetry",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\cores\arduino",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\variants\MXChip_AZ3166",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\libraries\Audio\src",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\libraries\WiFi\src",
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\libraries\AzureIoT\src",
"c:\users\administrator\appdata\local\arduino15\packages\az3166\tools\arm-none-eabi-gcc\5_4-2016q3\arm-none-eabi\include\c++\5.4.1",
"c:\users\administrator\appdata\local\arduino15\packages\az3166\tools\arm-none-eabi-gcc\5_4-2016q3\arm-none-eabi\include\c++\5.4.1\arm-none-eabi",
"c:\users\administrator\appdata\local\arduino15\packages\az3166\tools\arm-none-eabi-gcc\5_4-2016q3\arm-none-eabi\include\c++\5.4.1\backward",
"c:\users\administrator\appdata\local\arduino15\packages\az3166\tools\arm-none-eabi-gcc\5_4-2016q3\lib\gcc\arm-none-eabi\5.4.1\include",
"c:\users\administrator\appdata\local\arduino15\packages\az3166\tools\arm-none-eabi-gcc\5_4-2016q3\lib\gcc\arm-none-eabi\5.4.1\include-fixed",
"c:\users\administrator\appdata\local\arduino15\packages\az3166\tools\arm-none-eabi-gcc\5_4-2016q3\arm-none-eabi\include"
],
"forcedInclude": [
"C:\Users\Administrator\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\2.0.0\cores\arduino\Arduino.h"
],
"cStandard": "c11",
"cppStandard": "c++11",
上传设备代码
再次单击 F1,键入并选择“Azure IoT Device Workbench:Upload Device Code”。 它会开始编译代码并将代码上传到 DevKit。
[Starting] Uploading sketch 'DevKitTranslator.ino'
Please see the build logs in output path: c:UsersAdministratorDocumentsIoTWorkbenchProjectsexamplesdevkit_translatorDevice.build
正在加载配置...
正在初始化包...
正在准备开发板...
正在验证...
c:/users/administrator/appdata/local/arduino15/packages/az3166/tools/arm-none-eabi-gcc/5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .data by 4 bytes
c:/users/administrator/appdata/local/arduino15/packages/az3166/tools/arm-none-eabi-gcc/5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
c:/users/administrator/appdata/local/arduino15/packages/az3166/tools/arm-none-eabi-gcc/5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .data by 4 bytes
c:/users/administrator/appdata/local/arduino15/packages/az3166/tools/arm-none-eabi-gcc/5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
c:/users/administrator/appdata/local/arduino15/packages/az3166/tools/arm-none-eabi-gcc/5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .data by 4 bytes
c:/users/administrator/appdata/local/arduino15/packages/az3166/tools/arm-none-eabi-gcc/5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
上传...
GNU ARM Eclipse 32-bits Open On-Chip Debugger 0.10.0-00114-g8419536 (2017-04-18-22:14)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
hla_swd
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : STLINK v2 JTAG v28 API v2 SWIM v17 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.325068
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
adapter speed: 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000034 msp: 0x2000d650
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
adapter speed: 4000 kHz
** Programming Started **
auto erase enabled
Info : device id = 0x30006441
Info : flash size = 1024kbytes
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000046 msp: 0x2000d650
wrote 606208 bytes from file c:UsersAdministratorDocumentsIoTWorkbenchProjectsexamplesdevkit_translatorDevice.build/DevKitTranslator.ino.bin in 13.341527s (44.373 KiB/
s)
** Programming Finished **
** Verify Started **
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x2000d650
verified 524892 bytes in 0.975601s (525.409 KiB/s)
** Verified OK **
** Resetting Target **
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
adapter speed: 1800 kHz
shutdown command invoked
IntelliSense configuration already up to date. To manually rebuild your IntelliSense configuration run "Ctrl+Alt+I"
[Done] Uploading sketch 'DevKitTranslator.ino'
测试项目
在应用初始化后,请按照 DevKit 屏幕上的说明进行操作。 默认源语言为“Chinese”。
若要选择另一种语言进行翻译,请执行以下操作:
- 按下按钮 A 以进入设置模式。
- 按下按钮 B 滚动浏览所有受支持的源语言。
- 按下按钮 A 确认你选择的源语言。
- 在说话时按住按钮 B,然后释放按钮 B 以启动翻译。
- 屏幕上以英文显示翻译后的文本。
在翻译结果屏幕上,你可以:
- 按下按钮 A 和 B 以滚动查看并选择源语言。
- 按下 B 按钮说话。 若要发送声音并获取翻译文本,请释放按钮 B。
最后
以上就是兴奋曲奇为你收集整理的使用AZ3166(MXChip IoT DevKit)开发translatorQuickstart: Connect an MXCHIP AZ3166 devkit to IoT Central快速入门:将 MXCHIP AZ3166 devkit 连接到 IoT 中心使用 Azure Functions 将 IoT 设备连接到认知服务的全部内容,希望文章能够帮你解决使用AZ3166(MXChip IoT DevKit)开发translatorQuickstart: Connect an MXCHIP AZ3166 devkit to IoT Central快速入门:将 MXCHIP AZ3166 devkit 连接到 IoT 中心使用 Azure Functions 将 IoT 设备连接到认知服务所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复