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. Announcements
  3. 💬 Building a wired RS485 sensor network

💬 Building a wired RS485 sensor network

Scheduled Pinned Locked Moved Announcements
164 Posts 33 Posters 69.3k Views 35 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.
  • C cabat

    @hypnosiss you may be interested in this https://forum.mysensors.org/topic/11814/rs485-transport-ack-support/6

    H Offline
    H Offline
    hypnosiss
    wrote on last edited by
    #161

    @cabat thank you. I have losts when number of messages are sent from HA to nodes(throught mqtt ethernet gateway) and in the same time nodes are sending messages to controller as well. I described issue on Home Assistant forum but without any response - https://community.home-assistant.io/t/lost-messages-sent-simultaneously/363904

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JeeLet
      wrote on last edited by
      #162

      yes it's not easy, the loss of package is a difficult thing to
      to counter, but not entirely.
      and the multiple layers of a computer system do not help :)

      some philosophy on collision avoidance
      https://arduino.stackexchange.com/questions/24523/rs485-multimaster-communication-with-collision-avoidance

      don't mix the Protocol (data encapsulation)
      and the physical support (voltage frequency impendance / star or serial bus)

      the ModBus protocol on a RS485 support
      https://www.electroniclinic.com/arduino-modbus-rs485-arduino-rs485-master-and-slave/

      a different explanation https://www.codrey.com/learn/rs-485-arduino-quick-primer/

      for information
      https://github.com/sonyarouje/Arduino_HardwareSerial_RS485

      But the best solution (reliability and especially lightness of the sketch) is the CAN bus :)

      I may have said some stupid things ;)

      Translated with www.DeepL.com/Translator (free version)

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JeeLet
        wrote on last edited by JeeLet
        #163

        a line of the examples given in the sketches for the use of RS485 can be a source of problem
        (it's my case, I use Pin2 or3 for a long time :( )

        ...
        // Define this to enables DE-pin management on defined pin
        #define MY_RS485_DE_PIN 2
        (2 or 3 is an interrupt pin for a Uno)
        ...

        avoided interrupt pins.

        the pin 10 is a good thing :)

        1 Reply Last reply
        1
        • H Offline
          H Offline
          hypnosiss
          wrote on last edited by
          #164

          Thank you @JeeLet !
          I've been struggling with missing msgs for years with my Arduino Mega
          I changed pin and no issues! :D
          In the pjon code I've reached to list of tested pins that communication works properly
          https://github.com/gioblu/PJON/blob/38e36bb1228c1690143cfbf693a0bcb809514d6c/src/strategies/OverSampling/README.md?plain=1#L12

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          18

          Online

          12.0k

          Users

          11.2k

          Topics

          113.4k

          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