Skip to content
  • 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 with req id
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Help with req id

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 5 Posters 3.1k Views 3 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.
  • tianaT Offline
    tianaT Offline
    tiana
    wrote on last edited by tiana
    #1

    Sensor log

    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    repeater started, id=255, parent=0, distance=1
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=fail:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    req id
    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,sg=0,st=ok:
    

    Gateway log

    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    0;0;3;0;9;read: 255-255-0 s=255,c=3,t=3,pt=0,l=0,sg=0:
    

    Somebodey can help me with getting sensor ID

    1 Reply Last reply
    0
    • martinhjelmareM Offline
      martinhjelmareM Offline
      martinhjelmare
      Plugin Developer
      wrote on last edited by
      #2

      Hi!

      It looks as your current node sketch is set to request node id from the controller. Do you have a controller connected to the gateway that supports auto assigning node ids?

      If not, you can set a manual node id in the node sketch.

      See "Starting up the library" at http://www.mysensors.org/download/sensor_api_15#the-full-api.

      1 Reply Last reply
      0
      • tianaT Offline
        tianaT Offline
        tiana
        wrote on last edited by
        #3

        I reed this manual 100 times but dont understand how to add sensor id manualy.

        Wich file have to change?? wich part of thiss file have to change???

        My controler haven't support or not set auto assigning node id

        1 Reply Last reply
        0
        • fetsF Offline
          fetsF Offline
          fets
          wrote on last edited by
          #4

          void begin(void (*_msgCallback)(const MyMessage &), uint8_t nodeId, boolean repeaterMode,uint8_t parentNodeId);

          you must set the 2nd parameter to the value you want (i.e 10).

          1 Reply Last reply
          0
          • tianaT Offline
            tianaT Offline
            tiana
            wrote on last edited by
            #5

            10X

            i fix this problem

            1 Reply Last reply
            0
            • sundberg84S Offline
              sundberg84S Offline
              sundberg84
              Hardware Contributor
              wrote on last edited by
              #6

              Pretty much add this line to setup()
              gw.begin(NULL, 10);

              Null = Node doesnt accept any incoming messages
              10 = node id.

              Controller: Proxmox VM - Home Assistant
              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

              DdawmeD 1 Reply Last reply
              0
              • sundberg84S sundberg84

                Pretty much add this line to setup()
                gw.begin(NULL, 10);

                Null = Node doesnt accept any incoming messages
                10 = node id.

                DdawmeD Offline
                DdawmeD Offline
                Ddawme
                wrote on last edited by
                #7

                @sundberg84 where do I add this code? I'm having the same problem

                1 Reply Last reply
                0
                • sundberg84S Offline
                  sundberg84S Offline
                  sundberg84
                  Hardware Contributor
                  wrote on last edited by
                  #8

                  You add it in setpu{}
                  Change the gw.begin() to ge.begin(NULL, ID)

                  Controller: Proxmox VM - Home Assistant
                  MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                  MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                  RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                  DdawmeD 1 Reply Last reply
                  0
                  • sundberg84S sundberg84

                    You add it in setpu{}
                    Change the gw.begin() to ge.begin(NULL, ID)

                    DdawmeD Offline
                    DdawmeD Offline
                    Ddawme
                    wrote on last edited by
                    #9

                    @sundberg84 sorry to be such a pain but I'm not understanding. Do I add that to the node sketch? When I do I get "null was not declared in this scope".

                    Also looking at domoticz log is there a way to know for sure that domo and my gateway are communicating?

                    Thanks in advance for your help!

                    1 Reply Last reply
                    0
                    • sundberg84S Offline
                      sundberg84S Offline
                      sundberg84
                      Hardware Contributor
                      wrote on last edited by
                      #10

                      Hi! Yes, in node sketch

                      Example Binary Sketch: (1.5.X and below)

                      #include <MySensor.h>
                      #include <SPI.h>
                      #include <Bounce2.h>
                      
                      #define CHILD_ID 3
                      #define BUTTON_PIN  3  // Arduino Digital I/O pin for button/reed switch
                      
                      MySensor gw;
                      Bounce debouncer = Bounce(); 
                      int oldValue=-1;
                      
                      // Change to V_LIGHT if you use S_LIGHT in presentation below
                      MyMessage msg(CHILD_ID,V_TRIPPED);
                      
                      void setup()  
                      {  
                        gw.begin(NULL, 5);
                      
                       // Setup the button
                        pinMode(BUTTON_PIN,INPUT);
                        // Activate internal pull-up
                        digitalWrite(BUTTON_PIN,HIGH);
                        
                        // After setting up the button, setup debouncer
                        debouncer.attach(BUTTON_PIN);
                        debouncer.interval(5);
                        
                        // Register binary input sensor to gw (they will be created as child devices)
                        // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. 
                        // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
                        gw.present(CHILD_ID, S_DOOR);  
                      }
                      
                      
                      //  Check if digital input has changed and send in new value
                      void loop() 
                      {
                        debouncer.update();
                        // Get the update value
                        int value = debouncer.read();
                       
                        if (value != oldValue) {
                           // Send in the new value
                           gw.send(msg.set(value==HIGH ? 1 : 0));
                           oldValue = value;
                        }
                      } 
                      

                      Controller: Proxmox VM - Home Assistant
                      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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


                      2

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      Posts


                      Copyright 2019 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
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular