REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    Modbus using 485 output and USB

    Monarco HAT
    2
    3
    389
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MikeyH
      last edited by

      Hi All,

      Is it possible to use both the RS485 on the Monarco HAT and also the the USB on the RPi for Modbus?

      I guess this would need 2 drivers set up for both /dev/ttyAMA0 and /dev/ttyUSB0, would this work?

      Cheers

      Mike

      1 Reply Last reply Reply Quote 0
      • cechuratC
        cechurat
        last edited by cechurat

        Hi Mike,

        thank you for your question. Yes, you are absolutely right. Just be sure that the USB adapter will be always recognised as a /dev/ttyUSB0 device.

        Have a look at udev rules which will help you to achieve this. E.g.:
        https://stackoverflow.com/questions/18736309/linux-input-event-interface-numbering
        http://reactivated.net/writing_udev_rules.html

        Cheers,
        Tomas

        1 Reply Last reply Reply Quote 0
        • cechuratC
          cechurat
          last edited by

          Hi Mike,

          there is also one post at old REXYGEN forum which might help you:
          https://www.rexcontrols.cz/forum/viewtopic.php?id=17

          Cheers,
          Tomas

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

          There is also an outdated REXYGEN community forum.

          Powered by NodeBB.