#108 generic userspace "modbus to hal" component

None
closed-fixed
John Kasunich
HAL (20)
5
2014-01-06
2012-10-19
VNR
No

I would like to contribute a generic and configurable "modbus to hal" component.
Source code and documentation is in the attached file as a patch format to current "master".
Read the LogBook.txt and mb2hal_HOWTO.ini to know more.

Discussion

  • VNR
    VNR
    2012-11-09

    2012-11-08: mb2hal now using libmodbus3 and added improvements.
    Patch file to current master is attached.

     
  • VNR
    VNR
    2012-11-12

    2012-10-12: mb2hal: added functionallity, including arduino example.

    - Arduino example added.
    Tested with Arduino Mega 2560 R3 using Modbusino over USB at 115200 bps.
    - New parameters in config file.
    HAL_MODULE_NAME, MB_RESPONSE_TIMEOUT_MS and MB_BYTE_TIMEOUT_MS.
    - New HAL pin "num_errors" for each transaction. num_errors = 0 if last
    transaction OK, else the count of failed transactions.
    - Fix a bug, OPTIONAL's parameters may be 0 instead of default value if
    not specified in 1st transaction.

    Patch file to current master is attached.

     
    • status: open --> closed-fixed
    • Group: -->
     
  • Committed to master in October/November 2012.