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. Node to Node communication without gatway

Node to Node communication without gatway

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 1.0k Views 2 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.
  • B Offline
    B Offline
    btmerz
    wrote on last edited by
    #1

    Hello,
    I have two sensor nodes and I want to send data from one node to the other.
    But I want to use them in an environment where is no gateway available.
    I got the communication to work with the gateway.
    So I can send data from the first node to the second (which is configured as a repeater).
    But if I disconnect the gatway nothing works.
    How do I have to configure the two nodes so that they can talk directly with each other without a gateway?

    node one (sender):
    #define MY_NODE_ID 150
    #define CHILD_ID 0 // Id of the sensor child
    MyMessage msg(CHILD_ID, V_TEXT);
    void presentation()
    {
    sendSketchInfo("Liedanzeige_Sender", "1.0");
    present(CHILD_ID, S_INFO,"Lied",true);
    }

    send Data with : "send(msg.setSensor(CHILD_ID).setDestination(151).set("Test"),true);"

    node two (receiver):
    #define MY_REPEATER_FEATURE
    #define MY_NODE_ID 151
    #include <MySensors.h>
    #define CHILD_ID 0 // Id of the sensor child
    MyMessage msg(CHILD_ID, V_TEXT);
    void presentation()
    {
    sendSketchInfo("Liedanzeige_Empfang", "1.0");
    present(CHILD_ID, S_INFO, "Empfänger", true);
    }

    rejoe2R 1 Reply Last reply
    0
    • B btmerz

      Hello,
      I have two sensor nodes and I want to send data from one node to the other.
      But I want to use them in an environment where is no gateway available.
      I got the communication to work with the gateway.
      So I can send data from the first node to the second (which is configured as a repeater).
      But if I disconnect the gatway nothing works.
      How do I have to configure the two nodes so that they can talk directly with each other without a gateway?

      node one (sender):
      #define MY_NODE_ID 150
      #define CHILD_ID 0 // Id of the sensor child
      MyMessage msg(CHILD_ID, V_TEXT);
      void presentation()
      {
      sendSketchInfo("Liedanzeige_Sender", "1.0");
      present(CHILD_ID, S_INFO,"Lied",true);
      }

      send Data with : "send(msg.setSensor(CHILD_ID).setDestination(151).set("Test"),true);"

      node two (receiver):
      #define MY_REPEATER_FEATURE
      #define MY_NODE_ID 151
      #include <MySensors.h>
      #define CHILD_ID 0 // Id of the sensor child
      MyMessage msg(CHILD_ID, V_TEXT);
      void presentation()
      {
      sendSketchInfo("Liedanzeige_Empfang", "1.0");
      present(CHILD_ID, S_INFO, "Empfänger", true);
      }

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

      @btmerz If the controller is not present, the nodes won't enter loop(). To avoid this, use (3000 may be changed)

      #define MY_TRANSPORT_WAIT_READY_MS 3000
      

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

      1 Reply Last reply
      0
      • B Offline
        B Offline
        btmerz
        wrote on last edited by
        #3

        Hi, meanwhile I was able to solve the problem.
        #define MY_PASSIVE_NODE did the trick.

        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


        12

        Online

        12.1k

        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