Giter Site home page Giter Site logo

chacondio10's Introduction

Chacon DIO 1.0 transmitter

This project provides a simple program to send commands to Chacon DIO 1.0 power outlet sockets. It has only been tested on a Raspberry Pi and ODROID-C4.

Compilation

To compile this program, make sure you have built and installed the WiringPi library first.

Then execute make in the code directory and you should obtain the send program.

The send.sh wrapper script makes use of flock to prevent concurrent calls using a file lock.

Usage

Connect a 433MHz transmitter to the GPIO pin of your choice on a Raspberry Pi (see the pin numbering documentation).

Then execute:

./send.sh <gpio pin> <sender code> <button number> <state> [repeat count]

  • <gpio pin> is the WiringPi pin number
  • <sender code> is an arbitrary 26-bit number
  • <button number> is a number between 0 and 15, or -1 for all (group function)
  • <state> is 0 (OFF) or 1 (ON)
  • [repeat count] is an optional number of times to repeat the message (default: 5)

For example, use:

  • ./send.sh 0 12345678 1 1 for button 1 ON
  • ./send.sh 0 12345678 1 0 for button 1 OFF
  • ./send.sh 0 12345678 -1 1 for all buttons ON
  • ./send.sh 0 12345678 -1 0 for all buttons OFF

Protocol

The Chacon DIO 1.0 protocol was reverse engineered by Idleman, this project was directly inspired by it.

References:

chacondio10's People

Contributors

fcrespel avatar

Watchers

 avatar  avatar

chacondio10's Issues

Switch on or off all devices at the same time (group function)

Hi

I see on on file send.cpp at line 57-58 that you don't use via argument the group... I use rtl_433 to capture or see the signal of remote controller and when I use the last button It switches on or off all of devices. This button use the argument group value 1, the rest of buttons use group value 0.

So if I want to switch on or switch off all devices at the same time I need to send group value 1.

Can you help me to edit send.cpp to enable group as argument?

Thanks for all.

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.