introducing the fluksokube · 24/04/2014 · introducing the fluksokube [email protected]...
TRANSCRIPT
![Page 1: Introducing the FluksoKube · 24/04/2014 · Introducing the FluksoKube bart@flukso.net _HELLO_WORLD! _UNDRESSED. _CLOTHING. ... • sensor readings published to embedded MQTT broker](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/1.jpg)
EC1404
Introducing the FluksoKube
![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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/2.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/3.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/4.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/5.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/6.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/7.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/8.jpg)
EC1404
The Fluksometer as a Telemetry Hub
![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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/9.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/10.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/11.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/12.jpg)
• 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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/13.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/14.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/15.jpg)
_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](https://reader033.vdocuments.us/reader033/viewer/2022060300/5f08237c7e708231d42087b2/html5/thumbnails/16.jpg)
• repo: https://github.com/flukso/kube
• forum: www.flukso.net/forum
• dev mailing list: [email protected]
• freenode: #flukso
_JOIN?