RFM69HW serial output no data



  • 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;
      }
      
    }
    
    
    

  • Plugin Developer

    @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



  • Yes thanks, totally forgot that.


Log in to reply
 

Suggested Topics

51
Online

11.4k
Users

11.1k
Topics

112.7k
Posts