Permalink
Switch branches/tags
Nothing to show
Commits on Mar 12, 2017
  1. Merge branch 'mqtt_button'

    * Emit a message on topic "Netz39/Things/Shuttercontrol/Button/Events"
      when the manual mode button is pressed on the shutter control panel
    penguineer committed Mar 12, 2017
Commits on Aug 9, 2016
Commits on Aug 8, 2016
  1. Merge pull request #3 from netz39/mqtt

    MQTT-Handling für die Tür
    penguineer committed on GitHub Aug 8, 2016
  2. Doorstate: gitignore

    penguineer committed Aug 8, 2016
  3. Doorstate: Send MQTT messages

    Topic is Netz39/Things/Door/Events,
    c.f. http://www.netz39.de/wiki/projects:2014:gatekeeper:mqtt
    penguineer committed Aug 8, 2016
Commits on Jul 15, 2016
  1. Merge pull request #2 from penguineer/tc_debounce

    quick review, without deeper understanding of all details. thanks.
    LeSpocky committed on GitHub Jul 15, 2016
Commits on Jul 14, 2016
  1. bringt debouncing into effect w/ new state machine

    General overhaul:
      * use the Input State Byte (ISB) to store the local state
      * output ports are set based on the ISB
      * very slim timer ISR
      * twi_idle_callback checks for input updates
      * be sensitive with the interrupt-enable flag
    
    A note on synchronization:
    The ISB is accessed by twi_idle_callback and twi_callback.
    Those two are never executed at the same time. If the ISB
    shall be accessed in the time ISR, some sort of proper
    synchronization is needed.
    
    Some more computation time can be saved in twi_idle_callback
    by checking if the ISB really has changed before continuing
    execution in line 333.
    
    TODO: Check if the semantics of signals door-open and lock-closed
          still correspond.
    penguineer committed Jul 14, 2016
Commits on Jul 10, 2016
  1. Include debounce library

    penguineer committed May 14, 2016
  2. Add debounce lib to make file

    penguineer committed May 14, 2016
  3. State Machine documentation

    penguineer committed May 14, 2016
  4. Merge branch 'debounce-fix'

    * Correct the patterns for button up/down recognition.
    penguineer committed Jul 10, 2016
  5. Debounce: Correct pattern for button down and up

    Set the correct patterns for debounce_is_button_down and debounce_is_button_up.
    (The values were mixed up.)
    penguineer committed Jul 10, 2016
Commits on Apr 30, 2016
  1. Merge pull request #1 from penguineer/debounce

    Debounce Library
    LeSpocky committed Apr 30, 2016
  2. Debounce demo code quality

    Add fixes regarding #1 (comment)
    penguineer committed Apr 30, 2016
  3. Debounce library code quality

    Add fixes regarding #1 (comment)
    penguineer committed Apr 30, 2016
Commits on Apr 23, 2016
  1. Debounce demo

    penguineer committed Apr 23, 2016
Commits on Dec 5, 2015
  1. door-open: Error count and reset on I2C problems

    Count I3C transmission errors and reset the system if there are too many
    errors in a row.
    
    Also logs actions to the shuttercontrol log.
    penguineer committed Dec 5, 2015
  2. Asterisk abuse handling: find IP addresses

    Check the syslog for abuse messages from Asterisk and add the mentioned IP
    addresses to the UFW firewall.
    
    Note: This does not immediately block the address, as SIP keeps the channel
          open. Either block the address completely or restart Asterisk.
    penguineer committed Dec 5, 2015
Commits on Aug 18, 2014
  1. Merge remote-tracking branch 'mechanismus/master'

    Inhalt des Repsoitories https://github.com/netz39/door_lock_automation ins Unterverzeichnis tuer-mechanismus gemergt
    penguineer committed Aug 18, 2014
  2. BAK-Files entfernt

    penguineer committed Aug 18, 2014