Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
{{InfoBoxTop}}
{{AppliesToSBCSPG}}
{{AppliesTo SBC Lynx TN}}
{{AppliesToIoT}}
{{AppliesTo IoT TN}}
{{InfoBoxBottom}}
{{WarningMessage|text=This technical note was validated against specific versions of hardware and software. It may not work with other versions.}}
==Introduction==
[[MISC-TN-005: Running AWS Greengrass Core on SBCSPG_Running_AWS_Greengrass_Core_on_SBCSPG|This]] and [[SBCX-TN-003: Deploying modules to Azure IoT Edge_Deploying_modules_to_Azure_IoT_Edge-enabled SBCX with Visual Studio Codeenabled_SBCX_with_Visual_Studio_Code|this]] Technical Note show how to connect two different DAVE Embedded Systems products to famous IoT cloud platforms, Amazon AWS and Microsoft Azure, respectively.
MISC-TN-006 will show instead how to implement an Industrial IoT system by following a different approach. In this case, we will be using open-source software stacks both on the edge device and on the cloud platformwill be used. This choice is extremely flexible and allows making use of implementing on-premise cloud infrastructure as well.
Specifically, on the edge device—the SBCSPG industrial gateway—[https://www.eclipse.org/kura/ Eclipse Kura™] 4.1.0 framework will be installed. On the cloud side, [https://www.eclipse.org/kapua/ Eclipse Kapua™] 1.0.7 modular platform will be used.
==Setting up the cloud platform==
For the sake of simplicity, Kapua platform was installed on a desktop PC running Debian Stretch distribution. The procedure is described [http://www.opensourcerers.org/connecting-kura-to-kapua/ here] and it is quite straightforward, as it is based on the use of a Docker container.The following log shows how to start Kapua:  <pre class="board-terminal">sysadmin@linuxbox:~/devel/kapua/kapua/deployment/docker/unix$ ./docker-deploy.shDeploying Eclipse Kapua...compose_events-broker_1 is up-to-datecompose_es_1 is up-to-dateStarting compose_db_1 ... doneStarting compose_broker_1 ... doneStarting compose_kapua-console_1 ... doneStarting compose_kapua-api_1 ... doneDeploying Eclipse Kapua... DONE!Run "docker-compose -f /home/sysadmin/devel/kapua/kapua/deployment/docker/unix/../compose/docker-compose.yml logs -f" for container logs</pre>
==Configuring the edge device==
The installation procedure of Kura framework on the edge device is pretty straightforward as well. Again, please refer to [http://www.opensourcerers.org/connecting-kura-to-kapua/ this document] for more details. In this example, the ''Device Display-Name'' field was customized as follows:
[[File:TBDKura-device-display-name.png|thumb|center|600px|Connection to Kapua platformCustomization of the ''Device Display-Name'' field]] 
[[File:TBDKura-cloud-connection.png|thumb|center|600px|Connection to Kapua platform]] 
[[File:TBDKapua-device-connection.png|thumb|center|600px|Connection to the device]]
==Running a simple demo==
[[File:TBDKura-publisher.png|thumb|center|600px|TBDConfiguration of the publisher]] 
[[File:TBDKura-publisher-example-application.png|thumb|center|600px|TBDConfiguration of the example publisher application]] 
2019-09-10T11:20:39,047 [pool-18-thread-1] INFO o.e.k.e.p.ExamplePublisher - Published to message: org.eclipse.kura.cloudconnection.message.KuraMessage@15edb4a with ID: null
</pre>
 
[[File:TBD.png|thumb|center|600px|TBD]]  [[File:TBDKapua-received-data.png|thumb|center|600px|TBDReceived data on Kapua platform side]] ==Useful links==*http://www.opensourcerers.org/connecting-kura-to-kapua/*https://eclipse.github.io/kura/cloud-api/2-user-guide.html
dave_user, Administrators
5,190
edits