本文介绍了如何修复azure球体中的认证错误(AZURE_SPHERE_PROV_RESULT_DEVICEAUTH_NOT_READY)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在文档中使用以下步骤  https://docs.microsoft.com/pt-br/azure-sphere/app-development/azure-iot-样本

I´m using the following steps in the documentation https://docs.microsoft.com/pt-br/azure-sphere/app-development/azure-iot-sample


设备预备调试

device prep-debug


azsphere设备wifi show-status -v

azsphere device wifi show-status -v

Start time (UTC): Monday, 01 April 2019 20:11:41
SSID                : namemywifi
Configuration state : enabled
Connection state    : connected
Security state      : psk
Frequency           : 2432
Mode                : station
Key management      : WPA2-PSK
WPA State           : COMPLETED
IP Address          : myishere
MAC Address         : 2c:f7:f1:08:92:657



看起来一切都已连接。

looks like everything is connected.


我在我的azure帐户中创建一组资源并添加  iotT服务测试以及  IoT Hub .-添加
链接的iot集线器和来自azsphere board的证书。管理注册我还添加了一组证书。(不知道是否有必要添加个人证书)没有添加证书   IoT
Hub。

I was in my azure account create a group of resources and add an iot Provisioning Service test and also IoT Hub.- add alinked iot hub and the certificate from azsphere board. in Manage enrollments I also added a group of certificate. (do not know if is necessary add the individual one) I do not have a certificate added at  IoT Hub.


在视觉工作室,当我运行应用程序时,我得到以下输出:

At visual studio when I run the app I got the following output :

INFO: Opening MT3620_RDB_BUTTON_B.
INFO: Open RGB LED 0.
INFO: Open RGB LED 1.
INFO: Open RGB LED 2.
INFO: Currently connected WiFi network: 
INFO: SSID "mywifiname", BSSID 30:b5:c2:bc:d5:123, Frequency 2432MHz.

[Azure IoT] IoTHubDeviceClient_CreateWithAzureSphereDeviceAuthProvisioning returned 'AZURE_SPHERE_PROV_RESULT_NETWORK_NOT_READY'.
ERROR: Failed to connect to IoT Hub; will retry in 60 seconds**



如果我按下AzSphere板上的"A"按钮我得到了以下信息。 

if I press the button "A" at AzSphere board I got the following msg. 


警告:无法发送报告的属性;未连接到IoT Hub。


我的应用清单包含以下属性。

My app manifest contains the following attributes.


{
  "SchemaVersion": 1,
  "Name": "Mt3620AzureIoTHub1",
  "ComponentId": "mycomponentidishere",
  "EntryPoint": "/bin/app",
  "CmdArgs": [],
  "Capabilities": {
    "AllowedConnections": [ "global.azure-devices-provisioning.net", "myprojectinazuerehubishere.azure-devices.net" ],
    "AllowedTcpServerPorts": [],
    "AllowedUdpServerPorts": [],
    "Gpio": [ 8, 9, 10, 15, 16, 17, 18, 19, 20, 12, 13 ],
    "Uart": [],
    "I2cMaster": [],
    "SpiMaster": [],
    "WifiConfig": true,
    "NetworkConfig": false,
    "SystemTime": false,
    "DeviceAuthentication": "myidTenantAuthenticationishere"
  }
}







解决方案

您的Azure Sphere设备的操作系统版本是什么?

What is the OS Version of your Azure Sphere Device?


您是否遵循了所有步骤
here
?确保您验证了租户CA证书。

Have you followed all the steps here? Make sure that you verified the tenant CA certificate.

谢谢!


这篇关于如何修复azure球体中的认证错误(AZURE_SPHERE_PROV_RESULT_DEVICEAUTH_NOT_READY)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 10:18