Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. MODBUS master sensor node

MODBUS master sensor node

Scheduled Pinned Locked Moved Hardware
5 Posts 4 Posters 2.4k Views 4 Watching
  • 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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #1

    Hi

    I'm trying to figure out if it is possible, using this library https://github.com/4-20ma/ModbusMaster , to make a sensor node able to read write data to modbus network in order to control one HVAC mistubishi thermostat of my heat pump.
    Is there anybody with modbus experience that can give some advices?

    1 Reply Last reply
    0
    • RedguyR Offline
      RedguyR Offline
      Redguy
      wrote on last edited by
      #2

      Hi Gohan..

      I hooked up my schneider PM9C power monitoring device through modbus to a mysensors node..

      Should be doable once you get the initial bus connection running..

      Although the familiar RS485 modules on aliexpress etc seem to function just fine when talking to each other, i noticed that it is a pain in the <censored> to get them to talk to a proper device. Especially the direction control screws everything up most of the time..

      things cleared up as soon as i started using a RS232 <-> RS485 converter with auto direction control.. Communicating with a single device is one thing, talking to a bus system connecting multiple devices is a whole different ballgame where propper bus termination etc. becomes important.

      Biggest problem is that you have to get the hardware for the connection right AND figure out the use of the lib etc.. The other part is having to figure out how your modbus devices present their data..

      Search for a good manual for your devices, specifying the various registers to read and write to, including their format etc. It's not that hard, but most devices wont respond at al unlessyou format things exactly right.

      So my advice is to split the steps to make sure each part functions on its own before trying to talk end to end.

      Use a program like modbuspoll or something and see if you can get the communication going using simple queries to a single HVAC unit using a simple usb converter (i used a little moxa converter). If that works, expand to talking to multiple on the full bus.

      Try reading single registers and setting simple things.

      if that all works well with the manual queries from modbuspoll or other software, transition to using your mysensors node and libs..

      Can you provide some more information about the device types you are using ?

      I

      A 1 Reply Last reply
      1
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #3

        Disregard my post since after further investigation I found that it is not modbus but it's actually M-Net

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pjr
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • RedguyR Redguy

            Hi Gohan..

            I hooked up my schneider PM9C power monitoring device through modbus to a mysensors node..

            Should be doable once you get the initial bus connection running..

            Although the familiar RS485 modules on aliexpress etc seem to function just fine when talking to each other, i noticed that it is a pain in the <censored> to get them to talk to a proper device. Especially the direction control screws everything up most of the time..

            things cleared up as soon as i started using a RS232 <-> RS485 converter with auto direction control.. Communicating with a single device is one thing, talking to a bus system connecting multiple devices is a whole different ballgame where propper bus termination etc. becomes important.

            Biggest problem is that you have to get the hardware for the connection right AND figure out the use of the lib etc.. The other part is having to figure out how your modbus devices present their data..

            Search for a good manual for your devices, specifying the various registers to read and write to, including their format etc. It's not that hard, but most devices wont respond at al unlessyou format things exactly right.

            So my advice is to split the steps to make sure each part functions on its own before trying to talk end to end.

            Use a program like modbuspoll or something and see if you can get the communication going using simple queries to a single HVAC unit using a simple usb converter (i used a little moxa converter). If that works, expand to talking to multiple on the full bus.

            Try reading single registers and setting simple things.

            if that all works well with the manual queries from modbuspoll or other software, transition to using your mysensors node and libs..

            Can you provide some more information about the device types you are using ?

            I

            A Offline
            A Offline
            arraWX
            wrote on last edited by arraWX
            #5

            What @Redguy describes is very close to what I wish to accomplish with my HVAC system.

            If I start out with modbuspoll and a moxa converter as suggested by @Redguy a few questions arise to me:

            • Is this moxa model the right one? http://www.moxa.com/product/uport_1110.htm
            • How do I connect my HVAC and the moxa? Simply connecting GND, TxD and RxD of the HVAC to the corresponding pins of the moxa (see pictures below)? What about 5VDC?
            • Any helpful people here see any problems in what I am trying to do?

            HVAC MODBUS adapter:
            0_1493294240973_modbus_adapter.PNG

            MOXA pin assignments:
            0_1493294297520_moxa_uport_1100.PNG

            HVAC system:
            https://www.drexel-weiss.at/produkte-und-loesungen/einfamilienhaus/x2-geraeteserie/

            MODBUS documentation:
            https://github.com/diresi/drexel-und-weiss/blob/master/900.6660_01_TI_Modbus_RTU_DE.pdf
            https://github.com/diresi/drexel-und-weiss/blob/master/900.6667_00_TI_Modbus_Parameter_V4.01_DE.pdf

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            16

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular