introducing the fluksokube · 24/04/2014  · introducing the fluksokube [email protected]...

16
EC1404 Introducing the FluksoKube [email protected]

Upload: others

Post on 17-Jun-2020

16 views

Category:

Documents


0 download

TRANSCRIPT

Page 2: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_HELLO_WORLD!

Page 3: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_UNDRESSED

Page 4: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_CLOTHING

Page 5: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_INTERNALS

• ARM Cortex M0+

• movement detection

• ambient light

• temperature

• humidity

• barometer

• accelerometer

Page 6: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_STETHOSCOPE

Page 7: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_KUBE_IN_ACTION

Page 8: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

EC1404

The Fluksometer as a Telemetry Hub

[email protected]

Page 9: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_FLUKSOMETER_2B

Page 10: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_CURRENT_ARCHITECTURE

sensor RS-485sensor

MySQLJSON/REST

wired

Flukso web platform

Sensor Board v2.2

OpenWRT AA

Flukso daemon

Atheros AR2317 802.11b/g + MIPS

Fluksometer v2

RRDTool

SPI

HTTPS

Webmachine JSON/REST API

Nginx

Drupal GUI

...

PHP-FPM*

* FastCGI Process Manager

Page 11: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_FUTURE_ARCHITECTURE

sensorTTL serialactuator

wired

Sensor Board v2.2

OpenWRT AA

Flukso daemon

Atheros AR2317 802.11b/g + MIPS

Fluksometer v2

SPI

...

JSON/MQTT(S)

sensor

sensor

...

actuator

RFM12wireless

?

Page 12: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

• pairing with Fluksometer + auto-provisioning of sensors

• over-the-air firmware upgrades

• packet descriptions in JSON format

• kubed packet decoding/encoding based on packet description

• sensor readings published to embedded MQTT broker (Mosquitto) on FLM

_FLM_AS_A_TELEMETRY_HUB

Page 13: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_PACKET_DECODING

spidev0.1

spid

flukso.kube.packet.rx/tx

kubed

ubus

Mosquitto MQTT broker

netifd

netlink

kernel

...

JSON/MQTT

/sensor/fed676021dacaaf6a12a8dda7685be34/gauge [1398345834,21.4,"°C"]/sensor/527a737e3b5959d25ad4bb9ff4e32b36/gauge [1398322987,101030,”Pa"]

ubus send flukso.kube.packet.rx '{"hex": "d410048b540f01d259"}'

Page 14: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_KUBED_STATE_MACHINE

Page 15: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

_PACKET_DESCRIPTION

1 { 2 "513": { 3 "description": "Roomnode", 4 "controller": "Atmega328p", 5 "radio": "RFM12B", 6 "1" : { 7 "decode": { 8 "type_bits": 0, 9 "4": "< light:u1 [1| humidity:u7 motion:b1] [2| x5 low_battery:b1 temperature:i10]",10 "sensors": {11 "light": {12 "unit": "",13 "data_type": "gauge"14 },15 "humidity": {16 "unit": "%",17 "data_type": "gauge"18 },19 "motion": {20 "unit": "",21 "data_type": "gauge"22 },23 "low_battery": {24 "unit": "",25 "data_type": "gauge"26 },27 "temperature": {28 "scale": "x/10",29 "unit": "°C",30 "data_type": "gauge"31 }32 }33 },34 "encode": {35 }36 }37 },38 }

Page 16: Introducing the FluksoKube · 24/04/2014  · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker

• repo: https://github.com/flukso/kube

• forum: www.flukso.net/forum

• dev mailing list: [email protected]

• freenode: #flukso

_JOIN?