S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis.
-
Upload
alexis-kenning -
Category
Documents
-
view
215 -
download
1
Transcript of S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis.
S C I N E TCharalampos Z. Patrikakis
Athanasios DelikarisStefanos Kalantzis
What is SC INET?
A “social network” of humans & devices
Complex scenarios over collaborative
logic
Ecosystem of collaborative
agents Self-organizing
Easy to program logic
SCAINETTriad
Base Agent
Fusion AgentGateway Agent
Control AgentsThe basic elements
Triad minisyste
mSCAINET ecosyste
m
SC NET Triad
• The SCAINET Triad consists of three basic agent elements:• The Base agent• The Gateway agent• The Fusion agent
• It is the core component of SCAINET, used to connect devices and humans in the context of a well defined (and scope-space limited) group
• It is also used for 2nd level (cross Triad) communication between agents
• Finally, it provides the entry point for logic fusion and agent programming
• Acts as a hub within each Triad, supporting the communication between agents
• Each new agent can:• Discover other agents• Announce its presence• Publish, Subscribe to information to/from
other agents through the Base agent
Base gent
• Responsible for fusion of logic into the system
• Provides two types of interfaces • A simple, If This, Then Need/Will Do That interface (suitable for simple users, and using a web front end)• An API for directly programming logic
into a Triad
Fusion gent
• Responsible for interconnecting Triad minisystems
• Acts as a gateway to the SCAINET ecosystem, able to:• Collect and introduce external information
and events to a Triad minisystem• Publish – export information from a Triad
minisystem to the SCAINET ecosystem
• Acts also as a tunneling point between Triads, allowing them to form links at a higher level than this of agents
Gateway gent
• Acts as the intermediate between a device and a Triad minisystem
• Contains:• Logic • List of needs (what agent understands)• List of (done) actions (what agent senses)• List of reports (what agent reports)• List of (do) actions (what agent/device does)
• Can even operate without a connected device
Control gent
How control agents work
Senses(from the device)
Reports(to SCAINET minisystem)
Understands(from SCAINET minisystem)
Does(to the device)
Control agent flavors
Device agent
Sensor agent
DeVirtual agent
Command agent
OntoLogic agent
A use case example
Does- Open- Close- Lock - Unlock
Senses- Open- Close- Key-Lock- Key-Unlock
Understands- Open- Close- Lock- Unlock
Reports- Opened- Closed- Locked- Unlocked
Does- Turn on- Turn off
Understands- Light- Dark
Reports- Turned on- Turned off
Understands- Turn on- Turn off
Opened #12:22Closed #23:11
IF door OpenedTHEN NEED Light @living room
IF OpenTHEN Open---------------- IF OpenTHEN Open---------------- . . .
IF Light @ hereTHEN Turn on----------------IF Turn onTHEN Turned on----------------IF Dark @ hereTHEN Turn off---------------- . . .
Light @ living room # 23:12
Rule 1Rule 2Rule 3. . .Rule n
Why stay at home?-Phone: Babis will go out tonight-Basketball: Game finished-Buttler: Need hot water-Boiler: Turned on-Car: Babis approaches home-Door : Opened-Boiler: Turned off-Buttler: Water OK for shower
Droplet log
A word on implementation
Hardware Link
CAN BUS, Serial,Z-wave,
etc
Agent Middleware
Raspberry Pi, Home
OS, electric IMP, etc
Agent Southbound
Link
Agent Norththbound
Link
HTTP, TCP, UDP, FTP
MessageBus
Scainet Messages (droplets)
Implementing SC INET
• Running on OpenStack:• Virtualized hardware (openstack-nova // amazon-EC2)• Virtualized networking (openstack-neutron // amazon VPC)• Virtualized storage (openstack-swift // amazon-S3)
• Able to run automated tasks like processing, storage and bandwidth tuning, based on demand
• Self hosted and Open Source
Implementing SC INET
• Traffic from agent middleware comes from the internet
• The edge router forwards it to the SCAINET Agent Router VMs, acting as a Message Bus and authentication gateway
• SCAINETVMs take messages from the bus and process them
Message bus
AgentName: [Intention] action(val), [IN location], [AT time], [AND (attr:value)]
Syntax
Reserved
i.e. 10:23
Living room,KitchenBathroom
Turn onLightHeat (100 oF)Start
NEEDWILL
Door: Open, IN Living roomBoiler: WILL Turn on AT 10:30EnergySaver: Dark ()Housekeeper: Heat (Water)
• Create/Remove Triad
• Create/Remove Control Agents• Add/Edit/Remove Control Agent Inputs
• Add/Edit/Remove Programming Agent Rules
• Add/Remove External Agent Connections
• Read Socialboard from all Agents
• Read list of inputs/outputs in a Triad
• Read latest status of Agents in a Triad
SC INET API
• Contact us at:
• http://networklab.teipir.gr/SCAINET
• SC NET API: • http://networklab.teipir.gr/SCAINET/API
Join SC INET