In context of my daily
operation concerning my start-up the ECF framework is one
central player for the Internet of Things (IoT). Therefore,
I would like to deal with following scenario:
There is a local network
with one central (DSL)Router with DNS server. Furthermore,
there is a central OSGI environment working as server. This
server is responsible for device management in the network.
A device is another machine on which also an OSGI
environment is running. The server and the devices should
automatically configure themselves in the network. So if a
device is gone the server is aware of that and the other way
round. So if the server comes online all services by the
devices will be published to server automatically.
To do so I would like to
show the whole project creation in ZooDiscovery/Generic
configuration. I would like to show how to start with ECF
and how to resolve necessary dependencies for configurations
wanted. Furthermore, I would like to show the centralized
mode of this configuration with an IP-Broadcaster. Another
thing I would like to show is the machine configuration for
using ECF. So especially IP settings (DNS should be used)
for Unix and Windows system should be covered and a Util
class for atomically handling OS settings on the device
should be proposed. Next step would be the configuration of
maven and the bundler plugin and the creation of standalone
environment of the device and the server (system variables,
folders…). So I would like to show how to build a new
project form the beginning until the end with use of the
example above. For detailed information on every step links
to sources which helped me will be placed. All in all, there
will be 3 bundles created for that example: DeviceServer,
Dervice, DeviceAPI!