Line 30: |
Line 30: |
| <li>And then finish creating yours Resource group </li> | | <li>And then finish creating yours Resource group </li> |
| | | |
− | <li>Select your subscription, we are using '''Free Trial''' for this test.
| + | Select your subscription, we are using '''Free Trial''' for this test. |
| #Name your group | | #Name your group |
− | #Finally, choose server location for meta data. We will choose '''''(South America) Brazil South''''' and will use it during test where available.</li> | + | #Finally, choose server location for meta data. We will choose '''''(South America) Brazil South''''' and will use it during test where available. |
| [[File:Azure03.png|border|class=tlt-border]] | | [[File:Azure03.png|border|class=tlt-border]] |
| | | |
− | <li>At this moment we will skip adding Tags since we will be able to do that later if needed, so simply press Review + create at the bottom of screen and then click Create to finish setup.</li> | + | <li>At this moment we will skip adding Tags since we will be able to do that later if needed, so simply press '''Review + create''' at the bottom of screen and then click Create to finish setup.</li> |
| [[File:Azure04.png|border|class=tlt-border]] | | [[File:Azure04.png|border|class=tlt-border]] |
| <br> | | <br> |
| [[File:Azure05.png|border|class=tlt-border]] | | [[File:Azure05.png|border|class=tlt-border]] |
| | | |
− | <li>You will be redirected to Homepage, then click on Resource groups. You should see yours newly created group, select it, and press Add.</li> | + | <li>You will be redirected to Homepage, then click on '''Resource groups'''. You should see yours newly created group, select it, and press '''Add'''.</li> |
| | | |
| [[File:Azure06.png|border|class=tlt-border|800px]] | | [[File:Azure06.png|border|class=tlt-border|800px]] |
| | | |
− | <li>Select Internet of Things or simply search IoT Hub and press '''Create'''.</li> | + | <li>Select '''Internet of Things''' or simply search '''IoT Hub''' and press '''Create'''.</li> |
| | | |
| | | |
Line 50: |
Line 50: |
| | | |
| <li>We leave default subscription and resource group and choose: | | <li>We leave default subscription and resource group and choose: |
− | <div>1. Region – (South America) Brazil South as before</div> | + | <div>1. Region – '''(South America) Brazil South''' as before</div> |
| <div>2. Create a name for IoT Hub</div> | | <div>2. Create a name for IoT Hub</div> |
| <div>3. Then go to '''Size and scale tab''' </div> | | <div>3. Then go to '''Size and scale tab''' </div> |
Line 75: |
Line 75: |
| [[File:Azure13.png|border|class=tlt-border|400px]] | | [[File:Azure13.png|border|class=tlt-border|400px]] |
| | | |
− | <li>After you finish creation, you will be redirected back to IoT devices select yours newly created Device ID</li> | + | <li>After you finish creation, you will be redirected back to IoT devices select yours newly created '''Device ID'''</li> |
| [[File:Azure14.png|border|class=tlt-border|800px]] | | [[File:Azure14.png|border|class=tlt-border|800px]] |
| | | |
| <li>In your device window you will find information needed to connect RUT devices to Azure IoT Hub.</li> | | <li>In your device window you will find information needed to connect RUT devices to Azure IoT Hub.</li> |
− | <div>For now, we will only need connection string. Copy Primary Connection string by pressing copy icon next to it. </div> | + | <div>For now, we will only need '''connection string'''. Copy Primary Connection string by pressing copy icon next to it. </div> |
| [[File:Azure16.png|border|class=tlt-border|800px]] | | [[File:Azure16.png|border|class=tlt-border|800px]] |
| | | |
Line 86: |
Line 86: |
| ==Configuring RUT955 Azure IoT Hub== | | ==Configuring RUT955 Azure IoT Hub== |
| <ul> | | <ul> |
− | <li>First open router WebUI, go to System > '''Package Manager''' and install Azure IoT Hub package </li> | + | <li>First open router WebUI, go to '''System > Package Manager''' and install Azure IoT Hub package </li> |
| [[File:Azure17.png|border|class=tlt-border|600px]] | | [[File:Azure17.png|border|class=tlt-border|600px]] |
| | | |
− | <li>Now navigate to Services > '''IoT Platforms''' </li> | + | <li>Now navigate to '''Services > IoT Platforms''' </li> |
| <div>1. Select Enable '''Azure IoT Hub monitoring'''</div> | | <div>1. Select Enable '''Azure IoT Hub monitoring'''</div> |
| <div>2. Paste previously copied Connection String (For this test we leave other values as default)</div> | | <div>2. Paste previously copied Connection String (For this test we leave other values as default)</div> |
Line 100: |
Line 100: |
| ==Checking if Data reaches Azure IoT Hub== | | ==Checking if Data reaches Azure IoT Hub== |
| <ul> | | <ul> |
− | <li>From router side, connect to it with CLI or SSH client and write in command azure_iothub and press Enter </li> | + | <li>From router side, connect to it with CLI or SSH client and write in command '''azure_iothub''' and press Enter </li> |
| <div>- You should get answer that looks something like that, depending on what information you chose to send. </div> | | <div>- You should get answer that looks something like that, depending on what information you chose to send. </div> |
| [[File:Azure19.png|border|class=tlt-border]] | | [[File:Azure19.png|border|class=tlt-border]] |
− | <li>From Azure IoT Hub side you can check if it receives data. Go to IoT Hub that you created previously. Select Overview, there you can see: | + | <li>From Azure IoT Hub side you can check if it receives data. Go to IoT Hub that you created previously. Select '''Overview''', there you can see: |
| </li> | | </li> |
| <div>1. How many devices are connected to hub, and how many messages it sent during chosen period of time.</div> | | <div>1. How many devices are connected to hub, and how many messages it sent during chosen period of time.</div> |
Line 110: |
Line 110: |
| [[File:Azure20.png|border|class=tlt-border|800px]] | | [[File:Azure20.png|border|class=tlt-border|800px]] |
| <li>To capture logs you will need '''Device Explorer''' for IoT Hub Devices.</li> | | <li>To capture logs you will need '''Device Explorer''' for IoT Hub Devices.</li> |
− | <div>For Windows you can get here: <nowiki>https://github.com/Azure/azure-iot-sdk-csharp/releases/tag/2019-1-4</nowiki> </div><br> | + | <div>For Windows you can get here: https://github.com/Azure/azure-iot-sdk-csharp/releases/tag/2019-1-4 </div><br> |
| <div>Scroll down to Assets, download and install '''SetupDeviceExplorer.msi''' </div> | | <div>Scroll down to Assets, download and install '''SetupDeviceExplorer.msi''' </div> |
| [[File:Azure21.png|border|class=tlt-border]] | | [[File:Azure21.png|border|class=tlt-border]] |
Line 144: |
Line 144: |
| [[File:Azure26.png|border|class=tlt-border]] | | [[File:Azure26.png|border|class=tlt-border]] |
| | | |
− | <li>Go to Service > '''IoT Platforms'''</li> | + | <li>Go to '''Service > IoT Platforms'''</li> |
| <div>1. Enable monitoring </div> | | <div>1. Enable monitoring </div> |
| <div>2. Use same Connection string as before (GSM values configuration) </div> | | <div>2. Use same Connection string as before (GSM values configuration) </div> |
Line 171: |
Line 171: |
| <ul> | | <ul> |
| <li>Install a MQTT client software to do the test, for this example we used MQTT.fx</li> | | <li>Install a MQTT client software to do the test, for this example we used MQTT.fx</li> |
− | <div>Setup your Router IP Address</div> | + | <div>1. Setup your Router IP Address</div> |
− | <div>Use the '''same broker port'''</div> | + | <div>2. Use the '''same broker port'''</div> |
− | <div>Paste your '''Connection string – primary key''' and click '''Apply'''</div> | + | <div>3. Paste your '''Connection string – primary key''' and click '''Apply'''</div> |
| [[File:Azure29-1.png|border|class=tlt-border|800px]] | | [[File:Azure29-1.png|border|class=tlt-border|800px]] |
| | | |
Line 181: |
Line 181: |
| [[File:Azure30.png|border|class=tlt-border|1000px]] | | [[File:Azure30.png|border|class=tlt-border|1000px]] |
| | | |
− | <li>If you did everthing right this message will be shown in the device explorer</li> | + | <li>If you did everything right this message will be shown in the device explorer</li> |
− | [[File:Azure31.png|border|class=tlt-border]]
| |
| </ul> | | </ul> |
| | | |
| ==Checking if Modbus Data to Server is sent to Azure IoT Hub== | | ==Checking if Modbus Data to Server is sent to Azure IoT Hub== |