Setting up the Modular IoT Gateway to connect and control multiple end devices from a mobile application is simple and secure. Kindly follow instructions to instantly connect IoT enabled end devices based on different RF connectivity using Gateway mobile application.
Here is a list of things you will need to get started with Modular IoT Gateway set up and automation:
- Modular IoT Gateway Kit
- iPhone – iOS 9.0 or later
- Android – Lollipop 5.0 & higher
- Secure Wi-Fi network
GET MORE INFORMATION
About Modular IoT Gateway
Explore Modular IoT Gateway features and technical specifications Click Here
Modular IoT Gateway Accessories

Modular IoT Gateway Platform including:
- i.MX6UL SO-DIMM SOM with 256MB DDR3 and 1GB NAND memory
- MikroBUS™ compatible KW41Z RF module
- MikroBUS™ compatible JN5179 RF module
- PN7120 based NFC module
- Standard USB cable to connect Modular IoT Gateway with host PC
- Duct antenna for Wi-Fi Interface
- AC/DC power adapter
- Getting Started guide with kit activation code

- Modular Edge Node Platform (MENP)
- MikroBUS™ compatible KW41Z RF module – to interface with MENP
- MikroBUS™ compatible JN5179 RF module – to interface with MENP
- MikroE RGB Click module
- MikroE Relay Click module
- NFC Flexi-tag

Modular IoT Gateway Mobile Application for Android and iOS
For Android, Android Lollipop 5.0 & higher
For iOS, iOS 9.0 or later
- Add and control end-devices remotely
- Enable mobile notifications
Modular IoT Gateway Setup Guide
Follow below-mentioned steps to connect Modular IoT Gateway Kit for multiple locations to a single mobile application and control multiple end devices at the same time.
Setup Prerequisites
(A) Hardware requirements
A user needs following listed items to set up the Gateway:
- Android mobile phone with following configuration (recommended models: Nexus 5, Nexus 5x, Samsung Galaxy S4/S6, Moto G 5s)
- OS: Android Lollipop 5.0 & higher
- NFC support
- Internet connectivity via Wi-Fi/4G
- Rear camera
- iOS mobile phone with the following configuration
- OS: iOS 9.0 or later
- BLE support
- Internet connectivity via Wi-Fi/4G
- Rear camera
- Modular IoT Gateway
- MENP board with modules for
- KW41Z
- JN5179
- NFC tags
- Internet connectivity on Gateway via Ethernet or Wi-Fi
- Internet connectivity on Mobile via Wi-Fi or 4G internet plan
- Power supply for MENP board (Micro USB cable)
- SEGGER J-Link with software to flash firmware on MENP-KW41Z + J-Link 9-pin Cortex-M adapter cable (8.06.02)
- Serial to UART cable with connectors for MENP UART connection
- Windows PC to update firmware
Download Application
(A) Download application
Modular IoT Gateway controls smart appliances directly from its mobile application. It optimizes operations, manages assets and completely transforms the customer experience.
Available for both Android and iOS platforms.
Get it from here just with a click.
(B) Application initial setup
- Open installed application, user can see the screen below
- If prompted for any permissions, please allow those
- Click on the “Next” button to go to the next page
- Enter “Authentication ID” for login. Use Gateway serial number as Authentication ID. The serial number is printed on the bottom of the Gateway. Please see the below screenshot of Gateway serial number label for reference
- Click on the “Submit” button to proceed
- For the first login, fill out a few details to register the Modular Gateway
- An email will be sent to the email address with a verification code that needs to be added into the OTP field (One-Time-Password)
- On successful authentication, the user is redirected to a list of registered Gateways. The user can see registered Gateways if any or can see the screen below without any Gateway
Modular IoT Gateway Setup
(A) Gateway initial setup
Follow the steps below for Gateway setup
- Plug in the power cable in D/C power input port of Gateway
- Unplug the Ethernet cable if it is to be set up via Wi-Fi
- Power up the Gateway
- Observe the LED behavior
- LED2 as solid green indicates the Gateway is powered on, otherwise, check power supply of Gateway board
- LED1 as red indicates no IP address is assigned or no internet connectivity if the Gateway doesn’t have valid Wi-Fi credential. Wi-Fi credential can be provided to Gateway through NFC or BLE commission as part of Gateway commissioning
- LED1 as orange indicates the Gateway is trying to connect with cloud
- LED1 as solid green indicates the Gateway is connected to the cloud. For Ethernet connected Gateway, user must confirm the LED1 as solid green to go ahead further

