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. Development
  3. RFM69HW serial output no data

RFM69HW serial output no data

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 1.2k 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.
  • SweebeeS Offline
    SweebeeS Offline
    Sweebee
    wrote on last edited by
    #1

    My gateway receives this:

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

    while it should receive?

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

    My sketch:

    #include <SPI.h>
    #include <MySensor.h>
    #include <MyTransportRFM69.h>
    #include <MySigningAtsha204Soft.h>
    
    #define NODE_ID 1
    
    #define PIN_G 4
    #define PIN_O 5
    #define PIN_R 6
    
    int sentG = 1;
    int sentO = 1;
    int sentR = 1;
    
    //Construct MySensors library
    MyHwATMega328 hw;
    MyMessage groen(1, V_TRIPPED);
    MyMessage oranje(2, V_TRIPPED);
    MyMessage rood(3, V_TRIPPED);
    MyTransportRFM69 transport;
    MySensor gw(transport, hw);
    
    
    /**************************************************************************************/
    /* Initialization                                                                     */
    /**************************************************************************************/
    void setup()
      {
        
        pinMode(PIN_G, INPUT);
        digitalWrite(PIN_G, HIGH);
        pinMode(PIN_O, INPUT);
        digitalWrite(PIN_O, HIGH);
        pinMode(PIN_R, INPUT);
        digitalWrite(PIN_R, HIGH);
        
        gw.begin(NULL, NODE_ID, false);
      }
    
    /**************************************************************************************/
    /* Main loop                                                                          */
    /**************************************************************************************/
    void loop(){  
      
      // GROENE KNOP
      int valueG = digitalRead(PIN_G); 
        if (valueG != sentG) {
          Serial.println("GROEN");
          gw.send(groen.set(1));
          sentG = valueG;
      }
    
      // ORANJE KNOP
      int valueO = digitalRead(PIN_O); 
      if (valueO != sentO) {
        Serial.println("ORANJE");
        gw.send(oranje.set(1));
        sentO = valueO;
      }
    
      // RODE KNOP
      int valueR = digitalRead(PIN_R); 
      if (valueR != sentR) {
        Serial.println("ROOD");
        gw.send(rood.set(1));
        sentR = valueR;
      }
      
    }
    
    
    
    martinhjelmareM 1 Reply Last reply
    0
    • SweebeeS Sweebee

      My gateway receives this:

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

      while it should receive?

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

      My sketch:

      #include <SPI.h>
      #include <MySensor.h>
      #include <MyTransportRFM69.h>
      #include <MySigningAtsha204Soft.h>
      
      #define NODE_ID 1
      
      #define PIN_G 4
      #define PIN_O 5
      #define PIN_R 6
      
      int sentG = 1;
      int sentO = 1;
      int sentR = 1;
      
      //Construct MySensors library
      MyHwATMega328 hw;
      MyMessage groen(1, V_TRIPPED);
      MyMessage oranje(2, V_TRIPPED);
      MyMessage rood(3, V_TRIPPED);
      MyTransportRFM69 transport;
      MySensor gw(transport, hw);
      
      
      /**************************************************************************************/
      /* Initialization                                                                     */
      /**************************************************************************************/
      void setup()
        {
          
          pinMode(PIN_G, INPUT);
          digitalWrite(PIN_G, HIGH);
          pinMode(PIN_O, INPUT);
          digitalWrite(PIN_O, HIGH);
          pinMode(PIN_R, INPUT);
          digitalWrite(PIN_R, HIGH);
          
          gw.begin(NULL, NODE_ID, false);
        }
      
      /**************************************************************************************/
      /* Main loop                                                                          */
      /**************************************************************************************/
      void loop(){  
        
        // GROENE KNOP
        int valueG = digitalRead(PIN_G); 
          if (valueG != sentG) {
            Serial.println("GROEN");
            gw.send(groen.set(1));
            sentG = valueG;
        }
      
        // ORANJE KNOP
        int valueO = digitalRead(PIN_O); 
        if (valueO != sentO) {
          Serial.println("ORANJE");
          gw.send(oranje.set(1));
          sentO = valueO;
        }
      
        // RODE KNOP
        int valueR = digitalRead(PIN_R); 
        if (valueR != sentR) {
          Serial.println("ROOD");
          gw.send(rood.set(1));
          sentR = valueR;
        }
        
      }
      
      
      
      martinhjelmareM Offline
      martinhjelmareM Offline
      martinhjelmare
      Plugin Developer
      wrote on last edited by
      #2

      @Sweebee

      The serial output you've received is an internal message about signing nonce.

      You don't present the sensors in setup, which is why you don't see any more output, about sensors tripping.

      See:
      http://www.mysensors.org/download/sensor_api_15

      and
      http://www.mysensors.org/download/serial_api_15

      and
      http://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help/3

      1 Reply Last reply
      1
      • SweebeeS Offline
        SweebeeS Offline
        Sweebee
        wrote on last edited by
        #3

        Yes thanks, totally forgot that.

        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


        18

        Online

        12.0k

        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