Difference between revisions of "Cloud Configuration for the M2MBridge"

From AMTech WikiDocs
Jump to: navigation, search
(Cloud Configuration)
 
(41 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Cloud Configuration ==
+
*Create an amtechM2mBridge thing (Go to "/amtech/linkeddata/types/composite/entity/amtechM2mBridge")
*Create an amtechM2mBridge instance (See "/amtech/linkeddata/types/composite/entity/amtechM2mBridge")
+
**This thing name is assigned to '''templateId''' at bridgeConfig.json (See [[Edge_Configuration|Edge Configuration]])
**This instance name would be set to the templateId at bridgeConfig.json (See [[M2M Bridge#Edge Configuration|Edge Configuration]])
+
**Set the bridge production configuration by editing the template instance (See [[Observations_production_and_consumption|m2mBridge production
***When the bridge starts this thing instance and the instances link to bridgeInstances will be cloned.
+
configuration]])
* Create an actor actorX with the polices required by the activity(s) (See [[Access control#Actors|Actors]])
+
*** Add the Things types that produced observations (See [[Activities#Thing types|Thing types]])
** Add the things type polices the bridge needs to the actor actorX
+
**** Add the observations types from selected things type the m2mBridge will produce or consume (See [[Sensor's network#Observations and observation types|Observations and observation types]] [[Sensor%27s_network#CRUD_observation|CRUD observations]])
*Register a follower (See [[Access control#Actors|Roles]])
+
** Configure the topic that m2mBridge will listen for CRUD and command observations, CRUD and command topic must be unique to an user configuration.(See [[Activities#Observation production configuration|Observation production configuration]] [[Sensor's network#Topics|Topics]])
** Assign to follower actor actorX access
+
***When the bridge starts the m2mBridgw and the things linked to it by property '''bridgeInstances''' will be cloned and own by the user id assigned to the M2MBridge. (See [[Access control#Actors|Actors]])
*Activity observation configuration (See [[Activities#Observation production configuration|Observation production configuration]])
+
;This way of managing configuration ensures centralized management and auto-discovering. 
** Add the Things types the bridge will use (See [[Activities#Thing types|Thing types]])
+
* Create an actor actorX with [[Access_control#Policies|polices]] required by the bridge instances (See [[Access control#Actors|Actors]])
*** Add the observations types from selected thing type the bridge will produce or consume (See [[Sensor's network#Observations and observation types|Observations and observation types]] [[Sensor's network#Crud observation|CRUD observations]])
+
** Add the polices needs by the bridge configuration
** Configure the topic that m2mBridge will listen for crud and command observations has to matched with others things' observation production configuration linked to this m2mBridge configuration (See [[Activities#Observation production configuration|Observation production configuration]] [[Sensor's network#Topics|Topics]])
+
*Register a follower (See [[Access control#Roles|Roles]])
 +
** Assign to the follower actorX access
 
*Things instance creation
 
*Things instance creation
 
**Configuring autoDiscover (See [[M2M Bridge#Edge Configuration|Edge Configuration]])
 
**Configuring autoDiscover (See [[M2M Bridge#Edge Configuration|Edge Configuration]])
***The bridge will request the DAP to clone templateId instance with the name convention bridgeIdPrefix:(device mac address) from bridgeConfig.json
+
***The bridge will request the DAP to clone '''templateId''' instance with the name convention '''bridgeIdPrefix''':(device mac address) from bridgeConfig.json
***the things instances linked to the templateId property bridgeInstances will be cloned with the name convention bridgeIdPrefix:(device mac address):thing._name from bridgeConfig.json  
+
***The things linked to the templateId property '''bridgeInstances''' will be cloned with the name convention bridgeIdPrefix:(device mac address):thing._name from bridgeConfig.json  
***cloned instance will be giving the access control owner to the follower user id of the bridge that requested it.
+
***The cloned instance will be giving the access control owner to the follower user id of the M2MBridge.
 
*Monitoring M2MBridge status
 
*Monitoring M2MBridge status
**Create an SNMPDevice instance and give access to your M2MBridge actor (See "/amtech/linkeddata/types/composite/entity/SNMPDevice")
+
**Create an SNMPDevice and link it to M2MBridge thing property '''bridgeInstances''' (See "/amtech/linkeddata/types/composite/entity/SNMPDevice")
***Send observations to /m2mBridge/snmp/read a core activity /amtech/activities/monitorM2MBridgeStatus will analyze the data and notify to the user and guestusers of the M2MBridge instance.
+
***Configure [[Observations_production_and_consumption|m2mBridge production configuration]]
****This get done by setting at the observation production configuration /observationproductionconfig/SNMPDevice/observationsproducedconfig/snmpRead topic to value /m2mBridge/snmp/ (See [[Activities#Observation production configuration|Observation production configuration]])
+

Latest revision as of 15:06, 12 October 2016

  • Create an amtechM2mBridge thing (Go to "/amtech/linkeddata/types/composite/entity/amtechM2mBridge")
This way of managing configuration ensures centralized management and auto-discovering.
  • Create an actor actorX with polices required by the bridge instances (See Actors)
    • Add the polices needs by the bridge configuration
  • Register a follower (See Roles)
    • Assign to the follower actorX access
  • Things instance creation
    • Configuring autoDiscover (See Edge Configuration)
      • The bridge will request the DAP to clone templateId instance with the name convention bridgeIdPrefix:(device mac address) from bridgeConfig.json
      • The things linked to the templateId property bridgeInstances will be cloned with the name convention bridgeIdPrefix:(device mac address):thing._name from bridgeConfig.json
      • The cloned instance will be giving the access control owner to the follower user id of the M2MBridge.
  • Monitoring M2MBridge status
    • Create an SNMPDevice and link it to M2MBridge thing property bridgeInstances (See "/amtech/linkeddata/types/composite/entity/SNMPDevice")