Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Dec 16, 2012
  1. Resorted to packing message in json

    authored
    So it didn't get mangled by sqlite.
Commits on Dec 6, 2012
  1. It sees 0x00 in an ASCII-encoded string

    authored
    And ends. Fix this.
  2. SQLite is playing silly buggers.

    authored
    I'm trying to store a byte string as text, it's helpfully converting it to
    unicode, or something. Bleh.
  3. Working towards being able to reply to nodes.

    authored
    Working on build_reply(), which will pop off the msgqueue the next message
    for a given node.
Commits on Dec 4, 2012
  1. Now parsing messages from the node!

    authored
    Inserting current pin states into the database. Very exciting.
    Also reading out card numbers is working. Next step is decoding them.
Commits on Dec 3, 2012
  1. Starting to work on interpretation of messages.

    authored
    I'm not particularly savvy with python's data types.
  2. Got rid of a silly buffer bug.

    authored
    It was causing lockup of comms when server was down and buffer looped.
Commits on Dec 2, 2012
  1. EEEPROM deadman stuff is in. Untested for now.

    authored
    Need to work on the server side of things for a bit first.
Commits on Nov 29, 2012
  1. Tidying up the EEPROM stuff.

    authored
  2. Added a hardcoded message to test EEPROM set.

    authored
    Had to fix the checksum thingo.
Commits on Nov 28, 2012
  1. Added some more smartness around alarming.

    authored
    Which alarms go through, which don't. Digital pulsing is in but untested.
    Next up is groundwork for setting EEPROM values.
Commits on Nov 27, 2012
  1. Now applies proper analogue thresholds.

    authored
    Using hardcoded values though. Commented out for now because it will spam
    like mad. I need to keep track of the most recent state delivered to the
    server so as to only update it on state change.
  2. Working on handling messages from the server.

    authored
    And also a bit more EEPROM stuff, since the server will be sending new
    EEPROM values.
Commits on Nov 22, 2012
Commits on Nov 21, 2012
  1. Now a bit more intelligent about what to send.

    authored
    Only sends on analogue thresholds or digital state change. In the future
    the analogue inputs will have different thresholds for secure closed,
    secure open, cut, short, tamper, etcetera. For now it only sends an
    analogue alarm when it hits 0x03FF.
  2. Sped up the transmission manyfold.

    authored
    Pack multiple queued messages into one xmit block. Low hanging
    performance fruit.
  3. Signalling I/O states to server.

    authored
    The enqueue_* functions could use some work. Using memcpy
    and rearranging the temp_msg array is clumsy.
Commits on Nov 15, 2012
Commits on Nov 14, 2012
Commits on Nov 5, 2012
  1. Nothing significant

    authored
  2. Added some testing code, went back to 64B buffer

    authored
    For testing purposes.
Commits on Nov 4, 2012
  1. Small alterations.

    authored
  2. Added a random second-last byte in message.

    authored
    Also general cleanup.
Commits on Nov 3, 2012
  1. Commented out most of the debug messages.

    authored
    Much faster now.
  2. Fixed the buffer problem.

    authored
    It's running mad slow now due to the amount of debugging stuff.
    Scaling that back now.
Commits on Nov 2, 2012
  1. I seem to have broken some stuff quite badly.

    authored
    But I think it's all for the best.
Something went wrong with that request. Please try again.