logo elektroda
logo elektroda
X
logo elektroda

How to integrate the RS485 gateway into Domoticz via LAN and can it be combined with the radio?

piterek-23 1281 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17890991
    piterek-23
    Level 33  
    Hi,
    I'm running Domoticz on a PC running Linux Debian - everything is OK.
    I would like to collect data from several modules and I have started the MySensors gateway on Arduino NANO + radio - everything is OK here too

    Now I would like to run an RS485 gateway, but I was wondering if it is possible to make the gateway communicate with the Domoticz PC via LAN and with the devices via RS485?

    And additionally... Is it possible to have a radio and RS485 on one gateway? Or do I have to have two gateways connected to the PC?
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • Helpful post
    #2 17891873
    starob
    Level 29  
    piterek-23 wrote:
    I'd like to get an RS485 gateway up and running, but I've been wondering if it's possible to make the gateway communicate with the Domoticz PC over LAN and with the devices over RS485
    .
    Yes, this is possible. You need to define the configuration options properly by combining the serial ->rs485 gateway options with the LAN gateway options.
    piterek-23 wrote:
    Is it possible to have radio and RS485 on one gateway?
    .
    Rather, you need to have separate gateways. Domoticz over LAN will handle multiple gateways.
  • ADVERTISEMENT
  • #3 17891888
    piterek-23
    Level 33  
    Thanks, in that case I'll have to look up more details for myself, but it's cool that it's possible to do LAN-RS485 ;) .
    Two gateways isn't a big deal either, but I thought maybe it could be done because it's always less freebies.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #5 17892085
    piterek-23
    Level 33  
    Thanks a lot. I'll be doing some testing in the next few days and will let you know what came out of it ;) .
    I'll be honest, I don't quite grasp Arduino because I've only played with BASCOM, but I think I'll be able to handle it-pair of Arduino toys I've run, but only from ready-made ones.
  • #6 17892159
    starob
    Level 29  
    In this configuration, the ETH module can be connected to the hardware SPI and the RS to serial1.
    By uncommenting the lines:
    #define MY_RS485_HWSERIAL Serial1
    #define MY_W5100_SPI_EN 4
ADVERTISEMENT