Page 2
The use of the product is at sole discretion of the user. Decode cannot be held responsible for any damages arising due to use of this product and makes no warranty, representation or guarantee regarding the suitability of the products for any particular purpose or the continuing production of any product.
4.1.1 Access over USB Debug port..................15 4.1.2 Access over SSH........................17 4.2 Basic commands........................18 4.2.1 Checking network parameters..................19 4.2.2 Adjusting the Linux time....................19 4.2.3 Save Linux time in RTC....................19 4.2.4 Check RTC time.........................19 4.2.5 Check installed TTY ports....................19 4.2.6 Stop DG100 program.......................19 4.2.7 Reboot..........................20...
Page 4
User's Manual DG100 IoT Gateway 4.2.8 Changing network settings.....................20 5 Web user interface....................22 5.1 Console............................24 5.2 Bundle management.......................25 5.2.1 View bundles info......................25 5.2.2 Starting, stopping, upgrading and uninstalling bundles..........26 5.2.3 Installing new bundles.....................26 5.3 System Information.........................27 5.4 Settings............................28 5.5 Sensors & Devices........................29 5.6 Playground..........................30...
User's Manual DG100 IoT Gateway Preface Preface 1.1 Symbols WARNING – Safety notice, which must be followed, may have influence on the user’s safety or the function of the device. IMPORTANT – Notice, which must be followed to avoid possible problems, which can arise in specific cases.
User's Manual DG100 IoT Gateway Preface 1.3 Document versions Document Date Note version v1.0 16/10/2020 First release v1.1 26/10/2020 Typo correction and correction of serial port names in 3.1.1 section www.decode.rs 6/31...
Overview Overview DECODE DG100 IoT Gateway is a compact and efficient Multi-service IoT Edge Gateway for home, office and industrial applications. Powered by NXP i.MX6 CPU at 400MHz, with 256MB of SDRAM memory and 4GB of eMMC, it offers great performance for great variety of next generation solutions.
Modbus, MQTT, BtLE, GNSS or SensorTag. Built-in web server provides UI for device management and parameterization. The DG100 enclosure is made of durable ABS plastic for desktop or wall mounting in home, office or industrial environment. The side and top panels features connectors for power supply, USB, Ethernet and serial communication, push buttons as well as LED indicators.
User's Manual DG100 IoT Gateway Device Description 3.1 External connectors On the front side panel there are connectors for a power supply and communication interfaces. Fig. 2: External connectors on front side panel 3.1.1 Serial1 and Serial2 These two RJ45 connectors have same pinout and function. They serve as RS232 and RS485 interfaces for i.MX6ULL UARTs.
3.1.3 USB Device connector USB Device is microAB connector type serving as device type. It is used for Linux Bootloader recovery. For further information please contact Decode. 3.1.4 USB Host connector USB Host is type A connector serving as host type. It is used as standard Linux Host USB with 500mA power supply capacity.
This expansion have up to 5V/2A sourcing capability and can be used for GSM/GPRS/3G/LTE and BT/BLE click boards from Mikroelektronika. Also GPS/GNSS and sub -1GHz transceivers click boards with UART interface can be easily connected to DG100. For compatibility and support please contact Decode.
There are two push buttons on the back side panel. Short press on Reset button performs hard reset of device, equivalent to power cycling. User button is used for as Linux gpio84 input found in /sys/class/gpio/. For further information please contact Decode. Fig. 5: Push buttons on back side plate 3.3.2 LED indicators...
User's Manual DG100 IoT Gateway Device Description 3.4 Wall or plate mounting Wall or plate mounting can be realized with two 3mm screws separated by 80mm. Screew head must be approx. 7mm in diameter, and when fastened, head must be 4mm away from the wall or plate.
User's Manual DG100 IoT Gateway Operation description Operation description DG100 gateway may be accessed over several interfaces, but in common use two of them are typical: "Command line" on USB Debug COM port or using SSH protocol over TCP network and web user interface using HTTP access over TCP network.
Page 16
Power on device by connecting power supply. Fig. 10: DG100 is booting Device starts booting and after aproximately 30 seconds DG100 is operational. User may see booting process in terminal window. To use web user interface connect DG100 to LAN network with RJ45 patch cable and go directly to 5 Web interface section.
User's Manual DG100 IoT Gateway Operation description 4.1.2 Access over SSH To access DG100 device using "Command line", in local network or remotely, SSH protocol is used. Fig. 11: SSH connection Enter the default IP address and default port 22 and click Open button. Login parameters are root for username and root for password.
4.2 Basic commands Press Enter on a computer keyboard and type root for username and root for password when asked. Press press Enter to confirm each entry. Welcome to DECODE Gateway DG100 ! decode login: root Password: root Fig. 13: Network parameters www.decode.rs...
MMIO 0x21f4000 (irq = 54, base_baud = 5000000) is a IMX 4.2.6 Stop DG100 program DG100 program is started as a process. To stop it, first of all process number must be found. # ps Response contains a list of all processes. Find lines with two DG100 processes and memorize its numbers.
Reboot can be done also by power cycling or pressing Reset button, but this method is recommended and more secure. 4.2.8 Changing network settings To change network settings, first stop DG100 program and start nano editor to edit configuration file. # nano /etc/network/interfaces Fig.
Page 21
User's Manual DG100 IoT Gateway Operation description To exit editor click Ctrl+X buttons on keyboard and then restart LAN by issuing following commands: # ifdown eth0 # ifup eth0 Rebooting device also makes changes active. Be aware that when changing the network settings always remember last working parameter settings.
User's Manual DG100 IoT Gateway Web user interface Web user interface Web user interface is implemented using built-in web server. It is accessed via a web browser by entering the device IP address in browser address bar. Default IP address is 192.168.0.1 and server default port is 80.
Page 23
Fig. 17: Bundle Life Cycle Management For every bundle that is found on DG100 the initial state is installed. Once all bundles have been found, OSP tries to resolve each bundle. Resolving a bundle means checking whether all required bundles of a bundle are available.
User's Manual DG100 IoT Gateway Web user interface 5.1 Console By clicking on Console icon "Console" program is started. Fig. 18: Console App icon "Console" application provides a way for the applications to output text-based messages to the user. Every line in console starts with timestamp and holds other useful informations such as message type and application name.
User's Manual DG100 IoT Gateway Web user interface 5.2 Bundle management By clicking on Bundles icon, "Bundles" program is started. Several operation on bundles may be performed using this program: starting, stoping, installation, uninstalling, upgrading and viewing information. Fig. 20: Bundles App icon 5.2.1 View bundles info...
User's Manual DG100 IoT Gateway Web user interface 5.2.2 Starting, stopping, upgrading and uninstalling bundles Click on specific bundle name opens more detailed bundle information with additional controls. Active bundles can be stopped, resolved bundles can be started, upgraded or uninstalled by clicking to coresponding icons.
5.3 System Information By clicking on System Information icon "System Information" program is started. Fig. 23: System Information App icon This application provides many useful informations about DG100 device, operating system and memory resources. Fig. 24: System Information Navigation is possible using tabs System Information, Processes and Memory Usage.
User's Manual DG100 IoT Gateway Web user interface 5.4 Settings By clicking on Settings icon, "Settings" program is started. Fig. 25: Settings App icon It provides a user interface for macchina.io properties configuration in a form of editable tree view structure.
User's Manual DG100 IoT Gateway Web user interface 5.5 Sensors & Devices By clicking on Sensors & Devices icon "Sensors & Devices" program is started. Fig. 27: Sensors & Devices App icon It provides a overview of all sensors and devices registered in OSP Service Registry with physical quantities automatically updated at one second interval.
In general, all JavaScript code executed within DG100 must be contained in bundles. There are different ways to create a bundle and deploy it into a DG100 server. The easiest way is to use the Playground app in the web user interface by clicking on Playground icon.
Already started bundle can be Restarted or Stopped by clicking to respective icon. DG100 is based on OSP (Open Service Platform) and Service Registry enabling user to write JavaScript applications that use a services provided by other bundles. A JavaScript program can discover a certain service by using a simple query language to query the Service Registry for a service with certain properties.
5.6.2 Saving JavaScript program To Save the content of JavaScript editor on the filesystem, click on Save. Saved content will not be lost after DG100 power down. 5.6.3 Exporting JavaScript program to bundle The Playground can also be used to pack JavaScript program to bundle and download a complete bundle containing the script.
Decode office or return it to Decode. Contact Please contact a Decode office if you have any questions regarding the information contained in this manual or Decode products, or if you have any other inquiries.
Need help?
Do you have a question about the DG100 and is the answer not in the manual?
Questions and answers