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 46.8k 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.
  • A Offline
    A Offline
    Andreas Sieber
    wrote on last edited by
    #130

    in the 2.2 the same problem, i have now updagradet to alpha.

    When you have a solution on 2.2 i will downgrade. no problem!

    Guys you are good! I had set the mynodeid. But befor i include the my sensors.. that's the mistake..

    hour of hour to search... thx!

    1 Reply Last reply
    1
    • O Offline
      O Offline
      Omemanti
      wrote on last edited by
      #131

      Is it possible, or will it be possible to build a combination between wired and wireless nodes?

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #132

        one network, one gateway

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Pavel Polititsky
          wrote on last edited by
          #133

          I just trying to work with examples but my node always transmitting some piece of shit from hardware serial:

           
           __  __       ____
          |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
          | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
          | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
          |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
                  |___/                      2.3.0
          
          16 MCO:BGN:INIT NODE,CP=RSNNA---,VER=2.3.0
          25 TSM:INIT
          26 TSF:WUR:MS=0
          28 TSM:INIT:TSP OK
          29 TSF:SID:OK,ID=5
          31 TSM:FPAR
          ⸮X⸮⸮w34 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
          2041 !TSM:FPAR:NO REPLY
          2043 TSM:FPAR
          ⸮X⸮⸮w2045 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
          4054 !TSM:FPAR:NO REPLY
          4056 TSM:FPAR
          ⸮X⸮⸮w4058 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
          6066 !TSM:FPAR:NO REPLY
          6068 TSM:FPAR
          ⸮X⸮⸮w6070 TSF:MSG:SEND,5-5-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
          8078 !TSM:FPAR:FAIL
          8079 TSM:FAIL:CNT=1
          8081 TSM:FAIL:DIS
          8083 TSF:TDI:TSL
          

          From software serial too

          ⸮X⸮⸮w
          ⸮X⸮⸮w
          ⸮X⸮⸮w
          ⸮X⸮⸮w
          

          Consequently the gateway can't find any device.
          I have tried also with RS485 with different baudrate. Finally I just connect my USB TTL directly to ouput pins, but always same result.
          How to fix it?

          1 Reply Last reply
          0
          • rejoe2R Offline
            rejoe2R Offline
            rejoe2
            wrote on last edited by
            #134

            @Pavel-Polititsky
            To me this looks like you mixed between-node communication (RS485) with debug output (and maybe also serial output of the gw).
            The corresponding serial interface for RS485 should be dedicated to RS485 exclusively.

            Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

            1 Reply Last reply
            1
            • P Offline
              P Offline
              PepoV6
              wrote on last edited by
              #135

              Hi,
              first of I have to thank you for your effort on this project! It helped me a lot.
              In my house I would like to build 2 networks, one with serial gateway with RF24 for ground floor and outside. Second will be in cellar and I was thinking about Ethernet gateway (W5500) but sensors will be connected via RS485. Do you have code for that? On the video it looks like that in the box on right side it is something like this.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                GieBek
                wrote on last edited by
                #136

                I have exactly the same problem. Has anyone managed to run it.

                mfalkviddM 1 Reply Last reply
                0
                • G Offline
                  G Offline
                  GieBek
                  wrote on last edited by
                  #137

                  | / |_ / | ___ _ __ ___ ___ _ __ ___
                  | |/| | | | _
                  \ / _ \ _ \/ __|/ _ \|
                  _/ __|
                  | | | | |
                  | || | / | | _ \ _ | | _
                  |
                  | |
                  |_
                  , |/ ___|| ||/_/|| |/
                  |
                  __/ 2.3.1

                  16 MCO:BGN:INIT NODE,CP=RSNNA---,REL=255,VER=2.3.1
                  26 TSM:INIT
                  27 TSF:WUR:MS=0
                  28 TSM:INIT:TSP OK
                  30 TSM:FPAR
                  56 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                  2063 !TSM:FPAR:NO REPLY
                  2065 TSM:FPAR
                  2082 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                  4090 !TSM:FPAR:NO REPLY
                  4092 TSM:FPAR
                  4110 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                  6118 !TSM:FPAR:NO REPLY
                  6120 TSM:FPAR
                  6137 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                  8146 !TSM:FPAR:FAIL
                  8147 TSM:FAIL:CNT=1
                  8150 TSM:FAIL:DIS
                  8152 TSF:TDI:TSL
                  18154 TSM:FAIL:RE-INIT
                  18156 TSM:INIT
                  18157 TSM:INIT:TSP OK
                  18159 TSM:FPAR
                  18178 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                  20186 !TSM:FPAR:NO REPLY
                  20188 TSM:FPAR
                  20206 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                  22213 !TSM:FPAR:NO REPLY
                  22215 TSM:FPAR
                  22234 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                  24241 !TSM:FPAR:NO REPLY
                  24243 TSM:FPAR
                  24261 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
                  26268 !TSM:FPAR:FAIL
                  26269 TSM:FAIL:CNT=2
                  26271 TSM:FAIL:DIS
                  26273 TSF:TDI:TSL

                  1 Reply Last reply
                  0
                  • G GieBek

                    I have exactly the same problem. Has anyone managed to run it.

                    mfalkviddM Offline
                    mfalkviddM Offline
                    mfalkvidd
                    Mod
                    wrote on last edited by mfalkvidd
                    #138

                    @giebek could you describe the problem, what your setup looks like, and what you have tried so far to troubleshoot it? There are 137 posts in this thread so it is a bit hard to figure out which problem you are referring to.

                    rejoe2R 1 Reply Last reply
                    0
                    • mfalkviddM mfalkvidd

                      @giebek could you describe the problem, what your setup looks like, and what you have tried so far to troubleshoot it? There are 137 posts in this thread so it is a bit hard to figure out which problem you are referring to.

                      rejoe2R Offline
                      rejoe2R Offline
                      rejoe2
                      wrote on last edited by rejoe2
                      #139

                      @GieBek

                      6137 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:

                      Imo this indicates your node doesn't have a NodeID yet. When using RS485 you have to assign the ID's manually in the sketch, auto doesn't work... (e.g. #define MY_NODE_ID 123)

                      Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                      1 Reply Last reply
                      1
                      • G Offline
                        G Offline
                        GieBek
                        wrote on last edited by
                        #140

                        Thanks for the answers.
                        And even more thanks to the rejoe2

                        #define MY_NODE_ID 123

                        it helped 100% the transmission went, domoticz sees children.

                        1 Reply Last reply
                        1
                        • dzjrD Offline
                          dzjrD Offline
                          dzjr
                          wrote on last edited by
                          #141

                          hello MySensors friends,

                          I am currently making a node based on an arduino Mega 2560 with transport via RS-485, the build page says that we should use the MEGA pin 46 & 48, I was wondering if I would like a reference for this. in the sketch.
                          Second question; can I use pin 47 for the DE pin with:

                          #define MY_RS485_DE_PIN 47
                          

                          I haven't tested anything yet, so actually I just ask a lazy question ;)

                          dzjrD 1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            APL2017
                            wrote on last edited by
                            #142

                            Hello, I would like to better understand the concept here. It sounds like we still need a gateway connected to a controller (serial, Ethernet, WiFi, etc.) but the interface between gateway and multiple nodes is over wired RS485 serial interface. Please confirm. Thank you for your great efforts!

                            rejoe2R 1 Reply Last reply
                            0
                            • A APL2017

                              Hello, I would like to better understand the concept here. It sounds like we still need a gateway connected to a controller (serial, Ethernet, WiFi, etc.) but the interface between gateway and multiple nodes is over wired RS485 serial interface. Please confirm. Thank you for your great efforts!

                              rejoe2R Offline
                              rejoe2R Offline
                              rejoe2
                              wrote on last edited by
                              #143

                              @apl2017 Yes, also for RS485 variant you'll need a gateway. Only the communication between the gateway and the other nodes is handled over RS485, connected to a second (typically software) serial interface (for remote nodes, you may just use the hardware serial interface to connect the RS485 transceiver, if you do not need debug output; but imo this option is not recommended for beginners).

                              Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                              1 Reply Last reply
                              0
                              • dzjrD dzjr

                                hello MySensors friends,

                                I am currently making a node based on an arduino Mega 2560 with transport via RS-485, the build page says that we should use the MEGA pin 46 & 48, I was wondering if I would like a reference for this. in the sketch.
                                Second question; can I use pin 47 for the DE pin with:

                                #define MY_RS485_DE_PIN 47
                                

                                I haven't tested anything yet, so actually I just ask a lazy question ;)

                                dzjrD Offline
                                dzjrD Offline
                                dzjr
                                wrote on last edited by
                                #144

                                @dzjr said in 💬 Building a wired RS485 sensor network:

                                hello MySensors friends,

                                I am currently making a node based on an arduino Mega 2560 with transport via RS-485, the build page says that we should use the MEGA pin 46 & 48, I was wondering if I would like a reference for this. in the sketch.
                                Second question; can I use pin 47 for the DE pin with:

                                #define MY_RS485_DE_PIN 47
                                

                                I haven't tested anything yet, so actually I just ask a lazy question ;)

                                I have it working, so you don't have to adjust anything for a Mega, and pin 47 for DE also works!

                                1 Reply Last reply
                                1
                                • zrom69Z Offline
                                  zrom69Z Offline
                                  zrom69
                                  wrote on last edited by
                                  #145

                                  Hi,
                                  in a node how many children can put rs-485
                                  thanks good work

                                  dzjrD 1 Reply Last reply
                                  0
                                  • zrom69Z Offline
                                    zrom69Z Offline
                                    zrom69
                                    wrote on last edited by
                                    #146

                                    and it can have blockages if there are sensors that function or even time
                                    thanks

                                    1 Reply Last reply
                                    0
                                    • zrom69Z zrom69

                                      Hi,
                                      in a node how many children can put rs-485
                                      thanks good work

                                      dzjrD Offline
                                      dzjrD Offline
                                      dzjr
                                      wrote on last edited by
                                      #147

                                      @zrom69

                                      I have a node with 52 child id's on a Arduino mega,

                                      Arnout 22 of Them receiving data (relay & dimmers) and the rest are sending data, binary, temp/hum, soil moisture and analog data.

                                      Not all the nodes are in use, but i see the data in domoticz.

                                      I dont know how manny childs you want to use, for me 52 on one node are very mutch.

                                      zrom69Z 1 Reply Last reply
                                      0
                                      • zrom69Z Offline
                                        zrom69Z Offline
                                        zrom69
                                        wrote on last edited by
                                        #148

                                        thank you for your reply
                                        at least 10 children in node and 30 nodes

                                        1 Reply Last reply
                                        0
                                        • dzjrD dzjr

                                          @zrom69

                                          I have a node with 52 child id's on a Arduino mega,

                                          Arnout 22 of Them receiving data (relay & dimmers) and the rest are sending data, binary, temp/hum, soil moisture and analog data.

                                          Not all the nodes are in use, but i see the data in domoticz.

                                          I dont know how manny childs you want to use, for me 52 on one node are very mutch.

                                          zrom69Z Offline
                                          zrom69Z Offline
                                          zrom69
                                          wrote on last edited by
                                          #149

                                          @dzjr
                                          thank you for your reply
                                          at least 10 children in node and 30 nodes
                                          @dzjr

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


                                          23

                                          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