Gateway online LED

Gateway offline LED
(B) Gateway LED behavior
LED | Behavior | Representation |
LED1 | Green | Connected with cloud |
Red | Not connected with cloud | |
Orange | Connecting to cloud | |
LED2 | Green | Commission window off |
Orange | Commission window on | |
Blink fast for 3 times | Completed reading data from NFC tag | |
Blink fast for 10 Times | End device commissioning successful | |
Blink slow for 5 Times | End device commissioning failed |
Table 1 Gateway LED behavior
(C) Gateway SW1 switch behavior
Switch |
Control |
Last State |
Next State |
SW1 |
Short press (required switch press duration between 5 and 15 seconds) |
NFC/BLE commission off |
Start NFC/BLE commission window |
Commission window on |
Stop commission window |
||
Long press (required switch press duration more than 15sec) |
Any |
Power off Gateway board |
Table 2 Gateway SW1 switch behavior
Add Modular IoT Gateway
A user needs to register the Gateway using a mobile application to control and monitor end devices via Gateway. To register the Gateway, follow below steps.
The Gateway can be commissioned either using NFC commissioning or BLE commissioning (only for Wi-Fi commission).
(A) Gateway registration
- Open the mobile application and log in with a user id. A user can see the screen shown below in mobile application if none of the Gateway board is registered previously with the same user id (Authentication ID)
- Follow the note to commission Gateway
-
- Note: Gateway can be registered using QR code which is printed on the back side of your Gateway. Please click on QR code scan icon (bottom right of the screen) to commission the Gateway
- After scanning Gateway QR code, Gateway is validated. On successful validation, the user will be redirected to the Gateway properties screen to provide network credentials to the Gateway via NFC or BLE interface
(B) Gateway commissioning through NFC/BLE
- Start NFC/BLE commission window on the Gateway board by pressing and holding SW1 switch (on the back side of Gateway) for more than 5 seconds and less than 15 seconds if commission window is not active
-
- User can see LED2 as Orange which indicates the commissioning has started
- The commissioning window duration is 10 minutes. After this time the commissioning window is terminated
- The user can press and hold SW1 switch for more than 5 seconds and less than 15seconds to terminate commissioning before it times out
- Now open the Gateway Properties window
- The user can rename the Gateway and select the network interface (Ethernet or Wi-Fi) to connect to the internet
- Case 1: Ethernet interface
-
- Make sure Gateway board is powered on and the Ethernet cable is plugged in
-
- Case 2: Wi-Fi interface
-
- Make sure the Gateway board is powered on without the Ethernet cable plugged in
- Select the Wi-Fi interface
- Select an available Wi-Fi network from the list and enter the password for the Wi-Fi network
-
- Case 3: Wi-Fi interface using device hotspot
-
- Make sure the Gateway board is powered on without the Ethernet cable plugged in
- Enable the mobile data from settings in the mobile and turn off the Wi-Fi interface of the mobile
- On selecting “Use this device hotspot”, the application will ask the user to set write permissions. Allow for write access to start the Wi-Fi hotspot of the mobile device. See the images below for reference
-
- Select BLE or NFC as the mode of transfer
- Click on the “Submit” button to transfer network credentials to the Gateway using NFC or BLE interface. The user will be redirected to “Exchange credential over NFC” or “Exchange credential over BLE” screen. Follow on-screen instructions to complete the exchange
(C) Using NFC to transfer network credentials
- If the Gateway is already in commissioning mode as per above instructions, then “Step1” from the note doesn’t need to be performed
- Place the mobile on the Gateway “NFC Tap here” symbol and touch the screen when “Touch to Beam” screen is displayed. See the screenshot below for reference:
- On completion of NFC data transfer, the user can remove the mobile from the Gateway board. The completion of the NFC data transfer will be indicated by 3 fast blinks of LED2
- On successful commission of the Gateway, the user will receive “VTBR_xxxxxxxxxxxx is commissioned” notification on the mobile
- The user can see the Gateway entry in the list of commissioned Gateway boards in a few seconds
- Once the Gateway is registered with the user, user can add and control end devices (Thread and Zigbee® end devices)
(D) Using BLE to transfer network credentials
- The user will be redirected to the “Exchange credential over BLE” screen and the mobile application will search for the available BLE enable Gateway
- Please click on the Bluetooth icon (right side bottom corner) to search for all BLE enabled Gateways if it is not listed
- After a successful scan, a list of Gateways should appear as shown below
- Select the Gateway which belongs to the user to send the network credentials
- After selecting the Gateway, the data will be transferred and the user will be notified when transfer is completed
- On successful commission of the Gateway, the user will receive “VTBR_xxxxxxxxxxxx is commissioned” notification on the mobile
- Once the Gateway is registered with the user, user can add and control end devices (Thread and Zigbee® end devices)
End Device Commissioning
(A) Thread/Zigbee® end device prerequisites
- To add and control a Thread/Zigbee® end device via Gateway, the user must fulfill the below prerequisites
- MENP-KW41Z as Thread end device
- MENP-JN5179 as Zigbee® end device
(B) Thread/Zigbee® end device commissioning
To add a Thread/Zigbee® end device into Gateway’s Thread/Zigbee® network, the user needs to register Gateway board if it is not registered with a user account on the mobile
Follow steps below for Thread/Zigbee® end device commissioning
- Open the mobile application and go into the list of registered Gateways
- Click on the registered Gateway in which the user wants to add the Thread/Zigbee® end device
- The user can see the registered end device list. If any end device is already registered, they will be shown, if not, the screen below will be displayed
- To commission the end device, select the “End node commissioning” option from menu (top right side of the screen)
- The user has three options to commission and register end node. Follow the steps from one of the following methods to commission the end node
- NFC commissioning through Mobile (supported for MENP end nodes only)
- NFC commissioning through Gateway
- NFC commissioning using NTAG-I2C NFC tag (supported for MENP end nodes only)
- After the end device is commissioned, put Thread/Zigbee® end device in network joining or discovery mode
- The user will receive device online notification in the mobile application when Thread/Zigbee® end device joins the network
- After the device has joined the network it will be visible in the Gateway end device list as shown below. The user can now control the end device by selecting it in the list
(C) NFC commissioning through mobile
For commissioning, the end node from mobile application using NTAG-I2C NFC tags written by MENP end node, follow the steps below (supports MENP end nodes only)
- Remove power from the MENP board and connect the NTAG-I2C tag to the MENP board as shown below

