Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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 TypeThingsProtocolGridZone
    Intel ADVANTECHAmbient Light SensorXbee/Serial 
    Intel ADVANTECHSoil SensorXbee/Serial 
    Intel ADVANTECHLightXbee/IP 
    Intel ADVANTECHIrrigation Nozzle (Selonoid)Xbee/Serial  
    Intel ADVANTECHTemperature SensorXbee/Serial 
    Intel ADVANTECHHumidity SensorXbee/Serial 
    Raspberry Pi - 3CameraUCAM/Serial 
    TQLEngineHeater- Simulated
    Intel ADVANTECHIrrigation MotorPHID/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

    Image Added

Cluster Definition

  • Same

    Model

    Network definition in all the nodes participating in the cluster.

    Code Block
    languagexml
    themeEmacs
    titleCreate Network FacetInstance
    linenumberstrue
    collapsetrue
    <!-- 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
    languagexml
    themeEmacs
    titleAttach Network Facet to TQL Facet
    linenumberstrue
    collapsetrue
    <!-- 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>