SMART HOME OVER IRC HAVING A CHAT WITH YOUR TOASTER 1 Motivation - - PowerPoint PPT Presentation

smart home over irc
SMART_READER_LITE
LIVE PREVIEW

SMART HOME OVER IRC HAVING A CHAT WITH YOUR TOASTER 1 Motivation - - PowerPoint PPT Presentation

create your own exercise Joshua Koutny, Simon Anlauff | Team 204 SMART HOME OVER IRC HAVING A CHAT WITH YOUR TOASTER 1 Motivation In this Lab you will Create your own Smart Space Connect devices over a chat protocol Message


slide-1
SLIDE 1

create your own exercise

Joshua Koutny, Simon Anlauff | Team 204

1

SMART HOME OVER IRC

HAVING A CHAT WITH YOUR TOASTER

slide-2
SLIDE 2

Motivation

  • In this Lab you will…

– Create your own Smart Space – Connect devices over a chat protocol – Message your devices – Customize the messaging to suit your needs

2

slide-3
SLIDE 3

Motivation

3

slide-4
SLIDE 4

Learning Goals

4

The Following Learning Goals are Covered in the Lecture PreLab Lab Learn about IRC’s background and applications X X Know the (dis-)advantages of IRC in Smart Spaces X X Understand the IRC command and message format X X X Set up simple IRC servers, clients and bots X X Implement setting profiles for smart spaces X

slide-5
SLIDE 5
  • First public servers in 1990
  • RFC 1459 published in May 1993
  • Decreasing in popularity since 2003

5

Internet Relay Chat

slide-6
SLIDE 6

6

IRC Server Channel Channel Channel User User User User Bot chat.freenode.net:6667 #general bob93 (bob@69.89.31.226) IRC Network freenode

slide-7
SLIDE 7

Internet Relay Chat (II)

  • Application Layer Protocol
  • Usually runs on TCP port 6667
  • Plain text based
  • Client-Server model

7

slide-8
SLIDE 8

Internet Relay Chat (III)

  • USER <user> <mode> <unused> <realname>
  • NICK <nickname>
  • JOIN / PART <channel>
  • PRIVMSG <channel|user>
  • PING / PONG

8

slide-9
SLIDE 9

> telnet localhost 6667 USER bob 0 * :Bob NICK bob93 JOIN #general PRIVMSG #general :Hello there!

9

slide-10
SLIDE 10

Home Automation

  • Cooperative Smart devices

Lighting/Climate/Security…

  • Connected over a Communication Bus
  • Users can interface via a central hub

10

slide-11
SLIDE 11

Smart Home Chatrooms

  • IRC Server on a Local Network
  • Every device runs an IRC client (Bot)
  • Bots listen on their assigned channels
  • Users can interact using existing client software

11

slide-12
SLIDE 12

Is this a good idea?

  • IRC was not designed for use in IoT
  • Integration into existing infrastructure

– IoT devices as bots in an IRC channel

  • Bridging to other IoT software

12

slide-13
SLIDE 13

The PreLab

  • Further exploring the Protocol

– Operators, Services – Security aspects

  • Setting the scene

– Story arc of the lab

  • Introducing used Tools

– IRC server and bot scripts – Available clients for users

13

slide-14
SLIDE 14

The Lab

  • Launching the IRC Server
  • Manually connecting to the server

– Visual client – telnet

  • Chatting to a physical smart device (Arduino)
  • Building up a #smartchat with several features

14

slide-15
SLIDE 15

IRC Server, Bots IRC Client, Bots Smart Device PC 1

eth0: fec0::1/8, 10.0.0.1/8

PC 2

10.0.0.2/8

PC 4

eth0: fec0::4/8