NTAG-I2C connection with MENP + RGBClick board

NTAG-I2C connection with MENP + RelayClick board
- Power on the device to write the end device commissioning information into the NTAG. This will automatically be written by the end node firmware on power-up using I2C interface
- Select “NTAG NFC Commissioning” commissioning method from the “End Node Commissioning Option” screen. On selecting “NTAG NFC Commissioning” option, application will open a “Read NTAG NFC” dialog box asking to approach NTAG-I2C NFC tag connected to MENP
- Tap the mobile device on the NTAG-I2C NFC tag connected with MENP to start the commissioning process
- On successful completion, the user will get a notification on the mobile application indicating the Thread/Zigbee® end device has been commissioned with the Gateway for joining
(D) NFC commissioning through Gateway
For commissioning, the end node from the Gateway using NTAG-I2C tag written by MENP end node, follow the steps below (supports MENP end nodes only)
- Remove the power from the MENP board and connect the NTAG-I2C tag to MENP board as shown below

NTAG-I2C connection with MENP + RGBClick board

NTAG-I2C connection with MENP + RelayClick board
- Power on the device to write the end device commissioning information into the NTAG. This will automatically be written by the end node firmware on power-up using I2C interface
- Check that the commissioning has started in the Gateway. If the commissioning has not started, the user needs to start NFC commission window on the Gateway board. To turn “ON” the commission window, Press and hold the SW1 switch (commission switch) on the back side of Gateway for more than 5 seconds and less than 15 seconds
- After the commissioning window is activated, tap the NTAG-I2C NFC tag connected with MENP on “NFC Tap Here” marker on the Gateway for a while to transfer end node details using NFC as shown below. The completion of the NFC data transfer will be indicated by the Gateway with 3 fast blinks of LED2


