You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-develop/quickstart-devkit-stm-b-u585i-iot-hub.md
+27-27Lines changed: 27 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,39 +158,39 @@ You can use the **Termite** app to monitor communication and confirm that your d
158
158
159
159
```output
160
160
Starting Azure thread
161
-
162
-
161
+
162
+
163
163
Initializing WiFi
164
-
SSID: ***********
165
-
Password: ***********
164
+
SSID: ***********
165
+
Password: ***********
166
166
SUCCESS: WiFi initialized
167
-
167
+
168
168
Connecting WiFi
169
-
FW: V2.1.11
170
-
MAC address: ***********
171
-
Connecting to SSID '***********'
172
-
Attempt 1...
169
+
FW: V2.1.11
170
+
MAC address: ***********
171
+
Connecting to SSID '***********'
172
+
Attempt 1...
173
173
SUCCESS: WiFi connected
174
-
174
+
175
175
Initializing DHCP
176
-
IP address: 192.168.0.67
177
-
Mask: 255.255.255.0
178
-
Gateway: 192.168.0.1
176
+
IP address: 192.168.0.67
177
+
Mask: 255.255.255.0
178
+
Gateway: 192.168.0.1
179
179
SUCCESS: DHCP initialized
180
-
180
+
181
181
Initializing DNS client
182
-
DNS address: 192.168.0.1
182
+
DNS address: 192.168.0.1
183
183
SUCCESS: DNS client initialized
184
-
184
+
185
185
Initializing SNTP time sync
186
-
SNTP server 0.pool.ntp.org
187
-
SNTP time update: Feb 24, 2023 21:20:23.71 UTC
186
+
SNTP server 0.pool.ntp.org
187
+
SNTP time update: Feb 24, 2023 21:20:23.71 UTC
188
188
SUCCESS: SNTP initialized
189
-
189
+
190
190
Initializing Azure IoT Hub client
191
-
Hub hostname: ***********.azure-devices.net
192
-
Device id: mydevice
193
-
Model id: dtmi:azurertos:devkit:gsg;2
191
+
Hub hostname: ***********.azure-devices.net
192
+
Device id: mydevice
193
+
Model id: dtmi:azurertos:devkit:gsg;2
194
194
SUCCESS: Connected to IoT Hub
195
195
```
196
196
> [!IMPORTANT]
@@ -201,7 +201,7 @@ Keep Termite open to monitor device output in the following steps.
201
201
202
202
## View device properties
203
203
204
-
You can use Azure IoT Explorer to view and manage the properties of your devices. In the following sections, you use the Plug and Play capabilities that are visible in IoT Explorer to manage and interact with the STM DevKit. These capabilities rely on the device model published for the STM DevKit in the public model repository. You configured IoT Explorer to search this repository for device models earlier in this quickstart. In many cases, you can perform the same action without using plug and play by selecting IoT Explorer menu options. However, using plug and play often provides an enhanced experience. IoT Explorer can read the device model specified by a plug and play device and present information specific to that device.
204
+
You can use Azure IoT Explorer to view and manage the properties of your devices. In the following sections, you use the Plug and Play capabilities that are visible in IoT Explorer to manage and interact with the STM DevKit. These capabilities rely on the device model published for the STM DevKit in the public model repository. You configured IoT Explorer to search this repository for device models earlier in this quickstart. In many cases, you can perform the same action without using plug and play by selecting IoT Explorer menu options. However, using plug and play often provides an enhanced experience. IoT Explorer can read the device model specified by a plug and play device and present information specific to that device.
205
205
206
206
To access IoT Plug and Play components for the device in IoT Explorer:
207
207
@@ -228,15 +228,15 @@ To access IoT Plug and Play components for the device in IoT Explorer:
228
228
229
229
To view device properties using Azure IoT Explorer:
230
230
231
-
1. Select the **Properties (read-only)** tab. There's a single read-only property to indicate whether the led is on or off.
231
+
1. Select the **Properties (read-only)** tab. There's a single read-only property to indicate whether the led is on or off.
232
232
1. Select the **Properties (writable)** tab. It displays the interval that telemetry is sent.
233
233
1. Change the `telemetryInterval` to *5*, and thenselect**Update desired value**. Your device now uses this interval to send telemetry.
234
234
235
235
:::image type="content" source="media/quickstart-devkit-stm-b-u585i-iot-hub/iot-explorer-set-telemetry-interval.png" alt-text="Screenshot of setting telemetry interval on STM DevKit in IoT Explorer.":::
236
236
237
237
1. IoT Explorer responds with a notification. You can also observe the update in Termite.
238
238
1. Set the telemetry interval back to 10.
239
-
239
+
240
240
To use Azure CLI to view device properties:
241
241
242
242
1. Run the [az iot hub device-twin show](/cli/azure/iot/hub/device-twin#az-iot-hub-device-twin-show) command.
@@ -326,7 +326,7 @@ To use Azure CLI to call a method:
326
326
{
327
327
"payload": {},
328
328
"status": 200
329
-
}
329
+
}
330
330
```
331
331
332
332
1. Check your device to confirm the LED state.
@@ -352,7 +352,7 @@ For debugging the application, see [Debugging with Visual Studio Code](https://g
352
352
353
353
In this quickstart, you built a custom image that contains Azure RTOS sample code, and then flashed the image to the STM DevKit device. You connected the STM DevKit to Azure, and carried out tasks such as viewing telemetry and calling a method on the device.
354
354
355
-
As a next step, explore the following articles to learn more about using the IoT device SDKs, or Azure RTOS to connect devices to Azure IoT.
355
+
As a next step, explore the following articles to learn more about using the IoT device SDKs, or Azure RTOS to connect devices to Azure IoT.
356
356
357
357
> [!div class="nextstepaction"]
358
358
> [Connect a general simulated device to IoT Hub](quickstart-send-telemetry-iot-hub.md)
*[Proxy update for downstream devices](device-update-howto-proxy-updates.md)
35
35
@@ -40,7 +40,7 @@ The following IoT device over the air update types are currently supported with
40
40
*[Understand support for disconnected device update](connected-cache-disconnected-device-update.md)
41
41
42
42
43
-
## Prerequisites
43
+
## Prerequisites
44
44
45
45
If you're setting up the IoT device/IoT Edge device for [package based updates](./understand-device-update.md#support-for-a-wide-range-of-update-artifacts), add packages.microsoft.com to your machine’s repositories by following these steps:
46
46
@@ -73,13 +73,13 @@ If you're setting up the IoT device/IoT Edge device for [package based updates](
73
73
## How to provision the Device Update agent as a Module Identity
74
74
75
75
This section describes how to provision the Device Update agent as a module identity on
76
-
* IoT Edge enabled devices, or
76
+
* IoT Edge enabled devices, or
77
77
* Non-Edge IoT devices, or
78
-
* Other IoT devices.
78
+
* Other IoT devices.
79
79
80
80
To check if you have IoT Edge enabled on your device, please refer to the [IoT Edge installation instructions](../iot-edge/how-to-provision-single-device-linux-symmetric.md?preserve-view=true&view=iotedge-2020-11).
81
-
82
-
Follow all or any of the below sections to add the Device update agent based on the type of IoT device you are managing.
81
+
82
+
Follow all or any of the below sections to add the Device update agent based on the type of IoT device you are managing.
83
83
84
84
### On IoT Edge enabled devices
85
85
@@ -89,58 +89,59 @@ Follow these instructions to provision the Device Update agent on [IoT Edge enab
89
89
90
90
1. Install the Device Update image update agent.
91
91
92
-
We provide sample images in the [Assets here](https://github.com/Azure/iot-hub-device-update/releases) repository. The swUpdate file is the base image that you can flash onto a Raspberry Pi B3+ board. The .gz file is the update you would import through Device Update for IoT Hub. For an example, see [How to flash the image to your IoT Hub device](./device-update-raspberry-pi.md).
92
+
We provide sample images in the [Assets here](https://github.com/Azure/iot-hub-device-update/releases) repository. The swUpdate file is the base image that you can flash onto a Raspberry Pi B3+ board. The .gz file is the update you would import through Device Update for IoT Hub. For an example, see [How to flash the image to your IoT Hub device](./device-update-raspberry-pi.md).
93
93
94
94
1. Install the Device Update package update agent.
95
95
96
-
- For latest agent versions from packages.microsoft.com: Update package lists on your device and install the Device Update agent package and its dependencies using:
96
+
- For latest agent versions from packages.microsoft.com: Update package lists on your device and install the Device Update agent package and its dependencies using:
97
97
98
98
```shell
99
99
sudo apt-get update
100
100
```
101
-
101
+
102
102
```shell
103
103
sudo apt-get install deviceupdate-agent
104
104
```
105
-
105
+
106
106
- For any 'rc' i.e. release candidate agent versions from [Artifacts](https://github.com/Azure/iot-hub-device-update/releases) : Download the .deb file to the machine you want to install the Device Update agent on, then:
107
-
107
+
108
108
```shell
109
109
sudo apt-get install -y ./"<PATH TO FILE>"/"<.DEB FILE NAME>"
110
110
```
111
111
- If you are setting up a [MCC for a disconnected device scenario](connected-cache-disconnected-device-update.md), then install the Delivery Optimization APT plugin:
1. After you've installed the device update agent, you will need to edit the configuration file for Device Update by running the command below.
118
118
119
119
```shell
120
-
sudo nano /etc/adu/du-config.json
120
+
sudo nano /etc/adu/du-config.json
121
121
```
122
-
Change the connectionType to "AIS" for agents who will be using the IoT Identity Service for provisioning. The ConnectionData field must be an empty string. Please note that all values with the 'Place value here' tag must be set. See [Configuring a DU agent](./device-update-configuration-file.md#example-du-configjson-file-contents).
123
-
124
-
5. You are now ready to start the Device Update agent on your IoT device.
122
+
123
+
Change the connectionType to "AIS" for agents who will be using the IoT Identity Service for provisioning. The ConnectionData field must be an empty string. Please note that all values with the 'Place value here' tag must be set. See [Configuring a DU agent](./device-update-configuration-file.md#example-du-configjson-file-contents).
124
+
125
+
1. You are now ready to start the Device Update agent on your IoT device.
125
126
126
127
### On Iot Linux devices without IoT Edge installed
127
128
128
129
Follow these instructions to provision the Device Update agent on your IoT Linux devices.
129
130
130
131
1. Install the IoT Identity Service and add the latest version to your IoT device by following instructions in [Installing the Azure IoT Identity Service](https://azure.github.io/iot-identity-service/installation.html#install-from-packagesmicrosoftcom).
131
132
132
-
2. Configure the IoT Identity Service by following the instructions in [Configuring the Azure IoT Identity Service](https://azure.github.io/iot-identity-service/configuration.html).
133
-
133
+
2. Configure the IoT Identity Service by following the instructions in [Configuring the Azure IoT Identity Service](https://azure.github.io/iot-identity-service/configuration.html).
134
+
134
135
3. Finally install the Device Update agent. We provide sample images in [Assets here](https://github.com/Azure/iot-hub-device-update/releases), the swUpdate file is the base image that you can flash onto a Raspberry Pi B3+ board, and the .gz file is the update you would import through Device Update for IoT Hub. See example of [how to flash the image to your IoT Hub device](./device-update-raspberry-pi.md).
135
136
136
-
4. After you've installed the device update agent, you will need to edit the configuration file for Device Update by running the command below.
137
+
4. After you've installed the device update agent, you will need to edit the configuration file for Device Update by running the command below.
137
138
138
139
```shell
139
-
sudo nano /etc/adu/du-config.json
140
+
sudo nano /etc/adu/du-config.json
140
141
```
141
-
Change the connectionType to "AIS"for agents who will be using the IoT Identity Service for provisioning. The ConnectionData field must be an empty string. Please note that all values with the 'Place value here' tag must be set. See [Configuring a DU agent](./device-update-configuration-file.md#example-du-configjson-file-contents).
142
+
Change the connectionType to "AIS"for agents who will be using the IoT Identity Service for provisioning. The ConnectionData field must be an empty string. Please note that all values with the 'Place value here' tag must be set. See [Configuring a DU agent](./device-update-configuration-file.md#example-du-configjson-file-contents).
142
143
143
-
5. You are now ready to start the Device Update agent on your IoT device.
144
+
5. You are now ready to start the Device Update agent on your IoT device.
144
145
145
146
### Other IoT devices
146
147
@@ -149,24 +150,24 @@ The Device Update agent can also be configured without the IoT Identity service
149
150
1. We provide sample images in the [Assets here](https://github.com/Azure/iot-hub-device-update/releases) repository. The swUpdate file is the base image that you can flash onto a Raspberry Pi B3+ board. The .gz file is the update you would import through Device Update for IoT Hub. For an example, see [How to flash the image to your IoT Hub device](./device-update-raspberry-pi.md).
150
151
151
152
1. Log onto the machine or IoT Edge device/IoT device.
152
-
153
+
153
154
1. Open a terminal window.
154
155
155
156
1. Add the connection string to the [Device Update configuration file](device-update-configuration-file.md):
- If Device Update agent is configured as a module copy the module's primary connection string.
165
-
- Otherwise copy the device's primary connection string.
166
-
167
-
3. Enter the copied primary connection string to the 'connectionData' field's value in the du-config.json file. Please note that all values with the 'Place value here' tag must be set. See [Configuring a DU agent](./device-update-configuration-file.md#example-du-configjson-file-contents)
168
-
169
-
1. Now you are now ready to start the Device Update agent on your IoT device.
164
+
165
+
- If Device Update agent is configured as a module copy the module's primary connection string.
166
+
- Otherwise copy the device's primary connection string.
167
+
168
+
1. Enter the copied primary connection string to the 'connectionData' field's value in the du-config.json file. Please note that all values with the 'Place value here' tag must be set. See [Configuring a DU agent](./device-update-configuration-file.md#example-du-configjson-file-contents)
169
+
170
+
1. Now you are now ready to start the Device Update agent on your IoT device.
170
171
171
172
## How to start the Device Update Agent
172
173
@@ -179,13 +180,13 @@ This section describes how to start and verify the Device Update agent as a modu
179
180
```shell
180
181
sudo systemctl restart deviceupdate-agent
181
182
```
182
-
183
+
183
184
1. You can check the status of the agent using the command below. If you see any issues, refer to this [troubleshooting guide](troubleshoot-device-update.md).
184
-
185
+
185
186
```shell
186
187
sudo systemctl status deviceupdate-agent
187
188
```
188
-
189
+
189
190
You should see status OK.
190
191
191
192
1. On the IoT Hub portal, go to IoT device or IoT Edge devices to find the device that you configured with Device Update agent. There you will see the Device Update agent running as a module. For example:
@@ -211,11 +212,11 @@ If you run into issues, review the Device Update for IoT Hub [Troubleshooting Gu
211
212
You can use the following tutorials for a simple demonstration of Device Update for IoT Hub:
212
213
213
214
- [Image Update: Getting Started with Raspberry Pi 3 B+ Reference Yocto Image](device-update-raspberry-pi.md) extensible via open source to build your own images for other architecture as needed.
214
-
215
+
215
216
- [Package Update: Getting Started using Ubuntu Server 18.04 x64 Package agent](device-update-ubuntu-agent.md)
216
-
217
+
217
218
- [Proxy Update: Getting Started using Device Update binary agent for downstream devices](device-update-howto-proxy-updates.md)
218
-
219
+
219
220
- [Getting Started Using Ubuntu (18.04 x64) Simulator Reference Agent](device-update-simulator.md)
220
221
221
222
- [Device Update for Azure IoT Hub tutorial for Azure-Real-Time-Operating-System](device-update-azure-real-time-operating-system.md)
0 commit comments