GithubHelp home page GithubHelp logo

arduino_wol_dyndns's Introduction

arduino-WOL

Ce programme permet d'allumer Un PC et ses périphériques depuis un appareil distant ou via un bouton grace au Wake-on-Lan (+ Secure On), et d'un signal radio.

La gestion radio se fait grace a des commutateurs electriques radio-commandé, qui emmettent sur la frequence 433Mhz. Cela permet par exemple d'allumer automatiquement écran, enceinte, etc.

Par exemple, si le pc a réveiller possède comme adresse mac 0x22,0x45,0x45,0xF8,0xE3,0x42, alors via un logiciel de réveil, on rentre les informations suivante :

  • Adresse MAC du PC a réveiller : 0x22,0x45,0x45,0xF8,0xE3,0x42
  • mot de passe pour réveiller le PC : 0x74,0x34,0xF4,0x45,0x5E,0x12 ( a placer dans le champs secureOn)
  • port a utiliser : 44596

Le reste des options sont a configurer directement dans le fichier arduino_WOL_dyndns.ino

A cela s'ajoute des information confidentiel, non synchroniser avec github, ecrite dans le fichier password.h.

contenu de password.h :

#define ADRESSE_WOL     0x22,0x45,0x45,0xF8,0xE3,0x42	// Adresse du PC a réveiller
#define PASSWORD_WOL 	0x74,0x34,0xF4,0x45,0x5E,0x12	// Password (a utiliser via apps SecureOn)
#define PORT_DISTANT_WOL		44596							// Port écouté par Arduino

Pour communiquer avec la Arduino, il y a 2 méthodes :

  • Via une application de Wake on Lan
  • via TCP

Pour le wake on Lan, il suffit d'envoyer un paquet magique (avec secureon) a l'adresse ADRESSE_WOL, au port PORT_DISTANT_WOL.

Pour TCP, on peut envoyer plusieurs messages :

  • "extinction" qui eteind toutes les prises
  • "debug" qui envoie un message de debugage
  • "ecran_OFF x" avec x = 1,2 ou 3 pour eteindre l'interrupteur 1,2 ou 3.
  • "ecran_OON x" avec x = 1,2 ou 3 pour Allumer l'interrupteur 1,2 ou 3.

arduino_wol_dyndns's People

Contributors

benoit2600 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.