Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Doomic
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by Doomic

    • RE: Node to node comunication with optional controller

      i think i finally get it.
      It is impossible... well the only way to let nodes communicate with each other is when a gateway is available (directly or trough other nodes) when the node is starting up.
      This forum discussion is explaining me the most..

      a solution may be.. transform the node that is always on to an gateway. And use antoher channel.. Sidenode; then you can't tell the controller what the status is.

      Is there realy no way that this can supported? Node to node comunication without the need of an gateway inside the network? Skipping the registration and just send the message around.
      perhaps i will dive into the source one day and change the registration behavior.

      Thanks anyway for the help and the very fast responding.

      posted in Development
      Doomic
      Doomic
    • RE: Node to node comunication with optional controller

      A gateway you say..
      There is a problem.. because the gateway is connected to my pc where the controller is running.
      The Gateway is not always switched on.
      That is the reason why i want to use node to node communication. Not depending on anther node (gateway) to work.

      But why does it need a gateway?
      Both nodes have a fixed id. Therefor there is nothing to register, is it?

      The title should be: "Node to node communication with optional controller gateway"
      Lets ask my question a litle bit different:

      Is it posible to only have 2 standalone nrf24/arduino devices running the mysensors library to communicate with each other.
      And if there is; what should the sketches look like?

      posted in Development
      Doomic
      Doomic
    • RE: Node to node comunication with optional controller

      Yes i am using the newest 2.1 version. I may try to reinstall mysensors, however i dont think that is the problem.

      Compiling isnt the problem, but when i run the sketch on my Arduino, It tells me trough the serial monitor that the node is not registered. (Because i doesnt have a gateway/controller nearby). Therefor it can't make calls.

      posted in Development
      Doomic
      Doomic
    • RE: Node to node comunication with optional controller

      I don't get it.
      It keep saying "NODE NOT REG"

      I have cleaned my sketch completly and it is now looking like below. But no progress on this.
      Compared myconfig.h file.. no changes with the one on github.
      removed some defines, tried all kind of combination.

      What am i missing?

      #define MY_DEBUG
      
      #define MY_RADIO_NRF24
      #define MY_RF24_CHANNEL 83
      #define MY_RF24_PA_LEVEL RF24_PA_LOW 
      
      #define MY_NODE_ID 21
      #define MY_PARENT_NODE_ID 0
      #define MY_PARENT_NODE_IS_STATIC
      #define MY_REGISTRATION_RETRIES 0
      #undef MY_REGISTRATION_FEATURE
      #define MY_TRANSPORT_WAIT_READY_MS 1
      
      #include <SPI.h>
      #include <MySensors.h>
       
      MyMessage msgTest(2, V_LIGHT);
      
      void setup()  
      { 
        msgTest.setDestination(20);
      }
      
      void presentation()
      {
        sendSketchInfo("Test", "1.0");
      }
      
      void loop() 
      {
        Serial.println("send");
        send(msgTest.set(false));
        wait(3000);
      } 
      
      posted in Development
      Doomic
      Doomic
    • RE: Node to node comunication with optional controller

      @AWI get an error. [!MCO:SND:NODE NOT REG]
      perhaps you have changed more? in you MyConfig.h maybe?

      posted in Development
      Doomic
      Doomic
    • RE: Node to node comunication with optional controller

      looks good. I will try this later today.

      posted in Development
      Doomic
      Doomic
    • Node to node comunication with optional controller

      I have a very small node.. planning to build into the wall... I know there are a lot of topics about this.. but the hadware is not THE problem.
      The purpose of the node is when it is switched on.. call to another node that he is online... the other node will switch on the house ventilation system.. and will check once in a while the node that requested the highest fan speed if that node is still on...
      The whole system can run without the need of a controller. Most of the time my home server is on.. but i don't want to depend on it.

      My only last problem is.
      when the node is starting up. it will first connect to the controller.. if it can't connect.. it is looping until it will connect.
      I am using the newest version of the api (V2.1). I tried to set the
      #define MY_REGISTRATION_RETRIES (1u)

      and
      #undef MY_REGISTRATION_FEATURE

      but it stays looping.
      i also found these 2 lines
      #define MY_PARENT_NODE_ID 0
      #define MY_PARENT_NODE_IS_STATIC

      but than the controller is trying to send a nack message.

      i prefer to see it will connect to the controller if it is online.. but doent wait for it before sending messages to the other nodes.
      However, if that isn't posible.. disconnecting this node from the controller is also an option.
      anyone knows how?

      posted in Development
      Doomic
      Doomic
    • RE: XN297L an alternative to NRF24L01?

      ok. Thanks. then i will keep it with the nrf24.

      posted in Hardware
      Doomic
      Doomic
    • XN297L an alternative to NRF24L01?

      i want to buy some nrf24l01 and came accors this advertising:
      https://nl.aliexpress.com/item/10PCS-NEW-Wireless-Module-XN297L-2-4G-XN297L-2-4G-wireless-transceiver-module-better-than-NRF24L01/32691219720.html?spm=2114.13010208.99999999.264.yPj72P

      the XN297L.

      I was wondering, does this also works with the MySensors librairy?
      The connectors looks the same.
      And if it works, does someone knows what the range is of these things?

      if no one know i will keep it safe and stick to the regular NRF24L01

      posted in Hardware
      Doomic
      Doomic