• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    USB to RS-485 MODBUS Not Detecting Device

    How-To
    3
    9
    4.4k
    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.
    • T
      tcontrada
      last edited by

      Hello,

      I am running Mango on my laptop PC running Windows 10.
      I have a Sparkfun USB to RS-485 Converter https://www.sparkfun.com/products/9822
      When I connect a MODBUS device, Thermostat the Mango software does not recognize the device. I have the Salve address and baud rate set correctly, but when I use the "Modbus Read Data" screen and click on the "Read Data" button I always get "No Response from slave 2"

      I also tried 2 other MODBUS devices, another different thermostat and a refrigeration controller and I get exactly the same result.

      I also notice that I can see the TX LED blinking on the USB->RS485 converter, but I never see the RX LED illuminate.

      Any suggestions as to why the Mango software cannot read the slaves devices?

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by phildunlap

        Hi tcontrada,

        I wonder if....

        1. Might the device being expecting either ASCII or RTU encoding and you are sending the other?
        2. You've setup this device (the converter) in another configuration you've gotten to work?
        3. I would try changing the 'override timing' setting on the Modbus Serial data source and setting those down to 0 in this bridge configuration you're describing.

        I also wonder if there are descriptions of using this device for Modbus? If you're talking Modbus RTU, there are timing constraints in the protocol specification that some controllers are more persnickity than others, but I wouldn't expect that to be your issue.

        1 Reply Last reply Reply Quote 0
        • T
          tcontrada
          last edited by

          Hi, thanks for the reply...

          All devices are RTU.
          I did try changing the override timing to zero, but still no response.

          I have not used this specific converter with another program.

          I did install Mango on a RPi3 using the same USB->RS485 converter and I get the same results aw well.

          At this point maybe it is a timing issue or maybe the way 485 works. I have another MODBUS device which does not use 485, but USB to serial and it works on the PC and on the RPi with the Mango software. So in this case the 485 was out of the loop.

          Any suggestions?

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            I would try to get something to work with that adapter, perhaps try flipping the RX and TX wires on one end. If you had another serial converter, I would make a ring back to the computer and test that the adapter is doing what is intended (sending the message out one port, getting it on the other). If you don't, you could check with an oscilloscope that the converter is outputting sensible messages.

            1 Reply Last reply Reply Quote 0
            • T
              tcontrada
              last edited by

              I did try flipping the RX/TX lines on the 485, did not make a difference.

              Let me ask, what USB to 485 converter have you guys used with success to talk with MODBUS devices with your software running either on a PC or RPi?

              Thanks...

              1 Reply Last reply Reply Quote 0
              • P
                przemom
                last edited by

                Hi,
                Check your converter with [http://www.modbustools.com/modbus_poll.html] . If communication will be ok, check if settings from modbuspoll (slave id, port, baudrate, parity, stop bit, MODBUS FUNCTION, MODBUS REGISTERS) are the same as in Mango.

                1 Reply Last reply Reply Quote 0
                • T
                  tcontrada
                  last edited by

                  Well, I did use that software last year on something else, so my 30 day trial has expired as I wanted to use it for exactly this issue...

                  Thanks...

                  1 Reply Last reply Reply Quote 0
                  • P
                    przemom
                    last edited by

                    I've tested https://www.aliexpress.com/item/USB-to-RS485-485-Converter-Adapter-Module-CH341-Support-Windows-XP-7-Vista-Linux/32535537732.html?spm=2114.40010408.3.35.Ikdw5e
                    under windows/linux and works fine

                    1 Reply Last reply Reply Quote 0
                    • phildunlapP
                      phildunlap
                      last edited by

                      A lot of the time that isn't an issue for us, since our MangoES comes with an onboard RS485 port.

                      We have used US Converter's XS890 RS485 converter http://www.usconverters.com/usb-rs485-converter-xs890

                      And the optically isolated din-rail variant: http://www.usconverters.com/usb-rs485-isolated-converter

                      With great success.

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