... using two Gateways



  • Hi all,
    how can i pass a message from one gateway network to another gateway network without using a controller (NRF24 & RS485)Is there any bridge for such purpose?


  • Mod

    Do you mean you want to route messages from nrf24 gateway to another rs485 gateway?


  • Hardware Contributor



  • @gohan , yes i have imagine a gateway(Serial or Ethernet or...) that both NRF & RS485 is hooked on and route messages transparently from one to other.
    If not hooked on gateway just act as repeater in between of, and then use a NRFGateway or RS485Gateway to connect the Controller (or manage the trafic).



  • Thank you @sundberg84for the link but this thread seems to be a dead end.


  • Mod

    I know it would be nice to have one single gateway for both interfaces



  • @gohan
    ... i was dreamed of activating both
    // # Define MY_RADIO_NRF24
    // # Define MY RS485
    but i got this!
    " #error Only one forward link driver can be activated "
    ... now i keep dreaming ...



  • ... may be using a MEGA to connect to serial1,2,3 ports
    an NRF Gateway
    an RS485 Gateway
    and build a new serial output to Controller that will merge and manage messages via serial API.


  • Hardware Contributor

    Hello,

    no bridge yet as far as i know. Mysensors allows one transport layer per gw for the moment.
    It would need some software work though, like handling well both transport without missing packets, queue, more ram and also flash for fw. All of this for one mcu. Better use a good mcu for this.
    Or it's very simple to use a cheap rpi like and use node-red for routing imho


  • Mod

    @scalz of course you can use a controller to route messages from one sensor network to the other, but in order to keep things simple it would be nice to have a bridge between the two


  • Hardware Contributor

    @gohan
    hehe. It depends on the angle of view. Simple for end user, but not for the dev :)

    I explained it above, but actually the lib works like this, 1x transport.

    • This needs a few more coding abstraction layers to get that. Taking in account current todolist priorities, dev, testing, and time ;)
    • better with an rtos too, as most common mcu are one core, it needs to handle well all the tasks involved..and the lib is not completely ready for this too.
    • Lot of things to think for doing this (the message routing and so on) ..or no reliable comm.

    That's why, i said, for the moment it may be easier to use an rpi for this even if i understood the point ;)


  • Mod

    don't get me wrong, I know very well that it is much more complex working on the code for microcontrollers that have limited resources :D


  • Hardware Contributor

    @gohan not my intention. i think in future that may be easier to bridge than actually, just a matter of time. thx to mysensors team, and the community because it's tricky to test all hardware setup :)


  • Mod

    Would it be possible to use mqtt to bridge 2 gateways?


  • Mod

    @gohan not without some sort of filtering
    The two gateways would have the same id (0) and forwarding messages with destination 0 would probably confuse the other gateway.
    There would probably also be some extra routing mechanism, to be able to handle routing between the two networks. To nodes on "network 1", it would have to look like gateway 2 is a repeater which is routing messages for all nodes in "network 2", and the other way around.


  • Mod

    @mfalkvidd
    Of course some changes would have to be made. I was only brainstorming about what could be the less complex way



  • @mfalkvidd
    hmm... that is more complicated than i thought!
    seems that need a repeater NRF to RS485 to handle the "INTERNAL" trafic also and not two Gateways ...:confused: :dizzy_face:


  • Mod

    @zzz-teo well, if it was easy it would probably already be supported ;-)



  • @mfalkvidd
    ... sure! and since i'm not qualified for such task, hope this topic to alert someone and build it!


  • Mod

    @zzz-teo what exactly are you trying to accomplish with the repeater?


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.