Webinterface Demo on DIMM-MX6

Adding network capabilities and especially a simple Webinterface is a great enhancement to the user-experience of headless embedded devices. This blog will present a simple Webinterface mainly build using Python-components.

Connecting to the Device

The device uses DHCP to obtain a IP address. If there is no DHCP-Server available a Link-Local address (address block 169.254.1.0 through 169.254.254.255) will be claimed automatically. This behaviour grants correct functionality if the device is directly connected to a computer.

To be able to connect to the device without guessing its actual IP address, the device uses UPnP to publish the Webinterface.  The device will show up in the network section in the Windows Explorer.

Available Interfaces

GPIO

The webinterface uses ADA-Verno-GPIO that provides three push buttons and three additional LEDs connected to the boards GPIOs. The state of the LEDs can easily be toggled using the GPIO-Page. Also the state of the buttons is displayed on this page. If the state of a button changes the device emits an event and the page will automatically be updated to reflect the new condition.

I²C

This page allows to scan for connected I²C-Slaves on I²C-Bus 2.

Systemmonitor

This page provides time dependent graphs of the system load, core temperature, memory usage and network traffic. All graphs are continuously updated.



Back