180 likes | 320 Views
S C I N E T. Charalampos Z. Patrikakis Athanasios Delikaris Stefanos Kalantzis. What is SC INET?. Complex scenarios over collaborative logic. A “ social network” of humans & devices. Ecosystem of collaborative agents. Self-organizing. Easy to program logic. The basic elements.
E N D
S C I N E T Charalampos Z. Patrikakis AthanasiosDelikaris Stefanos Kalantzis
What is SC INET? Complex scenarios over collaborative logic A “social network” of humans & devices Ecosystem of collaborative agents Self-organizing Easy to program logic
The basic elements Control Agents • Base Agent Triad minisystem SCAINET Triad SCAINET ecosystem Gateway Agent Fusion Agent
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
Base gent • 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
Fusion 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
Gateway 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
Control 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
How control agents work Senses (from the device) Does (to the device) Understands (from SCAINET minisystem) Reports (to SCAINET minisystem)
Control agent flavors Device agent DeVirtual agent OntoLogic agent Sensor agent Command agent
A use case example • Understands • Turn on • Turn off • Senses • Open • Close • Key-Lock • Key-Unlock • Does • Turn on • Turn off • Understands • Light • Dark • Does • Open • Close • Lock • Unlock • Understands • Open • Close • Lock • Unlock IF Light @ here THEN Turn on ----------------IF Turn on THEN Turned on ---------------- IF Dark @ here THEN Turn off ---------------- . . . • Reports • Turned on • Turned off IF Open THEN Open ---------------- IF Open THEN Open ---------------- . . . • Reports • Opened • Closed • Locked • Unlocked Opened #12:22 Closed #23:11 Light @ living room # 23:12 IF door Opened THEN NEED Light @living room Rule 1 Rule 2 Rule 3 . . . Rule n
Why stay at home? Droplet log -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
A word on implementation Agent Southbound Link Hardware Link Agent Middleware Agent Norththbound Link Scainet Messages (droplets) Message Bus Raspberry Pi, Home OS, electric IMP, etc CAN BUS, Serial,Z-wave, etc HTTP, TCP, UDP, FTP
Implementing SC INET • Running on OpenStack: • Virtualizedhardware (openstack-nova // amazon-EC2) • Virtualizednetworking (openstack-neutron // amazonVPC) • Virtualizedstorage (openstack-swift // amazon-S3) • Abletorunautomatedtaskslikeprocessing, storage and bandwidthtuning, based on demand • Selfhosted and OpenSource
Implementing SC INET Message bus • Trafficfromagentmiddlewarecomesfrom the internet • The edgerouterforwardsitto the SCAINETAgentRouterVMs, acting asa MessageBus and authenticationgateway • SCAINETVMstakemessagesfrom the bus and processthem
Syntax Reserved i.e. 10:23 AgentName: [Intention] action(val), [INlocation], [ATtime], [AND(attr:value)] Living room, Kitchen Bathroom Turn on Light Heat (100 oF) Start NEED WILL Door: Open, IN Living room Boiler: WILLTurn on AT 10:30 EnergySaver: Dark () Housekeeper: Heat (Water)
SC INET API • Create/RemoveTriad • Create/RemoveControlAgents • Add/Edit/RemoveControlAgentInputs • Add/Edit/RemoveProgrammingAgentRules • Add/RemoveExternalAgentConnections • ReadSocialboardfromallAgents • Readlist of inputs/outputs in a Triad • Readlatest status of Agents in a Triad
Join SC INET • Contact us at: • bpatr@teipir.gr • http://networklab.teipir.gr/SCAINET • SC NET API: • http://networklab.teipir.gr/SCAINET/API