...
- The gateway selected for the Greenhouse setup is ADVANTECH UTX-3115 sold by Intel
Operating System: Running Wind River Linux [Linux WR-IDP-689C 3.14.56_IDP-XT_3.1-WR7.0.0.11_idp]. - This gateway represents 1 zone and 1 Grid
How things are connected to Gateways
Gateway Type Things Protocol Grid Zone Intel ADVANTECH Ambient Light Sensor Xbee/Serial Intel ADVANTECH Soil Sensor Xbee/Serial Intel ADVANTECH Light Xbee/IP Intel ADVANTECH Irrigation Nozzle (Selonoid) Xbee/Serial Intel ADVANTECH Temperature Sensor Xbee/Serial Intel ADVANTECH Humidity Sensor Xbee/Serial Raspberry Pi - 3 Camera UCAM/Serial TQLEngine Heater - Simulated Intel ADVANTECH Irrigation Motor PHID/Serial
Cloud Setup (AWS)
- TQLEngine running in Private Subnet of VPC with Elastic IP Address
- Simply follow Download and install TQLEngine Steps.
- Import the Greenhouse Models
Cluster Definition
Same
ModelNetwork definition in all the nodes participating in the cluster.
Code Block language xml theme Emacs title Create Network FacetInstance linenumbers true collapse true <!-- Define Cluster / Network --> <NewFacetInstance fid="cluster" name="cluster" type="SffNetworkFacet"> <OnActivate> <Process> <Network> <Group name="GHCloudGroup" /> <TqlEngine name="Cloud" url="ws://ghsim.atomiton.com:8080/fid-cluster" group="GHCloudGroup" documentation="GH Cloud Summary Holder" /> <Group name="GHLiveGroup" /> <TqlEngine name="GHLive" url="ws://10.0.1.35:8080/fid-cluster" group="GHEdgeGroup" replicateTo="GHCloudGroup" documentation="Live Holder" /> </Network> </Process> </OnActivate> <OnOpen ModifyPipeline="WsServerExtensionArgs" /> </NewFacetInstance>
Attach the network facet to TQL Facet Type
Code Block language xml theme Emacs title Attach Network Facet to TQL Facet linenumbers true collapse true <!-- Attach Network Facet to TQL Facet --> <NewFacetInstance fid="[:RuntimeParams.FacetIDName:]" Name="TQL" Type="SffTqlFacet"> <OnActivate> <Include>[:GetProjectModelsMacro:]</Include> <Include>[:InstantiateModelMacro:]</Include> <NewFacetInstance name="tqlwf" type="SffWdlFacet" /> <TopicFacet>?TQLGenericTopic</TopicFacet> <NetworkFacet>?cluster</NetworkFacet> .... </NewFacetInstance>