git clone https://@opensourceprojects.eu/git/p/c2net/dcf/iot-hub/iot-hub-2/code c2net-dcf-iot-hub-iot-hub-2-code



File Date Author Commit
scrapper 2017-12-11 psimoes psimoes [3245f7] updated
src 2018-02-21 Carlos Lopes Carlos Lopes [58107c] Fixed failing Number conversion.
tables 2017-12-11 psimoes psimoes [3245f7] updated
.gitignore 2017-03-17 pedro pedro [b72156] Merge branch 'stable' into 'master'
README.md 2017-12-11 psimoes psimoes [778169] main readme updated
compile_run.sh 2017-12-11 psimoes psimoes [3245f7] updated
install.sh 2017-12-11 psimoes psimoes [3245f7] updated
pom.xml 2017-12-11 psimoes psimoes [3245f7] updated
setEnv.sh 2018-02-07 Carlos Lopes Carlos Lopes [a4030d] Switched to relative paths.
setEnvPedro.sh 2017-12-11 psimoes psimoes [3245f7] updated

Read Me

IoT Hub - UNINOVA

Table of contents

Hardware Requirements

Minimum specs

  • CPU speed 700MHz
  • RAM 512MB
  • ROM 8G

Initial Notes

The IoT Hub can be used under any Linux distro but the SETUP installers where written to an Debian based system. So if you use other distro, please see the prerequisites under "How to install System"

Description

The IoT Hub is composed five packages described bellow:

  • Communication => DataPoster provides outputschema communication (collected values) between the IoT Hub and C2NeT RM component using SocketIOConnector. SocketIOListener provides communication between C2NeT RM component and IoT Hub regarding the sensors configuration.

  • Controller => DeviceManagement is responsible for init communication Sockets, start the implemented DataListenersChannels defined in configs.xml file, start sensor data collection as provided by the C2NeT RM component. FileChangeWatcher handles I/0 to config files

  • DataListener => DataListenersChannels for the following protocols: Zigbee, Wifi, Serial, Can-Bus

  • Models => models to directly manage the data, logic, and rules of the application

  • Utils => useful objects that don't fit any of the above categories

How install System

Before starting up the system, in order to run correctly, the IoT Hub needs to have dependencies installed as well as some initial configuration files.

To install dependencies:

 execute install.sh with super user privileges

In case install.sh fails for some reason, install the following prerequisites:

Java8, Maven, Rxtx, Xbee and Git

and then on the project directory do:

 sudo mvn clean package

Important Note: if your hub is installed in an Minimum Hardware Requirents enviroment, we strongly recommend you to compile the project outside of the hub and then transfer the generated jar to your hub. the jar should be placed inside target directory in the project main folder.

How start the system:

go to /opt/c2net-iot-hub/Resources/configs.xml . verifify that at least one of the CommunicationListner is present.

 run setEnv.sh as superuser.