Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 5 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Kilight1 +XWiki.Xiaoling - Content
-
... ... @@ -1,37 +1,25 @@ 1 1 **Table of Contents:** 2 2 3 -{{toc/}} 4 4 5 5 6 6 7 -= 1. Introduction = 8 8 9 - AzureIoT Hub is designed around standalone end devices communicating directly with the hub.Eachend device must connect to the hub via one of the supported communication protocols ([[MQTT>>url:https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support]] / [[AMQP>>url:https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-amqp-support]]).These protocols are inherently stateful - eachindividualenddevice must have one connection always open in order to send and receive messages from the Azure IoT Hub.7 += 1. Deployment Guide = 10 10 11 -The Azure IoT Hub integration prefers to use an asynchronous, stateless communication style. When uplink messages are received from an end device, the integration connects on demand to the Azure IoT Hub and submits the message, and also updates the Device Twin. The data plane protocol used between The Things Stack and Azure IoT Hub is [[MQTT>>url:https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support]], and the connections are always secure using [[TLS 1.2>>url:https://datatracker.ietf.org/doc/html/rfc5246]]. 12 12 13 -(% class="wikigeneratedid" %) 14 -[[image:image-20230511145209-1.png||height="600" width="813"]] 15 - 16 - 17 -= 2. Deployment Guide = 18 - 19 - 20 20 Learn how to deploy the Azure IoT Hub integration for The Things Stack. 21 21 22 22 13 +== 1.1 Prerequisites == 23 23 24 -== 2.1 Prerequisites == 25 25 16 +1. Access to an Azure account. [[Create a new account>>url:https://signup.azure.com/]] 26 26 27 -1. ccesstoanAzureaccount. [[Createanew account>>url:https://signup.azure.com/]]18 +1. An application in The Things Stack. [[See instructions>>url:https://www.thethingsindustries.com/docs/integrations/adding-applications/]] 28 28 29 - 2.Anapplication in TheThingsStack. [[Seeinstructions>>url:https://www.thethingsindustries.com/docs/integrations/adding-applications/]]20 +== 1.2 Create API Key == 30 30 31 31 32 -== 2.2 Create API Key == 33 - 34 - 35 35 Go to your application in The Things Stack Console, navigate to (% style="color:blue" %)**Integrations → Azure IoT**(%%) on the left hand menu and click on (% style="color:blue" %)**Expand** (%%)next to (% style="color:blue" %)**Azure IoT Hub**(%%). Now click on (% style="color:blue" %)**Generate API Key**. 36 36 37 37 ... ... @@ -43,7 +43,7 @@ 43 43 Leave the integration page open, as you will need to copy in your (% style="color:blue" %)**Azure IoT Hub hostname** (%%)and (% style="color:blue" %)**Azure IoT Hub access key**(%%) before saving the integration. 44 44 45 45 46 -== 2.3 Deploy Azure Resource Manager Template ==34 +== 1.3 Deploy Azure Resource Manager Template == 47 47 48 48 49 49 [[Deploy template>>url:https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fttsiothubintegration.blob.core.windows.net%2Fintegration-releases%2Flatest%2Fmain.json]] ... ... @@ -51,7 +51,7 @@ 51 51 View template as [[JSON>>url:https://ttsiothubintegration.blob.core.windows.net/integration-releases/latest/main.json]] or [[Bicep>>url:https://ttsiothubintegration.blob.core.windows.net/integration-releases/latest/main.bicep]] 52 52 53 53 54 -== 2.4 Settings ==42 +== 1.4 Settings == 55 55 56 56 57 57 The following parameters configure the integration: ... ... @@ -70,7 +70,7 @@ 70 70 71 71 [[image:image-20230105112836-2.png]] 72 72 73 -Click (% style="color:blue" %)**Review + Create**(%%), then (% style="color: blue" %)**Create**.61 +Click (% style="color:blue" %)**Review + Create**(%%), then (% style="color:#037691" %)**Create**. 74 74 75 75 76 76 (% style="color:red" %)**Note:** ... ... @@ -77,23 +77,21 @@ 77 77 78 78 Creating all resources can take up to five minutes. ☕ 79 79 80 -When the deployment is done, you’ll see the status .Your deployment is complete .68 +When the deployment is done, you’ll see the status .Your deployment is complete 81 81 82 - 83 83 [[image:image-20230105112836-3.png]] 84 84 85 85 86 86 After the deployment has finished, click (% style="color:blue" %)**Outputs**. 87 87 88 -[[image:image-2023010513 5055-2.png]]75 +[[image:image-20230105112836-4.png]] 89 89 77 +The two outputs can now be copied into your integration settings as (% style="color:blue" %)**Azure IoT Hub hostname**(%%) and (% style="color:#037691" %)**Azure IoT Hub access key**(%%). Click on (% style="color:blue" %)**Enable/Update Azure IoT Hub integration**. 90 90 91 -The two outputs can now be copied into your integration settings as (% style="color:blue" %)**Azure IoT Hub hostname**(%%) and (% style="color:blue" %)**Azure IoT Hub access key**(%%). Click on (% style="color:blue" %)**Enable/Update Azure IoT Hub integration**. 92 - 93 93 [[image:image-20230105112836-5.png]] 94 94 95 95 96 -= 3. Managing Devices =82 += 2. Managing Devices = 97 97 98 98 99 99 The Azure IoT Hub integration for The Things Stack synchronizes the device registry: you can create devices in Azure IoT Hub which trigger an Azure Function that creates the device in The Things Stack. ... ... @@ -111,9 +111,8 @@ 111 111 Devices are created automatically as they join the network or send an uplink message. For the name of new devices, the end device ID in The Things Stack is used as the device ID in Azure IoT Hub. 112 112 113 113 114 -= =3.1Creating Devices==100 +(% style="color:blue" %)**Creating Devices:** 115 115 116 - 117 117 You can use Azure IoT Hub to create and claim devices in The Things Stack. This is useful to manage all your devices in one place, without having to use The Things Stack Console, CLI or API. 118 118 119 119 (% style="color:blue" %)**Creating**(%%) a device allows you to add any LoRaWAN device by manually entering its information and security keys. ... ... @@ -124,10 +124,8 @@ 124 124 125 125 [[image:image-20230105112836-6.png]] 126 126 127 - 128 128 As (% style="color:blue" %)**Device ID**(%%), enter any device ID you like. Hit (% style="color:blue" %)**Save**. 129 129 130 - 131 131 (% style="color:red" %)**Note:** 132 132 133 133 See [[ID and EUI constraints>>url:https://www.thethingsindustries.com/docs/reference/id-eui-constraints/]] for guidelines about choosing a unique ID. ... ... @@ -134,39 +134,37 @@ 134 134 135 135 [[image:image-20230105112836-7.png]] 136 136 137 - 138 138 You will now have to setup the LoRaWAN specific settings of the device. Click on (% style="color:blue" %)**Device Twin**. 139 139 140 -[[image:image-202301051 34348-1.png]]122 +[[image:image-20230105112836-8.png]] 141 141 142 - 143 143 You will now be presented with a JSON document containing the Device Twin. You now have to add a new object called tags, which will contain an object called lorawan with the LoRaWAN specific tags. You will have to specify the following tags: 144 144 145 -* (% style="color:#037691" %) **devEui:**(%%) the hexadecimal LoRaWAN DevEUI.126 +* (% style="color:#037691" %)devEui:(%%) the hexadecimal LoRaWAN DevEUI. 146 146 147 -* (% style="color:#037691" %) **joinEui:**(%%)****the hexadecimal LoRaWAN JoinEUI (or AppEUI).128 +* (% style="color:#037691" %)joinEui:(%%) the hexadecimal LoRaWAN JoinEUI (or AppEUI). 148 148 149 -* (% style="color:#037691" %) **lorawanVersion:**(%%) either 1.0, 1.0.1, 1.0.2, 1.0.3 or 1.1.130 +* (% style="color:#037691" %)lorawanVersion:(%%) either 1.0, 1.0.1, 1.0.2, 1.0.3 or 1.1. 150 150 151 -* (% style="color:#037691" %) **regionalParametersVersion:**(%%) either 1.0, 1.0.1, 1.0.2 (or 1.0.2-a), 1.0.2-b, 1.0.3-a, 1.1-a or 1.1-b.132 +* (% style="color:#037691" %)regionalParametersVersion:(%%) either 1.0, 1.0.1, 1.0.2 (or 1.0.2-a), 1.0.2-b, 1.0.3-a, 1.1-a or 1.1-b. 152 152 153 -* (% style="color:#037691" %) **appKey:**(%%) the hexadecimal LoRaWAN AppKey.134 +* (% style="color:#037691" %)appKey:(%%) the hexadecimal LoRaWAN AppKey. 154 154 155 -* (% style="color:#037691" %) **nwkKey:**(%%) the hexadecimal LoRaWAN NwkKey (only when using LoRaWAN 1.1 or higher).136 +* (% style="color:#037691" %)nwkKey:(%%) the hexadecimal LoRaWAN NwkKey (only when using LoRaWAN 1.1 or higher). 156 156 157 -* (% style="color:#037691" %) **frequencyPlanId:**(%%) the frequency plan ID. See [[Frequency Plans>>url:https://www.thethingsindustries.com/docs/reference/frequency-plans/]] for the supported values.138 +* (% style="color:#037691" %)frequencyPlanId:(%%) the frequency plan ID. See [[Frequency Plans>>url:https://www.thethingsindustries.com/docs/reference/frequency-plans/]] for the supported values. 158 158 159 159 If your end device is a part of the [[LoRaWAN Device Repository>>url:https://www.thethingsindustries.com/docs/integrations/payload-formatters/device-repo/]], you may provide the identifiers of the device as part of an optional versionIdentifiers object. You can specify the following information as part of the identifiers: 160 160 161 -* (% style="color:#037691" %) **bandId:**(%%) the band ID.142 +* (% style="color:#037691" %)bandId:(%%) the band ID. 162 162 163 -* (% style="color:#037691" %) **brandId:**(%%) the brand ID.144 +* (% style="color:#037691" %)brandId:(%%) the brand ID. 164 164 165 -* (% style="color:#037691" %) **firmwareVersion:**(%%) the firmware version.146 +* (% style="color:#037691" %)firmwareVersion:(%%) the firmware version. 166 166 167 -* (% style="color:#037691" %) **hardwareVersion:**(%%) the hardware version.148 +* (% style="color:#037691" %)hardwareVersion:(%%) the hardware version. 168 168 169 -* (% style="color:#037691" %) **modelId:**(%%) the model ID.150 +* (% style="color:#037691" %)modelId:(%%) the model ID. 170 170 171 171 (% style="color:red" %)**Note:** 172 172 ... ... @@ -208,15 +208,12 @@ 208 208 209 209 } 210 210 211 - 212 212 [[image:image-20230105112836-9.png]] 213 213 214 214 Click on (% style="color:blue" %)**Save**(%%) in the top-left corner. The end device will now be created in The Things Stack. 215 215 196 +(% style="color:blue" %)**Deleting Devices:** 216 216 217 -== 3.2 Deleting Devices == 218 - 219 - 220 220 In the Azure Console, open your Azure IoT Hub resource. In the menu on the left, click (% style="color:blue" %)**IoT Devices**. 221 221 222 222 Click on the checkbox in front of the device you want to delete, then click (% style="color:blue" %)**Delete**. ... ... @@ -225,18 +225,15 @@ 225 225 226 226 The end device will be deleted from Azure IoT Hub and The Things Stack. 227 227 206 +(% style="color:blue" %)Example(TrackerD): 228 228 229 -(% style="color:blue" %)**Example(TrackerD):** 230 - 231 231 [[image:image-20230105112836-11.png]] 232 232 233 - 234 234 [[image:image-20230105112836-12.png]] 235 235 236 236 237 -(% style="color:blue" %) **Example(LHT65N):**213 +(% style="color:blue" %)Example(LHT65N): 238 238 239 -[[image:image-202301051 35558-2.png||height="495" width="1360"]]215 +[[image:image-20230105112836-13.png]] 240 240 241 - 242 242 [[image:image-20230105112836-14.png]]
- image-20230105134348-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -78.2 KB - Content
- image-20230105135055-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -48.7 KB - Content
- image-20230105135507-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -79.1 KB - Content
- image-20230105135558-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -106.1 KB - Content
- image-20230511145209-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Kilight - Size
-
... ... @@ -1,1 +1,0 @@ 1 -131.5 KB - Content