NTAG-I2C Commissioning using Gateway
- After the Gateway completes reading the NFC tag, observe LED2 behavior on Gateway board
- On successful commission of end device, LED2 blinks fast (green ON / red ON) for 10 times
- In case of failure, LED2 blinks slowly (green ON + red ON) for 5 times
- On successful operation, the user will be notified on the mobile application that the Thread/Zigbee® end device has been added to the system and is ready for network joining
End Device Network Joining
(A) Thread end device network joining mode (MENP-KW41Z )
- Ensure that the MENP-KW41Z is in factory reset mode (with the D12 LED flashing continuously for MENP-KW41Z + RGB click end node and D12 is steady on for MENP-KW41Z + Relay click end node). If it is not in factory reset mode then put it in factory reset mode by pressing & holding SW2 more than 8 seconds
- Short press SW2 on the MENP-KW41Z board to get the MENP board in joining mode
- When MENP-KW41Z is connected to the Thread network, D12 LED will stop flashing

SW2 on MENP-Rev2 board

LED Flashing indication on MENP-Rev2 board
(B) Zigbee® end device network joining mode (MENP-JN5179)
- Power cycle the MENP-JN5179 board and wait at least for 2 seconds after power up
- Now press SW1 (RESET) button MENP for 7 times with less than 2 seconds between consecutive presses. This will factory reset the node
JN5179 on MENP Rev2.0 board – Discovery mode Switch
- Observe D12 LED to check discovery mode status. The D12 LED flashes continuously for MENP-JN5179 + RGB click end node
- Once MENP-JN5179 joins the Zigbee®network, The D12 led will stop flashing and turn off
End Device Control
Tap to the listed Thread/Zigbee® end device in the mobile application and the user will see the control screen for the end device. User can see the screen below in end device attributes
(A) MENP + RGB click board end device attributes and board setup
LED: This is a simple on/off LED and the user can switch on/off by pressing the on/off button in the control window. Notice the changed behavior of the end device
Button press: It is a button press counter of the Thread MENP- KW41Z end devices. Each time SW2 switch is pressed on MENP- KW41Z, the button press counter on the Modular Gateway Manager’s screen should increment by one
RGB click module: This is a 4×4 RGB LED click module. The user can set Red/Green/Blue colors for all LEDs on the board with varying brightness. Make sure any color is selected when you change the brightness and vice versa

SW2 on MENP-Rev1 + KW41Z

