Permalink
Commits on Oct 20, 2011
  1. Remove private part specifics.

    The delays originally here were tied to a specific part we were using for the modbus master.  No-one
    else should need them :)
    committed Oct 20, 2011
  2. Fix the damn compiler warning!

    committed Oct 19, 2011
  3. Fix the out of sync replies!

    The original flush routine would decide that it had finished swallowing input as soon as it
    _ever_ got "no bytes available" even if it was just in between a byte somewhere.
    
    That was far from reliable.  Instead, it should keep flushing and swallowing until the line
    has been idle for the "inter byte timeout" period.  If bytes keep appearing before that
    timeout, the timeout needs to be reset!
    
    This became instantly more reliable.  Given the speeds and timeouts in other
    implementaitons, this can mean that we (slave AA) will still be flushing the original
    request to slave BB when slave BB's response comes back over the line.  That's fine. We
    don't care about their message anyway.  We simply rely on the master's inter _message_ delay
    being a bit longer than 10ms :)
    committed Oct 19, 2011
Commits on Oct 11, 2011
  1. Fix error in logical addressing for write registers

    The index into the local table should only increment by one, it points to a
    16bit table, only the byte offset into the packet should increment by 2.
    committed Oct 11, 2011
Commits on Sep 21, 2011
  1. Drop early if the frame is not for us.

    Before, the drop was too late, and exceptions were being returned even when it wasn't
    properly addressed to us.
    
    (Also correct a typo in the return value if the frame was too long)
    committed Sep 21, 2011
Commits on Sep 20, 2011
  1. Ignore packets not destined for us.

    (Hopefully after correctly reading in all bytes)
    committed Sep 20, 2011
Commits on Sep 19, 2011
  1. Merge branch 'master' of github.com:karlp/modbusino

    Conflicts:
    	Modbusino.cpp
    committed Sep 19, 2011
  2. Merge upstream changes

    committed Sep 19, 2011
  3. Add more constructors/setup routines.

    And make sure all examples compile, and show off all the features.
    committed Sep 19, 2011
  4. Let the slaveid be set after construction.

    This is important if the slave id needs to be determined programmatically,
    for instance, via reading a 1-Wire serial number chip.
    committed Sep 19, 2011
  5. Support logical addressing of modbus slaves

    This allows a slave to define what address space it listens to, for instance, 0x2000-0x2010, but only use a
    register table of the 16 entries required.
    committed Sep 14, 2011
  6. Prepare for adding base address support.

    Verifies still works, and base address parameter is simply ignored.
    committed Sep 13, 2011
  7. Fix return code for slave loop

    committed Sep 13, 2011
  8. Support a tx enable pin ouput, and delays around that pin.

    Also, rely on an externed HardwareSerial object, so we work on more boards like teensy as well.
    committed Sep 12, 2011
  9. Add more constructors/setup routines.

    And make sure all examples compile, and show off all the features.
    committed Sep 19, 2011
  10. Let the slaveid be set after construction.

    This is important if the slave id needs to be determined programmatically,
    for instance, via reading a 1-Wire serial number chip.
    committed Sep 19, 2011
Commits on Sep 16, 2011
  1. Avoid undefined rc in loop (closes #1)

    Thanks to Karl Palsson.
    stephane committed Sep 16, 2011
Commits on Sep 14, 2011
  1. Support logical addressing of modbus slaves

    This allows a slave to define what address space it listens to, for instance, 0x2000-0x2010, but only use a
    register table of the 16 entries required.
    committed Sep 14, 2011
Commits on Sep 13, 2011
  1. Prepare for adding base address support.

    Verifies still works, and base address parameter is simply ignored.
    committed Sep 13, 2011
  2. Fix return code for slave loop

    committed Sep 13, 2011
Commits on Sep 12, 2011
  1. Support a tx enable pin ouput, and delays around that pin.

    Also, rely on an externed HardwareSerial object, so we work on more boards like teensy as well.
    committed Sep 12, 2011
Commits on Apr 22, 2011
  1. Check the slave argument

    stephane committed Apr 22, 2011
  2. Broadcast address support

    stephane committed Apr 22, 2011
Commits on Apr 14, 2011
  1. New example sketch

    stephane committed Apr 14, 2011
  2. Fix void return

    stephane committed Apr 14, 2011