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. Troubleshooting
  3. help for step by step wiring and configure a gateway with RS485 module and raspberry pi 3

help for step by step wiring and configure a gateway with RS485 module and raspberry pi 3

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 4 Posters 4.5k 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.
  • R Offline
    R Offline
    Reza
    wrote on last edited by Reza
    #1

    hi friend can you help for wiring and configure a RS485 module with raspberrypi ?
    i have a raspberry gateway with rf24 ( /dev/ttyUSB020 ) but i also a wiring gateway side rf24. i want use other gpio for rs485 (difference rf24 gpio)also difference virtual port serial
    thank you :pray:

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Reza
      wrote on last edited by Reza
      #2

      @b0rmann @marceloaqno
      my friends please help :(
      for wiring :
      MAX485 raspberry3
      VCC.....................5V
      GND...................GND
      RO.................UART(TX)
      DI.................UART(RX)
      DE-RE..................??

      so for configure:
      first remove this line?
      0_1486114959736_A.jpg
      2th add this lines?
      0_1486114995898_B.jpg
      3th

      git clone https://github.com/mysensors/MySensors.git --branch master
      
      cd MySensors
      
      ( change sketch of gateway? convert to rs485 gateway? )
      
      ./configure --my-gateway=serial --my-rs485-serial-port=/dev/ttyAMA0 --my-serial-baudrate=115200
      
      make
      
      sudo ./bin/mysgw -h
      
      sudo ./bin/mysgw -d
      
      sudo make install
      

      i have a folder for fr24 gateway .so can use other folder for rs485 gateway ? so i have 2 gateway on raspberry (with gpio and uart)?
      please help

      1 Reply Last reply
      0
      • scalzS Offline
        scalzS Offline
        scalz
        Hardware Contributor
        wrote on last edited by scalz
        #3

        i've not followed all the rpi stuff, so 'im not expert on this.. but is the Mysensors rs485 working on linux port? i'm not sure.

        Then, on which serial port do you plan to use rs485 and nrf24? Mysensors can't do two transports layer on the same output.. at least for the moment. You would need to separate your 2 gateways on two differents serial ports.

        R 1 Reply Last reply
        1
        • scalzS scalz

          i've not followed all the rpi stuff, so 'im not expert on this.. but is the Mysensors rs485 working on linux port? i'm not sure.

          Then, on which serial port do you plan to use rs485 and nrf24? Mysensors can't do two transports layer on the same output.. at least for the moment. You would need to separate your 2 gateways on two differents serial ports.

          R Offline
          R Offline
          Reza
          wrote on last edited by
          #4

          @scalz
          thank you for answer
          now i use a raspberry gateway with nrf24 and a rs485 with usbport with arduino and in domoticz add 2 gateway (wireless and wire) and both work ! but i want use raspberry for rs485 without arduino. rf24 is using virtual ttyUSB020 and can i use AMA0 for uart and rs485 ?

          1 Reply Last reply
          0
          • scalzS Offline
            scalzS Offline
            scalz
            Hardware Contributor
            wrote on last edited by
            #5

            oki. well i can't tell you if rs485 without arduino is working on rpi, but i don't think so..as far as i know only nrf24, rfm69 ported..

            R 1 Reply Last reply
            1
            • R Offline
              R Offline
              Reza
              wrote on last edited by Reza
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • scalzS scalz

                oki. well i can't tell you if rs485 without arduino is working on rpi, but i don't think so..as far as i know only nrf24, rfm69 ported..

                R Offline
                R Offline
                Reza
                wrote on last edited by Reza
                #7

                @scalz
                ok very thanks for answer :pray:
                but if will ok so this is very pretty , i dont have any problem with sensors with nrf24 but for relay with nrf and domoticz i have very error of nack... so this is a good solution. now i have all sensors (wireless) with nrf and i have relay (wiring) with rs485 . if can use uart for rs485 instead of usb port and without arduino so this is exellent.
                again thank you for answer

                M K 2 Replies Last reply
                0
                • R Reza

                  @scalz
                  ok very thanks for answer :pray:
                  but if will ok so this is very pretty , i dont have any problem with sensors with nrf24 but for relay with nrf and domoticz i have very error of nack... so this is a good solution. now i have all sensors (wireless) with nrf and i have relay (wiring) with rs485 . if can use uart for rs485 instead of usb port and without arduino so this is exellent.
                  again thank you for answer

                  M Offline
                  M Offline
                  marceloaqno
                  Code Contributor
                  wrote on last edited by
                  #8

                  @Reza You need to set the transport to use the rs485:

                  --my-transport=rs485
                  
                  1 Reply Last reply
                  1
                  • R Reza

                    @scalz
                    ok very thanks for answer :pray:
                    but if will ok so this is very pretty , i dont have any problem with sensors with nrf24 but for relay with nrf and domoticz i have very error of nack... so this is a good solution. now i have all sensors (wireless) with nrf and i have relay (wiring) with rs485 . if can use uart for rs485 instead of usb port and without arduino so this is exellent.
                    again thank you for answer

                    K Offline
                    K Offline
                    kimot
                    wrote on last edited by kimot
                    #9

                    @Reza
                    Remeber, that GPIO Uart on RPi3 is not ttyAMA0 like with RPi2( it is bluetooth now ).
                    GPIO is ttyS0 on RPi3.

                    http://raspberrypi.stackexchange.com/questions/45570/how-do-i-make-serial-work-on-the-raspberry-pi3

                    Or read this thread too:
                    https://forum.mysensors.org/topic/6015/serial-gateway-connect-problem-ttyama0

                    1 Reply Last reply
                    1
                    • R Offline
                      R Offline
                      Reza
                      wrote on last edited by
                      #10

                      Thank you friends :pray:

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


                      30

                      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