s c i n e t charalampos z. patrikakis athanasios delikaris stefanos kalantzis

18
C I N E Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

Upload: alexis-kenning

Post on 30-Mar-2015

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

S C I N E TCharalampos Z. Patrikakis

Athanasios DelikarisStefanos Kalantzis

Page 2: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos 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

Page 3: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

SCAINETTriad

Base Agent

Fusion AgentGateway Agent

Control AgentsThe basic elements

Triad minisyste

mSCAINET ecosyste

m

Page 4: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

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

Page 5: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

• 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

Page 6: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

• 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

Page 7: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

• 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

Page 8: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

• 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

Page 9: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

How control agents work

Senses(from the device)

Reports(to SCAINET minisystem)

Understands(from SCAINET minisystem)

Does(to the device)

Page 10: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

Control agent flavors

Device agent

Sensor agent

DeVirtual agent

Command agent

OntoLogic agent

Page 11: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

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

Page 12: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

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

Page 13: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

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)

Page 14: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

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

Page 15: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

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

Page 16: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

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)

Page 17: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

• 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

Page 18: S C I N E T Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis

• Contact us at:

[email protected]

• http://networklab.teipir.gr/SCAINET

• SC NET API: • http://networklab.teipir.gr/SCAINET/API

Join SC INET