SW2 on MENP-Rev2 + KW41Z
(B) End device properties
End node properties windows contain Thread end device name, it’s EUI-64, firmware version and model name. The user can change end node name. Follow the steps below to view and change Thread end device name
- Select the “End device Properties” option from Menu option (top right of the screen). The application will redirect the user to end node properties screen
- Change Thread/Zigbee® end node name
- Edit the name of Thread/Zigbee® end node
- Click on the “Submit” button
- The user will be notified of successful name change
End Device Over-The-Air (OTA) Firmware Upgrade
(A) Prerequisites
Required firmware version
Please find the currently recommended software or firmware versions in setup prerequisites section.
Prerequisites for mobile application
For end device, OTA firmware upgrade, the end device must be commissioned with the Gateway and it must be online. Follow end device commissioning section to commission end device.
Supported OTA update mode
There are two modes supported for the end device OTA update.
- Single device OTA upgrade
- This mode is useful when the OTA update needs to be done for a single end node
- Mass OTA upgrade
- This mode is useful when simultaneous OTA update needs to be done for multiple end node devices of the same type
(B) Single device OTA setup mobile side
To start the OTA update for a specific end node, select an end node which is commissioned with the Gateway and is currently online.
Note: Supported end node devices for OTA update
- MENP-JN5179 MENP-KW41Z (only with MENP Rev2 board)
- MENP-KW41Z (only with MENP Rev2 board)
- Select end node from “Gateway End Node Listing screen”
- Select “ED Firmware Update” from menu options
- The user can see the name, its EUI and current firmware version
- Select new firmware from the available firmware/s list
MENP-JN5179-RELAY CLICK firmware: MENP-JN5179-RelayClick-OTA-upgrade-vX.Y.ZZ.ota
MENP-KW41Z-RGBCLICK firmware: MENP-KW41Z-REED-RGBClick-OTA-upgrade-vX.Y.ZZ.thread
MENP-KW41Z-RELAY CLICK firmware: MENP-KW41Z-REED-RelayClick-OTA-upgrade-vX.Y.ZZ.thread
Note: The MENP end node will accept the OTA image with the different firmware version than the current version.
- On clicking the list item, the application will ask for user confirmation. Now user needs to select “UPDATE” to start the OTA upgrade or “CANCEL” to cancel the upgrade
- Click on the update button to start OTA, check status on the screen
- The user will receive following notification for OTA on the screen:
- OTA started
When the OTA firmware upgrade process is started, user will receive “OTA started…” notification
- OTA started
-
- OTA finished
When the OTA firmware upgrade is completed, the user will receive this notification.Once the OTA update is finished, end device will reboot with updated firmware and send an online message to the mobile application. The mobile application will update the FW version filed with the new firmware version
- OTA finished
-
- Error in OTA update. Please try again
If there is a failure during an OTA update due to an error, the user will get this notification
- Error in OTA update. Please try again
(C) End device Mass OTA setup mobile Side
To start the end node Mass OTA, the user needs to have end node online under the selected Gateway. Click on “End device Mass OTA” menu item from the “Gateway End Node Listing Screen”
Note: Supported end devices for OTA update
- MENP-JN5179-RGB click
- MENP- JN5179-RELAY click
- MENP-KW41Z (only with MENP Rev2 board)
(D) Mass OTA firmware selection
Select Thread or Zigbee® end node to start the Mass OTA. The type of selection will depend on the end devices available in the Gateway. If there is only a Thread or Zigbee® end node available then the application will display only those types of selection.
The application will check for end device OTA status.
Status:
- No end device OTA update is in progress for selected end device type, user can start Mass OTA
- Individual OTA of the selected end device type is in progress. The application will notify for the same
- Mass OTA of the selected type is already in progress. The application will notify the same. User can cancel the notification and select another end device type to start the Mass OTA, or can stop the Mass OTA progress, or can check the Mass OTA progress state
Click on the “CHECK” button to check the selected end device type progress
Click on the “STOP” button to stop the selected end device type Mass OTA
Click on the “CANCEL” button to close the dialog, user can select another type to start the OTA
Start the Mass OTA by selecting the firmware from the available firmware listing
(E) Start Mass OTA
As mentioned in the firmware selection described above, select the firmware from the available firmware listing to start the Mass OTA. On the confirmation dialog click on the “START” button to start with Mass OTA or click on the “CANCEL” button to avoid starting the upgrade
Once the Mass OTA is started in the Gateway, the application will notify the same
The application will display the progress of the Mass OTA. Wait for the Mass OTA upgrade progress to complete. The user can go back from this screen while OTA is in progress. On returning to this screen, the updated progress will be shown
- The Mass OTA for the Zigbee® network takes around 5 hours to complete the OTA
- The Mass OTA for the Thread network takes around 1 hour to complete the OTA
The application will notify the user of successful completion of the Mass OTA
Clicking the “OK” button in the application redirects the user to the end device listing screen, where the user can check that the end device firmware version is updated
(F) Notification messages for Mass OTA
- If the Modular Gateway fails during the Mass OTA process, it will notify the mobile application with the reason
(G) Cancel Mass OTA
- To cancel the Mass OTA upgrade while it is in process, click on the “Cancel Mass OTA” menu item
- The application will notify the user with the “Mass OTA canceled”
Modular IoT Gateway Over-The-Air (OTA) Update
(A) Prerequisites
- The Modular Gateway needs to be using the OTA enabled SD card Image.
(B) Perform OTA update
Note: Please make sure that the Modular Gateway board has a stable power supply during OTA update process.
Please follow the steps below to start and monitor OTA updates in the mobile application.
- Sign in to the mobile application using serial number printed on bottom of the Gateway
- Select the Gateway from the “Commissioned Gateway Listing” screen
- Select “Gateway Firmware Update” from the menu options in the “Gateway End Node Listing” screen
- The application will show a list of available updates on the SFTP server
- Select the desired update bundle file (.swu) from the list
- Select the “UPDATE” button from confirmation dialog to initiate the update
- If required, click the “CANCEL” button to terminate the OTA procedure
- Once the Modular Gateway has received a request from the mobile application, it will download the requested file and update the device. The mobile application will display the progress of each stage
- Once the update has completed successfully, the device will reboot after 10 seconds. On reboot, it will boot from the new image that was downloaded. The Modular Gateway will notify the mobile application on successful boot.
- If the Modular Gateway is facing issues during the system update, it will notify the mobile application with the reason
Remove Gateway
To remove the Gateway from registered Gateway list, follow the step below
- The Gateway must be powered on and connected to the cloud. Confirm that LED1 is solid green
- Open the mobile application and select the Gateway which is to be removed
- Remove the associated end device from Gateway if any
- Select “Remove Gateway” from the menu list (top right side of the screen)
- The application will ask the user to confirm removal
- Select “REMOVE” to remove the Gateway
- On successful removal, the user will be notified and the Gateway will be removed from the list of registered Gateways
Remove End device
(A) Remove Thread/Zigbee® end device when online
To remove a Thread/Zigbee® end device from the Gateway’s network, the Gateway must be online to remove the Thread/Zigbee® end node. The user will not be allowed to remove Thread/Zigbee® end device while the Gateway is offline. To remove end device properly from the network, it is mandatory that the Gateway and end device should be online. Follow the steps below to remove Thread/Zigbee® end device
- Select the “Remove End device” options from Menu option (top right of the screen)
- The application asks for a confirmation from the user
- Select “REMOVE” to remove end device
- On successful removal of the Thread/Zigbee® end device, the user will be notified of the same in mobile application
(B) Remove Thread/Zigbee® end device when offline
In certain circumstances, a device that needs to be removed is no longer available or is offline. To remove a node that is offline, follow the steps below.
- Navigate to the “Gateway End Node Listing”
- Swipe your finger from right to left over the device you want to remove. This will allow you to remove the device as shown below
- Tap on the red remove listing. This will ask the user to confirm the removal
- To confirm the selection, press the remove button. This will remove the device from the system
- The device will no longer be listed and a confirmation message at the bottom will be shown verifying that the device has been “removed successfully”