platform | device | language |
---|---|---|
linux 3.0.35 openwrt |
fatbox g3 |
c |
About this document
This document describes how to configure FATBOX G3 as device gateway for Azure IoT with Azure IoT SDK. This multi-step process includes:
- Configuring Azure IoT Hub
- Registering your IoT device
- Test your device
An industrial LTE gateway device to allow secure remote monitoring and management of industrial equipment with Modbus RTU, Modbus TCP, RS-485 or CAN bus using the Azure IoT platform.
You should have the following items ready before beginning the process:
- Setup your IoT hub
- Provision your device and get its credentials
- FATBOX G3 device
- Save your device connection string into a text file named connstr.txt. It will be used to setup and configure your FATBOX G3 as a secure device to connect to your IoT Hub.
-
Login to your FATBOX G3 using the LAN port.
We suggest 2 ways to upload your unique Azure IoT Hub device connection string to your FATBOX.
- Using a USB drive (with micro USB connector)
- Copy the connstr.txt file into your USB drive /user folder.
-
Insert USB drive into FATBOX G3's USB port in the rear.
- From 'Management', click on 'Download to FATBOX' and check that 'OK' led on FATBOX blinks once.
- Using SCP or WINSCP over Ethernet connection
- Enable SSH on the FATBOX (reboot after 'Update').
- Use SCP or WINSCP to transfer the connstr.txt from your computer to the FATBOX /user folder.
- Using a USB drive (with micro USB connector)
-
In the FATBOX G3 'Azure IoT' menu, enable the Azure IoT device client option.

- SSH to the FATBOX (using root and password as setup in your LOGIN).
- Create or copy a few lines of 'test data' into the /tmp/dataq.txt file.
- Run the /etc/M2MBOT in the FATBOX.
- 'Test data' will be sent line by line by the IoT client to your Azure IoT Hub
- See Manage IoT Hub to learn how to observe the messages IoT Hub receives from the application.
- See Manage IoT Hub to learn how to send cloud-to-device messages to the application.