User Manual
Revision 1.0
27-May-2022
CFR0012
25 of 58
© 2022 Renesas Electronics
UM-WI-058
DA16200 Getting
Started with Azure® IoT
7
Verify the Connection Between Azure IoT Hub and DA16200
After the 4 parameters mentioned in Section
are set up completely and the firmware is
downloaded, boot the DA16200 EVK and it connects to the Azure IoT Hub. Once connected, the
DA16200 EVK reports the items to the Azure IoT Hub and the Azure device twin is updated with the
reported items.
The log will appear in the debug console as shown below.
●
Log of the connection between the DA16200 EVK and Azure IoT Hub
Wakeup source is 0x4
[dpm_init_retmemory] DPM INIT CONFIGURATION(1)
******************************************************
* DA16200 SDK Information
* ---------------------------------------------------
*
* - CPU Type : Cortex-M4 (120MHz)
* - OS Type : FreeRTOS 10.4.3
* - Serial Flash : 4 MB
* - SDK Version : V3.2.2.1 Azure Doorlock Ref.
* - F/W Version : FRTOS-GEN01-01-507cc85bd-003442
* - F/W Build Time : May 7 2022 17:04:14
* - Boot Index : 0
*
******************************************************
…………………………………..
[ azure_twin_dpm_auto_start]
AZURE_IOT on Station Mode for "
da16200-device-1
"
……………………………………
[dpmAPPManager] statusFlag : 23
[dpmAPPManager] DM_NEED_INIT
DM_INIT
Info: [azure_dpm_app_init:544] : AZURE_UPDATE_OTA_UNKNOWN
Info: [azure_dpm_app_init:557] : read AZURE_NVRAM_CONFIG_OTA_STATE init status
[dpmAPPManager] DM_NEED_CONNECTION
DM_NEED_CONNECTION
Info: [create_connection_string:740] : connection string :
HostName=da16200-standard-iot-hub.azure-
devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=Vmt7BP8BsSwNJRm1tSLJUClibls1ApXjpd67HqF91xQ=
Info: [IoTHub_Init:22] : Platform intitializeion OK
Info: [ThreadAPI_Create:55] : thread "azrSubT_0" creation OK (pri=1)
IoTHubDeviceClient_SetMessageCallback()...
Info: [dns_resolver_create:70] :
hostName = "da16200-standard-iot-hub.azure-devices.net"
Info: [dns_resolver_create:90] : host IP = "20.194.67.96"
Info: [azure_dpm_app_connect:614] : Root CA registered
[dpmAPPManager] DM_BOOT_WAKEUP
DM_WAKEUP_BOOT
IoTHubDeviceClient_GetTwinAsync()...
IoTHubDeviceClient_SetDeviceMethodCallback()...
IoTHubDeviceClient_SetDeviceTwinCallback()...
Sleep mode 3
DM_FINISH_DEVICE
…………………………………………………………