Categoria: OpenDevice

Alexa + ESP8266 + OpenDevice

With Amazon Echo you can control your devices through voice commands. In this tutorial we will use an ESP8266, making Alexa recognize it with a compatible device, and with no configuration (incredible no?!?!).

Selection_368

For this we will use the OpenDevice library and enable the option to emulate a protocol compatible with Alexa.

The additional advantage to other similar tutorials is that we have all the benefits of OpenDevice, can connect via MQTT or receive commands via TCP

Setup:

Download and Install library: https://github.com/OpenDevice/opendevice-lib-arduino
You can all install using Arduino Library Manager.

Config:

Edit: OpenDevice/src/config.h
And uncomment  the line: #define ENABLE_ALEXA_PROTOCOL 1

Import this Sample (provided in library):
https://github.com/OpenDevice/opendevice-lib-arduino/tree/master/examples/Alexa4OpenDevice

Configure Wifi SSID and PASSWORD
NOTE: ODEV_API_KEY, is optional, only if you need integrate with OpenDevice Server

Upload and you must see in terminal:

Selection_369

Now Speak: Alexa, discover the devices
In the end, she should say that she found two devices.
Now you can talk: Alexa, turn ON the TV

This approach exposes some security issues (even disabling discovery). In a next step I will implement an Alexa Skill, which integrates with OpenDevice on the cloud (https), if you are interested, please contact me.

Anúncios

Que tal Hackear seu carro e plugá-lo na nuvem ?! (TDC/2017 SP)

Segue aqui os slides e vídeos da palestra.

Resumo:

Nessa palestra irei apresentar como você poderá acessar o computador de bordo do seu carro e coletar informações em tempo real, realizar detecção de falhas, e como enviar esses dados para nuvem para realizar análises. Você irá se surpreender em quais carros é possível fazer isso !!

Vídeo de demonstração do APP

 

Vídeo de demonstração do APP e Hacking do sensor de estacionamento.

 

Fontes:

Demo App (Andoird): https://github.com/OpenDevice/opendevice-examples/tree/master/IoTCar

Firmware (arduino) : https://github.com/OpenDevice/opendevice-examples/tree/master/IoTCar/firmware

OBD2 protocoll extension: https://github.com/OpenDevice/opendevice-extensions/tree/master/obd-connection