NNIONGIN LoRaWAN Gateway User Manual Document Version: 1.0 Firmware Version: lgw--build-v5.4.1644990565-20220216-1352 Version 1.
Table of Contents 1 2 Introduction .............................................................................................................................. 5 1.1 What is the NNIONGIN ............................................................................................................... 5 1.2 Specifications.............................................................................................................................. 6 1.3 Features ..........................................
5.3 5.3.1 Network --> Network Status ........................................................................................... 27 5.3.2 Network --> Network ...................................................................................................... 28 5.3.3 Network --> WiFi ............................................................................................................. 29 5.4 7 8 9 10 System ................................................................................
11 Packing Info ............................................................................................................................ 45 12 FCC Warning ........................................................................................................................... 46 13 Fiber Glass Antenna Installation Steps ....................................................................................
1 1.1 Introduction What is the NNIONGIN The NNIONGIN is an open source LoRaWAN Indoor Gateway. It lets you bridge LoRa wireless network to an IP network via WiFi, Ethernet. The LoRa wireless allows users to send data and reach extremely long ranges at low data-rates. The NNIONGIN uses Semtech packet forwarder & LoRaWAN Basic Station and fully compatible with LoRaWAN protocol. It includes a SX1302 LoRa concentrator, which provides 10 programmable parallel demodulation paths.
1.2 Specifications Hardware System: Linux Part: ➢ 400Mhz ar9331 processor ➢ 64MB RAM ➢ 16MB Flash Interface: ➢ 10M/100M RJ45 Ports x 1 ➢ WiFi : 802.11 b/g/n ➢ LoRaWAN Wireless ➢ Power Input: 5V DC, 2A, Type C ➢ USB 2.0 host connector x 1 ➢ Mini-PCI E connector x 1 ➢ SX1302 + 2 x SX1250 ➢ GPS Module L76K WiFi Spec: ➢ IEEE 802.11 b/g/n ➢ Frequency Band: 2.4 ~ 2.
1.3 1.4 Features ✓ Open Source OpenWrt system ✓ Managed by Web GUI, SSH via WAN or WiFi ✓ Remote access with Reverse-SSH or remote.it ✓ Emulates 49x LoRa demodulators ✓ LoRaWAN Gateway ✓ 10 programmable parallel demodulation paths ✓ Pre-configure to support different LoRaWAN regional settings. ✓ Allow to customize LoRaWAN regional parameters. ✓ Support Local decode ABP end node info and transfer to MQTT server ✓ Support different level log in.
1.5 NNIONGIN Applications 1.6 LED Indicators NNIONGIN has totally four LEDs, They are: ➢ Power LED ➢ LoRa LED packet. ➢ SYS LED :This RGB LED will shows different colors on different state: ✓ SOLID BLUE: Device is alive with LoRaWAN server connection. ✓ : This RED LED will be solid on if the device is properly powered. : This RGB LED will blink GREEN when LoRaWAN module starts or transmit a BLINKING BLUE: a) Device has internet connection but no LoRaWAN Connection.
2 Access and Configure NNIONGIN The NNIONGIN is configured as a WiFi Access Point by factory default. You can access and configure the NNIONGIN after connecting to its WiFi network, or via its WAN Ethernet port. 2.1 Find IP address of NNIONGIN 2.1.1 Connect via WiFi At the first boot of NNIONGIN, it will auto generate a WiFi network called nitroo-xxxxxx with password: nitro+nitro You can use a PC to connect to this WiFi network. The PC will get an IP address 10.130.1.
2.1.3 Connect via WiFi with DHCP IP from router If the NNIONGIN already connect to the router via WiFi, use can use the WiFi IP to connect to NNIONGIN. 2.1.4 Connect via Ethernet with fall back ip The WAN port also has a fall back ip address for access if user doesn’t connect to uplink router. Click here to see how to configure. 2.2 Access Configure Web UI Web Interface Open a browser on the PC and type in the NNIONGIN ip address (depends on your connect method) http://10.130.1.
3 Typical Network Setup 3.1 Overview The NNIONGIN supports flexible network set up for different environments. This section describes the typical network topology can be set in NNIONGIN. The network set up includes: 3.2 ✓ WAN Port Internet Mode ✓ WiFi Client Mode ✓ WiFi AP Mode Use WAN port to access Internet By default, the NNIONGIN is set to use the WAN port to connect to an upstream network.
3.3 Access the Internet as a WiFi Client. In the WiFi Client Mode, NNIONGIN acts as a WiFi client and gets DHCP from an upstream router via WiFi. The settings for WiFi Client is under page System → WiFi → WiFi WAN Client Settings In the WiFi Survey Choose the WiFi AP, and input the Passphrase then click Save & Apply to connect.
3.4 Check Internet connection In the Home page, we can check the Internet connection. ➢ GREEN Tick ➢ Yellow Tick : This interface has IP address but don’t use it for internet connection. ➢ RED Cross : This interface doesn’t connected. 4 Example: Configure as a LoRaWAN gateway : This interface has Internet connection. NNIONGIN is fully compatible with LoRaWAN protocol. It uses the legacy Semtech Packet forwarder to forward the LoRaWAN packets to server. The structure is as below.
This chapter describes how to use the NNIONGIN to work with (TTN v3)。 (www.thethingsnetwork.
4.1 Create a gateway in TTN V3 Server Step 1: Get a Unique gateway ID. Every NNIONGIN has a unique gateway id. The ID can be found at LoRaWAN page: The example gateway id is: a8404122f3fc4150 Step 2: Sign up a user account in TTN server https://account.thethingsnetwork.
Note: Choose the cluster corresponds to a specific Gateway server address ➢ Europe 1 corresponding Gateway server address: eu1.cloud.thethings.network ➢ North America 1 corresponding Gateway server address: nam1.cloud.thethings.network ➢ Australia 1 corresponding Gateway server address: au1.cloud.thethings.
Step 4: Create a Gateway Click the Gateway icon and then click Add gateway.
Notice: Gateway Server address must match the gateway configuration, otherwise you will have problem for End Node to join the network. After creating the gateway, you can see the gateway info, as below. 4.2 Configure NNIONGIN to connect to TTN v3 You can now configure the NNIONGIN to let it connect to TTN network V3. Make sure your NNIONGIN has a working Internet Connection first.
Note: The server address must match the Gateway server address you choose in TTN V3. In the home page, we can see the LoRaWAN connection is ready now. In TTN v3 portal, we can also see the gateway is connected.
NNIONGIN LoRaWAN Gateway User Manual 20 / 48
4.3 Add a LoRaWAN End Device This section shows how to add a LoRaWAN End device to a LoRaWAN network and see the data from TTN web site. We use LT-22222-L IO Controller as a reference device - the setup for other LoRaWAN devices will be similar. Step 1: Create a Device definition in TTN v3 with the OTAA keys from the example LT-22222-L IO Controller device. Three codes are required to define the device in TTN v3: ✓ DEV EUI - Unique ID code for a particular device.
For the TTN v3 server, you can use the codes set in the device as in the following example. Select Add Application to open the screen below. Open the Application select Add end device Start Register the end device Select OTAA activation mode The LoRaWAN version for your device should be provided by the manufacturer in a datasheet as LoRaWAN version or LoRaWAN specification. The most commonly used LoRaWAN versions are v1.0.2 and v1.0.3.
First, input the End device ID, AppEUI and DevEUI. Secondly, choose the corresponding frequency and LoRaWAN class capabilities.
Finally, Application layer settings input the corresponding AppKey. Before saving the configuration, check that the data matches the device. Step 2: Power on LT-22222-L device and it will automatically join the TTN network. After joining successfully, it will start to upload messages to the TTN v3. Select the Live data tab and you will see the data appearing in the panel. Note that it may take some time for the device data to appear in the TTN v3 display.
5 5.
5.2 LoRaWAN Settings 5.2.1 LoRaWAN --> LoRaWAN This page is for the connection set up to a general LoRaWAN Network server such as: TTN, ChirpStack etc. Note : User can ignore the latitude and longitude settings here, NNIONGIN will use the actually value from GPS module.
5.3 Network 5.3.
5.3.2 Network --> Network LAN Settings: When the NNIONGIN has the AP enable, LAN settings specify the network info for NNIONGIN’s own network.
5.3.3 Network --> WiFi NNIONGIN WiFi Settings.
5.4 System 5.4.
5.4.2 System --> General ( login settings) System Password: There are two logins for NNIONGIN: admin /nitro. Both root and admin have the same right for WEB access. But root user has also the right to access via SSH to Linux system. admin only able to access WEB interface. This page can be used to set the password for them. Timezone: Set device timezone. Port forwarding: Enable/Disable the HTTP and SSH access via WAN interface.
5.4.3 System --> Back Up/Restore Config For backup or restore configuration. 5.4.4 System --> Remote.it Install Remote.
5.4.5 System --> Remote Mgmt Auto Provision is the feature for batch configure and remote management.
5.4.6 System --> Firmware Upgrade We keep improving the NNIONGIN firmware for new features and bug fixes. Web → System → Firmware Upgrade Select the required image and click Upload. The image will be uploaded to the device, and then click Process to upgrade. NOTE : You normally need to uncheck the Preserve Settings checkbox when doing an upgrade to ensure that there is no conflict between the old settings and the new firmware. The new firmware will start up with its default settings.
The system will automatically boot into the new firmware after upgrade. Note *: User can also upgrade firmware via Linux console SCP the firmware to the system /var directory and then run root@OpenWrt:~# /sbin/sysupgrade –n /var/Your_Image NOTE: it is important to transfer the image in the /var directory, otherwise it may exceed the available flash size. 5.4.7 System --> Reboot/Reset Restart or restore factory settings.
5.5 LogRead 5.5.1 LogRead --> LoRa Log Show the frequency for LoRa Radio and traffics.
5.5.
5.5.3 LogRead --> System Log Show the system log 5.5.4 LogRead --> Record Log Record Log.
6 Linux System The NNIONGIN is based on the OpenWrt Linux system. It is open source, and users are free to configure and modify the Linux settings. 6.1 SSH Access for Linux console User can access the Linux console via the SSH protocol. Make sure your PC and the NNIONGIN are connected to the same network, then use a SSH tool (such as putty in Windows) to access it. IP address: IP address of NNIONGIN Port: 22 or 2222 (SSH port in WAN interface has been change to 2222 since firmware 5.3.
In Windows, one of the easiest methods is using the WinSCP utility. After establishing access via WinSCP to the device, you can use an FTP style window to drag / drop files to the NNIONGIN, or edit the files directly in the windows. Screenshot is as below: 6.3 File System The NNIONGIN has a 16MB flash and a 64MB RAM. The /var and /tmp directories are in the RAM, so contents stored in /tmp and /var will be erased after rebooting the device. Other directories are in the flash and will remain after reboot.
6.4 Package maintenance system NNIONGIN uses the OpenWrt OPKG package maintenance system. There are more than 3000+ packages available in our package server for users to install for their applications. For example, if you want to add the iperf tool, you can install the related packages and configure NNIONGIN to use iperf . Below are some example opkg commands. For more information please refer to the OPKG package maintain system (https://wiki.openwrt.
7 Upgrade Linux Firmware We keep improving the NNIONGIN Linux side firmware for new features and bug fixes. The file named as xxxxx–xxxxx-squashfs-sysupgrade.bin is the upgrade Image. There are different methods to upgrade, as below. 7.1 Upgrade via Web UI Go to the page: Web → System → Firmware Upgrade Select the required image and click Flash Image. The image will be uploaded to the device, and then click Process Update to upgrade.
8 8.1 FAQ Can I make my own firmware for the gateway, Where can I find the source code? Yes, You can make your own firmware for the NNIONGIN for branding purposes or to add customized applications. 8.2 Can I use 868Mhz version for 915Mhz bands? It is possible but the distance will be very short, you can select US915 frequency band in 868Mhz version hardware.
9.2 I configured NNIONGIN for WiFi access and lost its IP. What to do now? The NNIONGIN has a fall-back IP address on its WAN port. This IP is always enabled so you can use the fall-back IP to access NNIONGIN no matter what the WiFi IP is. The fall back IP is useful for connecting and debug the unit. (Note: fallback IP can be disabled in the WAN and DHCP page) Steps to connect via fall back IP: 1. Connect PC’s Ethernet port to LG01’s WAN port 2. Configure PC’s Ethernet port has IP: 172.31.255.
9.3 I connect to the NNIONGIN’s SSID but NNIONGIN didn’t assign DHCP IP to my laptop? This is a known bug for the firmware version before 2019-09-23 for LPS, the issue was fixed since version: LG02_LG08--build-v5.2.1569218466-20190923-1402. In the old version, user can use the fall back ip method to access and configure the device. 10 Order Info PART: NNIONGIN-XXX-YYY: XXX: Frequency Band ➢ 868: valid frequency: 863Mhz ~ 870Mhz. for bands EU868, RU864, IN865 or KZ865.
12 FCC Warning This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications.
13 Fiber Glass Antenna Installation Steps Fiber Glass Antenna Installation Steps as below: Step 1: Prepare the Accessories. Step 2: Loosen the screws in Figure 1, then put the antenna into the slot and tighten the screws as shown in Figure 2.
Step 3: Fix the above figure 2 to the bracket as shown in the following figure.